From 80bd479bf6fcf9ed13c09ea0874c9ea14b5afa9c Mon Sep 17 00:00:00 2001 From: Lokmane ARKHIS Date: Wed, 1 Jul 2020 22:42:01 +0200 Subject: [PATCH] Update altair version to 2.4.11 to fix #433 --- altair-spring-boot-autoconfigure/.DS_Store | Bin 0 -> 6148 bytes .../altair/boot/AltairAutoConfiguration.java | 14 +- .../altair/boot/AltairProperties.java | 2 +- .../src/main/resources/altair.html | 5 + .../static/vendor/altair/0.worker.js | 1 + .../static/vendor/altair/3rdpartylicenses.txt | 2509 +++++++++++++++++ .../main/resources/static/vendor/altair/5.js | 1 + .../main/resources/static/vendor/altair/6.js | 1 + .../main/resources/static/vendor/altair/7.js | 1 + .../main/resources/static/vendor/altair/8.js | 1 + .../vendor/altair/assets/i18n/README.md | 1 + .../vendor/altair/assets/i18n/ach-UG.json | 20 +- .../vendor/altair/assets/i18n/af-ZA.json | 6 +- .../vendor/altair/assets/i18n/ar-SA.json | 6 +- .../vendor/altair/assets/i18n/ca-ES.json | 6 +- .../vendor/altair/assets/i18n/cs-CZ.json | 90 +- .../vendor/altair/assets/i18n/da-DK.json | 20 +- .../vendor/altair/assets/i18n/de-DE.json | 68 +- .../vendor/altair/assets/i18n/default.json | 23 +- .../vendor/altair/assets/i18n/el-GR.json | 6 +- .../vendor/altair/assets/i18n/en-US.json | 20 +- .../vendor/altair/assets/i18n/es-ES.json | 108 +- .../vendor/altair/assets/i18n/fi-FI.json | 20 +- .../vendor/altair/assets/i18n/fr-FR.json | 20 +- .../vendor/altair/assets/i18n/he-IL.json | 6 +- .../vendor/altair/assets/i18n/hu-HU.json | 20 +- .../vendor/altair/assets/i18n/it-IT.json | 20 +- .../vendor/altair/assets/i18n/ja-JP.json | 72 +- .../vendor/altair/assets/i18n/ko-KR.json | 80 +- .../vendor/altair/assets/i18n/nl-NL.json | 20 +- .../vendor/altair/assets/i18n/no-NO.json | 20 +- .../vendor/altair/assets/i18n/pl-PL.json | 20 +- .../vendor/altair/assets/i18n/pt-BR.json | 22 +- .../vendor/altair/assets/i18n/pt-PT.json | 20 +- .../vendor/altair/assets/i18n/ro-RO.json | 20 +- .../vendor/altair/assets/i18n/ru-RU.json | 124 +- .../vendor/altair/assets/i18n/sr-SP.json | 20 +- .../vendor/altair/assets/i18n/sv-SE.json | 20 +- .../vendor/altair/assets/i18n/tr-TR.json | 42 +- .../vendor/altair/assets/i18n/uk-UA.json | 248 +- .../vendor/altair/assets/i18n/vi-VN.json | 234 +- .../vendor/altair/assets/i18n/zh-CN.json | 128 +- .../vendor/altair/assets/i18n/zh-TW.json | 126 +- .../altair/assets/img/altair_logo_512.png | Bin 0 -> 31129 bytes .../static/vendor/altair/favicon.ico | Bin 1150 -> 5430 bytes .../resources/static/vendor/altair/index.html | 55 + .../resources/static/vendor/altair/main.js | 2 +- .../static/vendor/altair/polyfills-es5.js | 1 + .../static/vendor/altair/polyfills.js | 2 +- .../resources/static/vendor/altair/runtime.js | 2 +- .../resources/static/vendor/altair/styles.css | 3 +- 51 files changed, 3681 insertions(+), 595 deletions(-) create mode 100644 altair-spring-boot-autoconfigure/.DS_Store create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/0.worker.js create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/3rdpartylicenses.txt create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/5.js create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/6.js create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/7.js create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/8.js create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/assets/i18n/README.md create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/assets/img/altair_logo_512.png create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/index.html create mode 100644 altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/polyfills-es5.js diff --git a/altair-spring-boot-autoconfigure/.DS_Store b/altair-spring-boot-autoconfigure/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8f7026824783bb4152ab96dd1a1ed6fbf1b0dd22 GIT binary patch literal 6148 zcmeHKI|>3Z5S{S@f{mqRuHX%V=n1@l$btx>AZWdn=kjR2`83P2ofgU)n7m{%FCnkk z*%1+4-}>w&gLxhmpaMUyfPEhd+^{CLf&S^h;4J`fg0LIr-b(Cld`t<9%r?-!1r*=dBM#vcM1kC$3QQ~SXen;dQ#*Sn`6Hw Uwt-GZ-0496445u7D)4Ou-khQox&QzG literal 0 HcmV?d00001 diff --git a/altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairAutoConfiguration.java b/altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairAutoConfiguration.java index 40fa0ad3..07fea8f9 100644 --- a/altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairAutoConfiguration.java +++ b/altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairAutoConfiguration.java @@ -1,12 +1,12 @@ package graphql.kickstart.altair.boot; - import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; - import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; - import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; - import org.springframework.boot.context.properties.EnableConfigurationProperties; - import org.springframework.context.annotation.Bean; - import org.springframework.context.annotation.Configuration; - import org.springframework.web.servlet.DispatcherServlet; +import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; +import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.DispatcherServlet; /** * @author Moncef AOUDIA diff --git a/altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairProperties.java b/altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairProperties.java index cfd7ae16..62f6e764 100644 --- a/altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairProperties.java +++ b/altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairProperties.java @@ -28,7 +28,7 @@ static class Static { @Data static class Cdn { private boolean enabled = false; - private String version = "2.4.6"; + private String version = "2.4.11"; } } diff --git a/altair-spring-boot-autoconfigure/src/main/resources/altair.html b/altair-spring-boot-autoconfigure/src/main/resources/altair.html index 07d69374..2aea1d5e 100644 --- a/altair-spring-boot-autoconfigure/src/main/resources/altair.html +++ b/altair-spring-boot-autoconfigure/src/main/resources/altair.html @@ -42,6 +42,11 @@ + diff --git a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/0.worker.js b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/0.worker.js new file mode 100644 index 00000000..5891e794 --- /dev/null +++ b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/0.worker.js @@ -0,0 +1 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="qFDF")}({qFDF:function(e,t,n){"use strict";n.r(t);const r=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.thrown"),s=e=>"object"==typeof e&&null!==e||"function"==typeof e,c=new Map([["proxy",{canHandle:e=>s(e)&&e[r],serialize(e){const{port1:t,port2:n}=new MessageChannel;return u(e,t),[n,[n]]},deserialize:e=>(e.start(),function e(t,n=[],r=function(){}){let o=!1;const s=new Proxy(r,{get(r,i){if(p(o),i===a)return()=>m(t,{type:5,path:n.map(e=>e.toString())}).then(()=>{l(t),o=!0});if("then"===i){if(0===n.length)return{then:()=>s};const e=m(t,{type:0,path:n.map(e=>e.toString())}).then(v);return e.then.bind(e)}return e(t,[...n,i])},set(e,r,i){p(o);const[a,s]=h(i);return m(t,{type:1,path:[...n,r].map(e=>e.toString()),value:a},s).then(v)},apply(r,a,s){p(o);const c=n[n.length-1];if(c===i)return m(t,{type:4}).then(v);if("bind"===c)return e(t,n.slice(0,-1));const[u,l]=f(s);return m(t,{type:2,path:n.map(e=>e.toString()),argumentList:u},l).then(v)},construct(e,r){p(o);const[i,a]=f(r);return m(t,{type:3,path:n.map(e=>e.toString()),argumentList:i},a).then(v)}});return s}(e,[],void 0))}],["throw",{canHandle:e=>s(e)&&o in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function u(e,t=self){t.addEventListener("message",(function n(i){if(!i||!i.data)return;const{id:a,type:s,path:c}=Object.assign({path:[]},i.data),p=(i.data.argumentList||[]).map(v);let f;try{const t=c.slice(0,-1).reduce((e,t)=>e[t],e),n=c.reduce((e,t)=>e[t],e);switch(s){case 0:f=n;break;case 1:t[c.slice(-1)[0]]=v(i.data.value),f=!0;break;case 2:f=n.apply(t,p);break;case 3:f=function(e){return Object.assign(e,{[r]:!0})}(new n(...p));break;case 4:{const{port1:t,port2:n}=new MessageChannel;u(e,n),f=function(e,t){return d.set(e,t),e}(t,[t])}break;case 5:f=void 0}}catch(m){f={value:m,[o]:0}}Promise.resolve(f).catch(e=>({value:e,[o]:0})).then(e=>{const[r,i]=h(e);t.postMessage(Object.assign(Object.assign({},r),{id:a}),i),5===s&&(t.removeEventListener("message",n),l(t))})})),t.start&&t.start()}function l(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function p(e){if(e)throw new Error("Proxy has been released and is not useable")}function f(e){const t=e.map(h);return[t.map(e=>e[0]),(n=t.map(e=>e[1]),Array.prototype.concat.apply([],n))];var n}const d=new WeakMap;function h(e){for(const[t,n]of c)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:3,name:t,value:r},i]}return[{type:0,value:e},d.get(e)||[]]}function v(e){switch(e.type){case 3:return c.get(e.name).deserialize(e.value);case 0:return e.value}}function m(e,t,n){return new Promise(r=>{const i=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===i&&(e.removeEventListener("message",t),r(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:i},t),n)})}var y=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};function E(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}var T="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e){return function e(t,n){switch(N(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return null===t?"null":function(t,n){if(-1!==n.indexOf(t))return"[Circular]";var r=[].concat(n,[t]),i=function(e){var t=e[String(T)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(t);if(void 0!==i){var a=i.call(t);if(a!==t)return"string"==typeof a?a:e(a,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";for(var r=Math.min(10,t.length),i=t.length-r,a=[],o=0;o1&&a.push("... ".concat(i," more items")),"["+a.join(", ")+"]"}(t,r);return function(t,n){var r=Object.keys(t);return 0===r.length?"{}":n.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(t)+"]":"{ "+r.map((function(r){return r+": "+e(t[r],n)})).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}function I(e,t){if(!Boolean(e))throw new Error(t||"Unexpected invariant triggered")}function O(e,t){if(!Boolean(e))throw new Error(t)}function _(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}var b=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),D=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,T&&(e.prototype[T]=t)}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e){return"object"==S(e)&&null!==e}function w(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,a=t+1;(n=r.exec(e.body))&&n.index120){for(var l=Math.floor(o/80),p=o%80,f=[],d=0;d0||O(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||O(0,"column in locationOffset is 1-indexed and must be positive")};function M(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t=null,n=1;n0&&V(t[0]);)t.shift();for(;t.length>0&&V(t[t.length-1]);)t.pop();return t.join("\n")}function U(e){for(var t=0;t=i)return new G(D.EOF,i,i,o,s,t);var c=r.charCodeAt(a);switch(c){case 33:return new G(D.BANG,a,a+1,o,s,t);case 35:return function(e,t,n,r,i){var a,o=e.body,s=t;do{a=o.charCodeAt(++s)}while(!isNaN(a)&&(a>31||9===a));return new G(D.COMMENT,t,s,n,r,i,o.slice(t+1,s))}(n,a,o,s,t);case 36:return new G(D.DOLLAR,a,a+1,o,s,t);case 38:return new G(D.AMP,a,a+1,o,s,t);case 40:return new G(D.PAREN_L,a,a+1,o,s,t);case 41:return new G(D.PAREN_R,a,a+1,o,s,t);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return new G(D.SPREAD,a,a+3,o,s,t);break;case 58:return new G(D.COLON,a,a+1,o,s,t);case 61:return new G(D.EQUALS,a,a+1,o,s,t);case 64:return new G(D.AT,a,a+1,o,s,t);case 91:return new G(D.BRACKET_L,a,a+1,o,s,t);case 93:return new G(D.BRACKET_R,a,a+1,o,s,t);case 123:return new G(D.BRACE_L,a,a+1,o,s,t);case 124:return new G(D.PIPE,a,a+1,o,s,t);case 125:return new G(D.BRACE_R,a,a+1,o,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){for(var a=e.body,o=a.length,s=t+1,c=0;s!==o&&!isNaN(c=a.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new G(D.NAME,t,s,n,r,i,a.slice(t,s))}(n,a,o,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,a){var o=e.body,s=n,c=t,u=!1;if(45===s&&(s=o.charCodeAt(++c)),48===s){if((s=o.charCodeAt(++c))>=48&&s<=57)throw C(e,c,"Invalid number, unexpected digit after 0: ".concat(J(s),"."))}else c=K(e,c,s),s=o.charCodeAt(c);if(46===s&&(u=!0,s=o.charCodeAt(++c),c=K(e,c,s),s=o.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=o.charCodeAt(++c))&&45!==s||(s=o.charCodeAt(++c)),c=K(e,c,s),s=o.charCodeAt(c)),46===s||69===s||101===s)throw C(e,c,"Invalid number, expected digit but got: ".concat(J(s),"."));return new G(u?D.FLOAT:D.INT,t,c,r,i,a,o.slice(t,c))}(n,a,c,o,s,t);case 34:return 34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)?function(e,t,n,r,i,a){for(var o=e.body,s=t+3,c=s,u=0,l="";s=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw C(e,i,"Invalid number, expected digit but got: ".concat(J(a),"."))}function q(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}j(P),A(G,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var Q=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),z=function(){function e(e,t){var n="string"==typeof e?new P(e):e;n instanceof P||O(0,"Must provide Source. Received: ".concat(g(n))),this._lexer=function(e,t){var n=new G(D.SOF,0,0,0,0,null);return{source:e,options:void 0,lastToken:n,token:n,line:1,lineStart:0,advance:B,lookahead:Y}}(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(D.NAME);return{kind:b.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:b.DOCUMENT,definitions:this.many(D.SOF,this.parseDefinition,D.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(D.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(D.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(D.BRACE_L))return{kind:b.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(D.NAME)&&(t=this.parseName()),{kind:b.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(D.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(D.PAREN_L,this.parseVariableDefinition,D.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(D.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(D.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(D.DOLLAR),{kind:b.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:b.SELECTION_SET,selections:this.many(D.BRACE_L,this.parseSelection,D.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(D.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(D.COLON)?(e=r,t=this.parseName()):t=r,{kind:b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(D.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){return this.optionalMany(D.PAREN_L,e?this.parseConstArgument:this.parseArgument,D.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(D.COLON),{kind:b.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:b.ARGUMENT,name:this.parseName(),value:(this.expectToken(D.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(D.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(D.NAME)?{kind:b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case D.BRACKET_L:return this.parseList(e);case D.BRACE_L:return this.parseObject(e);case D.INT:return this._lexer.advance(),{kind:b.INT,value:t.value,loc:this.loc(t)};case D.FLOAT:return this._lexer.advance(),{kind:b.FLOAT,value:t.value,loc:this.loc(t)};case D.STRING:case D.BLOCK_STRING:return this.parseStringLiteral();case D.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:b.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:b.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:b.ENUM,value:t.value,loc:this.loc(t)});case D.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:b.STRING,value:e.value,block:e.kind===D.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:b.LIST,values:this.any(D.BRACKET_L,(function(){return t.parseValueLiteral(e)}),D.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:b.OBJECT,fields:this.any(D.BRACE_L,(function(){return t.parseObjectField(e)}),D.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(D.COLON),{kind:b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(D.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(D.AT),{kind:b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(D.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(D.BRACKET_R),e={kind:b.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(D.BANG)?{kind:b.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:b.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===D.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(D.STRING)||this.peek(D.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.many(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);return{kind:b.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(D.COLON);var n=this.parseNamedType();return{kind:b.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(D.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(D.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(D.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(D.BRACE_L)&&this._lexer.lookahead().kind===D.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(D.BRACE_L,this.parseFieldDefinition,D.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(D.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(D.PAREN_L,this.parseInputValueDef,D.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(D.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(D.EQUALS)&&(r=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:b.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:a,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:b.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(D.EQUALS)){this.expectOptionalToken(D.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(D.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseEnumValueDefinition,D.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseInputValueDef,D.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===D.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:b.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:b.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(D.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(D.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(D.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==Q[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new H(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw C(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat($(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==D.NAME||t.value!==e)throw C(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat($(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===D.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return C(this._lexer.source,t.start,"Unexpected ".concat($(t)))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e}();function H(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function $(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}function W(e){return e.kind===b.OPERATION_DEFINITION||e.kind===b.FRAGMENT_DEFINITION}function Z(e){return e.kind===b.SCALAR_TYPE_DEFINITION||e.kind===b.OBJECT_TYPE_DEFINITION||e.kind===b.INTERFACE_TYPE_DEFINITION||e.kind===b.UNION_TYPE_DEFINITION||e.kind===b.ENUM_TYPE_DEFINITION||e.kind===b.INPUT_OBJECT_TYPE_DEFINITION}A(H,(function(){return{start:this.start,end:this.end}}));var ee={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},te=Object.freeze({});function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee,r=void 0,i=Array.isArray(e),a=[e],o=-1,s=[],c=void 0,u=void 0,l=void 0,p=[],f=[],d=e;do{var h=++o===a.length,v=h&&0!==s.length;if(h){if(u=0===f.length?void 0:p[p.length-1],c=l,l=f.pop(),v){if(i)c=c.slice();else{for(var m={},y=0,E=Object.keys(c);y0?e:void 0}Se.prototype.toString=function(){return"["+String(this.ofType)+"]"},j(Se),A(Se),xe.prototype.toString=function(){return String(this.ofType)+"!"},j(xe),A(xe);var Re=function(){function e(e){var t=e.parseValue||pe;this.name=e.name,this.description=e.description,this.serialize=e.serialize||pe,this.parseValue=t,this.parseLiteral=e.parseLiteral||function(e){return t(function e(t,n){switch(t.kind){case b.NULL:return null;case b.INT:return parseInt(t.value,10);case b.FLOAT:return parseFloat(t.value);case b.STRING:case b.ENUM:case b.BOOLEAN:return t.value;case b.LIST:return t.values.map((function(t){return e(t,n)}));case b.OBJECT:return _(t.fields,(function(e){return e.name.value}),(function(t){return e(t.value,n)}));case b.VARIABLE:var r=t.name.value;return n&&!fe(n[r])?n[r]:void 0}I(!1,"Unexpected value node: "+g(t))}(e))},this.extensions=e.extensions&&ue(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Le(e.extensionASTNodes),"string"==typeof e.name||O(0,"Must provide name."),null==e.serialize||"function"==typeof e.serialize||O(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||O(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){return{name:this.name,description:this.description,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();j(Re),A(Re);var Ce=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&ue(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Le(e.extensionASTNodes),this._fields=Pe.bind(void 0,e),this._interfaces=je.bind(void 0,e),"string"==typeof e.name||O(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||O(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(g(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ue(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function je(e){var t=Fe(e.interfaces)||[];return Array.isArray(t)||O(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function Pe(e){var t=Fe(e.fields)||{};return Me(t)||O(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),ce(t,(function(t,n){Me(t)||O(0,"".concat(e.name,".").concat(n," field config must be an object")),!("isDeprecated"in t)||O(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||O(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(g(t.resolve),"."));var r=t.args||{};Me(r)||O(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var i=se(r).map((function(e){var t=e[1];return{name:e[0],description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&ue(t.extensions),astNode:t.astNode}}));return he({},t,{name:n,description:t.description,type:t.type,args:i,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,extensions:t.extensions&&ue(t.extensions),astNode:t.astNode})}))}function Me(e){return x(e)&&!Array.isArray(e)}function Ue(e){return ce(e,(function(e){return{description:e.description,type:e.type,args:Ve(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function Ve(e){return _(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}function Be(e){return _e(e.type)&&void 0===e.defaultValue}j(Ce),A(Ce);var Ye=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&ue(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Le(e.extensionASTNodes),this._fields=Pe.bind(void 0,e),"string"==typeof e.name||O(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||O(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(g(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){return{name:this.name,description:this.description,fields:Ue(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();j(Ye),A(Ye);var Ge=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&ue(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Le(e.extensionASTNodes),this._types=Je.bind(void 0,e),"string"==typeof e.name||O(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||O(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(g(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function Je(e){var t=Fe(e.types)||[];return Array.isArray(t)||O(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}j(Ge),A(Ge);var Xe=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&ue(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Le(e.extensionASTNodes),this._values=(t=this.name,Me(n=e.values)||O(0,"".concat(t," values must be an object with value names as keys.")),se(n).map((function(e){var n=e[0],r=e[1];return Me(r)||O(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(g(r),".")),!("isDeprecated"in r)||O(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:"value"in r?r.value:n,isDeprecated:Boolean(r.deprecationReason),deprecationReason:r.deprecationReason,extensions:r.extensions&&ue(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=E(this._values,(function(e){return e.name})),"string"==typeof e.name||O(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(t)return t.name},t.parseValue=function(e){if("string"==typeof e){var t=this.getValue(e);if(t)return t.value}},t.parseLiteral=function(e,t){if(e.kind===b.ENUM){var n=this.getValue(e.value);if(n)return n.value}},t.toConfig=function(){var e=_(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();j(Xe),A(Xe);var Ke=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&ue(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Le(e.extensionASTNodes),this._fields=qe.bind(void 0,e),"string"==typeof e.name||O(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e=ce(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function qe(e){var t=Fe(e.fields)||{};return Me(t)||O(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),ce(t,(function(t,n){return!("resolve"in t)||O(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),he({},t,{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&ue(t.extensions),astNode:t.astNode})}))}function Qe(e,t,n){return t===n||(_e(n)?!!_e(t)&&Qe(e,t.ofType,n.ofType):_e(t)?Qe(e,t.ofType,n):Oe(n)?!!Oe(t)&&Qe(e,t.ofType,n.ofType):!Oe(t)&&!!(Ae(n)&&Ee(t)&&e.isPossibleType(n,t)))}function ze(e,t,n){return t===n||(Ae(t)?Ae(n)?e.getPossibleTypes(t).some((function(t){return e.isPossibleType(n,t)})):e.isPossibleType(t,n):!!Ae(n)&&e.isPossibleType(n,t))}j(Ke),A(Ke);var He=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},$e=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},We=new Re({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!$e(t))throw new TypeError("Int cannot represent non-integer value: ".concat(g(e)));if(t>2147483647||t<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(g(e)));return t},parseValue:function(e){if(!$e(e))throw new TypeError("Int cannot represent non-integer value: ".concat(g(e)));if(e>2147483647||e<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(g(e)));return e},parseLiteral:function(e){if(e.kind===b.INT){var t=parseInt(e.value,10);if(t<=2147483647&&t>=-2147483648)return t}}}),Ze=new Re({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!He(t))throw new TypeError("Float cannot represent non numeric value: ".concat(g(e)));return t},parseValue:function(e){if(!He(e))throw new TypeError("Float cannot represent non numeric value: ".concat(g(e)));return e},parseLiteral:function(e){return e.kind===b.FLOAT||e.kind===b.INT?parseFloat(e.value):void 0}});function et(e){if(x(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!x(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var tt=new Re({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=et(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(He(t))return t.toString();throw new TypeError("String cannot represent value: ".concat(g(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat(g(e)));return e},parseLiteral:function(e){return e.kind===b.STRING?e.value:void 0}}),nt=new Re({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if(He(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat(g(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat(g(e)));return e},parseLiteral:function(e){return e.kind===b.BOOLEAN?e.value:void 0}}),rt=new Re({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=et(e);if("string"==typeof t)return t;if($e(t))return String(t);throw new TypeError("ID cannot represent value: ".concat(g(e)))},parseValue:function(e){if("string"==typeof e)return e;if($e(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat(g(e)))},parseLiteral:function(e){return e.kind===b.STRING||e.kind===b.INT?e.value:void 0}}),it=Object.freeze([tt,We,Ze,nt,rt]),at=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=e.isRepeatable&&e.isRepeatable,this.extensions=e.extensions&&ue(e.extensions),this.astNode=e.astNode,e.name||O(0,"Directive must be named."),Array.isArray(e.locations)||O(0,"@".concat(e.name," locations must be an Array."));var t=e.args||{};x(t)&&!Array.isArray(t)||O(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=se(t).map((function(e){var t=e[1];return{name:e[0],description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&ue(t.extensions),astNode:t.astNode}}))}var t=e.prototype;return t.toString=function(){return"@"+this.name},t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Ve(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e}();j(at),A(at);var ot=new at({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Q.FIELD,Q.FRAGMENT_SPREAD,Q.INLINE_FRAGMENT],args:{if:{type:xe(nt),description:"Included when true."}}}),st=new at({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Q.FIELD,Q.FRAGMENT_SPREAD,Q.INLINE_FRAGMENT],args:{if:{type:xe(nt),description:"Skipped when true."}}}),ct=new at({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Q.FIELD_DEFINITION,Q.ENUM_VALUE],args:{reason:{type:tt,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}}),ut=Object.freeze([ot,st,ct]);function lt(e){return ne(e,{leave:pt})}var pt={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return dt(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=vt("(",dt(e.variableDefinitions,", "),")"),i=dt(e.directives," "),a=e.selectionSet;return n||i||r||"query"!==t?dt([t,dt([n,r]),i,a]," "):a},VariableDefinition:function(e){var t=e.directives;return e.variable+": "+e.type+vt(" = ",e.defaultValue)+vt(" ",dt(t," "))},SelectionSet:function(e){return ht(e.selections)},Field:function(e){var t=e.name,n=e.arguments,r=e.directives,i=e.selectionSet;return dt([vt("",e.alias,": ")+t+vt("(",dt(n,", "),")"),dt(r," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+vt(" ",dt(e.directives," "))},InlineFragment:function(e){var t=e.directives,n=e.selectionSet;return dt(["...",vt("on ",e.typeCondition),dt(t," "),n]," ")},FragmentDefinition:function(e){var t=e.typeCondition,n=e.variableDefinitions,r=e.directives,i=e.selectionSet;return"fragment ".concat(e.name).concat(vt("(",dt(n,", "),")")," ")+"on ".concat(t," ").concat(vt("",dt(r," ")," "))+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],a='"'===e[e.length-1],o=!r||a||n,s="";return!o||r&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,o&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+dt(e.values,", ")+"]"},ObjectValue:function(e){return"{"+dt(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+vt("(",dt(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.operationTypes;return dt(["schema",dt(e.directives," "),ht(t)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:ft((function(e){return dt(["scalar",e.name,dt(e.directives," ")]," ")})),ObjectTypeDefinition:ft((function(e){var t=e.directives,n=e.fields;return dt(["type",e.name,vt("implements ",dt(e.interfaces," & ")),dt(t," "),ht(n)]," ")})),FieldDefinition:ft((function(e){var t=e.arguments,n=e.type,r=e.directives;return e.name+(Et(t)?vt("(\n",mt(dt(t,"\n")),"\n)"):vt("(",dt(t,", "),")"))+": "+n+vt(" ",dt(r," "))})),InputValueDefinition:ft((function(e){var t=e.directives;return dt([e.name+": "+e.type,vt("= ",e.defaultValue),dt(t," ")]," ")})),InterfaceTypeDefinition:ft((function(e){var t=e.fields;return dt(["interface",e.name,dt(e.directives," "),ht(t)]," ")})),UnionTypeDefinition:ft((function(e){var t=e.types;return dt(["union",e.name,dt(e.directives," "),t&&0!==t.length?"= "+dt(t," | "):""]," ")})),EnumTypeDefinition:ft((function(e){var t=e.values;return dt(["enum",e.name,dt(e.directives," "),ht(t)]," ")})),EnumValueDefinition:ft((function(e){return dt([e.name,dt(e.directives," ")]," ")})),InputObjectTypeDefinition:ft((function(e){var t=e.fields;return dt(["input",e.name,dt(e.directives," "),ht(t)]," ")})),DirectiveDefinition:ft((function(e){var t=e.arguments,n=e.repeatable,r=e.locations;return"directive @"+e.name+(Et(t)?vt("(\n",mt(dt(t,"\n")),"\n)"):vt("(",dt(t,", "),")"))+(n?" repeatable":"")+" on "+dt(r," | ")})),SchemaExtension:function(e){var t=e.operationTypes;return dt(["extend schema",dt(e.directives," "),ht(t)]," ")},ScalarTypeExtension:function(e){return dt(["extend scalar",e.name,dt(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.directives,n=e.fields;return dt(["extend type",e.name,vt("implements ",dt(e.interfaces," & ")),dt(t," "),ht(n)]," ")},InterfaceTypeExtension:function(e){var t=e.fields;return dt(["extend interface",e.name,dt(e.directives," "),ht(t)]," ")},UnionTypeExtension:function(e){var t=e.types;return dt(["extend union",e.name,dt(e.directives," "),t&&0!==t.length?"= "+dt(t," | "):""]," ")},EnumTypeExtension:function(e){var t=e.values;return dt(["extend enum",e.name,dt(e.directives," "),ht(t)]," ")},InputObjectTypeExtension:function(e){var t=e.fields;return dt(["extend input",e.name,dt(e.directives," "),ht(t)]," ")}};function ft(e){return function(t){return dt([t.description,e(t)],"\n")}}function dt(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function ht(e){return e&&0!==e.length?"{\n"+mt(dt(e,"\n"))+"\n}":""}function vt(e,t,n){return t?e+t+(n||""):""}function mt(e){return e&&" "+e.replace(/\n/g,"\n ")}function yt(e){return-1!==e.indexOf("\n")}function Et(e){return e&&e.some(yt)}var Tt="function"==typeof Symbol?Symbol:void 0,Nt=Tt&&Tt.iterator;function gt(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function It(e){if(null!=e){var t=Nt&&e[Nt]||e["@@iterator"];if("function"==typeof t)return t}}function Ot(e){this._o=e,this._i=0}function _t(e){this._i=e}function bt(e,t,n){var r;return new Promise((function(i){i((r=e[t](n)).value)})).then((function(e){return{value:e,done:r.done}}))}Ot.prototype[Nt||"@@iterator"]=function(){return this},Ot.prototype.next=function(){return void 0===this._o||this._i>=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}},_t.prototype[Tt&&Tt.asyncIterator||"@@asyncIterator"]=function(){return this},_t.prototype.next=function(e){return bt(this._i,"next",e)},_t.prototype.return=function(e){return this._i.return?bt(this._i,"return",e):Promise.resolve({value:e,done:!0})},_t.prototype.throw=function(e){return this._i.throw?bt(this._i,"throw",e):Promise.reject(e)};var Dt=/^-?(?:0|[1-9][0-9]*)$/,At=new Ce({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this server.",type:xe(Se(xe(wt))),resolve:function(e){return y(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:xe(wt),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:wt,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:wt,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:xe(Se(xe(St))),resolve:function(e){return e.getDirectives()}}}}}),St=new Ce({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:xe(tt),resolve:function(e){return e.name}},description:{type:tt,resolve:function(e){return e.description}},locations:{type:xe(Se(xe(xt))),resolve:function(e){return e.locations}},args:{type:xe(Se(xe(Ft))),resolve:function(e){return e.args}}}}}),xt=new Xe({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Q.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Q.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Q.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Q.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Q.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Q.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Q.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Q.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Q.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Q.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Q.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Q.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Q.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Q.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Q.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Q.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Q.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Q.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Q.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),wt=new Ce({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:xe(Ct),resolve:function(e){return ye(e)?Rt.SCALAR:Ee(e)?Rt.OBJECT:Te(e)?Rt.INTERFACE:Ne(e)?Rt.UNION:ge(e)?Rt.ENUM:Ie(e)?Rt.INPUT_OBJECT:Oe(e)?Rt.LIST:_e(e)?Rt.NON_NULL:void I(!1,'Unexpected type: "'.concat(g(e),'".'))}},name:{type:tt,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:tt,resolve:function(e){return void 0!==e.description?e.description:void 0}},fields:{type:Se(xe(kt)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Ee(e)||Te(e)){var r=y(e.getFields());return n||(r=r.filter((function(e){return!e.deprecationReason}))),r}return null}},interfaces:{type:Se(xe(wt)),resolve:function(e){if(Ee(e))return e.getInterfaces()}},possibleTypes:{type:Se(xe(wt)),resolve:function(e,t,n,r){var i=r.schema;if(Ae(e))return i.getPossibleTypes(e)}},enumValues:{type:Se(xe(Lt)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(ge(e)){var r=e.getValues();return n||(r=r.filter((function(e){return!e.deprecationReason}))),r}}},inputFields:{type:Se(xe(Ft)),resolve:function(e){if(Ie(e))return y(e.getFields())}},ofType:{type:wt,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),kt=new Ce({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:xe(tt),resolve:function(e){return e.name}},description:{type:tt,resolve:function(e){return e.description}},args:{type:xe(Se(xe(Ft))),resolve:function(e){return e.args}},type:{type:xe(wt),resolve:function(e){return e.type}},isDeprecated:{type:xe(nt),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:tt,resolve:function(e){return e.deprecationReason}}}}}),Ft=new Ce({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:xe(tt),resolve:function(e){return e.name}},description:{type:tt,resolve:function(e){return e.description}},type:{type:xe(wt),resolve:function(e){return e.type}},defaultValue:{type:tt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=function e(t,n){if(_e(n)){var r=e(t,n.ofType);return r&&r.kind===b.NULL?null:r}if(null===t)return{kind:b.NULL};if(fe(t))return null;if(Oe(n)){var i=n.ofType;if(o=t,Object(o)===o&&(gt(o)||function(e){return!!It(e)}(o))){var a=[];return function(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,i=function(e){var t=It(e);if(t)return t.call(e)}(e);if(i){for(var a;!(a=i.next()).done;)if(t.call(n,a.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(gt(e))for(;r1&&l>1&&r[u-1]===i[l-2]&&r[u-2]===i[l-1]&&(n[u][l]=Math.min(n[u][l],n[u-2][l-2]+p))}return n[a][o]}function Jt(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null),i=0,a=e.getDocument().definitions;i0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){return e.concat(t[1])}),[n]),e.reduce((function(e,t){return e.concat(t[2])}),[r])]}(function(e,t,n,r,i,a,o,s){var c=[],u=Tn(e,t,i,a),l=u[0],p=u[1],f=Tn(e,t,o,s),d=f[0],h=f[1];if(yn(e,c,t,n,r,l,d),0!==h.length)for(var v=Object.create(null),m=0;m1&&e.reportError(new R("This anonymous operation must be the only defined operation.",n))}}},function(e){return{OperationDefinition:function(t){var n;"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new R((n=t.name&&t.name.value)?'Subscription "'.concat(n,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}},Jt,function(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=Vt(e.getSchema(),n);r&&!De(r)&&e.reportError(new R(function(e){return'Fragment cannot condition on non composite type "'.concat(e,'".')}(lt(n)),n))}},FragmentDefinition:function(t){var n=Vt(e.getSchema(),t.typeCondition);n&&!De(n)&&e.reportError(new R(function(e,t){return'Fragment "'.concat(e,'" cannot condition on non composite type "').concat(t,'".')}(t.name.value,lt(t.typeCondition)),t.typeCondition))}}},function(e){return{VariableDefinition:function(t){var n,r,i=Vt(e.getSchema(),t.type);i&&!function e(t){return ye(t)||ge(t)||Ie(t)||we(t)&&e(t.ofType)}(i)&&e.reportError(new R((n=t.variable.name.value,r=lt(t.type),'Variable "$'.concat(n,'" cannot be non-input type "').concat(r,'".')),t.type))}}},function(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;n&&(be(ke(n))?r&&e.reportError(new R(function(e,t){return'Field "'.concat(e,'" must not have a selection since type "').concat(t,'" has no subfields.')}(t.name.value,g(n)),r)):r||e.reportError(new R(function(e,t){return'Field "'.concat(e,'" of type "').concat(t,'" must have a selection of subfields. Did you mean "').concat(e,' { ... }"?')}(t.name.value,g(n)),t)))}}},function(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,a=function(e,t,n){if(Ae(t)){for(var r=[],i=Object.create(null),a=0,o=e.getPossibleTypes(t);a1)for(var l=0;l0&&e.reportError(new R("Must provide only one schema definition.",t)),++r)}}},function(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){if(t.operationTypes)for(var i=0,a=t.operationTypes||[];i0?function(){return n.map((function(e){return t.getNamedType(e)}))}:[],a=r&&r.length>0?function(){return Yn(r,(function(e){return t.buildField(e)}))}:Object.create(null);return new Ce({name:e.name.value,description:Jn(e,this._options),interfaces:i,fields:a,astNode:e})},t._makeInterfaceDef=function(e){var t=this,n=e.fields,r=n&&n.length>0?function(){return Yn(n,(function(e){return t.buildField(e)}))}:Object.create(null);return new Ye({name:e.name.value,description:Jn(e,this._options),fields:r,astNode:e})},t._makeEnumDef=function(e){var t=this,n=e.values||[];return new Xe({name:e.name.value,description:Jn(e,this._options),values:Yn(n,(function(e){return t.buildEnumValue(e)})),astNode:e})},t._makeUnionDef=function(e){var t=this,n=e.types,r=n&&n.length>0?function(){return n.map((function(e){return t.getNamedType(e)}))}:[];return new Ge({name:e.name.value,description:Jn(e,this._options),types:r,astNode:e})},t._makeScalarDef=function(e){return new Re({name:e.name.value,description:Jn(e,this._options),astNode:e})},t._makeInputObjectDef=function(e){var t=this,n=e.fields;return new Ke({name:e.name.value,description:Jn(e,this._options),fields:n?function(){return Yn(n,(function(e){return t.buildInputField(e)}))}:Object.create(null),astNode:e})},e}();function Yn(e,t){return _(e,(function(e){return e.name.value}),t)}function Gn(e){var t=function(e,t,n){var r=t.directives&&oe(t.directives,(function(t){return t.name.value===e.name}));if(r)return function(e,t,n){for(var r={},i=E(t.arguments||[],(function(e){return e.name.value})),a=0,o=e.args;a2&&void 0!==arguments[2]?arguments[2]:jn,r=[],i=new Pn(e,t,(function(e){r.push(e)})),a=n.map((function(e){return e(i)}));return ne(e,ie(a)),r}(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}(e);for(var r=[],i=[],a=0,o=e.definitions;a=(i.addQueryDepthLimit||0))return{query:"",meta:{}};var d=f&&f.getFields&&f.getFields(),h="";return d&&(h=Object.keys(d).reduce((function(t,o){if(n.filter((function(e){return e.name===o&&e.type===p})).length)return"";var s=a.generateFieldData(o,p,Kn(n,[{name:e,type:p}]),r+1,i);if(!s)return t;var c=s.query;return u.hasArgs=u.hasArgs||s.meta.hasArgs||!1,c?t+"\n"+c:t}),"").substring(1)),h&&(l+="{\n"+h+"\n",l+=" ".repeat(r*o)+"}"),{query:l,meta:u}},e}())}}); \ No newline at end of file diff --git a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/3rdpartylicenses.txt b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/3rdpartylicenses.txt new file mode 100644 index 00000000..feb42e40 --- /dev/null +++ b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/3rdpartylicenses.txt @@ -0,0 +1,2509 @@ +@angular-devkit/build-angular +MIT +The MIT License + +Copyright (c) 2017 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@angular/animations +MIT + +@angular/cdk +MIT +The MIT License + +Copyright (c) 2020 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/platform-browser +MIT + +@angular/router +MIT + +@ant-design/colors +MIT +MIT LICENSE + +Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@ant-design/icons-angular +MIT + +@ctrl/ngx-codemirror +MIT +MIT License + +Copyright (c) Scott Cooper + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ngrx/effects +MIT + +@ngrx/store +MIT + +@ngrx/store-devtools +MIT + +@ngui/auto-complete +MIT +Copyright (c) 2016 Allen Kim + + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@ngx-translate/core +MIT + +@ngx-translate/http-loader +MIT + +@webcomponents/custom-elements +BSD-3-Clause +# License + +Everything in this repo is BSD style license unless otherwise specified. + +Copyright (c) 2015 The Polymer Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. +* Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +acorn +MIT +Copyright (C) 2012-2018 by various contributors (see AUTHORS) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +ajv +MIT +The MIT License (MIT) + +Copyright (c) 2015-2017 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +angular-feather +MIT +The MIT License + +Copyright (c) 2017 Michael Bazos + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +assert +MIT +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +backo2 +MIT + +codemirror +MIT +MIT License + +Copyright (C) 2017 by Marijn Haverbeke and others + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +codemirror-graphql +MIT +MIT License + +Copyright (c) 2019 GraphQL Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +comlink +Apache-2.0 + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +comment-regex +MIT +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +core-js +MIT +Copyright (c) 2014-2020 Denis Pushkarev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +css-loader +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +curlup +MIT + +d +ISC +ISC License + +Copyright (c) 2013-2019, Mariusz Nowak, @medikoo, medikoo.com + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +date-fns +MIT +# License + +date-fns is licensed under the [MIT license](http://kossnocorp.mit-license.org). +Read more about MIT at [TLDRLegal](https://tldrlegal.com/license/mit-license). + + +deepmerge +MIT +The MIT License (MIT) + +Copyright (c) 2012 James Halliday, Josh Duff, and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +dexie +Apache-2.0 +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +es5-ext +ISC +ISC License + +Copyright (c) 2011-2019, Mariusz Nowak, @medikoo, medikoo.com + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +es6-symbol +ISC +ISC License + +Copyright (c) 2013-2019, Mariusz Nowak, @medikoo, medikoo.com + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +event-emitter +MIT +Copyright (C) 2012-2015 Mariusz Nowak (www.medikoo.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +eventemitter3 +MIT +The MIT License (MIT) + +Copyright (c) 2014 Arnout Kazemier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ext +ISC +ISC License + +Copyright (c) 2011-2019, Mariusz Nowak, @medikoo, medikoo.com + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +fast-deep-equal +MIT +MIT License + +Copyright (c) 2017 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +file-dialog +MIT + +file-saver +MIT +The MIT License + +Copyright © 2016 [Eli Grey][1]. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + [1]: http://eligrey.com + + +graphql +MIT +MIT License + +Copyright (c) 2019 GraphQL Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +graphql-language-service-interface +MIT +MIT License + +Copyright (c) 2019 GraphQL Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +graphql-language-service-parser +MIT +MIT License + +Copyright (c) 2019 GraphQL Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +graphql-language-service-utils +MIT +MIT License + +Copyright (c) 2019 GraphQL Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +graphql-query-compress +MIT + +Copyright (c) 2017-2019 Dr. Ralf S. Engelschall (http://engelschall.com/) + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +inherits +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + + +is-promise +MIT +Copyright (c) 2014 Forbes Lindesay + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +iterall +MIT +Copyright (c) 2016 Lee Byron + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +lru-queue +MIT +Copyright (C) 2014 Mariusz Nowak (www.medikoo.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +marked +MIT +# License information + +## Contribution License Agreement + +If you contribute code to this project, you are implicitly allowing your code +to be distributed under the MIT license. You are also implicitly verifying that +all code is your original work. `` + +## Marked + +Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +## Markdown + +Copyright © 2004, John Gruber +http://daringfireball.net/ +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +* Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. + + +memoizee +ISC +ISC License + +Copyright (c) 2012-2018, Mariusz Nowak, @medikoo, medikoo.com + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +mousetrap +Apache-2.0 WITH LLVM-exception + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +--- Exceptions to the Apache 2.0 License ---- + +As an exception, if, as a result of your compiling your source code, portions +of this Software are embedded into an Object form of such source code, you +may redistribute such embedded portions in such Object form without complying +with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + +In addition, if you combine or link compiled forms of this Software with +software that is licensed under the GPLv2 ("Combined Software") and if a +court of competent jurisdiction determines that the patent provision (Section +3), the indemnity provision (Section 9) or other Section of the License +conflicts with the conditions of the GPLv2, you may retroactively and +prospectively choose to deem waived or otherwise exclude such Section(s) of +the License, but only in their entirety and only with respect to the Combined +Software. + + +mousetrap-global-bind +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +new-github-issue-url +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +next-tick +ISC +ISC License + +Copyright (c) 2012-2020, Mariusz Nowak, @medikoo, medikoo.com + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +ng-zorro-antd +MIT + +ngrx-store-localstorage +MIT +The MIT License (MIT) + +Copyright (c) 2016 Brian Troncone + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ngx-contextmenu +MIT +The MIT License (MIT) + +Copyright (c) 2016 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ngx-cookie-service +MIT +MIT License + +Copyright (c) 2017 7leads GmbH + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ngx-electron +MIT + +ngx-markdown +MIT +MIT License + +Copyright (c) 2017-2020 Jean-Francois Cere + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ngx-pipes +MIT + +ngx-popper +MIT +The MIT License (MIT) + +Copyright (c) 2016-2017 Jacob Harasimo. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +ngx-sortablejs +MIT +MIT License +----------- + +Copyright (c) 2016 Semen Bobrov +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + + +ngx-take-until-destroy +MIT + +ngx-toastr +MIT +The MIT License (MIT) + +Copyright (c) Scott Cooper + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +object-assign +MIT +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +popper.js +MIT + +prettier +MIT +Copyright © James Long and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +regenerator-runtime +MIT +MIT License + +Copyright (c) 2014-present, Facebook, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +resize-observer-polyfill +MIT +The MIT License (MIT) + +Copyright (c) 2016 Denis Rul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +sortablejs +MIT +MIT License + +Copyright (c) 2019 All contributors to Sortable + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +subscriptions-transport-ws +MIT +The MIT License (MIT) + +Copyright (c) 2015 - 2016 Meteor Development Group, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +sval +MIT +MIT License + +Copyright (c) 2018 Siubaak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permisßsion notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +symbol-observable +MIT +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Ben Lesh + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +timers-ext +ISC +ISC License + +Copyright (c) 2013-2018, Mariusz Nowak, @medikoo, medikoo.com + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +tinycolor2 +MIT +Copyright (c), Brian Grinstead, http://briangrinstead.com + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +to-no-case +MIT + +to-snake-case +MIT + +to-space-case +MIT + +tslib +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +type +ISC +ISC License + +Copyright (c) 2019, Mariusz Nowak, @medikoo, medikoo.com + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +util +MIT +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +uuid +MIT +The MIT License (MIT) + +Copyright (c) 2010-2016 Robert Kieffer and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +valid-url +Copyright (c) 2013 Odysseas Tsatalos and oDesk Corporation + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +webpack +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2020 Google LLC. http://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/5.js b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/5.js new file mode 100644 index 00000000..782c298d --- /dev/null +++ b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{kmxh:function(e,t,r){e.exports=function(e){"use strict";var t=Object.freeze({__proto__:null,get FunctionDeclaration(){return le},get VariableDeclaration(){return pe},get VariableDeclarator(){return de},get ClassDeclaration(){return fe},get ClassBody(){return me},get MethodDefinition(){return ge}}),r=Object.freeze({__proto__:null,get FunctionDeclaration(){return Re},get VariableDeclaration(){return De},get VariableDeclarator(){return Ue},get ClassDeclaration(){return Fe},get ClassBody(){return je},get MethodDefinition(){return He}}),i=Object.freeze,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.prototype.hasOwnProperty;function o(e,t){return a.call(e,t)}var c=Object.getOwnPropertyNames,h=Object.setPrototypeOf,u=Object.getPrototypeOf;function l(e){return u?u(e):e.__proto__}var p=Object.getOwnPropertyDescriptor;function d(e,t,r){for(;t;){var i=p(t,r),n=void 0!==i&&void 0===i.writable&&"function"==typeof i[e]&&i[e];if(n)return n;t=l(t)}}function f(e,t){return d("get",e,t)}function m(e,t){return d("set",e,t)}var g=Object.create;function y(e,t){var r,i;r=e,i=t,h?h(r,i):r.__proto__=i,e.prototype=g(t.prototype,{constructor:{value:e,writable:!0}})}var v=Object.assign||function(e){for(var t=1;t0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function H(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(o){n={error:o}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}function G(){for(var e=[],t=0;t":return r>i;case">=":return r>=i;case"<<":return r<>":return r>>i;case">>>":return r>>>i;case"+":return r+i;case"-":return r-i;case"*":return r*i;case"**":return Math.pow(r,i);case"/":return r/i;case"%":return r%i;case"|":return r|i;case"^":return r^i;case"&":return r&i;case"in":return r in i;case"instanceof":return r instanceof i;default:throw new SyntaxError("Unexpected token "+e.operator)}},AssignmentExpression:function(e,t){var r,i=ue(e.right,t),n=e.left;if("Identifier"===n.type){if(!(r=W(n,t,{getVar:!0,throwErr:!1}))){var s=t.global().find("window").get();r=new D(s,n.name)}}else{if("MemberExpression"!==n.type)return Ye(n,t,{feed:i});r=Q(n,t,{getVar:!0})}switch(e.operator){case"=":return r.set(i),r.get();case"+=":return r.set(r.get()+i),r.get();case"-=":return r.set(r.get()-i),r.get();case"*=":return r.set(r.get()*i),r.get();case"/=":return r.set(r.get()/i),r.get();case"%=":return r.set(r.get()%i),r.get();case"**=":return r.set(Math.pow(r.get(),i)),r.get();case"<<=":return r.set(r.get()<>=":return r.set(r.get()>>i),r.get();case">>>=":return r.set(r.get()>>>i),r.get();case"|=":return r.set(r.get()|i),r.get();case"^=":return r.set(r.get()^i),r.get();case"&=":return r.set(r.get()&i),r.get();default:throw new SyntaxError("Unexpected token "+e.operator)}},LogicalExpression:function(e,t){switch(e.operator){case"||":return ue(e.left,t)||ue(e.right,t);case"&&":return ue(e.left,t)&&ue(e.right,t);default:throw new SyntaxError("Unexpected token "+e.operator)}},MemberExpression:Q,ConditionalExpression:function(e,t){return ue(e.test,t)?ue(e.consequent,t):ue(e.alternate,t)},CallExpression:function(e,t){var r,i;if("MemberExpression"===e.callee.type){var n;if(i=Q(e.callee,t,{getObj:!0}),n=e.callee.computed?ue(e.callee.property,t):e.callee.property.name,"Super"===e.callee.object.type){var s=t.find("this").get();r=i[n].bind(s)}else r=i[n];if("function"!=typeof r)throw new TypeError(n+" is not a function");if(r[V])throw new TypeError("Class constructor "+n+" cannot be invoked without 'new'")}else if(i=t.find("this").get(),"function"!=typeof(r=ue(e.callee,t))||"Super"!==e.callee.type&&r[V]){var a;if("Identifier"===e.callee.type)a=e.callee.name;else try{a=JSON.stringify(r)}catch(rt){a=""+r}throw"function"!=typeof r?new TypeError(a+" is not a function"):new TypeError("Class constructor "+a+" cannot be invoked without 'new'")}for(var o=[],c=0;c":return[2,r>i];case">=":return[2,r>=i];case"<<":return[2,r<>":return[2,r>>i];case">>>":return[2,r>>>i];case"+":return[2,r+i];case"-":return[2,r-i];case"*":return[2,r*i];case"**":return[2,Math.pow(r,i)];case"/":return[2,r/i];case"%":return[2,r%i];case"|":return[2,r|i];case"^":return[2,r^i];case"&":return[2,r&i];case"in":return[2,r in i];case"instanceof":return[2,r instanceof i];default:throw new SyntaxError("Unexpected token "+e.operator)}}}))},AssignmentExpression:function(e,t){var r,i,n,s;return F(this,(function(a){switch(a.label){case 0:return[5,j(Me(e.right,t))];case 1:return r=a.sent(),"Identifier"!==(i=e.left).type?[3,3]:[5,j(ye(i,t,{getVar:!0,throwErr:!1}))];case 2:return(n=a.sent())||(s=t.global().find("window").get(),n=new D(s,i.name)),[3,7];case 3:return"MemberExpression"!==i.type?[3,5]:[5,j(_e(i,t,{getVar:!0}))];case 4:return n=a.sent(),[3,7];case 5:return[5,j(ze(i,t,{feed:r}))];case 6:return[2,a.sent()];case 7:switch(e.operator){case"=":return n.set(r),[2,n.get()];case"+=":return n.set(n.get()+r),[2,n.get()];case"-=":return n.set(n.get()-r),[2,n.get()];case"*=":return n.set(n.get()*r),[2,n.get()];case"/=":return n.set(n.get()/r),[2,n.get()];case"%=":return n.set(n.get()%r),[2,n.get()];case"**=":return n.set(Math.pow(n.get(),r)),[2,n.get()];case"<<=":return n.set(n.get()<>=":return n.set(n.get()>>r),[2,n.get()];case">>>=":return n.set(n.get()>>>r),[2,n.get()];case"|=":return n.set(n.get()|r),[2,n.get()];case"^=":return n.set(n.get()^r),[2,n.get()];case"&=":return n.set(n.get()&r),[2,n.get()];default:throw new SyntaxError("Unexpected token "+e.operator)}}}))},LogicalExpression:function(e,t){var r,i;return F(this,(function(n){switch(n.label){case 0:switch(e.operator){case"||":return[3,1];case"&&":return[3,5]}return[3,9];case 1:return[5,j(Me(e.left,t))];case 2:return(r=n.sent())?[3,4]:[5,j(Me(e.right,t))];case 3:r=n.sent(),n.label=4;case 4:return[2,r];case 5:return[5,j(Me(e.left,t))];case 6:return(i=n.sent())?[5,j(Me(e.right,t))]:[3,8];case 7:i=n.sent(),n.label=8;case 8:return[2,i];case 9:throw new SyntaxError("Unexpected token "+e.operator)}}))},MemberExpression:_e,ConditionalExpression:function(e,t){var r;return F(this,(function(i){switch(i.label){case 0:return[5,j(Me(e.test,t))];case 1:return i.sent()?[5,j(Me(e.consequent,t))]:[3,3];case 2:return r=i.sent(),[3,5];case 3:return[5,j(Me(e.alternate,t))];case 4:r=i.sent(),i.label=5;case 5:return[2,r]}}))},CallExpression:function(e,t){var r,i,n,s,a,o,c,h,u,l,p,d;return F(this,(function(f){switch(f.label){case 0:return"MemberExpression"!==e.callee.type?[3,5]:[5,j(_e(e.callee,t,{getObj:!0}))];case 1:return i=f.sent(),n=void 0,e.callee.computed?[5,j(Me(e.callee.property,t))]:[3,3];case 2:return n=f.sent(),[3,4];case 3:n=e.callee.property.name,f.label=4;case 4:if("Super"===e.callee.object.type?(s=t.find("this").get(),r=i[n].bind(s)):r=i[n],"function"!=typeof r)throw new TypeError(n+" is not a function");if(r[V])throw new TypeError("Class constructor "+n+" cannot be invoked without 'new'");return[3,7];case 5:return i=t.find("this").get(),[5,j(Me(e.callee,t))];case 6:if("function"!=typeof(r=f.sent())||"Super"!==e.callee.type&&r[V]){if("Identifier"===e.callee.type)a=e.callee.name;else try{a=JSON.stringify(r)}catch(rt){a=""+r}throw"function"!=typeof r?new TypeError(a+" is not a function"):new TypeError("Class constructor "+a+" cannot be invoked without 'new'")}f.label=7;case 7:o=[],c=0,f.label=8;case 8:return c=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}(r),n=void 0,C.RES=i.next(),[4,C]):[3,8];case 2:n=l.sent(),l.label=3;case 3:return n.done?[3,7]:[5,j(Xe(e,t,{value:n.value}))];case 4:if((o=l.sent())===P)return[3,7];if(o===A)return[3,5];if(o===I)return[2,o];l.label=5;case 5:return C.RES=i.next(),[4,C];case 6:return n=l.sent(),[3,3];case 7:return[3,15];case 8:l.trys.push([8,13,14,15]),s=j(r),a=s.next(),l.label=9;case 9:return a.done?[3,12]:[5,j(Xe(e,t,{value:a.value}))];case 10:if((o=l.sent())===P)return[3,12];if(o===A)return[3,11];if(o===I)return[2,o];l.label=11;case 11:return a=s.next(),[3,9];case 12:return[3,15];case 13:return c=l.sent(),h={error:c},[3,15];case 14:try{a&&!a.done&&(u=s.return)&&u.call(s)}finally{if(h)throw h.error}return[7];case 15:return[2]}}))}});function Te(e,t,r){var i,n,s,a,o,c,h,u,l,p,d,f,m,g,y;return void 0===r&&(r={}),F(this,(function(x){switch(x.label){case 0:n=void 0===(i=r.kind)?"var":i,a=void 0!==(s=r.hoist)&&s,c=void 0!==(o=r.onlyBlock)&&o,u=void 0===(h=r.feed)?{}:h,l=[],p=0,x.label=1;case 1:return p-1;c--)e.body.splice(a[c],1);e.body=s.concat(e.body)}return[2]}}))}function qe(e,t){var r,i,n,s,a;return F(this,(function(o){switch(o.label){case 0:switch(e.type){case"VariableDeclaration":return[3,1];case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":return[3,3];case"BlockStatement":return[3,5];case"SwitchStatement":return[3,10];case"TryStatement":return[3,17]}return[3,30];case 1:return[5,j(De(e,t,{hoist:!0}))];case 2:return o.sent(),[3,30];case 3:return[5,j(qe(e.body,t))];case 4:return o.sent(),[3,30];case 5:a=0,o.label=6;case 6:return a-1;o--)e.body.splice(a[o],1);e.body=s.concat(e.body)}}function Ze(e,t){switch(e.type){case"VariableDeclaration":pe(e,t,{hoist:!0});break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":Ze(e.body,t);break;case"BlockStatement":for(var r=0;re)return!1;if((r+=t[i+1])>=e)return!0}}function f(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&h.test(String.fromCharCode(e)):!1!==t&&d(e,l)))}function m(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==t&&(d(e,l)||d(e,p)))))}var g=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function y(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},x={startsExpr:!0},b={};function _(e,t){return void 0===t&&(t={}),t.keyword=e,b[e]=new g(e,t)}var k={num:new g("num",x),regexp:new g("regexp",x),string:new g("string",x),name:new g("name",x),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",v),semi:new g(";",v),colon:new g(":",v),dot:new g("."),question:new g("?",v),arrow:new g("=>",v),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",v),backQuote:new g("`",x),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),_break:_("break"),_case:_("case",v),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",v),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",v),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",x),_if:_("if"),_return:_("return",v),_switch:_("switch"),_throw:_("throw",v),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",x),_super:_("super",x),_class:_("class",x),_extends:_("extends",v),_export:_("export"),_import:_("import",x),_null:_("null",x),_true:_("true",x),_false:_("false",x),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(w.source,"g");function E(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var C=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,I=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,A=Object.prototype,P=A.hasOwnProperty,T=A.toString;function L(e,t){return P.call(e,t)}var N=Array.isArray||function(e){return"[object Array]"===T.call(e)};function V(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var B=function(e,t){this.line=e,this.column=t};B.prototype.offset=function(e){return new B(this.line,this.column+e)};var O=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function M(e,t){for(var r=1,i=0;;){S.lastIndex=i;var n=S.exec(e);if(!(n&&n.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),N(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}return N(t.onComment)&&(t.onComment=function(e,t){return function(r,i,n,s,a,o){var c={type:r?"Block":"Line",value:i,start:n,end:s};e.locations&&(c.loc=new O(this,a,o)),e.ranges&&(c.range=[n,s]),t.push(c)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=V(s[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";if(!0!==e.allowReserved){for(var a=e.ecmaVersion;!(n=i[a]);a--);"module"===e.sourceType&&(n+=" await")}this.reservedWords=V(n);var o=(n?n+" ":"")+i.strict;this.reservedWordsStrict=V(o),this.reservedWordsStrictBind=V(o+" "+i.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=k.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},F={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};U.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},F.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},F.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},F.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},F.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},F.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},F.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},U.prototype.inNonArrowFunction=function(){return(2&this.currentThisScope().flags)>0},U.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,i=0;i-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},j.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},j.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case k._class:return e&&this.unexpected(),this.parseClass(s,!0);case k._if:return this.parseIfStatement(s);case k._return:return this.parseReturnStatement(s);case k._switch:return this.parseSwitchStatement(s);case k._throw:return this.parseThrowStatement(s);case k._try:return this.parseTryStatement(s);case k._const:case k._var:return i=i||this.value,e&&"var"!==i&&this.unexpected(),this.parseVarStatement(s,i);case k._while:return this.parseWhileStatement(s);case k._with:return this.parseWithStatement(s);case k.braceL:return this.parseBlock(!0,s);case k.semi:return this.parseEmptyStatement(s);case k._export:case k._import:if(this.options.ecmaVersion>10&&n===k._import){I.lastIndex=this.pos;var a=I.exec(this.input);if(40===this.input.charCodeAt(this.pos+a[0].length))return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===k._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var o=this.value,c=this.parseExpression();return n===k.name&&"Identifier"===c.type&&this.eat(k.colon)?this.parseLabeledStatement(s,o,c,e):this.parseExpressionStatement(s,c)}},W.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(k.semi)||this.insertSemicolon()?e.label=null:this.type!==k.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(k.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},W.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(q),this.enterScope(0),this.expect(k.parenL),this.type===k.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===k._var||this.type===k._const||r){var i=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),(this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===i.declarations.length?(this.options.ecmaVersion>=9&&(this.type===k._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var s=new G,a=this.parseExpression(!0,s);return this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===k._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(e,a)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,a))},W.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Q|(r?0:X),!1,t)},W.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(k._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},W.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(k.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},W.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(k.braceL),this.labels.push(z),this.enterScope(0);for(var r=!1;this.type!==k.braceR;)if(this.type===k._case||this.type===k._default){var i=this.type===k._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(k.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},W.parseThrowStatement=function(e){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var K=[];W.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===k._catch){var t=this.startNode();if(this.next(),this.eat(k.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLVal(t.param,r?4:2),this.expect(k.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(k._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},W.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},W.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(q),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},W.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},W.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},W.parseLabeledStatement=function(e,t,r,i){for(var n=0,s=this.labels;n=0;o--){var c=this.labels[o];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},W.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},W.parseBlock=function(e,t){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(k.braceL),e&&this.enterScope(0);!this.eat(k.braceR);){var r=this.parseStatement(null);t.body.push(r)}return e&&this.exitScope(),this.finishNode(t,"BlockStatement")},W.parseFor=function(e,t){return e.init=t,this.expect(k.semi),e.test=this.type===k.semi?null:this.parseExpression(),this.expect(k.semi),e.update=this.type===k.parenR?null:this.parseExpression(),this.expect(k.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},W.parseForIn=function(e,t){var r=this.type===k._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)?this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(k.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},W.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(k.eq)?i.init=this.parseMaybeAssign(t):"const"!==r||this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===i.id.type||t&&(this.type===k._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(k.comma))break}return e},W.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var Q=1,X=2;W.parseFunction=function(e,t,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===k.star&&t&X&&this.unexpected(),e.generator=this.eat(k.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&Q&&(e.id=4&t&&this.type!==k.name?null:this.parseIdent(),!e.id||t&X||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(D(e.async,e.generator)),t&Q||(e.id=this.type===k.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&Q?"FunctionDeclaration":"FunctionExpression")},W.parseFunctionParams=function(e){this.expect(k.parenL),e.params=this.parseBindingList(k.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},W.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.startNode(),n=!1;for(i.body=[],this.expect(k.braceL);!this.eat(k.braceR);){var s=this.parseClassElement(null!==e.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind&&(n&&this.raise(s.start,"Duplicate constructor in the same class"),n=!0))}return e.body=this.finishNode(i,"ClassBody"),this.strict=r,this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},W.parseClassElement=function(e){var t=this;if(this.eat(k.semi))return null;var r=this.startNode(),i=function(e,i){void 0===i&&(i=!1);var n=t.start,s=t.startLoc;return!(!t.eatContextual(e)||(t.type===k.parenL||i&&t.canInsertSemicolon())&&(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(n,s),r.key.name=e,t.finishNode(r.key,"Identifier"),1))};r.kind="method",r.static=i("static");var n=this.eat(k.star),s=!1;n||(this.options.ecmaVersion>=8&&i("async",!0)?(s=!0,n=this.options.ecmaVersion>=9&&this.eat(k.star)):i("get")?r.kind="get":i("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var a=r.key,o=!1;return r.computed||r.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?r.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==r.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),n&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),r.kind="constructor",o=e),this.parseClassMethod(r,n,s,o),"get"===r.kind&&0!==r.value.params.length&&this.raiseRecoverable(r.value.start,"getter should have no params"),"set"===r.kind&&1!==r.value.params.length&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),"set"===r.kind&&"RestElement"===r.value.params[0].type&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r},W.parseClassMethod=function(e,t,r,i){return e.value=this.parseMethod(t,r,i),this.finishNode(e,"MethodDefinition")},W.parseClassId=function(e,t){this.type===k.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},W.parseClassSuper=function(e){e.superClass=this.eat(k._extends)?this.parseExprSubscripts():null},W.parseExport=function(e,t){if(this.next(),this.eat(k.star))return this.expectContextual("from"),this.type!==k.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(k._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===k._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(i,4|Q,!1,r)}else if(this.type===k._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==k.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,a=e.specifiers;s=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,n=e.properties;i=8&&!s&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(k._function))return this.parseFunction(this.startNodeAt(i,n),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(k.arrow))return this.parseArrowExpression(this.startNodeAt(i,n),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===k.name&&!s)return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(k.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,n),[a],!0)}return a;case k.regexp:var o=this.value;return(t=this.parseLiteral(o.value)).regex={pattern:o.pattern,flags:o.flags},t;case k.num:case k.string:return this.parseLiteral(this.value);case k._null:case k._true:case k._false:return(t=this.startNode()).value=this.type===k._null?null:this.type===k._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case k.parenL:var c=this.start,h=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),h;case k.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(k.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case k.braceL:return this.parseObj(!1,e);case k._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case k._class:return this.parseClass(this.startNode(),!1);case k._new:return this.parseNew();case k.backQuote:return this.parseTemplate();case k._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Z.parseDynamicImport=function(){var e=this.startNode();return this.next(),this.type!==k.parenL&&this.unexpected(),this.finishNode(e,"Import")},Z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1)),this.next(),this.finishNode(t,"Literal")},Z.parseParenExpression=function(){this.expect(k.parenL);var e=this.parseExpression();return this.expect(k.parenR),e},Z.parseParenAndDistinguishExpression=function(e){var t,r=this.start,i=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,o=this.startLoc,c=[],h=!0,u=!1,l=new G,p=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==k.parenR;){if(h?h=!1:this.expect(k.comma),n&&this.afterTrailingComma(k.parenR,!0)){u=!0;break}if(this.type===k.ellipsis){s=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===k.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,l,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(k.parenR),e&&!this.canInsertSemicolon()&&this.eat(k.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(r,i,c);c.length&&!u||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(l,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?((t=this.startNodeAt(a,o)).expressions=c,this.finishNodeAt(t,"SequenceExpression",f,m)):t=c[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,i);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},Z.parseParenItem=function(e){return e},Z.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var Y=[];Z.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(k.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||r)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var i=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),i,n,!0),this.options.ecmaVersion>10&&"Import"===e.callee.type&&this.raise(e.callee.start,"Cannot use new with import(...)"),e.arguments=this.eat(k.parenL)?this.parseExprList(k.parenR,this.options.ecmaVersion>=8&&"Import"!==e.callee.type,!1):Y,this.finishNode(e,"NewExpression")},Z.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===k.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===k.backQuote,this.finishNode(r,"TemplateElement")},Z.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===k.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(k.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(k.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},Z.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===k.name||this.type===k.num||this.type===k.string||this.type===k.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===k.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},Z.parseObj=function(e,t){var r=this.startNode(),i=!0,n={};for(r.properties=[],this.next();!this.eat(k.braceR);){if(i)i=!1;else if(this.expect(k.comma),this.afterTrailingComma(k.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,n,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},Z.parseProperty=function(e,t){var r,i,n,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(k.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===k.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===k.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,t),this.type===k.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(n=this.start,s=this.startLoc),e||(r=this.eat(k.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(a)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(k.star),this.parsePropertyName(a,t)):i=!1,this.parsePropertyValue(a,e,r,i,n,s,t,o),this.finishNode(a,"Property")},Z.parsePropertyValue=function(e,t,r,i,n,s,a,o){(r||i)&&this.type===k.colon&&this.unexpected(),this.eat(k.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===k.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,i)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===k.comma||this.type===k.braceR?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,s,e.key):this.type===k.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,s,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected():((r||i)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1),e.value.params.length!==("get"===e.kind?0:1)?this.raiseRecoverable(e.value.start,"get"===e.kind?"getter should have no params":"setter should have exactly one param"):"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params"))},Z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(k.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(k.bracketR),e.key;e.computed=!1}return e.key=this.type===k.num||this.type===k.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Z.parseMethod=function(e,t,r){var i=this.startNode(),n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|D(t,i.generator)|(r?128:0)),this.expect(k.parenL),i.params=this.parseBindingList(k.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")},Z.parseArrowExpression=function(e,t,r){var i=this.yieldPos,n=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|D(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},Z.parseFunctionBody=function(e,t,r){var i=this.strict,n=!1;if(t&&this.type!==k.braceL)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!s||(n=this.strictDirective(this.end))&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],n&&(this.strict=!0),this.checkParams(e,!i&&!n&&!t&&!r&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitScope(),this.strict&&e.id&&this.checkLVal(e.id,5),this.strict=i},Z.isSimpleParamList=function(e){for(var t=0,r=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&1&n.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var s=this.currentScope();i=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){i=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],3&o.flags)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ee.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ee.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ee.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},ee.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var re=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new O(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ie=U.prototype;function ne(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}ie.startNode=function(){return new re(this,this.start,this.startLoc)},ie.startNodeAt=function(e,t){return new re(this,e,t)},ie.finishNode=function(e,t){return ne.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ie.finishNodeAt=function(e,t,r,i){return ne.call(this,e,t,r,i)};var se=function(e,t,r,i,n){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=i,this.generator=!!n},ae={b_stat:new se("{",!1),b_expr:new se("{",!0),b_tmpl:new se("${",!1),p_stat:new se("(",!1),p_expr:new se("(",!0),q_tmpl:new se("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new se("function",!1),f_expr:new se("function",!0),f_expr_gen:new se("function",!0,!1,null,!0),f_gen:new se("function",!1,!1,null,!0)},oe=U.prototype;oe.initialContext=function(){return[ae.b_stat]},oe.braceIsBlock=function(e){var t=this.curContext();return t===ae.f_expr||t===ae.f_stat||(e!==k.colon||t!==ae.b_stat&&t!==ae.b_expr?e===k._return||e===k.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):e===k._else||e===k.semi||e===k.eof||e===k.parenR||e===k.arrow||(e===k.braceL?t===ae.b_stat:e!==k._var&&e!==k._const&&e!==k.name&&!this.exprAllowed):!t.isExpr)},oe.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},oe.updateContext=function(e){var t,r=this.type;r.keyword&&e===k.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},k.parenR.updateContext=k.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ae.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},k.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ae.b_stat:ae.b_expr),this.exprAllowed=!0},k.dollarBraceL.updateContext=function(){this.context.push(ae.b_tmpl),this.exprAllowed=!0},k.parenL.updateContext=function(e){this.context.push(e===k._if||e===k._for||e===k._with||e===k._while?ae.p_stat:ae.p_expr),this.exprAllowed=!0},k.incDec.updateContext=function(){},k._function.updateContext=k._class.updateContext=function(e){!e.beforeExpr||e===k.semi||e===k._else||e===k._return&&w.test(this.input.slice(this.lastTokEnd,this.start))||(e===k.colon||e===k.braceL)&&this.curContext()===ae.b_stat?this.context.push(ae.f_stat):this.context.push(ae.f_expr),this.exprAllowed=!1},k.backQuote.updateContext=function(){this.curContext()===ae.q_tmpl?this.context.pop():this.context.push(ae.q_tmpl),this.exprAllowed=!1},k.star.updateContext=function(e){if(e===k._function){var t=this.context.length-1;this.context[t]=this.context[t]===ae.f_expr?ae.f_expr_gen:ae.f_gen}this.exprAllowed=!0},k.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==k.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ce={9:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",10:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic",11:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic"},he="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ue={9:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",10:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},le={};function pe(e){var t=le[e]={binary:V(ce[e]+" "+he),nonBinary:{General_Category:V(he),Script:V(ue[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}pe(9),pe(10),pe(11);var de=U.prototype,fe=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=le[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function me(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function ge(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function ye(e){return e>=65&&e<=90||e>=97&&e<=122}function ve(e){return ye(e)||95===e}function xe(e){return ve(e)||be(e)}function be(e){return e>=48&&e<=57}function _e(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ke(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function we(e){return e>=48&&e<=55}fe.prototype.reset=function(e,t,r){var i=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchN=i&&this.parser.options.ecmaVersion>=9},fe.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},fe.prototype.at=function(e){var t=this.source,r=t.length;if(e>=r)return-1;var i=t.charCodeAt(e);if(!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var n=t.charCodeAt(e+1);return n>=56320&&n<=57343?(i<<10)+n-56613888:i},fe.prototype.nextIndex=function(e){var t=this.source,r=t.length;if(e>=r)return r;var i,n=t.charCodeAt(e);return!this.switchU||n<=55295||n>=57344||e+1>=r||(i=t.charCodeAt(e+1))<56320||i>57343?e+1:e+2},fe.prototype.current=function(){return this.at(this.pos)},fe.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},fe.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},fe.prototype.eat=function(e){return this.current()===e&&(this.advance(),!0)},de.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=0;i-1&&this.raise(e.start,"Duplicate regular expression flag")}},de.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},de.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},de.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},de.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},de.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return-1!==n&&n=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},de.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},de.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},de.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!ge(t)&&(e.lastIntValue=t,e.advance(),!0)},de.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!ge(r);)e.advance();return e.pos!==t},de.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},de.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},de.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},de.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=me(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=me(e.lastIntValue);return!0}return!1},de.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=e.current();return e.advance(),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(r=e.lastIntValue),function(e){return f(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},de.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=e.current();return e.advance(),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(r=e.lastIntValue),function(e){return m(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},de.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},de.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},de.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},de.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},de.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},de.regexp_eatZero=function(e){return 48===e.current()&&!be(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},de.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},de.regexp_eatControlLetter=function(e){var t=e.current();return!!ye(t)&&(e.lastIntValue=t%32,e.advance(),!0)},de.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t,r=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(e.switchU&&i>=55296&&i<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(i-55296)+(s-56320)+65536,!0}e.pos=n,e.lastIntValue=i}return!0}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(t=e.lastIntValue)>=0&&t<=1114111)return!0;e.switchU&&e.raise("Invalid unicode escape"),e.pos=r}return!1},de.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},de.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},de.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},de.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e))return this.regexp_validateUnicodePropertyNameAndValue(e,r,e.lastStringValue),!0}return e.pos=t,!!this.regexp_eatLoneUnicodePropertyNameOrValue(e)&&(this.regexp_validateUnicodePropertyNameOrValue(e,e.lastStringValue),!0)},de.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){L(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},de.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},de.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ve(t=e.current());)e.lastStringValue+=me(t),e.advance();return""!==e.lastStringValue},de.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";xe(t=e.current());)e.lastStringValue+=me(t),e.advance();return""!==e.lastStringValue},de.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},de.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},de.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},de.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||we(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return 93!==i&&(e.lastIntValue=i,e.advance(),!0)},de.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},de.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!be(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},de.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},de.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;be(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},de.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;_e(r=e.current());)e.lastIntValue=16*e.lastIntValue+ke(r),e.advance();return e.pos!==t},de.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?64*t+8*r+e.lastIntValue:8*t+r}else e.lastIntValue=t;return!0}return!1},de.regexp_eatOctalDigit=function(e){var t=e.current();return we(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},de.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i>10),56320+(1023&e)))}Ee.next=function(){this.options.onToken&&this.options.onToken(new Se(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ee.getToken=function(){return this.next(),new Se(this)},"undefined"!=typeof Symbol&&(Ee[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===k.eof,value:t}}}}),Ee.curContext=function(){return this.context[this.context.length-1]},Ee.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(k.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Ee.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Ee.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Ee.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),r=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(S.lastIndex=r;(e=S.exec(this.input))&&e.index8&&e<14||e>=5760&&C.test(String.fromCharCode(e))))break e;++this.pos}}},Ee.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},Ee.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(k.ellipsis)):(++this.pos,this.finishToken(k.dot))},Ee.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(k.assign,2):this.finishOp(k.slash,1)},Ee.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=42===e?k.star:k.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,i=k.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(k.assign,r+1):this.finishOp(i,r)},Ee.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?k.logicalOR:k.logicalAND,2):61===t?this.finishOp(k.assign,2):this.finishOp(124===e?k.bitwiseOR:k.bitwiseAND,1)},Ee.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(k.assign,2):this.finishOp(k.bitwiseXOR,1)},Ee.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!w.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(k.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(k.assign,2):this.finishOp(k.plusMin,1)},Ee.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(k.assign,r+1):this.finishOp(k.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(k.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ee.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(k.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(k.arrow)):this.finishOp(61===e?k.eq:k.prefix,1)},Ee.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(k.parenL);case 41:return++this.pos,this.finishToken(k.parenR);case 59:return++this.pos,this.finishToken(k.semi);case 44:return++this.pos,this.finishToken(k.comma);case 91:return++this.pos,this.finishToken(k.bracketL);case 93:return++this.pos,this.finishToken(k.bracketR);case 123:return++this.pos,this.finishToken(k.braceL);case 125:return++this.pos,this.finishToken(k.braceR);case 58:return++this.pos,this.finishToken(k.colon);case 63:return++this.pos,this.finishToken(k.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(k.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(k.prefix,1)}this.raise(this.pos,"Unexpected character '"+Ce(e)+"'")},Ee.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},Ee.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(w.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new fe(this));o.reset(r,n,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=new RegExp(n,a)}catch(h){}return this.finishToken(k.regexp,{pattern:n,flags:a,value:c})},Ee.readInt=function(e,t){for(var r=this.pos,i=0,n=0,s=null==t?1/0:t;n=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.pos,i=i*e+a}return this.pos===r||null!=t&&this.pos-r!==t?null:i},Ee.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r="undefined"!=typeof BigInt?BigInt(this.input.slice(t,this.pos)):null,++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(k.num,r)},Ee.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number"),r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1);var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var n=this.input.slice(t,this.pos),s="undefined"!=typeof BigInt?BigInt(n):null;return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(k.num,s)}46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=this.input.slice(t,this.pos),o=r?parseInt(a,8):parseFloat(a);return this.finishToken(k.num,o)},Ee.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Ee.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;92===i?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(E(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(k.string,t)};var Ie={};Ee.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Ie)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ee.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ie;this.raise(e,t)},Ee.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==k.template&&this.type!==k.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(k.template,e)):36===r?(this.pos+=2,this.finishToken(k.dollarBraceL)):(++this.pos,this.finishToken(k.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Ee.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return E(t)?"":String.fromCharCode(t)}},Ee.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},Ee.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos=(a.addQueryDepthLimit||0))return{query:"",meta:{}};var m=f&&f.getFields&&f.getFields(),y="";return m&&(y=Object.keys(m).reduce((function(t,c){if(r.filter((function(e){return e.name===c&&e.type===g})).length)return"";var u=i.generateFieldData(c,g,s(r,[{name:e,type:g}]),n+1,a);if(!u)return t;var h=u.query;return o.hasArgs=o.hasArgs||u.meta.hasArgs||!1,h?t+"\n"+h:t}),"").substring(1)),y&&(p+="{\n"+y+"\n",p+=" ".repeat(n*c)+"}"),{query:p,meta:o}},e}()}}]); \ No newline at end of file diff --git a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/7.js b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/7.js new file mode 100644 index 00000000..3506b893 --- /dev/null +++ b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{azY9:function(e,n,t){!function(e){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,n){return e(n={exports:{}},n.exports),n.exports}var r=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){if(!Boolean(e))throw new Error(n)}}));t(r);var o=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}}));t(o);var a=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Source=void 0;var t=a(r),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,n,i){this.body=e,this.name=n||"GraphQL request",this.locationOffset=i||{line:1,column:1},this.locationOffset.line>0||(0,t.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,t.default)(0,"column in locationOffset is 1-indexed and must be positive")};n.Source=s,(0,i.default)(s)}));t(a);var s=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=function(e,n){for(var t,i=/\r\n|[\n\r]/g,r=1,o=n+1;(t=i.exec(e.body))&&t.index120){for(var p=Math.floor(c/80),f=c%80,h=[],T=0;T",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});n.TokenKind=t}));t(l);var d=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;n.default=t}));t(d);var p=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=n,e.prototype.inspect=n,i.default&&(e.prototype[i.default]=n)};var t,i=(t=d)&&t.__esModule?t:{default:t}}));t(p);var f=i((function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"==i(e)&&null!==e}}));t(f);var h=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r,n.printError=o;var t,i=(t=f)&&t.__esModule?t:{default:t};function r(e,n,t,o,a,c,u){var l=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,d=t;if(!d&&l){var p=l[0];d=p&&p.loc&&p.loc.source}var f,h=o;!h&&l&&(h=l.reduce((function(e,n){return n.loc&&e.push(n.loc.start),e}),[])),h&&0===h.length&&(h=void 0),o&&t?f=o.map((function(e){return(0,s.getLocation)(t,e)})):l&&(f=l.reduce((function(e,n){return n.loc&&e.push((0,s.getLocation)(n.loc.source,n.loc.start)),e}),[]));var T=u;if(null==T&&null!=c){var v=c.extensions;(0,i.default)(v)&&(T=v)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:Boolean(f)},path:{value:a||void 0,enumerable:Boolean(a)},nodes:{value:l||void 0},source:{value:d||void 0},positions:{value:h||void 0},originalError:{value:c},extensions:{value:T||void 0,enumerable:Boolean(T)}}),c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function o(e){var n=e.message;if(e.nodes)for(var t=0,i=e.nodes;t0&&r(n[0]);)n.shift();for(;n.length>0&&r(n[n.length-1]);)n.pop();return n.join("\n")},n.getBlockStringIndentation=t,n.printBlockString=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!i||o||t,s="";return!a||i&&r||(s+="\n"+n),s+=n?e.replace(/\n/g,"\n"+n):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}}));t(v);var E=i((function(e,n){var t;function i(){return this.lastToken=this.token,this.token=this.lookahead()}function r(){var e=this.token;if(e.kind!==l.TokenKind.EOF)do{e=e.next||(e.next=s(this,e))}while(e.kind===l.TokenKind.COMMENT);return e}function o(e,n,t,i,r,o,a){this.kind=e,this.start=n,this.end=t,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}function a(e){return isNaN(e)?l.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function s(e,n){var t=e.source,i=t.body,r=i.length,s=function(e,n,t){for(var i=e.length,r=n;r=r)return new o(l.TokenKind.EOF,r,r,d,p,n);var f=i.charCodeAt(s);switch(f){case 33:return new o(l.TokenKind.BANG,s,s+1,d,p,n);case 35:return function(e,n,t,i,r){var a,s=e.body,c=n;do{a=s.charCodeAt(++c)}while(!isNaN(a)&&(a>31||9===a));return new o(l.TokenKind.COMMENT,n,c,t,i,r,s.slice(n+1,c))}(t,s,d,p,n);case 36:return new o(l.TokenKind.DOLLAR,s,s+1,d,p,n);case 38:return new o(l.TokenKind.AMP,s,s+1,d,p,n);case 40:return new o(l.TokenKind.PAREN_L,s,s+1,d,p,n);case 41:return new o(l.TokenKind.PAREN_R,s,s+1,d,p,n);case 46:if(46===i.charCodeAt(s+1)&&46===i.charCodeAt(s+2))return new o(l.TokenKind.SPREAD,s,s+3,d,p,n);break;case 58:return new o(l.TokenKind.COLON,s,s+1,d,p,n);case 61:return new o(l.TokenKind.EQUALS,s,s+1,d,p,n);case 64:return new o(l.TokenKind.AT,s,s+1,d,p,n);case 91:return new o(l.TokenKind.BRACKET_L,s,s+1,d,p,n);case 93:return new o(l.TokenKind.BRACKET_R,s,s+1,d,p,n);case 123:return new o(l.TokenKind.BRACE_L,s,s+1,d,p,n);case 124:return new o(l.TokenKind.PIPE,s,s+1,d,p,n);case 125:return new o(l.TokenKind.BRACE_R,s,s+1,d,p,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,n,t,i,r){for(var a=e.body,s=a.length,c=n+1,u=0;c!==s&&!isNaN(u=a.charCodeAt(c))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++c;return new o(l.TokenKind.NAME,n,c,t,i,r,a.slice(n,c))}(t,s,d,p,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,n,t,i,r,s){var u=e.body,d=t,p=n,f=!1;if(45===d&&(d=u.charCodeAt(++p)),48===d){if((d=u.charCodeAt(++p))>=48&&d<=57)throw(0,T.syntaxError)(e,p,"Invalid number, unexpected digit after 0: ".concat(a(d),"."))}else p=c(e,p,d),d=u.charCodeAt(p);if(46===d&&(f=!0,d=u.charCodeAt(++p),p=c(e,p,d),d=u.charCodeAt(p)),69!==d&&101!==d||(f=!0,43!==(d=u.charCodeAt(++p))&&45!==d||(d=u.charCodeAt(++p)),p=c(e,p,d),d=u.charCodeAt(p)),46===d||69===d||101===d)throw(0,T.syntaxError)(e,p,"Invalid number, expected digit but got: ".concat(a(d),"."));return new o(f?l.TokenKind.FLOAT:l.TokenKind.INT,n,p,i,r,s,u.slice(n,p))}(t,s,f,d,p,n);case 34:return 34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)?function(e,n,t,i,r,s){for(var c=e.body,u=n+3,d=u,p=0,f="";u=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw(0,T.syntaxError)(e,r,"Invalid number, expected digit but got: ".concat(a(o),"."))}function u(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Object.defineProperty(n,"__esModule",{value:!0}),n.createLexer=function(e,n){var t=new o(l.TokenKind.SOF,0,0,0,0,null);return{source:e,options:n,lastToken:t,token:t,line:1,lineStart:0,advance:i,lookahead:r}},n.isPunctuatorToken=function(e){var n=e.kind;return n===l.TokenKind.BANG||n===l.TokenKind.DOLLAR||n===l.TokenKind.AMP||n===l.TokenKind.PAREN_L||n===l.TokenKind.PAREN_R||n===l.TokenKind.SPREAD||n===l.TokenKind.COLON||n===l.TokenKind.EQUALS||n===l.TokenKind.AT||n===l.TokenKind.BRACKET_L||n===l.TokenKind.BRACKET_R||n===l.TokenKind.BRACE_L||n===l.TokenKind.PIPE||n===l.TokenKind.BRACE_R},(0,((t=p)&&t.__esModule?t:{default:t}).default)(o,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}))}));t(E);var y=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function e(n,t){switch(o(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var i=[].concat(t,[n]),o=function(e){var n=e[String(r.default)];return"function"==typeof n?n:"function"==typeof e.inspect?e.inspect:void 0}(n);if(void 0!==o){var a=o.call(n);if(a!==n)return"string"==typeof a?a:e(a,i)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var i=Math.min(10,n.length),r=n.length-i,o=[],a=0;a1&&o.push("... ".concat(r," more items")),"["+o.join(", ")+"]"}(n,i);return function(n,t){var i=Object.keys(n);return 0===i.length?"{}":t.length>2?"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(n)+"]":"{ "+i.map((function(i){return i+": "+e(n[i],t)})).join(", ")+" }"}(n,i)}(n,t);default:return String(n)}}(e,[])};var i,r=(i=d)&&i.__esModule?i:{default:i};function o(e){return(o="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}}));t(y);var N=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0;var t=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});n.DirectiveLocation=t}));t(N);var m=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(e,n){return new c(e,n).parseDocument()},n.parseValue=function(e,n){var t=new c(e,n);t.expectToken(l.TokenKind.SOF);var i=t.parseValueLiteral(!1);return t.expectToken(l.TokenKind.EOF),i},n.parseType=function(e,n){var t=new c(e,n);t.expectToken(l.TokenKind.SOF);var i=t.parseTypeReference();return t.expectToken(l.TokenKind.EOF),i};var t=s(y),i=s(r),o=s(p);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,n){var r="string"==typeof e?new a.Source(e):e;r instanceof a.Source||(0,i.default)(0,"Must provide Source. Received: ".concat((0,t.default)(r))),this._lexer=(0,E.createLexer)(r),this._options=n||{}}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(l.TokenKind.NAME);return{kind:u.Kind.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:u.Kind.DOCUMENT,definitions:this.many(l.TokenKind.SOF,this.parseDefinition,l.TokenKind.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(l.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(l.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(l.TokenKind.BRACE_L))return{kind:u.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(l.TokenKind.NAME)&&(n=this.parseName()),{kind:u.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseOperationType=function(){var e=this.expectToken(l.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},n.parseVariableDefinitions=function(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseVariableDefinition,l.TokenKind.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:u.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(l.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},n.parseVariable=function(){var e=this._lexer.token;return this.expectToken(l.TokenKind.DOLLAR),{kind:u.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:u.Kind.SELECTION_SET,selections:this.many(l.TokenKind.BRACE_L,this.parseSelection,l.TokenKind.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(l.TokenKind.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,i=this.parseName();return this.expectOptionalToken(l.TokenKind.COLON)?(e=i,n=this.parseName()):n=i,{kind:u.Kind.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){return this.optionalMany(l.TokenKind.PAREN_L,e?this.parseConstArgument:this.parseArgument,l.TokenKind.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(l.TokenKind.COLON),{kind:u.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:u.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(l.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(l.TokenKind.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(l.TokenKind.NAME)?{kind:u.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:u.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:u.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:u.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case l.TokenKind.BRACKET_L:return this.parseList(e);case l.TokenKind.BRACE_L:return this.parseObject(e);case l.TokenKind.INT:return this._lexer.advance(),{kind:u.Kind.INT,value:n.value,loc:this.loc(n)};case l.TokenKind.FLOAT:return this._lexer.advance(),{kind:u.Kind.FLOAT,value:n.value,loc:this.loc(n)};case l.TokenKind.STRING:case l.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case l.TokenKind.NAME:return"true"===n.value||"false"===n.value?(this._lexer.advance(),{kind:u.Kind.BOOLEAN,value:"true"===n.value,loc:this.loc(n)}):"null"===n.value?(this._lexer.advance(),{kind:u.Kind.NULL,loc:this.loc(n)}):(this._lexer.advance(),{kind:u.Kind.ENUM,value:n.value,loc:this.loc(n)});case l.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:u.Kind.STRING,value:e.value,block:e.kind===l.TokenKind.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:u.Kind.LIST,values:this.any(l.TokenKind.BRACKET_L,(function(){return n.parseValueLiteral(e)}),l.TokenKind.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:u.Kind.OBJECT,fields:this.any(l.TokenKind.BRACE_L,(function(){return n.parseObjectField(e)}),l.TokenKind.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(l.TokenKind.COLON),{kind:u.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(l.TokenKind.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(l.TokenKind.AT),{kind:u.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(l.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(l.TokenKind.BRACKET_R),e={kind:u.Kind.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(l.TokenKind.BANG)?{kind:u.Kind.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:u.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},n.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===l.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},n.peekDescription=function(){return this.peek(l.TokenKind.STRING)||this.peek(l.TokenKind.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.many(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);return{kind:u.Kind.SCHEMA_DEFINITION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(l.TokenKind.COLON);var t=this.parseNamedType();return{kind:u.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},n.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),i=this.parseDirectives(!0);return{kind:u.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:u.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(l.TokenKind.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(l.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(l.TokenKind.NAME))}return e},n.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(l.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===l.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(l.TokenKind.BRACE_L,this.parseFieldDefinition,l.TokenKind.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(l.TokenKind.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:u.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:r,directives:o,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseInputValueDef,l.TokenKind.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(l.TokenKind.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(l.TokenKind.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:u.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();return{kind:u.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:u.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:r,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(l.TokenKind.EQUALS)){this.expectOptionalToken(l.TokenKind.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(l.TokenKind.PIPE))}return e},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:u.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:r,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseEnumValueDefinition,l.TokenKind.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseDirectives(!0);return{kind:u.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:u.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseInputValueDef,l.TokenKind.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===l.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},n.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:u.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(0===t.length)throw this.unexpected();return{kind:u.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},n.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r,loc:this.loc(e)}},n.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.INTERFACE_TYPE_EXTENSION,name:n,directives:t,fields:i,loc:this.loc(e)}},n.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i,loc:this.loc(e)}},n.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i,loc:this.loc(e)}},n.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.TokenKind.AT);var t=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:u.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},n.parseDirectiveLocations=function(){this.expectOptionalToken(l.TokenKind.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(l.TokenKind.PIPE));return e},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==N.DirectiveLocation[n.value])return n;throw this.unexpected(e)},n.loc=function(e){if(!this._options.noLocation)return new d(e,this._lexer.lastToken,this._lexer.source)},n.peek=function(e){return this._lexer.token.kind===e},n.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw(0,T.syntaxError)(this._lexer.source,n.start,"Expected ".concat(e,", found ").concat(f(n)))},n.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},n.expectKeyword=function(e){var n=this._lexer.token;if(n.kind!==l.TokenKind.NAME||n.value!==e)throw(0,T.syntaxError)(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(f(n)));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===l.TokenKind.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=e||this._lexer.token;return(0,T.syntaxError)(this._lexer.source,n.start,"Unexpected ".concat(f(n)))},n.any=function(e,n,t){this.expectToken(e);for(var i=[];!this.expectOptionalToken(t);)i.push(n.call(this));return i},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(t));return i}return[]},n.many=function(e,n,t){this.expectToken(e);var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(t));return i},e}();function d(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}function f(e){var n=e.value;return n?"".concat(e.kind,' "').concat(n,'"'):e.kind}(0,o.default)(d,(function(){return{start:this.start,end:this.end}}))}));t(m);var k=i((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,c=void 0,u=Array.isArray(e),l=[e],d=-1,p=[],f=void 0,h=void 0,T=void 0,v=[],E=[],y=e;do{var N=++d===l.length,m=N&&0!==p.length;if(N){if(h=0===E.length?void 0:v[v.length-1],f=T,T=E.pop(),m){if(u)f=f.slice();else{for(var k={},I=0,_=Object.keys(f);I<_.length;I++){var O=_[I];k[O]=f[O]}f=k}for(var D=0,x=0;x"!==t.kind;)"Comment"===t.kind&&(Object.assign(t,{column:t.column-1}),n.push(t)),t=t.next;return n}(i),function e(t){if(t&&"object"===n(t))for(var i in delete t.startToken,delete t.endToken,delete t.prev,delete t.next,t)e(t[i]);return t}(i),i}catch(e){throw e instanceof A.GraphQLError?function(e,n){var t=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return t.loc=n,t}(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}},astFormat:"graphql",hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}}}},b=K.parsers;e.default=K,e.parsers=b,Object.defineProperty(e,"__esModule",{value:!0})}(n)}}]); \ No newline at end of file diff --git a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/8.js b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/8.js new file mode 100644 index 00000000..8da01aee --- /dev/null +++ b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/8.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{MlsZ:function(e,t,n){var r;r=function(){"use strict";var e="Prettier is an opinionated code formatter",t={prettier:"./bin/prettier.js"},n={node:">=8"},r={"@angular/compiler":"8.2.13","@babel/code-frame":"7.5.5","@babel/parser":"7.7.3","@glimmer/syntax":"0.41.0","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"2.6.1","angular-estree-parser":"1.1.5","angular-html-parser":"1.3.0",camelcase:"5.3.1",chalk:"2.4.2","cjk-regex":"2.0.0",cosmiconfig:"5.2.1",dashify:"2.0.0",dedent:"0.7.0",diff:"4.0.1",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"1.0.5",esutils:"2.0.3","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.111.3","get-stream":"4.1.0",globby:"6.1.0",graphql:"14.5.8","html-element-attributes":"2.2.0","html-styles":"1.0.0","html-tag-names":"1.1.4",ignore:"4.0.6","is-ci":"2.0.0","jest-docblock":"24.9.0","json-stable-stringify":"1.0.1",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.6.0","lodash.uniqby":"4.7.0",mem:"5.1.1",minimatch:"3.0.4",minimist:"1.2.0","n-readlines":"1.0.0","normalize-path":"3.0.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","postcss-less":"2.0.0","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"1.5.0","regexp-util":"1.2.2","remark-math":"1.0.6","remark-parse":"5.0.0",resolve:"1.12.0",semver:"6.3.0","string-width":"4.1.0",typescript:"3.7.2","unicode-regex":"3.0.0",unified:"8.4.1",vnopts:"1.0.2","yaml-unist-parser":"1.1.1"},u={"@babel/core":"7.7.2","@babel/preset-env":"7.7.1","@rollup/plugin-alias":"2.2.0","@rollup/plugin-replace":"2.2.1","babel-loader":"8.0.6",benchmark:"2.1.4","builtin-modules":"3.1.0",codecov:"3.6.1","cross-env":"6.0.3",eslint:"6.6.0","eslint-config-prettier":"6.5.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0",execa:"3.2.0",jest:"23.3.0","jest-junit":"9.0.0","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.4.0",mkdirp:"0.5.1",prettier:"1.19.0",prettylint:"1.0.0",rimraf:"3.0.0",rollup:"1.26.3","rollup-plugin-babel":"4.3.3","rollup-plugin-commonjs":"10.1.0","rollup-plugin-json":"4.0.0","rollup-plugin-node-globals":"1.4.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-terser":"5.1.2",shelljs:"0.8.3","snapshot-diff":"0.4.0","strip-ansi":"5.2.0","synchronous-promise":"2.0.10",tempy:"0.2.1","terser-webpack-plugin":"2.2.1",webpack:"4.41.2"},a={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"node ./scripts/test-dist.js","test-integration":"jest tests_integration","perf-repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","check-types":"tsc",lint:"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint-docs":"prettylint {.,docs,website,website/blog}/*.md","lint-dist":'eslint --no-eslintrc --no-ignore --env=browser "dist/!(bin-prettier|index|third-party).js"',build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js","check-deps":"node ./scripts/check-deps.js",spellcheck:"npx -p cspell@4.0.31 cspell {bin,scripts,src}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md"},i=Object.freeze({__proto__:null,name:"prettier",version:"1.19.1",description:e,bin:t,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:n,dependencies:r,devDependencies:u,scripts:a,default:{name:"prettier",version:"1.19.1",description:e,bin:t,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:n,dependencies:r,devDependencies:u,scripts:a}});function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;ne.length?n:e})),l.value=e.join(p)}else l.value=e.join(n.slice(o,o+l.count));o+=l.count,l.added||(s+=l.count)}}var f=t[i-1];return i>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[i-2].value+=f.value,t.pop()),t}function x(e){return{newPos:e.newPos,components:e.components.slice(0)}}F.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var u=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var i=(t=this.removeEmpty(this.tokenize(t))).length,o=e.length,s=1,l=i+o,c=[{newPos:-1,components:[]}],p=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=i&&p+1>=o)return a([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*s;n<=s;n+=2){var r=void 0,l=c[n-1],p=c[n+1],f=(p?p.newPos:0)-n;l&&(c[n-1]=void 0);var d=l&&l.newPos+1=i&&f+1>=o)return a(b(u,r.components,t,e,u.useLongestToken));c[n]=r}else c[n]=void 0}s++}if(r)!function e(){setTimeout((function(){if(s>l)return r();f()||e()}),0)}();else for(;s<=l;){var d=f();if(d)return d}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var u=t.length,a=n.length,i=e.newPos,o=i-r,s=0;i+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],u=[],a=0;function i(){var e={};for(u.push(e);a2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=V(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,u,a=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,s=n.compareLine||function(e,t,n,r){return t===r},l=0,c=n.fuzzFactor||0,p=0,f=0;function d(e,t){for(var n=0;n0?r[0]:" ",i=r.length>0?r.substr(1):r;if(" "===u||"-"===u){if(!s(t+1,a[t],u,i)&&++l>c)return!1;t++}}return!0}for(var D=0;D0?x[0]:" ",w=x.length>0?x.substr(1):x,B=A.linedelimiters[b];if(" "===S)F++;else if("-"===S)a.splice(F,1),i.splice(F,1);else if("+"===S)a.splice(F,0,w),i.splice(F,0,B),F++;else if("\\"===S){var T=A.lines[b-1]?A.lines[b-1][0]:null;"+"===T?r=!0:"-"===T&&(u=!0)}}}if(r)for(;!a[a.length-1];)a.pop(),i.pop();else u&&(a.push(""),i.push("\n"));for(var k=0;k0?s(h.lines.slice(-i.context)):[],c-=f.length,p-=f.length)}(a=f).push.apply(a,L(u.map((function(e){return(t.added?"+":"-")+e})))),t.added?D+=u.length:d+=u.length}else{if(c)if(u.length<=2*i.context&&e=o.length-2&&u.length<=i.context){var E=/\n$/.test(n),C=/\n$/.test(r),A=0==u.length&&f.length>v.oldLines;!E&&A&&f.splice(v.oldLines,0,"\\ No newline at end of file"),(E||A)&&C||f.push("\\ No newline at end of file")}l.push(v),c=0,p=0,f=[]}d+=u.length,D+=u.length}},m=0;me.length)return!1;for(var n=0;n"):r.removed&&t.push(""),t.push(r.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")),r.added?t.push(""):r.removed&&t.push("")}return t.join("")},canonicalize:R}),se=Object.freeze({__proto__:null,default:{}}),le="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ce=[],pe=[],fe="undefined"!=typeof Uint8Array?Uint8Array:Array,de=!1;function De(){de=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ce[r>>12&63]+ce[r>>6&63]+ce[63&r]);return u.join("")}function me(e,t,n,r,u){var a,i,o=8*u-r-1,s=(1<>1,c=-7,p=n?u-1:0,f=n?-1:1,d=e[t+p];for(p+=f,a=d&(1<<-c)-1,d>>=-c,c+=o;c>0;a=256*a+e[t+p],p+=f,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=r;c>0;i=256*i+e[t+p],p+=f,c-=8);if(0===a)a=1-l;else{if(a===s)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),a-=l}return(d?-1:1)*i*Math.pow(2,a-r)}function ge(e,t,n,r,u,a){var i,o,s,l=8*a-u-1,c=(1<>1,f=23===u?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,D=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+p>=1?f/s:f*Math.pow(2,1-p))*s>=2&&(i++,s/=2),i+p>=c?(o=0,i=c):i+p>=1?(o=(t*s-1)*Math.pow(2,u),i+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,u),i=0));u>=8;e[n+d]=255&o,d+=D,o/=256,u-=8);for(i=i<0;e[n+d]=255&i,d+=D,i/=256,l-=8);e[n+d-D]|=128*h}var ye={}.toString,ve=Array.isArray||function(e){return"[object Array]"==ye.call(e)};function Ee(){return Ae.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ce(e,t){if(Ee()=Ee())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ee().toString(16)+" bytes");return 0|e}function Be(e){return!(null==e||!e._isBuffer)}function Te(e,t){if(Be(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return et(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return tt(e).length;default:if(r)return et(e).length;t=(""+t).toLowerCase(),r=!0}}function ke(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $e(this,t,n);case"utf8":case"utf-8":return Ve(this,t,n);case"ascii":return Ue(this,t,n);case"latin1":case"binary":return We(this,t,n);case"base64":return qe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Je(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Oe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Ne(e,t,n,r,u){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=u?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(u)return-1;n=e.length-1}else if(n<0){if(!u)return-1;n=0}if("string"==typeof t&&(t=Ae.from(t,r)),Be(t))return 0===t.length?-1:Pe(e,t,n,r,u);if("number"==typeof t)return t&=255,Ae.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Pe(e,[t],n,r,u);throw new TypeError("val must be string, number or Buffer")}function Pe(e,t,n,r,u){var a,i=1,o=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,o/=2,s/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(u){var c=-1;for(a=n;ao&&(n=o-s),a=n;a>=0;a--){for(var p=!0,f=0;fu&&(r=u):r=u;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i>8,u.push(n%256),u.push(r);return u}(t,e.length-n),e,n,r)}function qe(e,t,n){return function(e){var t;de||De();for(var n=e.length,r=n%3,u="",a=[],i=0,o=n-r;io?o:i+16383));return 1===r?(u+=ce[(t=e[n-1])>>2],u+=ce[t<<4&63],u+="=="):2===r&&(u+=ce[(t=(e[n-2]<<8)+e[n-1])>>10],u+=ce[t>>4&63],u+=ce[t<<2&63],u+="="),a.push(u),a.join("")}(0===t&&n===e.length?e:e.slice(t,n))}function Ve(e,t,n){n=Math.min(e.length,n);for(var r=[],u=t;u239?4:l>223?3:l>191?2:1;if(u+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[u+1]))&&(s=(31&l)<<6|63&a)>127&&(c=s);break;case 3:i=e[u+2],128==(192&(a=e[u+1]))&&128==(192&i)&&(s=(15&l)<<12|(63&a)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[u+2],o=e[u+3],128==(192&(a=e[u+1]))&&128==(192&i)&&128==(192&o)&&(s=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&o)>65535&&s<1114112&&(c=s)}null===c?(c=65533,p=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),u+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;ru)&&(n=u);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Ge(e,t,n,r,u,a){if(!Be(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>u||te.length)throw new RangeError("Index out of range")}function Xe(e,t,n,r){t<0&&(t=65535+t+1);for(var u=0,a=Math.min(e.length-n,2);u>>8*(r?u:1-u)}function He(e,t,n,r){t<0&&(t=4294967295+t+1);for(var u=0,a=Math.min(e.length-n,4);u>>8*(r?u:3-u)&255}function Ye(e,t,n,r,u,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ke(e,t,n,r,u){return u||Ye(e,0,n,4),ge(e,t,n,r,23,4),n+4}function Qe(e,t,n,r,u){return u||Ye(e,0,n,8),ge(e,t,n,r,52,8),n+8}Ae.TYPED_ARRAY_SUPPORT=void 0===le.TYPED_ARRAY_SUPPORT||le.TYPED_ARRAY_SUPPORT,Ae.poolSize=8192,Ae._augment=function(e){return e.__proto__=Ae.prototype,e},Ae.from=function(e,t,n){return Fe(null,e,t,n)},Ae.TYPED_ARRAY_SUPPORT&&(Ae.prototype.__proto__=Uint8Array.prototype,Ae.__proto__=Uint8Array),Ae.alloc=function(e,t,n){return function(e,t,n,r){return be(t),t<=0?Ce(null,t):void 0!==n?"string"==typeof r?Ce(null,t).fill(n,r):Ce(null,t).fill(n):Ce(null,t)}(0,e,t,n)},Ae.allocUnsafe=function(e){return xe(null,e)},Ae.allocUnsafeSlow=function(e){return xe(null,e)},Ae.isBuffer=function(e){return null!=e&&(!!e._isBuffer||rt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&rt(e.slice(0,0))}(e))},Ae.compare=function(e,t){if(!Be(e)||!Be(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,u=0,a=Math.min(n,r);u0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ae.prototype.compare=function(e,t,n,r,u){if(!Be(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===u&&(u=this.length),t<0||n>e.length||r<0||u>this.length)throw new RangeError("out of range index");if(r>=u&&t>=n)return 0;if(r>=u)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(u>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),o=Math.min(a,i),s=this.slice(r,u),l=e.slice(t,n),c=0;cu)&&(n=u),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return Ie(this,e,t,n);case"utf8":case"utf-8":return je(this,e,t,n);case"ascii":return Le(this,e,t,n);case"latin1":case"binary":return _e(this,e,t,n);case"base64":return Me(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},Ae.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Ae.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(u*=256);)r+=this[e+--t]*u;return r},Ae.prototype.readUInt8=function(e,t){return t||ze(e,1,this.length),this[e]},Ae.prototype.readUInt16LE=function(e,t){return t||ze(e,2,this.length),this[e]|this[e+1]<<8},Ae.prototype.readUInt16BE=function(e,t){return t||ze(e,2,this.length),this[e]<<8|this[e+1]},Ae.prototype.readUInt32LE=function(e,t){return t||ze(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ae.prototype.readUInt32BE=function(e,t){return t||ze(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ae.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ze(e,t,this.length);for(var r=this[e],u=1,a=0;++a=(u*=128)&&(r-=Math.pow(2,8*t)),r},Ae.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ze(e,t,this.length);for(var r=t,u=1,a=this[e+--r];r>0&&(u*=256);)a+=this[e+--r]*u;return a>=(u*=128)&&(a-=Math.pow(2,8*t)),a},Ae.prototype.readInt8=function(e,t){return t||ze(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ae.prototype.readInt16LE=function(e,t){t||ze(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ae.prototype.readInt16BE=function(e,t){t||ze(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ae.prototype.readInt32LE=function(e,t){return t||ze(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ae.prototype.readInt32BE=function(e,t){return t||ze(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ae.prototype.readFloatLE=function(e,t){return t||ze(e,4,this.length),me(this,e,!0,23,4)},Ae.prototype.readFloatBE=function(e,t){return t||ze(e,4,this.length),me(this,e,!1,23,4)},Ae.prototype.readDoubleLE=function(e,t){return t||ze(e,8,this.length),me(this,e,!0,52,8)},Ae.prototype.readDoubleBE=function(e,t){return t||ze(e,8,this.length),me(this,e,!1,52,8)},Ae.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Ge(this,e,t,n,Math.pow(2,8*n)-1,0);var u=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+u]=e/a&255;return t+n},Ae.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,1,255,0),Ae.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ae.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,2,65535,0),Ae.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Xe(this,e,t,!0),t+2},Ae.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,2,65535,0),Ae.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Xe(this,e,t,!1),t+2},Ae.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,4,4294967295,0),Ae.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):He(this,e,t,!0),t+4},Ae.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,4,4294967295,0),Ae.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):He(this,e,t,!1),t+4},Ae.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var u=Math.pow(2,8*n-1);Ge(this,e,t,n,u-1,-u)}var a=0,i=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+n},Ae.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var u=Math.pow(2,8*n-1);Ge(this,e,t,n,u-1,-u)}var a=n-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+n},Ae.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,1,127,-128),Ae.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ae.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,2,32767,-32768),Ae.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Xe(this,e,t,!0),t+2},Ae.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,2,32767,-32768),Ae.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Xe(this,e,t,!1),t+2},Ae.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,4,2147483647,-2147483648),Ae.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):He(this,e,t,!0),t+4},Ae.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ge(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ae.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):He(this,e,t,!1),t+4},Ae.prototype.writeFloatLE=function(e,t,n){return Ke(this,e,t,!0,n)},Ae.prototype.writeFloatBE=function(e,t,n){return Ke(this,e,t,!1,n)},Ae.prototype.writeDoubleLE=function(e,t,n){return Qe(this,e,t,!0,n)},Ae.prototype.writeDoubleBE=function(e,t,n){return Qe(this,e,t,!1,n)},Ae.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--u)e[u+t]=this[u+n];else if(a<1e3||!Ae.TYPED_ARRAY_SUPPORT)for(u=0;u>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!u){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}u=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),u=n;continue}n=65536+(u-55296<<10|n-56320)}else u&&(t-=3)>-1&&a.push(239,191,189);if(u=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function tt(e){return function(e){var t,n,r,u,a,i;de||De();var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=new fe(3*o/4-(a="="===e[o-2]?2:"="===e[o-1]?1:0)),r=a>0?o-4:o;var s=0;for(t=0,n=0;t>16&255,i[s++]=u>>8&255,i[s++]=255&u;return 2===a?(u=pe[e.charCodeAt(t)]<<2|pe[e.charCodeAt(t+1)]>>4,i[s++]=255&u):1===a&&(u=pe[e.charCodeAt(t)]<<10|pe[e.charCodeAt(t+1)]<<4|pe[e.charCodeAt(t+2)]>>2,i[s++]=u>>8&255,i[s++]=255&u),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Ze,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function nt(e,t,n,r){for(var u=0;u=t.length||u>=e.length);++u)t[u+n]=e[u];return u}function rt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function it(e,t){return e(t={exports:{}},t.exports),t.exports}function ot(e){return e&&e.default||e}var st=ot(se),lt=function(){function e(t,n){s(this,e),(n=n||{}).readChunk||(n.readChunk=1024),n.newLineCharacter=n.newLineCharacter?n.newLineCharacter.charCodeAt(0):10,this.fd="number"==typeof t?t:st.openSync(t,"r"),this.options=n,this.newLineCharacter=n.newLineCharacter,this.reset()}return c(e,[{key:"_searchInBuffer",value:function(e,t){for(var n=-1,r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){st.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(e){for(var t,n=[],r=0,u=0;;){var a=e[r++];if(a===this.newLineCharacter)t=e.slice(u,r),n.push(t),u=r;else if(!a)break}var i=e.slice(u,r);return i.length&&n.push(i),n}},{key:"_readChunk",value:function(e){var t,n=0,r=[];do{var u=new Ae(this.options.readChunk);n+=t=st.readSync(this.fd,u,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,r.push(u)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));var a=Ae.concat(r);return t1)for(var n=1;n)?=?)",l("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",l("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",l("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",l("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),u[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),l("LONETILDE"),a[i.LONETILDE]="(?:~>?)",l("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",u[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g"),l("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",l("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",l("LONECARET"),a[i.LONECARET]="(?:\\^)",l("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",u[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g"),l("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",l("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",u[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g"),l("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256)return null;if(!(t.loose?u[i.LOOSE]:u[i.FULL]).test(e))return null;try{return new f(e,t)}catch(n){return null}}function f(e,t){if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof f){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof f))return new f(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?u[i.LOOSE]:u[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=a[4]?a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new f(e,n).inc(t,r).version}catch(u){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=p(e),r=p(t),u="";if(n.prerelease.length||r.prerelease.length){u="pre";var a="prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return u+i;return a},t.compareIdentifiers=D;var d=/^[0-9]+$/;function D(e,t){var n=d.test(e),r=d.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e0}function g(e,t,n){return h(e,t,n)<0}function y(e,t,n){return 0===h(e,t,n)}function v(e,t,n){return 0!==h(e,t,n)}function E(e,t,n){return h(e,t,n)>=0}function C(e,t,n){return h(e,t,n)<=0}function A(e,t,n,r){switch(t){case"===":return"object"===o(e)&&(e=e.version),"object"===o(n)&&(n=n.version),e===n;case"!==":return"object"===o(e)&&(e=e.version),"object"===o(n)&&(n=n.version),e!==n;case"":case"=":case"==":return y(e,n,r);case"!=":return v(e,n,r);case">":return m(e,n,r);case">=":return E(e,n,r);case"<":return g(e,n,r);case"<=":return C(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function F(e,t){if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof F){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof F))return new F(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===b?"":this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return D(t,e)},t.major=function(e,t){return new f(e,t).major},t.minor=function(e,t){return new f(e,t).minor},t.patch=function(e,t){return new f(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new f(e,n),u=new f(t,n);return r.compare(u)||r.compareBuild(u)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=y,t.neq=v,t.gte=E,t.lte=C,t.cmp=A,t.Comparator=F;var b={};function x(e,t){if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof x)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new x(e.raw,t);if(e instanceof F)return new x(e.value,t);if(!(this instanceof x))return new x(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function S(e,t){for(var n=!0,r=e.slice(),u=r.pop();n&&r.length;)n=r.every((function(e){return u.intersects(e,t)})),u=r.pop();return n}function w(e){return!e||"x"===e.toLowerCase()||"*"===e}function B(e,t,n,r,u,a,i,o,s,l,c,p,f){return((t=w(n)?"":w(r)?">="+n+".0.0":w(u)?">="+n+"."+r+".0":">="+t)+" "+(o=w(s)?"":w(l)?"<"+(+s+1)+".0.0":w(c)?"<"+s+"."+(+l+1)+".0":p?"<="+s+"."+l+"."+c+"-"+p:"<="+o)).trim()}function T(e,t,r){for(var u=0;u0){var a=e[u].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function k(e,t,n){try{t=new x(t,n)}catch(r){return!1}return t.test(e)}function O(e,t,n,r){var u,a,i,o,s;switch(e=new f(e,r),t=new x(t,r),n){case">":u=m,a=C,i=g,o=">",s=">=";break;case"<":u=g,a=E,i=m,o="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(k(e,t,r))return!1;for(var l=0;l=0.0.0")),p=p||e,u(e.semver,(c=c||e).semver,r)?c=e:i(e.semver,p.semver,r)&&(p=e)})),c.operator===o||c.operator===s)return!1;if((!p.operator||p.operator===o)&&a(e,p.semver))return!1;if(p.operator===s&&i(e,p.semver))return!1}return!0}F.prototype.parse=function(e){var t=e.match(this.options.loose?u[i.COMPARATORLOOSE]:u[i.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new f(t[2],this.options.loose):b},F.prototype.toString=function(){return this.value},F.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===b||e===b)return!0;if("string"==typeof e)try{e=new f(e,this.options)}catch(t){return!1}return A(e,this.operator,this.semver,this.options)},F.prototype.intersects=function(e,t){if(!(e instanceof F))throw new TypeError("a Comparator is required");var n;if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new x(e.value,t),k(this.value,n,t));if(""===e.operator)return""===e.value||(n=new x(this.value,t),k(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),u=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=A(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=A(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||u||a&&i||s||l},t.Range=x,x.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},x.prototype.toString=function(){return this.range},x.prototype.parseRange=function(e){var t=this.options.loose;e=(e=e.trim()).replace(t?u[i.HYPHENRANGELOOSE]:u[i.HYPHENRANGE],B),n("hyphen replace",e),e=e.replace(u[i.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,u[i.COMPARATORTRIM]),e=(e=(e=e.replace(u[i.TILDETRIM],"$1~")).replace(u[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=t?u[i.COMPARATORLOOSE]:u[i.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return n("caret",e,t),e.replace(t.loose?u[i.CARETLOOSE]:u[i.CARET],(function(t,r,u,a,i){var o;return n("caret",e,t,r,u,a,i),w(r)?o="":w(u)?o=">="+r+".0.0 <"+(+r+1)+".0.0":w(a)?o="0"===r?">="+r+"."+u+".0 <"+r+"."+(+u+1)+".0":">="+r+"."+u+".0 <"+(+r+1)+".0.0":i?(n("replaceCaret pr",i),o="0"===r?"0"===u?">="+r+"."+u+"."+a+"-"+i+" <"+r+"."+u+"."+(+a+1):">="+r+"."+u+"."+a+"-"+i+" <"+r+"."+(+u+1)+".0":">="+r+"."+u+"."+a+"-"+i+" <"+(+r+1)+".0.0"):(n("no pr"),o="0"===r?"0"===u?">="+r+"."+u+"."+a+" <"+r+"."+u+"."+(+a+1):">="+r+"."+u+"."+a+" <"+r+"."+(+u+1)+".0":">="+r+"."+u+"."+a+" <"+(+r+1)+".0.0"),n("caret return",o),o}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return e.replace(t.loose?u[i.TILDELOOSE]:u[i.TILDE],(function(t,r,u,a,i){var o;return n("tilde",e,t,r,u,a,i),w(r)?o="":w(u)?o=">="+r+".0.0 <"+(+r+1)+".0.0":w(a)?o=">="+r+"."+u+".0 <"+r+"."+(+u+1)+".0":i?(n("replaceTilde pr",i),o=">="+r+"."+u+"."+a+"-"+i+" <"+r+"."+(+u+1)+".0"):o=">="+r+"."+u+"."+a+" <"+r+"."+(+u+1)+".0",n("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){return(e=e.trim()).replace(t.loose?u[i.XRANGELOOSE]:u[i.XRANGE],(function(r,u,a,i,o,s){n("xRange",e,r,u,a,i,o,s);var l=w(a),c=l||w(i),p=c||w(o);return"="===u&&p&&(u=""),s=t.includePrerelease?"-0":"",l?r=">"===u||"<"===u?"<0.0.0-0":"*":u&&p?(c&&(i=0),o=0,">"===u?(u=">=",c?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===u&&(u="<",c?a=+a+1:i=+i+1),r=u+a+"."+i+"."+o+s):c?r=">="+a+".0.0"+s+" <"+(+a+1)+".0.0"+s:p&&(r=">="+a+"."+i+".0"+s+" <"+a+"."+(+i+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(u[i.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(r)}))),a.map((function(e){return new F(e,this.options)}),this)},x.prototype.intersects=function(e,t){if(!(e instanceof x))throw new TypeError("a Range is required");return this.set.some((function(n){return S(n,t)&&e.set.some((function(e){return S(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new x(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},x.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new f(e,this.options)}catch(n){return!1}for(var t=0;t":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new x(e,t).range||"*"}catch(n){return null}},t.ltr=function(e,t,n){return O(e,t,"<",n)},t.gtr=function(e,t,n){return O(e,t,">",n)},t.outside=O,t.prerelease=function(e,t){var n=p(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new x(e,n),t=new x(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof f)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=u[i.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),u[i.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;u[i.COERCERTL].lastIndex=-1}else n=e.match(u[i.COERCE]);return null===n?null:p(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}})),Lt=it((function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function Kt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,u,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(o){u={error:o}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return i}function Qt(e){return this instanceof Qt?(this.v=e,this):new Qt(e)}var Zt=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}Xt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Ht},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(r=Object.getOwnPropertySymbols(e);u=0;s--)(u=e[s])&&(i=(a<3?u(i):a>3?u(t,n,i):u(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(u,a){function i(e){try{s(r.next(e))}catch(t){a(t)}}function o(e){try{s(r.throw(e))}catch(t){a(t)}}function s(e){e.done?u(e.value):new n((function(t){t(e.value)})).then(i,o)}s((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,u,a,i={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(u=2&a[0]?r.return:a[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,a[1])).done)return u;switch(r=0,u&&(a=[2&a[0],u.value]),a[0]){case 0:case 1:u=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((u=(u=i.trys).length>0&&u[u.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!u||a[1]>u[0]&&a[1]1||o(e,t)}))})}function o(e,t){try{(n=u[e](t)).value instanceof Qt?Promise.resolve(n.value.v).then(s,l):c(a[0][2],n)}catch(r){c(a[0][3],r)}var n}function s(e){o("next",e)}function l(e){o("throw",e)}function c(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,u){t[r]=e[r]?function(t){return(n=!n)?{value:Qt(e[r](t)),done:"return"===r}:u?u(t):t}:u}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Yt(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,u){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,u,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),en=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function(e){if(null===e||"object"!==o(e))return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((function(e){return t.apiDescriptor.value(e)})).join(", "),"]");var n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map((function(n){return"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))})).join(", ")," }")},pair:function(e){return t.apiDescriptor.value(p({},e.key,e.value))}}}));at(en);var tn=ot(Zt),nn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),tn.__exportStar(en,t)}));at(nn);var rn=/[|\\{}()[\]^$+*?.]/g,un=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(rn,"\\$&")},an={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},on=it((function(e){var t={};for(var n in an)an.hasOwnProperty(n)&&(t[an[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in r)if(r.hasOwnProperty(u)){if(!("channels"in r[u]))throw new Error("missing channels property: "+u);if(!("labels"in r[u]))throw new Error("missing channel labels property: "+u);if(r[u].labels.length!==r[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=r[u].channels,i=r[u].labels;delete r[u].channels,delete r[u].labels,Object.defineProperty(r[u],"channels",{value:a}),Object.defineProperty(r[u],"labels",{value:i})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,u=e[1]/255,a=e[2]/255,i=Math.min(r,u,a),o=Math.max(r,u,a),s=o-i;return o===i?t=0:r===o?t=(u-a)/s:u===o?t=2+(a-r)/s:a===o&&(t=4+(r-u)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+o)/2,[t,100*(o===i?0:n<=.5?s/(o+i):s/(2-o-i)),100*n]},r.rgb.hsv=function(e){var t,n,r=e[0],u=e[1],a=e[2],i=Math.min(r,u,a),o=Math.max(r,u,a),s=o-i;return n=0===o?0:s/o*1e3/10,o===i?t=0:r===o?t=(u-a)/s:u===o?t=2+(a-r)/s:a===o&&(t=4+(r-u)/s),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,o/255*1e3/10]},r.rgb.hwb=function(e){var t=e[0],n=e[1],u=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,u))*100,100*(u=1-1/255*Math.max(t,Math.max(n,u)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-u)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-u-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,u,a,i=1/0;for(var o in an)if(an.hasOwnProperty(o)){var s=(u=e,a=an[o],Math.pow(u[0]-a[0],2)+Math.pow(u[1]-a[1],2)+Math.pow(u[2]-a[2],2));s.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],u=t[1],a=t[2];return u/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(n-u),200*(u-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.hsl.rgb=function(e){var t,n,r,u,a,i=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[a=255*s,a,a];t=2*s-(n=s<.5?s*(1+o):s+o-s*o),u=[0,0,0];for(var l=0;l<3;l++)(r=i+1/3*-(l-1))<0&&r++,r>1&&r--,u[l]=255*(a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t);return u},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,u=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,u*=a<=1?a:2-a,[t,100*(0===r?2*u/(a+u):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,u=Math.floor(t)%6,a=t-Math.floor(t),i=255*r*(1-n),o=255*r*(1-n*a),s=255*r*(1-n*(1-a));switch(r*=255,u){case 0:return[r,s,i];case 1:return[o,r,i];case 2:return[i,r,s];case 3:return[i,o,r];case 4:return[s,i,r];case 5:return[r,i,o]}},r.hsv.hsl=function(e){var t,n,r,u=e[0],a=e[1]/100,i=e[2]/100,o=Math.max(i,.01);return r=(2-a)*i,n=a*o,[u,100*(n=(n/=(t=(2-a)*o)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,u,a,i,o,s=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(r=1-r),u=l+r*((n=1-c)-l),t){default:case 6:case 0:a=n,i=u,o=l;break;case 1:a=u,i=n,o=l;break;case 2:a=l,i=n,o=u;break;case 3:a=l,i=u,o=n;break;case 4:a=u,i=l,o=n;break;case 5:a=n,i=l,o=u}return[255*a,255*i,255*o]},r.cmyk.rgb=function(e){var t=e[1]/100,n=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-r)+r)),255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r))]},r.xyz.rgb=function(e){var t,n,r,u=e[0]/100,a=e[1]/100,i=e[2]/100;return n=-.9689*u+1.8758*a+.0415*i,r=.0557*u+-.204*a+1.057*i,t=(t=3.2406*u+-1.5372*a+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r;t=e[1]/500+(n=(e[0]+16)/116),r=n-e[2]/200;var u=Math.pow(n,3),a=Math.pow(t,3),i=Math.pow(r,3);return n=u>.008856?u:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],u=e[2];return(t=360*Math.atan2(u,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+u*u),t]},r.lch.lab=function(e){var t,n=e[1];return t=e[2]/360*2*Math.PI,[e[0],n*Math.cos(t),n*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],u=e[2],a=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var i=30+(Math.round(u/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(i+=60),i},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,u=e[2]/255,a=Math.max(Math.max(n,r),u),i=Math.min(Math.min(n,r),u),o=a-i;return t=o<=0?0:a===n?(r-u)/o%6:a===r?2+(u-n)/o:4+(n-r)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?i/(1-o):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,u=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(u=(r-.5*t)/(1-t)),[e[0],100*t,100*u]},r.hsv.hcg=function(e){var t=e[2]/100,n=e[1]/100*t,r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],100*n,100*r]},r.hcg.rgb=function(e){var t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];var r,u=[0,0,0],a=e[0]/360%1*6,i=a%1,o=1-i;switch(Math.floor(a)){case 0:u[0]=1,u[1]=i,u[2]=0;break;case 1:u[0]=o,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=i;break;case 3:u[0]=0,u[1]=o,u[2]=1;break;case 4:u[0]=i,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=o}return[255*(t*u[0]+(r=(1-t)*n)),255*(t*u[1]+r),255*(t*u[2]+r)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=1-e[2]/100,n=t-e[1]/100,r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],100*n,100*r]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),sn=Object.keys(on);function ln(e){var t=function(){for(var e={},t=sn.length,n=0;n1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===o(n))for(var r=n.length,u=0;u1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var dn,Dn=fn,hn=it((function(e){var t=function(e,t){return function(){var n=e.apply(Dn,arguments);return"\x1b[".concat(n+t,"m")}},n=function(e,t){return function(){var n=e.apply(Dn,arguments);return"\x1b[".concat(38+t,";5;").concat(n,"m")}},r=function(e,t){return function(){var n=e.apply(Dn,arguments);return"\x1b[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.grey=u.color.gray;for(var a=0,i=Object.keys(u);a=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in yn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in yn}))||"codeship"===yn.CI_NAME?1:t;if("TEAMCITY_VERSION"in yn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(yn.TEAMCITY_VERSION)?1:0;if("truecolor"===yn.COLORTERM)return 3;if("TERM_PROGRAM"in yn){var r=parseInt((yn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(yn.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(yn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(yn.TERM)||"COLORTERM"in yn?1:t}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}gn("no-color")||gn("no-colors")||gn("color=false")?dn=!1:(gn("color")||gn("colors")||gn("color=true")||gn("color=always"))&&(dn=!0),"FORCE_COLOR"in yn&&(dn=0===yn.FORCE_COLOR.length||0!==parseInt(yn.FORCE_COLOR,10));var En={supportsColor:vn,stdout:vn(It.stdout),stderr:vn(It.stderr)},Cn=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,An=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Fn=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,bn=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,xn=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function Sn(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):xn.get(e)||e}function wn(e,t){var n,r=[],u=t.trim().split(/\s*,\s*/g),a=!0,i=!1,o=void 0;try{for(var s,l=u[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(isNaN(c)){if(!(n=c.match(Fn)))throw new Error("Invalid Chalk template style argument: ".concat(c," (in style '").concat(e,"')"));r.push(n[2].replace(bn,(function(e,t,n){return t?Sn(t):n})))}else r.push(Number(c))}}catch(p){i=!0,o=p}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return r}function Bn(e){An.lastIndex=0;for(var t,n=[];null!==(t=An.exec(e));){var r=t[1];if(t[2]){var u=wn(r,t[2]);n.push([r].concat(u))}else n.push([r])}return n}function Tn(e,t){var n={},r=!0,u=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value,l=!0,c=!1,p=void 0;try{for(var f,d=s.styles[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var D=f.value;n[D[0]]=s.inverse?null:D.slice(1)}}catch(v){c=!0,p=v}finally{try{l||null==d.return||d.return()}finally{if(c)throw p}}}}catch(v){u=!0,a=v}finally{try{r||null==o.return||o.return()}finally{if(u)throw a}}for(var h=e,m=0,g=Object.keys(n);m0?h[y].apply(h,n[y]):h[y]}}return h}var kn=function(e,t){var n=[],r=[],u=[];if(t.replace(Cn,(function(t,a,i,o,s,l){if(a)u.push(Sn(a));else if(o){var c=u.join("");u=[],r.push(0===n.length?c:Tn(e,n)(c)),n.push({inverse:i,styles:Bn(o)})}else if(s){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Tn(e,n)(u.join(""))),u=[],n.pop()}else u.push(l)})),r.push(u.join("")),n.length>0){var a="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(a)}return r.join("")},On=it((function(e){var t=En.stdout,n="win32"===It.platform&&!(It.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),a=Object.create(null);function i(e,n){e.level=void 0===(n=n||{}).level?t?t.level:0:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return i(t,e),t.template=function(){var e=[].slice.call(arguments);return E.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=o,t.template}i(this,e)}n&&(hn.blue.open="\x1b[94m");for(var s=function(){var e=c[l];hn[e].closeRe=new RegExp(un(hn[e].close),"g"),a[e]={get:function(){var t=hn[e];return y.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},l=0,c=Object.keys(hn);l1)for(var u=1;ut.length&&(e=t,t=n);var r=e.length,u=t.length;if(0===r)return u;if(0===u)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-u);)r--,u--;if(0===r)return u;for(var a,i,o,s,l=0;li?s>i?i+1:s:s>o?o+1:s;return i}(e,t)<3}));o&&i.push("Did you mean ".concat(On.default.blue(r.key(o)),"?")),u.warn(i.join(" "))}}));at(Mn);var Rn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),tn.__exportStar(Mn,t)}));at(Rn);var qn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),tn.__exportStar(Pn,t),tn.__exportStar(jn,t),tn.__exportStar(Rn,t)}));at(qn);var Vn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){var r=new e(t),i=Object.create(r),o=!0,s=!1,l=void 0;try{for(var c,p=n[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=c.value;f in t&&(i[f]=a(t[f],r,u.prototype[f].length))}}catch(d){s=!0,l=d}finally{try{o||null==p.return||p.return()}finally{if(s)throw l}}return i}t.createSchema=r;var u=function(){function e(t){s(this,e),this.name=t.name}return c(e,[{key:"default",value:function(e){}},{key:"expected",value:function(e){return"nothing"}},{key:"validate",value:function(e,t){return!1}},{key:"deprecated",value:function(e,t){return!1}},{key:"forward",value:function(e,t){}},{key:"redirect",value:function(e,t){}},{key:"overlap",value:function(e,t,n){return e}},{key:"preprocess",value:function(e,t){return e}},{key:"postprocess",value:function(e,t){return e}}],[{key:"create",value:function(e){return r(this,e)}}]),e}();function a(e,t,n){return"function"==typeof e?function(){for(var r=arguments.length,u=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){var n=r("object"===o(e)&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"===o(e)&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}));at(zn);var Gn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ChoiceSchema=function(e){function t(e){var n;return s(this,t),(n=y(this,d(t).call(this,e)))._choices=zn.mapFromArray(e.choices.map((function(e){return e&&"object"===o(e)?e:{value:e}})),"value"),n}return f(t,e),c(t,[{key:"expected",value:function(e){var t=this,n=e.descriptor,r=Array.from(this._choices.keys()).map((function(e){return t._choices.get(e)})).filter((function(e){return!e.deprecated})).map((function(e){return e.value})).sort(zn.comparePrimitive).map(n.value),u=r.slice(0,-2),a=r.slice(-2);return u.concat(a.join(" or ")).join(", ")}},{key:"validate",value:function(e){return this._choices.has(e)}},{key:"deprecated",value:function(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),t}(Vn.Schema)}));at(Gn);var Xn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberSchema=function(e){function t(){return s(this,t),y(this,d(t).apply(this,arguments))}return f(t,e),c(t,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(e,t){return"number"==typeof e}}]),t}(Vn.Schema)}));at(Xn);var Hn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegerSchema=function(e){function t(){return s(this,t),y(this,d(t).apply(this,arguments))}return f(t,e),c(t,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(e,n){return!0===n.normalizeValidateResult(v(d(t.prototype),"validate",this).call(this,e,n),e)&&zn.isInt(e)}}]),t}(Xn.NumberSchema)}));at(Hn);var Yn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringSchema=function(e){function t(){return s(this,t),y(this,d(t).apply(this,arguments))}return f(t,e),c(t,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(e){return"string"==typeof e}}]),t}(Vn.Schema)}));at(Yn);var Kn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),tn.__exportStar(Un,t),tn.__exportStar(Wn,t),tn.__exportStar($n,t),tn.__exportStar(Jn,t),tn.__exportStar(Gn,t),tn.__exportStar(Hn,t),tn.__exportStar(Xn,t),tn.__exportStar(Yn,t)}));at(Kn);var Qn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=en.apiDescriptor,t.defaultUnknownHandler=Mn.levenUnknownHandler,t.defaultInvalidHandler=jn.commonInvalidHandler,t.defaultDeprecatedHandler=Nn.commonDeprecatedHandler}));at(Qn);var Zn=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e,t,r){return new n(t,r).normalize(e)};var n=function(){function e(t,n){s(this,e);var r=n||{},u=r.logger,a=void 0===u?console:u,i=r.descriptor,o=r.unknown,l=void 0===o?Qn.defaultUnknownHandler:o,c=r.invalid,p=void 0===c?Qn.defaultInvalidHandler:c,f=r.deprecated,d=void 0===f?Qn.defaultDeprecatedHandler:f;this._utils={descriptor:void 0===i?Qn.defaultDescriptor:i,logger:a||{warn:function(){}},schemas:zn.recordFromArray(t,"name"),normalizeDefaultResult:zn.normalizeDefaultResult,normalizeDeprecatedResult:zn.normalizeDeprecatedResult,normalizeForwardResult:zn.normalizeForwardResult,normalizeRedirectResult:zn.normalizeRedirectResult,normalizeValidateResult:zn.normalizeValidateResult},this._unknownHandler=l,this._invalidHandler=p,this._deprecatedHandler=d,this.cleanHistory()}return c(e,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=zn.createAutoChecklist()}},{key:"normalize",value:function(e){var t=this,n={},r=[e],u=function(){for(;0!==r.length;){var e=r.shift(),u=t._applyNormalization(e,n);r.push.apply(r,A(u))}};u();for(var a=0,i=Object.keys(this._utils.schemas);at.length&&(e=t,t=n);for(var r=e.length,u=t.length;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-u);)r--,u--;for(var a,i,o,s,l=0;li?s>i?i+1:s:s>o?o+1:s;return i},ur=rr;ur.default=rr;var ar,ir={key:function(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function(e){return er.apiDescriptor.value(e)},pair:function(e){var t=e.key,n=e.value;return!1===n?"--no-".concat(t):!0===n?ir.key(t):""===n?"".concat(ir.key(t)," without an argument"):"".concat(ir.key(t),"=").concat(n)}},or=function(e){function t(e){var n,r=e.name,u=e.flags;return s(this,t),(n=y(this,d(t).call(this,{name:r,choices:u})))._flags=u.slice().sort(),n}return f(t,e),c(t,[{key:"preprocess",value:function(e,t){if("string"==typeof e&&0!==e.length&&-1===this._flags.indexOf(e)){var n=this._flags.find((function(t){return ur(t,e)<3}));if(n)return t.logger.warn(["Unknown flag ".concat(On.yellow(t.descriptor.value(e)),","),"did you mean ".concat(On.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}},{key:"expected",value:function(){return"a flag"}}]),t}(er.ChoiceSchema);function sr(e,t){var n=t.isCLI,r=[];n&&r.push(er.AnySchema.create({name:"_"}));var u=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var l=o.value;r.push(lr(l,{isCLI:n,optionInfos:e})),l.alias&&n&&r.push(er.AliasSchema.create({name:l.alias,sourceName:l.name}))}}catch(c){a=!0,i=c}finally{try{u||null==s.return||s.return()}finally{if(a)throw i}}return r}function lr(e,t){var n,r=t.isCLI,u=t.optionInfos,a={name:e.name},i={};switch(e.type){case"int":n=er.IntegerSchema,r&&(a.preprocess=function(e){return Number(e)});break;case"string":n=er.StringSchema;break;case"choice":n=er.ChoiceSchema,a.choices=e.choices.map((function(t){return"object"===o(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t}));break;case"boolean":n=er.BooleanSchema;break;case"flag":n=or,a.flags=u.map((function(e){return[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])})).reduce((function(e,t){return e.concat(t)}),[]);break;case"path":n=er.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(a.validate=e.exception?function(t,n,r){return e.exception(t)||n.validate(t,r)}:function(e,t,n){return void 0===e||t.validate(e,n)},e.redirect&&(i.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(i.deprecated=!0),r&&!e.array){var s=a.preprocess||function(e){return e};a.preprocess=function(e,t,n){return t.preprocess(s(Array.isArray(e)?e[e.length-1]:e),n)}}return e.array?er.ArraySchema.create(Object.assign(r?{preprocess:function(e){return[].concat(e)}}:{},i,{valueSchema:n.create(a)})):n.create(Object.assign({},a,i))}var cr=function(e,t,n){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.logger,u=n.isCLI,a=void 0!==u&&u,i=n.passThrough,o=void 0!==i&&i,s=o?Array.isArray(o)?function(e,t){return-1===o.indexOf(e)?void 0:p({},e,t)}:function(e,t){return p({},e,t)}:er.levenUnknownHandler,l=a?ir:er.apiDescriptor,c=sr(t,{isCLI:a}),f=new er.Normalizer(c,{logger:r,unknown:s,descriptor:l}),d=!1!==r;d&&ar&&(f._hasDeprecationWarned=ar);var D=f.normalize(e);return d&&(ar=f._hasDeprecationWarned),D}(e,t,n)},pr=function(e){return e.length>0?e[e.length-1]:null},fr=it((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}}));at(fr);var dr=it((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),Dr=it((function(e){!function(){var t,n,r,u,a,i;function o(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\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-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],u=new Array(128),i=0;i<128;++i)u[i]=i>=97&&i<=122||i>=65&&i<=90||36===i||95===i;for(a=new Array(128),i=0;i<128;++i)a[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||36===i||95===i;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?u[e]:n.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?a[e]:n.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(e){return e<128?u[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(o(e))}}}()})),hr=it((function(e){!function(){var t=Dr;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function u(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function i(e){var n,r,u;if(0===e.length)return!1;if(u=e.charCodeAt(0),!t.isIdentifierStartES5(u))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(a=e.charCodeAt(n))&&a<=57343))return!1;u=1024*(u-55296)+(a-56320)+65536}if(!i(u))return!1;i=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:u,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:i,isIdentifierNameES6:o,isIdentifierES5:function(e,t){return i(e)&&!u(e,t)},isIdentifierES6:function(e,t){return o(e)&&!a(e,t)}}}()})),mr=it((function(e,t){t.ast=dr,t.code=Dr,t.keyword=hr})),gr=it((function(e,t){function n(){var e=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(fr);return n=function(){return e},e}function r(){var e=a(mr);return r=function(){return e},e}function u(){var e=a(On);return u=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=f,t.getChalk=d,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(t)){var n=d(t),r=i(n);return p(r,e)}return e};var o=/\r\n|[\n\r\u2028\u2029]/,s=/^[a-z][\w-]*$/i,l=/^[()[\]{}]$/;function c(e){var t=C(e.slice(-2),2),u=t[0],a=t[1],i=(0,n().matchToToken)(e);if("name"===i.type){if(r().default.keyword.isReservedWordES6(i.value))return"keyword";if(s.test(i.value)&&("<"===a[u-1]||"3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;var a="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(It.emitWarning)It.emitWarning(a,"DeprecationWarning");else{var i=new Error(a);i.name="DeprecationWarning",console.warn(new Error(a))}}var s={start:{column:n=Math.max(n,0),line:t}};return o(e,s,u)};var r=!1;function u(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var a=/\r\n|[\n\r\u2028\u2029]/;function i(e,t,n){var r=Object.assign({column:0,line:-1},e.start),u=Object.assign({},r,e.end),a=n||{},i=a.linesAbove,o=a.linesBelow,s=void 0===o?3:o,l=r.line,c=r.column,p=u.line,f=u.column,d=Math.max(l-((void 0===i?2:i)+1),0),D=Math.min(t.length,p+s);-1===l&&(d=0),-1===p&&(D=t.length);var h=p-l,m={};if(h)for(var g=0;g<=h;g++){var y=g+l;m[y]=!c||(0===g?[c,t[y-1].length-c+1]:g===h?[0,f]:[0,t[y-g].length])}else m[l]=c===f?!c||[c,0]:[c,f-c];return{start:d,end:D,markerLines:m}}function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(r.highlightCode||r.forceColor)&&(0,n().shouldHighlight)(r),s=(0,n().getChalk)(r),l=u(s),c=function(e,t){return o?e(t):t},p=e.split(a),f=i(t,p,r),d=f.start,D=f.end,h=f.markerLines,m=t.start&&"number"==typeof t.start.column,g=String(D).length,y=o?(0,n().default)(e,r):e,v=y.split(a).slice(d,D).map((function(e,t){var n=d+1+t,u=" ".concat(n).slice(-g),a=" ".concat(u," | "),i=h[n],o=!h[n+1];if(i){var s="";if(Array.isArray(i)){var p=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),f=i[1]||1;s=["\n ",c(l.gutter,a.replace(/\d/g," ")),p,c(l.marker,"^").repeat(f)].join(""),o&&r.message&&(s+=" "+c(l.message,r.message))}return[c(l.marker,">"),c(l.gutter,a),e,s].join("")}return" ".concat(c(l.gutter,a)).concat(e)})).join("\n");return r.message&&!m&&(v="".concat(" ".repeat(g+1)).concat(r.message,"\n").concat(v)),o?s.reset(v):v}}));at(yr);var vr=ct.ConfigError,Er=function e(t,n){return!(n=n||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!n.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},Cr=function e(t){var n=t.nodes&&pr(t.nodes);if(n&&t.source&&!t.source.end&&(t=n),t.__location)return t.__location.endOffset;var r=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(r,e(t.typeAnnotation)):t.loc&&!r?t.loc.end:r},Ar=Object.getOwnPropertyNames,Fr=Object.getOwnPropertyDescriptor;function br(e){var t={},n=!0,r=!1,u=void 0;try{for(var a,i=e.plugins[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var o=a.value;if(o.parsers){var s=!0,l=!1,c=void 0;try{for(var p,f=Ar(o.parsers)[Symbol.iterator]();!(s=(p=f.next()).done);s=!0){var d=p.value;Object.defineProperty(t,d,Fr(o.parsers,d))}}catch(D){l=!0,c=D}finally{try{s||null==f.return||f.return()}finally{if(l)throw c}}}}}catch(D){r=!0,u=D}finally{try{n||null==i.return||i.return()}finally{if(r)throw u}}return t}function xr(e,t){if(t=t||br(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Er,locEnd:Cr};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new vr("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Sr={parse:function(e,t){var n=br(t),r=Object.keys(n).reduce((function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t].parse}})}),{}),u=xr(t,n);try{return u.preprocess&&(e=u.preprocess(e,t)),{text:e,ast:u.parse(e,r,t)}}catch(i){var a=i.loc;if(a)throw i.codeFrame=yr.codeFrameColumns(e,a,{highlightCode:!0}),i.message+="\n"+i.codeFrame,i;throw i.stack}},resolveParser:xr},wr=ct.UndefinedParserError,Br=Gt,Tr=Sr.resolveParser,kr={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null},Or=function(e,t){t=t||{};var n,r,u,a,i,o=Object.assign({},e),s=Br(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,l=s.reduce((function(e,t){return void 0!==t.default?Object.assign(e,p({},t.name,t.default)):e}),Object.assign({},kr));if(!o.parser)if(o.filepath){if(o.parser=(r=o.plugins,u=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&"\\"===e[3]){var u=e[2];"?"!==u&&"."!==u||"\\\\"!==e.slice(0,2)||(e=e.slice(2),r="//")}var a=e.split(/[/\\]+/);return""===a[a.length-1]&&a.pop(),r+a.join("/")}(n=o.filepath).split("/"),a=u[u.length-1].toLowerCase(),(i=Br(null,{plugins:r}).languages.find((function(e){return null!==e.since&&(e.extensions&&e.extensions.some((function(e){return a.endsWith(e)}))||e.filenames&&e.filenames.find((function(e){return e.toLowerCase()===a}))||-1===a.indexOf(".")&&e.interpreters&&-1!==e.interpreters.indexOf(function(e){if("string"!=typeof e)return"";var t;try{t=st.openSync(e,"r")}catch(a){return""}try{var n=new lt(t).next().toString("utf8"),r=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(r)return r[1];var u=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return u?u[1]:""}catch(a){return""}finally{try{st.closeSync(t)}catch(a){}}}(n)))})))&&i.parsers[0]),!o.parser)throw new wr("No parser could be inferred for file: ".concat(o.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),o.parser="babel";var c=Tr(cr(o,[s.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));o.astFormat=c.astFormat,o.locEnd=c.locEnd,o.locStart=c.locStart;var f=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find((function(e){return e.printers&&e.printers[t]}));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(o);o.printer=f.printers[o.astFormat];var d=s.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[f.name]})).reduce((function(e,t){return Object.assign(e,p({},t.name,t.pluginDefaults[f.name]))}),{}),D=Object.assign({},l,d);return Object.keys(D).forEach((function(e){null==o[e]&&(o[e]=D[e])})),"json"===o.parser&&(o.trailingComma="none"),cr(o,s,Object.assign({passThrough:Object.keys(kr)},t))};function Nr(){}function Pr(e){return{type:"concat",parts:e}}function Ir(e){return{type:"indent",contents:e}}function jr(e,t){return{type:"align",contents:t,n:e}}function Lr(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}Nr.ok=function(){},Nr.strictEqual=function(){};var _r={type:"break-parent"},Mr=Pr([{type:"line",hard:!0},_r]),Rr=Pr([{type:"line",hard:!0,literal:!0},_r]),qr={concat:Pr,join:function(e,t){for(var n=[],r=0;r0){for(var u=0;u<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}(),""):e},Ur=Vr;Ur.default=Vr;var Wr=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},$r=Wr;$r.default=Wr;var Jr=function(e){if("string"!=typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))||0===e.length)return 0;e=Ur(e);for(var t=0,n=0;n=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=$r(r)?2:1)}return t},zr=Jr;zr.default=Jr;var Gr=/[^\x20-\x7F]/;function Xr(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function Hr(e){return function(t,n,r){var u=r&&r.backwards;if(!1===n)return!1;for(var a=t.length,i=n;i>=0&&i"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){ou[e]=t}))}));var lu={"==":!0,"!=":!0,"===":!0,"!==":!0},cu={"*":!0,"/":!0,"%":!0},pu={">>":!0,">>>":!0,"<<":!0};function fu(e,t,n){for(var r=0,u=n=n||0;u(n.match(i.regex)||[]).length?i.quote:a.quote),o}function Du(e,t,n){var r='"'===t?"'":'"',u=e.replace(/\\([\s\S])|(['"])/g,(function(e,u,a){return u===r?u:a===t?"\\"+a:a||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(u)?u:"\\"+u)}));return t+u+t}function hu(e){return e&&e.comments&&e.comments.length>0&&e.comments.some((function(e){return"prettier-ignore"===e.value.trim()}))}function mu(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var gu,yu={replaceEndOfLineWith:function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var i,o=e.split("\n")[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;0!==n.length&&n.push(t),n.push(s)}}catch(l){u=!0,a=l}finally{try{r||null==o.return||o.return()}finally{if(u)throw a}}return n},getStringWidth:function(e){return e?Gr.test(e)?zr(e):e.length:0},getMaxContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(un(t),")+"),"g"));return null===n?0:n.reduce((function(e,n){return Math.max(e,n.length/t.length)}),0)},getMinNotPresentContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(un(t),")+"),"g"));if(null===n)return 0;var r=new Map,u=0,a=!0,i=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value.length/t.length;r.set(c,!0),c>u&&(u=c)}}catch(f){i=!0,o=f}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}for(var p=1;p1?e[e.length-2]:null},getLast:pr,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:au,getNextNonSpaceNonCommentCharacterIndex:iu,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(iu(e,t,n))},skip:Hr,skipWhitespace:Yr,skipSpaces:Kr,skipToLineEnd:Qr,skipEverythingButNewLine:Zr,skipInlineComment:eu,skipTrailingComment:tu,skipNewline:nu,isNextLineEmptyAfterIndex:uu,isNextLineEmpty:function(e,t,n){return uu(e,n(t))},isPreviousLineEmpty:function(e,t,n){var r=n(t)-1;return r=nu(e,r=Kr(e,r,{backwards:!0}),{backwards:!0}),(r=Kr(e,r,{backwards:!0}))!==nu(e,r,{backwards:!0})},hasNewline:ru,hasNewlineInRange:function(e,t,n){for(var r=t;r0&&D(i),y()):g()}function g(){o>0&&h(o),y()}function y(){i=0,o=0}}function Bu(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){var n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function Tu(e,t,n,r,u){for(var a=t.length,i=[e],o=[];n>=0;)if(0!==i.length){var s=i.pop(),l=s[0],c=s[1],p=s[2];if("string"==typeof p)o.push(p),n-=Eu(p);else switch(p.type){case"concat":for(var f=p.parts.length-1;f>=0;f--)i.push([l,c,p.parts[f]]);break;case"indent":i.push([xu(l,r),c,p.contents]);break;case"align":i.push([Su(l,p.n,r),c,p.contents]);break;case"trim":n+=Bu(o);break;case"group":if(u&&p.break)return!1;i.push([l,p.break?1:c,p.contents]),p.id&&(gu[p.id]=i[i.length-1][1]);break;case"fill":for(var d=p.parts.length-1;d>=0;d--)i.push([l,c,p.parts[d]]);break;case"if-break":var D=p.groupId?gu[p.groupId]:c;1===D&&p.breakContents&&i.push([l,c,p.breakContents]),2===D&&p.flatContents&&i.push([l,c,p.flatContents]);break;case"line":switch(c){case 2:if(!p.hard){p.soft||(o.push(" "),n-=1);break}return!0;case 1:return!0}}}else{if(0===a)return!0;i.push(t[a-1]),a--}return!1}var ku={};function Ou(e,t,n,r){for(var u=[e];0!==u.length;){var a=u.pop();if(a!==ku){var i=!0;if(t&&!1===t(a)&&(i=!1),n&&(u.push(a),u.push(ku)),i)if("concat"===a.type||"fill"===a.type)for(var o=a.parts.length-1;o>=0;--o)u.push(a.parts[o]);else if("if-break"===a.type)a.flatContents&&u.push(a.flatContents),a.breakContents&&u.push(a.breakContents);else if("group"===a.type&&a.expandedStates)if(r)for(var s=a.expandedStates.length-1;s>=0;--s)u.push(a.expandedStates[s]);else u.push(a.contents);else a.contents&&u.push(a.contents)}else n(u.pop())}}function Nu(e,t){if("concat"===e.type||"fill"===e.type){var n=e.parts.map((function(e){return Nu(e,t)}));return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){var r=e.breakContents&&Nu(e.breakContents,t),u=e.flatContents&&Nu(e.flatContents,t);return t(Object.assign({},e,{breakContents:r,flatContents:u}))}if(e.contents){var a=Nu(e.contents,t);return t(Object.assign({},e,{contents:a}))}return t(e)}function Pu(e,t,n){var r=n,u=!1;return Ou(e,(function(e){var n=t(e);if(void 0!==n&&(u=!0,r=n),u)return!1})),r}function Iu(e){return"string"!=typeof e&&("line"===e.type||void 0)}function ju(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Lu(e){if(e.length>0){var t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function _u(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Mu(e){if("concat"===e.type){for(var t=[],n=0;n=0;d--)a.push([c,p,f.parts[d]]);break;case"indent":a.push([xu(c,t),p,f.contents]);break;case"align":a.push([Su(c,f.n,t),p,f.contents]);break;case"trim":u-=Bu(i);break;case"group":switch(p){case 2:if(!o){a.push([c,f.break?1:2,f.contents]);break}case 1:o=!1;var D=[c,2,f.contents],h=n-u;if(!f.break&&Tu(D,a,h,t))a.push(D);else if(f.expandedStates){var m=f.expandedStates[f.expandedStates.length-1];if(f.break){a.push([c,1,m]);break}for(var g=1;g=f.expandedStates.length){a.push([c,1,m]);break}var y=[c,2,f.expandedStates[g]];if(Tu(y,a,h,t)){a.push(y);break}}}else a.push([c,1,f.contents])}f.id&&(gu[f.id]=a[a.length-1][1]);break;case"fill":var v=n-u,E=f.parts;if(0===E.length)break;var C=E[0],A=[c,2,C],F=[c,1,C],b=Tu(A,[],v,t,!0);if(1===E.length){a.push(b?A:F);break}var x=E[1],S=[c,2,x],w=[c,1,x];if(2===E.length){b?(a.push(S),a.push(A)):(a.push(w),a.push(F));break}E.splice(0,2);var B=[c,p,Fu(E)];Tu([c,2,Au([C,x,E[0]])],[],v,t,!0)?(a.push(B),a.push(S),a.push(A)):b?(a.push(B),a.push(w),a.push(A)):(a.push(B),a.push(w),a.push(F));break;case"if-break":var T=f.groupId?gu[f.groupId]:p;1===T&&f.breakContents&&a.push([c,p,f.breakContents]),2===T&&f.flatContents&&a.push([c,p,f.flatContents]);break;case"line-suffix":s.push([c,p,f.contents]);break;case"line-suffix-boundary":s.length>0&&a.push([c,p,{type:"line",hard:!0}]);break;case"line":switch(p){case 2:if(!f.hard){f.soft||(i.push(" "),u+=1);break}o=!0;case 1:if(s.length){a.push([c,p,f]),[].push.apply(a,s.reverse()),s=[];break}f.literal?c.root?(i.push(r,c.root.value),u=c.root.length):(i.push(r),u=0):(u-=Bu(i),i.push(r+c.value),u=c.length)}}}var k=i.indexOf(bu.placeholder);if(-1!==k){var O=i.indexOf(bu.placeholder,k+1),N=i.slice(0,k).join(""),P=i.slice(k+1,O).join("");return{formatted:N+P+i.slice(O+1).join(""),cursorNodeStart:N.length,cursorNodeText:P}}return{formatted:i.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Pu(e,ju,!1)},isLineNext:function(e){return Pu(e,Iu,!1)},traverseDoc:Ou,findInDoc:Pu,mapDoc:Nu,propagateBreaks:function(e){var t=new Set,n=[];Ou(e,(function(e){if("break-parent"===e.type&&Lu(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Lu(n)}),!0)},removeLines:function(e){return Nu(e,_u)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){var n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:{printDocToDebug:function(e){return Ru(Mu(e))}}},Vu={getMaxContinuousCount:yu.getMaxContinuousCount,getStringWidth:yu.getStringWidth,getAlignmentSize:yu.getAlignmentSize,getIndentSize:yu.getIndentSize,skip:yu.skip,skipWhitespace:yu.skipWhitespace,skipSpaces:yu.skipSpaces,skipNewline:yu.skipNewline,skipToLineEnd:yu.skipToLineEnd,skipEverythingButNewLine:yu.skipEverythingButNewLine,skipInlineComment:yu.skipInlineComment,skipTrailingComment:yu.skipTrailingComment,hasNewline:yu.hasNewline,hasNewlineInRange:yu.hasNewlineInRange,hasSpaces:yu.hasSpaces,isNextLineEmpty:function(e,t,n){return yu.isNextLineEmpty(e,t,n.locEnd)},isNextLineEmptyAfterIndex:yu.isNextLineEmptyAfterIndex,isPreviousLineEmpty:function(e,t,n){return yu.isPreviousLineEmpty(e,t,n.locStart)},getNextNonSpaceNonCommentCharacterIndex:function(e,t,n){return yu.getNextNonSpaceNonCommentCharacterIndex(e,t,n.locEnd)},mapDoc:qu.utils.mapDoc,makeString:yu.makeString,addLeadingComment:yu.addLeadingComment,addDanglingComment:yu.addDanglingComment,addTrailingComment:yu.addTrailingComment},Uu=qu.builders,Wu=Uu.concat,$u=Uu.hardline,Ju=Uu.breakParent,zu=Uu.indent,Gu=Uu.lineSuffix,Xu=Uu.join,Hu=Uu.cursor,Yu=yu.hasNewline,Ku=yu.skipNewline,Qu=yu.isPreviousLineEmpty,Zu=Vu.addLeadingComment,ea=Vu.addDanglingComment,ta=Vu.addTrailingComment,na=Symbol("child-nodes");function ra(e,t,n){if(e){var r,u=t.printer,a=t.locStart,i=t.locEnd;if(n){if(e&&u.canAttachComment&&u.canAttachComment(e)){var s;for(s=n.length-1;s>=0&&!(a(n[s])<=a(e)&&i(n[s])<=i(e));--s);return void n.splice(s+1,0,e)}}else if(e[na])return e[na];if(u.getCommentChildNodes?r=u.getCommentChildNodes(e):e&&"object"===o(e)&&(r=Object.keys(e).filter((function(e){return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e})).map((function(t){return e[t]}))),r)return n||Object.defineProperty(e,na,{value:n=[],enumerable:!1}),r.forEach((function(e){ra(e,t,n)})),n}}function ua(e,t,n){var r=e.length;if(0!==r){var u,a=e[0],i=a.precedingNode,o=a.followingNode,s=n.locStart(o);for(u=r;u>0;--u){var l=e[u-1];Nr.strictEqual(l.precedingNode,i),Nr.strictEqual(l.followingNode,o);var c=t.slice(n.locEnd(l),s);if(!/^[\s(]*$/.test(c))break;s=n.locStart(l)}e.forEach((function(e,t){t=0)return void ta(t,o)}!function e(t,n,r){for(var u,a,i=r.locStart,o=r.locEnd,s=ra(t,r),l=0,c=s.length;l>1,f=s[p];if(i(f)-i(n)<=0&&o(n)-o(f)<=0)return n.enclosingNode=f,void e(f,n,r);if(o(f)-i(n)<=0)u=f,l=p+1;else{if(!(o(n)-i(f)<=0))throw new Error("Comment location overlaps with node location");a=f,c=p}}if(n.enclosingNode&&"TemplateLiteral"===n.enclosingNode.type){var d=n.enclosingNode.quasis,D=ia(d,n,r);u&&ia(d,u,r)!==D&&(u=null),a&&ia(d,a,r)!==D&&(a=null)}u&&(n.precedingNode=u),a&&(n.followingNode=a)}(t,o,r);var l=o.precedingNode,c=o.enclosingNode,p=o.followingNode,f=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:function(){return!1},d=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:function(){return!1},D=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:function(){return!1},h=e.length-1===s;if(Yu(n,a(o),{backwards:!0}))f(o,n,r,t,h)||(p?Zu(p,o):l?ta(l,o):ea(c||t,o));else if(Yu(n,i(o)))d(o,n,r,t,h)||(l?ta(l,o):p?Zu(p,o):ea(c||t,o));else if(D(o,n,r,t,h));else if(l&&p){var m=u.length;m>0&&u[m-1].followingNode!==o.followingNode&&ua(u,n,r),u.push(o)}else l?ta(l,o):p?Zu(p,o):ea(c||t,o)})),ua(u,n,r),e.forEach((function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))}},printComments:function(e,t,n,r){var u=e.getValue(),a=t(e),i=u&&u.comments;if(!i||0===i.length)return oa(e,n,a);var o=[],s=[r?";":"",a];return e.each((function(e){var t=e.getValue(),r=t.trailing;if(t.leading){var u=function(e,t,n){var r=e.getValue(),u=aa(e,n);if(!u)return"";var a=n.printer.isBlockComment&&n.printer.isBlockComment(r);return Wu(a?[u,Yu(n.originalText,n.locEnd(r))?$u:" "]:[u,$u])}(e,0,n);if(!u)return;o.push(u);var a=n.originalText,i=Ku(a,n.locEnd(t));!1!==i&&Yu(a,i)&&o.push($u)}else r&&s.push(function(e,t,n){var r=e.getValue(),u=aa(e,n);if(!u)return"";var a=n.printer.isBlockComment&&n.printer.isBlockComment(r),i=e.getNode(1),o=e.getNode(2),s=o&&("ClassDeclaration"===o.type||"ClassExpression"===o.type)&&o.superClass===i;if(Yu(n.originalText,n.locStart(r),{backwards:!0})){var l=Qu(n.originalText,r,n.locStart);return Gu(Wu([$u,l?$u:"",u]))}return Wu(a||s?[" ",u]:[Gu(Wu([" ",u])),a?"":Ju])}(e,0,n))}),"comments"),oa(e,n,Wu(o.concat(s)))},printDanglingComments:function(e,t,n,r){var u=[],a=e.getValue();return a&&a.comments?(e.each((function(e){var n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||u.push(aa(e,t))}),"comments"),0===u.length?"":n?Xu($u,u):zu(Wu([$u,Xu($u,u)]))):""},getSortedChildNodes:ra};function la(e){Nr.ok(this instanceof la),this.stack=[e]}function ca(e,t){var n=pa(e.stack,t);return-1===n?null:e.stack[n]}function pa(e,t){for(var n=e.length-1;n>=0;n-=2){var r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}la.prototype.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},la.prototype.getValue=function(){var e=this.stack;return e[e.length-1]},la.prototype.getNode=function(e){return ca(this,~~e)},la.prototype.getParentNode=function(e){return ca(this,1+~~e)},la.prototype.call=function(e){for(var t=this.stack,n=t.length,r=t[n-1],u=arguments.length,a=1;a2&&void 0!==arguments[2]?arguments[2]:0,r=t.printer;r.preprocess&&(e=r.preprocess(e,t));var u=new Map;function a(e,n){var i,s=e.getValue(),l=s&&"object"===o(s)&&void 0===n;return l&&u.has(s)?u.get(s):(i=r.willPrintOwnComments&&r.willPrintOwnComments(e,t)?Ea(e,t,a,n):sa.printComments(e,(function(e){return Ea(e,t,a,n)}),t,n&&n.needsSemi),l&&u.set(s,i),i)}var i=a(new fa(e));return n>0&&(i=ga(ha([ma,i]),n,t.tabWidth)),ya.propagateBreaks(i),i}function Ea(e,t,n,r){Nr.ok(e instanceof fa);var u=e.getValue(),a=t.printer;if(a.hasPrettierIgnore&&a.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(u),t.locEnd(u));if(u)try{var i=function(e,t,n,r){if(n.printer.embed)return n.printer.embed(e,t,(function(e,t){return function(e,t,n,r){var u=da(Object.assign({},n,t,{parentParser:n.parser,embeddedInHtml:!(!n.embeddedInHtml&&"html"!==n.parser&&"vue"!==n.parser&&"angular"!==n.parser&&"lwc"!==n.parser),originalText:e}),{passThrough:!0}),a=Sr.parse(e,u),i=a.ast;e=a.text;var o=i.comments;return delete i.comments,sa.attach(o,i,e,u),r(i,u)}(e,t,n,r)}),n)}(e,n,t,va);if(i)return i}catch(o){if(ut.PRETTIER_DEBUG)throw o}return a.print(e,t,n,r)}var Ca=va;function Aa(e,t,n,r,u){r=r||function(){return!0},u=u||[];var a=n.locStart(e,n.locStart),i=n.locEnd(e,n.locEnd);if(a<=t&&t<=i){var o=!0,s=!1,l=void 0;try{for(var c,p=sa.getSortedChildNodes(e,n)[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=Aa(c.value,t,n,r,[e].concat(u));if(f)return f}}catch(d){s=!0,l=d}finally{try{o||null==p.return||p.return()}finally{if(s)throw l}}if(r(e))return{node:e,parentNodes:u}}}function Fa(e,t){if(null==t)return!1;switch(e.parser){case"flow":case"babel":case"typescript":return["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"].indexOf(t.type)>-1;case"json":return["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"].indexOf(t.type)>-1;case"graphql":return["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"].indexOf(t.kind)>-1;case"vue":return"root"!==t.tag}return!1}var ba={calculateRange:function(e,t,n){var r,u=e.slice(t.rangeStart,t.rangeEnd),a=Math.max(t.rangeStart+u.search(/\S/),t.rangeStart);for(r=t.rangeEnd;r>t.rangeStart&&!e[r-1].match(/\S/);--r);var i=Aa(n,a,t,(function(e){return Fa(t,e)})),o=Aa(n,r,t,(function(e){return Fa(t,e)}));if(!i||!o)return{rangeStart:0,rangeEnd:0};var s=function(e,t,n){var r=e.node,u=t.node;if(r===u)return{startNode:r,endNode:u};var a=!0,i=!1,o=void 0;try{for(var s,l=t.parentNodes[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(!("Program"!==c.type&&"File"!==c.type&&n.locStart(c)>=n.locStart(e.node)))break;u=c}}catch(g){i=!0,o=g}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}var p=!0,f=!1,d=void 0;try{for(var D,h=e.parentNodes[Symbol.iterator]();!(p=(D=h.next()).done);p=!0){var m=D.value;if(!("Program"!==m.type&&"File"!==m.type&&n.locEnd(m)<=n.locEnd(t.node)))break;r=m}}catch(g){f=!0,d=g}finally{try{p||null==h.return||h.return()}finally{if(f)throw d}}return{startNode:r,endNode:u}}(i,o,t),l=s.startNode,c=s.endNode;return{rangeStart:Math.min(t.locStart(l,t.locStart),t.locStart(c,t.locStart)),rangeEnd:Math.max(t.locEnd(l,t.locEnd),t.locEnd(c,t.locEnd))}},findNodeAtOffset:Aa},xa=ot(oe),Sa=Or,wa=vu,Ba=qu.utils.mapDoc,Ta=qu.printer.printDocToString,ka=qu.debug.printDocToDebug,Oa=Symbol("cursor"),Na={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function Pa(e,t,n){var r=t.comments;return r&&(delete t.comments,sa.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimRight(),r}function Ia(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;var r=Sr.parse(e,t),u=r.ast;if(e=r.text,t.cursorOffset>=0){var a=ba.findNodeAtOffset(u,t.cursorOffset,t);a&&a.node&&(t.cursorNode=a.node)}var i=Pa(e,u,t),o=Ca(u,t,n),s=wa(t.endOfLine),l=Ta("lf"===t.endOfLine?o:Ba(o,(function(e){return"string"==typeof e&&-1!==e.indexOf("\n")?e.replace(/\n/g,s):e})),t);if(function(e){if(e){for(var t=0;t0){var c=l.formatted.trim();void 0!==l.cursorNodeStart&&(l.cursorNodeStart-=l.formatted.indexOf(c)),l.formatted=c+wa(t.endOfLine)}if(t.cursorOffset>=0){var p,f,d,D,h;if(t.cursorNode&&l.cursorNodeText?(p=t.locStart(t.cursorNode),f=e.slice(p,t.locEnd(t.cursorNode)),d=t.cursorOffset-p,D=l.cursorNodeStart,h=l.cursorNodeText):(p=0,f=e,d=t.cursorOffset,D=0,h=l.formatted),f===h)return{formatted:l.formatted,cursorOffset:D+d};var m=f.split("");m.splice(d,0,Oa);var g=h.split(""),y=xa.diffArrays(m,g),v=D,E=!0,C=!1,A=void 0;try{for(var F,b=y[Symbol.iterator]();!(E=(F=b.next()).done);E=!0){var x=F.value;if(x.removed){if(x.value.indexOf(Oa)>-1)break}else v+=x.count}}catch(S){C=!0,A=S}finally{try{E||null==b.return||b.return()}finally{if(C)throw A}}return{formatted:l.formatted,cursorOffset:v}}return{formatted:l.formatted}}function ja(e,t){var n=Sr.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=function(e){var t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}(e));var u=t.cursorOffset>=0,a=t.rangeStart>0,i=t.rangeEnd=0;s--){var l=o[s];e=e.slice(0,t[l])+Na[l]+e.slice(t[l])}e=e.replace(/\r\n?/g,"\n");for(var c=function(n){var r=o[n];e=e.replace(Na[r],(function(e,n){return t[r]=n,""}))},p=0;pe.length&&(t.rangeEnd=e.length);var d=a||i?function(e,t){var n,r=Sr.parse(e,t),u=ba.calculateRange(e=r.text,t,r.ast),a=u.rangeStart,i=u.rangeEnd,o=e.slice(a,i),s=Math.min(a,e.lastIndexOf("\n",a)+1),l=e.slice(s,a),c=yu.getAlignmentSize(l,t.tabWidth),p=Ia(o,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=a&&t.cursorOffset=i?h=t.cursorOffset-i+(a+f.length):void 0!==p.cursorOffset&&(h=p.cursorOffset+a),"lf"===t.endOfLine)n=d+f+D;else{var m=wa(t.endOfLine);if(h>=0){for(var g=[d,f,D],y=0,v=h;yt.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}})),$a=it((function(e,t){function n(){var e=mn;return n=function(){return e},e}function r(){var e,t=(e=Wa)&&e.__esModule?e:{default:e};return r=function(){return t},t}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(i);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(i);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function(e){var t=e.comments,u=void 0===t?"":t,a=e.pragmas,i=void 0===a?{}:a,o=(0,r().default)(u)||n().EOL,s=Object.keys(i),l=s.map((function(e){return d(e,i[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+o})).join("");if(!u){if(0===s.length)return"";if(1===s.length&&!Array.isArray(i[s[0]])){var c=i[s[0]];return"".concat("/**"," ").concat(d(s[0],c)[0]).concat(" */")}}var p=u.split(o).map((function(e){return"".concat(" *"," ").concat(e)})).join(o)+o;return"/**"+o+(u?p:"")+(u&&s.length?" *"+o:"")+l+" */"};var u=/\*\/$/,a=/^\/\*\*/,i=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,s=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g;function f(e){var t=(0,r().default)(e)||n().EOL;e=e.replace(a,"").replace(u,"").replace(p,"$1");for(var i="";i!==e;)i=e,e=e.replace(l,"".concat(t,"$1 $2").concat(t));e=e.replace(s,"").trimRight();for(var f,d=Object.create(null),D=e.replace(c,"").replace(s,"").trimRight();f=c.exec(e);){var h=f[2].replace(o,"");d[f[1]]="string"==typeof d[f[1]]||Array.isArray(d[f[1]])?[].concat(d[f[1]],h):h}return{comments:D,pragmas:d}}function d(e,t){return[].concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}}));at($a);var Ja=function(e){var t=$a.parseWithComments($a.extract(e)),n=Object.assign({format:""},t.pragmas),r=$a.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),u=$a.strip(e);return r+(u.startsWith("\n")?"\n":"\n\n")+u},za={"---":"yaml","+++":"toml"},Ga=function(e){var t=Object.keys(za).map(un).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};var r=n[0].replace(/\n$/,"");return{frontMatter:{type:za[n[1]],value:n[2],raw:r},content:n[0].replace(/[^\n]/g," ")+e.slice(n[0].length)}},Xa=["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"];function Ha(e,t){var n=function(e,t){for(var n,r=[].concat(t),u=-1;n=e.getParentNode(++u);)if(-1!==r.indexOf(n.type))return u;return-1}(e,t);return-1===n?null:e.getParentNode(n)}function Ya(e){return"value-operator"===e.type&&"*"===e.value}function Ka(e){return"value-operator"===e.type&&"/"===e.value}function Qa(e){return"value-operator"===e.type&&"+"===e.value}function Za(e){return"value-operator"===e.type&&"-"===e.value}function ei(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function ti(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&ei(e.groups[0])}var ni=yu.printNumber,ri=yu.printString,ui=yu.hasIgnoreComment,ai=yu.hasNewline,ii=Vu.isNextLineEmpty,oi=qu.builders,si=oi.concat,li=oi.join,ci=oi.line,pi=oi.hardline,fi=oi.softline,di=oi.group,Di=oi.fill,hi=oi.indent,mi=oi.dedent,gi=oi.ifBreak,yi=qu.utils.removeLines,vi=Ha,Ei=function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},Ci=function(e,t){var n=Ha(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},Ai=function(e){var t=Ha(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},Fi=function(e,t){var n=[].concat(t),r=Ha(e,"css-atrule");return r&&-1!==n.indexOf(r.name.toLowerCase())},bi=function(e,t){var n=Ha(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&-1!==["from","to"].indexOf(t.toLowerCase())},xi=function(e){return-1!==La.indexOf(e.toLowerCase())},Si=function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/.test(t)},wi=function(e,t){var n=e.getParentNode();if(!n)return!1;var r=n.nodes;return r&&r.indexOf(t)===r.length-1},Bi=function(e){return"css-atrule"===e.type&&-1!==["if","else","for","each","while"].indexOf(e.name)},Ti=function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},ki=function(e){return"value-word"===e.type&&-1!==["<",">","<=",">="].indexOf(e.value)},Oi=function(e){return"value-word"===e.type&&-1!==["==","!="].indexOf(e.value)},Ni=Ya,Pi=Ka,Ii=Qa,ji=Za,Li=function(e){return Ya(e)||Ka(e)||Qa(e)||Za(e)||function(e){return"value-operator"===e.type&&"%"===e.value}(e)},_i=function(e){return"value-word"===e.type&&"in"===e.value},Mi=function(e){return"value-word"===e.type&&-1!==["from","through","end"].indexOf(e.value)},Ri=function(e){return"value-word"===e.type&&-1!==["and","or","not"].indexOf(e.value)},qi=function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},Vi=function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},Ui=function(e){return e.raws&&""===e.raws.before},Wi=ei,$i=function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},Ji=function(e){return e.name.startsWith("prettier-placeholder")},zi=function(e){return e.prop.startsWith("@prettier-placeholder")},Gi=function(e){return"value-comment"===e.type&&e.inline},Xi=function(e){return"value-word"===e.type&&"#"===e.value},Hi=function(e){return"value-word"===e.type&&"{"===e.value},Yi=function(e){return"value-word"===e.type&&"}"===e.value},Ki=function(e){return-1!==["value-word","value-atword"].indexOf(e.type)},Qi=function(e){return"value-colon"===e.type},Zi=function(e){return e.value&&-1!==["not","and","or"].indexOf(e.value.toLowerCase())},eo=function(e){return"value-func"===e.type&&-1!==Xa.indexOf(e.value.toLowerCase())};function to(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function no(e,t,n){var r=e.getValue(),u=[],a=0;return e.map((function(e){var i=r.nodes[a-1];if(i&&"css-comment"===i.type&&"prettier-ignore"===i.text.trim()){var o=e.getValue();u.push(t.originalText.slice(t.locStart(o),t.locEnd(o)))}else u.push(e.call(n));a!==r.nodes.length-1&&("css-comment"===r.nodes[a+1].type&&!ai(t.originalText,t.locStart(r.nodes[a+1]),{backwards:!0})&&"yaml"!==r.nodes[a].type&&"toml"!==r.nodes[a].type||"css-atrule"===r.nodes[a+1].type&&"else"===r.nodes[a+1].name&&"css-comment"!==r.nodes[a].type?u.push(" "):(u.push(pi),ii(t.originalText,e.getValue(),t)&&"yaml"!==r.nodes[a].type&&"toml"!==r.nodes[a].type&&u.push(pi))),a++}),"nodes"),si(u)}var ro=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,uo=RegExp(ro.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function ao(e,t){return e.replace(ro,(function(e){return ri(e,t)}))}function io(e,t){var n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function oo(e){return e.replace(uo,(function(e,t,n,r,u){return!n&&r?(n||"")+so(r)+Ei(u||""):e}))}function so(e){return ni(e).replace(/\.0(?=$|e)/,"")}var lo={print:function(e,t,n){var r,u,a=e.getValue();if(!a)return"";if("string"==typeof a)return a;switch(a.type){case"yaml":case"toml":return si([a.raw,pi]);case"css-root":var i=no(e,t,n);return i.parts.length?si([i,pi]):i;case"css-comment":if(a.raws.content)return a.raws.content;var o=t.originalText.slice(t.locStart(a),t.locEnd(a)),s=a.raws.text||a.text;return-1===o.indexOf(s)?si(a.raws.inline?["// ",s]:["/* ",s," */"]):o;case"css-rule":return si([e.call(n,"selector"),a.important?" !important":"",a.nodes?si([" {",a.nodes.length>0?hi(si([pi,no(e,t,n)])):"",pi,"}",Ti(a)?";":""]):";"]);case"css-decl":var l=e.getParentNode();return si([a.raws.before.replace(/[\s;]/g,""),Ai(e)?a.prop:Ei(a.prop),":"===a.raws.between.trim()?":":a.raws.between.trim(),a.extend?"":" ",qi(a)?yi(e.call(n,"value")):e.call(n,"value"),a.raws.important?a.raws.important.replace(/\s*!\s*important/i," !important"):a.important?" !important":"",a.raws.scssDefault?a.raws.scssDefault.replace(/\s*!default/i," !default"):a.scssDefault?" !default":"",a.raws.scssGlobal?a.raws.scssGlobal.replace(/\s*!global/i," !global"):a.scssGlobal?" !global":"",a.nodes?si([" {",hi(si([fi,no(e,t,n)])),fi,"}"]):zi(a)&&!l.raws.semicolon&&";"!==t.originalText[t.locEnd(a)-1]?"":";"]);case"css-atrule":var c=e.getParentNode();return si(["@",$i(a)||a.name.endsWith(":")?a.name:Ei(a.name),a.params?si([$i(a)?"":Ji(a)&&/^\s*\n/.test(a.raws.afterName)?/^\s*\n\s*\n/.test(a.raws.afterName)?si([pi,pi]):pi:" ",e.call(n,"params")]):"",a.selector?hi(si([" ",e.call(n,"selector")])):"",a.value?di(si([" ",e.call(n,"value"),Bi(a)?Vi(a)?" ":ci:""])):"else"===a.name?" ":"",a.nodes?si([Bi(a)?"":" ","{",hi(si([a.nodes.length>0?fi:"",no(e,t,n)])),fi,"}"]):Ji(a)&&!c.raws.semicolon&&";"!==t.originalText[t.locEnd(a)-1]?"":";"]);case"media-query-list":var p=[];return e.each((function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||p.push(e.call(n))}),"nodes"),di(hi(li(ci,p)));case"media-query":return si([li(" ",e.map(n,"nodes")),wi(e,a)?"":","]);case"media-type":return oo(ao(a.value,t));case"media-feature-expression":return a.nodes?si(["(",si(e.map(n,"nodes")),")"]):a.value;case"media-feature":return Ei(ao(a.value.replace(/ +/g," "),t));case"media-colon":return si([a.value," "]);case"media-value":return oo(ao(a.value,t));case"media-keyword":return ao(a.value,t);case"media-url":return ao(a.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return a.value;case"selector-root":return di(si([Fi(e,"custom-selector")?si([vi(e,"css-atrule").customSelector,ci]):"",li(si([",",Fi(e,["extend","custom-selector","nest"])?ci:pi]),e.map(n,"nodes"))]));case"selector-selector":return di(hi(si(e.map(n,"nodes"))));case"selector-comment":return a.value;case"selector-string":return ao(a.value,t);case"selector-tag":var f=e.getParentNode(),d=f&&f.nodes.indexOf(a),D=d&&f.nodes[d-1];return si([a.namespace?si([!0===a.namespace?"":a.namespace.trim(),"|"]):"","selector-nesting"===D.type?a.value:oo(xi(a.value)||bi(e,a.value)?a.value.toLowerCase():a.value)]);case"selector-id":return si(["#",a.value]);case"selector-class":return si([".",oo(ao(a.value,t))]);case"selector-attribute":return si(["[",a.namespace?si([!0===a.namespace?"":a.namespace.trim(),"|"]):"",a.attribute.trim(),a.operator?a.operator:"",a.value?io(ao(a.value.trim(),t),t):"",a.insensitive?" i":"","]"]);case"selector-combinator":if("+"===a.value||">"===a.value||"~"===a.value||">>>"===a.value){var h=e.getParentNode();return si(["selector-selector"===h.type&&h.nodes[0]===a?"":ci,a.value,wi(e,a)?"":" "])}var m=a.value.trim().startsWith("(")?ci:"",g=oo(ao(a.value.trim(),t))||ci;return si([m,g]);case"selector-universal":return si([a.namespace?si([!0===a.namespace?"":a.namespace.trim(),"|"]):"",a.value]);case"selector-pseudo":return si([Ei(a.value),a.nodes&&a.nodes.length>0?si(["(",li(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return a.value;case"selector-unknown":var y=vi(e,"css-rule");return y&&y.isSCSSNesterProperty?oo(ao(Ei(a.value),t)):a.value;case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return si([a.inline?"//":"/*",a.value,a.inline?"":"*/"]);case"value-comma_group":for(var v=e.getParentNode(),E=e.getParentNode(1),C=function(e){var t=Ha(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()}(e),A=C&&"value-value"===v.type&&("grid"===C||C.startsWith("grid-template")),F=vi(e,"css-atrule"),b=F&&Bi(F),x=e.map(n,"groups"),S=[],w=Ci(e,"url"),B=!1,T=!1,k=0;k0&&"value-comma_group"===a.groups[0].type&&a.groups[0].groups.length>0&&"value-word"===a.groups[0].groups[0].type&&a.groups[0].groups[0].value.startsWith("data:")))return si([a.open?e.call(n,"open"):"",li(",",e.map(n,"groups")),a.close?e.call(n,"close"):""]);if(!a.open){for(var W=e.map(n,"groups"),$=[],J=0;J0?Po(Bo(["(",Io(Bo([No,To(Bo([jo("",", "),No]),e.call((function(e){return Mo(e,t,n)}),"arguments"))])),No,")"])):"",_o(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return Bo(r.block?['"""',ko,To(ko,r.value.replace(/"""/g,"\\$&").split("\n")),ko,'"""']:['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return Bo(["$",e.call(n,"name")]);case"ListValue":return Po(Bo(["[",Io(Bo([No,To(Bo([jo("",", "),No]),e.map(n,"values"))])),No,"]"]));case"ObjectValue":return Po(Bo(["{",t.bracketSpacing&&r.fields.length>0?" ":"",Io(Bo([No,To(Bo([jo("",", "),No]),e.map(n,"fields"))])),No,jo("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Bo([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Bo(["@",e.call(n,"name"),r.arguments.length>0?Po(Bo(["(",Io(Bo([No,To(Bo([jo("",", "),No]),e.call((function(e){return Mo(e,t,n)}),"arguments"))])),No,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Bo([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Bo([" = ",e.call(n,"defaultValue")]):"",_o(e,n,r)]);case"TypeExtensionDefinition":return Bo(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Bo([e.call(n,"description"),r.description?ko:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Bo([" implements ",To(Ro(t.originalText.substr(t.locStart(r),t.locEnd(r))),e.map(n,"interfaces"))]):"",_o(e,n,r),r.fields.length>0?Bo([" {",Io(Bo([ko,To(ko,e.call((function(e){return Mo(e,t,n)}),"fields"))])),ko,"}"]):""]);case"FieldDefinition":return Bo([e.call(n,"description"),r.description?ko:"",e.call(n,"name"),r.arguments.length>0?Po(Bo(["(",Io(Bo([No,To(Bo([jo("",", "),No]),e.call((function(e){return Mo(e,t,n)}),"arguments"))])),No,")"])):"",": ",e.call(n,"type"),_o(e,n,r)]);case"DirectiveDefinition":return Bo([e.call(n,"description"),r.description?ko:"","directive ","@",e.call(n,"name"),r.arguments.length>0?Po(Bo(["(",Io(Bo([No,To(Bo([jo("",", "),No]),e.call((function(e){return Mo(e,t,n)}),"arguments"))])),No,")"])):"",Bo([" on ",To(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Bo([e.call(n,"description"),r.description?ko:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),_o(e,n,r),r.values.length>0?Bo([" {",Io(Bo([ko,To(ko,e.call((function(e){return Mo(e,t,n)}),"values"))])),ko,"}"]):""]);case"EnumValueDefinition":return Bo([e.call(n,"description"),r.description?ko:"",e.call(n,"name"),_o(e,n,r)]);case"InputValueDefinition":return Bo([e.call(n,"description"),r.description?r.description.block?ko:Oo:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Bo([" = ",e.call(n,"defaultValue")]):"",_o(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Bo([e.call(n,"description"),r.description?ko:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),_o(e,n,r),r.fields.length>0?Bo([" {",Io(Bo([ko,To(ko,e.call((function(e){return Mo(e,t,n)}),"fields"))])),ko,"}"]):""]);case"SchemaDefinition":return Bo(["schema",_o(e,n,r)," {",r.operationTypes.length>0?Io(Bo([ko,To(ko,e.call((function(e){return Mo(e,t,n)}),"operationTypes"))])):"",ko,"}"]);case"OperationTypeDefinition":return Bo([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Bo([e.call(n,"description"),r.description?ko:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),_o(e,n,r),r.fields.length>0?Bo([" {",Io(Bo([ko,To(ko,e.call((function(e){return Mo(e,t,n)}),"fields"))])),ko,"}"]):""]);case"FragmentSpread":return Bo(["...",e.call(n,"name"),_o(e,n,r)]);case"InlineFragment":return Bo(["...",r.typeCondition?Bo([" on ",e.call(n,"typeCondition")]):"",_o(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Po(Bo([e.call(n,"description"),r.description?ko:"",Po(Bo(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),_o(e,n,r),r.types.length>0?Bo([" =",jo(""," "),Io(Bo([jo(Bo([Oo," "])),To(Bo([Oo,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Bo([e.call(n,"description"),r.description?ko:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),_o(e,n,r)]);case"NonNullType":return Bo([e.call(n,"type"),"!"]);case"ListType":return Bo(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:yu.hasIgnoreComment,insertPragma:function(e){return"# @format\n\n"+e},printComment:function(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimRight();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},Vo={bracketSpacing:co.bracketSpacing},Uo=[".graphql",".gql",".graphqls"],Wo={languages:[fo(ot(Object.freeze({__proto__:null,name:"GraphQL",type:"data",extensions:Uo,tmScope:"source.graphql",aceMode:"text",languageId:139,default:{name:"GraphQL",type:"data",extensions:Uo,tmScope:"source.graphql",aceMode:"text",languageId:139}})),(function(e){return Object.assign(e,{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})}))],options:Vo,printers:{graphql:qo}},$o=qu.builders,Jo=$o.concat,zo=$o.join,Go=$o.softline,Xo=$o.hardline,Ho=$o.line,Yo=$o.group,Ko=$o.indent,Qo=$o.ifBreak,Zo=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function es(e,t,n){return Jo(e.map((function(r,u){var a=e.getValue(),i=0===u,o=u==e.getParentNode(0).children.length-1&&!i;return ss(a)&&o?n(r,t,n):i?Jo([Go,n(r,t,n)]):n(r,t,n)}),"children"))}function ts(e,t){var n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},u=t.singleQuote?r:n,a=u===r?n:r,i=!1;(e.includes(u.quote)||e.includes(a.quote))&&(i=(e.match(u.regex)||[]).length>(e.match(a.regex)||[]).length);var o=i?a:u,s=e.replace(o.regex,"\\".concat(o.quote));return"".concat(o.quote).concat(s).concat(o.quote)}function ns(e,t){return e.call(t,"path")}function rs(e,t){var n=e.getValue(),r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function us(e,t,n){var r=[];return n=Object.assign({group:!0},n||{}),r.push(ns(e,t)),r=r.concat(rs(e,t)),Ko(n.group?Yo(zo(Ho,r)):zo(Ho,r))}function as(e){var t=e.getValue();return t.program&&t.program.blockParams.length?Jo([" as |",t.program.blockParams.join(" "),"|"]):""}function is(e,t){return Yo(Jo(["{{#",us(e,t),as(e),Go,"}}"]))}function os(e,t){return Jo(["{{/",e.call(t,"path"),"}}"])}function ss(e){return"TextNode"===e.type&&!/\S/.test(e.chars)}function ls(e){var t=e.getValue(),n=e.getParentNode(0),r=n.children||n.body;if(r){var u=r.indexOf(t);if(u>0)return r[u-1]}}function cs(e){var t=e.getValue(),n=e.getParentNode(0),r=n.children||n.body;if(r){var u=r.indexOf(t);if(u0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Array(Math.min(e,t)).fill(Xo)}var hs={print:function(e,t,n){var r=e.getValue();if(!r)return"";switch(r.type){case"Block":case"Program":case"Template":return Yo(Jo(e.map(n,"body").filter((function(e){return""!==e}))));case"ElementNode":var u=r.tag[0],a=-1!==r.tag.indexOf("."),i=u.toUpperCase()===u||a,o=r.children.length>0,s=r.children.some((function(e){return!ss(e)})),l=i&&(!o||!s)||-1!==Zo.indexOf(r.tag),c=l?Jo([" />",Go]):">",p=l?"/>":">",f=cs(e);return Jo([Yo(Jo(["<",r.tag,function(e,t){return Ko(Jo([r.attributes.length?Ho:"",zo(Ho,e.map(t,"attributes")),r.modifiers.length?Ho:"",zo(Ho,e.map(t,"modifiers")),r.comments.length?Ho:"",zo(Ho,e.map(t,"comments"))]))}(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Qo(Go,""),Qo(p,c)])),l?"":Yo(Jo([s?Ko(es(e,t,n)):"",Qo(o?Xo:"",""),Jo([""])])),f&&"ElementNode"===f.type?Xo:""]);case"BlockStatement":var d=e.getParentNode(1),D=d&&d.inverse&&1===d.inverse.body.length&&d.inverse.body[0]===r&&"if"===d.inverse.body[0].path.parts[0],h=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],m=h?function(e){return e}:Ko;if(r.inverse)return Jo([D?Jo(["{{else ",us(e,n),"}}"]):is(e,n),Ko(Jo([Xo,e.call(n,"program")])),r.inverse&&!h?Jo([Xo,"{{else}}"]):"",r.inverse?m(Jo([Xo,e.call(n,"inverse")])):"",D?"":Jo([Xo,os(e,n)])]);if(D)return Jo([Jo(["{{else ",us(e,n),"}}"]),Ko(Jo([Xo,e.call(n,"program")]))]);var g=r.program.body.some((function(e){return!ss(e)}));return Jo([is(e,n),Yo(Jo([Ko(Jo([Go,e.call(n,"program")])),g?Xo:Go,os(e,n)]))]);case"ElementModifierStatement":case"MustacheStatement":var y=e.getParentNode(1),v=y&&"ConcatStatement"===y.type;return Yo(Jo([!1===r.escaped?"{{{":"{{",us(e,n,{group:!1}),v?"":Go,!1===r.escaped?"}}}":"}}"]));case"SubExpression":var E=rs(e,n),C=E.length>0?Ko(Jo([Ho,Yo(zo(Ho,E))])):"";return Yo(Jo(["(",ns(e,n),C,Go,")"]));case"AttrNode":var F="TextNode"===r.value.type;if(F&&r.value.loc.start.column===r.value.loc.end.column)return Jo([r.name]);var b=e.call(n,"value"),x=F?ts(b.parts.join(),t):b;return Jo([r.name,"=",x]);case"ConcatStatement":return Jo(['"',Yo(Ko(zo(Go,e.map((function(e){return n(e)}),"parts").filter((function(e){return""!==e}))))),'"']);case"Hash":return Jo([zo(Ho,e.map(n,"pairs"))]);case"HashPair":return Jo([r.key,"=",e.call(n,"value")]);case"TextNode":var S=!ls(e),w=!cs(e),B=!/\S/.test(r.chars),T=ds(r.chars),k="Block"===e.getParentNode(0).type,O="ElementNode"===e.getParentNode(0).type,N="Template"===e.getParentNode(0).type,P=function(e){return ds(((e="string"==typeof e?e:"").match(/^([^\S\r\n]*[\r\n])+/g)||[])[0]||"")}(r.chars),I=function(e){return ds(((e="string"==typeof e?e:"").match(/([\r\n][^\S\r\n]*)+$/g)||[])[0]||"")}(r.chars);if((S||w)&&B&&(k||O||N))return"";B&&T?(P=Math.min(T,2),I=0):((fs(e,"ElementNode")||fs(e,"BlockStatement"))&&(I=Math.max(I,1)),(ps(e,["ElementNode"])||ps(e,["BlockStatement"]))&&(P=Math.max(P,1)));var j="",L="";if(e.stack.indexOf("attributes")>=0){var _=e.getParentNode(0);if("ConcatStatement"===_.type){var M=_.parts,R=M.indexOf(r);R>0&&"MustacheStatement"===M[R-1].type&&(j=" "),R-1?"--":"";return Jo(["{{!",q,r.value,q,"}}"]);case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return Jo(["\x3c!--",r.value,"--\x3e"]);case"StringLiteral":return ts(r.value,t);case"NumberLiteral":return String(r.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:function(e,t){if(delete t.loc,delete t.selfClosing,"TextNode"===e.type){if(""===e.chars.replace(/\s+/,""))return null;t.chars=e.chars.replace(/^\s+/,"").replace(/\s+$/,"")}}},ms=["hbs","htmlbars"],gs=[".handlebars",".hbs"],ys={languages:[fo(ot(Object.freeze({__proto__:null,name:"Handlebars",type:"markup",group:"HTML",aliases:ms,extensions:gs,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:{name:"Handlebars",type:"markup",group:"HTML",aliases:ms,extensions:gs,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}})),(function(e){return Object.assign(e,{since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})}))],printers:{glimmer:hs}},vs=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],Es=["title"],Cs=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],As=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],Fs=["autoplay","controls","crossorigin","loop","muted","preload","src"],bs=["href","target"],xs=["color","face","size"],Ss=["dir"],ws=["cite"],Bs=["alink","background","bgcolor","link","text","vlink"],Ts=["clear"],ks=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Os=["height","width"],Ns=["align"],Ps=["align","char","charoff","span","valign","width"],Is=["align","char","charoff","span","valign","width"],js=["value"],Ls=["cite","datetime"],_s=["open"],Ms=["title"],Rs=["open"],qs=["compact"],Vs=["align"],Us=["compact"],Ws=["height","src","type","width"],$s=["disabled","form","name"],Js=["color","face","size"],zs=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],Gs=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],Xs=["cols","rows"],Hs=["align"],Ys=["align"],Ks=["align"],Qs=["align"],Zs=["align"],el=["align"],tl=["profile"],nl=["align","noshade","size","width"],rl=["manifest","version"],ul=["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],al=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],il=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ol=["cite","datetime"],sl=["prompt"],ll=["accesskey","for","form"],cl=["accesskey","align"],pl=["type","value"],fl=["as","charset","color","crossorigin","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],dl=["name"],Dl=["compact"],hl=["charset","content","http-equiv","name","scheme"],ml=["high","low","max","min","optimum","value"],gl=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],yl=["compact","reversed","start","type"],vl=["disabled","label"],El=["disabled","label","selected","value"],Cl=["for","form","name"],Al=["align"],Fl=["name","type","value","valuetype"],bl=["width"],xl=["max","value"],Sl=["cite"],wl=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Bl=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],Tl=["name"],kl=["media","sizes","src","srcset","type"],Ol=["media","nonce","title","type"],Nl=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],Pl=["align","char","charoff","valign"],Il=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],jl=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],Ll=["align","char","charoff","valign"],_l=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Ml=["align","char","charoff","valign"],Rl=["datetime"],ql=["align","bgcolor","char","charoff","valign"],Vl=["default","kind","label","src","srclang"],Ul=["compact","type"],Wl=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],$l=ot(Object.freeze({__proto__:null,a:vs,abbr:Es,applet:Cs,area:As,audio:Fs,base:bs,basefont:xs,bdo:Ss,blockquote:ws,body:Bs,br:Ts,button:ks,canvas:Os,caption:Ns,col:Ps,colgroup:Is,data:js,del:Ls,details:_s,dfn:Ms,dialog:Rs,dir:qs,div:Vs,dl:Us,embed:Ws,fieldset:$s,font:Js,form:zs,frame:Gs,frameset:Xs,h1:Hs,h2:Ys,h3:Ks,h4:Qs,h5:Zs,h6:el,head:tl,hr:nl,html:rl,iframe:ul,img:al,input:il,ins:ol,isindex:sl,label:ll,legend:cl,li:pl,link:fl,map:dl,menu:Dl,meta:hl,meter:ml,object:gl,ol:yl,optgroup:vl,option:El,output:Cl,p:Al,param:Fl,pre:bl,progress:xl,q:Sl,script:wl,select:Bl,slot:Tl,source:kl,style:Ol,table:Nl,tbody:Pl,td:Il,textarea:jl,tfoot:Ll,th:_l,thead:Ml,time:Rl,tr:ql,track:Vl,ul:Ul,video:Wl,default:{"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:vs,abbr:Es,applet:Cs,area:As,audio:Fs,base:bs,basefont:xs,bdo:Ss,blockquote:ws,body:Bs,br:Ts,button:ks,canvas:Os,caption:Ns,col:Ps,colgroup:Is,data:js,del:Ls,details:_s,dfn:Ms,dialog:Rs,dir:qs,div:Vs,dl:Us,embed:Ws,fieldset:$s,font:Js,form:zs,frame:Gs,frameset:Xs,h1:Hs,h2:Ys,h3:Ks,h4:Qs,h5:Zs,h6:el,head:tl,hr:nl,html:rl,iframe:ul,img:al,input:il,ins:ol,isindex:sl,label:ll,legend:cl,li:pl,link:fl,map:dl,menu:Dl,meta:hl,meter:ml,object:gl,ol:yl,optgroup:vl,option:El,output:Cl,p:Al,param:Fl,pre:bl,progress:xl,q:Sl,script:wl,select:Bl,slot:Tl,source:kl,style:Ol,table:Nl,tbody:Pl,td:Il,textarea:jl,tfoot:Ll,th:_l,thead:Ml,time:Rl,tr:ql,track:Vl,ul:Ul,video:Wl}})),Jl={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},zl={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Gl(e){var t=Object.create(null),n=!0,r=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0)t[a.value]=!0}catch(o){r=!0,u=o}finally{try{n||null==i.return||i.return()}finally{if(r)throw u}}return t}function Xl(e,t){return!("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)||!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&-1===["template","style","script","html"].indexOf(e.fullName)||!(!ic(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))}function Hl(e){return"attribute"!==e.type&&!Yl(e)&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function Yl(e){return"text"===e.type||"comment"===e.type}function Kl(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName)}function Ql(e){return"yaml"===e.type||"toml"===e.type}function Zl(e){return oc(e).startsWith("pre")}function ec(e){return"element"===e.type&&0!==e.children.length&&(-1!==["html","head","ul","ol","select"].indexOf(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function tc(e){return nc(e)&&rc(e)}function nc(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function uc(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return-1!==["script","select"].indexOf(e.name)}return!1}function ac(e){return"block"===e||"list-item"===e||e.startsWith("table")}function ic(e){return oc(e).startsWith("pre")}function oc(e){return"element"===e.type&&!e.namespace&&zl[e.name]||"normal"}function sc(e){var t=1/0,n=!0,r=!1,u=void 0;try{for(var a,i=e.split("\n")[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var o=a.value;if(0!==o.length){if(/\S/.test(o[0]))return 0;var s=o.match(/^\s*/)[0].length;o.length!==s&&s")}))},function(e,t){if("html"===t.parser)return e;var n=/\{\{([\s\S]+?)\}\}/g;return e.map((function(e){if(!function(e){return e.children&&!Kl(e)}(e))return e;var t=[],r=!0,u=!1,a=void 0;try{for(var i,o=e.children[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if("text"===s.type)for(var l=s.sourceSpan.constructor,c=s.sourceSpan.start,p=null,f=s.value.split(n),d=0;d$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})}))},function(e){return e.map((function(e){return e.children?e.clone(0===e.children.length?{isDanglingSpaceSensitive:hc(e)}:{children:e.children.map((function(e){return Object.assign({},e,{isLeadingSpaceSensitive:gc(e),isTrailingSpaceSensitive:yc(e)})})).map((function(e,t,n){return Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})}))}):e}))},function(e){var t=function(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};return e.map((function(e){if(e.children){var n=e.children.map(t);if(n.some(Boolean)){for(var r=[],u=0;u")+a.firstChild.value+"")+o.value,sourceSpan:new s(i.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:l,hasTrailingSpaces:c}))}else r.push(a)}return e.clone({children:r})}}return e}))}],Ec=qu.builders,Cc=Ec.concat,Ac=Ec.group,Fc=it((function(e){var t,n;t=ut,n=function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function u(t){var n,r=t.exec(e.substring(g));if(r)return g+=(n=r[0]).length,n}for(var a,i,o,s,l,c=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,D=/[,]+$/,h=/^\d+$/,m=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,y=[];;){if(u(f),g>=c)return y;a=u(d),i=[],","===a.slice(-1)?(a=a.replace(D,""),E()):v()}function v(){for(u(p),o="",s="in descriptor";;){if(l=e.charAt(g),"in descriptor"===s)if(r(l))o&&(i.push(o),o="",s="after descriptor");else{if(","===l)return g+=1,o&&i.push(o),void E();if("("===l)o+=l,s="in parens";else{if(""===l)return o&&i.push(o),void E();o+=l}}else if("in parens"===s)if(")"===l)o+=l,s="in descriptor";else{if(""===l)return i.push(o),void E();o+=l}else if("after descriptor"===s)if(r(l));else{if(""===l)return void E();s="in descriptor",g-=1}g+=1}}function E(){var t,r,u,o,s,l,c,p,f,d=!1,D={};for(o=0;o1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=0,r=e.stack.length-1;r>=0;r--){var u=e.stack[r];u&&"object"===o(u)&&!Array.isArray(u)&&t(u)&&n++}return n},Gc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sc(e);return 0===t?e:e.split("\n").map((function(e){return e.slice(t)})).join("\n")},Xc=lc,Hc=function(e){return ec(e)||"element"===e.type&&0!==e.children.length&&(-1!==["body","script","style"].indexOf(e.name)||e.children.some((function(e){return function(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&nc(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||rc(e.lastChild))},Yc=function(e){return Ql(e)||e.next&&e.sourceSpan.end.line+1\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function bp(e){switch(e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function xp(e,t){if(rp(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function wp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?ip(t,Uc):ip(Gc(t.replace(/^\s*?\n|\n\s*?$/g,"")),_c):qc(Vc,t.split(/[\t\n\f\r ]+/)).parts}var Bp={preprocess:function(e,t){var n=!0,r=!1,u=void 0;try{for(var a,i=vc[Symbol.iterator]();!(n=(a=i.next()).done);n=!0)e=(0,a.value)(e,t)}catch(o){r=!0,u=o}finally{try{n||null==i.return||i.return()}finally{if(r)throw u}}return e},print:function(e,t,n){var r,u=e.getValue();switch(u.type){case"root":return Tc.concat([Lc(sp(e,t,n)),_c]);case"element":case"ieConditionalComment":var a=1===u.children.length&&"interpolation"===u.firstChild.type&&u.firstChild.isLeadingSpaceSensitive&&!u.firstChild.hasLeadingSpaces&&u.lastChild.isTrailingSpaceSensitive&&!u.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id");return op([Lc(op([Lc(lp(e,t,n),{id:i}),0===u.children.length?u.hasDanglingSpaces&&u.isDanglingSpaceSensitive?Vc:"":op([Hc(u)?Pc:"",(r=op([a?Mc($c,"",{groupId:i}):u.firstChild.hasLeadingSpaces&&u.firstChild.isLeadingSpaceSensitive?Vc:"text"===u.firstChild.type&&u.isWhitespaceSensitive&&u.isIndentationSensitive?Ic($c):$c,sp(e,t,n)]),a?Mc(Rc(r),r,{groupId:i}):Zc(u)&&"root"===u.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?r:Rc(r)),(u.next?gp(u.next):yp(u.parent))?u.lastChild.hasTrailingSpaces&&u.lastChild.isTrailingSpaceSensitive?" ":"":a?Mc($c,"",{groupId:i}):u.lastChild.hasTrailingSpaces&&u.lastChild.isTrailingSpaceSensitive?Vc:("comment"===u.lastChild.type||"text"===u.lastChild.type&&u.isWhitespaceSensitive&&u.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*zc(e,(function(e){return e.parent&&"root"!==e.parent.type})),"}$")).test(u.lastChild.value)?"":$c])])),fp(u,t)]);case"ieConditionalStartComment":case"ieConditionalEndComment":return op([cp(u),Dp(u)]);case"interpolation":return op([cp(u,t),op(e.map(n,"children")),Dp(u,t)]);case"text":if("interpolation"===u.parent.type){var o=/\n[^\S\n]*?$/,s=o.test(u.value),l=s?u.value.replace(o,""):u.value;return op([op(ip(l,Uc)),s?_c:""])}return jc(tp([].concat(Ep(u,t),wp(u),Ap(u,t))));case"docType":return op([Lc(op([cp(u,t)," ",u.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Dp(u,t)]);case"comment":return op([Ep(u,t),op(ip(t.originalText.slice(t.locStart(u),t.locEnd(u)),Uc)),Ap(u,t)]);case"attribute":if(null===u.value)return u.rawName;var c=ap(u.value),p=Jc(c,"'")|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)}(c)?l(c,{parser:"__js_expression"}):Oc(l(c,{parser:"__vue_event_binding"})))}if(r(["^:","^v-bind:"]))return s(l(u(),{parser:"__vue_expression"}));if(r(["^v-"]))return s(l(u(),{parser:"__js_expression"}))}if("angular"===n.parser){var p=function(e,t){return l(e,Object.assign({trailingComma:"none"},t))};if(r(["^\\(.+\\)$","^on-"]))return s(p(u(),{parser:"__ng_action"}));if(r(["^\\[.+\\]$","^bind(on)?-"]))return s(p(u(),{parser:"__ng_binding"}));if(r(["^i18n(-.+)?$"]))return o(jc(wp(e,u())));if(r(["^\\*"]))return s(p(u(),{parser:"__ng_directive"}));var f=/\{\{([\s\S]+?)\}\}/g,d=u();if(f.test(d)){var D=[];return d.split(f).forEach((function(e,t){if(t%2==0)D.push(op(ip(e,Uc)));else try{D.push(Lc(op(["{{",Rc(op([Vc,p(e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),Vc,"}}"])))}catch(n){D.push("{{",op(ip(e,Uc)),"}}")}})),Lc(op(D))}}return null}(u,(function(e,t){return n(e,Object.assign({__isInHtmlAttribute:!0},t))}),r);if(o)return op([u.rawName,'="',Lc(Nc(o,(function(e){return"string"==typeof e?e.replace(/"/g,"""):e}))),'"']);break;case"yaml":return Wc(op(["---",_c,0===u.value.trim().length?"":n(u.value,{parser:"yaml"}),"---"]))}}},Tp=["xhtml"],kp=[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],Op=Object.freeze({__proto__:null,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Tp,extensions:kp,languageId:146,default:{name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:Tp,extensions:kp,languageId:146}}),Np=[".vue"],Pp=Object.freeze({__proto__:null,name:"Vue",type:"markup",color:"#2c3e50",extensions:Np,tmScope:"text.html.vue",aceMode:"html",languageId:391,default:{name:"Vue",type:"markup",color:"#2c3e50",extensions:Np,tmScope:"text.html.vue",aceMode:"html",languageId:391}}),Ip=ot(Op),jp=ot(Pp),Lp={languages:[fo(Ip,(function(e){return Object.assign(e,{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})})),fo(Ip,(function(e){return Object.assign(e,{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})})),fo(Ip,(function(e){return Object.assign(e,{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})})),fo(jp,(function(e){return Object.assign(e,{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})}))],printers:{html:Bp},options:{htmlWhitespaceSensitivity:{since:"1.15.0",category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}},_p=Vu.addLeadingComment,Mp=Vu.addTrailingComment,Rp=Vu.addDanglingComment;function qp(e,t){var n=e.body.filter((function(e){return"EmptyStatement"!==e.type}));0===n.length?Rp(e,t):_p(n[0],t)}function Vp(e,t){"BlockStatement"===e.type?qp(e,t):_p(e,t)}function Up(e,t,n,r,u,a){return!(!n||"IfStatement"!==n.type||!r||(")"===yu.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd)?(Mp(t,u),0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Mp(t,u):Rp(n,u),0):"BlockStatement"===r.type?(qp(r,u),0):"IfStatement"===r.type?(Vp(r.consequent,u),0):n.consequent!==r||(_p(r,u),0)))}function Wp(e,t,n,r,u,a){return!(!n||"WhileStatement"!==n.type||!r||(")"===yu.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd)?(Mp(t,u),0):"BlockStatement"!==r.type||(qp(r,u),0)))}function $p(e,t,n,r){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!n||("CatchClause"===e.type&&t?(Mp(t,r),0):"BlockStatement"===n.type?(qp(n,r),0):"TryStatement"===n.type?(Vp(n.finalizer,r),0):"CatchClause"!==n.type||(Vp(n.body,r),0)))}function Jp(e,t,n,r){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||n&&"Decorator"===n.type||(e.decorators&&0!==e.decorators.length?Mp(e.decorators[e.decorators.length-1],r):_p(e,r),0))}function zp(e,t,n,r,u){return(t&&n&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==yu.getNextNonSpaceNonCommentCharacter(e,n,u.locEnd)||!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type))&&(Mp(n,r),!0)}function Gp(e,t,n,r,u,a){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Mp(t,u),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&("ArrowFunctionExpression"===n.type||"FunctionExpression"===n.type||"FunctionDeclaration"===n.type||"ObjectMethod"===n.type||"ClassMethod"===n.type)&&")"===yu.getNextNonSpaceNonCommentCharacter(e,u,a.locEnd))return Mp(t,u),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){var i=function(){if(0!==n.params.length)return yu.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(yu.getLast(n.params)));var t=yu.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,a.locEnd(n.id));return yu.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)}();if(a.locStart(u)>i)return qp(r,u),!0}return!1}function Xp(e,t){return!(!e||"ImportSpecifier"!==e.type||(_p(e,t),0))}function Hp(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Rp(t,n):_p(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(r?Rp(e,n):_p(e,n),0))}var Yp={handleOwnLineComment:function(e,t,n,r,u){var a=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(Gp(t,a,i,o,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||!t||"Identifier"!==t.type||(_p(e,n),0))}(i,o,e)||Up(t,a,i,o,e,n)||Wp(t,a,i,o,e,n)||$p(i,a,o,e)||Jp(i,0,o,e)||Xp(i,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type||(_p(e,n),0))}(i,0,e)||function(e,t,n,r){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type||(Mp(e,r),0))}(a,i,0,e)||Hp(i,r,e,u)||function(e,t,n,r,u){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&yu.hasNewline(e,u.locEnd(r)))&&(Mp(n,r),!0)}(t,i,a,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type||(_p(e,t),0))}(i,e)||zp(t,i,a,e,n))},handleEndOfLineComment:function(e,t,n,r,u){var a=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(Gp(t,a,i,o,e,n)||function(e,t,n,r,u,a){var i=t&&!yu.hasNewlineInRange(u,a.locEnd(t),a.locStart(r));return!(t&&i||!e||"ConditionalExpression"!==e.type||!n||(_p(n,r),0))}(i,a,o,e,t,n)||Xp(i,e)||Up(t,a,i,o,e,n)||Wp(t,a,i,o,e,n)||$p(i,a,o,e)||Jp(i,0,o,e)||function(e,t){return!(!e||"LabeledStatement"!==e.type||(_p(e,t),0))}(i,e)||function(e,t,n){return!!(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)&&(_p(t.arguments[0],n),!0)}(a,i,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type||(_p(e,t),0))}(i,e)||Hp(i,r,e,u)||function(e,t,n){return!(!e||"TypeAlias"!==e.type||(_p(e,n),0))}(i,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type||(_p(t,n),0))}(i,o,e))},handleRemainingComment:function(e,t,n,r,u){var a=e.precedingNode,i=e.enclosingNode,o=e.followingNode;return!!(Up(t,a,i,o,e,n)||Wp(t,a,i,o,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type||(Mp(e.value.left,n),0))}(i,a,e)||function(e,t,n,r){return!(")"!==yu.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)||(!t||("FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"ObjectMethod"!==t.type||0!==t.params.length)&&("CallExpression"!==t.type&&"OptionalCallExpression"!==t.type&&"NewExpression"!==t.type||0!==t.arguments.length)?!t||"MethodDefinition"!==t.type||0!==t.value.params.length||(Rp(t.value,n),0):(Rp(t,n),0)))}(t,i,e,n)||zp(t,i,a,e,n)||Hp(i,r,e,u)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var u=Vu.getNextNonSpaceNonCommentCharacterIndex(e,n,r);return"=>"===e.substr(u,2)&&(Rp(t,n),!0)}(t,i,e,n)||function(e,t,n,r,u){return!("("!==yu.getNextNonSpaceNonCommentCharacter(e,r,u.locEnd)||!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type||(Mp(n,r),0))}(t,i,a,e,n)||function(e,t,n,r,u){return!(!t||"TSMappedType"!==t.type||(r&&"TSTypeParameter"===r.type&&r.name?(_p(r.name,u),0):!n||"TSTypeParameter"!==n.type||!n.constraint||(Mp(n.constraint,u),0)))}(0,i,a,o,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label||(Mp(e,t),0))}(i,e))},hasLeadingComment:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some((function(e){return e.leading&&t(e)}))},isBlockComment:function(e){return"Block"===e.type||"CommentBlock"===e.type}},Kp=Yp.isBlockComment,Qp=Yp.hasLeadingComment,Zp=qu.builders,ef=Zp.indent,tf=Zp.join,nf=Zp.hardline,rf=Zp.softline,uf=Zp.literalline,af=Zp.concat,of=Zp.group,sf=Zp.dedentToRoot,lf=qu.utils,cf=lf.mapDoc,pf=lf.stripTrailingHardline;function ff(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function df(e,t){return cf(e,(function(e){if(!e.parts)return e;var n=[];return e.parts.forEach((function(e){n.push("string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):ff(e):e)})),Object.assign({},e,{parts:n})}))}function Df(e){var t=[],n=!1;return e.map((function(e){return e.trim()})).forEach((function(e,r,u){""!==e&&(t.push(""===u[r-1]&&n?af([nf,e]):e),n=!0)})),0===t.length?null:tf(nf,t)}function hf(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function mf(e){return Af(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}function gf(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n=t.tag;switch(n.type){case"MemberExpression":return vf(n.object)||Ef(n);case"CallExpression":return vf(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(vf(n.callee.object.object)||Ef(n.callee.object))||"CallExpression"===n.callee.object.type&&vf(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function yf(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function vf(e){return"Identifier"===e.type&&"styled"===e.name}function Ef(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Cf(e,t){return Qp(e,(function(e){return Kp(e)&&e.value===" ".concat(t," ")}))}function Af(e,t){var n=e.stack.slice(),r=null,u=n.pop(),a=!0,i=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(void 0===u)return!1;if("number"==typeof r&&(r=n.pop(),u=n.pop()),!c(u,r))return!1;r=n.pop(),u=n.pop()}}catch(p){i=!0,o=p}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return!0}var Ff=0;function bf(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}var xf=yu.getLast,Sf=yu.hasNewline,wf=yu.hasNewlineInRange,Bf=yu.hasIgnoreComment,Tf=yu.hasNodeIgnoreComment,kf=yu.skipWhitespace,Of=mr.keyword.isIdentifierNameES5,Nf=new RegExp("^".concat("(?:(?=.)\\s)","*:")),Pf=new RegExp("^".concat("(?:(?=.)\\s)","*::"));function If(e,t){if(!e||"object"!==o(e))return!1;if(Array.isArray(e))return e.some((function(e){return If(e,t)}));var n=t(e);return"boolean"==typeof n?n:Object.keys(e).some((function(n){return If(e[n],t)}))}function jf(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}function Lf(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function _f(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function Mf(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function Rf(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function qf(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function Vf(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function Uf(e){return"get"===e.kind||"set"===e.kind}function Wf(e,t,n){return n.locStart(e)===n.locStart(t)}function $f(e,t){return Uf(e)||Wf(e,e.value,t)}var Jf=/^(skip|[fx]?(it|describe|test))$/;function zf(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}var Gf=new RegExp("([ \n\r\t]+)"),Xf=new RegExp("[^ \n\r\t]");function Hf(e){return Lf(e)&&(Xf.test(Qf(e))||!/\n/.test(Qf(e)))}function Yf(e,t,n){return Vf(t)?Tf(t):t.comments&&t.comments.some((function(t){return t.leading&&Sf(e,n.locEnd(t))}))}function Kf(e){return e.quasis.some((function(e){return e.value.raw.includes("\n")}))}function Qf(e){return e.extra?e.extra.raw:e.raw}var Zf={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){var t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":return!((e.value?e.value.async:e.async)||"get"===e.kind||"set"===e.kind||!e.computed&&!(e.value?e.value.generator:e.generator));case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){var t=e.getNode();if("ClassProperty"!==t.type)return!1;var n=t.key&&t.key.name;return!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation)||void 0},conditionalExpressionChainContainsJSX:function(e){return Boolean(function(e){var t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(Vf))},getFlowVariance:function(e){if(!e.variance)return null;var t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side",t)},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some((function(e){return!e.leading&&!e.trailing}))},hasFlowAnnotationComment:function(e){return e&&e[0].value.match(Pf)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&e.trailingComments[0].value.match(Nf)},hasLeadingComment:function(e){return e.comments&&e.comments.some((function(e){return e.leading}))},hasLeadingOwnLineComment:Yf,hasNakedLeftSide:jf,hasNewlineBetweenOrAfterDecorators:function(e,t){return wf(t.originalText,t.locStart(e.decorators[0]),t.locEnd(xf(e.decorators)))||Sf(t.originalText,t.locEnd(xf(e.decorators)))},hasNgSideEffect:function(e){return If(e.getValue(),(function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))},hasNode:If,hasPrettierIgnore:function(e){return Bf(e)||function(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&Vf(t)&&Vf(n)))return!1;for(var r=null,u=n.children.indexOf(t);u>0;u--){var a=n.children[u-1];if("JSXText"!==a.type||Hf(a)){r=a;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find((function(e){return"prettier-ignore"===e.value.trim()}))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some((function(e){return e.trailing}))},identity:function(e){return e},isBinaryish:function(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type},isCallOrOptionalCallExpression:zf,isEmptyJSXElement:function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return Lf(t)&&!Hf(t)},isFlowAnnotationComment:function(e,t,n){var r=n.locStart(t),u=kf(e,n.locEnd(t));return"/*"===e.substr(r,2)&&"*/"===e.substr(u,2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;var t=0,n=!0,r=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var o=a.value;if(Rf(o)){if((t+=1)>1)return!0}else if(zf(o)){var s=!0,l=!1,c=void 0;try{for(var p,f=o.arguments[Symbol.iterator]();!(s=(p=f.next()).done);s=!0)if(Rf(p.value))return!0}catch(d){l=!0,c=d}finally{try{s||null==f.return||f.return()}finally{if(l)throw c}}}}}catch(d){r=!0,u=d}finally{try{n||null==i.return||i.return()}finally{if(r)throw u}}return!1},isFunctionNotation:$f,isFunctionOrArrowExpression:Rf,isGetterOrSetter:Uf,isJestEachTemplateLiteral:function(e,t){var n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJSXNode:Vf,isJSXWhitespaceExpression:function(e){return"JSXExpressionContainer"===e.type&&Lf(e.expression)&&" "===e.expression.value&&!e.expression.comments},isLastStatement:function(e){var t=e.getParentNode();if(!t)return!0;var n=e.getValue(),r=(t.body||t.consequent).filter((function(e){return"EmptyStatement"!==e.type}));return r&&r[r.length-1]===n},isLiteral:Lf,isLongCurriedCallExpression:function(e){var t=e.getValue(),n=e.getParentNode();return zf(t)&&zf(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isMeaningfulJSXText:Hf,isMemberExpressionChain:function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))},isMemberish:function(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object},isNgForOf:function(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value},isNumericLiteral:_f,isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||$f(e,t))},isSimpleFlowType:function(e){return e&&-1!==["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].indexOf(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)},isSimpleTemplateLiteral:function(e){return 0!==e.expressions.length&&e.expressions.every((function(e){if(e.comments)return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if("MemberExpression"===e.type||"OptionalMemberExpression"===e.type){for(var t=e;"MemberExpression"===t.type||"OptionalMemberExpression"===t.type;){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if((t=t.object).comments)return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:Mf,isStringPropSafeToCoerceToIdentifier:function(e,t){return Mf(e.key)&&Of(e.key.value)&&"json"!==t.parser&&!("typescript"===t.parser&&"ClassProperty"===e.type)},isTemplateOnItsOwnLine:function(e,t,n){return("TemplateLiteral"===e.type&&Kf(e)||"TaggedTemplateExpression"===e.type&&Kf(e.quasi))&&!Sf(t,n.locStart(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(qf(t)&&n&&e(n))return Rf(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return qf(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&Jf.test(t.callee.name)||("MemberExpression"===(r=t).callee.type||"OptionalMemberExpression"===r.callee.type)&&"Identifier"===r.callee.object.type&&"Identifier"===r.callee.property.type&&Jf.test(r.callee.object.name)&&("only"===r.callee.property.name||"skip"===r.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||Mf(t.arguments[0])))return!(t.arguments[2]&&!_f(t.arguments[2]))&&((2===t.arguments.length?Rf(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&t.arguments[1].params.length<=1)||qf(t.arguments[1]));var r;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!Vf(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1==r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||Wf(e,e.typeAnnotation,t))},matchJsxWhitespaceRegex:Gf,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;var t=xf(e.comments.filter((function(e){return!e.leading&&!e.trailing})));return t&&!Yp.isBlockComment(t)},rawText:Qf,returnArgumentHasLeadingComment:function(e,t){if(Yf(e.originalText,t,e))return!0;if(jf(t))for(var n,r=t;n=(u=r).expressions?u.expressions[0]:u.left||u.test||u.callee||u.object||u.tag||u.argument||u.expression;)if(Yf(e.originalText,r=n,e))return!0;var u;return!1}},ed=Zf.getLeftSidePathName,td=Zf.hasFlowShorthandAnnotationComment,nd=Zf.hasNakedLeftSide,rd=Zf.hasNode;function ud(e){var t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(ud);break;case"ObjectProperty":if("value"===r){var u=e.getParentNode(1);return u.properties[u.properties.length-1]===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(ud);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(ud);break;case"UnaryExpression":if(n.prefix)return e.callParent(ud)}return!1}var ad=function e(t,n){var r=t.getParentNode();if(!r)return!1;var u=t.getName(),a=t.getNode();if(t.getValue()!==a)return!1;if(n.__isInHtmlInterpolation&&!n.bracketSpacing&&function(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(a)&&ud(t))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForAwaitStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(a))return!1;if(function(e,t){var n=t.getValue();return u(n)&&(r(n)||function e(n){var a=t.getParentNode(n);return!(!a||u(a))&&(r(a)||e(n+1))}(0));function r(e){return e.comments&&e.comments.some((function(e){return e.leading&&Yp.isBlockComment(e)&&function(e){var t=e.trim().split("\n").map((function(e){return e.replace(/^[\s*]+/,"")})).join(" ").trim();if(!/^@type\s*\{[^]+\}$/.test(t))return!1;var n=!1,r=0,u=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var l=o.value;if("{"===l){if(n)return!1;r++}else if("}"===l){if(0===r)return!1;0==--r&&(n=!0)}}}catch(c){a=!0,i=c}finally{try{u||null==s.return||s.return()}finally{if(a)throw i}}return 0===r}(e.value)}))}function u(e){return e.extra&&e.extra.parenthesized}}(0,t))return!0;if("flow"!==n.parser&&td(t.getValue()))return!0;if("Identifier"===a.type)return!!(a.extra&&a.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(a.name));if("ParenthesizedExpression"===r.type)return!1;if(!("ClassDeclaration"!==r.type&&"ClassExpression"!==r.type||r.superClass!==a||"ArrowFunctionExpression"!==a.type&&"AssignmentExpression"!==a.type&&"AwaitExpression"!==a.type&&"BinaryExpression"!==a.type&&"ConditionalExpression"!==a.type&&"LogicalExpression"!==a.type&&"NewExpression"!==a.type&&"ObjectExpression"!==a.type&&"ParenthesizedExpression"!==a.type&&"SequenceExpression"!==a.type&&"TaggedTemplateExpression"!==a.type&&"UnaryExpression"!==a.type&&"UpdateExpression"!==a.type&&"YieldExpression"!==a.type))return!0;if("ExportDefaultDeclaration"===r.type)return function t(n,r){var u=n.getValue(),a=n.getParentNode();return"FunctionExpression"===u.type||"ClassExpression"===u.type?"ExportDefaultDeclaration"===a.type||!e(n,r):!(!nd(u)||"ExportDefaultDeclaration"!==a.type&&e(n,r))&&n.call.apply(n,[function(e){return t(e,r)}].concat(ed(n,u)))}(t,n);if("Decorator"===r.type&&r.expression===a){for(var i=!1,o=!1,s=a;s;)switch(s.type){case"MemberExpression":o=!0,s=s.object;break;case"CallExpression":if(o||i)return!0;i=!0,s=s.callee;break;case"Identifier":return!1;default:return!0}return!0}if("ArrowFunctionExpression"===r.type&&r.body===a&&"SequenceExpression"!==a.type&&yu.startsWithNoLookaheadToken(a,!1)||"ExpressionStatement"===r.type&&yu.startsWithNoLookaheadToken(a,!0))return!0;switch(a.type){case"SpreadElement":case"SpreadProperty":return"MemberExpression"===r.type&&"object"===u&&r.object===a;case"UpdateExpression":if("UnaryExpression"===r.type)return a.prefix&&("++"===a.operator&&"+"===r.operator||"--"===a.operator&&"-"===r.operator);case"UnaryExpression":switch(r.type){case"UnaryExpression":return a.operator===r.operator&&("+"===a.operator||"-"===a.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===u;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===u;case"BinaryExpression":return"**"===r.operator&&"left"===u;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if("UpdateExpression"===r.type)return!0;if("in"===a.operator&&function(e){for(var n=0;e;){var r=t.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===e)return!0;e=r}return!1}(a))return!0;case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"ConditionalExpression":return"TSAsExpression"===a.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===u;case"ClassExpression":case"ClassDeclaration":return"superClass"===u&&r.superClass===a;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===u;case"AssignmentExpression":return r.left===a&&("TSTypeAssertion"===a.type||"TSAsExpression"===a.type);case"LogicalExpression":if("LogicalExpression"===a.type)return r.operator!==a.operator;case"BinaryExpression":if(!a.operator&&"TSTypeAssertion"!==a.type)return!0;var l=r.operator,c=yu.getPrecedence(l),p=a.operator,f=yu.getPrecedence(p);return c>f||(c===f&&"right"===u?(Nr.strictEqual(r.right,a),!0):c===f&&!yu.shouldFlatten(l,p)||(c0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type&&sh(e.expression)||"TSAsExpression"===e.type&&sh(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||aD(e.body))}function lh(e,t,n){var r=e.getValue(),u=r.arguments;if(0===u.length)return ND(["(",sa.printDanglingComments(e,t,!0),")"]);if(2===u.length&&"ArrowFunctionExpression"===u[0].type&&0===u[0].params.length&&"BlockStatement"===u[0].body.type&&"ArrayExpression"===u[1].type&&!u.find((function(e){return e.comments})))return ND(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);var a=!1,i=!1,o=!1,s=u.length-1,l=e.map((function(e,r){var u=e.getNode(),l=[n(e)];return r===s||(Bd(t.originalText,u,t)?(0===r&&(o=!0),a=!0,l.push(",",jD,jD)):l.push(",",ID)),i=function(e,t){if(!e||"ArrowFunctionExpression"!==e.type||!e.body||"BlockStatement"!==e.body.type||!e.params||e.params.length<1)return!1;var r=!1;return t.each((function(e){var t=ND([n(e)]);r=r||HD(t)}),"params"),r}(u,e),ND(l)}),"arguments"),c=r.callee&&"Import"===r.callee.type||!th(t,"all")?"":",";function p(){return MD(ND(["(",RD(ND([ID,ND(l)])),c,ID,")"]),{shouldBreak:!0})}if(eD(u))return p();var f=function(e){if(2!==e.length)return!1;var t=e[0],n=e[1];return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||sh(n))}(u),d=function(e){var t=gd(e),n=Fd(e);return!Ud(t)&&!Xd(t)&&sh(t)&&(!n||n.type!==t.type)}(u);if(f||d){var D,h=(f?l.slice(1).some(HD):l.slice(0,-1).some(HD))||a||i,m=0;e.each((function(e){f&&0===m&&(D=[ND([e.call((function(e){return n(e,{expandFirstArg:!0})})),l.length>1?",":"",o?jD:ID,o?jD:""])].concat(l.slice(1))),d&&m===u.length-1&&(D=l.slice(0,-1).concat(e.call((function(e){return n(e,{expandLastArg:!0})})))),m++}),"arguments");var g=l.some(HD),y=ND(["(",ND(D),")"]);return ND([g?$D:"",VD([g||r.typeArguments||r.typeParameters?WD(p(),y):y,ND(f?["(",MD(D[0],{shouldBreak:!0}),ND(D.slice(1)),")"]:["(",ND(l.slice(0,-1)),MD(gd(D),{shouldBreak:!0}),")"]),p()],{shouldBreak:h})])}var v=ND(["(",RD(ND([LD,ND(l)])),WD(c),LD,")"]);return lD(e)?v:MD(v,{shouldBreak:l.some(HD)||a})}function ch(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var u=e.getParentNode(),a=r.definite||u&&"VariableDeclarator"===u.type&&u.definite,i="DeclareFunction"===u.type&&u.id===r;return Zd(t.originalText,r.typeAnnotation,t)?ND([" /*: ",e.call(n,"typeAnnotation")," */"]):ND([i?"":a?"!: ":": ",e.call(n,"typeAnnotation")])}function ph(e,t,n){var r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function fh(e,t,n,r,u){var a=e.getValue(),i=e.getParentNode(),o=a.parameters?"parameters":"params",s=AD(i),l=Ph(a),c=r&&!(a[o]&&a[o].some((function(e){return e.comments}))),p=u?ph(e,0,t):"",f=[];if(a[o]){var d=a[o].length-1;f=e.map((function(e,r){var u=[],i=e.getValue();return u.push(t(e)),r===d?a.rest&&u.push(",",ID):s||l||c?u.push(", "):Bd(n.originalText,i,n)?u.push(",",jD,jD):u.push(",",ID),ND(u)}),o)}if(a.rest&&f.push(ND(["...",e.call(t,"rest")])),0===f.length)return ND([p,"(",sa.printDanglingComments(e,n,!0,(function(e){return")"===Dd(n.originalText,e,n.locEnd)})),")"]);var D=gd(a[o]);if(c)return MD(ND([QD(p),"(",ND(f.map(QD)),")"]));var h=a[o].every((function(e){return!e.decorators}));if(l&&h)return ND([p,"(",ND(f),")"]);if(s)return ND([p,"(",ND(f),")"]);if((mD(i,n)||xD(i,n)||"TypeAlias"===i.type||"UnionTypeAnnotation"===i.type||"TSUnionType"===i.type||"IntersectionTypeAnnotation"===i.type||"FunctionTypeAnnotation"===i.type&&i.returnType===a)&&1===a[o].length&&null===a[o][0].name&&a[o][0].typeAnnotation&&null===a.typeParameters&&gD(a[o][0].typeAnnotation)&&!a.rest)return ND("always"===n.arrowParens?["(",ND(f),")"]:f);var m=!(D&&"RestElement"===D.type||a.rest);return ND([p,"(",RD(ND([LD,ND(f)])),WD(m&&th(n,"all")?",":""),LD,")"])}function dh(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&!(1!==(n=e.getValue()).params.length||n.rest||n.typeParameters||Rd(n)||"Identifier"!==n.params[0].type||n.params[0].typeAnnotation||n.params[0].comments||n.params[0].optional||n.predicate||n.returnType);var n}function Dh(e,t,n){var r=e.getValue(),u=[];return r.async&&u.push("async "),u.push("function"),r.generator&&u.push("*"),r.id&&u.push(" ",e.call(t,"id")),u.push(ph(e,0,t),MD(ND([fh(e,t,n),hh(e,t,n)])),r.body?" ":"",e.call(t,"body")),ND(u)}function hh(e,t,n){var r=e.getValue(),u=e.call(t,"returnType");if(r.returnType&&Zd(n.originalText,r.returnType,n))return ND([" /*: ",u," */"]);var a=[u];return r.returnType&&r.returnType.typeAnnotation&&a.unshift(": "),r.predicate&&a.push(r.returnType?" ":": ",e.call(t,"predicate")),ND(a)}function mh(e,t,n){var r=e.getValue(),u=t.semi?";":"",a=["export "],i=r.default||"ExportDefaultDeclaration"===r.type;if(i&&a.push("default "),a.push(sa.printDanglingComments(e,t,!0)),wD(r)&&a.push(jD),r.declaration)a.push(e.call(n,"declaration")),i&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&a.push(u);else{if(r.specifiers&&r.specifiers.length>0){var o=[],s=[],l=[];e.each((function(t){var r=e.getValue().type;"ExportSpecifier"===r?o.push(n(t)):"ExportDefaultSpecifier"===r?s.push(n(t)):"ExportNamespaceSpecifier"===r&&l.push(ND(["* as ",n(t)]))}),"specifiers");var c=0!==l.length&&0!==o.length,p=0!==s.length&&(0!==l.length||0!==o.length),f=o.length>1||s.length>0||r.specifiers&&r.specifiers.some((function(e){return e.comments})),d="";0!==o.length&&(d=f?MD(ND(["{",RD(ND([t.bracketSpacing?ID:LD,PD(ND([",",ID]),o)])),WD(th(t)?",":""),t.bracketSpacing?ID:LD,"}"])):ND(["{",t.bracketSpacing?" ":"",ND(o),t.bracketSpacing?" ":"","}"])),a.push("type"===r.exportKind?"type ":"",ND(s),ND([p?", ":""]),ND(l),ND([c?", ":""]),d)}else a.push("{}");r.source&&a.push(" from ",e.call(n,"source")),a.push(u)}return ND(a)}function gh(e,t){var n=pd(e);return n?Nr.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),ND(t)}function yh(e,t,n){var r=e.getValue();return r.modifiers&&r.modifiers.length?ND([PD(" ",e.map(n,"modifiers"))," "]):""}function vh(e,t,n,r){var u=e.getValue();if(!u[r])return"";if(!Array.isArray(u[r]))return e.call(n,r);var a=e.getNode(2),i=e.getNode(4);return null!=a&&AD(a)||0===u[r].length||1===u[r].length&&(Nh(u[r][0])||"GenericTypeAnnotation"===u[r][0].type&&Nh(u[r][0].id)||"TSTypeReference"===u[r][0].type&&Nh(u[r][0].typeName)||"NullableTypeAnnotation"===u[r][0].type||i&&"VariableDeclarator"===i.type&&a&&"TSTypeAnnotation"===a.type&&"TSUnionType"!==u[r][0].type&&"UnionTypeAnnotation"!==u[r][0].type&&"TSConditionalType"!==u[r][0].type&&"TSMappedType"!==u[r][0].type)?ND(["<",PD(", ",e.map(n,r)),">"]):MD(ND(["<",RD(ND([LD,PD(ND([",",ID]),e.map(n,r))])),WD("typescript"!==t.parser&&th(t,"all")?",":""),LD,">"]))}function Eh(e,t,n){var r=e.getValue(),u=[];r.abstract&&u.push("abstract "),u.push("class"),r.id&&u.push(" ",e.call(n,"id")),u.push(e.call(n,"typeParameters"));var a=[];if(r.superClass){var i=ND(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?a.push(MD(ND([ID,e.call((function(e){return sa.printComments(e,(function(){return i}),t)}),"superClass")]))):u.push(ND([" ",e.call((function(e){return sa.printComments(e,(function(){return i}),t)}),"superClass")]))}else r.extends&&r.extends.length>0&&u.push(" extends ",PD(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&a.push(ID,"mixins ",MD(RD(PD(ND([",",ID]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&a.push(ID,"implements",MD(RD(ND([ID,PD(ND([",",ID]),e.map(n,"implements"))])))),a.length>0&&u.push(MD(RD(ND(a)))),r.body&&r.body.comments&&Wd(t.originalText,r.body,t)?u.push(jD):u.push(" "),u.push(e.call(n,"body")),u}function Ch(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function Ah(e,t,n){var r=e.call(n,"property"),u=e.getValue(),a=Ch(e);return u.computed?!u.property||DD(u.property)?ND([a,"[",r,"]"]):MD(ND([a,"[",RD(ND([LD,r])),LD,"]"])):ND([a,".",r])}function Fh(e,t,n){return ND(["::",e.call(n,"callee")])}function bh(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?LD:jD:LD}function xh(e,t,n,r){return e?jD:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?jD:LD:jD}function Sh(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!aD(e.right))}function wh(e,t,n,r){return Wd(r.originalText,t,r)?RD(ND([jD,n])):Yd(t)&&!Sh(t)||"ConditionalExpression"===t.type&&Yd(t.test)&&!Sh(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||vD(e)||"MemberExpression"===e.type)&&(vD(t)||pD(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?MD(RD(ND([ID,n]))):ND([" ",n])}function Bh(e,t,n,r,u,a){if(!r)return t;var i=wh(e,r,u,a);return MD(ND([t,n,i]))}function Th(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?ND([" ",t]):RD(ND([ID,t]))}function kh(e,t,n){var r=BD(e);return vd(r,t,n||"DirectiveLiteral"===e.type)}function Oh(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function Nh(e){if(gD(e)||hD(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter((function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type})).length,n=e.types.filter((function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type})).length;if(e.types.length-1===t&&n>0)return!0}return!1}function Ph(e){return e&&e.params&&1===e.params.length&&!e.params[0].comments&&("ObjectPattern"===e.params[0].type||"ArrayPattern"===e.params[0].type||"Identifier"===e.params[0].type&&e.params[0].typeAnnotation&&("TypeAnnotation"===e.params[0].typeAnnotation.type||"TSTypeAnnotation"===e.params[0].typeAnnotation.type)&&hD(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&hD(e.params[0].typeAnnotation)||"AssignmentPattern"===e.params[0].type&&("ObjectPattern"===e.params[0].left.type||"ArrayPattern"===e.params[0].left.type)&&("Identifier"===e.params[0].right.type||"ObjectExpression"===e.params[0].right.type&&0===e.params[0].right.properties.length||"ArrayExpression"===e.params[0].right.type&&0===e.params[0].right.elements.length))&&!e.rest}function Ih(e,t,n,r){var u=[],a=[];return e.each((function(e){u.push(ND(a)),u.push(MD(r(e))),a=[",",ID],e.getValue()&&Bd(t.originalText,e.getValue(),t)&&a.push(LD)}),n),ND(u)}var jh={preprocess:cd,print:function(e,t,n,r){var u=e.getValue(),a=!1,i=function(e,t,n,r){var u=e.getValue(),a=t.semi?";":"";if(!u)return"";if("string"==typeof u)return u;var i=function(e,t,n){var r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r),"File"===r.type)return t.__isVueForBindingLeft?e.call((function(e){var t=e.getValue().params;return od([t.length>1?"(":"",sd(od([",",ld]),e.map(n,"params")),t.length>1?")":""])}),"program","body",0):t.__isVueSlotScope?e.call((function(e){return sd(od([",",ld]),e.map(n,"params"))}),"program","body",0):void 0}(e,t,n);if(i)return i;var s=[];switch(u.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return ND([e.call(n,"node"),jD]);case"File":return u.program&&u.program.interpreter&&s.push(e.call((function(e){return e.call(n,"interpreter")}),"program")),s.push(e.call(n,"program")),ND(s);case"Program":return u.directives&&e.each((function(e){s.push(n(e),a,jD),Bd(t.originalText,e.getValue(),t)&&s.push(jD)}),"directives"),s.push(e.call((function(e){return uh(e,t,n)}),"body")),s.push(sa.printDanglingComments(e,t,!0)),(u.body.length||u.comments)&&s.push(jD),ND(s);case"EmptyStatement":return"";case"ExpressionStatement":if(u.directive)return ND([kh(u.expression,t,!0),a]);if("__vue_event_binding"===t.parser){var l=e.getParentNode();if("Program"===l.type&&1===l.body.length&&l.body[0]===u)return ND([e.call(n,"expression"),Nd(u.expression)?";":""])}return ND([e.call(n,"expression"),FD(t,e)?"":a]);case"ParenthesizedExpression":return ND(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Bh(u.left,e.call(n,"left"),ND([" ",u.operator]),u.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":var c=e.getParentNode(),p=e.getParentNode(1),f=u!==c.body&&("IfStatement"===c.type||"WhileStatement"===c.type||"SwitchStatement"===c.type||"DoWhileStatement"===c.type),d=function e(t,n,r,u,a){var i=[],o=t.getValue();if(Yd(o)){dd(o.operator,o.left.operator)?i=i.concat(t.call((function(t){return e(t,n,r,!0,a)}),"left")):i.push(t.call(n,"left"));var s=Sh(o),l=("|>"===o.operator||"NGPipeExpression"===o.type||"|"===o.operator&&"__vue_expression"===r.parser)&&!Wd(r.originalText,o.right,r),c="NGPipeExpression"===o.type?"|":o.operator,p="NGPipeExpression"===o.type&&0!==o.arguments.length?MD(RD(ND([LD,": ",PD(ND([LD,":",WD(" ")]),t.map(n,"arguments").map((function(e){return qD(2,MD(e))})))]))):"",f=ND(s?[c," ",t.call(n,"right"),p]:[l?LD:"",c,l?" ":ID,t.call(n,"right"),p]),d=t.getParentNode();i.push(" ",a&&"LogicalExpression"===o.type||d.type===o.type||o.left.type===o.type||o.right.type===o.type?f:MD(f)),u&&o.comments&&(i=sa.printComments(t,(function(){return ND(i)}),r))}else i.push(t.call(n));return i}(e,n,t,!1,f);if(f)return ND(d);if(("CallExpression"===c.type||"OptionalCallExpression"===c.type)&&c.callee===u||"UnaryExpression"===c.type||("MemberExpression"===c.type||"OptionalMemberExpression"===c.type)&&!c.computed)return MD(ND([RD(ND([LD,ND(d)])),LD]));var D="ReturnStatement"===c.type||"JSXExpressionContainer"===c.type&&"JSXAttribute"===p.type||"NGPipeExpression"!==u.type&&("NGRoot"===c.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===c.type&&"NGMicrosyntax"===p.type&&1===p.body.length)||u===c.body&&"ArrowFunctionExpression"===c.type||u!==c.body&&"ForStatement"===c.type||"ConditionalExpression"===c.type&&"ReturnStatement"!==p.type&&"CallExpression"!==p.type&&"OptionalCallExpression"!==p.type,h="AssignmentExpression"===c.type||"VariableDeclarator"===c.type||"ClassProperty"===c.type||"TSAbstractClassProperty"===c.type||"ClassPrivateProperty"===c.type||"ObjectProperty"===c.type||"Property"===c.type,m=Yd(u.left)&&dd(u.operator,u.left.operator);if(D||Sh(u)&&!m||!Sh(u)&&h)return MD(ND(d));if(0===d.length)return"";var g=aD(u.right),y=ND(g?d.slice(1,-1):d.slice(1)),v=Symbol("logicalChain-"+ ++eh),E=MD(ND([d.length>0?d[0]:"",RD(y)]),{id:v});if(!g)return E;var C=gd(d);return MD(ND([E,WD(RD(C),C,{groupId:v})]));case"AssignmentPattern":return ND([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":var F=!("ArrayExpression"===u.expression.type||"ObjectExpression"===u.expression.type),b=MD(ND(["<",RD(ND([LD,e.call(n,"typeAnnotation")])),LD,">"])),x=ND([WD("("),RD(ND([LD,e.call(n,"expression")])),LD,WD(")")]);return F?VD([ND([b,e.call(n,"expression")]),ND([b,MD(x,{shouldBreak:!0})]),ND([b,e.call(n,"expression")])]):MD(ND([b,e.call(n,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var S,w=e.getParentNode(),B=0;do{S=e.getParentNode(B),B++}while(S&&("MemberExpression"===S.type||"OptionalMemberExpression"===S.type||"TSNonNullExpression"===S.type));var T=S&&("NewExpression"===S.type||"BindExpression"===S.type||"VariableDeclarator"===S.type&&"Identifier"!==S.id.type||"AssignmentExpression"===S.type&&"Identifier"!==S.left.type)||u.computed||"Identifier"===u.object.type&&"Identifier"===u.property.type&&"MemberExpression"!==w.type&&"OptionalMemberExpression"!==w.type;return ND([e.call(n,"object"),T?Ah(e,0,n):MD(RD(ND([LD,Ah(e,0,n)])))]);case"MetaProperty":return ND([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return u.object&&s.push(e.call(n,"object")),s.push(MD(RD(ND([LD,Fh(e,0,n)])))),ND(s);case"Identifier":return ND([u.name,Ch(e),ch(e,t,n)]);case"V8IntrinsicIdentifier":return ND(["%",u.name]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return ND(["...",e.call(n,"argument"),ch(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return s.push(Dh(e,n,t)),u.body||s.push(a),ND(s);case"ArrowFunctionExpression":u.async&&s.push("async "),dh(e,t)?s.push(e.call(n,"params",0)):s.push(MD(ND([fh(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),hh(e,n,t)])));var k=sa.printDanglingComments(e,t,!0,(function(e){var n=kd(t.originalText,e,t);return"=>"===t.originalText.substr(n,2)}));k&&s.push(" ",k),s.push(" =>");var O=e.call((function(e){return n(e,r)}),"body");if(!Wd(t.originalText,u.body,t)&&("ArrayExpression"===u.body.type||"ObjectExpression"===u.body.type||"BlockStatement"===u.body.type||aD(u.body)||CD(u.body,t.originalText,t)||"ArrowFunctionExpression"===u.body.type||"DoExpression"===u.body.type))return MD(ND([ND(s)," ",O]));if("SequenceExpression"===u.body.type)return MD(ND([ND(s),MD(ND([" (",RD(ND([LD,O])),LD,")"]))]));var N=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(u.comments&&u.comments.length),P=r&&r.expandLastArg&&th(t,"all"),I="ConditionalExpression"===u.body.type&&!bd(u.body,!1);return MD(ND([ND(s),MD(ND([RD(ND([ID,I?WD("","("):"",O,I?WD("",")"):""])),N?ND([WD(P?",":""),LD]):""]))]));case"YieldExpression":return s.push("yield"),u.delegate&&s.push("*"),u.argument&&s.push(" ",e.call(n,"argument")),ND(s);case"AwaitExpression":s.push("await ",e.call(n,"argument"));var j=e.getParentNode();return("CallExpression"===j.type||"OptionalCallExpression"===j.type)&&j.callee===u||("MemberExpression"===j.type||"OptionalMemberExpression"===j.type)&&j.object===u?MD(ND([RD(ND([LD,ND(s)])),LD])):ND(s);case"ImportSpecifier":return u.importKind&&s.push(e.call(n,"importKind")," "),s.push(e.call(n,"imported")),u.local&&u.local.name!==u.imported.name&&s.push(" as ",e.call(n,"local")),ND(s);case"ExportSpecifier":return s.push(e.call(n,"local")),u.exported&&u.exported.name!==u.local.name&&s.push(" as ",e.call(n,"exported")),ND(s);case"ImportNamespaceSpecifier":return s.push("* as "),s.push(e.call(n,"local")),ND(s);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return ND(["export = ",e.call(n,"expression"),a]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return mh(e,t,n);case"ExportAllDeclaration":return s.push("export "),"type"===u.exportKind&&s.push("type "),s.push("* from ",e.call(n,"source"),a),ND(s);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":s.push("import "),u.importKind&&"value"!==u.importKind&&s.push(u.importKind+" ");var L=[],_=[];return u.specifiers&&u.specifiers.length>0?(e.each((function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?L.push(n(e)):_.push(n(e))}),"specifiers"),L.length>0&&s.push(PD(", ",L)),L.length>0&&_.length>0&&s.push(", "),1===_.length&&0===L.length&&u.specifiers&&!u.specifiers.some((function(e){return e.comments}))?s.push(ND(["{",t.bracketSpacing?" ":"",ND(_),t.bracketSpacing?" ":"","}"])):_.length>=1&&s.push(MD(ND(["{",RD(ND([t.bracketSpacing?ID:LD,PD(ND([",",ID]),_)])),WD(th(t)?",":""),t.bracketSpacing?ID:LD,"}"]))),s.push(" from ")):(u.importKind&&"type"===u.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(u),t.locStart(u.source))))&&s.push("{} from "),s.push(e.call(n,"source"),a),ND(s);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":var M=e.call((function(e){return uh(e,t,n)}),"body"),R=u.body.find((function(e){return"EmptyStatement"!==e.type})),q=u.directives&&u.directives.length>0,V=e.getParentNode(),U=e.getParentNode(1);return R||q||Rd(u)||"ArrowFunctionExpression"!==V.type&&"FunctionExpression"!==V.type&&"FunctionDeclaration"!==V.type&&"ObjectMethod"!==V.type&&"ClassMethod"!==V.type&&"ClassPrivateMethod"!==V.type&&"ForStatement"!==V.type&&"WhileStatement"!==V.type&&"DoWhileStatement"!==V.type&&"DoExpression"!==V.type&&("CatchClause"!==V.type||U.finalizer)&&"TSModuleDeclaration"!==V.type?(s.push("{"),q&&e.each((function(e){s.push(RD(ND([jD,n(e),a]))),Bd(t.originalText,e.getValue(),t)&&s.push(jD)}),"directives"),R&&s.push(RD(ND([jD,M]))),s.push(sa.printDanglingComments(e,t)),s.push(jD,"}"),ND(s)):"{}";case"ReturnStatement":return s.push("return"),u.argument&&(TD(t,u.argument)?s.push(ND([" (",RD(ND([jD,e.call(n,"argument")])),jD,")"])):"LogicalExpression"===u.argument.type||"BinaryExpression"===u.argument.type||"SequenceExpression"===u.argument.type?s.push(MD(ND([WD(" ("," "),RD(ND([LD,e.call(n,"argument")])),LD,WD(")")]))):s.push(" ",e.call(n,"argument"))),Rd(u)&&s.push(" ",sa.printDanglingComments(e,t,!0)),s.push(a),ND(s);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var W="NewExpression"===u.type,$=Ch(e);if(!W&&"Identifier"===u.callee.type&&("require"===u.callee.name||"define"===u.callee.name)||1===u.arguments.length&&CD(u.arguments[0],t.originalText,t)||!W&&AD(u,e.getParentNode()))return ND([W?"new ":"",e.call(n,"callee"),$,ph(e,0,n),ND(["(",PD(", ",e.map(n,"arguments")),")"])]);var J="Identifier"===u.callee.type&&qd(u.callee.trailingComments);if(J&&(u.callee.trailingComments[0].printed=!0),!W&&fD(u.callee))return function(e,t,n){var r=[];function u(e){var n=t.originalText,r=kd(n,e,t);return")"==n.charAt(r)?Td(n,r+1,t):Bd(n,e,t)}var a=e.getValue();r.unshift({node:a,printed:ND([Ch(e),ph(e,0,n),lh(e,t,n)])}),e.call((function(e){return function e(a){var i=a.getValue();"CallExpression"!==i.type&&"OptionalCallExpression"!==i.type||!fD(i.callee)&&"CallExpression"!==i.callee.type&&"OptionalCallExpression"!==i.callee.type?fD(i)?(r.unshift({node:i,needsParens:ad(a,t),printed:sa.printComments(a,(function(){return"OptionalMemberExpression"===i.type||"MemberExpression"===i.type?Ah(a,0,n):Fh(a,0,n)}),t)}),a.call((function(t){return e(t)}),"object")):"TSNonNullExpression"===i.type?(r.unshift({node:i,printed:sa.printComments(a,(function(){return"!"}),t)}),a.call((function(t){return e(t)}),"expression")):r.unshift({node:i,printed:a.call(n)}):(r.unshift({node:i,printed:ND([sa.printComments(a,(function(){return ND([Ch(a),ph(a,0,n),lh(a,t,n)])}),t),u(i)?jD:""])}),a.call((function(t){return e(t)}),"callee"))}(e)}),"callee");for(var i=[],o=[r[0]],s=1;s0&&i.push(o);var p=i.length>=2&&!i[1][0].node.comments&&function(n){var r=e.getParentNode(),u=r&&"ExpressionStatement"===r.type,a=n[1].length&&n[1][0].node.computed;if(1===n[0].length){var i=n[0][0].node;return"ThisExpression"===i.type||"Identifier"===i.type&&(c(i.name)||u&&i.name.length<=t.tabWidth||a)}var o=gd(n[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(c(o.property.name)||a)}(i);function f(e){var t=e.map((function(e){return e.printed}));return ND(e.length>0&&e[e.length-1].needsParens?["("].concat(A(t),[")"]):t)}var d=i.map(f),D=ND(d),h=p?3:2,m=i.slice(0,h).reduce((function(e,t){return e.concat(t)}),[]),g=m.slice(1,-1).some((function(e){return Ud(e.node)}))||m.slice(0,-1).some((function(e){return Xd(e.node)}))||i[h]&&Ud(i[h][0].node);if(i.length<=h&&!g)return lD(e)?D:MD(D);var y,v,E=gd(p?i.slice(1,2)[0]:i[0]).node,C="CallExpression"!==E.type&&"OptionalCallExpression"!==E.type&&u(E),F=ND([f(i[0]),p?ND(i.slice(1,2).map(f)):"",C?jD:"",function(e){return 0===e.length?"":RD(MD(ND([jD,PD(jD,e.map(f))])))}(i.slice(p?2:1))]),b=r.map((function(e){return e.node})).filter(Kd);return g||b.length>=3||d.slice(0,-1).some(HD)||(y=gd(d),v=gd(gd(i)).node,Kd(v)&&HD(y)&&b.slice(0,-1).some((function(e){return e.arguments.some(nD)})))?MD(F):ND([HD(D)||C?$D:"",VD([D,F])])}(e,t,n);var z=ND([W?"new ":"",e.call(n,"callee"),$,J?"/*:: ".concat(u.callee.trailingComments[0].value.substring(2).trim()," */"):"",ph(e,0,n),lh(e,t,n)]);return Kd(u.callee)?MD(z):z;case"TSInterfaceDeclaration":return u.declare&&s.push("declare "),s.push(u.abstract?"abstract ":"",yh(e,0,n),"interface ",e.call(n,"id"),u.typeParameters?e.call(n,"typeParameters"):""," "),u.extends&&u.extends.length&&s.push(MD(RD(ND([LD,"extends ",(1===u.extends.length?Hd:RD)(PD(ND([",",ID]),e.map(n,"extends")))," "])))),s.push(e.call(n,"body")),ND(s);case"ObjectTypeInternalSlot":return ND([u.static?"static ":"","[[",e.call(n,"id"),"]]",Ch(e),u.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var G;G="TSTypeLiteral"===u.type?"members":"TSInterfaceBody"===u.type?"body":"properties";var X="ObjectTypeAnnotation"===u.type,H=[];X&&H.push("indexers","callProperties","internalSlots"),H.push(G);var Y=H.map((function(e){return u[e][0]})).sort((function(e,n){return t.locStart(e)-t.locStart(n)}))[0],K=e.getParentNode(0),Q=X&&K&&("InterfaceDeclaration"===K.type||"DeclareInterface"===K.type||"DeclareClass"===K.type)&&"body"===e.getName(),Z="TSInterfaceBody"===u.type||Q||"ObjectPattern"===u.type&&"FunctionDeclaration"!==K.type&&"FunctionExpression"!==K.type&&"ArrowFunctionExpression"!==K.type&&"ObjectMethod"!==K.type&&"ClassMethod"!==K.type&&"ClassPrivateMethod"!==K.type&&"AssignmentPattern"!==K.type&&"CatchClause"!==K.type&&u.properties.some((function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)}))||"ObjectPattern"!==u.type&&Y&&md(t.originalText,t.locStart(u),t.locStart(Y)),ee=Q?";":"TSInterfaceBody"===u.type||"TSTypeLiteral"===u.type?WD(a,";"):",",te=u.exact?"{|":"{",ne=u.exact?"|}":"}",re=[];H.forEach((function(r){e.each((function(e){var r=e.getValue();re.push({node:r,printed:n(e),loc:t.locStart(r)})}),r)}));var ue=[],ae=re.sort((function(e,t){return e.loc-t.loc})).map((function(e){var n=ND(ue.concat(MD(e.printed)));return ue=[ee,ID],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!Ad(e.node)||ue.shift(),Bd(t.originalText,e.node,t)&&ue.push(jD),n}));u.inexact&&ae.push(ND(ue.concat(MD("..."))));var ie,oe=gd(u[G]),se=!(oe&&("RestProperty"===oe.type||"RestElement"===oe.type||Ad(oe)||u.inexact));if(0===ae.length){if(!Rd(u))return ND([te,ne,ch(e,t,n)]);ie=MD(ND([te,sa.printDanglingComments(e,t),LD,ne,Ch(e),ch(e,t,n)]))}else ie=ND([te,RD(ND([t.bracketSpacing?ID:LD,ND(ae)])),WD(se&&(","!==ee||th(t))?ee:""),ND([t.bracketSpacing?ID:LD,ne]),Ch(e),ch(e,t,n)]);var le=e.getParentNode(2);return"ObjectPattern"===u.type&&K&&Ph(K)&&!u.decorators&&K.params[0]===u||Nh(u)&&le&&Ph(le)&&le.params[0].typeAnnotation&&le.params[0].typeAnnotation.typeAnnotation===u?ie:MD(ie,{shouldBreak:Z});case"ObjectProperty":case"Property":return u.method||"get"===u.kind||"set"===u.kind?ih(e,t,n):(s.push(u.shorthand?e.call(n,"value"):Bh(u.key,ah(e,t,n),":",u.value,e.call(n,"value"),t)),ND(s));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":return u.decorators&&0!==u.decorators.length&&s.push(nh(e,t,n)),u.accessibility&&s.push(u.accessibility+" "),u.static&&s.push("static "),"TSAbstractMethodDefinition"===u.type&&s.push("abstract "),s.push(ih(e,t,n)),ND(s);case"ObjectMethod":return ih(e,t,n);case"Decorator":return ND(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===u.elements.length)Rd(u)?s.push(MD(ND(["[",sa.printDanglingComments(e,t),LD,"]"]))):s.push("[]");else{var ce=gd(u.elements),pe=!(ce&&"RestElement"===ce.type),fe=pe&&null===ce,de=u.elements.length>1&&u.elements.every((function(e,t,n){var r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;var u=n[t+1];if(u&&r!==u.type)return!1;var a="ArrayExpression"===r?"elements":"properties";return e[a]&&e[a].length>1}));s.push(MD(ND(["[",RD(ND([LD,Ih(e,t,"elements",n)])),fe?",":"",WD(pe&&!fe&&th(t)?",":""),sa.printDanglingComments(e,t,!0),LD,"]"]),{shouldBreak:de}))}return s.push(Ch(e),ch(e,t,n)),ND(s);case"SequenceExpression":var De=e.getParentNode(0);if("ExpressionStatement"===De.type||"ForStatement"===De.type){var he=[];return e.each((function(e){0===e.getName()?he.push(n(e)):he.push(",",RD(ND([ID,n(e)])))}),"expressions"),MD(ND(he))}return MD(ND([PD(ND([",",ID]),e.map(n,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return Oh(u);case"NumericLiteral":return Ed(u.extra.raw);case"BigIntLiteral":return(u.bigint||(u.extra?u.extra.raw:u.raw)).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":if(u.regex)return Oh(u.regex);if("number"==typeof u.value)return Ed(u.raw);if("string"!=typeof u.value)return""+u.value;var me=e.getParentNode(1);return kh(u,t,"typescript"===t.parser&&"string"==typeof u.value&&me&&("Program"===me.type||"BlockStatement"===me.type));case"Directive":return e.call(n,"value");case"DirectiveLiteral":return kh(u,t);case"UnaryExpression":return s.push(u.operator),/[a-z]$/.test(u.operator)&&s.push(" "),s.push(u.argument.comments&&u.argument.comments.length>0?MD(ND(["(",RD(ND([LD,e.call(n,"argument")])),LD,")"])):e.call(n,"argument")),ND(s);case"UpdateExpression":return s.push(e.call(n,"argument"),u.operator),u.prefix&&s.reverse(),ND(s);case"ConditionalExpression":return rh(e,t,n,{beforeParts:function(){return[e.call(n,"test")]},afterParts:function(e){return[e?LD:""]},shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyName:"test",breakNested:!0});case"VariableDeclaration":var ge,ye=e.map((function(e){return n(e)}),"declarations"),ve=e.getParentNode(),Ee="ForStatement"===ve.type||"ForInStatement"===ve.type||"ForOfStatement"===ve.type||"ForAwaitStatement"===ve.type,Ce=u.declarations.some((function(e){return e.init}));return 1!==ye.length||u.declarations[0].comments?ye.length>0&&(ge=RD(ye[0])):ge=ye[0],s=[u.declare?"declare ":"",u.kind,ge?ND([" ",ge]):"",RD(ND(ye.slice(1).map((function(e){return ND([",",Ce&&!Ee?jD:ID,e])}))))],Ee&&ve.body!==u||s.push(a),MD(ND(s));case"TSTypeAliasDeclaration":u.declare&&s.push("declare ");var Ae=wh(u.id,u.typeAnnotation,u.typeAnnotation&&e.call(n,"typeAnnotation"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",Ae,a),MD(ND(s));case"VariableDeclarator":return Bh(u.id,e.call(n,"id")," =",u.init,u.init&&e.call(n,"init"),t);case"WithStatement":return MD(ND(["with (",e.call(n,"object"),")",Th(u.body,e.call(n,"body"))]));case"IfStatement":var Fe=Th(u.consequent,e.call(n,"consequent")),be=MD(ND(["if (",MD(ND([RD(ND([LD,e.call(n,"test")])),LD])),")",Fe]));if(s.push(be),u.alternate){var xe=Xd(u.consequent)&&u.consequent.comments.some((function(e){return e.trailing&&!Yp.isBlockComment(e)}))||wD(u);s.push("BlockStatement"!==u.consequent.type||xe?jD:" "),Rd(u)&&s.push(sa.printDanglingComments(e,t,!0),xe?jD:" "),s.push("else",MD(Th(u.alternate,e.call(n,"alternate"),"IfStatement"===u.alternate.type)))}return ND(s);case"ForStatement":var Se=Th(u.body,e.call(n,"body")),we=sa.printDanglingComments(e,t,!0),Be=we?ND([we,LD]):"";return ND(u.init||u.test||u.update?[Be,MD(ND(["for (",MD(ND([RD(ND([LD,e.call(n,"init"),";",ID,e.call(n,"test"),";",ID,e.call(n,"update")])),LD])),")",Se]))]:[Be,MD(ND(["for (;;)",Se]))]);case"WhileStatement":return MD(ND(["while (",MD(ND([RD(ND([LD,e.call(n,"test")])),LD])),")",Th(u.body,e.call(n,"body"))]));case"ForInStatement":return MD(ND([u.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Th(u.body,e.call(n,"body"))]));case"ForOfStatement":case"ForAwaitStatement":return MD(ND(["for","ForAwaitStatement"===u.type||u.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Th(u.body,e.call(n,"body"))]));case"DoWhileStatement":var Te=Th(u.body,e.call(n,"body")),ke=MD(ND(["do",Te]));return(s=[ke]).push("BlockStatement"===u.body.type?" ":jD),s.push("while ("),s.push(MD(ND([RD(ND([LD,e.call(n,"test")])),LD])),")",a),ND(s);case"DoExpression":return ND(["do ",e.call(n,"body")]);case"BreakStatement":return s.push("break"),u.label&&s.push(" ",e.call(n,"label")),s.push(a),ND(s);case"ContinueStatement":return s.push("continue"),u.label&&s.push(" ",e.call(n,"label")),s.push(a),ND(s);case"LabeledStatement":return ND("EmptyStatement"===u.body.type?[e.call(n,"label"),":;"]:[e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return ND(["try ",e.call(n,"block"),u.handler?ND([" ",e.call(n,"handler")]):"",u.finalizer?ND([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(u.param){var Oe=u.param.comments&&u.param.comments.some((function(e){return!Yp.isBlockComment(e)||e.leading&&hd(t.originalText,t.locEnd(e))||e.trailing&&hd(t.originalText,t.locStart(e),{backwards:!0})})),Ne=e.call(n,"param");return ND(["catch ",ND(Oe?["(",RD(ND([LD,Ne])),LD,") "]:["(",Ne,") "]),e.call(n,"body")])}return ND(["catch ",e.call(n,"body")]);case"ThrowStatement":return ND(["throw ",e.call(n,"argument"),a]);case"SwitchStatement":return ND([MD(ND(["switch (",RD(ND([LD,e.call(n,"discriminant")])),LD,")"]))," {",u.cases.length>0?RD(ND([jD,PD(jD,e.map((function(e){var r=e.getValue();return ND([e.call(n),u.cases.indexOf(r)!==u.cases.length-1&&Bd(t.originalText,r,t)?jD:""])}),"cases"))])):"",jD,"}"]);case"SwitchCase":u.test?s.push("case ",e.call(n,"test"),":"):s.push("default:");var Pe=u.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(Pe.length>0){var Ie=e.call((function(e){return uh(e,t,n)}),"consequent");s.push(1===Pe.length&&"BlockStatement"===Pe[0].type?ND([" ",Ie]):RD(ND([jD,Ie])))}return ND(s);case"DebuggerStatement":return ND(["debugger",a]);case"JSXAttribute":if(s.push(e.call(n,"name")),u.value){var je;if(vD(u.value)){var Le=BD(u.value).replace(/'/g,"'").replace(/"/g,'"'),_e=wd(Le,t.jsxSingleQuote?"'":'"'),Me="'"===_e?"'":""";Le=Le.slice(1,-1).replace(new RegExp(_e,"g"),Me),je=ND([_e,Le,_e])}else je=e.call(n,"value");s.push("=",je)}return ND(s);case"JSXIdentifier":return""+u.name;case"JSXNamespacedName":return PD(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return PD(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return PD(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return ND(["{",e.call((function(e){var r=ND(["...",n(e)]),u=e.getValue();return u.comments&&u.comments.length?ND([RD(ND([LD,sa.printComments(e,(function(){return r}),t)])),LD]):r}),"JSXSpreadAttribute"===u.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var Re=e.getParentNode(0),qe=!("JSXAttribute"===Re.type&&u.expression.comments&&u.expression.comments.length>0)&&("ArrayExpression"===u.expression.type||"ObjectExpression"===u.expression.type||"ArrowFunctionExpression"===u.expression.type||"CallExpression"===u.expression.type||"OptionalCallExpression"===u.expression.type||"FunctionExpression"===u.expression.type||"JSXEmptyExpression"===u.expression.type||"TemplateLiteral"===u.expression.type||"TaggedTemplateExpression"===u.expression.type||"DoExpression"===u.expression.type||aD(Re)&&("ConditionalExpression"===u.expression.type||Yd(u.expression)));return MD(ND(qe?["{",e.call(n,"expression"),JD,"}"]:["{",RD(ND([LD,e.call(n,"expression")])),LD,JD,"}"]));case"JSXFragment":case"JSXElement":var Ve=sa.printComments(e,(function(){return function(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&Qd(r))return ND([e.call(n,"openingElement"),e.call(n,"closingElement")]);var u=e.call(n,"JSXElement"===r.type?"openingElement":"openingFragment"),a=e.call(n,"JSXElement"===r.type?"closingElement":"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return ND([u,ND(e.map(n,"children")),a]);r.children=r.children.map((function(e){return iD(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var i=r.children.filter(aD).length>0,o=r.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,s="JSXElement"===r.type&&r.openingElement.attributes.length>1,l=HD(u)||i||s||o,c=t.singleQuote?"{' '}":'{" "}',p=WD(ND([c,LD])," "),f=function(e,t,n,r,u){var a=e.getValue(),i=[];return e.map((function(e,t){var o=e.getValue();if(sD(o)){var s=BD(o);if(cD(o)){var l,c=s.split(SD);if(""===c[0]&&(i.push(""),c.shift(),/\n/.test(c[0])?i.push(xh(u,c[1],o,a.children[t+1])):i.push(r),c.shift()),""===gd(c)&&(c.pop(),l=c.pop()),0===c.length)return;if(c.forEach((function(e,t){i.push(t%2==1?ID:e)})),void 0!==l)if(/\n/.test(l)){var p=a.children[t+1];i.push(xh(u,gd(i),o,p))}else i.push(r);else{var f=a.children[t+1];i.push(bh(u,gd(i),o,f))}}else/\n/.test(s)?s.match(/\n/g).length>1&&(i.push(""),i.push(jD)):(i.push(""),i.push(r))}else{var d=n(e);i.push(d);var D=a.children[t+1];if(D&&cD(D)){var h=BD(D).trim().split(SD)[0];i.push(bh(u,h,o,D))}else i.push(jD)}}),"children"),i}(e,0,n,p,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),d=r.children.filter((function(e){return cD(e)})).length>0,D=f.length-2;D>=0;D--){var h=f[D]===p&&""===f[D+1]&&(f[D+2]===LD||f[D+2]===jD);f[D]===jD&&""===f[D+1]&&f[D+2]===jD&&d||""===f[D]&&""===f[D+1]||(f[D]===LD||f[D]===jD)&&""===f[D+1]&&f[D+2]===p||f[D]===p&&""===f[D+1]&&f[D+2]===p||f[D]===LD&&""===f[D+1]&&f[D+2]===jD||f[D]===jD&&""===f[D+1]&&f[D+2]===LD?f.splice(D,2):h&&f.splice(D+1,2)}for(;f.length&&(YD(gd(f))||KD(gd(f)));)f.pop();for(;f.length&&(YD(f[0])||KD(f[0]))&&(YD(f[1])||KD(f[1]));)f.shift(),f.shift();var m=[];f.forEach((function(e,t){if(e===p){if(1===t&&""===f[t-1])return 2===f.length?void m.push(c):void m.push(ND([c,jD]));if(t===f.length-1)return void m.push(c);if(""===f[t-1]&&f[t-2]===jD)return void m.push(c)}m.push(e),HD(e)&&(l=!0)}));var g=d?UD(m):MD(ND(m),{shouldBreak:!0}),y=MD(ND([u,RD(ND([jD,g])),jD,a]));return l?y:VD([MD(ND([u,ND(f),a])),y])}(e,t,n)}),t);return function(e,t,n){var r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;var u=Sd(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"])||Sd(e,["ArrowFunctionExpression","OptionalCallExpression","JSXExpressionContainer"]),a=ad(e,n);return MD(ND([a?"":WD("("),RD(ND([LD,t])),LD,a?"":WD(")")]),{shouldBreak:u})}(e,Ve,t);case"JSXOpeningElement":var Ue=e.getValue(),We=Ue.name&&Ue.name.comments&&Ue.name.comments.length>0||Ue.typeParameters&&Ue.typeParameters.comments&&Ue.typeParameters.comments.length>0;if(Ue.selfClosing&&!Ue.attributes.length&&!We)return ND(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(Ue.attributes&&1===Ue.attributes.length&&Ue.attributes[0].value&&vD(Ue.attributes[0].value)&&!Ue.attributes[0].value.value.includes("\n")&&!We&&(!Ue.attributes[0].comments||!Ue.attributes[0].comments.length))return MD(ND(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",ND(e.map(n,"attributes")),Ue.selfClosing?" />":">"]));var $e=Ue.attributes.length&&Xd(gd(Ue.attributes)),Je=!Ue.attributes.length&&!We||t.jsxBracketSameLine&&(!We||Ue.attributes.length)&&!$e,ze=Ue.attributes&&Ue.attributes.some((function(e){return e.value&&vD(e.value)&&e.value.value.includes("\n")}));return MD(ND(["<",e.call(n,"name"),e.call(n,"typeParameters"),ND([RD(ND(e.map((function(e){return ND([ID,n(e)])}),"attributes"))),Ue.selfClosing?ID:Je?">":LD]),Ue.selfClosing?"/>":Je?"":">"]),{shouldBreak:ze});case"JSXClosingElement":return ND([""]);case"JSXOpeningFragment":case"JSXClosingFragment":var Ge=u.comments&&u.comments.length,Xe=Ge&&!u.comments.every(Yp.isBlockComment),He="JSXOpeningFragment"===u.type;return ND([He?"<":""]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var Ye=u.comments&&!u.comments.every(Yp.isBlockComment);return ND([sa.printDanglingComments(e,t,!Ye),Ye?jD:""]);case"ClassBody":return u.comments||0!==u.body.length?ND(["{",u.body.length>0?RD(ND([jD,e.call((function(e){return uh(e,t,n)}),"body")])):sa.printDanglingComments(e,t),jD,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":u.decorators&&0!==u.decorators.length&&s.push(nh(e,t,n)),u.accessibility&&s.push(u.accessibility+" "),u.declare&&s.push("declare "),u.static&&s.push("static "),"TSAbstractClassProperty"===u.type&&s.push("abstract "),u.readonly&&s.push("readonly ");var Ke=Ld(u);return Ke&&s.push(Ke),s.push(ah(e,t,n),Ch(e),ch(e,t,n)),u.value&&s.push(" =",wh(u.key,u.value,e.call(n,"value"),t)),s.push(a),MD(ND(s));case"ClassDeclaration":case"ClassExpression":return u.declare&&s.push("declare "),s.push(ND(Eh(e,t,n))),ND(s);case"TSInterfaceHeritage":return s.push(e.call(n,"expression")),u.typeParameters&&s.push(e.call(n,"typeParameters")),ND(s);case"TemplateElement":return PD(_D,u.value.raw.split(/\r?\n/g));case"TemplateLiteral":var Qe=e.map(n,"expressions"),Ze=e.getParentNode();if(uD(u,Ze)){var et=function(e,t,n){var r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some((function(e){return 0!==e.length}))){for(var u=[],a=t.map((function(e){return"${"+ZD(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"})),i=[{hasLineBreak:!1,cells:[]}],o=1;o ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),st&&s.push(")"),MD(ND(s));case"TSRestType":return ND(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return ND([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return ND([e.call(n,"name"),Ch(e),u.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return ND([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===u.type||u.declare)&&s.push("declare "),s.push("interface"),"DeclareInterface"!==u.type&&"InterfaceDeclaration"!==u.type||s.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),u.extends.length>0&&s.push(MD(RD(ND([ID,"extends ",(1===u.extends.length?Hd:RD)(PD(ND([",",ID]),e.map(n,"extends")))])))),s.push(" ",e.call(n,"body")),MD(ND(s));case"ClassImplements":case"InterfaceExtends":return ND([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return ND([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var lt=e.map(n,"types"),ct=[],pt=!1,ft=0;ft1&&(pt=!0),ct.push(" & ",ft>1?RD(lt[ft]):lt[ft])):ct.push(RD(ND([" &",ID,lt[ft]])));return MD(ND(ct));case"TSUnionType":case"UnionTypeAnnotation":var dt=e.getParentNode(),Dt=!("TypeParameterInstantiation"===dt.type||"TSTypeParameterInstantiation"===dt.type||"GenericTypeAnnotation"===dt.type||"TSTypeReference"===dt.type||"TSTypeAssertion"===dt.type||"TupleTypeAnnotation"===dt.type||"TSTupleType"===dt.type||"FunctionTypeParam"===dt.type&&!dt.name||("TypeAlias"===dt.type||"VariableDeclarator"===dt.type||"TSTypeAliasDeclaration"===dt.type)&&Wd(t.originalText,u,t)),ht=Nh(u),mt=e.map((function(e){var r=e.call(n);return ht||(r=qD(2,r)),sa.printComments(e,(function(){return r}),t)}),"types");if(ht)return PD(" | ",mt);var gt=Dt&&!Wd(t.originalText,u,t),yt=ND([WD(ND([gt?ID:"","| "])),PD(ND([ID,"| "]),mt)]);return ad(e,t)?MD(ND([RD(yt),LD])):MD("TupleTypeAnnotation"===dt.type&&dt.types.length>1||"TSTupleType"===dt.type&&dt.elementTypes.length>1?ND([RD(ND([WD(ND(["(",LD])),yt])),LD,WD(")")]):Dt?RD(yt):yt);case"NullableTypeAnnotation":return ND(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return u.static&&s.push("static "),s.push(e.call(n,"value")),ND(s);case"ObjectTypeIndexer":var vt=Ld(u);return ND([vt||"","[",e.call(n,"id"),u.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")]);case"ObjectTypeProperty":var Et=Ld(u),Ct="";return u.proto?Ct="proto ":u.static&&(Ct="static "),ND([Ct,rD(u)?u.kind+" ":"",Et||"",ah(e,t,n),Ch(e),tD(u,t)?"":": ",e.call(n,"value")]);case"QualifiedTypeIdentifier":return ND([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return kh(u,t);case"NumberLiteralTypeAnnotation":return Nr.strictEqual(o(u.value),"number"),Ed(null!=u.extra?u.extra.raw:u.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===u.type||u.declare)&&s.push("declare ");var At=wh(u.id,u.right,e.call(n,"right"),t);return s.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",At,a),MD(ND(s));case"TypeCastExpression":var Ft=e.getValue(),bt=Ft&&Ft.typeAnnotation&&Ft.typeAnnotation.range&&t.originalText.substring(Ft.typeAnnotation.range[0]).match(/^\/\*\s*:/);return ND(["(",e.call(n,"expression"),bt?" /*":"",": ",e.call(n,"typeAnnotation"),bt?" */":"",")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":var xt=e.getValue(),St=xt.range?t.originalText.substring(0,xt.range[0]).lastIndexOf("/*"):-1;return St>=0&&t.originalText.substring(St).match(/^\/\*\s*::/)?ND(["/*:: ",vh(e,t,n,"params")," */"]):vh(e,t,n,"params");case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return vh(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":var wt=e.getParentNode();if("TSMappedType"===wt.type)return s.push("[",e.call(n,"name")),u.constraint&&s.push(" in ",e.call(n,"constraint")),s.push("]"),ND(s);var Bt=Ld(u);Bt&&s.push(Bt),s.push(e.call(n,"name")),u.bound&&(s.push(": "),s.push(e.call(n,"bound"))),u.constraint&&s.push(" extends ",e.call(n,"constraint")),u.default&&s.push(" = ",e.call(n,"default"));var Tt=e.getNode(2);return wt.params&&1===wt.params.length&&bD(t)&&!u.constraint&&"ArrowFunctionExpression"===Tt.type&&s.push(","),ND(s);case"TypeofTypeAnnotation":return ND(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return ND(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return ND([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return ND([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return u.export&&s.push("export "),u.accessibility&&s.push(u.accessibility+" "),u.static&&s.push("static "),u.readonly&&s.push("readonly "),s.push(ah(e,t,n),Ch(e)),u.typeAnnotation&&(s.push(": "),s.push(e.call(n,"typeAnnotation"))),u.initializer&&s.push(" = ",e.call(n,"initializer")),ND(s);case"TSParameterProperty":return u.accessibility&&s.push(u.accessibility+" "),u.export&&s.push("export "),u.static&&s.push("static "),u.readonly&&s.push("readonly "),s.push(e.call(n,"parameter")),ND(s);case"TSTypeReference":return ND([e.call(n,"typeName"),vh(e,t,n,"typeParameters")]);case"TSTypeQuery":return ND(["typeof ",e.call(n,"exprName")]);case"TSIndexSignature":var kt=e.getParentNode();return ND([u.export?"export ":"",u.accessibility?ND([u.accessibility," "]):"",u.static?"static ":"",u.readonly?"readonly ":"","[",u.parameters?ND(e.map(n,"parameters")):"","]: ",e.call(n,"typeAnnotation"),"ClassBody"===kt.type?a:""]);case"TSTypePredicate":return ND([u.asserts?"asserts ":"",e.call(n,"parameterName"),u.typeAnnotation?ND([" is ",e.call(n,"typeAnnotation")]):""]);case"TSNonNullExpression":return ND([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return ND([u.isTypeOf?"typeof ":"","import(",e.call(n,"parameter"),")",u.qualifier?ND([".",e.call(n,"qualifier")]):"",vh(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return ND([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":return"TSCallSignatureDeclaration"!==u.type&&s.push("new "),s.push(MD(fh(e,n,t,!1,!0))),u.returnType&&s.push("TSConstructorType"===u.type?" => ":": ",e.call(n,"returnType")),ND(s);case"TSTypeOperator":return ND([u.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":var Ot=md(t.originalText,t.locStart(u),t.locEnd(u));return MD(ND(["{",RD(ND([t.bracketSpacing?ID:LD,u.readonly?ND([Md(u.readonly,"readonly")," "]):"",yh(e,0,n),e.call(n,"typeParameter"),u.optional?Md(u.optional,"?"):"",": ",e.call(n,"typeAnnotation"),WD(a,"")])),sa.printDanglingComments(e,t,!0),t.bracketSpacing?ID:LD,"}"]),{shouldBreak:Ot});case"TSMethodSignature":return s.push(u.accessibility?ND([u.accessibility," "]):"",u.export?"export ":"",u.static?"static ":"",u.readonly?"readonly ":"",u.computed?"[":"",e.call(n,"key"),u.computed?"]":"",Ch(e),fh(e,n,t,!1,!0)),u.returnType&&s.push(": ",e.call(n,"returnType")),MD(ND(s));case"TSNamespaceExportDeclaration":return s.push("export as namespace ",e.call(n,"id")),t.semi&&s.push(";"),MD(ND(s));case"TSEnumDeclaration":return u.declare&&s.push("declare "),u.modifiers&&s.push(yh(e,0,n)),u.const&&s.push("const "),s.push("enum ",e.call(n,"id")," "),s.push(MD(ND(0===u.members.length?["{",sa.printDanglingComments(e,t),LD,"}"]:["{",RD(ND([jD,Ih(e,t,"members",n),th(t,"es5")?",":""])),sa.printDanglingComments(e,t,!0),jD,"}"]))),ND(s);case"TSEnumMember":return s.push(e.call(n,"id")),u.initializer&&s.push(" = ",e.call(n,"initializer")),ND(s);case"TSImportEqualsDeclaration":return u.isExport&&s.push("export "),s.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&s.push(";"),MD(ND(s));case"TSExternalModuleReference":return ND(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":var Nt=e.getParentNode(),Pt=sD(u.id),It=u.body&&"TSModuleDeclaration"===u.body.type;if("TSModuleDeclaration"===Nt.type)s.push(".");else{u.declare&&s.push("declare "),s.push(yh(e,0,n));var jt=t.originalText.slice(t.locStart(u),t.locStart(u.id));"Identifier"===u.id.type&&"global"===u.id.name&&!/namespace|module/.test(jt)||s.push(Pt||/(^|\s)module(\s|$)/.test(jt)?"module ":"namespace ")}return s.push(e.call(n,"id")),It?s.push(e.call(n,"body")):u.body?s.push(" ",MD(e.call(n,"body"))):s.push(a),ND(s);case"PrivateName":return ND(["#",e.call(n,"id")]);case"TSConditionalType":return rh(e,t,n,{beforeParts:function(){return[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")]},afterParts:function(){return[]},shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyName:"checkType",breakNested:!0});case"TSInferType":return ND(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return s.push("#!",u.value,jD),Bd(t.originalText,u,t)&&s.push(jD),ND(s);case"NGRoot":return ND([].concat(e.call(n,"node"),u.node.comments&&0!==u.node.comments.length?ND([" //",u.node.comments[0].value.trimRight()]):[]));case"NGChainedExpression":return MD(PD(ND([";",ID]),e.map((function(e){return zd(e)?n(e):ND(["(",n(e),")"])}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return ND([u.prefix,":",u.value]);case"NGMicrosyntax":return ND(e.map((function(e,t){return ND([0===t?"":dD(e.getValue(),t,u)?" ":ND([";",ID]),n(e)])}),"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(u.name)?u.name:JSON.stringify(u.name);case"NGMicrosyntaxExpression":return ND([e.call(n,"expression"),null===u.alias?"":ND([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":var Lt=e.getName(),_t=e.getParentNode(),Mt=dD(u,Lt,_t)||(1===Lt&&("then"===u.key.name||"else"===u.key.name)||2===Lt&&"else"===u.key.name&&"NGMicrosyntaxKeyedExpression"===_t.body[Lt-1].type&&"then"===_t.body[Lt-1].key.name)&&"NGMicrosyntaxExpression"===_t.body[0].type;return ND([e.call(n,"key"),Mt?" ":": ",e.call(n,"expression")]);case"NGMicrosyntaxLet":return ND(["let ",e.call(n,"key"),null===u.value?"":ND([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return ND([e.call(n,"key")," as ",e.call(n,"alias")]);case"ArgumentPlaceholder":return"?";default:throw new Error("unknown type: "+JSON.stringify(u.type))}}(e,t,n,r);if(!u||KD(i))return i;var s=pd(e),l=[];if("ClassMethod"===u.type||"ClassPrivateMethod"===u.type||"ClassProperty"===u.type||"TSAbstractClassProperty"===u.type||"ClassPrivateProperty"===u.type||"MethodDefinition"===u.type||"TSAbstractMethodDefinition"===u.type);else if(u.decorators&&u.decorators.length>0&&!(s&&t.locStart(s,{ignoreDecorators:!0})>t.locStart(u.decorators[0]))){var c="ClassExpression"===u.type||"ClassDeclaration"===u.type||Jd(u,t)?jD:ID;e.each((function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,l.push(n(e),c)}),"decorators"),s&&l.unshift(jD)}else fd(u)&&u.declaration&&u.declaration.decorators&&u.declaration.decorators.length>0&&t.locStart(u,{ignoreDecorators:!0})>t.locStart(u.declaration.decorators[0])?e.each((function(e){var t=e.getValue();l.push("Decorator"===t.type?"":"@",n(e),jD)}),"declaration","decorators"):a=ad(e,t);var p=[];if(a&&p.unshift("("),p.push(i),a){var f=e.getValue();Vd(f)&&(p.push(" /*"),p.push(f.trailingComments[0].value.trimLeft()),p.push("*/"),f.trailingComments[0].printed=!0),p.push(")")}return l.length>0?MD(ND(l.concat(p))):ND(p)},embed:function(e,t,n,r){var u,a=e.getValue(),i=e.getParentNode(),o=e.getParentNode(1);switch(a.type){case"TemplateLiteral":if([hf,gf,yf,mf].some((function(t){return t(e)}))){var s=a.quasis.map((function(e){return e.value.raw})),l=0,c=s.reduce((function(e,t,n){return 0==n?t:e+"@prettier-placeholder-"+l+++"-id"+t}),"");return function(e,t,n){var r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";var u=function(e,t){if(!t||!t.length)return e;var n=t.slice(),r=0,u=cf(e,(function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,u=t.indexOf("@"),a=u+1;if(u>-1&&"string"==typeof t[a]&&t[a].startsWith("prettier-placeholder")){var i=t[u],o=t[a],s=t.slice(a+1);t=t.slice(0,u).concat([i+o]).concat(s)}var l=t.findIndex((function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")}));if(l>-1){var c=t[l],p=t.slice(l+1),f=c.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),d=f[2],D=n[f[1]];r++,t=t.slice(0,l).concat(["${",D,"}"+d]).concat(p)}return Object.assign({},e,{parts:t})}));return n.length===r?u:null}(e,r.expressions?t.map(n,"expressions"):[]);if(!u)throw new Error("Couldn't insert all the expressions");return af(["`",ef(af([nf,pf(u)])),rf,"`"])}(n(c,{parser:"css"}),e,t)}if(function(e){var t=e.getValue(),n=e.getParentNode();return Cf(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){var p=a.expressions?e.map(t,"expressions"):[],f=a.quasis.length;if(1===f&&""===a.quasis[0].value.raw.trim())return"``";for(var d=[],D=0;D2&&""===y[0].trim()&&""===y[1].trim(),A=v>2&&""===y[v-1].trim()&&""===y[v-2].trim(),F=y.every((function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)}));if(!m&&/#[^\r\n]*$/.test(y[v-1]))return null;var b=null;(b=F?Df(y):pf(n(g,{parser:"graphql"})))?(b=df(b,!1),!h&&C&&d.push(""),d.push(b),!m&&A&&d.push("")):h||m||!C||d.push(""),E&&d.push(af(["${",E,"}"]))}return af(["`",ef(af([nf,tf(nf,d)])),nf,"`"])}var x=function(e){return Cf(e.getValue(),"HTML")||Af(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}])}(e)?"html":function(e){return Af(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}(e)?"angular":void 0;if(x)return function(e,t,n,r,u){var a=e.getValue(),i=Ff;Ff=Ff+1>>>0;var o=function(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(i,"_IN_JS")},s=a.quasis.map((function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+o(t)})).join(""),l=e.map(t,"expressions");if(0===l.length&&0===s.trim().length)return"``";var c=RegExp(o("(\\d+)"),"g"),p=cf(pf(n(s,{parser:r})),(function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(c),r=0;r1&&t.every((function(e){return"*"===e.trim()[0]}))}(n)){var r=function(e){var t=e.value.split("\n");return ND(["/*",PD(jD,t.map((function(e,n){return 0===n?e.trimRight():" "+(n x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:co.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:co.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"none",description:"No trailing commas."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:!0,deprecated:"0.19.0",redirect:"es5"},{value:!1,deprecated:"0.19.0",redirect:"none"}]}},Wh=["js","node"],$h=[".js","._js",".bones",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],Jh=["Jakefile"],zh=["chakra","d8","js","node","rhino","v8","v8-shell"],Gh=Object.freeze({__proto__:null,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:Wh,extensions:$h,filenames:Jh,interpreters:zh,languageId:183,default:{name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:Wh,extensions:$h,filenames:Jh,interpreters:zh,languageId:183}}),Xh=[".jsx"],Hh=Object.freeze({__proto__:null,name:"JSX",type:"programming",group:"JavaScript",extensions:Xh,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:{name:"JSX",type:"programming",group:"JavaScript",extensions:Xh,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178}}),Yh=["ts"],Kh=["deno","ts-node"],Qh=[".ts"],Zh=Object.freeze({__proto__:null,name:"TypeScript",type:"programming",color:"#2b7489",aliases:Yh,interpreters:Kh,extensions:Qh,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:{name:"TypeScript",type:"programming",color:"#2b7489",aliases:Yh,interpreters:Kh,extensions:Qh,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}),em=[".tsx"],tm=Object.freeze({__proto__:null,name:"TSX",type:"programming",group:"TypeScript",extensions:em,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924,default:{name:"TSX",type:"programming",group:"TypeScript",extensions:em,tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}),nm=[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],rm=[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],um=Object.freeze({__proto__:null,name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:nm,filenames:rm,languageId:174,default:{name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:nm,filenames:rm,languageId:174}}),am=["jsonc"],im=[".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],om=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","jsconfig.json","language-configuration.json","tsconfig.json"],sm=Object.freeze({__proto__:null,name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:am,extensions:im,filenames:om,languageId:423,default:{name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:am,extensions:im,filenames:om,languageId:423}}),lm=[".json5"],cm=Object.freeze({__proto__:null,name:"JSON5",type:"data",extensions:lm,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:{name:"JSON5",type:"data",extensions:lm,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}),pm=ot(Gh),fm=ot(Hh),dm=ot(Zh),Dm=ot(tm),hm=ot(um),mm=ot(sm),gm=ot(cm),ym={languages:[fo(pm,(function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript","mongo"],interpreters:e.interpreters.concat(["nodejs"])})})),fo(pm,(function(e){return Object.assign(e,{name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})})),fo(fm,(function(e){return Object.assign(e,{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]})})),fo(dm,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescript"]})})),fo(Dm,(function(e){return Object.assign(e,{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescriptreact"]})})),fo(hm,(function(e){return Object.assign(e,{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})})),fo(hm,(function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:e.filenames.concat([".prettierrc"])})})),fo(mm,(function(e){return Object.assign(e,{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:e.filenames.concat([".eslintrc"])})})),fo(gm,(function(e){return Object.assign(e,{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]})}))],options:Uh,printers:{estree:jh,"estree-json":Vh}},vm="[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",Em="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]",Cm=yu.getLast,Am=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],Fm=Am.concat(["tableCell","paragraph","heading"]),bm=new RegExp("[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]"),xm=new RegExp(Em),Sm={mapAst:function(e,t){return function e(n,r,u){var a=t(n,r,u=u||[]);return Array.isArray(a)||(a=Object.assign({},a)).children&&(a.children=a.children.reduce((function(t,n,r){var i=e(n,r,[a].concat(u));return Array.isArray(i)||(i=[i]),t.push.apply(t,i),t}),[])),a}(e,null,null)},splitText:function(e,t){var n=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(vm,")\n(").concat(vm,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach((function(e,t,u){t%2!=1?(0!==t&&t!==u.length-1||""!==e)&&e.split(new RegExp("(".concat(vm,")"))).forEach((function(e,t,n){(0!==t&&t!==n.length-1||""!==e)&&(t%2!=0?r(xm.test(e)?{type:"word",value:e,kind:"cjk-punctuation",hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:bm.test(e)?"k-letter":"cj-letter",hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&r({type:"word",value:e,kind:"non-cjk",hasLeadingPunctuation:xm.test(e[0]),hasTrailingPunctuation:xm.test(Cm(e))}))})):n.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})})),n;function r(e){var t=Cm(n);t&&"word"===t.type&&("non-cjk"===t.kind&&"cj-letter"===e.kind&&!t.hasTrailingPunctuation||"cj-letter"===t.kind&&"non-cjk"===e.kind&&!e.hasLeadingPunctuation?n.push({type:"whitespace",value:" "}):"non-cjk"===t.kind&&"cjk-punctuation"===e.kind||"cjk-punctuation"===t.kind&&"non-cjk"===e.kind||[t.value,e.value].some((function(e){return/\u3000/.test(e)}))||n.push({type:"whitespace",value:""})),n.push(e)}},punctuationPattern:Em,getFencedCodeBlockValue:function(e,t){var n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,u=new RegExp("^\\s{0,".concat(r,"}")),a=n.split("\n"),i=n[r],o=n.slice(r).match(new RegExp("^[".concat(i,"]+")))[0],s=new RegExp("^\\s{0,3}".concat(o)).test(a[a.length-1].slice(l(a.length-1)));return a.slice(1,s?-1:void 0).map((function(e,t){return e.slice(l(t+1)).replace(u,"")})).join("\n");function l(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:function(e,t){var n=C(t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),4);return{numberText:n[1],marker:n[2],leadingSpaces:n[3]}},INLINE_NODE_TYPES:Am,INLINE_NODE_WRAPPER_TYPES:Fm},wm=qu.builders,Bm=wm.hardline,Tm=wm.literalline,km=wm.concat,Om=wm.markAsRoot,Nm=qu.utils.mapDoc,Pm=Sm.getFencedCodeBlockValue,Im=["format","prettier"];function jm(e){var t="@(".concat(Im.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var Lm={startWithPragma:jm,hasPragma:function(e){return jm(Ga(e).content.trimLeft())},insertPragma:function(e){var t=Ga(e),n="\x3c!-- @".concat(Im[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}},_m=Sm.getOrderedListItemInfo,Mm=Sm.mapAst,Rm=Sm.splitText,qm=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function Vm(e,t,n){return Mm(e,(function(e){if(!e.children)return e;var r=e.children.reduce((function(e,r){var u=e[e.length-1];return u&&t(u,r)?e.splice(-1,1,n(u,r)):e.push(r),e}),[]);return Object.assign({},e,{children:r})}))}var Um=qu.builders,Wm=Um.breakParent,$m=Um.concat,Jm=Um.join,zm=Um.line,Gm=Um.literalline,Xm=Um.markAsRoot,Hm=Um.hardline,Ym=Um.softline,Km=Um.ifBreak,Qm=Um.fill,Zm=Um.align,eg=Um.indent,tg=Um.group,ng=qu.utils.mapDoc,rg=qu.printer.printDocToString,ug=Sm.getFencedCodeBlockValue,ag=Sm.getOrderedListItemInfo,ig=Sm.splitText,og=Sm.punctuationPattern,sg=Sm.INLINE_NODE_TYPES,lg=Sm.INLINE_NODE_WRAPPER_TYPES,cg=yu.replaceEndOfLineWith,pg=["importExport"],fg=["heading","tableCell","link"],dg=["listItem","definition","footnoteDefinition","jsx"];function Dg(e,t,n,r){var u=e.getValue(),a=null===u.checked?"":u.checked?"[x] ":"[ ] ";return $m([a,Eg(e,t,n,{processor:function(e,u){if(0===u&&"list"!==e.getValue().type)return Zm(" ".repeat(a.length),e.call(n));var i,o=" ".repeat((i=t.tabWidth-r.length)<0?0:i>3?3:i);return $m([o,Zm(o,e.call(n))])}})])}function hg(e,t){return function(e,t,n){n=n||function(){return!0};var r=-1,u=!0,a=!1,i=void 0;try{for(var o,s=t.children[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var l=o.value;if(l.type===e.type&&n(l)?r++:r=-1,l===e)return r}}catch(c){a=!0,i=c}finally{try{u||null==s.return||s.return()}finally{if(a)throw i}}}(e,t,(function(t){return t.ordered===e.ordered}))}function mg(e,t){for(var n,r=[].concat(t),u=-1;n=e.getParentNode(++u);)if(-1!==r.indexOf(n.type))return u;return-1}function gg(e,t){var n=mg(e,t);return-1===n?null:e.getParentNode(n)}function yg(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return Hm;var r="always"===n.proseWrap&&!gg(e,fg);return""!==t?r?zm:" ":r?Ym:""}function vg(e,t,n){var r=[],u=null,a=e.getValue().children;return a.forEach((function(e,t){switch(Ag(e)){case"start":null===u&&(u={index:t,offset:e.position.end.offset});break;case"end":null!==u&&(r.push({start:u,end:{index:t,offset:e.position.start.offset}}),u=null)}})),Eg(e,t,n,{processor:function(e,u){if(0!==r.length){var i=r[0];if(u===i.start.index)return $m([a[i.start.index].value,t.originalText.slice(i.start.offset,i.end.offset),a[i.end.index].value]);if(i.start.index$/);return null!==t&&(t[1]?t[1]:"next")}function Fg(e){return e&&-1!==sg.indexOf(e.type)}function bg(e){return e&&/\n+$/.test(e.value)}function xg(e,t){return t.prevNode&&"list"===t.prevNode.type&&"code"===e.type&&e.isIndented}function Sg(e){return ng(e,(function(e){if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];var t=[];return e.parts.forEach((function(e){"concat"===e.type?t.push.apply(t,e.parts):""!==e&&t.push(e)})),Object.assign({},e,{parts:Tg(t)})}))}function wg(e,t){var n=[" "].concat(t||[]);return new RegExp(n.map((function(e){return"\\".concat(e)})).join("|")).test(e)?"<".concat(e,">"):e}function Bg(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+Bg(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var r=e.split("'").length-1,u=e.split('"').length-1,a=r>u?'"':u>r||t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(a,")"),"g"),"\\$1"),"".concat(a).concat(e).concat(a)}function Tg(e){return e.reduce((function(e,t){var n=yu.getLast(e);return"string"==typeof n&&"string"==typeof t?e.splice(-1,1,n+t):e.push(t),e}),[])}var kg={preprocess:function(e,t){return function(e){return Vm(e,(function(e,t){return"importExport"===e.type&&"importExport"===t.type}),(function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}}))}(e=function(e){return Mm(e,(function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})}))}(e=function(e,t){return Mm(e,(function(e,n,r){var u=C(r,1)[0];if("text"!==e.type)return e;var a=e.value;return"paragraph"===u.type&&(0===n&&(a=a.trimLeft()),n===u.children.length-1&&(a=a.trimRight())),{type:"sentence",position:e.position,children:Rm(a,t)}}))}(e=function(e,t){return Mm(e,(function(e,r,u){if("list"===e.type&&0!==e.children.length){for(var a=0;a1)return!0;var i=n(u);return-1!==i&&(1===e.children.length?i%t.tabWidth==0:i===n(a)&&(i%t.tabWidth==0||_m(a,t.originalText).leadingSpaces.length>1))}(e)}return e}));function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return Mm(e,(function(e,n,r){if("code"===e.type){var u=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=u,u)for(var a=0;a|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(i.value)?"never":t.proseWrap;return yg(e,r.value,{proseWrap:o});case"emphasis":var s=e.getParentNode(),l=s.children.indexOf(r),c=s.children[l-1],p=s.children[l+1],f=c&&"sentence"===c.type&&c.children.length>0&&"word"===yu.getLast(c.children).type&&!yu.getLast(c.children).hasTrailingPunctuation||p&&"sentence"===p.type&&p.children.length>0&&"word"===p.children[0].type&&!p.children[0].hasLeadingPunctuation||gg(e,"emphasis")?"*":"_";return $m([f,Eg(e,t,n),f]);case"strong":return $m(["**",Eg(e,t,n),"**"]);case"delete":return $m(["~~",Eg(e,t,n),"~~"]);case"inlineCode":var d=yu.getMinNotPresentContinuousCount(r.value,"`"),D="`".repeat(d||1),h=d?" ":"";return $m([D,h,r.value,h,D]);case"link":switch(t.originalText[r.position.start.offset]){case"<":var m=r.url.startsWith("mailto:")&&"mailto:"!==t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+"mailto:".length)?r.url.slice("mailto:".length):r.url;return $m(["<",m,">"]);case"[":return $m(["[",Eg(e,t,n),"](",wg(r.url,")"),Bg(r.title,t),")"]);default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return $m(["![",r.alt||"","](",wg(r.url,")"),Bg(r.title,t),")"]);case"blockquote":return $m(["> ",Zm("> ",Eg(e,t,n))]);case"heading":return $m(["#".repeat(r.depth)+" ",Eg(e,t,n)]);case"code":if(r.isIndented){var g=" ".repeat(4);return Zm(g,$m([g,$m(cg(r.value,Hm))]))}var y=t.__inJsTemplate?"~":"`",v=y.repeat(Math.max(3,yu.getMaxContinuousCount(r.value,y)+1));return $m([v,r.lang||"",Hm,$m(cg(ug(r,t.originalText),Hm)),Hm,v]);case"yaml":case"toml":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"html":var E=e.getParentNode(),C="root"===E.type&&yu.getLast(E.children)===r?r.value.trimRight():r.value,A=/^$/.test(C);return $m(cg(C,A?Hm:Xm(Gm)));case"list":var F=hg(r,e.getParentNode()),b=r.ordered&&r.children.length>1&&1==+ag(r.children[1],t.originalText).numberText;return Eg(e,t,n,{processor:function(e,u){var a,i=(a=r.ordered?(0===u?r.start:b?1:r.start+u)+(F%2==0?". ":") "):F%2==0?"- ":"* ",r.isAligned||r.hasIndentedCodeblock?function(e,t){var n,r=0==(n=e.length%t.tabWidth)?0:t.tabWidth-n;return e+" ".repeat(r>=4?0:r)}(a,t):a);return $m([i,Zm(" ".repeat(i.length),Dg(e,t,n,i))])}});case"thematicBreak":var x=mg(e,"list");return-1===x?"---":hg(e.getParentNode(x),e.getParentNode(x+1))%2==0?"***":"---";case"linkReference":return $m(["[",Eg(e,t,n),"]","full"===r.referenceType?$m(["[",r.identifier,"]"]):"collapsed"===r.referenceType?"[]":""]);case"imageReference":switch(r.referenceType){case"full":return $m(["![",r.alt||"","][",r.identifier,"]"]);default:return $m(["![",r.alt,"]","collapsed"===r.referenceType?"[]":""])}case"definition":var S="always"===t.proseWrap?zm:" ";return tg($m([$m(["[",r.identifier,"]:"]),eg($m([S,wg(r.url),null===r.title?"":$m([S,Bg(r.title,t,!1)])]))]));case"footnote":return $m(["[^",Eg(e,t,n),"]"]);case"footnoteReference":return $m(["[^",r.identifier,"]"]);case"footnoteDefinition":var w=e.getParentNode().children[e.getName()+1];return $m(["[^",r.identifier,"]: ",1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line)?Eg(e,t,n):tg($m([Zm(" ".repeat(t.tabWidth),Eg(e,t,n,{processor:function(e,t){return 0===t?tg($m([Ym,Ym,e.call(n)])):e.call(n)}})),w&&"footnoteDefinition"===w.type?Ym:""]))]);case"table":return function(e,t,n){var r=Hm.parts[0],u=e.getValue(),a=[];e.map((function(e){var r=[];e.map((function(e){r.push(rg(e.call(n),t).formatted)}),"children"),a.push(r)}),"children");var i=a.reduce((function(e,t){return e.map((function(e,n){return Math.max(e,yu.getStringWidth(t[n]))}))}),a[0].map((function(){return 3}))),o=Jm(r,[c(a[0]),l(),Jm(r,a.slice(1).map((function(e){return c(e)})))]);if("never"!==t.proseWrap)return $m([Wm,o]);var s=Jm(r,[c(a[0],!0),l(!0),Jm(r,a.slice(1).map((function(e){return c(e,!0)})))]);return $m([Wm,tg(Km(s,o))]);function l(e){return $m(["| ",Jm(" | ",i.map((function(t,n){var r=e?3:t;switch(u.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}})))," |"])}function c(e,t){return $m(["| ",Jm(" | ",t?e:e.map((function(e,t){switch(u.align[t]){case"right":return r=i[t]-yu.getStringWidth(n=e),$m([" ".repeat(r),n]);case"center":return function(e,t){var n=t-yu.getStringWidth(e),r=Math.floor(n/2),u=n-r;return $m([" ".repeat(r),e," ".repeat(u)])}(e,i[t]);default:return function(e,t){var n=t-yu.getStringWidth(e);return $m([e," ".repeat(n)])}(e,i[t])}var n,r})))," |"])}}(e,t,n);case"tableCell":return Eg(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?$m([" ",Xm(Gm)]):$m(["\\",Hm]);case"liquidNode":return $m(cg(r.value,Hm));case"importExport":case"jsx":return r.value;case"math":return $m(["$$",Hm,r.value?$m([$m(cg(r.value,Hm)),Hm]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(r),t.locEnd(r));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:function(e,t,n,r){var u,a,i=e.getValue();if("code"===i.type&&null!==i.lang){var o=i.lang.match(/^[A-Za-z0-9_-]+/),s=(u=o?o[0]:"",(a=Gt(null,{plugins:r.plugins}).languages.find((function(e){return e.name.toLowerCase()===u||e.aliases&&-1!==e.aliases.indexOf(u)||e.extensions&&e.extensions.find((function(e){return e.substring(1)===u}))})))?a.parsers[0]:null);if(s){var l=r.__inJsTemplate?"~":"`",c=l.repeat(Math.max(3,yu.getMaxContinuousCount(i.value,l)+1)),p=n(Pm(i,r.originalText),{parser:s});return Om(km([c,i.lang,Bm,f(p),c]))}}if("yaml"===i.type)return Om(km(["---",Bm,i.value&&i.value.trim()?f(n(i.value,{parser:"yaml"})):"","---"]));switch(i.type){case"importExport":return n(i.value,{parser:"babel"});case"jsx":return n(i.value,{parser:"__js_expression"})}return null;function f(e){return Nm(e,(function(e){return"string"==typeof e&&e.includes("\n")?km(e.split(/(\n)/g).map((function(e,t){return t%2==0?e:Tm}))):e}))}},massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&Lm.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){var t=+e.getName();return 0!==t&&"next"===Ag(e.getParentNode().children[t-1])},insertPragma:Lm.insertPragma},Og={proseWrap:co.proseWrap,singleQuote:co.singleQuote},Ng=["pandoc"],Pg=[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],Ig=["contents.lr"],jg=ot(Object.freeze({__proto__:null,name:"Markdown",type:"prose",aliases:Ng,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:Pg,filenames:Ig,tmScope:"source.gfm",languageId:222,default:{name:"Markdown",type:"prose",aliases:Ng,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:Pg,filenames:Ig,tmScope:"source.gfm",languageId:222}})),Lg={languages:[fo(jg,(function(e){return Object.assign(e,{since:"1.8.0",parsers:["remark"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter((function(e){return".mdx"!==e}))})})),fo(jg,(function(e){return Object.assign(e,{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]})}))],options:Og,printers:{mdast:kg}},_g=yu.getLast;function Mg(e,t){return e&&"string"==typeof e.type&&(!t||-1!==t.indexOf(e.type))}function Rg(e){return"prettier-ignore"===e.value.trim()}function qg(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function Vg(e){return e&&e.middleComments&&0!==e.middleComments.length}function Ug(e){return e&&e.indicatorComment}function Wg(e){return e&&e.trailingComment}function $g(e){return e&&e.endComments&&0!==e.endComments.length}function Jg(e){var t=[],n=void 0,r=!0,u=!1,a=void 0;try{for(var i,o=e.split(/( +)/g)[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;" "!==s?t.push(" "===n?s:(t.pop()||"")+s):void 0===n&&t.unshift(""),n=s}}catch(l){u=!0,a=l}finally{try{r||null==o.return||o.return()}finally{if(u)throw a}}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var zg={getLast:_g,getAncestorCount:function(e,t){for(var n=0,r=e.stack.length-1,u=0;u=0&&0===t[r].length;r--)n++;return 0===n?t:t.slice(0,n>=2&&!u?-(n-1):-n)}("preserve"===a.proseWrap||"blockLiteral"===e.type?s.map((function(e){return 0===e.length?[]:[e]})):s.map((function(e){return 0===e.length?[]:Jg(e)})).reduce((function(e,t,n){return 0===n||0===s[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(_g(e))?e.concat([t]):e.concat([e.pop().concat(t)])}),[]).map((function(e){return e.reduce((function(e,t){return 0!==e.length&&/\s$/.test(_g(e))?e.concat(e.pop()+" "+t):e.concat(t)}),[])})).map((function(e){return"never"===a.proseWrap?[e.join(" ")]:e})))},getFlowScalarLineContents:function(e,t,n){var r=t.split("\n").map((function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimRight():e.trimLeft()}));return"preserve"===n.proseWrap?r.map((function(e){return 0===e.length?[]:[e]})):r.map((function(e){return 0===e.length?[]:Jg(e)})).reduce((function(t,n,u){return 0===u||0===r[u-1].length||0===n.length||"quoteDouble"===e&&_g(_g(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)])}),[]).map((function(e){return"never"===n.proseWrap?[e.join(" ")]:e}))},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(_g(t.children)):t},hasPrettierIgnore:function(e){var t=e.getValue();if("documentBody"===t.type){var n=e.getParentNode();return $g(n.head)&&Rg(_g(n.head.endComments))}return qg(t)&&Rg(_g(t.leadingComments))},hasLeadingComments:qg,hasMiddleComments:Vg,hasIndicatorComment:Ug,hasTrailingComment:Wg,hasEndComments:$g},Gg=zg.getAncestorCount,Xg=zg.getBlockValueLineContents,Hg=zg.getFlowScalarLineContents,Yg=zg.getLast,Kg=zg.getLastDescendantNode,Qg=zg.hasLeadingComments,Zg=zg.hasMiddleComments,ey=zg.hasIndicatorComment,ty=zg.hasTrailingComment,ny=zg.hasEndComments,ry=zg.hasPrettierIgnore,uy=zg.isLastDescendantNode,ay=zg.isNextLineEmpty,iy=zg.isNode,oy=zg.isEmptyNode,sy=zg.defineShortcut,ly=zg.mapNode,cy=qu.builders,py=cy.conditionalGroup,fy=cy.breakParent,dy=cy.concat,Dy=cy.dedent,hy=cy.dedentToRoot,my=cy.fill,gy=cy.group,yy=cy.hardline,vy=cy.ifBreak,Ey=cy.join,Cy=cy.line,Ay=cy.lineSuffix,Fy=cy.literalline,by=cy.markAsRoot,xy=cy.softline,Sy=yu.replaceEndOfLineWith;function wy(e){switch(e.type){case"document":sy(e,"head",(function(){return e.children[0]})),sy(e,"body",(function(){return e.children[1]}));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":sy(e,"content",(function(){return e.children[0]}));break;case"mappingItem":case"flowMappingItem":sy(e,"key",(function(){return e.children[0]})),sy(e,"value",(function(){return e.children[1]}))}return e}function By(e,t,n,r,u){switch(e.type){case"root":return dy([Ey(yy,n.map((function(t,r){var a=e.children[r],i=e.children[r+1];return dy([u(t),Oy(a,i)?dy([yy,"...",ty(a)?dy([" ",n.call(u,"trailingComment")]):""]):!i||ty(i.head)?"":dy([yy,"---"])])}),"children")),0===e.children.length||(x=Kg(e),iy(x,["blockLiteral","blockFolded"])&&"keep"===x.chomping)?"":yy]);case"document":var a=t.children[n.getName()+1];return Ey(yy,["head"===Ny(e,a,t,r)?Ey(yy,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(u,"head"),dy(["---",ty(e.head)?dy([" ",n.call(u,"head","trailingComment")]):""])].filter(Boolean)):"",(b=e,0!==b.body.children.length||ny(b.body)?n.call(u,"body"):"")].filter(Boolean));case"documentHead":return Ey(yy,[].concat(n.map(u,"children"),n.map(u,"endComments")));case"documentBody":var i=Ey(yy,n.map(u,"children")).parts,o=Ey(yy,n.map(u,"endComments")).parts,s=0===i.length||0===o.length?"":function(e){return iy(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":dy([yy,yy]):yy}(Kg(e));return dy([].concat(i,s,o));case"directive":return dy(["%",Ey(" ",[e.name].concat(e.parameters))]);case"comment":return dy(["#",e.value]);case"alias":return dy(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return dy(["&",e.value]);case"plain":return Ly(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var l=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&l.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(l)){var c="quoteDouble"===e.type?'"':"'";return dy([c,Ly(e.type,l,r),c])}if(l.includes('"'))return dy(["'",Ly(e.type,"quoteDouble"===e.type?l.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):l,r),"'"]);if(l.includes("'"))return dy(['"',Ly(e.type,"quoteSingle"===e.type?l.replace(/''/g,"'"):l,r),'"']);var p=r.singleQuote?"'":'"';return dy([p,Ly(e.type,l,r),p]);case"blockFolded":case"blockLiteral":var f=Gg(n,(function(e){return iy(e,["sequence","mapping"])})),d=uy(n);return dy(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",ey(e)?dy([" ",n.call(u,"indicatorComment")]):"",(null===e.indent?Dy:hy)(Ty(null===e.indent?r.tabWidth:e.indent-1+f,dy(Xg(e,{parentIndent:f,isLastDescendant:d,options:r}).reduce((function(t,n,r,u){return t.concat(0===r?yy:"",my(Ey(Cy,n).parts),r!==u.length-1?0===n.length?yy:by(Fy):"keep"===e.chomping&&d?hy(0===n.length?yy:Fy):"")}),[]))))]);case"sequence":return Ey(yy,n.map(u,"children"));case"sequenceItem":return dy(["- ",Ty(2,e.content?n.call(u,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(u,"content"):"";case"mapping":return Ey(yy,n.map(u,"children"));case"mappingItem":case"flowMappingItem":var D=oy(e.key),h=oy(e.value);if(D&&h)return dy([": "]);var m=n.call(u,"key"),g=n.call(u,"value");if(h)return"flowMappingItem"===e.type&&"flowMapping"===t.type?m:"mappingItem"!==e.type||!Py(e.key.content,r)||ty(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?dy(["? ",Ty(2,m)]):dy([m,Iy(e)?" ":"",":"]);if(D)return dy([": ",Ty(2,g)]);var y=Symbol("mappingKey");return Qg(e.value)||!ky(e.key.content)?dy(["? ",Ty(2,m),yy,Ey("",n.map(u,"value","leadingComments").map((function(e){return dy([e,yy])}))),": ",Ty(2,g)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||Qg(e.key.content)||Zg(e.key.content)||ty(e.key.content)||ny(e.key)||Qg(e.value.content)||Zg(e.value.content)||ny(e.value)||!Py(e.value.content,r)?py([dy([gy(dy([vy("? "),gy(Ty(2,m),{id:y})])),vy(dy([yy,": ",Ty(2,g)]),S(dy([Iy(e)?" ":"",":",Qg(e.value.content)||ny(e.value)&&e.value.content&&!iy(e.value.content,["mapping","sequence"])||"mapping"===t.type&&ty(e.key.content)&&ky(e.value.content)||iy(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?yy:e.value.content?Cy:"",g])),{groupId:y})])]):dy([m,Iy(e)?" ":"",": ",g]);case"flowMapping":case"flowSequence":var v="flowMapping"===e.type?"{":"[",E="flowMapping"===e.type?"}":"]",C="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?Cy:xy,A=0!==e.children.length&&"flowMappingItem"===(F=Yg(e.children)).type&&oy(F.key)&&oy(F.value);return dy([v,S(dy([C,dy(n.map((function(t,n){return dy([u(t),n===e.children.length-1?"":dy([",",Cy,e.children[n].position.start.line!==e.children[n+1].position.start.line?jy(t,r.originalText):""])])}),"children")),vy(",","")])),A?"":C,E]);case"flowSequenceItem":return n.call(u,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var F,b,x;function S(e){return cy.align(" ".repeat(r.tabWidth),e)}}function Ty(e,t){return cy.align("number"==typeof e&&e>0?" ".repeat(e):e,t)}function ky(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function Oy(e,t){return ty(e)||t&&(0!==t.head.children.length||ny(t.head))}function Ny(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||ny(e.head)||ty(e.head)?"head":!Oy(e,t)&&!!t&&"root"}function Py(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return-1===e.value.indexOf("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function Iy(e){return e.key.content&&"alias"===e.key.content.type}function jy(e,t){var n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&ay(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,xy):""}function Ly(e,t,n){var r=Hg(e,t,n);return Ey(yy,r.map((function(e){return my(Ey(Cy,e).parts)})))}var _y={preprocess:function(e){return ly(e,wy)},print:function(e,t,n){var r=e.getValue(),u=e.getParentNode(),a=r.tag?e.call(n,"tag"):"",i=r.anchor?e.call(n,"anchor"):"",o=iy(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!uy(e)?jy(e,t.originalText):"";return dy(["mappingValue"!==r.type&&Qg(r)?dy([Ey(yy,e.map(n,"leadingComments")),yy]):"",a,a&&i?" ":"",i,a||i?iy(r,["sequence","mapping"])&&!Zg(r)?yy:" ":"",Zg(r)?dy([1===r.middleComments.length?"":yy,Ey(yy,e.map(n,"middleComments")),yy]):"",ry(e)?dy(Sy(t.originalText.slice(r.position.start.offset,r.position.end.offset),Fy)):gy(By(r,u,e,t,n)),ty(r)&&!iy(r,["document","documentHead"])?Ay(dy(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===u.type&&"mapping"===e.getParentNode(2).type&&ky(r)?"":fy,e.call(n,"trailingComment")])):"",o,ny(r)&&!iy(r,["documentHead","documentBody"])?Ty("sequenceItem"===r.type?2:0,dy([yy,Ey(yy,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(iy(t))switch(delete t.position,t.type){case"comment":if(/^\s*@(prettier|format)\s*$/.test(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:function(e){return"# @format\n\n".concat(e)}},My={bracketSpacing:co.bracketSpacing,singleQuote:co.singleQuote,proseWrap:co.proseWrap},Ry=["yml"],qy=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yml.mysql"],Vy=[".clang-format",".clang-tidy",".gemrc","glide.lock"],Uy=[fo(ot(Object.freeze({__proto__:null,name:"YAML",type:"data",tmScope:"source.yaml",aliases:Ry,extensions:qy,filenames:Vy,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:{name:"YAML",type:"data",tmScope:"source.yaml",aliases:Ry,extensions:qy,filenames:Vy,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}})),(function(e){return Object.assign(e,{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"]})}))],Wy=$t.version,$y=Gt,Jy=[So,Wo,ys,Lp,ym,Lg,{languages:Uy,printers:{yaml:_y},options:My}],zy=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Gy(e){return function(){var t=Array.from(arguments),n=t[1]&&t[1].plugins||[];return zy(n)||(n=Object.values(n)),t[1]=Object.assign({},t[1],{plugins:Jy.concat(n)}),e.apply(null,t)}}var Xy=Gy((function(e,t){return ja(e,t=Sa(t))}));return{formatWithCursor:Xy,format:function(e,t){return Xy(e,t).formatted},check:function(e,t){return Xy(e,t).formatted===e},doc:qu,getSupportInfo:Gy($y),version:Wy,util:Vu,__debug:{parse:Gy((function(e,t,n){t=Sa(t),-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n"));var r=Sr.parse(e,t);return n&&(r.ast=function e(t,n,r){if(Array.isArray(t))return t.map((function(t){return e(t,n,r)})).filter((function(e){return e}));if(!t||"object"!==o(t))return t;for(var u={},a=0,i=Object.keys(t);aN{dRjG}54yfFLL>CEeY*G%O(<(%k|g-Cfcl-MMskErRg9+=G@iPDbus(khR|Ehg@K+?RCuracG$H#2d_i&i@LBl@ z_~rS;C>Z?vsof`aM*!k>@%Rn-VAnSczWLngqneYFt%;M1zJoDf>~3mq!fI%1oz+>T z1^|@6XK_(w*R+ErH$COe2H}%q$Kltn_3=^Sml}akXR7{iUxv>>jjG4Oa^SD2Y4?)l zX(rs?Yu+dXlo<6jQ_HGF&KPxdVIJyqW|T%T5TDx8Zq@FV$|p~$`qR$u?t!>;8P4-G zN0W>ZU1GX(FTEJPk+k!SYbu63MSQM^A`Oma{|J0h!RJP#pWzuplOuY=`p7~M7-=>8 zC=#+J;Up52*KgOlH?oB+UC10cc=oU@RFUbl?+__YF$7Pe{!BcmJ{a?buNx*T8mMf# zsV)JQ(N0`UG|btjc!yF>qHG9?;vCX>0jZnG!k27U2cpRsN;&_q$sU{xHJ4g&JQhg;f^AScnAZaMZ5Ip%XY4zi=Pt(GZxD<>Fd?svO1X1(Z zx^9mMlGiLr0^~IZB>PRR4#E{^pCB)>(sP*M`)*@X+#la2$RryyX-6np&_A*td^a%f zX>gDF#LZ?V=5+-7N!2HH``CqV40+WMg#oXj7r%bBMEX7hh-?yLjX2nk2szeP&M&NB zibvyUB8&vzUa<+J7;YT{Y5UMOzkd@!d-IA+GS8zy0`aAf6liazR?qu-XbK%mgmo^6 zAc?$j1aF+1p6886uR4s_s5z0Ya)3@J48U< zYxW5b614YO=nrClkFS?0PH>Yh{X-OyWa=;!n8-G+nSN2iw{2!ty`1L1|Mj_iI4NuM zSU!}BlX7-P6DfQ>ScbVG9^g>7e}dDqxS&O^I!p``?Ej;-q*Q!6(EG^JUQ6ru=952!krbBEre?w$S%p(&(zZ8 zJr%2C2ASKT1@fNv1X+dwr^}h zkgd!#3XZX1Dk01!&h{OJvYZf`ne4dC zM_IePLqspo{$NJiZ);Ip%DM#@ram^DCtmR&`$lC?+%Jw>^cwg(DSTJd&NT(%_NcjN z?C>t&$N2{$fj5~Tw{g0URA&CQA0myDacS>Cv7~O|b&wQ(Vf3*5++Wg%TA^e$jW>kO zyVz+yJRbWsD6P~@1Sqjz82sT^RoUo1IPf8s0R|^fl6RlLQ`hL1RhQ)!)cQ)w*%#Db z=a6i4vM9arnGc1fqdb6AH>1;tqgTC<2gb#9FU@R!Iaib#Pm^8hLOjDJ{iC$s%~g=+ zK9Z%PF{$0R376{r3{qV)Vvm3}q1C)a|C_?_k_|k!p#&tki>#uDfApqj#0%d&E+g&9 zsC+7U=MQkDp^4z!-ThRg`%o+kitw@qZ9hftTu}V>)LX4KGg()nlf8$}p2ta0SaTG0DdEgllbozZ~I z?D-{4kU#E9?4iix&OiQGi}Ntif8x{Z_}-uqv)$UNj_bjGxd9awl|M)Qzq>^L?L&69 zq5nF$Z|9}m0j1AX{51Z-RqBHE`C+r(Do%E8O8g#pc#z`G8W$HA)2KQl+s1rP zU;8>#+){R8o6RyFy-M6d*!rN>dSL@zfT!u`cm0oI=r|smxlz2HYYyg8ZW*AC?!g(} zs;NEW+IL1|BGM#>29>>qp3vJKU(zDU+6Cu4GV}D?2gxSoWX0AjPn&j*FE`ANCE5xNse^hMzN6Q>m9^??pCi7eBrq4ou2#!Y8XF=~Pq7pu^)i1@3YwX;FO-z}~;cnO5BpT+1V&Eu4LpqUA6ynwR+v6YoB zo<1kv@iIN{R&UEN;`8I!%#gEQz`!+!cXURzz3TD-#@;zWIn?)6N5^{o9k4xPL}<}% zJt^+ot?4ObC6O4&xSd>AM>{%ayf4NAedsH=^E|~!fcUGPEdrfS5^!@M5!k^yzCMpM zA*7L$_SE0Ysy~eq8O*P54T7yFoy1c42Vs$M?;v<6eC|qF;R@!m;OJThM+^xZBHpzx zxHf2`ZG-ZY&3HXo(IU{yu9pSap>Ms)9WQ-mk|+nht!nYP?gZEVw$IL=(e+8kSI<=R z&c=dC34lBPFN)mZz!O&pMbGF%hLa?h8KUs18TAtz(qPS=*Vs^noj@{6eU&w9OQk*n0Kz33D1r{-H&doZ`iY~gy4EoQwyjzo^ zIH$eB?TewI`S-CMj-%h=|7n|;w7)y%R~Yd&h&I>1C9u<}Cn1f!)sqv!ui&bwsPL{) z`>E)6feDl1kV{Kw z_F}#_5%27!XnXkP1iHysaP7t$n=et&vB)Y=+G_y!2GzdWh^%mymKWbC?^MYU>A{+( zD0-NfT0%yB!9&sXPOL^N2@wS^=TU+fzt*_vz z@Gbg#|NbKk$FmVwafZ#;HR;7^r2GAU@aYnp#7bd_5;1OT?H_U^kWEd{_}`3|9(rU# zPK1DDn;A!u3SPZ)Nr4$;LU&6&tu(?kl{WNN#N?qAcDNl27ir_R7v zb<&DVI*%lzj*?9yzO64}WsM$c@Q0yA1#;X!U!usWN?M&1M!kn0+k72Y*9219a*fY( zW^_DcuW=MwL6trGwz!xBdD3NrcFuFMn#@dW&mRu=0Yi_V-bDoc!p+y%gC&xXQ(k|Q z;)qG1btsjTbD;O@FBu7`sj1NUULD4npnqLyNtrH1L~+V*c!=KL)CJn^Fv3{U-;Ik3t4j?H4g91Z+!8XPlrv&e zHQ7^;C3rYmSD|mTH`oysYQSb$sm?zlV1o@aQw}W!KEg%lXBKOI@UEiupjozk7$T>s zY4{cQ{18BE)YAHDg)-K>9*EOu+aE()yU@*0^XNcKJzL7lbxqJ&*dH**1rW3YqBb~S zTxuzr1XoqR{~boXNo(xkO^fQyt7D&3P-?05F9r;MYd{Y+;LLc!hy(EA?&RlxTB5nV z7xh*_+;+K+N91@i^`K=gtEryNxB7ffeCr)&Xb|l)f_=(Ghcxq%n(f~p7>I(ds=>m_ zPU~q!1!0%2OH%^tyj)hO4xjH$O-+r!)xS=^y{Wm{i7S4XA)Wi-UA`b+78OtQhiO0?st5s3>DgEL6k0C>Pi z9mpMPyvDi8QrHaDBy9ZKCjH-F@Ji1o4cup6k*kq*K>}~B*8_-PtVU~Vv84yVZjn_o zj{=ku!%WWwoq}m^*DGZ<3Il;2O<-*iLu~}@pwe5(WS?=rOrY&h0q5+N91oK_75vjk~C-P*zb3HNj>=OU__M_@I{&N%Sss>zpiaUr9!e=+&o=km) z^hk8f>~MQ5u(6OmoD#b<{1>;xClq2EG~W^qbls$5r~j#Y;N|WB9=FwCqG^x zsgPUAhA4(?G)))}2+J`u5ONxwoZPl>=fCy73-9Pbm5pws=e3$0ZSY!tGe|hUKKp>m zUcKMYgp*V_`oyW|o}6;;d`y?(=;Er8!sp_C!9R*`Z-$+-R^N1D_mBP;^n|Bm0>uG{ zf9W6H6huWup-t90+jAT(=^t#_4|XkSF4=l+)3blQ{K`II8}nsKPRHt5j5@vmJHrb` zW}DD!0kQ1SQEcAh*Q0qS%fcF_0mdv_fFT@0?yboGrdt^vXm(cQ|Sx; z3uc>9^%S04NNb9#O)024y$Y^pUO7G=RJc84DO9EgJ@0danWW`zVAuha*&gLq&}@G* z2XV>2<|6s$#l_mdNwN4VCCNCiGNJNe|=*CrHx+auX?cP!Pg0wu_Ny%+1 z@2Y;}lgR6DpklBYpL_r$>3^|`rb0Bb41-j1z*!n;2{FmdmA2k^x1eGGN##RM>?IZU zQ{Dn2-84R9mFs=Hx;-s!Fhqc?{gzfLmS5mDlTUrlk>*8-EfgO&^s;T}4~ zW=Fvh+?d3DBJ$K1e*QGU(9#h-2`)@4eF-ke8<}C#ituos;-;emABv*}v9Lt4KNal@ zK$ulmr+6LrFhfdW@b=lQiL#7Z4|{&8rR$Azo#mH%(Ak7)dV8A)mo`Bz_I{5NG?gmask&d2+TGkj=jE(Wd z;xyhGG!OT&C7HErZA={g6cD+P?$WRgk;v7p*A71;SbFlwSwm+T@ui{TbcDZ4dUeFV ztrISZ{DOomV)D(W$&R+_{2n9DSM+NQ{6S=B`EILl9AF{!K^qHB@xgx1gwoEGI@38t^ROC&37UJZ{dCXgoh49gT7Ud*!VYjtz!* zulf1;-5*A}6-D)8mpLXC?9S>>5zPZX#pYTp8lSh4O-NJV+8HYSIQnwXtS*%O?AX0Q z*F)lf0*I8kaHQzsUEr4dSdjUzLP4hhwa7vj<(%)ix=eMgy{7eh7G_2 zADDRt0nR-jLYj(ANf+B~C?*u<9ap>^C9%I^6aOY3#UQ5g+U&bA@jI8U=~x zjzyY@EiIKtjCI{n!hUE$Kjlzi-Y?C<5rJHO>(4;M$t?&>C*lZLn!`IV0Md0RhxP>r zzPcsJ-aYyU+u@FZlRC)V7i!DI&FHhW&wg&&bWIE~^ZnUM#3r)e8!;e;V&59Nnh8a+ zl}(U1{C#X4wu*at=H=wolnXzP06!}3?(A>eI!=qA+S}Lb9c^Ud*C-6U?$%=Iv-DLQ zse;)8L3sO6aFObBjKUsi%Jn{c2-lgPlBA<+^djgI*0lB4L8HU6?Ce$ln&>Iv08vzcc=1;*iBxd9 z^J8Miw;o<~=ekg~ha?RB#f0tVhHBc*{_1@AONI9fnynS6i;OLGT7%t`K3eer0+5EvLcM|7DC{=^6_~} zD6Q`mExkwhCzDR7v4D*BRTSLbfM$dU3WoxUBm|dSPwSo;lZ8&aDD*IrlI#CL?PRC4vCKL=u4$ktNBR3%nXi z2|rZOQ;7}TZzy2)xrwjnHope?h_oN)ojtkm!P@-zz!;w>^FPNKux2&EKKzp{mC}je z_i8#h|E+lJp#Xg1AJ4ek!AZ@CS8i{#Z>wYvlJ7F4cNc(RFYJ~(hHuS6t6I($B{dgI zD+D~p05y5tBtz5dAzB68u3j!fLSG4h5F2iX-e3ZdbRbXy-gdZR1)jT*Z0)-5bQqGXr$!n#pde!)nbM+`)&@3c!5mV*=`1lgwzYebb{Oh{{Xyz zD^AvRvTMuJ$o4)B%a_8PnZ;Q| z`rkb6#%2UXH<}9MPPWc+mpZ5;%J{ob6{tT-bzyT~e;Raa(KV_wMTHz&qgRhs13)vcEVQB>%{Xm(VvXx6yV zXL>|j4~*0L!d^2s()WiSux{<^AbQ_x?qWi)5lq0!w>odU96)H^xBd7yO{ETgg|9dbst`*gjGq*1>U1>RFSSO&FkIA3&fH->m+quD{S zX@=1|lbXz4?1ezbLuSkA=6xvbZAwdZwJjazJ#tqf9z4&wnhZ_Y^mqM23IgHq-Q(D& zlpCl@Ot?CPoIk_;_o6+-W)e3@73OW3#J$4geSlmS){hmzhGxhCQ(7v`3#-NdN!?jZ zFgY_**Qh;|z41niW0`%&xbI(vIL#ks|Na#FV^lDxDbZ8=V838BLAp70+V4S}s_ROH z$A)H?wov0F%G`c^(AVGmuV#MUq%N%Cv^y*iRVJmgJ!B+y6ig3xLdU48m zK#eCa8Tt@D7=nP7ADax-;Un}p|G3$3Bi-DX;#4t0(S2EChvjf9I9i_St4ow`2cY4e z1w2oNRgnyY?FXD`eNkxPUx3c*pxYITllxOxu&_0Jpe}0a2`7q8o+?_AcRsM2QDf7A z#u-B6AlxruD<-6#*f|4#tWybAJX#l#%%ahHvlP73v1CHEEaq3LlPz#@ih%X#QM#kni(zUV0Y(qK*=HmfrYXudG?h%@pg zrvY>5958y#+-r^L-BWQ|B{1yeAeNKCCG4ZsD%)d#6eT_B_-r2-V?*AlZ^+K>a4DMe ze_5kK$r?Lg2;b^CTU*FGYo;u-*d#&|i1@C77`*fE8;a@uSoz%Y8Xdd{qFH3k$Iy79 zoV?Q_1YP2RvcckJS@tRUfztbp;P-EZldkm?1GQ-LAoXtDv<+Q%cF(-`gp*1r@2(d^ zG=%r5FI80D|-t{J^|T z$6#)5oHnxZuE=)hXJKWpd;Xmqd+lmVz|n=@=ZuW3A5JS8$gr)-R(_eDtlo30lirQg z`*>JI`D)=I4K^Nlw)PM|a2{j-l8yXj?ogdQVo4C+Pt=iQFszxKIcrc+|A1Y_RHM4} z{ZUCuiQSj>il_#%ths)Mp>-$>@v8wp(~~<|KBb%@i`&Qk>Y`G=Cts~wn%{ZJa^_Ij z1sS0cvoDqKn41X**!fsnmz1H;Y^?lgKFCbC};o^hOXe7I_OZd`BGz|Kn>OKrV(1kV$El*MgtfD zv2(6%`E#ctyAQ;${ltGKeE`43_+9thM3B|Hm9(#ClMe#3$cn}?wt{V4I;uwBkQY2w zUjl|k&*!KpXBBjw$M>J-gW;FShz_zYD!UY2v<3C%$Cbo>DgK8jGP=e?I|_0e9rrOJ zaS*lZ@T+lq#dSZPknXkn`}c~?{*j||6J)lAkOs3tS8rvu%WgRJ?QUU@P#Ym8T2wXT z`KuKhNNBpD``pH^HebZH3aI|Oz*h{3dnQGlJEac6k!Pyk*noBOLP6g8pB2SMdCEGK z>E7;RcqS&dq_F&ssJafawX@Yf%&gC%#n^y%zrPJMTczWL$yN?)Ru&4#kC&jq1C0qN z$N<&$wu$YS5~3{IKj{~)?|49%!iFj;@r82R=nAy*zQXcvA}}xIJKGm%9xM13(f6h! z^yHkf;?Pc)h~sX>O*&uZbdx>R|0x=V>enyb z8hlN%{vO#*WkQ9BDA~6FynvO%FnWH*MiE@xO5K~(MH$Mje>dN^N0GnRK>@%=y>R)# zpcad1!vDeda_7k+8r(6N`~9z=h*YD>jgMe@QiJ7;W0Eq=fV+g;PLL>2>7LrxRiKQccgUiWE}!%lnI?g#bh;l=lw_TSaPS7uSgs;#CUJA}qiU!{@PSirB({5P&=!IswcEO0;-00N{g%N;G zm2e4+c2QVm&SR8~zEu&bF%ZtJ&I*dLk0eHtUCsFe*zUJhe#V4!Do>3YEDlq6Y{hAu zw>c*2fV+u9_bah>A_6RtmF)YbkPb1E<>rGm>GhjHxwpVuwx)Vm`*n|Q?EC}=y{TbW zvd+RmRAvR1hYWY6dnCb@o3z>PH-{%St>W!MvQ^T{F$3pCAT%;7&aKUUmg*K?vw}P1 zI5pqXSm07^#rITv0&u#0e1kU)CQSZ?F&sms ztbU7*=JS=BS)0Jb-T3NLnJ>}1{q5fNzLTxOFBI;b>>lAYp%lyZ_2|&OkH?vAU0ORG z!usLB>cu#Oa-xO;F(S%+SZ^4FGI0o|6Oq zoElv{ZU_*)XZ6R6JJ`BWyRrcaDhL^q;=o0z@VG@Mi4WzKSJ*IH+|Y&bX!A%dm!-MZ zmFdPXXcSo~3cD7Q)8t0$yX@I0&0JTVAxe59Sx<|@Y;vbQEJA*roJaF0b}1w z`(bPU?-gEaL#_VQMhzHoMjx=VVW>{sfA0`&5dZZ#PiQ-DN=Io?WY1?I zjC7J2cVi2qqA8J8q>{&!PH6!m8cIPc7m^}exgoVQr}zM_T>&;M0hP@pUt33;uGK4jy}gQju883=rx z$8`A;N$zhCUWgzg8O;`YI<}#5b@tJbSj3zR{Tl%U8d6vUzOlkbrlE8fGCX_)F$|yc zp&9>~*pz;B6V6?hxvaJ|cclf3uQv+3DnQU2EM1xGz;dYcAagp-K;{Kh>#GUy24cU) z&MUR83bDiM1JY2{AQMCjll6c1ocDF)X1Zl=`*o`i-WiN}3<_JV^Y+UIDr$(ieSXny zsOW~7%Rl3;A)MjeZ4QD&26d+4NUji=4HgfP>j&PyWJM(RPf`rQbPSob_MILw{GD&1 z9;S?qtc84Uil(j_1pBB3f9K0WjB<_k~WGlwB5KpmtyM+5~=#muw!WouvxOYw}Aa{VRRWkw5Pw>I5OK*9A1Y;t-yVo~7 zg+gRP{3Jr?CSAAIpw}sJk?WaJvIiqj6y}6P*eO{@-`^ghk5L#~dEa`}yE9>GC&kZ} zz6XK2d2XUIJT1@ z=g?@DObe@GO*D^QB7wS>`Eu4~XEmoSqCW^8Hpgb{rb%M2{_Wi-0<)v?53EE93;0{B z&@SrGckoGyiB#aYRTypo>$Wj8hP%ib9iW?+X@>?^(Fc#2-TQgNMf?|K;+VYwS1(Gj(EI_*m!q? z((IJgi%A-P7-YZ07zTTobq;?R*AbqrwU&e6UVk%-f7hE!8sN5+JZ<$8H-#nGOL(+_Z-DM}qU>lofwrRM z%ibiaT0;u|HWH2cJJP~tB2`u ze|;!H6jH^8wQH(%;D&YJ9zbmRiVgWBT$!9?D~Fny^!tD`DqlVsO4fr(hG+rICDMQs zpoC77=pv6!Or=aNKXE6b#O9zmmjk@Ik%;QV2g8I329?l_1%|nS4`J*#8wtxlQuDff zlP_C_G~Lw)*=~r-iy-VG?(RK?!MiARmM3A&zv4|{H@ybF;cpM#w@}~?Dh0hr=Q$-q zI*J{j={f8WNF-y7-*!P0C6IRy??mu}zzNXK4PYBb9Ml>A0W4YM z$yD2i>#<;?)3b}2Tz^uHEAOI0oNB{o2tA*HLn(8zk5qH7#Q47#a{0yA5FoSE`Jk?j zfJiDq_nC4*af)_*M6ylv01Z5)IrM~4(XF+|vv`5_r`IViyr>D-sFhJk??NPEAp=1>Ty5qM#c0yx_2dPk{I1Xmx-bpjcz}Z24FfPXBk%e z-Q(Ui1gpliOS~j8xkVuaA5CQ3HCg1ldn-wK(+a<*CUS7JV7(b`o=ooC5wVG1!MSw#`pZsBD5_}GA>SY8MT`66b1XENnLAu?DqdQC> zX$X61q$@0`%>rm2l}{lTuPBxQ#m&?!j*4QdO`E@;>qzHA6<^TUA;AZGm0i6abMABMF6RZ%zw6d`l0sGz2Mlv+u-??P#SSPfO|Um1kkM2= zZ*r_BEPiCe0t2{MV8I>Q6*~)QwE*U|i^a)M=H`Ke-bzdZLk`MXk(mA-ZnXrOxPs@D zdPc+OCm9M_wiC76&x~)RfxqNipC_>oYyhx6Z4;+M2fq~f&i3llg}9Mww4BLB^507P z61`SY*66anvf}vLhKr{QR69U;;gk)}E^2TgD3Ugj+D~iKLXQ1-aB~ z2YlUN)$$g^d;L|@HkhYQ`Po+CYqJy%eKI{kmiXR)P$g!a$qtJq<&0Z1j4TRvp`Z%L zYzq!-(ST^mZJzJAgFE~q?xI3K@?h@tHxS%VK0~QLbO#jc?6CiEa?)NGoFIF#ofH3V zYClQ`+_oPWaP+6EIGZ-UmLxq9vFhcaE(U=r9qRak7|Y8cM`2`yT!l!_fqnd-b3*S| z-g<4=JPCdqj;9+5Wy`S%#~y&$ya#=%0~S3ZcfGFP<`u> zhUiKu)y|<9VPssAO&RuAhTGiD)jfZ8wsNGPLf@S-9gz5hho_blxdx6vuD!8OSV^nxRq(%SzOaz zsjwv%9!p1`dB-nf8q{;aURe6{u{n9=A9k+mHk5L+#TeB<@3RY7LWH%ZYJ+xwW{(?A(10y23=BtpdO;!=OGl5Z8?$FPx|wF{}}_#EiKH+@J%A#$+nP7(vs;nrhlT1 zlr?WnSlX`dwkNKXoj}-R0FuT4YUnNTpp*`Hu$Rk?241Aj;#uB3xhuKbJ8@HV)2TYo z>eR2>|KuWb=i_nzpo0Z7hYBK#TxYsOf4=*>-hMwCM-{)#gZZ~*f#*lVmi3&6Zs=SQq&zf{n``{`Z`I)YPP$t*&@jF_ zdcuNIAEmbz5luq3`+n0rT-F2a$NLLhInG*}e}$hC(5=l^?j(cXv?||H=d`g9*BO;{ z$lO{h>iZofGJie{fd!Q?O3yEqc4B1@ylkM{R_y4TaY#882KU&XxIq3dJ;Xp$7C$;( zlZc!$ew+3>>A)*+?C9v~+C=2B*_MdJ`dyj;4~cAOlNs!XnFN-4YFdFT&`P?6=Rdk zv&&ehPn+@lmxdc7>_bQ2gEa%21{1hj#aAh7Cb%mMpbq#1F(srkf$Y>J-rc`JbK=Ni zH_>s*Dx)Ze%#PP?egQIRYp81o&}^KW(B5un$ZxZYI#B7Pn#0{Y1UHc*7F6GVpe#Hb z{i98yoktrxao#fgk-~evYy{Gq3X-S?w|b%d=VMHdGcufdA+B-MWp;JojGPn{hRVsb zKNva_w#n#I&Jsj4K?!wFk@kC8vl88Z_R8`MAB>x`e!Ago3Awi45TLhgSy)9bVZqaX z#Q%UAnk1yTZWDo(%-BJq6R0%8+2kb{sOND};wG=AkX^M{zALDMh(gzyU>D^r-Hrxq zgQnR$iGsq(dQOxCmR>ZrSsIqdjCRj%dltLD2yR#)(N8qTNM&+g6CUvPShY}aQ#gNh zC~!7m$5YD^Ecct`Dh`n^K|S#a^2*wKidYmoTvv=tn)nZD)?co4MU@Zo`N8nNm%IEMQ479r87VGW!#6Qi1O$dA?trdkqoH zKr{1;8DM%B~UDQnJSrBU-%bqX0Vw0x{9+{MZ#(qmMOsZb=KZmzAH*IcsLUdEsK>?Rog9@)yr;VO{dBsdkz4VOLx7+uabbyyF{*19N9?h<$|KMw>%Qp$5Br z-ghvaD`Wp;enza*{MAC$ z#u;@E=X0cgf79#QN_%f9huP@dP1|O=CB1gPd~sE=YM0?W9Bb~z&#zXomP+X^!Ols_ z$i|8{q{PUiR+ED%qw>LC0280Sph1mcQ(&CE*leLn^2T2YcO>OG{woki_`FO{nby7vH z{q$&j4-ma7kQ&<9Sya@{zZLD9Y1Rl`ZEl;-mL53kp6nOXzd9Fw+YMI@yWPF4!>|vl zum({FiO-vOJHCO*u}(i~q=I**+{nbW=m^!_O+MCtVjod@JSfInApmcKb{I~xRrQz) zPVLOYs*~IO-@7XEmBql>20+#2l5f2IRiNW=^JjUUM(tqD9+hU-7m&A4C2S&no#&IJ zeg+cJj^I)9w)ar6u!6ZVc;#ZUyg@(1asJv2-%bH@lGx*T|6=Yxx6@cbcP0X>70CG(~Y4*=-BWHVn*z`vzK_Srjf%=S- zg(THr1;p}>uE^w;YyeogCDN9x=UNkG3UWgPmtcr50cKUNYZ2nwT-Y(=Nf;zJy~haO z80?U8viT-OJg}$_L5R~u+%CxFZ)|eOSJDYxUPTrkc$(aS_u*QvkjK&%=!ER&hRs`+ z5>HC#!Rww=ql2_UA@nq2^RhLCQ%OpBLW+B{Nyonjy1sxJx1{2<~tYQks`1glE?dn z9QIdSxGu;Ga2U=6-%)ozL4Wq^t7$C!lL~BJ6xyJbA!QnE&Fq6k$@GE%CKd)BU+exj z+N;IS@^K_+Uij@nHZwGV<>UEkIypG^BF~8dpx$t8{rFEhqRSOc8!Ky&`GuE32wqq^ zugjW}0dqjhusw7L#jaRyZ7G^4b~#~C$^1_xY42(wAl@U5&(5b@v*sDXB3v#-?o%3J zX!ztVYoX@#904H9r9-ab(A!1(+1xeez1P6A2fd$$3)hefivHo}SFC+E$>fM@RfQJM z;6p-N$PQ!dr_8yE$Y`*BtnGWhl0|`@vFlUV@zd^-mAEUGM^lhCjQMbShs+Chy28!z+pq0yI9DgN# zmQU5`zS>wl&~aLG1!bKVF#TlWLSc=b=CLr_YT2)y@>`(I7M(YD1>@an^`E~l~7 zd|8vi(G!)x?TT56uhsEn8$*Nnp?AmoU(Ky-KitK$o z6AgBtG^r;Tzx!sJfW%FbVT*#$#r&&+Nz~S0IZjhJs!tbWOq8wj@e&hT>LX{`(}+!c z{8n~}!r_6MjA0IsYj5PCPTDiV3q3=(v8m_k-p1e9$l>oUboK6SgG)c|J=4JW?YX`g z4f_8*QssZ8KG-s zMKi*nP%sahu8ql)k%K(`vtbZSPs}Z3Qu|4(iiVO!#w6Q160Rpk?rI(wBMf!WrK4@Ci|(>ut6B&f@yyL3arej5_#=F@PVoPcV6!-w5RR~ zg14O(aDS3m{^0NBa&*s!%qp477V^2nlF>%2)*=REYXqN1Z` z71IgV!=mQLDmp_*d6){u&2kBvxRj~VQNf13j-)rQ`s&|sR?R*iRN7-7)~fd`HdLSy z;mqU=$$#{?c>Piw(~iPB>lbiGVGm0WHwmzSM&KR31Z71pL6iU3oqF$ds~8snaaLZL z^+B+^eH5WQFW^B;!lGr2+p~EAmdbEIF8G=7y&|!*Br^fdDlDUoq`p2X!mWFsmj(V~ z(^iJJ34~B9`_aZcuEaq zx?c@jKy^an$~87b*WiT$Wi{j{9KJG0$tX?!t6djENiQ6REP^xSazO+2RYx4+!P|?p z0;!J@S!B<3IVJ+Oo*LzG*Ai*Ix9Uy6!D(q}#iL9jLa8OHxEdxk6nwau=L(~4d^0_~ zW9EDTXJb&SXhy;8$I95F;i3~{Oe#<=;E_qaVC2}6-o!h<1mn`sMXxNV4)2kfGr!x( zbx@o+5LY~&LLA$##*)~F?VrE*n|{;y&znpY2qH*9tCr}=B4b>h;&)!)m-MoSEnNO7 zqEU@r<7$k4Ntn3c*g8mvz6JbdJz}m-t05SanW* zOBo=b<_f!ilGFCAJ6g=?EsONZpvvM!kVJQh5Em~&I{*TlZezQqJ}e0Z%5U*{^O1x5 zjZSCpmhrtAqVp8Pz}^tn>;YqXf2xL;y8@~1R&A2(@`W~*44D`FzFj?2&kenIGPYlX zvonf=vlD<-layjiBb2NYcs~cCFb#YEd{0$y;hwK5BN$L*{6GRsng6HsF%1lbJ^zHq zv_08kjAy?z-nKT_Y5;M3CX6>)ZaK;sXTsKiazS{71t)~%MR<5}Acr%C>U~VMBGS}xVP;Ga^2j*M7 zU`txi%f~KZT$D1laXOo@kaT_(retE%I2P0Ivw1AMLmxk?&Jrv%GrNGTf!Ko~L@tmW z=J;Mao5)4>&laa~il4XNL5YCu?qW{|OWQF4=Q#Pt2X}|Q4fe(?25+5x5^={UK;JIPYA=#;t)m6pG>qCQwP7T^`6+6%L+69)M0#ECUz6a z3+%xjohyDc{0D~x{la(BoSeA&PlE$Nz$dI4PU|34dMHyH*qlW6-SD`ce8`}xCpqm` zpgR7Ko}Wyc*n~>sLh&%j zcLi#EcC3WWC!36$MEP@u5ZHCVntN)kW0OL{*;8u}=Kjz!-189iTO;^ zX&2tDm%!gyAP6cGDgdud(}a-HB=mZIbsFBd2C&1Ij7J0WAUckJ#?-_b9W&PK80w@`1)Y;Yw@n=y92_r{nJJ#9t zR<+qpw)uS4!1(Nyj?)_$hk>t5n+*e7NGK>&nlg2z`Q$IG@xATW=S5#-zJpLpE|y3N z(@*bgVOZ+Mb8}`cmIlGRy8?TYu?f9q%6LiaH~$U0M}Mn$xe#EMPTk0A+Y$Oj(QSYPoSo*Q>bo%CZ+_8a zk$<>Q&f}zrda)nwATXWy&+9UsuRBh=1~48Ud()zT4Yvg4bItpQ)lHg3zVJomBkuHM z0)>XHuc-K6pk9Up*d%D4ljVMci(~>K757Wza5vBp=Vb*Febh(#m#Libv~<`ji&2b8 zzCoG<#=Sb*;|a9x^vE)1L;Is4a1vJApk zZ-cor$mgB}T#urv(N=&D(D#x;h`_U<_M>A0{Er0GJS$p- zafz{iTsU@Uvg>JNwi-a8e*`5|ucvZ|0}0r8UYP$_2BejtSXlOm?;x#EzWU^(Qf|?0 zZs0cXD9iGk+s+n3rvkkV>`tSGZ-G*I(S6}Lk^uLU?qofU*Kv7TIsdP!ua1i9GhKe!ks%>gDLzMIe3VXt~8Sn$`1d82dhl(r(pGz^C=^O z`f%q0y8`c2uS6CvXi`sH7)(+pV@;U*1TjJ;qj4$CX-i4yKn0-yXOF-2r7C%79F9z8 zQP%=+cKfv3J~wNN5-ld-D*Dt<-7(ZCAseE-V@^pI;bt|9DgA+hyLXgV2pV z!cae6RWMQ9czY;-f)|&=X*ACcG$|$Ddz?E10kb64Km8xxgC#!R^xIK6kK!_j_MUu! zeG}U3yML*{4+4B%Yv2~c@anx3#kHuOk&F@VGfq%j<-{wNx(Zbpqb-+gQyL=2etVrDL2~t`wCRbeNBzj1D+?Dmc0I10lR8 zJI5UVTW8}L=Y+_BJD=R1k8Z((4_#7!>AVB)1tE*z{YD3QQ}>+hf2(TAI;M5@-izWk zP0GA+2!{jSZ$(d5N`8#sb=cneQBl?TP^JG?(0Im8Z`xaB$YQExC-H*jcGVRXpX=xC zsLhq@sfw`Qd-@GEF)<2!Ih5V)H)#*9VHcg$e|0eLm$p{oRQ!f1%KGinrCcY8 zk`c8s6R@PtU1KYYNP3SOHCW6bYL)Uu7P`@3F|6Os4C&|*pCck6RIfbEdB-2cLJGLu zv$gLcB&SYSOFqsoT>Z6rfaHE*-%VnM)nj5A5|v&gf8@?(={NQggp1r%5=M~d`ayS? zz3R#4Y`|I_N=-S6t$I{zRwB;%Y5TYqtuh23A(`+fa2|kM_gO4QZ7>sGJ3ashe)jI~ z5G!3xB{J-KlrBok&t8^ z=EF%MdAxJr(1Rf(hDOz9puW+uJ$N`4jcsV7Fh0hh7DWyYbT|;3ztb@#CKjS;r1NlU z?5`qJL;-Fp$pMIY8a>0eN;4ppNK#H%0x&PrM^^)>;?X3JgC-G_R7fvQT=dWb{(4pI~#Yq-FFL zeE$Pj7!CGU%kehMnV=j~ALU;RfW%LZ$1t0aVs2t^OZ$7?SQ$lqk+rA62l{HJC1{47 z@u;}QW~Ho>8bRU2-ynVuu~;p%=#*+>K5iFDRF3R|bfB^l57c3mV)TvG9*hsIf8HPNZun{k(N7r%*RMZ8(9Y%Q0hz(ePy4#rX1y>)) zkx1hnB@U&rTRkAa02W!r#zf)#^cy5-Q>%?Wey?A{s>cxCFcE43qk0oYc4;i$KnP&;G*}W{y+#L;Vdoi zC;qS1;H2+X<-^;1m){^b(3Xr(Vod=8q*@o*dkm!i#L~|(lJ?fB1&zj2N&N!+EuHcG z!UO6CxiU|)4zS}Hjq?yohy zcCf0(wPyGKJ`wibRj6J9$dy8t4t9C>n8OliYL&yTZ9ub{_#+A}IG^{RKD;q1W?Q~s ziCWk17ZMv5Vd2G^3~7nnPYZn<8xyu(Byd;~qc*5wNq$c_koBj-K$xLe-n zh=JBZ7h$Nr(iocleYJl-y;to%NDJHY$62zx$P!t|P8lEX>}$|TBpQo8xC=|lZ*ZwJ z3+%rUO-|911mH&hYNCksR@Q!E(d>%(Y@Y{M`oWWrHlm0Y@Q-{zgRyc=Y@S z6+ntm^y64;d8V8{Xxb^{*G-b7pa5VxKKPI~cK1nIbuw3+IgC`pv0>EKbZKOf7I~dL zbPg(XZT29G2!JY=%>BGCun}~%THlapY8nnWyQ=fwL{ExzdqM5H?DKM-YyONgK z^AwK>K(W<(&hHa3*a~V-H0Rq`^0`w`Fl%~gFG7J}v6Ld-ubRQ@E1HD|lnnR?Zh{h* zyFeJD;d*!zI?`D*4TS2;JNO#8^^n@E{ti+FO%uq5EAmDeCbS8B)@W8!w8%9!&I zREV*{8DZ>6Wa%%{Ct=g0ylpQZ2(h~X>mX9oCsVl}qVyU#!0X4H?aiH`C~v!p%3P9! zahu;YnaEBqa!P7^1ZmGN?gq1bh^`+|e}%x^mJU4@3hjV#+{!5)dsjlw5%bmLWZS!a zYA_}Mnk?a^ZAcT?VX<66-B8ci&jBS;JN^(dg!SC&z6KMrKeY6VXw^H=i-%`iYES`8 z4*XiePO2lAXYW@iC?eG0xYCqblkhCw1FTPn!LOiv6m9?#_AjP-G>_iy!NJ$L*Zkrj zMbrr!C4_HmBLH#|{1g$MBE*nS?DEGu3iZC8Nc zdzF;O8{R>6k9QlqRygn&{;#TVYJuZBn?=~C^$8Eg2ZM4KmNljcL$G1=a#uBzmAH}% z&+~ecYL#(oe;y!_C@X7M-vY(=j~YLQ=B_5|Eob(s;V=O+Ji!Owa>!>L9=NOY?7Q7K zK%ukMsXfT8zz=N~**96gy1I=(2mkyULVW5CL; zeX9byQZyljKoY1?(o~&p)S9(=a8NK%(rn8B@;>U_28w-`Xjxm=5A`AOaJX+yeWgp3 z6xhz&OTl^~oU(?Dy}tFPA9}&DoZZub5(tgAOXqpQSENctZtt->D3+cK45o|Ufbrda6gG@;ka$p4->r}##_^xjAa@w3Adjsc z_UuAhEbnXRj<0EoCDF8lc(QX8Omf499;R?X+bi!r+H=wcM;7Yg5ohX;%~Ebev979T z`n>znBKZS?dEjo7dK}WR?DbKgsc3qNM+6ET1w+jYe2lWL-^Qs8H4fip;la`!e8hLx z%ypPcq|n3~LPf?^IMg&c#IWF##_|f@fNSuuNP8wdXY! zLR4<0WLjIoc~1o)XT|%BCJBoymD!0`DCgcF5dWJnF_BbN6`#p`dAESKVkn&u`K6uF zO{oC1x{qml*`U<|oXOIJh?0mwf9Uw%Dc*|M-OWGI3z)}M!nCZDkKu?ImU!nt#7^tU zwP=A%d)%$m_%_bnI>q`xLPvA5xjL4qMjB+8!0Zq25QCDZ27g0|neN;f z*T|jYnQI?mzUHp{ULaU?Oq^$Dn0+J{Xdrr&qF1D=)H8R;f=DW0^p^b1UGb*Oe-{6nA=Xt+^8=Lp#>!G!W5x>h%=FLS4o@6qHIGHdof;GgLdCSQUh!%vb4|uFcou<< zA1d@KN6rON{FUHstTI+h<*=xR+0xvans!V6@HAI$%l>%d_sB?+wff$3AYQEYlD}I> z0_Mhyuyi^RURP6{^RhX1N^_|<4M+B*ZY4(1;WYGmlj%|)G-3z7;5@P#_`qJ~=>0_; zzu%`umppPek2Q{IVifH8+$WZ{H^>8Nz~u$`01_` z!_&*_diDlF@L)PrCR1sE%5jnndXNFW{}p0n(Hx17gt@5SS#0e%I@o-5mpWRa)#9;o zoF==UNxpnk*F`rU?oNdOZ_9!=8Mp|&8FDv@DoTC)vW07=q3uQD=Pu7ZyOoVmR}a;xF2#oZ zJBqq-$5Df1Q4E}D5I`+ALJhZSOv8{peV5LEvVpqkokaov49Vi&bhGQj*KH1-f{@~; z7XDp&u%C}tt|(&&Xbs~88+xME6eubDH1ZnU`Qb(2I~wQcjB{L$f_-|w?jZmtOjFaY zivz?ewn>Y*GfbXB`{Lol&$+nBas7i9HRn5?45yw7RjBWoXI`%XdU4xWpp2# zDh7wY>zV#yiHC#jbb|Bh$LsIjwdkvUP>R+Jip^49r~i8FrhKAmToE#RF^jO|+L&x7wpy zt;QFL-7xGO2j>c1stf9r-D0&$(F?*aP5V(u%M5c1e(3EDg&s7$^jJOp(bZZPaPJ*4 zmZ{M7^y2ki6*hv5;O9ruTE(H+Xbz+Q5^oF_I65QX9%gU~sB`#Dad57@hO)?}nLS%|EX4TnKqgj2)|eL{6RmfNaq=bi<{q5I{eg1t)0u@%$E9B(E292UglmD|tPC}AwV8wj7 z2#$&0Y-WH(CFpoo?XGA9UP<0^8RfJql-AJi9rtmix038yi!TlEYIl z5#>gK^7tJ^*`G&Pv%wws%mD{J2@vvkWdYB%X++bLt*f?eo^Lx4YAEepm^3I0Y>L(i#HZ21;?Xa8o%r zc>`qvkVquuhow9S<|xu^=i}x3BqWl1Bs)vWvhzzv8ze8l^1K95Sa)?73WY}b#ERz< zZZQIv6#QTOsLV$TA0AzF@g#*rZ6B-1!=0tqdW#(8gX3CEspImrcZre4>R z-p-a+%7~~O1RB8hS2#SGNgT_(61!@`nGU2xL_t{|zs-zrkGaeVgwsQSe=sp0jO8lY zRE|~EZO?H_teBIta}eW{1TZ$2JdT42EK31La!<&WGzYGWW6B~BfOd;hB^fwVR~DxH z>gIeLz(g5L+bNanqH%AT*l@b>e0SkS2-RlDR*|jf31}xvwbkt2dS~i873kAyMPkPj zHW<18%4V<&yOz!wB+oXZ5-!k~%OBj@CnI#7S6%I1zby!dGpFd9_(ev^y>7;T=``>m zl!_e%i&g^*Wub=Ko~Tq$>n=_iZ}IY8qGfa2W?~9$mBupKiJ2Wxlnno|UWSC>0ft8@ zO7gktzXu#b-U#V8-)snS#L@5CQ2y&cRT@XUgKox3SU>Fg^l(r{Xxvi_iu%{n z+k3|f?;w@?hzD4hx^b&N&ULavVm-Uvu}vRX4zlMihqK`3DtuLJe~vrmVz;U54@h$g z6m+Anu+A1l$D@(!Puj9G1K!-CHtv>+wI1BVH-S#0CXUZYK zOnvcqEK%lWXjn+z@no$muYc{8mDBc8ituM;xaafq^z`gSwRW1}X28>K(_`h-V{zHk zvX~)IxvI)WeX$Ea`1H1;OWyE?{1%S$0$_Th{k)Q*i`=jZD#{gXU}Ix*La)yOwbyUo zy5z&C856EkGu_^Tb$%9b;o^Qj>_^wG@r7?0Hq7hlvK`_pTKIk)Rz{0`cO)f^x_BPX zd`2Z*>Wt&<9mdsYZ;&~uA{XXkLZb2YF!&7wlkDBDMY9vBW;qf4qW0ipl0?7LHrb0- z8~~8&T9MaExQRC9nt8@p*AZwELYf10`bc0&Mw zURZx$AZ+VXf!L|YzJ!hB9Tb3RtsC?VE3-EMAYiJ>G%uRd!%)5D8Q7+W6AALd{O5^e z*Jyit+BZxq68BN}l0ar*1)mRSWfSBXt1Jvj2@ofGSyN|dXHxgsM-gEO(B0UTjH>|` zgv&WoHKYg-TE##H~-Fu4X07-yO{a2Ykd93G(5X-%U#j=7`-pz7LYe z$G7{rA2u&U3pG=ua~t)h;NIq+`$BsC!(5~l*=?CsS+e;sHsouckQnm zi|5Jm(h`PiNKOSCQzUR6F9c6g)5v*!d}coh-j*Md7-a}CnaO`zlg2x%{7h-`3T+dO z7n1DxcPsasQ{=luV^F#ku+kxUm46+jb{r+o|Ax@#OW1!-?2S`Pods zaYIWK3us^!tOf7uLXbqv_uam3*giWuDvIsrfg?gj3-UNGx1H?DxAFb@kAf)#x%2Cx zPF8|HBmiLbOo)}Aw-RelMK3llbMjlcFA0IzbcK5r5smHg!A8VL5K975w$NokO+;tZ zJ63<)7qF|l=vW{ej5k+kN^d-f&&y!y;#BLVHK;qmeR&4};&pX|6+_Y&+hT#aR_qt9!ucj-mCJ}OzTPh>QYN?;=P2VC>n$=imlf0h1FSf?a-{i0W0DZ&lHv-mh6Gx~9 zF`2&duyAUBHK&n0gS5*>SylJ|K#;6=N!TF-^>eEJz54j|S;26*+y2%jEv#_Ic}m1` zr8nh$T_3r2x3w)_6Fm$?r_q%;JZOha_m;f!>7w8a9ZSwkYAE_?A{n0X5!e?hTep>{7RQvh! zEb+LT4WyyRJB?$CCw_^eT#1sqq~-2#Q71bFynFc+TU)wShy3#s^t3W7?()p*7IUnr z`|&TG%D;mbf(GanY&O%CN^r>C{8_F04rietz=kl9CgtDr9G0lqK zCcm;9`0ym0UfstV1|b|1`REFLV0aydQzv7}+#nbIFAfizk4W~1UEZzSpWI_av~U}&cD#|=^ET+?v{!&Xt|hI zN<+Qa2OaGu_Q(Ga%Zrk8r-xkTTI@>P{K7jxy+@N$DRYZ*Rgy=gSJmj6(~B!vq270g zc@!FCbpl;d3E z8rfQghK(aO3D=^lxqsd&`T*{CmUdNZ#IRa#J|>CF$@!eRT4E=sSkro_rG0E}y0E7k z6hO@kJ&ydB^tj`S_(yBIO@F+89eR0rIcxZ18$RxV=#Mp#^cCJgZf6;FPwpY7Q8XS+ z@|j7@=W^4Q-`;7d=R+TYV>dTUwV3gC7r37b#7Ay!PTp|d9XgKeJBQpW`Y1aZ;ZXpq z3@f@0OY_M;uVH=vOpqa-Sw{+Q14(JNz}V>%_%%=du&!G79W!Tkd6Nql(hR)3xNQ*%Ox^e7qotRb^MQ3( zBG%~D3Q_sXy_83Fec=VcZho=ECS(bHFW1aUnGr3}(wk__X0uqU@(<7V`hj7c+oFg> z%>||8Ae;U`=ltJtT@q9s!AC`9b3?A9$J@p1!hTkq6M_wSd67c3``)m}Q1RerU;c#< zJQgZ5yR6=Z!V674r1@k${F^M>VWykdefc8{9k=HBY`U|n5?lQXBBgdE*Dxqi#>p=feIo;G0gFZ zR+r3z3UQ1&g@yP4f!+Iky`MOU<+gjiJu>r980@k=eRu>kY(Ge_t(_|L!IHf`%}`vs zpyqIJNW1LwPWwQBm)$=|m%TxEMvKWRTgoBpNuRoCSkaa|xW+aou&OO?VDRJh#Gu!y`>w88%M|3@W zT^(4P2A3NYCqjpX#D%XwmVL7tdRY{5|K3Gu&TWFJXeVD#Me6nC#xK5hahK!mU&BHo z-djgYF2{?=3kc#x8W=R9u8$aRNeDDDYNY$-X2a|HWm{0CN|&vRr)_www6v7eNlb0N z8^YFEJLNsKi4L#R^a5*tCT3rK^S627i&6DX{-*7*reCa7)eUnwb}>Nwz4PPU;Mj(1 z280=ik=4;Z_apC(&;unhq>?oo4HGm`>n zV%Jqh=f=m!b9`B{w?Gtr2=@2M3{DoG{M@YjPF|wDj$9d!P6IP)zskC#nN-^~gu3WR zfpB7MKO?Mk&S6MhGaP{?O%m7#9X}?}%X;i!M)|RKdckQ21o02uPU}aANODYj2MdEe zt#jUymYPrH`E;5zF5eC_%_hX4K_ohDkm_3*JHZXr)z#D93}CnrFHzd#pLg6v7gII{n6eOQNjBU>4`mAOkzyx9Dm8w zHOJSx0eRwGBPD|q52H7z@@*DOLC*=LR!RH0WSMDpKuQXXvFv+%)!nRvEz6nVe{%gX zGVtXXD}C_7oZEy6D4tu|bSp9-m`@{rEM#1FN`uz#X4rU<6#Gqa8sa?Abr3OncT0fRv{~DcmsIW}-tLpAd zwzc7js(u#aiOZy$D0L6H8se;jC!M@PmI&k z-L|k{SrYQ(3u=K;sEOmPgmO;CE%=^A zZioAQk3F&LeFm7|zn1Uwnvdu;nLK{vb@OTHjbmdUMPT61r(uBq)Q$&^7dZoiixN*4 z83>GO-$SETKSyTnE(sp<3F;&mNHKKt*!SmA8qZTU1;;Mg!4jOo{A*2zQS zfV1t?p8~;`+bjQa)#3_@3=&s=>K)*L06g4|OpX`z$}B$qa*B)`U|5y8c)cK`oGk+! zpAvaSa+E;=_gV)A;s%(VuO+5wHw|KNhJSem`JTS!P49*vVtx&>#4}Uc+Aw|oJaN}D zx&p_%owv_x`6UqYe3icD8^x7|>)saU+k=0VCQ^4`tV-z#i%WV|;ChM(#7-Ev==aw# zw-szP73hwHJKud|U zcpEyHdP4Es z*7uAtA`#Z&A~QQuZs-ztCX*febX!UzzaHw>#;VWOJ~!K7ZKC2r83UT7@uGqTWidbH z>dOxHxW4{heBrO|BicY!&ok1?)spa1G&NoM`LAug;vhGBr6GSB5JbL|AWH%d*_Q3J zFP{ag94tvTB_FY~`M871c9#@b=G<@Fc5SZQoHzCMssMzb`_Il;f6=Ne_hK+>bTucq zba)5VOr7dr%w)t*^vb)PK>ML9z&0c$FW+u!UmzowQ_pN*2!=|gNA?cEO#IE~Pw9MF zU`>lQX0<9blNxu=zh%|Q@rWLxEV~GC|6ts7^w+=2X)qfa8=pmhRx$EB1R?9NizWD9 z!v|j-wr$?!Y2KiPv4qx>S%`-N%))LxTan;if);(Gi8DN)SpSa-w0;Ch4v)!|qp$(L z`8G}yTlOG>Zw`OU#^(h6_Qn{MKTUbF$MI!IE=T;mxan@={A7zIIq<6J-*dirnMTl3 zQh_2yw-kt8Ou}L?9%?^W-@%;BCKMAnU#^A6(aBU)>V@<<(n(_tZ8Iv2nO(kwyK%DA zGhhE~{JZX>Aw=-(ygs^gBWgO+YYu&f<%V%IO))lLvprSt>W4QK>WM3m*N~i&62Q)6 zTR2(IEVr7O9UmCTDj9^v_#ikcqFp5X&V8<}@T|@<{Q8#Ix+>X@Z1=qHOm!2>jruI63D# zP@>7EA;U`Pm5)>`cS^ou!$@VTH#1LhLL36})pn`T`b()o`oo9In$MeGagFUbd1;XQ zO$iMcP8b*p_@2!9_$9G&;+SFOh3{|A&i)BxPv43-#tdCKKg-IP9Jh%G-_MPZ*_-Dx z{%lp2M?%@;boTqxt`QH6S_!mVi&p=)|LxiJ(3GwYnuuO79YMjiM;WWG!%Xk%%9D4l zTaQPZi!(g6q7;H?eLK566w3{6^B$n;W(__FuJR#Rf5nTQ{H1_7H`^=P|Cdorfmzob zttzZzapqpNGX@%6e7;X?E|_Sa1oe+1`Ii6~;pSm&*}|6BkyP-}MP?>&gin5m-XCoI zjPIY_NfT5skh|KkFEw?#xbs{YbTyXFUw2jdHfdYiUVeW&6?Ye&x_^(8GorsAvJn34 zJ~lmVS&Z|-6NPJ+*pxP|&{tZ0 z%&j!NS`{wJx%?pX5x9pS4H7buyyX7q^(RXHz7ReB>wCa{-bA$wZTbspXb9kgD0np&m3m3a1|b4Toi_qr1QJ?OPm6G1z|-yJ6Z1ksxy?Ih2aOIl=fHv6zxR0@mhs( zbJO{cKkfTmG{JWf{58Vdxn@&$9%+IdZeee!Hw|mO8DQo_QadLGdWKg+Z=cD%I~NUu zzY9$RkTdbqH>e=jxpY8K`gDjX*P@5HoBfmM+H1xP??&#-ONQA>mlfmu4uYLAl`**% z9N5^~rccCaljHntz6*8Vb89ZY%B>Y1VqCPJHigaGe!}j!kBpJsUj9?l2>cnJgSsDSA_5^Y`cBhJD!@=xR}WdnACijK049c4?W>!`kV! zobA*7S>d8j(-p}_{!FwTrT^ytU{H6cbQu}S|&ZO&QwH1MfEW@9MR^KAF zDdGD_Y(N|5$4F(q3e=*Ns;W*i;ll0C_}NpYxjf9%h%bMiqwK2Qj6{@{AikWSnS^a{z3U>)EieiUeS*Xd>h0gqB3$D%afcU zNCWxp2L!?W#?*-}FO0kWJ{)Yig;C3~IJQKZQ=uNX0c=D{59mDs&$_uV(h=*0$+yUv zcMA{TFN=q+xS228_Mx`_{ZGCJ`EBoS-CQ%ob-{0UB+#4@YR`4cpbs){oC)Gh>jH+^ z@BRyNLKcHfjN}m-K2y%HNX%q7w>nrx`ex|T3^0e@lJ=j6b<^O(Dd%ReO0o!|BYrjI zjV=A*ja4(`zkl2h39@L$W`={Vjp%<^V&VnX!rp(+kGTyZk>8d*PSJ&vlCDzVT<<`* z4gY#B028#>I$!?zs@^SLw{#X_R)(DL_v*G;YH|gI8jsTPz$zEmTmzs82p$Z1QUM`C^Ga84m$Jg0o+Apl9kHdk+XBFnwpqgGWSYWLrvw$K!AdN-vc-#QDj7g; zdPm`dyk&=pGnkTwfD=;a^mx?C+>^o0shtbqHUl{u6DLnkHY*TpCM)x?`v-X^*XRtC^@W3UJO?B_d(01jo(_|cxD9LfDhiaL@L|f z40scwe8GUKIBb6 z?8QZKQx^H*Aj-jdZ=S}|cjh`Za!yK+J=)a#Sr-vlRE{T49umcn(6&{Lc$1;v&^lsr zPNs-i(cO(kAjq-#DU>{6ZI|)#@)=mRe)J(-4eL*z;)_+;@U&(qTov0!Rf$(k>;ITkUtXI z1shY6i*KI}|L7EwEs2r=tN0Q`%rs2rvS}BbQS2b5!s2%8#JT`AdWS*+$4BF?$OSuE z3`xnHi^V3QzI~T@n1X`SgmnX@lqFBQWn3IK|Qq-UOcXCW$H4|uyERwN7iFbnjWNgBZgaMwq z=I3?z!<$^B=~r}UWn>~Kt5CHao@Re;ge~N#Zmx^esC>BW{vE&kUNBIx`Vjyi`P0ED zNg^x$<_*m3%UqZ2RrBbqCp+0S{NL@oPDG8i^J4W7={vB}ZE4{;{P=w;eEA#laN>Iu z)8O*=aO?=S-`7<3g+-VTbseDdhz4Dm#*%NWGc3Gd( z+4vPX_?RZB*GqbPU3}7!zng;=LV{F66alUb)rq)#oxjL767w0g&TsO&;z?@oky}kr zm=)V?Z~I$Z3CqJJdPCg70EkGR)*T~0Q?AQYJc$@`;|q)UD*xBl7+U=v)DEo7y%~M3 z!qb%)@+0*SraR*mC`}(+5w;mzAWw&^yFBt$^S5ciVGYD*BGu7Se7qr3hqD_jimsj; z{Ks1UJ$aSg)L>ml?Di|jN-j=L*3O=Ql8dvqwY#Ua6`PNp=WDkA`zA7*u7L`hrwbeS b>18&{{~6=X&+~@^1OTWiYr-oOEkgevOP^_R literal 0 HcmV?d00001 diff --git a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/favicon.ico b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/favicon.ico index c97ea36365336e56935d087a909cdfe9b576d320..c3c3af441dfc4cef6a53026e82786aca0aa05063 100644 GIT binary patch literal 5430 zcmcIoeQXnD7{3BC0S#Y9P1G7R2W(iN>p&2k$WS1-NC>nC2$-;T zFa-YqGUf*?4j9ph;MQF`U<2i!MGXYhz-BNJNX8Nj;NX0ISDtayuG{Kt^5l8%d4A9D zckkVM?>$#RFbMsGVZ#LSnZm*Wg7B;$2$`Aj<0^`WDfS%2Xh?{7oSYy~yr;kUjq-?s zNbn@tX^eYX$2jlqWktTafC`(nw`4BIyYsoZ#=%a>xYp^iR?qx;8n)&|L*n*1Q%sBPlJSULGEGRtIV~o;Lo)4|mnY2w7B#@As@yMHD&9~^ zMfK2n@gn)%(U4Tpl^xn3{SGW@P^+q{K`E7L5mQ3qhsSo=A53MyXjrO2EzUuf#|-pO zHh)W+H8@W70|r>sFs`V`cpuHViq2yNaZlrTqHhRGQ-J{%HJs=AbLE~4;y(hR~xwHuagUb#~hVyu1C2RW5jR_ z46wAWzQgrHeL*B}6YDI$a!I4h_^%U8&4nn;%h?=(EVyDs0&{3)yVzLMsYg?*58N~WoH(fG@RLeCA- zzs=`BYv5MS98bGlG&N@1%;r9jx`)DUH;QHk&Gi27UxsGgZGv_tE3aeafRk|$!Rezr2F1KSzT8# zhgHm@^Zv~tntrVgnib}S2DJ2b&7V#jLVNMGP7L0eWb5BH)$dKX>=my|2{qzwvSw5gHzZzyChNm1 zVe6!5snpI`I-fq>sJ#^?Ln=GK(G8EEcxR=&4pB zj;^~G9N@y7dZQ06>aF(Bxt~v5D~USEj+F}6{ivliwHNtx^kbo{Cuk1W=sZ>@(?}IV z4Qj!Wu0HBwAu$LZrCfSEm7YF_=QXY^205P2{85W*Ph1zszF@BIJbg=iPWTr6ee02a zsqdjzUe8f;{GK=U8r0{`)Yf9iYSYJ)jq#o#?b}LNnx)T!6WqC^p^x*J`sP=u_in%Q zPVYcZ$2oYqpGS%J2mUtF=Xi`9J#XIw%Q1Lx5ifCS{e3&M^!cJw@?h%UE^|M@-XC4t z*-OwfG!FZS60*$I*XqagtiAyZup9>m^RcII=S$FJ%xpy-%Q?NL?}^2XfhX;q#Qz7r zBlU4Dx6SncU7w3I_g(rNIP{!6h9=`?H*Xr^iv<4S9Q#S{Oxy2pIEFLs_$Ri9iT`RW zEN$c%d&H1Cu~~YAW9VPpi}GujuhWwjG#Ll)j|ASLympU(n_juBiTb(AFo$Gb#Qg{L z5AW0ZzOL_Mj+Qx|LM$2{uhBR8^vzYe9uzf_gZgxdxOXKN40D|!@BJE$>!7i-$8Hq(!tVo@9bw-AF*_} z(y5_mU@7Z%dWxmPl}?TJ-&j}*(41Q|qcLJ>aa|v!s%&jEKA%BU2DN2qn>#wHqrV*g zd%*x7Q`L3nRW(Di;O&f-><%}qb=37H&C0Ge#hO~z$xW>WxwXk4&u=tDhkw++#UQ)E Nsd2Xry{kvM{{T}t+7ti) literal 1150 zcmZQzU<5(|0R|wcz>vYhz#zuJz@P!dKp~(AL>x#lFaYI90nvLK>ZA77J&WE~Uq^~Q zkXlJ`QNf7q)$b$s)cud#QS(kxOpKQpGuYYLn5-=ggKf-Aj`_AHOo`lEf5o>arN`RL zWQVPlr8_%2J0rR|$0qwb9q2LZn^kF)Xlr4TVP|eyWTvhzg{;orPFd8}$|TL!+_ZUr zmqjp0{jtdbP9Qb=d(0jK@&8?&W`Cv^njM%?XuhT;L2U^-o>5}9YI?ER-d$a0e?aO% z`at>*_ggO5-DUO@XyzFZpAZ141FHYMr^|c^NNsh9mUL>M$?R=yW(RjJ^47(tf9GN^ z9iY1X$w8)5K>9#xxi~q5Y%EMFSJqqjAL_SU>0ltrip>mrJwcX3eP+wnHd*+A)N^ri z3L)zU^2HAHm``g>QuD*6za>%4XMeBR6p%V({Q*_M(ynnH6YMh`CpZIQ?1}23wmOpO{@{b{ZJhZ`U@Mp91PT zW@};`$j-*bgsdJHTT)y^2$&w<_$poFM)JDE;avwGXLxu v82-pJFx>yjz|a6x*#Cop;rveqhVS1Y`1W6jSnmx6hHG0PYC(Gb0rdg^;{*fP diff --git a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/index.html b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/index.html new file mode 100644 index 00000000..805b6f68 --- /dev/null +++ b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/index.html @@ -0,0 +1,55 @@ + + + + + + Altair + + + + + + + + + + +
+
+
+ Altair +
+
+ + + +
+
+
+
+ + + + + + + diff --git a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/main.js b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/main.js index cab001d8..b3f5b1fa 100644 --- a/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/main.js +++ b/altair-spring-boot-autoconfigure/src/main/resources/static/vendor/altair/main.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+dQi":function(e,t,n){!function(e){"use strict";e.defineMode("javascript",function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,l=n.jsonld,s=n.json||l,u=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function f(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(l&&"@"==e.peek()&&e.match(h))return t.tokenize=g,f("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),f("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return f("number","number");if("."==r&&e.match(".."))return f("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return f(r);if("="==r&&e.eat(">"))return f("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return f("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),f("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),f("comment","comment")):We(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f("regexp","string-2")):(e.eat("="),f("operator","operator",e.current()));if("`"==r)return t.tokenize=m,m(e,t);if("#"==r)return e.skipToEnd(),f("error","error");if(d.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),f("operator","operator",e.current());if(c.test(r)){e.eatWhile(c);var i=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(i)){var o=p[i];return f(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return f("async","keyword",i)}return f("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return f("comment","comment")}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return f("quasi","string-2",e.current())}var y="([{}])";function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var l=e.string.charAt(a),s=y.indexOf(l);if(s>=0&&s<3){if(!i){++a;break}if(0==--i){"("==l&&(o=!0);break}}else if(s>=3&&s<6)++i;else if(c.test(l))o=!0;else{if(/["'\/]/.test(l))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function _(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var E={state:null,column:null,marked:null,cc:null};function A(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function S(){return A.apply(null,arguments),!0}function D(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function T(e){var t=E.state;if(E.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,n){if(n){if(n.block){var r=e(t,n.prev);return r?r==n.prev?n:new O(r,n.vars,!0):null}return D(t,n.vars)?n:new O(n.prev,new L(t,n.vars),!1)}return null}(e,t.context);if(null!=r)return void(t.context=r)}else if(!D(e,t.localVars))return void(t.localVars=new L(e,t.localVars));n.globalVars&&!D(e,t.globalVars)&&(t.globalVars=new L(e,t.globalVars))}function x(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,n){this.prev=e,this.vars=t,this.block=n}function L(e,t){this.name=e,this.next=t}var M=new L("this",new L("arguments",null));function I(){E.state.context=new O(E.state.context,E.state.localVars,!1),E.state.localVars=M}function V(){E.state.context=new O(E.state.context,E.state.localVars,!0),E.state.localVars=null}function k(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function N(e,t){var n=function(){var n=E.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function F(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function H(e){return function t(n){return n==e?S():";"==e||"}"==n||")"==n||"]"==n?A():S(t)}}function j(e,t){return"var"==e?S(N("vardef",t),ye,H(";"),F):"keyword a"==e?S(N("form"),B,j,F):"keyword b"==e?S(N("form"),j,F):"keyword d"==e?E.stream.match(/^\s*$/,!1)?S():S(N("stat"),G,H(";"),F):"debugger"==e?S(H(";")):"{"==e?S(N("}"),V,ae,F,k):";"==e?S():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==F&&E.state.cc.pop()(),S(N("form"),B,j,F,Ae)):"function"==e?S(Le):"for"==e?S(N("form"),Se,j,F):"class"==e||u&&"interface"==t?(E.marked="keyword",S(N("form"),Ve,F)):"variable"==e?u&&"declare"==t?(E.marked="keyword",S(j)):u&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?S(qe):"type"==t?S(ce,H("operator"),ce,H(";")):S(N("form"),be,H("{"),N("}"),ae,F,F)):u&&"namespace"==t?(E.marked="keyword",S(N("form"),P,ae,F)):u&&"abstract"==t?(E.marked="keyword",S(j)):S(N("stat"),J):"switch"==e?S(N("form"),B,H("{"),N("}","switch"),V,ae,F,F,k):"case"==e?S(P,H(":")):"default"==e?S(H(":")):"catch"==e?S(N("form"),I,R,j,F,k):"export"==e?S(N("stat"),He,F):"import"==e?S(N("stat"),Re,F):"async"==e?S(j):"@"==t?S(P,j):A(N("stat"),P,H(";"),F)}function R(e){if("("==e)return S(Me,H(")"))}function P(e,t){return U(e,t,!1)}function Z(e,t){return U(e,t,!0)}function B(e){return"("!=e?A():S(N(")"),P,H(")"),F)}function U(e,t,n){if(E.state.fatArrowAt==E.stream.start){var r=n?$:Q;if("("==e)return S(I,N(")"),ie(Me,")"),F,H("=>"),r,k);if("variable"==e)return A(I,be,H("=>"),r,k)}var i=n?z:q;return C.hasOwnProperty(e)?S(i):"function"==e?S(Le,i):"class"==e||u&&"interface"==t?(E.marked="keyword",S(N("form"),Ie,F)):"keyword c"==e||"async"==e?S(n?Z:P):"("==e?S(N(")"),G,H(")"),F,i):"operator"==e||"spread"==e?S(n?Z:P):"["==e?S(N("]"),Ge,F,i):"{"==e?oe(te,"}",null,i):"quasi"==e?A(W,i):"new"==e?S(function(e){return function(t){return"."==t?S(e?X:Y):"variable"==t&&u?S(ge,e?z:q):A(e?Z:P)}}(n)):"import"==e?S(P):S()}function G(e){return e.match(/[;\}\)\],]/)?A():A(P)}function q(e,t){return","==e?S(P):z(e,t,!1)}function z(e,t,n){var r=0==n?q:z,i=0==n?P:Z;return"=>"==e?S(I,n?$:Q,k):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?S(r):u&&"<"==t&&E.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?S(N(">"),ie(ce,">"),F,r):"?"==t?S(P,H(":"),i):S(i):"quasi"==e?A(W,r):";"!=e?"("==e?oe(Z,")","call",r):"."==e?S(ee,r):"["==e?S(N("]"),G,H("]"),F,r):u&&"as"==t?(E.marked="keyword",S(ce,r)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),S(i)):void 0:void 0}function W(e,t){return"quasi"!=e?A():"${"!=t.slice(t.length-2)?S(W):S(P,K)}function K(e){if("}"==e)return E.marked="string-2",E.state.tokenize=m,S(W)}function Q(e){return b(E.stream,E.state),A("{"==e?j:P)}function $(e){return b(E.stream,E.state),A("{"==e?j:Z)}function Y(e,t){if("target"==t)return E.marked="keyword",S(q)}function X(e,t){if("target"==t)return E.marked="keyword",S(z)}function J(e){return":"==e?S(F,j):A(q,H(";"),F)}function ee(e){if("variable"==e)return E.marked="property",S()}function te(e,t){return"async"==e?(E.marked="property",S(te)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?S(ne):(u&&E.state.fatArrowAt==E.stream.start&&(n=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+n[0].length),S(re))):"number"==e||"string"==e?(E.marked=l?"property":E.style+" property",S(re)):"jsonld-keyword"==e?S(re):u&&x(t)?(E.marked="keyword",S(te)):"["==e?S(P,le,H("]"),re):"spread"==e?S(Z,re):"*"==t?(E.marked="keyword",S(te)):":"==e?A(re):void 0;var n}function ne(e){return"variable"!=e?A(re):(E.marked="property",S(Le))}function re(e){return":"==e?S(Z):"("==e?A(Le):void 0}function ie(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=E.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),S(function(n,r){return n==t||r==t?A():A(e)},r)}return i==t||o==t?S():S(H(t))}return function(n,i){return n==t||i==t?S():A(e,r)}}function oe(e,t,n){for(var r=3;r"),ce):void 0}function pe(e){if("=>"==e)return S(ce)}function de(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",S(de)):"?"==t?S(de):":"==e?S(ce):"["==e?S(P,le,H("]"),de):void 0}function he(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?S(he):":"==e?S(ce):A(ce)}function fe(e,t){return"<"==t?S(N(">"),ie(ce,">"),F,fe):"|"==t||"."==e||"&"==t?S(ce):"["==e?S(H("]"),fe):"extends"==t||"implements"==t?(E.marked="keyword",S(ce)):void 0}function ge(e,t){if("<"==t)return S(N(">"),ie(ce,">"),F,fe)}function ve(){return A(ce,me)}function me(e,t){if("="==t)return S(ce)}function ye(e,t){return"enum"==t?(E.marked="keyword",S(qe)):A(be,le,_e,Ee)}function be(e,t){return u&&x(t)?(E.marked="keyword",S(be)):"variable"==e?(T(t),S()):"spread"==e?S(be):"["==e?oe(we,"]"):"{"==e?oe(Ce,"}"):void 0}function Ce(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?S(be):"}"==e?A():S(H(":"),be,_e)):(T(t),S(_e))}function we(){return A(be,_e)}function _e(e,t){if("="==t)return S(Z)}function Ee(e){if(","==e)return S(ye)}function Ae(e,t){if("keyword b"==e&&"else"==t)return S(N("form","else"),j,F)}function Se(e,t){return"await"==t?S(Se):"("==e?S(N(")"),De,H(")"),F):void 0}function De(e){return"var"==e?S(ye,H(";"),xe):";"==e?S(xe):"variable"==e?S(Te):A(P,H(";"),xe)}function Te(e,t){return"in"==t||"of"==t?(E.marked="keyword",S(P)):S(q,xe)}function xe(e,t){return";"==e?S(Oe):"in"==t||"of"==t?(E.marked="keyword",S(P)):A(P,H(";"),Oe)}function Oe(e){")"!=e&&S(P)}function Le(e,t){return"*"==t?(E.marked="keyword",S(Le)):"variable"==e?(T(t),S(Le)):"("==e?S(I,N(")"),ie(Me,")"),F,se,j,k):u&&"<"==t?S(N(">"),ie(ve,">"),F,Le):void 0}function Me(e,t){return"@"==t&&S(P,Me),"spread"==e?S(Me):u&&x(t)?(E.marked="keyword",S(Me)):A(be,le,_e)}function Ie(e,t){return"variable"==e?Ve(e,t):ke(e,t)}function Ve(e,t){if("variable"==e)return T(t),S(ke)}function ke(e,t){return"<"==t?S(N(">"),ie(ve,">"),F,ke):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(E.marked="keyword"),S(u?ce:P,ke)):"{"==e?S(N("}"),Ne,F):void 0}function Ne(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&x(t))&&E.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",S(Ne)):"variable"==e||"keyword"==E.style?(E.marked="property",S(u?Fe:Le,Ne)):"["==e?S(P,le,H("]"),u?Fe:Le,Ne):"*"==t?(E.marked="keyword",S(Ne)):";"==e?S(Ne):"}"==e?S():"@"==t?S(P,Ne):void 0}function Fe(e,t){return"?"==t?S(Fe):":"==e?S(ce,_e):"="==t?S(Z):A(Le)}function He(e,t){return"*"==t?(E.marked="keyword",S(Ue,H(";"))):"default"==t?(E.marked="keyword",S(P,H(";"))):"{"==e?S(ie(je,"}"),Ue,H(";")):A(j)}function je(e,t){return"as"==t?(E.marked="keyword",S(H("variable"))):"variable"==e?A(Z,je):void 0}function Re(e){return"string"==e?S():"("==e?A(P):A(Pe,Ze,Ue)}function Pe(e,t){return"{"==e?oe(Pe,"}"):("variable"==e&&T(t),"*"==t&&(E.marked="keyword"),S(Be))}function Ze(e){if(","==e)return S(Pe,Ze)}function Be(e,t){if("as"==t)return E.marked="keyword",S(Pe)}function Ue(e,t){if("from"==t)return E.marked="keyword",S(P)}function Ge(e){return"]"==e?S():A(ie(Z,"]"))}function qe(){return A(N("form"),be,H("{"),N("}"),ie(ze,"}"),F,F)}function ze(){return A(be,_e)}function We(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return k.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new O(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(e,t,n,r,i){var o=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=o,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?P:j)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return E.marked?E.marked:"variable"==n&&_(e,r)?"variable-2":t}}(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v)return e.Pass;if(t.tokenize!=g)return 0;var i,l=r&&r.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==F)s=s.prev;else if(c!=Ae)break}for(;("stat"==s.type||"form"==s.type)&&("}"==l||(i=t.cc[t.cc.length-1])&&(i==q||i==z)&&!/^[,\.=+\-*:?[\(]/.test(r));)s=s.prev;a&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var p=s.type,h=l==p;return"vardef"==p?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==p&&"{"==l?s.indented:"form"==p?s.indented+o:"stat"==p?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=s.info||h||0==n.doubleIndentSwitch?s.align?s.column+(h?0:1):s.indented+(h?0:o):s.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:l,jsonMode:s,expressionAllowed:We,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=P&&t!=Z||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("VrN/"))},"+gEr":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return l});var r=n("mrSG"),i=n("MGBS"),o=n("zotm"),a={leading:!0,trailing:!1};function l(e,t){return void 0===t&&(t=a),function(n){return n.lift(new s(e,t.leading,t.trailing))}}var s=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector,this.leading,this.trailing))},e}(),u=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.c(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._sendValue;this._hasValue&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(o.a)(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,r,i){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(i.a)},"+tJ4":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n=0}},"/C/i":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("dWS+");function i(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new r.a(function(e){return'There can be only one argument named "'.concat(e,'".')}(i),[t[i],n.name])):t[i]=n.name,!1}}}},"/PH2":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function a(){for(var e=[],t=0;t0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(i.a)},"/WYv":function(e,t,n){"use strict";function r(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},"/jXB":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},"/kEc":function(e,t,n){"use strict";function r(e){return void 0===e||e!=e}n.d(t,"a",function(){return r})},0:function(e,t,n){e.exports=n("zUnb")},"0/uQ":function(e,t,n){"use strict";var r=n("6blF"),i=n("/WYv"),o=n("2ePl"),a=n("xTla"),l=n("En8+"),s=n("IUTb"),u=n("pugT"),c=n("S5XQ"),p=n("u67D"),d=n("JcRv"),h=n("Fxb1");function f(e,t){if(!t)return e instanceof r.a?e:new r.a(Object(h.a)(e));if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return new r.a(t?function(n){var r=new u.a;return r.add(t.schedule(function(){var i=e[a.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r}:Object(d.a)(e))}(e,t);if(Object(i.a)(e))return function(e,t){return new r.a(t?function(n){var r=new u.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r}:Object(c.a)(e))}(e,t);if(Object(o.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(t?function(n){var r,i=new u.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[l.a](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),i}:Object(p.a)(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}n.d(t,"a",function(){return f})},"07Hx":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEVERITY=void 0,t.getDiagnostics=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],r=arguments[3],i=null;try{i=(0,o.parse)(e)}catch(l){var a=d(l.locations[0],e);return[{severity:s.ERROR,message:l.message,source:"GraphQL: Syntax",range:a}]}return u(i,t,n,r)},t.validateQuery=u,t.getRange=d;var r,i=(r=n("9lTW"))&&r.__esModule?r:{default:r},o=n("Tzvz"),a=n("Oepb"),l=n("OZIm"),s=t.SEVERITY={ERROR:1,WARNING:2,INFORMATION:3,HINT:4};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return[];var n=c((0,l.validateWithCustomRules)(t,e,arguments[2],arguments[3]),function(e){return p(e,s.ERROR,"Validation")}),r=o.findDeprecatedUsages?c((0,o.findDeprecatedUsages)(t,e),function(e){return p(e,s.WARNING,"Deprecation")}):[];return n.concat(r)}function c(e,t){return Array.prototype.concat.apply([],e.map(t))}function p(e,t,n){return e.nodes?e.nodes.map(function(r){var o="Variable"!==r.kind&&r.name?r.name:r.variable?r.variable:r;(0,i.default)(e.locations,"GraphQL validation error requires locations.");var a,s=e.locations[0],u=((0,i.default)(a=o.loc,"Expected ASTNode to have a location."),a),c=s.column+(u.end-u.start);return{source:"GraphQL: "+n,message:e.message,severity:t,range:new l.Range(new l.Position(s.line-1,s.column-1),new l.Position(s.line-1,c))}}):[]}function d(e,t){var n=(0,a.onlineParser)(),r=n.startState(),o=t.split("\n");(0,i.default)(o.length>=e.line,"Query text must have more lines than where the error happened");for(var s=null,u=0;uthis.total&&this.destination.next(e)},t}(i.a)},"0xor":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("dWS+"),i=n("dQau"),o=n("axIb"),a=n("umOc");function l(e){return{VariableDefinition:function(t){var n=Object(a.a)(e.getSchema(),t.type);n&&!Object(o.F)(n)&&e.reportError(new r.a(function(e,t){return'Variable "$'.concat(e,'" cannot be non-input type "').concat(t,'".')}(t.variable.name.value,Object(i.print)(t.type)),[t.type]))}}}},"10sW":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("dWS+"),i=n("T95z"),o=n("Ei2f");function a(e){return{ObjectTypeDefinition:function(){return!1},InterfaceTypeDefinition:function(){return!1},UnionTypeDefinition:function(){return!1},InputObjectTypeDefinition:function(){return!1},NamedType:function(t){var n=e.getSchema(),a=t.name.value;n.getType(a)||e.reportError(new r.a(function(e,t){var n='Unknown type "'.concat(e,'".');return t.length&&(n+=" Did you mean ".concat(Object(o.a)(t),"?")),n}(a,Object(i.a)(a,Object.keys(n.getTypeMap()))),[t]))}}}},"15JJ":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),a=n("zotm"),l=n("67Y/"),s=n("0/uQ");function u(e,t){return"function"==typeof t?function(n){return n.pipe(u(function(n,r){return Object(s.a)(e(n,r)).pipe(Object(l.a)(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.project))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.c(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Object(a.a)(this,e,t,n,i)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t}(i.a)},"19Hc":function(e,t,n){"use strict";var r=n("rWdj"),i=Number.isFinite||function(e){return"number"==typeof e&&i(e)},o=i,a=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},l=n("axIb"),s=n("/jXB");n.d(t,"d",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"e",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return g});var u=new l.g({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!a(t))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(r.a)(e)));if(t>2147483647||t<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(r.a)(e)));return t},parseValue:function(e){if(!a(e))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(r.a)(e)));if(e>2147483647||e<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(r.a)(e)));return e},parseLiteral:function(e){if(e.kind===s.a.INT){var t=parseInt(e.value,10);if(t<=2147483647&&t>=-2147483648)return t}}}),c=new l.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!o(t))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(r.a)(e)));return t},parseValue:function(e){if(!o(e))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(r.a)(e)));return e},parseLiteral:function(e){return e.kind===s.a.FLOAT||e.kind===s.a.INT?parseFloat(e.value):void 0}}),p=new l.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=e&&"function"==typeof e.valueOf?e.valueOf():e;if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(o(t))return t.toString();throw new TypeError("String cannot represent value: ".concat(Object(r.a)(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat(Object(r.a)(e)));return e},parseLiteral:function(e){return e.kind===s.a.STRING?e.value:void 0}}),d=new l.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if(o(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(r.a)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(r.a)(e)));return e},parseLiteral:function(e){return e.kind===s.a.BOOLEAN?e.value:void 0}}),h=new l.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=e&&"function"==typeof e.valueOf?e.valueOf():e;if("string"==typeof t)return t;if(a(t))return String(t);throw new TypeError("ID cannot represent value: ".concat(Object(r.a)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(a(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat(Object(r.a)(e)))},parseLiteral:function(e){return e.kind===s.a.STRING||e.kind===s.a.INT?e.value:void 0}}),f=[p,u,c,d,h];function g(e){return Object(l.J)(e)&&(e.name===p.name||e.name===u.name||e.name===c.name||e.name===d.name||e.name===h.name)}},"1MZE":function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n("EkS5"),i=n("rWdj"),o=n("/kEc"),a=n("7AeT"),l=n("T95z"),s=n("dWS+"),u=n("axIb");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t,n,s){if(Object(u.K)(t))return null==e?h([v("Expected non-nullable type ".concat(Object(i.a)(t)," not to be null"),n,s)]):p(e,t.ofType,n,s);if(null==e)return d(null);if(Object(u.Q)(t))try{var b=t.parseValue(e);return Object(o.a)(b)?h([v("Expected type ".concat(t.name),n,s)]):d(b)}catch(H){return h([v("Expected type ".concat(t.name),n,s,H.message,H)])}if(Object(u.D)(t)){if("string"==typeof e){var C=t.getValue(e);if(C)return d(C.value)}var w=Object(l.a)(String(e),t.getValues().map(function(e){return e.name})),_=0!==w.length?"did you mean ".concat(Object(a.a)(w),"?"):void 0;return h([v("Expected type ".concat(t.name),n,s,_)])}if(Object(u.I)(t)){var E=t.ofType;if(Object(r.e)(e)){var A,S=[];return Object(r.b)(e,function(e,t){var r=p(e,E,n,g(s,t));r.errors?A=f(A,r.errors):A||S.push(r.value)}),A?h(A):d(S)}var D=p(e,E,n);return D.errors?D:d([D.value])}if(Object(u.E)(t)){if("object"!==c(e))return h([v("Expected type ".concat(t.name," to be an object"),n,s)]);var T,x={},O=t.getFields();for(var L in O)if(y.call(O,L)){var M=O[L],I=e[L];if(Object(o.a)(I))Object(o.a)(M.defaultValue)?Object(u.K)(M.type)&&(T=f(T,v("Field ".concat(m(g(s,L))," of required ")+"type ".concat(Object(i.a)(M.type)," was not provided"),n))):x[L]=M.defaultValue;else{var V=p(I,M.type,n,g(s,L));V.errors?T=f(T,V.errors):T||(x[L]=V.value)}}for(var k in e)if(y.call(e,k)&&!O[k]){var N=Object(l.a)(k,Object.keys(O)),F=0!==N.length?"did you mean ".concat(Object(a.a)(N),"?"):void 0;T=f(T,v('Field "'.concat(k,'" is not defined by type ').concat(t.name),n,s,F))}return T?h(T):d(x)}throw new Error("Unexpected type: ".concat(t,"."))}function d(e){return{errors:void 0,value:e}}function h(e){return{errors:e,value:void 0}}function f(e,t){return(e||[]).concat(t)}function g(e,t){return{prev:e,key:t}}function v(e,t,n,r,i){var o=m(n);return new s.a(e+(o?" at "+o:"")+(r?"; "+r:"."),t,void 0,void 0,void 0,i)}function m(e){for(var t="",n=e;n;)t=("string"==typeof n.key?"."+n.key:"["+String(n.key)+"]")+t,n=n.prev;return t?"value"+t:""}var y=Object.prototype.hasOwnProperty},"1RNg":function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/clr-icons/index.ts")}({"./src/clr-icons/clr-icons-api.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/clr-icons/utils/shape-template-observer.ts"),i={};t.ClarityIconsApi=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return e.singleInstance||(e.singleInstance=new e),e.singleInstance},enumerable:!0,configurable:!0}),e.prototype.validateName=function(e){if(0===e.length)throw new Error("Shape name or alias must be a non-empty string!");if(/\s/.test(e))throw new Error("Shape name or alias must not contain any whitespace characters!");return!0},e.prototype.setIconTemplate=function(e,t){var n=t.trim();this.validateName(e)&&(i[e]&&delete i[e],i[e]=n,r.ShapeTemplateObserver.instance.emitChanges(e,n))},e.prototype.setIconAliases=function(e,t,n){for(var r=0,i=n;r\n '),t.ClrShapeHome=i.clrIconSVG('\n \n \n '),t.ClrShapeCog=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeCheck=i.clrIconSVG(''),t.ClrShapeTimes=i.clrIconSVG(''),t.ClrShapeExclamationTriangle=i.clrIconSVG('\n \n \n '),t.ClrShapeExclamationCircle=i.clrIconSVG('\n \n \n '),t.ClrShapeCheckCircle=i.clrIconSVG('\n \n '),t.ClrShapeInfoCircle=i.clrIconSVG('\n \n \n '),t.ClrShapeInfoStandard=i.clrIconSVG('\n \n \n '),t.ClrShapeSuccessStandard=i.clrIconSVG('\n \n '),t.ClrShapeErrorStandard=i.clrIconSVG('\n \n \n '),t.ClrShapeWarningStandard=i.clrIconSVG('\n \n \n '),t.ClrShapeHelpInfo=i.clrIconSVG('\n \n \n \n '),t.ClrShapeBars=i.clrIconSVG('\n \n '),t.ClrShapeUser=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeAngle=i.clrIconSVG(''),t.ClrShapeFolder=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeFolderOpen=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeBell=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeImage=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeCloud=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeEllipsisHorizontal=i.clrIconSVG('\n \n \n \n \n \n '),t.ClrShapeEllipsisVertical=i.clrIconSVG('\n \n \n \n \n \n '),t.ClrShapeFilterGrid=i.clrIconSVG('\n '),t.ClrShapeFilterGridCircle=i.clrIconSVG('\n \n \n '),t.ClrShapeVmBug=i.clrIconSVG('\n '),t.ClrShapeSearch=i.clrIconSVG('\n '),t.ClrShapeViewColumns=i.clrIconSVG(''),t.ClrShapeAngleDouble=i.clrIconSVG('\n '),t.ClrShapeCalendar=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeEvent=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeEye=i.clrIconSVG('\n \n \n '),t.ClrShapeEyeHide=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeStepForward2=i.clrIconSVG(''),t.CoreShapes={"unknown-status":t.ClrShapeUnknownStatus,home:t.ClrShapeHome,cog:t.ClrShapeCog,check:t.ClrShapeCheck,times:t.ClrShapeTimes,"exclamation-triangle":t.ClrShapeExclamationTriangle,"exclamation-circle":t.ClrShapeExclamationCircle,"check-circle":t.ClrShapeCheckCircle,"info-circle":t.ClrShapeInfoCircle,"info-standard":t.ClrShapeInfoStandard,"success-standard":t.ClrShapeSuccessStandard,"error-standard":t.ClrShapeErrorStandard,"warning-standard":t.ClrShapeWarningStandard,"help-info":t.ClrShapeHelpInfo,bars:t.ClrShapeBars,user:t.ClrShapeUser,angle:t.ClrShapeAngle,folder:t.ClrShapeFolder,"folder-open":t.ClrShapeFolderOpen,bell:t.ClrShapeBell,image:t.ClrShapeImage,cloud:t.ClrShapeCloud,"ellipsis-horizontal":t.ClrShapeEllipsisHorizontal,"ellipsis-vertical":t.ClrShapeEllipsisVertical,"filter-grid":t.ClrShapeFilterGrid,"filter-grid-circle":t.ClrShapeFilterGridCircle,"vm-bug":t.ClrShapeVmBug,search:t.ClrShapeSearch,"view-columns":t.ClrShapeViewColumns,"angle-double":t.ClrShapeAngleDouble,calendar:t.ClrShapeCalendar,event:t.ClrShapeEvent,eye:t.ClrShapeEye,"eye-hide":t.ClrShapeEyeHide,"step-forward-2":t.ClrShapeStepForward2},Object.defineProperty(t.CoreShapes,"house",r.descriptorConfig(t.CoreShapes.home)),Object.defineProperty(t.CoreShapes,"settings",r.descriptorConfig(t.CoreShapes.cog)),Object.defineProperty(t.CoreShapes,"success",r.descriptorConfig(t.CoreShapes.check)),Object.defineProperty(t.CoreShapes,"close",r.descriptorConfig(t.CoreShapes.times)),Object.defineProperty(t.CoreShapes,"warning",r.descriptorConfig(t.CoreShapes["exclamation-triangle"])),Object.defineProperty(t.CoreShapes,"error",r.descriptorConfig(t.CoreShapes["exclamation-circle"])),Object.defineProperty(t.CoreShapes,"info",r.descriptorConfig(t.CoreShapes["info-circle"])),Object.defineProperty(t.CoreShapes,"menu",r.descriptorConfig(t.CoreShapes.bars)),Object.defineProperty(t.CoreShapes,"avatar",r.descriptorConfig(t.CoreShapes.user)),Object.defineProperty(t.CoreShapes,"caret",r.descriptorConfig(t.CoreShapes.angle)),Object.defineProperty(t.CoreShapes,"directory",r.descriptorConfig(t.CoreShapes.folder)),Object.defineProperty(t.CoreShapes,"notification",r.descriptorConfig(t.CoreShapes.bell)),Object.defineProperty(t.CoreShapes,"collapse",r.descriptorConfig(t.CoreShapes["angle-double"]))},"./src/clr-icons/utils/descriptor-config.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.descriptorConfig=function(e){return{enumerable:!0,writable:!0,configurable:!0,value:e}}},"./src/clr-icons/utils/shape-template-observer.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeHandlerCallbacks={},t.ShapeTemplateObserver=function(){function e(){this.callbacks=t.changeHandlerCallbacks}return Object.defineProperty(e,"instance",{get:function(){return e.singleInstance||(e.singleInstance=new e),e.singleInstance},enumerable:!0,configurable:!0}),e.prototype.subscribeTo=function(e,t){var n=this;return this.callbacks[e]?-1===this.callbacks[e].indexOf(t)&&this.callbacks[e].push(t):this.callbacks[e]=[t],function(){var r=n.callbacks[e].indexOf(t);n.callbacks[e].splice(r,1),0===n.callbacks[e].length&&delete n.callbacks[e]}},e.prototype.emitChanges=function(e,t){this.callbacks[e]&&this.callbacks[e].map(function(e){e(t)})},e}()},"./src/clr-icons/utils/svg-tag-generator.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clrIconSVG=function(e){var t="";return e.indexOf("--badged")>-1&&(t+="can-badge "),e.indexOf("--alerted")>-1&&(t+="can-alert "),e.indexOf("clr-i-solid")>-1&&(t+="has-solid "),(t?''),t.ClrShapeEvent=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeEye=i.clrIconSVG('\n \n \n '),t.ClrShapeEyeHide=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeStepForward2=i.clrIconSVG(''),t.CoreShapes={"unknown-status":t.ClrShapeUnknownStatus,home:t.ClrShapeHome,cog:t.ClrShapeCog,check:t.ClrShapeCheck,times:t.ClrShapeTimes,"exclamation-triangle":t.ClrShapeExclamationTriangle,"exclamation-circle":t.ClrShapeExclamationCircle,"check-circle":t.ClrShapeCheckCircle,"info-circle":t.ClrShapeInfoCircle,"info-standard":t.ClrShapeInfoStandard,"success-standard":t.ClrShapeSuccessStandard,"error-standard":t.ClrShapeErrorStandard,"warning-standard":t.ClrShapeWarningStandard,"help-info":t.ClrShapeHelpInfo,bars:t.ClrShapeBars,user:t.ClrShapeUser,angle:t.ClrShapeAngle,folder:t.ClrShapeFolder,"folder-open":t.ClrShapeFolderOpen,bell:t.ClrShapeBell,image:t.ClrShapeImage,cloud:t.ClrShapeCloud,"ellipsis-horizontal":t.ClrShapeEllipsisHorizontal,"ellipsis-vertical":t.ClrShapeEllipsisVertical,"filter-grid":t.ClrShapeFilterGrid,"filter-grid-circle":t.ClrShapeFilterGridCircle,"vm-bug":t.ClrShapeVmBug,search:t.ClrShapeSearch,"view-columns":t.ClrShapeViewColumns,"angle-double":t.ClrShapeAngleDouble,calendar:t.ClrShapeCalendar,event:t.ClrShapeEvent,eye:t.ClrShapeEye,"eye-hide":t.ClrShapeEyeHide,"step-forward-2":t.ClrShapeStepForward2},Object.defineProperty(t.CoreShapes,"house",r.descriptorConfig(t.CoreShapes.home)),Object.defineProperty(t.CoreShapes,"settings",r.descriptorConfig(t.CoreShapes.cog)),Object.defineProperty(t.CoreShapes,"success",r.descriptorConfig(t.CoreShapes.check)),Object.defineProperty(t.CoreShapes,"close",r.descriptorConfig(t.CoreShapes.times)),Object.defineProperty(t.CoreShapes,"warning",r.descriptorConfig(t.CoreShapes["exclamation-triangle"])),Object.defineProperty(t.CoreShapes,"error",r.descriptorConfig(t.CoreShapes["exclamation-circle"])),Object.defineProperty(t.CoreShapes,"info",r.descriptorConfig(t.CoreShapes["info-circle"])),Object.defineProperty(t.CoreShapes,"menu",r.descriptorConfig(t.CoreShapes.bars)),Object.defineProperty(t.CoreShapes,"avatar",r.descriptorConfig(t.CoreShapes.user)),Object.defineProperty(t.CoreShapes,"caret",r.descriptorConfig(t.CoreShapes.angle)),Object.defineProperty(t.CoreShapes,"directory",r.descriptorConfig(t.CoreShapes.folder)),Object.defineProperty(t.CoreShapes,"notification",r.descriptorConfig(t.CoreShapes.bell)),Object.defineProperty(t.CoreShapes,"collapse",r.descriptorConfig(t.CoreShapes["angle-double"]))},"./src/clr-icons/shapes/essential-shapes.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/clr-icons/utils/descriptor-config.ts"),i=n("./src/clr-icons/utils/svg-tag-generator.ts"),o=n("./src/clr-icons/shapes/core-shapes.ts");t.ClrShapeAddText=i.clrIconSVG('\n \n \n '),t.ClrShapePinboard=i.clrIconSVG('\n \n \n \n '),t.ClrShapeAlarmOff=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeNew=i.clrIconSVG('\n \n \n \n '),t.ClrShapeBubbleExclamation=i.clrIconSVG('\n \n \n '),t.ClrShapeGridView=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeCursorArrow=i.clrIconSVG('\n '),t.ClrShapeCursorHand=i.clrIconSVG('\n '),t.ClrShapeCursorHandClick=i.clrIconSVG(''),t.ClrShapeResize=i.clrIconSVG('\n '),t.ClrShapeObjects=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeBook=i.clrIconSVG('\n \n \n '),t.ClrShapeAsterisk=i.clrIconSVG('\n '),t.ClrShapeScissors=i.clrIconSVG('\n \n '),t.ClrShapeBug=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeThermometer=i.clrIconSVG('\n '),t.ClrShapePencil=i.clrIconSVG('\n \n '),t.ClrShapeNote=i.clrIconSVG('\n \n '),t.ClrShapeRefresh=i.clrIconSVG(''),t.ClrShapeSync=i.clrIconSVG('\n '),t.ClrShapeViewList=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeViewCards=i.clrIconSVG('\n \n \n '),t.ClrShapeLightbulb=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeDownload=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeUpload=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeLock=i.clrIconSVG('\n \n '),t.ClrShapeUnlock=i.clrIconSVG('\n \n '),t.ClrShapeUsers=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapePopOut=i.clrIconSVG('\n '),t.ClrShapeFilter=i.clrIconSVG('\n \n '),t.ClrShapePin=i.clrIconSVG('\n \n \n '),t.ClrShapeFile=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapePlus=i.clrIconSVG(''),t.ClrShapeMinus=i.clrIconSVG(''),t.ClrShapeMinusCircle=i.clrIconSVG('\n \n '),t.ClrShapePlusCircle=i.clrIconSVG('\n \n '),t.ClrShapeBan=i.clrIconSVG(''),t.ClrShapeTimesCircle=i.clrIconSVG('\n \n '),t.ClrShapeTrash=i.clrIconSVG('\n \n \n \n \n \n '),t.ClrShapeCircle=i.clrIconSVG('\n '),t.ClrShapeTag=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeTags=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeHistory=i.clrIconSVG('\n '),t.ClrShapeClock=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeAlarmClock=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeArrow=i.clrIconSVG(''),t.ClrShapeCircleArrow=i.clrIconSVG('\n \n '),t.ClrShapeChildArrow=i.clrIconSVG(''),t.ClrShapeCopy=i.clrIconSVG('\n \n \n '),t.ClrShapeHelp=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeLogin=i.clrIconSVG('\n \n \n '),t.ClrShapeLogout=i.clrIconSVG('\n \n \n '),t.ClrShapePrinter=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeWorld=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeSlider=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeClipboard=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeFirewall=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeList=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeRedo=i.clrIconSVG(''),t.ClrShapeUndo=i.clrIconSVG(''),t.ClrShapeScroll=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeFileSettings=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeTwoWayArrows=i.clrIconSVG('\n '),t.ClrShapeSwitch=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeTools=i.clrIconSVG('\n \n \n \n '),t.ClrShapeWindowClose=i.clrIconSVG(''),t.ClrShapeWindowMax=i.clrIconSVG(''),t.ClrShapeWindowMin=i.clrIconSVG(''),t.ClrShapeWindowRestore=i.clrIconSVG('\n '),t.ClrShapeZoomIn=i.clrIconSVG('\n \n '),t.ClrShapeZoomOut=i.clrIconSVG('\n \n '),t.ClrShapeKey=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeLibrary=i.clrIconSVG('\n \n '),t.ClrShapeBolt=i.clrIconSVG('\n '),t.ClrShapeWrench=i.clrIconSVG('\n \n '),t.ClrShapeBullseye=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeTarget=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeFlame=i.clrIconSVG('\n \n '),t.ClrShapeHourglass=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeNoAccess=i.clrIconSVG('\n \n '),t.ClrShapeOrganization=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeBalance=i.clrIconSVG('\n \n \n \n \n \n '),t.ClrShapeIdBadge=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeRepeat=i.clrIconSVG('\n '),t.ClrShapeFileGroup=i.clrIconSVG('\n \n \n \n \n \n \n \n '),t.ClrShapePaperclip=i.clrIconSVG(''),t.ClrShapeShrink=i.clrIconSVG('\n '),t.ClrShapeAccessibility1=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeAccessibility2=i.clrIconSVG('\n \n \n '),t.ClrShapeSortBy=i.clrIconSVG('\n \n '),t.ClrShapeCollapseCard=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeExpandCard=i.clrIconSVG('\n \n \n \n '),t.ClrShapeBriefcase=i.clrIconSVG('\n\n\n'),t.ClrShapeColorPicker=i.clrIconSVG('\n\n\n'),t.ClrShapeCopyToClipboard=i.clrIconSVG('\n\n\n'),t.ClrShapeDragHandle=i.clrIconSVG(''),t.ClrShapeFilter2=i.clrIconSVG('\n\n'),t.ClrShapeMoon=i.clrIconSVG('\n'),t.ClrShapeSun=i.clrIconSVG('\n\n'),t.ClrShapeWand=i.clrIconSVG('\n \n \n '),t.ClrShapeCursorMove=i.clrIconSVG(''),t.ClrShapeClone=i.clrIconSVG(''),t.ClrShapeDetails=i.clrIconSVG(''),t.ClrShapeDragHandleCorner=i.clrIconSVG(''),t.ClrShapeEraser=i.clrIconSVG(''),t.ClrShapeLandscape=i.clrIconSVG(''),t.ClrShapePaste=i.clrIconSVG(''),t.ClrShapePortrait=i.clrIconSVG(''),t.ClrShapeTreeView=i.clrIconSVG(''),t.ClrShapeCursorHandGrab=i.clrIconSVG(''),t.ClrShapeCursorHandOpen=i.clrIconSVG(''),t.ClrShapeFileZip=i.clrIconSVG(''),t.ClrShapeFilterOff=i.clrIconSVG(''),t.ClrShapeRecycle=i.clrIconSVG(''),t.ClrShapeTree=i.clrIconSVG(''),t.EssentialShapes={"add-text":t.ClrShapeAddText,"alarm-off":t.ClrShapeAlarmOff,pinboard:t.ClrShapePinboard,new:t.ClrShapeNew,"bubble-exclamation":t.ClrShapeBubbleExclamation,"grid-view":t.ClrShapeGridView,"cursor-arrow":t.ClrShapeCursorArrow,"cursor-hand":t.ClrShapeCursorHand,"cursor-hand-click":t.ClrShapeCursorHandClick,"cursor-hand-grab":t.ClrShapeCursorHandGrab,"cursor-hand-open":t.ClrShapeCursorHandOpen,"cursor-move":t.ClrShapeCursorMove,resize:t.ClrShapeResize,objects:t.ClrShapeObjects,book:t.ClrShapeBook,asterisk:t.ClrShapeAsterisk,bug:t.ClrShapeBug,scissors:t.ClrShapeScissors,thermometer:t.ClrShapeThermometer,pencil:t.ClrShapePencil,note:t.ClrShapeNote,refresh:t.ClrShapeRefresh,sync:t.ClrShapeSync,"view-list":t.ClrShapeViewList,"view-cards":t.ClrShapeViewCards,"tree-view":t.ClrShapeTreeView,lightbulb:t.ClrShapeLightbulb,download:t.ClrShapeDownload,upload:t.ClrShapeUpload,lock:t.ClrShapeLock,unlock:t.ClrShapeUnlock,users:t.ClrShapeUsers,"pop-out":t.ClrShapePopOut,filter:t.ClrShapeFilter,pin:t.ClrShapePin,file:t.ClrShapeFile,plus:t.ClrShapePlus,minus:t.ClrShapeMinus,"minus-circle":t.ClrShapeMinusCircle,"plus-circle":t.ClrShapePlusCircle,ban:t.ClrShapeBan,"times-circle":t.ClrShapeTimesCircle,trash:t.ClrShapeTrash,circle:t.ClrShapeCircle,tag:t.ClrShapeTag,tags:t.ClrShapeTags,history:t.ClrShapeHistory,clock:t.ClrShapeClock,"alarm-clock":t.ClrShapeAlarmClock,arrow:t.ClrShapeArrow,"circle-arrow":t.ClrShapeCircleArrow,"child-arrow":t.ClrShapeChildArrow,copy:t.ClrShapeCopy,eye:o.ClrShapeEye,"eye-hide":o.ClrShapeEyeHide,help:t.ClrShapeHelp,login:t.ClrShapeLogin,logout:t.ClrShapeLogout,printer:t.ClrShapePrinter,world:t.ClrShapeWorld,slider:t.ClrShapeSlider,clipboard:t.ClrShapeClipboard,firewall:t.ClrShapeFirewall,list:t.ClrShapeList,redo:t.ClrShapeRedo,undo:t.ClrShapeUndo,scroll:t.ClrShapeScroll,"file-settings":t.ClrShapeFileSettings,"two-way-arrows":t.ClrShapeTwoWayArrows,switch:t.ClrShapeSwitch,tools:t.ClrShapeTools,"window-close":t.ClrShapeWindowClose,"window-max":t.ClrShapeWindowMax,"window-min":t.ClrShapeWindowMin,"window-restore":t.ClrShapeWindowRestore,"zoom-in":t.ClrShapeZoomIn,"zoom-out":t.ClrShapeZoomOut,key:t.ClrShapeKey,library:t.ClrShapeLibrary,bolt:t.ClrShapeBolt,wrench:t.ClrShapeWrench,bullseye:t.ClrShapeBullseye,target:t.ClrShapeTarget,flame:t.ClrShapeFlame,hourglass:t.ClrShapeHourglass,"no-access":t.ClrShapeNoAccess,organization:t.ClrShapeOrganization,balance:t.ClrShapeBalance,"id-badge":t.ClrShapeIdBadge,repeat:t.ClrShapeRepeat,"file-group":t.ClrShapeFileGroup,paperclip:t.ClrShapePaperclip,shrink:t.ClrShapeShrink,"accessibility-1":t.ClrShapeAccessibility1,"accessibility-2":t.ClrShapeAccessibility2,"sort-by":t.ClrShapeSortBy,"collapse-card":t.ClrShapeCollapseCard,"expand-card":t.ClrShapeExpandCard,briefcase:t.ClrShapeBriefcase,"color-picker":t.ClrShapeColorPicker,"copy-to-clipboard":t.ClrShapeCopyToClipboard,"filter-2":t.ClrShapeFilter2,"drag-handle":t.ClrShapeDragHandle,moon:t.ClrShapeMoon,sun:t.ClrShapeSun,wand:t.ClrShapeWand,clone:t.ClrShapeClone,details:t.ClrShapeDetails,"drag-handle-corner":t.ClrShapeDragHandleCorner,eraser:t.ClrShapeEraser,landscape:t.ClrShapeLandscape,paste:t.ClrShapePaste,portrait:t.ClrShapePortrait,"file-zip":t.ClrShapeFileZip,"filter-off":t.ClrShapeFilterOff,recycle:t.ClrShapeRecycle,tree:t.ClrShapeTree};var a=n("./src/clr-icons/shapes/core-shapes.ts");t.ClrShapeEye=a.ClrShapeEye,t.ClrShapeEyeHide=a.ClrShapeEyeHide,Object.defineProperty(t.EssentialShapes,"edit",r.descriptorConfig(t.EssentialShapes.pencil)),Object.defineProperty(t.EssentialShapes,"note-edit",r.descriptorConfig(t.EssentialShapes.note)),Object.defineProperty(t.EssentialShapes,"group",r.descriptorConfig(t.EssentialShapes.users)),Object.defineProperty(t.EssentialShapes,"document",r.descriptorConfig(t.EssentialShapes.file)),Object.defineProperty(t.EssentialShapes,"add",r.descriptorConfig(t.EssentialShapes.plus)),Object.defineProperty(t.EssentialShapes,"cancel",r.descriptorConfig(t.EssentialShapes.ban)),Object.defineProperty(t.EssentialShapes,"remove",r.descriptorConfig(t.EssentialShapes["times-circle"])),Object.defineProperty(t.EssentialShapes,"eye-show",r.descriptorConfig(t.EssentialShapes.eye)),Object.defineProperty(t.EssentialShapes,"sign-in",r.descriptorConfig(t.EssentialShapes.login)),Object.defineProperty(t.EssentialShapes,"sign-out",r.descriptorConfig(t.EssentialShapes.logout)),Object.defineProperty(t.EssentialShapes,"lightning",r.descriptorConfig(t.EssentialShapes.bolt)),Object.defineProperty(t.EssentialShapes,"flow-chart",r.descriptorConfig(t.EssentialShapes.organization)),Object.defineProperty(t.EssentialShapes,"alert",r.descriptorConfig(t.EssentialShapes["bubble-exclamation"])),Object.defineProperty(t.EssentialShapes,"pinned",r.descriptorConfig(t.EssentialShapes.pinboard)),Object.defineProperty(t.EssentialShapes,"attachment",r.descriptorConfig(t.EssentialShapes.paperclip)),Object.defineProperty(t.EssentialShapes,"attachment",r.descriptorConfig(t.EssentialShapes.paperclip)),Object.defineProperty(t.EssentialShapes,"resize-down",r.descriptorConfig(t.EssentialShapes.shrink)),Object.defineProperty(t.EssentialShapes,"resize-up",r.descriptorConfig(t.EssentialShapes.resize)),"undefined"!=typeof window&&window.hasOwnProperty("ClarityIcons")&&window.ClarityIcons.add(t.EssentialShapes)},"./src/clr-icons/shapes/media-shapes.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/clr-icons/utils/svg-tag-generator.ts");t.ClrShapePlay=r.clrIconSVG('\n '),t.ClrShapePause=r.clrIconSVG('\n \n \n '),t.ClrShapeStepForward=r.clrIconSVG('\n \n \n '),t.ClrShapeStop=r.clrIconSVG('\n '),t.ClrShapePower=r.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeRewind=r.clrIconSVG('\n '),t.ClrShapeFastForward=r.clrIconSVG('\n '),t.ClrShapeCamera=r.clrIconSVG('\n \n \n \n \n '),t.ClrShapeVideoCamera=r.clrIconSVG('\n '),t.ClrShapeShuffle=r.clrIconSVG('\n \n '),t.ClrShapeVolumeDown=r.clrIconSVG('\n \n \n '),t.ClrShapeVolumeUp=r.clrIconSVG('\n \n \n \n \n '),t.ClrShapeVolumeMute=r.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeHeadphones=r.clrIconSVG('\n '),t.ClrShapeFilmStrip=r.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeMusicNote=r.clrIconSVG('\n '),t.ClrShapeImageGallery=r.clrIconSVG(''),t.ClrShapeReplayAll=r.clrIconSVG(''),t.ClrShapeReplayOne=r.clrIconSVG(''),t.ClrShapeVideoGallery=r.clrIconSVG(''),t.ClrShapeMicrophone=r.clrIconSVG(''),t.ClrShapeMicrophoneMute=r.clrIconSVG(''),t.MediaShapes={play:t.ClrShapePlay,pause:t.ClrShapePause,"step-forward":t.ClrShapeStepForward,stop:t.ClrShapeStop,power:t.ClrShapePower,rewind:t.ClrShapeRewind,"fast-forward":t.ClrShapeFastForward,camera:t.ClrShapeCamera,"video-camera":t.ClrShapeVideoCamera,shuffle:t.ClrShapeShuffle,"volume-up":t.ClrShapeVolumeUp,"volume-down":t.ClrShapeVolumeDown,"volume-mute":t.ClrShapeVolumeMute,headphones:t.ClrShapeHeadphones,"film-strip":t.ClrShapeFilmStrip,"music-note":t.ClrShapeMusicNote,"image-gallery":t.ClrShapeImageGallery,"replay-all":t.ClrShapeReplayAll,"replay-one":t.ClrShapeReplayOne,"video-gallery":t.ClrShapeVideoGallery,microphone:t.ClrShapeMicrophone,"microphone-mute":t.ClrShapeMicrophoneMute},"undefined"!=typeof window&&window.hasOwnProperty("ClarityIcons")&&window.ClarityIcons.add(t.MediaShapes)},"./src/clr-icons/shapes/social-shapes.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/clr-icons/utils/descriptor-config.ts"),i=n("./src/clr-icons/utils/svg-tag-generator.ts"),o=n("./src/clr-icons/shapes/core-shapes.ts");t.ClrShapeShare=i.clrIconSVG('\n \n '),t.ClrShapeStar=i.clrIconSVG('\n \n '),t.ClrShapeHalfStar=i.clrIconSVG('\n \n '),t.ClrShapeBookmark=i.clrIconSVG('\n \n '),t.ClrShapeEnvelope=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeTasks=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeFlag=i.clrIconSVG('\n \n \n \n '),t.ClrShapeInbox=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeHeart=i.clrIconSVG('\n \n '),t.ClrShapeHeartBroken=i.clrIconSVG('\n \n '),t.ClrShapeTalkBubbles=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeChatBubble=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapePicture=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeHappyFace=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeNeutralFace=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeSadFace=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeThumbsUp=i.clrIconSVG('\n \n \n \n '),t.ClrShapeThumbsDown=i.clrIconSVG('\n \n \n \n '),t.SocialShapes={share:t.ClrShapeShare,star:t.ClrShapeStar,"half-star":t.ClrShapeHalfStar,bookmark:t.ClrShapeBookmark,envelope:t.ClrShapeEnvelope,calendar:o.ClrShapeCalendar,event:o.ClrShapeEvent,tasks:t.ClrShapeTasks,flag:t.ClrShapeFlag,inbox:t.ClrShapeInbox,heart:t.ClrShapeHeart,"heart-broken":t.ClrShapeHeartBroken,"talk-bubbles":t.ClrShapeTalkBubbles,"chat-bubble":t.ClrShapeChatBubble,picture:t.ClrShapePicture,"happy-face":t.ClrShapeHappyFace,"neutral-face":t.ClrShapeNeutralFace,"sad-face":t.ClrShapeSadFace,"thumbs-up":t.ClrShapeThumbsUp,"thumbs-down":t.ClrShapeThumbsDown},Object.defineProperty(t.SocialShapes,"favorite",r.descriptorConfig(t.SocialShapes.star)),Object.defineProperty(t.SocialShapes,"email",r.descriptorConfig(t.SocialShapes.envelope)),Object.defineProperty(t.SocialShapes,"date",r.descriptorConfig(t.SocialShapes.calendar)),"undefined"!=typeof window&&window.hasOwnProperty("ClarityIcons")&&window.ClarityIcons.add(t.SocialShapes)},"./src/clr-icons/shapes/technology-shapes.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/clr-icons/utils/descriptor-config.ts"),i=n("./src/clr-icons/utils/svg-tag-generator.ts");t.ClrShapeRulerPencil=i.clrIconSVG('\n \n \n \n'),t.ClrShapePhoneHandset=i.clrIconSVG('\n \n'),t.ClrShapeNoWifi=i.clrIconSVG('\n \n \n \n \n \n \n \n \n'),t.ClrShapeInstall=i.clrIconSVG('\n \n \n \n \n \n \n'),t.ClrShapeUninstall=i.clrIconSVG('\n \n \n \n \n \n \n \n'),t.ClrShapeLayers=i.clrIconSVG('\n \n \n \n \n \n'),t.ClrShapeBlock=i.clrIconSVG('\n \n'),t.ClrShapeBlocksGroup=i.clrIconSVG('\n \n'),t.ClrShapeBundle=i.clrIconSVG('\n \n'),t.ClrShapeWifi=i.clrIconSVG('\n \n \n \n \n \n \n \n'),t.ClrShapeRackServer=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.ClrShapeHardDisk=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.ClrShapeBackupRestore=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.ClrShapeBackup=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.ClrShapeDevices=i.clrIconSVG('\n \n \n \n \n'),t.ClrShapeKeyboard=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.ClrShapeMouse=i.clrIconSVG('\n \n \n'),t.ClrShapeDashboard=i.clrIconSVG('\n \n \n \n \n \n \n \n'),t.ClrShapeHost=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.ClrShapeStorage=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n'),t.ClrShapeCluster=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeApplications=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeBuilding=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeCPU=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeMemory=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeDataCluster=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeResourcePool=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeShieldCheck=i.clrIconSVG('\n \n \n '),t.ClrShapeShield=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeShieldX=i.clrIconSVG('\n \n \n '),t.ClrShapeImport=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeExport=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeUploadCloud=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeDownloadCloud=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapePlugin=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeFloppy=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeComputer=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeDisplay=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeTerminal=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeCode=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeApplication=i.clrIconSVG('\n \n \n \n \n \n \n \n '),t.ClrShapeBattery=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeMobile=i.clrIconSVG('\n \n \n '),t.ClrShapeTablet=i.clrIconSVG('\n \n \n '),t.ClrShapeNetworkGlobe=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeNetworkSettings=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeNetworkSwitch=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeRouter=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeVM=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeVMWApp=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeCertificate=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '),t.ClrShapeArchive=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeUnarchive=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeConnect=i.clrIconSVG('\n \n \n '),t.ClrShapeDisconnect=i.clrIconSVG('\n \n \n \n '),t.ClrShapeLink=i.clrIconSVG('\n \n '),t.ClrShapeUnlink=i.clrIconSVG('\n \n '),t.ClrShapeCloudNetwork=i.clrIconSVG('\n \n '),t.ClrShapeCloudScale=i.clrIconSVG('\n \n \n '),t.ClrShapeCloudTraffic=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeDeploy=i.clrIconSVG('\n \n \n \n \n \n '),t.ClrShapeHelix=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeFlask=i.clrIconSVG('\n \n '),t.ClrShapeAdministrator=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeHardDrive=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeHardDriveDisks=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeNVMe=i.clrIconSVG('\n \n \n \n \n \n \n '),t.ClrShapeSSD=i.clrIconSVG('\n \n \n \n \n \n \n \n \n \n '),t.ClrShapeBluetooth=i.clrIconSVG(''),t.ClrShapeBluetoothOff=i.clrIconSVG(''),t.ClrShapeProcessOnVM=i.clrIconSVG(''),t.ClrShapeAssignUser=i.clrIconSVG(''),t.ClrShapeAtom=i.clrIconSVG(''),t.ClrShapeBarCode=i.clrIconSVG(''),t.ClrShapeCdDvd=i.clrIconSVG(''),t.ClrShapeContainer=i.clrIconSVG(''),t.ClrShapeContainerVolume=i.clrIconSVG(''),t.ClrShapeFileShare=i.clrIconSVG(''),t.ClrShapeQrCode=i.clrIconSVG(''),t.ClrShapeUsb=i.clrIconSVG(''),t.ClrShapeRadar=i.clrIconSVG(''),t.TechnologyShapes={"ruler-pencil":t.ClrShapeRulerPencil,"phone-handset":t.ClrShapePhoneHandset,"no-wifi":t.ClrShapeNoWifi,install:t.ClrShapeInstall,uninstall:t.ClrShapeUninstall,layers:t.ClrShapeLayers,block:t.ClrShapeBlock,"blocks-group":t.ClrShapeBlocksGroup,bundle:t.ClrShapeBundle,wifi:t.ClrShapeWifi,"rack-server":t.ClrShapeRackServer,"hard-disk":t.ClrShapeHardDisk,"backup-restore":t.ClrShapeBackupRestore,backup:t.ClrShapeBackup,devices:t.ClrShapeDevices,keyboard:t.ClrShapeKeyboard,mouse:t.ClrShapeMouse,dashboard:t.ClrShapeDashboard,host:t.ClrShapeHost,storage:t.ClrShapeStorage,cluster:t.ClrShapeCluster,applications:t.ClrShapeApplications,building:t.ClrShapeBuilding,cpu:t.ClrShapeCPU,memory:t.ClrShapeMemory,"data-cluster":t.ClrShapeDataCluster,"resource-pool":t.ClrShapeResourcePool,shield:t.ClrShapeShield,"shield-check":t.ClrShapeShieldCheck,"shield-x":t.ClrShapeShieldX,import:t.ClrShapeImport,export:t.ClrShapeExport,"upload-cloud":t.ClrShapeUploadCloud,"download-cloud":t.ClrShapeDownloadCloud,plugin:t.ClrShapePlugin,floppy:t.ClrShapeFloppy,computer:t.ClrShapeComputer,display:t.ClrShapeDisplay,terminal:t.ClrShapeTerminal,code:t.ClrShapeCode,application:t.ClrShapeApplication,battery:t.ClrShapeBattery,mobile:t.ClrShapeMobile,tablet:t.ClrShapeTablet,"network-globe":t.ClrShapeNetworkGlobe,"network-settings":t.ClrShapeNetworkSettings,"network-switch":t.ClrShapeNetworkSwitch,router:t.ClrShapeRouter,vm:t.ClrShapeVM,"vmw-app":t.ClrShapeVMWApp,certificate:t.ClrShapeCertificate,archive:t.ClrShapeArchive,unarchive:t.ClrShapeUnarchive,connect:t.ClrShapeConnect,disconnect:t.ClrShapeDisconnect,link:t.ClrShapeLink,unlink:t.ClrShapeUnlink,"cloud-network":t.ClrShapeCloudNetwork,"cloud-scale":t.ClrShapeCloudScale,"cloud-traffic":t.ClrShapeCloudTraffic,deploy:t.ClrShapeDeploy,helix:t.ClrShapeHelix,flask:t.ClrShapeFlask,administrator:t.ClrShapeAdministrator,"hard-drive":t.ClrShapeHardDrive,"hard-drive-disks":t.ClrShapeHardDriveDisks,nvme:t.ClrShapeNVMe,ssd:t.ClrShapeSSD,bluetooth:t.ClrShapeBluetooth,"bluetooth-off":t.ClrShapeBluetoothOff,"process-on-vm":t.ClrShapeProcessOnVM,"assign-user":t.ClrShapeAssignUser,atom:t.ClrShapeAtom,"bar-code":t.ClrShapeBarCode,"cd-dvd":t.ClrShapeCdDvd,container:t.ClrShapeContainer,"container-volume":t.ClrShapeContainerVolume,"file-share":t.ClrShapeFileShare,"qr-code":t.ClrShapeQrCode,usb:t.ClrShapeUsb,radar:t.ClrShapeRadar},Object.defineProperty(t.TechnologyShapes,"server",r.descriptorConfig(t.TechnologyShapes.host)),Object.defineProperty(t.TechnologyShapes,"command",r.descriptorConfig(t.TechnologyShapes.terminal)),Object.defineProperty(t.TechnologyShapes,"mobile-phone",r.descriptorConfig(t.TechnologyShapes.mobile)),Object.defineProperty(t.TechnologyShapes,"license",r.descriptorConfig(t.TechnologyShapes.certificate)),Object.defineProperty(t.TechnologyShapes,"disconnected",r.descriptorConfig(t.TechnologyShapes["no-wifi"])),Object.defineProperty(t.TechnologyShapes,"receiver",r.descriptorConfig(t.TechnologyShapes["phone-handset"])),Object.defineProperty(t.TechnologyShapes,"design",r.descriptorConfig(t.TechnologyShapes["ruler-pencil"])),Object.defineProperty(t.TechnologyShapes,"dna",r.descriptorConfig(t.TechnologyShapes.helix)),"undefined"!=typeof window&&window.hasOwnProperty("ClarityIcons")&&window.ClarityIcons.add(t.TechnologyShapes)},"./src/clr-icons/shapes/text-edit-shapes.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/clr-icons/utils/svg-tag-generator.ts");t.ClrShapeBold=r.clrIconSVG(''),t.ClrShapeBulletList=r.clrIconSVG(''),t.ClrShapeCenterText=r.clrIconSVG(''),t.ClrShapeCheckboxList=r.clrIconSVG(''),t.ClrShapeFontSize=r.clrIconSVG(''),t.ClrShapeAlignCenter=r.clrIconSVG(''),t.ClrShapeAlignLeft=r.clrIconSVG(''),t.ClrShapeAlignRight=r.clrIconSVG(''),t.ClrShapeItalic=r.clrIconSVG(''),t.ClrShapeJustifyText=r.clrIconSVG(''),t.ClrShapeAlignLeftText=r.clrIconSVG(''),t.ClrShapeNumberList=r.clrIconSVG(''),t.ClrShapePaintRoller=r.clrIconSVG(''),t.ClrShapeBlockQuote=r.clrIconSVG(''),t.ClrShapeAlignRightText=r.clrIconSVG(''),t.ClrShapeText=r.clrIconSVG(''),t.ClrShapeUnderline=r.clrIconSVG(''),t.ClrShapeAlignBottom=r.clrIconSVG(''),t.ClrShapeAlignMiddle=r.clrIconSVG(''),t.ClrShapeAlignTop=r.clrIconSVG(''),t.ClrShapeLanguage=r.clrIconSVG(''),t.TextEditShapes={bold:t.ClrShapeBold,"bullet-list":t.ClrShapeBulletList,"checkbox-list":t.ClrShapeCheckboxList,"number-list":t.ClrShapeNumberList,"font-size":t.ClrShapeFontSize,italic:t.ClrShapeItalic,"justify-text":t.ClrShapeJustifyText,"center-text":t.ClrShapeCenterText,"align-left-text":t.ClrShapeAlignLeftText,"align-right-text":t.ClrShapeAlignRightText,"paint-roller":t.ClrShapePaintRoller,"block-quote":t.ClrShapeBlockQuote,text:t.ClrShapeText,underline:t.ClrShapeUnderline,"align-center":t.ClrShapeAlignCenter,"align-left":t.ClrShapeAlignLeft,"align-right":t.ClrShapeAlignRight,"align-bottom":t.ClrShapeAlignBottom,"align-middle":t.ClrShapeAlignMiddle,"align-top":t.ClrShapeAlignTop,language:t.ClrShapeLanguage},"undefined"!=typeof window&&window.hasOwnProperty("ClarityIcons")&&window.ClarityIcons.add(t.TextEditShapes)},"./src/clr-icons/shapes/travel-shapes.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./src/clr-icons/utils/descriptor-config.ts"),i=n("./src/clr-icons/utils/svg-tag-generator.ts");t.ClrShapeTruck=i.clrIconSVG('\n '),t.ClrShapeAirplane=i.clrIconSVG('\n \n \n '),t.ClrShapeCar=i.clrIconSVG('\n \n \n '),t.ClrShapeMap=i.clrIconSVG('\n \n \n \n \n '),t.ClrShapeCompass=i.clrIconSVG('\n \n \n '),t.ClrShapeMapMarker=i.clrIconSVG('\n \n \n \n \n \n \n \n \n '),t.ClrShapeBicycle=i.clrIconSVG(''),t.ClrShapeBoat=i.clrIconSVG(''),t.ClrShapeCampervan=i.clrIconSVG(''),t.ClrShapeCaravan=i.clrIconSVG(''),t.ClrShapeFerry=i.clrIconSVG(''),t.ClrShapeTrailer=i.clrIconSVG(''),t.TravelShapes={truck:t.ClrShapeTruck,airplane:t.ClrShapeAirplane,car:t.ClrShapeCar,map:t.ClrShapeMap,compass:t.ClrShapeCompass,"map-marker":t.ClrShapeMapMarker,bicycle:t.ClrShapeBicycle,boat:t.ClrShapeBoat,campervan:t.ClrShapeCampervan,caravan:t.ClrShapeCaravan,ferry:t.ClrShapeFerry,trailer:t.ClrShapeTrailer},Object.defineProperty(t.TravelShapes,"plane",r.descriptorConfig(t.TravelShapes.airplane)),Object.defineProperty(t.TravelShapes,"auto",r.descriptorConfig(t.TravelShapes.car)),"undefined"!=typeof window&&window.hasOwnProperty("ClarityIcons")&&window.ClarityIcons.add(t.TravelShapes)},"./src/clr-icons/utils/descriptor-config.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.descriptorConfig=function(e){return{enumerable:!0,writable:!0,configurable:!0,value:e}}},"./src/clr-icons/utils/svg-tag-generator.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clrIconSVG=function(e){var t="";return e.indexOf("--badged")>-1&&(t+="can-badge "),e.indexOf("--alerted")>-1&&(t+="can-alert "),e.indexOf("clr-i-solid")>-1&&(t+="has-solid "),(t?'
\n \x3c!-- keyword input --\x3e\n \n\n \x3c!-- dropdown that user can select --\x3e\n
    \n
  • \n
  • {{loadingText}}
  • \n
  • {{noMatchFoundText || \'No Result Found\'}}\n
  • \n
  • \n
  • {{blankOptionText}}\n
  • \n
  • \n
  • \n
\n\n
',providers:[i.NguiAutoComplete],styles:["\n @keyframes slideDown {\n 0% {\n transform: translateY(-10px);\n }\n 100% {\n transform: translateY(0px);\n }\n }\n\n .ngui-auto-complete {\n background-color: transparent;\n }\n\n .ngui-auto-complete > input {\n outline: none;\n border: 0;\n padding: 2px;\n box-sizing: border-box;\n background-clip: content-box;\n }\n\n .ngui-auto-complete > ul {\n background-color: #fff;\n margin: 0;\n width: 100%;\n overflow-y: auto;\n list-style-type: none;\n padding: 0;\n border: 1px solid #ccc;\n box-sizing: border-box;\n animation: slideDown 0.1s;\n }\n\n .ngui-auto-complete > ul.empty {\n display: none;\n }\n\n .ngui-auto-complete > ul li {\n padding: 2px 5px;\n border-bottom: 1px solid #eee;\n }\n\n .ngui-auto-complete > ul li.selected {\n background-color: #ccc;\n }\n\n .ngui-auto-complete > ul li:last-child {\n border-bottom: none;\n }\n\n .ngui-auto-complete > ul li:not(.header-item):hover {\n background-color: #ccc;\n }"],encapsulation:r.ViewEncapsulation.None}]}],e.propDecorators={autocomplete:[{type:r.Input,args:["autocomplete"]}],listFormatter:[{type:r.Input,args:["list-formatter"]}],source:[{type:r.Input,args:["source"]}],pathToData:[{type:r.Input,args:["path-to-data"]}],minChars:[{type:r.Input,args:["min-chars"]}],placeholder:[{type:r.Input,args:["placeholder"]}],blankOptionText:[{type:r.Input,args:["blank-option-text"]}],noMatchFoundText:[{type:r.Input,args:["no-match-found-text"]}],acceptUserInput:[{type:r.Input,args:["accept-user-input"]}],loadingText:[{type:r.Input,args:["loading-text"]}],loadingTemplate:[{type:r.Input,args:["loading-template"]}],maxNumList:[{type:r.Input,args:["max-num-list"]}],showInputTag:[{type:r.Input,args:["show-input-tag"]}],showDropdownOnInit:[{type:r.Input,args:["show-dropdown-on-init"]}],tabToSelect:[{type:r.Input,args:["tab-to-select"]}],matchFormatted:[{type:r.Input,args:["match-formatted"]}],autoSelectFirstItem:[{type:r.Input,args:["auto-select-first-item"]}],selectOnBlur:[{type:r.Input,args:["select-on-blur"]}],reFocusAfterSelect:[{type:r.Input,args:["re-focus-after-select"]}],headerItemTemplate:[{type:r.Input,args:["header-item-template"]}],ignoreAccents:[{type:r.Input,args:["ignore-accents"]}],valueSelected:[{type:r.Output}],customSelected:[{type:r.Output}],textEntered:[{type:r.Output}],autoCompleteInput:[{type:r.ViewChild,args:["autoCompleteInput"]}],autoCompleteContainer:[{type:r.ViewChild,args:["autoCompleteContainer"]}]},e}()},"A+lv":function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {\n| ASTNode,\n| FragmentSpreadNode,")},A5yv:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"j",function(){return INITIAL_OPTIONS}),__webpack_require__.d(__webpack_exports__,"i",function(){return STORE_DEVTOOLS_CONFIG}),__webpack_require__.d(__webpack_exports__,"h",function(){return DevtoolsDispatcher}),__webpack_require__.d(__webpack_exports__,"l",function(){return DevtoolsExtension}),__webpack_require__.d(__webpack_exports__,"k",function(){return REDUX_DEVTOOLS_EXTENSION}),__webpack_require__.d(__webpack_exports__,"c",function(){return IS_EXTENSION_OR_MONITOR_PRESENT}),__webpack_require__.d(__webpack_exports__,"g",function(){return createConfig}),__webpack_require__.d(__webpack_exports__,"d",function(){return createIsExtensionOrMonitorPresent}),__webpack_require__.d(__webpack_exports__,"e",function(){return createReduxDevtoolsExtension}),__webpack_require__.d(__webpack_exports__,"f",function(){return createStateObservable}),__webpack_require__.d(__webpack_exports__,"b",function(){return StoreDevtoolsModule}),__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtools});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("mrSG"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("CcnG"),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("G5J1"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("6blF"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("p0ib"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("zo3G"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("S5bw"),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("S1nX"),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("VnD/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("67Y/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("ny24"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("15JJ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("0mNj"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("mZXl"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("/PH2"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("dC0D"),_ngrx_store__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("yGQT"),StoreDevtoolsConfig=function(){return function(){}}(),STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken("@ngrx/devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken("@ngrx/devtools Initial Config"),PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",PerformAction=function(){return function(e,t){if(this.action=e,this.timestamp=t,this.type=PERFORM_ACTION,void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}(),Refresh=function(){return function(){this.type=REFRESH}}(),Reset=function(){return function(e){this.timestamp=e,this.type=RESET}}(),Rollback=function(){return function(e){this.timestamp=e,this.type=ROLLBACK}}(),Commit=function(){return function(e){this.timestamp=e,this.type=COMMIT}}(),Sweep=function(){return function(){this.type=SWEEP}}(),ToggleAction=function(){return function(e){this.id=e,this.type=TOGGLE_ACTION}}(),JumpToState=function(){return function(e){this.index=e,this.type=JUMP_TO_STATE}}(),JumpToAction=function(){return function(e){this.actionId=e,this.type=JUMP_TO_ACTION}}(),ImportState=function(){return function(e){this.nextLiftedState=e,this.type=IMPORT_STATE}}(),__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},__spread=function(){for(var e=[],t=0;t=e.length&&e.length===o.length)return e;for(var s=e.slice(0,t),u=t;u-1?d:computeNextEntry(n,p,h,f,l);s.push(g)}return s}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[]}}function liftReducerWith(e,t,n,r,i){return void 0===i&&(i={}),function(o){return function(a,l){var s=a||t,u=s.monitorState,c=s.actionsById,p=s.nextActionId,d=s.stagedActionIds,h=s.skippedActionIds,f=s.committedState,g=s.currentStateIndex,v=s.computedStates;function m(e){for(var t=e,n=d.slice(1,t+1),r=0;rt?g-t:0}a||(c=Object.create(c));var y,b=0;switch(l.type){case RESET:c={0:liftAction(INIT_ACTION)},p=1,d=[0],h=[],f=e,g=0,v=[];break;case COMMIT:c={0:liftAction(INIT_ACTION)},p=1,d=[0],h=[],f=v[g].state,g=0,v=[];break;case ROLLBACK:c={0:liftAction(INIT_ACTION)},p=1,d=[0],h=[],g=0,v=[];break;case TOGGLE_ACTION:var C=l.id,w=h.indexOf(C);h=-1===w?__spread([C],h):h.filter(function(e){return e!==C}),b=d.indexOf(C);break;case SET_ACTIONS_ACTIVE:for(var _=l.start,E=l.end,A=l.active,S=[],D=_;Di.maxAge&&(v=recomputeStates(v,b,o,f,c,d,h,n),m(d.length-i.maxAge),b=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_16__.p:v.filter(function(e){return e.error}).length>0?(b=0,i.maxAge&&d.length>i.maxAge&&(v=recomputeStates(v,b,o,f,c,d,h,n),m(d.length-i.maxAge),b=1/0)):(g===d.length-1&&g++,T=p++,c[T]=new PerformAction(l,+Date.now()),d=__spread(d,[T]),v=(v=recomputeStates(v,b=d.length-1,o,f,c,d,h,n)).map(function(e){return __assign$2({},e,{state:o(e.state,l)})}),g=b,i.maxAge&&d.length>i.maxAge&&m(d.length-i.maxAge),b=1/0);break;default:b=1/0}return v=recomputeStates(v,b,o,f,c,d,h,n),{monitorState:u=r(u,l),actionsById:c,nextActionId:p,stagedActionIds:d,skippedActionIds:h,committedState:f,currentStateIndex:g,computedStates:v}}}}var __read$1=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},DevtoolsDispatcher=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(t,e),t}(_ngrx_store__WEBPACK_IMPORTED_MODULE_16__.a),StoreDevtools=function(){function e(e,t,n,r,i,o,a,l){var s=this,u=liftInitialState(a,l.monitor),c=liftReducerWith(a,u,o,l.monitor,l),p=Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(1)),r.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(liftAction)),e,r.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.b)(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)),d=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(c)),h=new rxjs__WEBPACK_IMPORTED_MODULE_6__.a(1),f=p.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(d),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(e,t){var n=e.state,i=__read$1(t,2),o=i[0],a=(0,i[1])(n,o);return r.notify(o,a),{state:a,action:o}},{state:u,action:null})).subscribe(function(e){var t=e.action;h.next(e.state),t.type===PERFORM_ACTION&&i.next(t.action)}),g=r.start$.subscribe(function(){s.refresh()}),v=h.asObservable(),m=v.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(unliftState));this.extensionStartSubscription=g,this.stateSubscription=f,this.dispatcher=e,this.liftedState=v,this.state=m}return e.prototype.dispatch=function(e){this.dispatcher.next(e)},e.prototype.next=function(e){this.dispatcher.next(e)},e.prototype.error=function(e){},e.prototype.complete=function(){},e.prototype.performAction=function(e){this.dispatch(new PerformAction(e,+Date.now()))},e.prototype.refresh=function(){this.dispatch(new Refresh)},e.prototype.reset=function(){this.dispatch(new Reset(+Date.now()))},e.prototype.rollback=function(){this.dispatch(new Rollback(+Date.now()))},e.prototype.commit=function(){this.dispatch(new Commit(+Date.now()))},e.prototype.sweep=function(){this.dispatch(new Sweep)},e.prototype.toggleAction=function(e){this.dispatch(new ToggleAction(e))},e.prototype.jumpToAction=function(e){this.dispatch(new JumpToAction(e))},e.prototype.jumpToState=function(e){this.dispatch(new JumpToState(e))},e.prototype.importState=function(e){this.dispatch(new ImportState(e))},e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(e){var t={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:!1},n="function"==typeof e?e():e,r=Object.assign({},t,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}},n);if(r.maxAge&&r.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+r.maxAge);return r}var StoreDevtoolsModule=function(){function e(){}return e.instrument=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_16__.l,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_16__.h,useExisting:DevtoolsDispatcher}]}},e}()},A67W:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("dWS+");function i(e,t){return t?'Variable "$'.concat(e,'" is never used in operation "').concat(t,'".'):'Variable "$'.concat(e,'" is never used.')}function o(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){var o=Object.create(null),a=e.getRecursiveVariableUsages(n),l=n.name?n.name.value:null,s=!0,u=!1,c=void 0;try{for(var p,d=a[Symbol.iterator]();!(s=(p=d.next()).done);s=!0)o[p.value.node.name.value]=!0}catch(v){u=!0,c=v}finally{try{s||null==d.return||d.return()}finally{if(u)throw c}}for(var h=0;h1&&void 0!==arguments[1])||arguments[1],r=null,i=null;return"string"==typeof e?(i=new RegExp(e,arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"i":"g").test(n._sourceText.substr(n._pos,e.length)),r=e):e instanceof RegExp&&(r=(i=n._sourceText.slice(n._pos).match(e))&&i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&n._sourceText.startsWith(i[0],n._pos)))&&(t&&(n._start=n._pos,r&&r.length&&(n._pos+=r.length)),i)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0===e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return e.prototype._testNextCharacter=function(e){var t=this._sourceText.charAt(this._pos);return"string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t)},e}();t.default=r},AxiF:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("FFOo"),o=n("b7mW"),a=n("G5J1");function l(e){return function(t){return 0===e?Object(a.b)():t.lift(new s(e))}}var s=function(){function e(e){if(this.total=e,this.total<0)throw new o.a}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.c(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},C2zF:function(e,t,n){!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(e){return e.replace(/\\(.)/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":t})}function l(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(n){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function s(e,t,n){t.queryText=n,t.query=l(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function u(t,r,i,a){var l=n(t);if(l.query)return c(t,r);var u=t.getSelection()||l.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var h=null,f=function(n,r){e.e_stop(r),n&&(n!=l.queryText&&(s(t,l,n),l.posFrom=l.posTo=t.getCursor()),h&&(h.style.opacity=1),c(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((h=r).style.opacity=.4)}))};!function(e,t,n,r,i){e.openDialog(t,f,{value:u,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:i})}(t,d(t),0,0,function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),l=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==l||"findPrev"==l||"findPersistentNext"==l||"findPersistentPrev"==l?(e.e_stop(r),s(t,n(t),i),t.execCommand(l)):"find"!=l&&"findPersistent"!=l||(e.e_stop(r),f(i,r))}),a&&u&&(s(t,l,u),c(t,r))}else o(t,d(t),"Search for:",u,function(e){e&&!l.query&&t.operation(function(){s(t,l,e),l.posFrom=l.posTo=t.getCursor(),c(t,r)})})}function c(t,r,o){t.operation(function(){var a=n(t),l=i(t,a.query,r?a.posFrom:a.posTo);(l.find(r)||(l=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(l.from(),l.to()),t.scrollIntoView({from:l.from(),to:l.to()},20),a.posFrom=l.from(),a.posTo=l.to(),o&&o(l.from(),l.to()))})}function p(e){e.operation(function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function d(e){return''+e.phrase("Search:")+' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function h(e,t,n){e.operation(function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else r.replace(n)})}function f(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,s=''+e.phrase(t?"Replace all:":"Replace:")+"";o(e,s+function(e){return' '+e.phrase("(Use /re/ syntax for regexp search)")+""}(e),s,r,function(n){n&&(n=l(n),o(e,function(e){return''+e.phrase("With:")+' '}(e),e.phrase("Replace with:"),"",function(r){if(r=a(r),t)h(e,n,r);else{p(e);var o=i(e,n,e.getCursor("from")),l=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return''+e.phrase("Replace?")+" "}(e),e.phrase("Replace?"),[function(){s(t)},l,function(){h(e,n,r)}]))},s=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),l()};l()}}))})}}e.commands.find=function(e){p(e),u(e)},e.commands.findPersistent=function(e){p(e),u(e,!1,!0)},e.commands.findPersistentNext=function(e){u(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){u(e,!0,!0,!0)},e.commands.findNext=u,e.commands.findPrev=function(e){u(e,!0)},e.commands.clearSearch=p,e.commands.replace=f,e.commands.replaceAll=function(e){f(e,!0)}}(n("VrN/"),n("uTOq"),n("Ku0u"))},CRiN:function(e,t,n){"use strict";var r,i=(r=n("VrN/"))&&r.__esModule?r:{default:r};i.default.defineOption("info",!1,function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var o=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);o.onMouseOver=(function(e,t){var n=e.state.info,r=t.target||t.srcElement;if("SPAN"===r.nodeName&&void 0===n.hoverTimeout){var o=r.getBoundingClientRect(),a=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(u,a);var l=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(u,a)},s=function t(){i.default.off(document,"mousemove",l),i.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},u=function(){i.default.off(document,"mousemove",l),i.default.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,o=r.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var l=o(a,r,e,n);l&&function(e,t,n){var r=document.createElement("div");r.className="CodeMirror-info",r.appendChild(n),document.body.appendChild(r);var o=r.getBoundingClientRect(),a=r.currentStyle||window.getComputedStyle(r),l=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),s=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),u=t.bottom;s>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(u=t.top-s),u<0&&(u=t.bottom);var c=Math.max(0,window.innerWidth-l-15);c>t.left&&(c=t.left),r.style.opacity=1,r.style.top=u+"px",r.style.left=c+"px";var p=void 0,d=function(){clearTimeout(p)},h=function(){clearTimeout(p),p=setTimeout(f,200)},f=function(){i.default.off(r,"mouseover",d),i.default.off(r,"mouseout",h),i.default.off(e.getWrapperElement(),"mouseout",h),r.style.opacity?(r.style.opacity=0,setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r)},600)):r.parentNode&&r.parentNode.removeChild(r)};i.default.on(r,"mouseover",d),i.default.on(r,"mouseout",h),i.default.on(e.getWrapperElement(),"mouseout",h)}(e,t,l)}}}(e,o)};i.default.on(document,"mousemove",l),i.default.on(e.getWrapperElement(),"mouseout",s)}}).bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",o.onMouseOver)}})},CS9Q:function(e,t,n){"use strict";var r=n("mrSG"),i=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}();n.d(t,"a",function(){return o});var o=function(e){function t(n,r){void 0===r&&(r=i.now);var o=e.call(this,n,function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.c(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i)},CbW8:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return u});var r=n("oycr"),i=n("uNde");function o(e,t){var n=new d(s.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:a,lookahead:l}}function a(){return this.lastToken=this.token,this.token=this.lookahead()}function l(){var e=this.token;if(e.kind!==s.EOF)do{e=e.next||(e.next=f(this,e))}while(e.kind===s.COMMENT);return e}var s=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function u(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}var c=String.prototype.charCodeAt,p=String.prototype.slice;function d(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function h(e){return isNaN(e)?s.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function f(e,t){var n=e.source,o=n.body,a=o.length,l=function(e,n,r){for(var i=e.length,o=t.end;o=a)return new d(s.EOF,a,a,u,f,t);var m=c.call(o,l);switch(m){case 33:return new d(s.BANG,l,l+1,u,f,t);case 35:return function(e,t,n,r,i){var o,a=e.body,l=t;do{o=c.call(a,++l)}while(null!==o&&(o>31||9===o));return new d(s.COMMENT,t,l,n,r,i,p.call(a,t+1,l))}(n,l,u,f,t);case 36:return new d(s.DOLLAR,l,l+1,u,f,t);case 38:return new d(s.AMP,l,l+1,u,f,t);case 40:return new d(s.PAREN_L,l,l+1,u,f,t);case 41:return new d(s.PAREN_R,l,l+1,u,f,t);case 46:if(46===c.call(o,l+1)&&46===c.call(o,l+2))return new d(s.SPREAD,l,l+3,u,f,t);break;case 58:return new d(s.COLON,l,l+1,u,f,t);case 61:return new d(s.EQUALS,l,l+1,u,f,t);case 64:return new d(s.AT,l,l+1,u,f,t);case 91:return new d(s.BRACKET_L,l,l+1,u,f,t);case 93:return new d(s.BRACKET_R,l,l+1,u,f,t);case 123:return new d(s.BRACE_L,l,l+1,u,f,t);case 124:return new d(s.PIPE,l,l+1,u,f,t);case 125:return new d(s.BRACE_R,l,l+1,u,f,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){for(var o=e.body,a=o.length,l=t+1,u=0;l!==a&&null!==(u=c.call(o,l))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++l;return new d(s.NAME,t,l,n,r,i,p.call(o,t,l))}(n,l,u,f,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,i,o,a){var l=e.body,u=n,f=t,v=!1;if(45===u&&(u=c.call(l,++f)),48===u){if((u=c.call(l,++f))>=48&&u<=57)throw Object(r.a)(e,f,"Invalid number, unexpected digit after 0: ".concat(h(u),"."))}else f=g(e,f,u),u=c.call(l,f);return 46===u&&(v=!0,u=c.call(l,++f),f=g(e,f,u),u=c.call(l,f)),69!==u&&101!==u||(v=!0,43!==(u=c.call(l,++f))&&45!==u||(u=c.call(l,++f)),f=g(e,f,u)),new d(v?s.FLOAT:s.INT,t,f,i,o,a,p.call(l,t,f))}(n,l,m,u,f,t);case 34:return 34===c.call(o,l+1)&&34===c.call(o,l+2)?function(e,t,n,o,a){for(var l=e.body,u=t+3,f=u,g=0,v="";u=48&&a<=57){do{a=c.call(i,++o)}while(a>=48&&a<=57);return o}throw Object(r.a)(e,o,"Invalid number, expected digit but got: ".concat(h(a),"."))}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}d.prototype.toJSON=d.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},CcnG:function(e,t,n){"use strict";n.r(t);var r=n("mrSG"),i=n("pugT"),o=n("K9Ia"),a=n("6blF"),l=n("p0ib"),s=function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e}({});function u(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function c(e){return"ng-container"===u(e)[1]}function p(e){return"ng-content"===u(e)[1]}function d(e){return null===e?null:u(e)[0]}function h(e,t){return e?":"+e+":"+t:t}var f={Aacute:"\xc1",aacute:"\xe1",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",AElig:"\xc6",aelig:"\xe6",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",Alpha:"\u0391",alpha:"\u03b1",amp:"&",and:"\u2227",ang:"\u2220",apos:"'",Aring:"\xc5",aring:"\xe5",asymp:"\u2248",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",bdquo:"\u201e",Beta:"\u0392",beta:"\u03b2",brvbar:"\xa6",bull:"\u2022",cap:"\u2229",Ccedil:"\xc7",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",clubs:"\u2663",cong:"\u2245",copy:"\xa9",crarr:"\u21b5",cup:"\u222a",curren:"\xa4",dagger:"\u2020",Dagger:"\u2021",darr:"\u2193",dArr:"\u21d3",deg:"\xb0",Delta:"\u0394",delta:"\u03b4",diams:"\u2666",divide:"\xf7",Eacute:"\xc9",eacute:"\xe9",Ecirc:"\xca",ecirc:"\xea",Egrave:"\xc8",egrave:"\xe8",empty:"\u2205",emsp:"\u2003",ensp:"\u2002",Epsilon:"\u0395",epsilon:"\u03b5",equiv:"\u2261",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",exist:"\u2203",fnof:"\u0192",forall:"\u2200",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",frasl:"\u2044",Gamma:"\u0393",gamma:"\u03b3",ge:"\u2265",gt:">",harr:"\u2194",hArr:"\u21d4",hearts:"\u2665",hellip:"\u2026",Iacute:"\xcd",iacute:"\xed",Icirc:"\xce",icirc:"\xee",iexcl:"\xa1",Igrave:"\xcc",igrave:"\xec",image:"\u2111",infin:"\u221e",int:"\u222b",Iota:"\u0399",iota:"\u03b9",iquest:"\xbf",isin:"\u2208",Iuml:"\xcf",iuml:"\xef",Kappa:"\u039a",kappa:"\u03ba",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",lceil:"\u2308",ldquo:"\u201c",le:"\u2264",lfloor:"\u230a",lowast:"\u2217",loz:"\u25ca",lrm:"\u200e",lsaquo:"\u2039",lsquo:"\u2018",lt:"<",macr:"\xaf",mdash:"\u2014",micro:"\xb5",middot:"\xb7",minus:"\u2212",Mu:"\u039c",mu:"\u03bc",nabla:"\u2207",nbsp:"\xa0",ndash:"\u2013",ne:"\u2260",ni:"\u220b",not:"\xac",notin:"\u2209",nsub:"\u2284",Ntilde:"\xd1",ntilde:"\xf1",Nu:"\u039d",nu:"\u03bd",Oacute:"\xd3",oacute:"\xf3",Ocirc:"\xd4",ocirc:"\xf4",OElig:"\u0152",oelig:"\u0153",Ograve:"\xd2",ograve:"\xf2",oline:"\u203e",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",oplus:"\u2295",or:"\u2228",ordf:"\xaa",ordm:"\xba",Oslash:"\xd8",oslash:"\xf8",Otilde:"\xd5",otilde:"\xf5",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",para:"\xb6",permil:"\u2030",perp:"\u22a5",Phi:"\u03a6",phi:"\u03c6",Pi:"\u03a0",pi:"\u03c0",piv:"\u03d6",plusmn:"\xb1",pound:"\xa3",prime:"\u2032",Prime:"\u2033",prod:"\u220f",prop:"\u221d",Psi:"\u03a8",psi:"\u03c8",quot:'"',radic:"\u221a",rang:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",rceil:"\u2309",rdquo:"\u201d",real:"\u211c",reg:"\xae",rfloor:"\u230b",Rho:"\u03a1",rho:"\u03c1",rlm:"\u200f",rsaquo:"\u203a",rsquo:"\u2019",sbquo:"\u201a",Scaron:"\u0160",scaron:"\u0161",sdot:"\u22c5",sect:"\xa7",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sim:"\u223c",spades:"\u2660",sub:"\u2282",sube:"\u2286",sum:"\u2211",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supe:"\u2287",szlig:"\xdf",Tau:"\u03a4",tau:"\u03c4",there4:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thinsp:"\u2009",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",times:"\xd7",trade:"\u2122",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",uArr:"\u21d1",Ucirc:"\xdb",ucirc:"\xfb",Ugrave:"\xd9",ugrave:"\xf9",uml:"\xa8",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",Uuml:"\xdc",uuml:"\xfc",weierp:"\u2118",Xi:"\u039e",xi:"\u03be",Yacute:"\xdd",yacute:"\xfd",yen:"\xa5",yuml:"\xff",Yuml:"\u0178",Zeta:"\u0396",zeta:"\u03b6",zwj:"\u200d",zwnj:"\u200c"},g="\ue500";f.ngsp=g;var v,m,y=function(){function e(e){var t=void 0===e?{}:e,n=t.closedByChildren,r=t.requiredParents,i=t.implicitNamespacePrefix,o=t.contentType,a=void 0===o?s.PARSABLE_DATA:o,l=t.closedByParent,u=void 0!==l&&l,c=t.isVoid,p=void 0!==c&&c,d=t.ignoreFirstLf,h=void 0!==d&&d,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(e){return f.closedByChildren[e]=!0}),this.isVoid=p,this.closedByParent=u||p,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(e){return f.requiredParents[e]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=a,this.ignoreFirstLf=h}return e.prototype.requireExtraParent=function(e){if(!this.requiredParents)return!1;if(!e)return!0;var t=e.toLowerCase();return!("template"===t||"ng-template"===e)&&1!=this.requiredParents[t]},e.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},e}();function b(e){return m||(v=new y,m={base:new y({isVoid:!0}),meta:new y({isVoid:!0}),area:new y({isVoid:!0}),embed:new y({isVoid:!0}),link:new y({isVoid:!0}),img:new y({isVoid:!0}),input:new y({isVoid:!0}),param:new y({isVoid:!0}),hr:new y({isVoid:!0}),br:new y({isVoid:!0}),source:new y({isVoid:!0}),track:new y({isVoid:!0}),wbr:new y({isVoid:!0}),p:new y({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new y({closedByChildren:["tbody","tfoot"]}),tbody:new y({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new y({closedByChildren:["tbody"],closedByParent:!0}),tr:new y({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new y({closedByChildren:["td","th"],closedByParent:!0}),th:new y({closedByChildren:["td","th"],closedByParent:!0}),col:new y({requiredParents:["colgroup"],isVoid:!0}),svg:new y({implicitNamespacePrefix:"svg"}),math:new y({implicitNamespacePrefix:"math"}),li:new y({closedByChildren:["li"],closedByParent:!0}),dt:new y({closedByChildren:["dt","dd"]}),dd:new y({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new y({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new y({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new y({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new y({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new y({closedByChildren:["optgroup"],closedByParent:!0}),option:new y({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new y({ignoreFirstLf:!0}),listing:new y({ignoreFirstLf:!0}),style:new y({contentType:s.RAW_TEXT}),script:new y({contentType:s.RAW_TEXT}),title:new y({contentType:s.ESCAPABLE_RAW_TEXT}),textarea:new y({contentType:s.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),m[e.toLowerCase()]||v}var C=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),w=function(){function e(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return e.parse=function(t){var n,r=[],i=function(e,t){t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)},o=new e,a=o,l=!1;for(C.lastIndex=0;n=C.exec(t);){if(n[1]){if(l)throw new Error("Nesting :not is not allowed in a selector");l=!0,a=new e,o.notSelectors.push(a)}if(n[2]&&a.setElement(n[2]),n[3]&&a.addClassName(n[3]),n[4]&&a.addAttribute(n[4],n[6]),n[7]&&(l=!1,a=o),n[8]){if(l)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=a=new e}}return i(r,o),r},e.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},e.prototype.hasElementSelector=function(){return!!this.element},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r":"<"+e+t+n+">"},e.prototype.getAttrs=function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(t){return e+="."+t}),this.attrs)for(var t=0;t1&&(n=new E(e),this._listContexts.push(n));for(var r=0;r0)||this.listContext&&this.listContext.alreadyMatched||(n=!_.createNotMatcher(this.notSelectors).match(e,null)),!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),S=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),D=(Function,function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}));function T(e){var t=function(e){var t=e.classNames&&e.classNames.length?Object(r.g)([8],e.classNames):[],n=e.element&&"*"!==e.element?e.element:"";return Object(r.g)([n],e.attrs,t)}(e),n=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(function(e){return n=(t=e).classNames&&t.classNames.length?Object(r.g)([8],t.classNames):[],t.element?Object(r.g)([5,t.element],t.attrs,n):t.attrs.length?Object(r.g)([3],t.attrs,n):t.classNames&&t.classNames.length?Object(r.g)([9],t.classNames):[];var t,n}):[];return t.concat.apply(t,Object(r.g)(n))}function x(e){return w.parse(e).map(T)}var O=/-+([a-z0-9])/g;function L(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function M(e){throw new Error("Internal Error: "+e)}var I,V="ngSyntaxError",k="ngParseErrors";function N(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function F(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(F).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}(I={})[4]=4,I[1]=1,I[2]=2,I[0]=0,I[3]=3;var H=function(){function e(e,t,n){this.filePath=e,this.name=t,this.members=n}return e.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},e}();function j(e){return e.replace(/\W/g,"_")}var R=0,P=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Z=function(){function e(e,t,n,r,i){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),B=function(){function e(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansionCase(this,t)},e}(),U=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e,t){return e.visitAttribute(this,t)},e}(),G=function(){function e(e,t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=e,this.attrs=t,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),q=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitComment(this,t)},e}();function z(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}var W=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],K=new(function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected 'interpolation' to be an array, [start, end].");if(null!=t){var n=t[0],r=t[1];W.forEach(function(e){if(e.test(n)||e.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}(0,t),new e(t[0],t[1])):K},e}())("{{","}}"),Q=/^([^:\/?#]+):/,$="select",Y="link",X="rel",J="href",ee="stylesheet",te="style",ne="script",re="ngNonBindable",ie="ngProjectAs";function oe(e){var t=null,n=null,r=null,i=!1,o="";e.attrs.forEach(function(e){var a=e.name.toLowerCase();a==$?t=e.value:a==J?n=e.value:a==X?r=e.value:e.name==re?i=!0:e.name==ie&&e.value.length>0&&(o=e.value)}),t=function(e){return null===e||0===e.length?"*":e}(t);var a=e.name.toLowerCase(),l=ae.OTHER;return p(a)?l=ae.NG_CONTENT:a==te?l=ae.STYLE:a==ne?l=ae.SCRIPT:a==Y&&r==ee&&(l=ae.STYLESHEET),new le(l,t,n,i,o)}var ae=function(e){return e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER",e}({}),le=function(){return function(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}(),se=0,ue=9,ce=10,pe=11,de=12,he=13,fe=32,ge=34,ve=36,me=39,ye=43,be=45,Ce=47,we=59,_e=61,Ee=62,Ae=48,Se=57,De=65,Te=70,xe=90,Oe=95,Le=97,Me=102,Ie=110,Ve=114,ke=116,Ne=118,Fe=122,He=123,je=160;function Re(e){return e>=ue&&e<=fe||e==je}function Pe(e){return Ae<=e&&e<=Se}function Ze(e){return e>=Le&&e<=Fe||e>=De&&e<=xe}var Be=function(e){return e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error",e}({}),Ue=["var","let","as","null","undefined","true","false","if","else","this"],Ge=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new Qe(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}(),qe=function(){function e(e,t,n,r){this.index=e,this.type=t,this.numValue=n,this.strValue=r}return e.prototype.isCharacter=function(e){return this.type==Be.Character&&this.numValue==e},e.prototype.isNumber=function(){return this.type==Be.Number},e.prototype.isString=function(){return this.type==Be.String},e.prototype.isOperator=function(e){return this.type==Be.Operator&&this.strValue==e},e.prototype.isIdentifier=function(){return this.type==Be.Identifier},e.prototype.isKeyword=function(){return this.type==Be.Keyword},e.prototype.isKeywordLet=function(){return this.type==Be.Keyword&&"let"==this.strValue},e.prototype.isKeywordAs=function(){return this.type==Be.Keyword&&"as"==this.strValue},e.prototype.isKeywordNull=function(){return this.type==Be.Keyword&&"null"==this.strValue},e.prototype.isKeywordUndefined=function(){return this.type==Be.Keyword&&"undefined"==this.strValue},e.prototype.isKeywordTrue=function(){return this.type==Be.Keyword&&"true"==this.strValue},e.prototype.isKeywordFalse=function(){return this.type==Be.Keyword&&"false"==this.strValue},e.prototype.isKeywordThis=function(){return this.type==Be.Keyword&&"this"==this.strValue},e.prototype.isError=function(){return this.type==Be.Error},e.prototype.toNumber=function(){return this.type==Be.Number?this.numValue:-1},e.prototype.toString=function(){switch(this.type){case Be.Character:case Be.Identifier:case Be.Keyword:case Be.Operator:case Be.String:case Be.Error:return this.strValue;case Be.Number:return this.numValue.toString();default:return null}},e}();function ze(e,t){return new qe(e,Be.Character,t,String.fromCharCode(t))}function We(e,t){return new qe(e,Be.Operator,0,t)}var Ke=new qe(-1,Be.Character,0,""),Qe=function(){function e(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return e.prototype.advance=function(){this.peek=++this.index>=this.length?se:this.input.charCodeAt(this.index)},e.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=fe;){if(++r>=t){n=se;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if($e(n))return this.scanIdentifier();if(Pe(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),Pe(this.peek)?this.scanNumber(i):ze(i,46);case 40:case 41:case He:case 125:case 91:case 93:case 44:case 58:case we:return this.scanCharacter(i,n);case me:case ge:return this.scanString();case 35:case ye:case be:case 42:case Ce:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Ee:return this.scanComplexOperator(i,String.fromCharCode(n),_e,"=");case 33:case _e:return this.scanComplexOperator(i,String.fromCharCode(n),_e,"=",_e,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case je:for(;Re(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},e.prototype.scanCharacter=function(e,t){return this.advance(),ze(e,t)},e.prototype.scanOperator=function(e,t){return this.advance(),We(e,t)},e.prototype.scanComplexOperator=function(e,t,n,r,i,o){this.advance();var a=t;return this.peek==n&&(this.advance(),a+=r),null!=i&&this.peek==i&&(this.advance(),a+=o),We(e,a)},e.prototype.scanIdentifier=function(){var e=this.index;for(this.advance();Ye(this.peek);)this.advance();var t=this.input.substring(e,this.index);return Ue.indexOf(t)>-1?new qe(e,Be.Keyword,0,t):new qe(e,Be.Identifier,0,t)},e.prototype.scanNumber=function(e){var t,n=this.index===e;for(this.advance();;){if(Pe(this.peek));else if(46==this.peek)n=!1;else{if(101!=(t=this.peek)&&69!=t)break;if(this.advance(),Xe(this.peek)&&this.advance(),!Pe(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r=this.input.substring(e,this.index),i=n?function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(r):parseFloat(r);return new qe(e,Be.Number,i,"")},e.prototype.scanString=function(){var e=this.index,t=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=t;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var a=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);o=parseInt(a,16);for(var l=0;l<5;l++)this.advance()}else o=Je(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==se)return this.error("Unterminated quote",0);this.advance()}var s=i.substring(r,this.index);return this.advance(),new qe(e,Be.String,0,n+s)},e.prototype.error=function(e,t){var n=this.index+t;return function(e,t){return new qe(n,Be.Error,0,t)}(0,"Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}();function $e(e){return Le<=e&&e<=Fe||De<=e&&e<=xe||e==Oe||e==ve}function Ye(e){return Ze(e)||Pe(e)||e==Oe||e==ve}function Xe(e){return e==be||e==ye}function Je(e){switch(e){case Ie:return ce;case Me:return de;case Ve:return he;case ke:return ue;case Ne:return pe;default:return e}}var et=function(){return function(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r}}(),tt=function(){return function(e,t){this.start=e,this.end=t}}(),nt=function(){function e(e){this.span=e}return e.prototype.visit=function(e,t){return void 0===t&&(t=null),null},e.prototype.toString=function(){return"AST"},e}(),rt=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitQuote(this,t)},t.prototype.toString=function(){return"Quote"},t}(nt),it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.visit=function(e,t){void 0===t&&(t=null)},t}(nt),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(nt),at=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(nt),lt=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(nt),st=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(nt),ut=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.value=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(nt),ct=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(nt),pt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.obj=n,i.key=r,i}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(nt),dt=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.obj=n,o.key=r,o.value=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(nt),ht=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.exp=n,o.name=r,o.args=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(nt),ft=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(nt),gt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(nt),vt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keys=n,i.values=r,i}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(nt),mt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.strings=n,i.expressions=r,i}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(nt),yt=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.operation=n,o.left=r,o.right=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(nt),bt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(nt),Ct=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(this,t)},t}(nt),wt=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(nt),_t=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(nt),Et=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.target=n,i.args=r,i}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(nt),At=function(e){function t(t,n,r,i){var o=e.call(this,new tt(0,null==n?0:n.length))||this;return o.ast=t,o.source=n,o.location=r,o.errors=i,o}return Object(r.c)(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),this.ast.visit(e,t)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(nt),St=function(){return function(e,t,n,r,i){this.span=e,this.key=t,this.keyIsVar=n,this.name=r,this.expression=i}}(),Dt=function(){function e(){}return e.prototype.visitBinary=function(e,t){return e.left.visit(this),e.right.visit(this),null},e.prototype.visitChain=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this),null},e.prototype.visitPipe=function(e,t){return e.exp.visit(this),this.visitAll(e.args,t),null},e.prototype.visitFunctionCall=function(e,t){return e.target.visit(this),this.visitAll(e.args,t),null},e.prototype.visitImplicitReceiver=function(e,t){return null},e.prototype.visitInterpolation=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitKeyedRead=function(e,t){return e.obj.visit(this),e.key.visit(this),null},e.prototype.visitKeyedWrite=function(e,t){return e.obj.visit(this),e.key.visit(this),e.value.visit(this),null},e.prototype.visitLiteralArray=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitLiteralMap=function(e,t){return this.visitAll(e.values,t)},e.prototype.visitLiteralPrimitive=function(e,t){return null},e.prototype.visitMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){return e.expression.visit(this),null},e.prototype.visitNonNullAssert=function(e,t){return e.expression.visit(this),null},e.prototype.visitPropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitPropertyWrite=function(e,t){return e.receiver.visit(this),e.value.visit(this),null},e.prototype.visitSafePropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitSafeMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitAll=function(e,t){var n=this;return e.forEach(function(e){return e.visit(n,t)}),null},e.prototype.visitQuote=function(e,t){return null},e}(),Tt=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new mt(e.span,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new ft(e.span,e.value)},e.prototype.visitPropertyRead=function(e,t){return new st(e.span,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new ut(e.span,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new ct(e.span,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new wt(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new _t(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new Et(e.span,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new gt(e.span,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new vt(e.span,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new yt(e.span,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new bt(e.span,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new Ct(e.span,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new lt(e.span,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new ht(e.span,e.exp.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitKeyedRead=function(e,t){return new pt(e.span,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new dt(e.span,e.obj.visit(this),e.key.visit(this),e.value.visit(this))},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=0;n0&&this._reportError("Host binding expression cannot contain "+i.join(" "),e,t),new At(r,e,t,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new et(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n){var r=this._parseQuote(e,t);if(null!=r)return r;this._checkNoInterpolation(e,t,n);var i=this._stripComments(e),o=this._lexer.tokenize(i);return new jt(e,t,o,i.length,!1,this.errors,e.length-i.length).parseChain()},e.prototype._parseQuote=function(e,t){if(null==e)return null;var n=e.indexOf(":");if(-1==n)return null;var r=e.substring(0,n).trim();if(!function(e){if(0==r.length)return!1;var t=new Qe(r);if(!$e(t.peek))return!1;for(t.advance();t.peek!==se;){if(!Ye(t.peek))return!1;t.advance()}return!0}())return null;var i=e.substring(n+1);return new rt(new tt(0,e.length),r,i,t)},e.prototype.parseTemplateBindings=function(e,t,n){var r=this._lexer.tokenize(t);return new jt(t,n,r,t.length,!1,this.errors,0).parseTemplateBindings(e)},e.prototype.parseInterpolation=function(e,t,n){void 0===n&&(n=K);var r=this.splitInterpolation(e,t,n);if(null==r)return null;for(var i=[],o=0;o0?(s+=n.start.length,a.push(c),l.push(s),s+=c.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(i,u,n)+" in",t),a.push("$implict"),l.push(s))}return new kt(o,a,l)},e.prototype.wrapLiteralPrimitive=function(e,t){return new At(new ft(new tt(0,null==e?0:e.length),e),e,t,this.errors)},e.prototype._stripComments=function(e){var t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e},e.prototype._commentStart=function(e){for(var t,n=null,r=0;r1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",e,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",t)},e.prototype._findInterpolationErrorColumn=function(e,t,n){for(var r="",i=0;i":case"<=":case">=":this.advance();var n=this.parseAdditive();e=new yt(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();this.next.type==Be.Operator;){var t=this.next.strValue;switch(t){case"+":case"-":this.advance();var n=this.parseMultiplicative();e=new yt(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();this.next.type==Be.Operator;){var t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();e=new yt(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parsePrefix=function(){if(this.next.type==Be.Operator){var e=this.inputIndex,t=this.next.strValue,n=void 0;switch(t){case"+":return this.advance(),n=this.parsePrefix(),new yt(this.span(e),"-",n,new ft(new tt(e,e),0));case"-":return this.advance(),n=this.parsePrefix(),new yt(this.span(e),t,new ft(new tt(e,e),0),n);case"!":return this.advance(),n=this.parsePrefix(),new bt(this.span(e),n)}}return this.parseCallChain()},e.prototype.parseCallChain=function(){for(var e=this.parsePrimary();;)if(this.optionalCharacter(46))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.optionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var t=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();e=new dt(this.span(e.span.start),e,t,n)}else e=new pt(this.span(e.span.start),e,t)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new Et(this.span(e.span.start),e,r)}else{if(!this.optionalOperator("!"))return e;e=new Ct(this.span(e.span.start),e)}},e.prototype.parsePrimary=function(){var e=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new ft(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new ft(this.span(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new ft(this.span(e),!0);if(this.next.isKeywordFalse())return this.advance(),new ft(this.span(e),!1);if(this.next.isKeywordThis())return this.advance(),new ot(this.span(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new gt(this.span(e),n)}if(this.next.isCharacter(He))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new ot(this.span(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new ft(this.span(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new ft(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new it(this.span(e))):(this.error("Unexpected token "+this.next),new it(this.span(e)))},e.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},e.prototype.parseLiteralMap=function(){var e=[],t=[],n=this.inputIndex;if(this.expectCharacter(He),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();e.push({key:i,quoted:r}),this.expectCharacter(58),t.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new vt(this.span(n),e,t)},e.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var n=e.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return t?new _t(o,e,r,i):new wt(o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new it(this.span(n))):new ct(this.span(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new it(this.span(n));var a=this.parseConditional();return new ut(this.span(n),e,r,a)}return new st(this.span(n),e,r)},e.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},e.prototype.expectTemplateBindingKey=function(){var e="",t=!1;do{e+=this.expectIdentifierOrKeywordOrString(),(t=this.optionalOperator("-"))&&(e+="-")}while(t);return e.toString()},e.prototype.parseTemplateBindings=function(e){var t=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,a=!1;t?(i=o=e,t=!1):((a=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=a?i:e+i[0].toUpperCase()+i.substring(1),this.optionalCharacter(58));var l=null,s=null;if(a)l=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs())this.advance(),l=i,o=this.expectTemplateBindingKey(),a=!0;else if(this.next!==Ke&&!this.peekKeywordLet()){var u=this.inputIndex,c=this.parsePipe(),p=this.input.substring(u-this.offset,this.inputIndex-this.offset);s=new At(c,p,this.location,this.errors)}if(n.push(new St(this.span(r),o,a,l,s)),this.peekKeywordAs()&&!a){var d=this.inputIndex;this.advance();var h=this.expectTemplateBindingKey();n.push(new St(this.span(d),h,!0,o,null))}this.optionalCharacter(we)||this.optionalCharacter(44)}while(this.index0&&t<0;)if(t++,(s=n.charCodeAt(--i))==ce){o--;var l=n.substr(0,i-1).lastIndexOf(String.fromCharCode(ce));a=l>0?i-l:i}else a--;for(;i0;){var s=n.charCodeAt(i);i++,t--,s==ce?(o++,a=0):a++}return new e(this.file,i,o,a)},e.prototype.getContext=function(e,t){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,a=0;o0&&(o++,"\n"!=n[--r]||++a!=t););for(o=0,a=0;o]"+e.after+'")':this.msg},e.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},e}(),qt=function(e){return e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE=13]="DOC_TYPE",e[e.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",e[e.EOF=19]="EOF",e}({}),zt=function(){return function(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n}}(),Wt=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return Object(r.c)(t,e),t}(Gt),Kt=function(){return function(e,t){this.tokens=e,this.errors=t}}(),Qt=/\r\n?/g;function $t(e){return'Unexpected character "'+(e===se?"EOF":String.fromCharCode(e))+'"'}function Yt(e){return'Unknown entity "'+e+'" - use the "&#;" or "&#x;" syntax'}var Xt=function(){return function(e){this.error=e}}(),Jt=function(){function e(e,t,n,r){void 0===r&&(r=K),this._file=e,this._getTagDefinition=t,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=e.content,this._length=e.content.length,this._advance()}return e.prototype._processCarriageReturns=function(e){return e.replace(Qt,"\n")},e.prototype.tokenize=function(){for(;this._peek!==se;){var e=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(be)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Ce)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Xt))throw t;this.errors.push(t.error)}}return this._beginToken(qt.EOF),this._endToken([]),new Kt(function(e){for(var t=[],n=void 0,r=0;r=this._length)throw this._createError($t(se),this._getSpan());this._peek===ce?(this._line++,this._column=0):this._peek!==ce&&this._peek!==he&&this._column++,this._index++,this._peek=this._index>=this._length?se:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?se:this._input.charCodeAt(this._index+1)},e.prototype._attemptCharCode=function(e){return this._peek===e&&(this._advance(),!0)},e.prototype._attemptCharCodeCaseInsensitive=function(e){return t=e,an(this._peek)==an(t)&&(this._advance(),!0);var t},e.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError($t(this._peek),this._getSpan(t,t))},e.prototype._attemptStr=function(e){var t=e.length;if(this._index+t>this._length)return!1;for(var n=this._savePosition(),r=0;rr.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e));return this._endToken([this._processCarriageReturns(o.join(""))],r)},e.prototype._consumeComment=function(e){var t=this;this._beginToken(qt.COMMENT_START,e),this._requireCharCode(be),this._endToken([]);var n=this._consumeRawText(!1,be,function(){return t._attemptStr("->")});this._beginToken(qt.COMMENT_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeCdata=function(e){var t=this;this._beginToken(qt.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return t._attemptStr("]>")});this._beginToken(qt.CDATA_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(qt.DOC_TYPE,e),this._attemptUntilChar(Ee),this._advance(),this._endToken([this._input.substring(e.offset+2,this._index-1)])},e.prototype._consumePrefixAndName=function(){for(var e,t,n=this._index,r=null;58!==this._peek&&!(((e=this._peek)Se));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),t=this._index):t=n,this._requireCharCodeUntilFn(tn,this._index===t?1:0),[r,this._input.substring(t,this._index)]},e.prototype._consumeTagOpen=function(e){var t,n,r=this._savePosition();try{if(!Ze(this._peek))throw this._createError($t(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(e),n=(t=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(en);this._peek!==Ce&&this._peek!==Ee;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(en),this._attemptCharCode(_e)&&(this._attemptCharCodeUntilFn(en),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(en);this._consumeTagOpenEnd()}catch(a){if(a instanceof Xt)return this._restorePosition(r),this._beginToken(qt.TEXT,e),void this._endToken(["<"]);throw a}var o=this._getTagDefinition(t).contentType;o===s.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===s.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},e.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,60,function(){return!!n._attemptCharCode(Ce)&&(n._attemptCharCodeUntilFn(en),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(en),n._attemptCharCode(Ee)))});this._beginToken(qt.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(qt.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeName=function(){this._beginToken(qt.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},e.prototype._consumeAttributeValue=function(){var e;if(this._beginToken(qt.ATTR_VALUE),this._peek===me||this._peek===ge){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(tn,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(Ce)?qt.TAG_OPEN_END_VOID:qt.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(Ee),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(qt.TAG_CLOSE,e),this._attemptCharCodeUntilFn(en);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(en),this._requireCharCode(Ee),this._endToken(t)},e.prototype._consumeExpansionFormStart=function(){this._beginToken(qt.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(He),this._endToken([]),this._expansionCaseStack.push(qt.EXPANSION_FORM_START),this._beginToken(qt.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(en),this._beginToken(qt.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(en)},e.prototype._consumeExpansionCaseStart=function(){this._beginToken(qt.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(He).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(en),this._beginToken(qt.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(He),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(en),this._expansionCaseStack.push(qt.EXPANSION_CASE_EXP_START)},e.prototype._consumeExpansionCaseEnd=function(){this._beginToken(qt.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(en),this._expansionCaseStack.pop()},e.prototype._consumeExpansionFormEnd=function(){this._beginToken(qt.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},e.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(qt.TEXT,e);var t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])},e.prototype._isTextEnd=function(){if(60===this._peek||this._peek===se)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(on(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},e.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},e.prototype._readUntil=function(e){var t=this._index;return this._attemptUntilChar(e),this._input.substring(t,this._index)},e.prototype._restorePosition=function(e){this._peek=e[0],this._index=e[1],this._column=e[2],this._line=e[3];var t=e[4];t0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===qt.EXPANSION_CASE_EXP_START},e.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===qt.EXPANSION_FORM_START},e}();function en(e){return!Re(e)||e===se}function tn(e){return Re(e)||e===Ee||e===Ce||e===me||e===ge||e===_e}function nn(e){return e==we||e==se||!function(e){return e>=Le&&e<=Me||e>=De&&e<=Te||Pe(e)}(e)}function rn(e){return e==we||e==se||!Ze(e)}function on(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==He&&!r}function an(e){return e>=Le&&e<=Fe?e-Le+De:e}var ln=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.elementName=t,i}return Object(r.c)(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(Gt),sn=function(){return function(e,t){this.rootNodes=e,this.errors=t}}(),un=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=K);var i=function(e,t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=K),new Jt(new Zt(e,t),n,r,i).tokenize()}(e,t,this.getTagDefinition,n,r),o=new cn(i.tokens,this.getTagDefinition).build();return new sn(o.rootNodes,i.errors.concat(o.errors))},e}(),cn=function(){function e(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return e.prototype.build=function(){for(;this._peek.type!==qt.EOF;)this._peek.type===qt.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===qt.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===qt.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===qt.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===qt.TEXT||this._peek.type===qt.RAW_TEXT||this._peek.type===qt.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===qt.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new sn(this._rootNodes,this._errors)},e.prototype._advance=function(){var e=this._peek;return this._index0)return this._errors=this._errors.concat(o.errors),null;var a=new Bt(t.sourceSpan.start,i.sourceSpan.end),l=new Bt(n.sourceSpan.start,i.sourceSpan.end);return new B(t.parts[0],o.rootNodes,a,t.sourceSpan,l)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[qt.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==qt.EXPANSION_FORM_START&&this._peek.type!==qt.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===qt.EXPANSION_CASE_EXP_END){if(!pn(n,qt.EXPANSION_CASE_EXP_START))return this._errors.push(ln.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===qt.EXPANSION_FORM_END){if(!pn(n,qt.EXPANSION_FORM_START))return this._errors.push(ln.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===qt.EOF)return this._errors.push(ln.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}},e.prototype._consumeText=function(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new P(t,e.sourceSpan))},e.prototype._closeVoidElement=function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()},e.prototype._consumeStartTag=function(e){for(var t=e.parts[0],n=e.parts[1],r=[];this._peek.type===qt.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===qt.TAG_OPEN_END_VOID){this._advance(),o=!0;var a=this.getTagDefinition(i);a.canSelfClose||null!==d(i)||a.isVoid||this._errors.push(ln.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===qt.TAG_OPEN_END&&(this._advance(),o=!1);var l=new Bt(e.sourceSpan.start,this._peek.sourceSpan.start),s=new G(i,r,[],l,l,void 0);this._pushElement(s),o&&(this._popElement(i),s.endSourceSpan=l)},e.prototype._pushElement=function(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop();var n=this.getTagDefinition(e.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var a=new G(n.parentToAdd,[],[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan);this._insertBeforeContainer(i,o,a)}this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(ln.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(ln.create(t,e.sourceSpan,'Unexpected closing tag "'+t+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags'))},e.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var n=this._elementStack[t];if(n.name==e)return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t=h(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===qt.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new U(t,r,new Bt(e.sourceSpan.start,n),i)},e.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},e.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if(!c(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}},e.prototype._addToParent=function(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)},e.prototype._insertBeforeContainer=function(e,t,n){if(t){if(e){var r=e.children.indexOf(t);e.children[r]=n}else this._rootNodes.push(n);n.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,n)}else this._addToParent(n),this._elementStack.push(n)},e.prototype._getElementFullName=function(e,t,n){return null==e&&null==(e=this.getTagDefinition(t).implicitNamespacePrefix)&&null!=n&&(e=d(n.name)),h(e,t)},e}();function pn(e,t){return e.length>0&&e[e.length-1]===t}var dn=function(e){function t(){return e.call(this,b)||this}return Object(r.c)(t,e),t.prototype.parse=function(t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=K),e.prototype.parse.call(this,t,n,r,i)},t}(un),hn="@angular/core",fn=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:hn},e.ElementRef={name:"ElementRef",moduleName:hn},e.NgModuleRef={name:"NgModuleRef",moduleName:hn},e.ViewContainerRef={name:"ViewContainerRef",moduleName:hn},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:hn},e.QueryList={name:"QueryList",moduleName:hn},e.TemplateRef={name:"TemplateRef",moduleName:hn},e.Renderer2={name:"Renderer2",moduleName:hn},e.CodegenComponentFactoryResolver={name:"\u0275CodegenComponentFactoryResolver",moduleName:hn},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:hn},e.ComponentFactory={name:"ComponentFactory",moduleName:hn},e.ComponentRef={name:"ComponentRef",moduleName:hn},e.NgModuleFactory={name:"NgModuleFactory",moduleName:hn},e.createModuleFactory={name:"\u0275cmf",moduleName:hn},e.moduleDef={name:"\u0275mod",moduleName:hn},e.moduleProviderDef={name:"\u0275mpd",moduleName:hn},e.RegisterModuleFactoryFn={name:"\u0275registerModuleFactory",moduleName:hn},e.inject={name:"inject",moduleName:hn},e.INJECTOR={name:"INJECTOR",moduleName:hn},e.Injector={name:"Injector",moduleName:hn},e.defineInjectable={name:"defineInjectable",moduleName:hn},e.InjectableDef={name:"\u0275InjectableDef",moduleName:hn},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:hn},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:hn},e.SecurityContext={name:"SecurityContext",moduleName:hn},e.LOCALE_ID={name:"LOCALE_ID",moduleName:hn},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:hn},e.inlineInterpolate={name:"\u0275inlineInterpolate",moduleName:hn},e.interpolate={name:"\u0275interpolate",moduleName:hn},e.EMPTY_ARRAY={name:"\u0275EMPTY_ARRAY",moduleName:hn},e.EMPTY_MAP={name:"\u0275EMPTY_MAP",moduleName:hn},e.Renderer={name:"Renderer",moduleName:hn},e.viewDef={name:"\u0275vid",moduleName:hn},e.elementDef={name:"\u0275eld",moduleName:hn},e.anchorDef={name:"\u0275and",moduleName:hn},e.textDef={name:"\u0275ted",moduleName:hn},e.directiveDef={name:"\u0275did",moduleName:hn},e.providerDef={name:"\u0275prd",moduleName:hn},e.queryDef={name:"\u0275qud",moduleName:hn},e.pureArrayDef={name:"\u0275pad",moduleName:hn},e.pureObjectDef={name:"\u0275pod",moduleName:hn},e.purePipeDef={name:"\u0275ppd",moduleName:hn},e.pipeDef={name:"\u0275pid",moduleName:hn},e.nodeValue={name:"\u0275nov",moduleName:hn},e.ngContentDef={name:"\u0275ncd",moduleName:hn},e.unwrapValue={name:"\u0275unv",moduleName:hn},e.createRendererType2={name:"\u0275crt",moduleName:hn},e.RendererType2={name:"RendererType2",moduleName:hn},e.ViewDefinition={name:"\u0275ViewDefinition",moduleName:hn},e.createComponentFactory={name:"\u0275ccf",moduleName:hn},e}(),gn=function(){function e(e){void 0===e&&(e=null),this.modifiers=e,e||(this.modifiers=[])}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),vn=function(e){return e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None",e}({}),mn=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.name=t,r}return Object(r.c)(t,e),t.prototype.visitType=function(e,t){return e.visitBuiltinType(this,t)},t}(gn),yn=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this,n)||this;return i.value=t,i.typeParams=r,i}return Object(r.c)(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(gn),bn=new mn(vn.Dynamic),Cn=new mn(vn.Inferred),wn=new mn(vn.Bool),_n=new mn(vn.Number),En=new mn(vn.None),An=function(e){return e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseAnd=11]="BitwiseAnd",e[e.Lower=12]="Lower",e[e.LowerEquals=13]="LowerEquals",e[e.Bigger=14]="Bigger",e[e.BiggerEquals=15]="BiggerEquals",e}({});function Sn(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}(e);for(var n=0;n>2),t+=Cr((3&r)<<4|(isNaN(i)?0:i>>4)),t+=isNaN(i)?"=":Cr((15&i)<<2|o>>6),t+=isNaN(i)||isNaN(o)?"=":Cr(63&o)}return t}(JSON.stringify(this,null,0)):""},e}();function yr(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=Cr(n)}while(e>0);return t}var br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Cr(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return br[e]}var wr,_r=/'|\\|\n|\r|\$/g,Er=/^[$A-Z_][0-9A-Z_$]*$/i,Ar=" ",Sr=sr("error",null,null),Dr=sr("stack",null,null),Tr=function(){return function(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}(),xr=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new Tr(e)]}return e.createRoot=function(){return new e(0)},Object.defineProperty(e.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),e.prototype.println=function(e,t){void 0===t&&(t=""),this.print(e||null,t,!0)},e.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},e.prototype.lineLength=function(){return this._currentLine.indent*Ar.length+this._currentLine.partsLength},e.prototype.print=function(e,t,n){void 0===n&&(n=!1),t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),n&&this._lines.push(new Tr(this._indent))},e.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},e.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.pushClass=function(e){this._classes.push(e)},e.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(e.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.toSource=function(){return this.sourceLines.map(function(e){return e.parts.length>0?Mr(e.indent)+e.parts.join(""):""}).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new mr(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},o=0;or)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(e.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),e}(),Or=function(){function e(e){this._escapeDollarInStrings=e}return e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitReturnStmt=function(e,t){return t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitIfStmt=function(e,t){t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");var n=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null},e.prototype.visitThrowStmt=function(e,t){return t.print(e,"throw "),e.error.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitCommentStmt=function(e,t){return e.multiline?t.println(e,"/* "+e.comment+" */"):e.comment.split("\n").forEach(function(n){t.println(e,"// "+n)}),null},e.prototype.visitJSDocCommentStmt=function(e,t){return t.println(e,"/*"+e.toString()+"*/"),null},e.prototype.visitWriteVarExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),t.print(e,e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitWriteKeyExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitWritePropExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"."+e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitInvokeMethodExpr=function(e,t){e.receiver.visitExpression(this,t);var n=e.name;return null!=e.builtin&&null==(n=this.getBuiltinMethodName(e.builtin))?null:(t.print(e,"."+n+"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null)},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},e.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")},e.prototype.visitTypeofExpr=function(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(null!=e.builtin)switch(e.builtin){case Tn.Super:n="super";break;case Tn.This:n="this";break;case Tn.CatchError:n=Sr.name;break;case Tn.CatchStack:n=Dr.name;break;default:throw new Error("Unknown builtin variable "+e.builtin)}return t.print(e,n),null},e.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},e.prototype.visitLiteralExpr=function(e,t){var n=e.value;return t.print(e,"string"==typeof n?Lr(n,this._escapeDollarInStrings):""+n),null},e.prototype.visitConditionalExpr=function(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null},e.prototype.visitNotExpr=function(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),null},e.prototype.visitBinaryOperatorExpr=function(e,t){var n;switch(e.operator){case An.Equals:n="==";break;case An.Identical:n="===";break;case An.NotEquals:n="!=";break;case An.NotIdentical:n="!==";break;case An.And:n="&&";break;case An.BitwiseAnd:n="&";break;case An.Or:n="||";break;case An.Plus:n="+";break;case An.Minus:n="-";break;case An.Divide:n="/";break;case An.Multiply:n="*";break;case An.Modulo:n="%";break;case An.Lower:n="<";break;case An.LowerEquals:n="<=";break;case An.Bigger:n=">";break;case An.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+e.operator)}return e.parens&&t.print(e,"("),e.lhs.visitExpression(this,t),t.print(e," "+n+" "),e.rhs.visitExpression(this,t),e.parens&&t.print(e,")"),null},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null},e.prototype.visitLiteralArrayExpr=function(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return t.print(e,"{"),this.visitAllObjects(function(r){t.print(e,Lr(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,t)},e.entries,t,","),t.print(e,"}"),null},e.prototype.visitCommaExpr=function(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null},e.prototype.visitAllExpressions=function(e,t,n){var r=this;this.visitAllObjects(function(e){return e.visitExpression(r,t)},e,t,n)},e.prototype.visitAllObjects=function(e,t,n,r){for(var i=!1,o=0;o0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),e(t[o]);i&&(n.decIndent(),n.decIndent())},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}();function Lr(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(_r,function(){for(var e=[],n=0;n0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]=kr;break;case"#":n[e.substring(1)]=Nr;break;case"%":n[e.substring(1)]=Hr;break;default:n[e]=Fr}})}),t}return Object(r.c)(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some(function(e){return"no-errors-schema"===e.name}))return!0;if(e.indexOf("-")>-1){if(c(e)||p(e))return!1;if(n.some(function(e){return"custom-elements"===e.name}))return!0}return!!(this._schema[e.toLowerCase()]||this._schema.unknown)[t]},t.prototype.hasElement=function(e,t){if(t.some(function(e){return"no-errors-schema"===e.name}))return!0;if(e.indexOf("-")>-1){if(c(e)||p(e))return!0;if(t.some(function(e){return"custom-elements"===e.name}))return!0}return!!this._schema[e.toLowerCase()]},t.prototype.securityContext=function(e,t,n){n&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();var r=Ir()[e+"|"+t];return r||(r=Ir()["*|"+t])||D.NONE},t.prototype.getMappedPropName=function(e){return Rr[e]||e},t.prototype.getDefaultComponentElementName=function(){return"ng-component"},t.prototype.validateProperty=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=...\nIf '"+e+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},t.prototype.validateAttribute=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=..."}:{error:!1}},t.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},t.prototype.normalizeAnimationStyleProperty=function(e){return e.replace(O,function(){for(var e=[],t=0;t-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(zr,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return Jr.reduce(function(e,t){return e.replace(t," ")},e)},e.prototype._scopeSelectors=function(e,t,n){var r,i,o,a=this;return r=function(e){var r=e.selector,i=e.content;return"@"!=e.selector[0]?r=a._scopeSelector(e.selector,t,n,a.strictStyling):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(i=a._scopeSelectors(e.content,t,n)),new di(r,i)},i=function(t){for(var n=e.split(si),r=[],i=[],o=0,a=[],l=0;l0?a.push(s):(a.length>0&&(i.push(a.join("")),r.push(pi),a=[]),r.push(s)),s==ui&&o++}return a.length>0&&(i.push(a.join("")),r.push(pi)),new hi(r.join(""),i)}(),o=0,i.escapedString.replace(li,function(){for(var e=[],t=0;t-1)r=i._applySimpleSelectorScope(e,t,n);else{var a=e.replace(ni,"");if(a.length>0){var l=a.match(/([^:]*)(:*)(.*)/);l&&(r=l[1]+o+l[2]+l[3])}}return r},l=new Br(e),s="",u=0,c=/( |>|\+|~(?!=))\s*/g,p=!((e=l.content()).indexOf(Yr)>-1);null!==(r=c.exec(e));){var d=r[1],h=e.slice(u,r.index).trim();s+=((p=p||h.indexOf(Yr)>-1)?a(h):h)+" "+d+" ",u=c.lastIndex}var f=e.substring(u);return s+=(p=p||f.indexOf(Yr)>-1)?a(f):f,l.restore(s)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace(ii,Wr).replace(ri,zr)},e}(),Br=function(){function e(e){var t=this;this.placeholders=[],this.index=0,e=e.replace(/(\[[^\]]*\])/g,function(e,n){var r="__ph-"+t.index+"__";return t.placeholders.push(n),t.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(e,n,r){var i="__ph-"+t.index+"__";return t.placeholders.push(r),t.index++,n+i})}return e.prototype.restore=function(e){var t=this;return e.replace(/__ph-(\d+)__/g,function(e,n){return t.placeholders[+n]})},e.prototype.content=function(){return this._content},e}(),Ur=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Gr=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,qr=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,zr="-shadowcsshost",Wr="-shadowcsscontext",Kr=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Qr=new RegExp("("+zr+Kr,"gim"),$r=new RegExp("("+Wr+Kr,"gim"),Yr=zr+"-no-combinator",Xr=/-shadowcsshost-no-combinator([^\s]*)/,Jr=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],ei=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,ti="([>\\s~+[.,{:][\\s\\S]*)?$",ni=/-shadowcsshost/gim,ri=/:host/gim,ii=/:host-context/gim,oi=/\/\*\s*[\s\S]*?\*\//g,ai=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,li=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,si=/([{}])/g,ui="{",ci="}",pi="%BLOCK%",di=function(){return function(e,t){this.selector=e,this.content=t}}(),hi=function(){return function(e,t){this.escapedString=e,this.blocks=t}}(),fi=new Set(["pre","template","textarea","script","style"]),gi=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",vi=new RegExp("[^"+gi+"]"),mi=new RegExp("["+gi+"]{2,}","g");function yi(e){return e.replace(new RegExp(g,"g")," ")}var bi=function(){function e(){}return e.prototype.visitElement=function(e,t){return fi.has(e.name)||e.attrs.some(function(e){return"ngPreserveWhitespaces"===e.name})?new G(e.name,z(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan):new G(e.name,e.attrs,z(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitAttribute=function(e,t){return"ngPreserveWhitespaces"!==e.name?e:null},e.prototype.visitText=function(e,t){return e.value.match(vi)?new P(yi(e.value).replace(mi," "),e.sourceSpan):null},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),Ci=function(){function e(e,t,n,r,i){if(this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){var o=new Map;r.forEach(function(e){return o.set(e.name,e)}),this.pipesByName=o}}return e.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},e.prototype.createBoundHostProperties=function(e,t){var n=this;if(e.hostProperties){var r=[];return Object.keys(e.hostProperties).forEach(function(i){var o=e.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,t,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},e.prototype.createDirectiveHostPropertyAsts=function(e,t,n){var r=this,i=this.createBoundHostProperties(e,n);return i&&i.map(function(e){return r.createBoundElementProperty(t,e)})},e.prototype.createDirectiveHostEventAsts=function(e,t){var n=this;if(e.hostListeners){var r=[];return Object.keys(e.hostListeners).forEach(function(i){var o=e.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},e.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),this._checkPipes(r,t),r}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,o){for(var a=this._parseTemplateBindings(e,t,n),l=0;l1)if("attr"==o[0]){this._validatePropertyOrAttributeName(i=o[1],t.sourceSpan,!0),a=Ei(this._schemaRegistry,e,i,!0);var l=i.indexOf(":");if(l>-1){var s=i.substring(0,l),u=i.substring(l+1);i=h(s,u)}r=1}else"class"==o[0]?(i=o[1],r=2,a=[D.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=3,a=[D.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(t.name),a=Ei(this._schemaRegistry,e,i,!1),r=0,this._validatePropertyOrAttributeName(i,t.sourceSpan,!1)),new Vt(i,r,a[0],t.expression,n,t.sourceSpan)},e.prototype.parseEvent=function(e,t,n,r,i){_i(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,i)):this._parseRegularEvent(e,t,n,r,i)},e.prototype._parseAnimationEvent=function(e,t,n,r){var i=L(e,".",[e,""]),o=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var l=this._parseAction(t,n);r.push(new Mt(o,a,1,l,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},e.prototype._parseRegularEvent=function(e,t,n,i,o){var a=Object(r.f)(L(e,":",[null,e]),2),l=a[0],s=a[1],u=this._parseAction(t,n);i.push([e,u.source]),o.push(new Mt(s,l,0,u,n))},e.prototype._parseAction=function(e,t){var n=(t&&t.start||"(unknown").toString();try{var r=this._exprParser.parseAction(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),!r||r.ast instanceof it?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,t),r)}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype._reportError=function(e,t,n){void 0===n&&(n=Ut.ERROR),this.errors.push(new Gt(t,e,n))},e.prototype._reportExpressionParserErrors=function(e,t){var n,i;try{for(var o=Object(r.h)(e),a=o.next();!a.done;a=o.next())this._reportError(a.value.message,t)}catch(l){n={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype._checkPipes=function(e,t){var n=this;if(e&&this.pipesByName){var r=new wi;e.visit(r),r.pipes.forEach(function(e,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new Bt(t.start.moveBy(e.span.start),t.start.moveBy(e.span.end)))})}},e.prototype._validatePropertyOrAttributeName=function(e,t,n){var r=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,Ut.ERROR)},e}(),wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pipes=new Map,t}return Object(r.c)(t,e),t.prototype.visitPipe=function(e,t){return this.pipes.set(e.name,e),e.exp.visit(this),this.visitAll(e.args,t),null},t}(Dt);function _i(e){return"@"==e[0]}function Ei(e,t,n,i){var o=[];return w.parse(t).forEach(function(t){var a=t.element?[t.element]:e.allKnownElementNames(),l=new Set(t.notSelectors.filter(function(e){return e.isElementSelector()}).map(function(e){return e.element})),s=a.filter(function(e){return!l.has(e)});o.push.apply(o,Object(r.g)(s.map(function(t){return e.securityContext(t,n,i)})))}),0===o.length?[D.NONE]:Array.from(new Set(o)).sort()}var Ai=function(){function e(){}return e.event=sr("$event"),e}(),Si=function(){return function(e,t){this.stmts=e,this.allowDefault=t,this.render3Stmts=e.map(function(e){return e instanceof nr&&e.name==t.name&&e.value instanceof zn?new or(e.value.lhs.value):e})}}();function Di(e,t,n,r,i){e||(e=new Hi);var o=function(e,t){var n=new Ni({createLiteralArrayConverter:function(e){return function(e){return pr(e)}},createLiteralMapConverter:function(e){return function(t){return dr(e.map(function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}}))}},createPipeConverter:function(e){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+e)}});return t.visit(n)}(0,n),a=new Fi(e,t,r,i),l=[];!function e(t,n){Array.isArray(t)?t.forEach(function(t){return e(t,n)}):n.push(t)}(o.visit(a,Ii.Statement),l),function(e,t,n){for(var r=a.temporaryCount-1;r>=0;r--)n.unshift(Mi(t,r))}(0,r,l);var s,u=l.length-1,c=null;if(u>=0){var p=(s=l[u])instanceof ir?s.expr:s instanceof or?s.value:null;p&&(c=function(e){return sr("pd_"+e)}(r),l[u]=c.set(p.cast(bn).notIdentical(gr(!1))).toDeclStmt(null,[er.Final]))}return new Si(l,c)}var Ti=function(){return function(e,t){this.stmts=e,this.currValExpr=t}}(),xi=function(e){return e[e.General=0]="General",e[e.TrySimple=1]="TrySimple",e}({});function Oi(e,t,n,r,i,o){e||(e=new Hi);var a=function(e){return sr("currVal_"+e)}(r),l=[],s=new Fi(e,t,r,o),u=n.visit(s,Ii.Expression);if(s.temporaryCount)for(var c=0;c":n=An.Bigger;break;case"<=":n=An.LowerEquals;break;case">=":n=An.BiggerEquals;break;default:throw new Error("Unsupported operation "+e.operation)}return ki(t,new zn(n,this._visit(e.left,Ii.Expression),this._visit(e.right,Ii.Expression)))},e.prototype.visitChain=function(e,t){return function(e,t){if(e!==Ii.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return ki(t,this._visit(e.condition,Ii.Expression).conditional(this._visit(e.trueExp,Ii.Expression),this._visit(e.falseExp,Ii.Expression)))},e.prototype.visitPipe=function(e,t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+e.name)},e.prototype.visitFunctionCall=function(e,t){var n=this.visitAll(e.args,Ii.Expression);return ki(t,e instanceof ji?e.converter(n):this._visit(e.target,Ii.Expression).callFn(n))},e.prototype.visitImplicitReceiver=function(e,t){return Vi(t,e),this._implicitReceiver},e.prototype.visitInterpolation=function(e,t){Vi(t,e);for(var n=[gr(e.expressions.length)],r=0;r-1?[e.slice(0,l),e.slice(l+2)]:[e,""],2))[0],i=t[1],o=(n=Object(r.f)(s>-1?[u.slice(0,s),u.slice(s+1)]:["",u],2))[0],a=n[1]}return{id:i,meaning:o,description:a}}function Ui(e,t){return void 0===t&&(t=0),""+Zi+e+(t>0?":"+t:"")+Zi}function Gi(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!e.length)return"";for(var r="",i=e.length-1,o=0;o"},e.prototype.freshName=function(){return this.uniqueName("_c")},e.prototype.freshTranslationName=function(e){return this.uniqueName("MSG_"+e).toUpperCase()},e.prototype.keyOf=function(e){return e.visitExpression(new Qi,zi)},e}(),Qi=function(){function e(){this.visitWrappedNodeExpr=$i,this.visitWriteVarExpr=$i,this.visitWriteKeyExpr=$i,this.visitWritePropExpr=$i,this.visitInvokeMethodExpr=$i,this.visitInvokeFunctionExpr=$i,this.visitInstantiateExpr=$i,this.visitConditionalExpr=$i,this.visitNotExpr=$i,this.visitAssertNotNullExpr=$i,this.visitCastExpr=$i,this.visitFunctionExpr=$i,this.visitBinaryOperatorExpr=$i,this.visitReadPropExpr=$i,this.visitReadKeyExpr=$i,this.visitCommaExpr=$i}return e.prototype.visitLiteralExpr=function(e){return""+("string"==typeof e.value?'"'+e.value+'"':e.value)},e.prototype.visitLiteralArrayExpr=function(e,t){var n=this;return"["+e.entries.map(function(e){return e.visitExpression(n,t)}).join(",")+"]"},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return"{"+e.entries.map(function(e){return function(e){var t=e.quoted?'"':"";return""+t+e.key+t}(e)+":"+e.value.visitExpression(n,t)}).join(",")},e.prototype.visitExternalExpr=function(e){return e.value.moduleName?"EX:"+e.value.moduleName+":"+e.value.name:"EX:"+e.value.runtime.name},e.prototype.visitReadVarExpr=function(e){return"VAR:"+e.name},e.prototype.visitTypeofExpr=function(e,t){return"TYPEOF:"+e.expr.visitExpression(this,t)},e}();function $i(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function Yi(e){return e instanceof xn}var Xi="@angular/core",Ji=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"\u0275namespaceHTML",moduleName:Xi},e.namespaceMathML={name:"\u0275namespaceMathML",moduleName:Xi},e.namespaceSVG={name:"\u0275namespaceSVG",moduleName:Xi},e.element={name:"\u0275element",moduleName:Xi},e.elementStart={name:"\u0275elementStart",moduleName:Xi},e.elementEnd={name:"\u0275elementEnd",moduleName:Xi},e.elementProperty={name:"\u0275elementProperty",moduleName:Xi},e.elementAttribute={name:"\u0275elementAttribute",moduleName:Xi},e.elementClassProp={name:"\u0275elementClassProp",moduleName:Xi},e.elementContainerStart={name:"\u0275EC",moduleName:Xi},e.elementContainerEnd={name:"\u0275eC",moduleName:Xi},e.elementStyling={name:"\u0275elementStyling",moduleName:Xi},e.elementStylingMap={name:"\u0275elementStylingMap",moduleName:Xi},e.elementStyleProp={name:"\u0275elementStyleProp",moduleName:Xi},e.elementStylingApply={name:"\u0275elementStylingApply",moduleName:Xi},e.containerCreate={name:"\u0275container",moduleName:Xi},e.nextContext={name:"\u0275nextContext",moduleName:Xi},e.templateCreate={name:"\u0275template",moduleName:Xi},e.text={name:"\u0275text",moduleName:Xi},e.textBinding={name:"\u0275textBinding",moduleName:Xi},e.bind={name:"\u0275bind",moduleName:Xi},e.enableBindings={name:"\u0275enableBindings",moduleName:Xi},e.disableBindings={name:"\u0275disableBindings",moduleName:Xi},e.getCurrentView={name:"\u0275getCurrentView",moduleName:Xi},e.restoreView={name:"\u0275restoreView",moduleName:Xi},e.interpolation1={name:"\u0275interpolation1",moduleName:Xi},e.interpolation2={name:"\u0275interpolation2",moduleName:Xi},e.interpolation3={name:"\u0275interpolation3",moduleName:Xi},e.interpolation4={name:"\u0275interpolation4",moduleName:Xi},e.interpolation5={name:"\u0275interpolation5",moduleName:Xi},e.interpolation6={name:"\u0275interpolation6",moduleName:Xi},e.interpolation7={name:"\u0275interpolation7",moduleName:Xi},e.interpolation8={name:"\u0275interpolation8",moduleName:Xi},e.interpolationV={name:"\u0275interpolationV",moduleName:Xi},e.pureFunction0={name:"\u0275pureFunction0",moduleName:Xi},e.pureFunction1={name:"\u0275pureFunction1",moduleName:Xi},e.pureFunction2={name:"\u0275pureFunction2",moduleName:Xi},e.pureFunction3={name:"\u0275pureFunction3",moduleName:Xi},e.pureFunction4={name:"\u0275pureFunction4",moduleName:Xi},e.pureFunction5={name:"\u0275pureFunction5",moduleName:Xi},e.pureFunction6={name:"\u0275pureFunction6",moduleName:Xi},e.pureFunction7={name:"\u0275pureFunction7",moduleName:Xi},e.pureFunction8={name:"\u0275pureFunction8",moduleName:Xi},e.pureFunctionV={name:"\u0275pureFunctionV",moduleName:Xi},e.pipeBind1={name:"\u0275pipeBind1",moduleName:Xi},e.pipeBind2={name:"\u0275pipeBind2",moduleName:Xi},e.pipeBind3={name:"\u0275pipeBind3",moduleName:Xi},e.pipeBind4={name:"\u0275pipeBind4",moduleName:Xi},e.pipeBindV={name:"\u0275pipeBindV",moduleName:Xi},e.i18nAttribute={name:"\u0275i18nAttribute",moduleName:Xi},e.i18nExp={name:"\u0275i18nExp",moduleName:Xi},e.i18nStart={name:"\u0275i18nStart",moduleName:Xi},e.i18nEnd={name:"\u0275i18nEnd",moduleName:Xi},e.i18nApply={name:"\u0275i18nApply",moduleName:Xi},e.load={name:"\u0275load",moduleName:Xi},e.loadQueryList={name:"\u0275loadQueryList",moduleName:Xi},e.pipe={name:"\u0275pipe",moduleName:Xi},e.projection={name:"\u0275projection",moduleName:Xi},e.projectionDef={name:"\u0275projectionDef",moduleName:Xi},e.reference={name:"\u0275reference",moduleName:Xi},e.inject={name:"inject",moduleName:Xi},e.injectAttribute={name:"\u0275injectAttribute",moduleName:Xi},e.directiveInject={name:"\u0275directiveInject",moduleName:Xi},e.templateRefExtractor={name:"\u0275templateRefExtractor",moduleName:Xi},e.defineBase={name:"\u0275defineBase",moduleName:Xi},e.BaseDef={name:"\u0275BaseDef",moduleName:Xi},e.defineComponent={name:"\u0275defineComponent",moduleName:Xi},e.ComponentDefWithMeta={name:"\u0275ComponentDefWithMeta",moduleName:Xi},e.defineDirective={name:"\u0275defineDirective",moduleName:Xi},e.DirectiveDefWithMeta={name:"\u0275DirectiveDefWithMeta",moduleName:Xi},e.InjectorDef={name:"\u0275InjectorDef",moduleName:Xi},e.defineInjector={name:"defineInjector",moduleName:Xi},e.NgModuleDefWithMeta={name:"\u0275NgModuleDefWithMeta",moduleName:Xi},e.defineNgModule={name:"\u0275defineNgModule",moduleName:Xi},e.PipeDefWithMeta={name:"\u0275PipeDefWithMeta",moduleName:Xi},e.definePipe={name:"\u0275definePipe",moduleName:Xi},e.query={name:"\u0275query",moduleName:Xi},e.queryRefresh={name:"\u0275queryRefresh",moduleName:Xi},e.registerContentQuery={name:"\u0275registerContentQuery",moduleName:Xi},e.NgOnChangesFeature={name:"\u0275NgOnChangesFeature",moduleName:Xi},e.InheritDefinitionFeature={name:"\u0275InheritDefinitionFeature",moduleName:Xi},e.PublicFeature={name:"\u0275PublicFeature",moduleName:Xi},e.listener={name:"\u0275listener",moduleName:Xi},e.getFactoryOf={name:"\u0275getFactoryOf",moduleName:Xi},e.getInheritedFactory={name:"\u0275getInheritedFactory",moduleName:Xi},e.sanitizeHtml={name:"\u0275sanitizeHtml",moduleName:Xi},e.sanitizeStyle={name:"\u0275sanitizeStyle",moduleName:Xi},e.defaultStyleSanitizer={name:"\u0275defaultStyleSanitizer",moduleName:Xi},e.sanitizeResourceUrl={name:"\u0275sanitizeResourceUrl",moduleName:Xi},e.sanitizeScript={name:"\u0275sanitizeScript",moduleName:Xi},e.sanitizeUrl={name:"\u0275sanitizeUrl",moduleName:Xi},e}(),eo="_t",to="rf";function no(e,t){var n=null;return function(){return n||(e.push(new nr(eo,void 0,bn)),n=sr(t)),n}}function ro(e){if(this)throw new Error("Builder "+this.constructor.name+" doesn't support "+e+" yet");throw new Error("Feature "+e+" is not supported yet")}function io(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+void 0)}function oo(e){return Array.isArray(e)?pr(e.map(oo)):gr(e,Cn)}function ao(e){return Object.getOwnPropertyNames(e).length>0?(t=e,void 0===n&&(n=!1),dr(Object.getOwnPropertyNames(t).map(function(e){return{key:e,quoted:n,value:oo(t[e])}}))):null;var t,n}function lo(e){for(;(t=e[e.length-1])instanceof jn&&null===t.value;)e.pop();var t;return e}var so=function(){function e(){this.values=[]}return e.prototype.set=function(e,t){t&&this.values.push({key:e,value:t,quoted:!1})},e.prototype.toLiteralMap=function(){return dr(this.values)},e}(),uo=function(e){return e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Factory=2]="Factory",e}({}),co=function(e){return e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.Injector=2]="Injector",e}({});function po(e){var t=sr("t"),n=[],i=fo(e)?t:new zn(An.Or,t,e.type),o=null;if(null!==e.deps)o=new Hn(i,ho(e.deps,e.injectFn));else{var a=sr("\u0275"+e.name+"_BaseFactory"),l=ur(Ji.getInheritedFactory),s=a.set(l.callFn([e.type])).toDeclStmt(Cn,[er.Exported,er.Final]);n.push(s),o=a.callFn([i])}var u=o,c=[],p=null;function d(e){var n=sr("r");return c.push(n.set(Xn).toDeclStmt()),c.push(fr(t,[n.set(u).toStmt()],[n.set(e).toStmt()])),n}if(fo(e)&&e.delegateType===uo.Factory){var h=sr("\u0275"+e.name+"_BaseFactory"),f=ur(Ji.getFactoryOf);if(e.delegate.isEquivalent(e.type))throw new Error("Illegal state: compiling factory that delegates to itself");var g=h.set(f.callFn([e.delegate])).toDeclStmt(Cn,[er.Exported,er.Final]);n.push(g),p=d(h.callFn([]))}else if(fo(e)){var v=ho(e.delegateDeps,e.injectFn);p=d(new(e.delegateType===uo.Class?Hn:Fn)(e.delegate,v))}else p=function(e){return void 0!==e.expression}(e)?d(e.expression):o;return{factory:hr([new Gn("t",bn)],Object(r.g)(c,[new or(p)]),Cn,void 0,e.name+"_Factory"),statements:n}}function ho(e,t){return e.map(function(e){return function(e,t){switch(e.resolved){case co.Token:case co.Injector:var n=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0),r=e.token;e.resolved===co.Injector&&(r=ur(fn.INJECTOR));var i=[r];return(0!==n||e.optional)&&i.push(gr(n)),ur(t).callFn(i);case co.Attribute:return ur(Ji.injectAttribute).callFn([e.token]);default:return ro("Unknown R3ResolvedDependencyType: "+co[e.resolved])}}(e,t)})}function fo(e){return void 0!==e.delegateType}function go(e){return dr(Object.keys(e).map(function(t){return{key:t,value:e[t],quoted:!1}}))}function vo(e){var t=e.map(function(e){return new On(e.type)});return e.length>0?cr(pr(t)):En}var mo=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitText(this)},e}(),yo=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitBoundText(this)},e}(),bo=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e){return e.visitTextAttribute(this)},e}(),Co=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}return e.fromBoundElementProperty=function(t){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),wo=function(){function e(e,t,n,r,i){this.name=e,this.handler=t,this.target=n,this.phase=r,this.sourceSpan=i}return e.fromParsedEvent=function(t){return new e(t.name,t.handler,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.sourceSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),_o=function(){function e(e,t,n,r,i,o,a,l,s){this.name=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=s}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),Eo=function(){function e(e,t,n,r,i,o,a,l,s){this.attributes=e,this.inputs=t,this.outputs=n,this.children=r,this.references=i,this.variables=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=s}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),Ao=function(){function e(e,t,n){this.selectorIndex=e,this.attributes=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitContent(this)},e}(),So=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitVariable(this)},e}(),Do=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitReference(this)},e}();function To(e,t){var n,i,o,a,l=[];if(e.visit)try{for(var s=Object(r.h)(t),u=s.next();!u.done;u=s.next())var c=e.visit(h=u.value)||h.visit(e)}catch(f){n={error:f}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}else try{for(var p=Object(r.h)(t),d=p.next();!d.done;d=p.next()){var h;(c=(h=d.value).visit(e))&&l.push(c)}}catch(g){o={error:g}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}return l}var xo=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;var Oo=function(){function e(e){this.bindingParser=e,this.errors=[],this.ngContentSelectors=[],this.hasNgContent=!1}return e.prototype.visitElement=function(e){var t,n,i=this,o=oe(e);if(o.type===ae.SCRIPT||o.type===ae.STYLE)return null;if(o.type===ae.STYLESHEET&&function(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(Q);return null===t||"package"==t[1]||"asset"==t[1]}(o.hrefAttr))return null;var a="ng-template"===u(e.name)[1],l=[],s=[],c=[],p=[],d=[],h=[],f=[],g=!1;try{for(var v=Object(r.h)(e.attrs),m=v.next();!m.done;m=v.next()){var y=m.value,b=!1,C=Mo(y.name),w=!1;if(C.startsWith("*")){g&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",y.sourceSpan),w=!0,g=!0;var _=y.value,E=C.substring("*".length),A=[];this.bindingParser.parseInlineTemplateBinding(E,_,y.sourceSpan,[],h,A),f.push.apply(f,Object(r.g)(A.map(function(e){return new So(e.name,e.value,e.sourceSpan)})))}else b=this.parseAttribute(a,y,[],l,s,c,p);b||w||d.push(this.visitAttribute(y))}}catch(M){t={error:M}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(t)throw t.error}}var S,D=z(o.nonBindable?Lo:this,e.children);if(o.type===ae.NG_CONTENT){this.hasNgContent=!0,e.children&&!e.children.every(Vo)&&this.reportError(" element cannot have content.",e.sourceSpan);var T=o.selectAttr,x=e.attrs.map(function(e){return i.visitAttribute(e)}),O="*"===T?0:this.ngContentSelectors.push(T);S=new Ao(O,x,e.sourceSpan)}else if(a){var L=this.extractAttributes(e.name,l);S=new Eo(d,L.bound,s,D,p,c,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}else L=this.extractAttributes(e.name,l),S=new _o(e.name,d,L.bound,s,D,p,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return g&&(L=this.extractAttributes("ng-template",h),S=new Eo(L.literal,L.bound,[],[S],[],f,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)),S},e.prototype.visitAttribute=function(e){return new bo(e.name,e.value,e.sourceSpan,e.valueSpan)},e.prototype.visitText=function(e){var t=yi(e.value),n=this.bindingParser.parseInterpolation(t,e.sourceSpan);return n?new yo(n,e.sourceSpan):new mo(t,e.sourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e.prototype.extractAttributes=function(e,t){var n=this,r=[],i=[];return t.forEach(function(t){if(t.isLiteral)i.push(new bo(t.name,t.expression.source||"",t.sourceSpan));else{var o=n.bindingParser.createBoundElementProperty(e,t);r.push(Co.fromBoundElementProperty(o))}}),{bound:r,literal:i}},e.prototype.parseAttribute=function(e,t,n,r,i,o,a){var l=Mo(t.name),s=t.value,u=t.sourceSpan,c=l.match(xo),p=!1;if(c){if(p=!0,null!=c[1])this.bindingParser.parsePropertyBinding(c[7],s,!1,u,n,r);else if(c[2])e?this.parseVariable(c[7],s,u,o):this.reportError('"let-" is only supported on ng-template elements.',u);else if(c[3])this.parseReference(c[7],s,u,a);else if(c[4])this.bindingParser.parseEvent(c[7],s,u,n,d=[]),Io(d,i);else if(c[5])this.bindingParser.parsePropertyBinding(c[7],s,!1,u,n,r),this.parseAssignmentEvent(c[7],s,u,n,i);else if(c[6])this.bindingParser.parseLiteralAttr(l,s,u,n,r);else if(c[8])this.bindingParser.parsePropertyBinding(c[8],s,!1,u,n,r),this.parseAssignmentEvent(c[8],s,u,n,i);else if(c[9])this.bindingParser.parsePropertyBinding(c[9],s,!1,u,n,r);else if(c[10]){var d;this.bindingParser.parseEvent(c[10],s,u,n,d=[]),Io(d,i)}}else p=this.bindingParser.parsePropertyInterpolation(l,s,u,n,r);return p},e.prototype.parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in variable names',n),r.push(new So(e,t,n))},e.prototype.parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in reference names',n),r.push(new Do(e,t,n))},e.prototype.parseAssignmentEvent=function(e,t,n,r,i){var o=[];this.bindingParser.parseEvent(e+"Change",t+"=$event",n,r,o),Io(o,i)},e.prototype.reportError=function(e,t,n){void 0===n&&(n=Ut.ERROR),this.errors.push(new Gt(t,e,n))},e}(),Lo=new(function(){function e(){}return e.prototype.visitElement=function(e){var t=oe(e);if(t.type===ae.SCRIPT||t.type===ae.STYLE||t.type===ae.STYLESHEET)return null;var n=z(this,e.children,null);return new _o(e.name,z(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitAttribute=function(e){return new bo(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e){return new mo(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e}());function Mo(e){return/^data-/i.test(e)?e.substring(5):e}function Io(e,t){t.push.apply(t,Object(r.g)(e.map(function(e){return wo.fromParsedEvent(e)})))}function Vo(e){return e instanceof P&&0==e.value.trim().length}function ko(e){var t=e.charCodeAt(0);if(t==e.charCodeAt(e.length-1)&&(39==t||34==t)){var n=e.substring(1,e.length-1);-1==n.indexOf("'")&&-1==n.indexOf('"')&&(e=n)}return e}function No(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}function Fo(e,t){return fr(sr(to).bitwiseAnd(gr(e),null,!1),t)}var Ho=function(){function e(e,t,n,r,i,o,a,l,s,u,c,p,d,h){void 0===n&&(n=0);var f=this;this.constantPool=e,this.level=n,this.contextName=r,this.i18nContext=i,this.templateIndex=o,this.templateName=a,this.viewQueries=l,this.directiveMatcher=s,this.directives=u,this.pipeTypeByName=c,this.pipes=p,this._namespace=d,this.relativeContextFilePath=h,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=ro,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this.visitReference=io,this.visitVariable=io,this.visitTextAttribute=io,this.visitBoundAttribute=io,this.visitBoundEvent=io,this._dataIndex=l.length,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new jo(e,function(){return f.allocateDataSlot()},function(e){return f.allocatePureFunctionSlots(e)},function(e,t,n,r){var i=c.get(e);i&&f.pipes.add(i),f._bindingScope.set(f.level,t,r),f.creationInstruction(null,Ji.pipe,[gr(n),gr(e)])})}return e.prototype.registerContextVariables=function(e){var t=this._bindingScope.freshReferenceName(),n=this.level,r=sr(e.name+t);this._bindingScope.set(n,e.name,r,1,function(t,i){var o;return o=t.bindingLevel===n?sr("ctx"):t.getSharedContextName(n)||Bo(i),[r.set(o.prop(e.value||"$implicit")).toConstDecl()]})},e.prototype.buildTemplateFunction=function(e,t,n,i){var o=this;if(void 0===n&&(n=!1),void 0===i&&(i=[]),this._namespace!==Ji.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(function(e){return o.registerContextVariables(e)}),n){var a=[];if(i.length>1){var l=i.map(function(e){return x(e)}),s=this.constantPool.getConstLiteral(oo(l),!0),u=this.constantPool.getConstLiteral(oo(i),!0);a.push(s,u)}this.creationInstruction(null,Ji.projectionDef,a)}this.i18nContext&&this.i18nStart(),To(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(e){return e()}),this.i18nContext&&this.i18nEnd();var c=this._creationCodeFns.map(function(e){return e()}),p=this._updateCodeFns.map(function(e){return e()}),d=this._bindingScope.viewSnapshotStatements(),h=this._bindingScope.variableDeclarations().concat(this._tempVariables),f=c.length>0?[Fo(1,d.concat(c))]:[],g=p.length>0?[Fo(2,h.concat(p))]:[];return hr([new Gn(to,_n),new Gn("ctx",null)],Object(r.g)(this._prefixCode,f,g),Cn,null,this.templateName)},e.prototype.getLocal=function(e){return this._bindingScope.get(e)},e.prototype.i18nTranslate=function(e,t){return void 0===t&&(t=""),this.constantPool.getTranslation(e,t,this.fileBasedI18nSuffix)},e.prototype.i18nAppendTranslationMeta=function(e){void 0===e&&(e=""),this.constantPool.appendTranslationMeta(e)},e.prototype.i18nAllocateRef=function(){return this.constantPool.getDeferredTranslationConst(this.fileBasedI18nSuffix)},e.prototype.i18nUpdateRef=function(e){e.isRoot()&&e.isResolved()&&this.constantPool.setDeferredTranslationConst(e.getRef(),e.getContent())},e.prototype.i18nStart=function(e,t){void 0===e&&(e=null);var n=this.allocateDataSlot();if(this.i18nContext)this.i18n=this.i18nContext.forkChildContext(n,this.templateIndex);else{this.i18nAppendTranslationMeta(t);var r=this.i18nAllocateRef();this.i18n=new qi(n,this.templateIndex,r)}var i=[gr(n),this.i18n.getRef()];this.i18n.getId()>0&&i.push(gr(this.i18n.getId())),this.creationInstruction(e,Ji.i18nStart,i)},e.prototype.i18nEnd=function(e){var t=this;void 0===e&&(e=null),this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var n=this.i18n.getBindings();if(n.size){n.forEach(function(n){t.updateInstruction(e,Ji.i18nExp,[n])});var r=gr(this.i18n.getIndex());this.updateInstruction(e,Ji.i18nApply,[r])}this.creationInstruction(e,Ji.i18nEnd),this.i18n=null},e.prototype.visitContent=function(e){var t=this.allocateDataSlot(),n=e.selectorIndex,r=[gr(t)],i=[];e.attributes.forEach(function(e){var t=e.name;"select"!==t&&i.push(t,e.value)}),i.length>0?r.push(gr(n),oo(i)):0!==n&&r.push(gr(n)),this.creationInstruction(e.sourceSpan,Ji.projection,r)},e.prototype.getNamespaceInstruction=function(e){switch(e){case"math":return Ji.namespaceMathML;case"svg":return Ji.namespaceSVG;default:return Ji.namespaceHTML}},e.prototype.addNamespaceInstruction=function(e,t){this._namespace=e,this.creationInstruction(t.sourceSpan,e)},e.prototype.visitElement=function(e){var t,n,i=this,o=this.allocateDataSlot(),a=!1,l=!1,s={},p={},d="",h=Object(r.f)(u(e.name),2),f=h[0],g=h[1],v=c(e.name);try{for(var m=Object(r.h)(e.attributes),y=m.next();!y.done;y=m.next()){var b=y.value,C=b.name,w=b.value;if("ngNonBindable"===C)a=!0;else if("i18n"===C){if(this.i18n)throw new Error("Could not mark an element as translatable inside of a translatable section");l=!0,d=w}else C.startsWith("i18n-")?p[C.slice("i18n-".length)]=w:s[C]=w}}catch(se){t={error:se}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}this.matchDirectives(e.name,e);var _=[gr(o)];v||_.push(gr(g));var E=[],A=[],S=[],D=[],T=[],x=[],O=[];e.inputs.forEach(function(e){switch(e.type){case 0:"style"==e.name?D.splice(0,0,e):Wo(e)?T.splice(0,0,e):p.hasOwnProperty(e.name)?O.push({name:e.name,value:e.value}):x.push(e);break;case 3:D.push(e);break;case 2:T.push(e);break;default:x.push(e)}});var L=0,M=0,I=null,V=null,k={},N={};Object.getOwnPropertyNames(s).forEach(function(e){var t=s[e];"style"==e?(I=function(e){for(var t={},n=0,r=0,i=0,o=0,a=0,l=null,s=!1;n0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:s=s||o>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:l||0!==r||0!==i||(l=No(e.substring(a,n-1).trim()),o=n);break;case 59:if(l&&o>0&&0===r&&0===i){var u=e.substring(o,n-1).trim();t[l]=s?ko(u):u,a=n,o=0,l=null,s=!1}}return l&&o&&(u=e.substr(o).trim(),t[l]=s?ko(u):u),t}(t),Object.keys(I).forEach(function(e){k[e]=L++})):"class"==e?(V={},t.split(/\s+/g).forEach(function(e){N[e]=M++,V[e]=!0})):p.hasOwnProperty(e)?O.push({name:e,value:t}):E.push(gr(e),gr(t))});for(var F=!1,H=0;H0);if(G)this.creationInstruction(e.sourceSpan,Ji.element,lo(_));else{if(this.creationInstruction(e.sourceSpan,v?Ji.elementContainerStart:Ji.elementStart,lo(_)),a&&this.creationInstruction(e.sourceSpan,Ji.disableBindings),l&&this.i18nStart(e.sourceSpan,d),O.length){var q=!1,z=[];if(O.forEach(function(t){var n=t.name,r=t.value,o=p[n];if("string"==typeof r)z.push(gr(n),i.i18nTranslate(r,o),gr(0));else{var a=r.visit(i._valueConverter);if(a instanceof mt){var l=a.expressions,s=Gi(a.strings);z.push(gr(n),i.i18nTranslate(s,o),gr(l.length)),l.forEach(function(t){q=!0;var n=i.convertExpressionBinding(U,t);i.updateInstruction(e.sourceSpan,Ji.i18nExp,[n])})}}}),z.length){var W=gr(this.allocateDataSlot()),K=this.constantPool.getConstLiteral(pr(z),!0);this.creationInstruction(e.sourceSpan,Ji.i18nAttribute,[W,K]),q&&this.updateInstruction(e.sourceSpan,Ji.i18nApply,[W])}}if(P){var Q=[];S.length?Q.push(this.constantPool.getConstLiteral(pr(S),!0)):(A.length||R)&&Q.push(Xn),A.length?Q.push(this.constantPool.getConstLiteral(pr(A),!0)):R&&Q.push(Xn),R&&Q.push(ur(Ji.defaultStyleSanitizer)),this.creationInstruction(null,Ji.elementStyling,Q)}e.outputs.forEach(function(t){i.creationInstruction(t.sourceSpan,Ji.listener,i.prepareListenerParameter(e.name,t))})}if((D.length||T.length)&&P){var $=gr(o),Y=D[0],X=Y&&"style"==Y.name?Y:null,J=T[0],ee=J&&Wo(J)?J:null,te=X||ee;te&&this.updateInstruction(te.sourceSpan,Ji.elementStylingMap,function(){var e=[$];if(ee){var t=ee.value.visit(i._valueConverter);e.push(i.convertPropertyBinding(U,t,!0))}else X&&e.push(Xn);if(X){var n=X.value.visit(i._valueConverter);e.push(i.convertPropertyBinding(U,n,!0))}return e});var ne=null;if(D.length){for(H=X?1:0;H0?this.constantPool.getConstLiteral(pr(e),!0):Jn},e.prototype.prepareRefsParameter=function(e){var t=this;if(!e||0===e.length)return Jn;var n=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e.map(function(e){var n=t.allocateDataSlot(),r=t._bindingScope.freshReferenceName(),i=t.level,o=sr(r);return t._bindingScope.set(i,e.name,o,0,function(e,t){var r=t>0?[Bo(t).toStmt()]:[],i=o.set(ur(Ji.reference).callFn([gr(n)]));return r.concat(i.toConstDecl())}),[e.name,e.value]}));return this.constantPool.getConstLiteral(oo(n),!0)},e.prototype.prepareListenerParameter=function(e,t){var n=this,i=j(t.name),o=j(e),a=this.templateName+"_"+o+"_"+i+"_listener";return function(){var e=n._bindingScope.nestedScope(n._bindingScope.bindingLevel),i=Di(e,sr("ctx"),t.handler,"b",function(){return M("Unexpected interpolation")}),o=Object(r.g)(e.restoreViewStatement(),e.variableDeclarations(),i.render3Stmts),l=hr([new Gn("$event",bn)],o,Cn,null,a);return[gr(t.name),l]}},e}(),jo=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.constantPool=t,o.allocateSlot=n,o.allocatePureFunctionSlots=r,o.definePipe=i,o._pipeBindExprs=[],o}return Object(r.c)(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),i="PIPE:"+n,o=this.allocatePureFunctionSlots(2+e.args.length),a=new st(e.span,new ot(e.span),i),l=function(t){var n=Ro[e.args.length];return{identifier:n||Ji.pipeBindV,isVarLength:!n}}(),s=l.isVarLength;this.definePipe(e.name,i,n,ur(l.identifier));var u=Object(r.g)([e.exp],e.args),c=this.visitAll(s?[new gt(e.span,u)]:u),p=new Et(e.span,a,Object(r.g)([new ft(e.span,n),new ft(e.span,o)],c));return this._pipeBindExprs.push(p),p},t.prototype.updatePipeSlotOffsets=function(e){this._pipeBindExprs.forEach(function(t){t.args[1].value+=e})},t.prototype.visitLiteralArray=function(e,t){var n=this;return new ji(e.span,this.visitAll(e.expressions),function(e){var t=pr(e);return e.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(t,!0):Uo(n.constantPool,t,n.allocatePureFunctionSlots)})},t.prototype.visitLiteralMap=function(e,t){var n=this;return new ji(e.span,this.visitAll(e.values),function(t){var r=dr(t.map(function(t,n){return{key:e.keys[n].key,value:t,quoted:e.keys[n].quoted}}));return t.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(r,!0):Uo(n.constantPool,r,n.allocatePureFunctionSlots)})},t}(xt),Ro=[Ji.pipeBind1,Ji.pipeBind2,Ji.pipeBind3,Ji.pipeBind4],Po=[Ji.pureFunction0,Ji.pureFunction1,Ji.pureFunction2,Ji.pureFunction3,Ji.pureFunction4,Ji.pureFunction5,Ji.pureFunction6,Ji.pureFunction7,Ji.pureFunction8];function Zo(e,t,n){return ur(t,null,e).callFn(n,e)}function Bo(e){return ur(Ji.nextContext).callFn(e>1?[gr(e)]:[])}function Uo(e,t,n){var i=e.getLiteralFactory(t),o=i.literalFactory,a=i.literalFactoryArguments,l=n(1+a.length);a.length>0||M("Expected arguments to a literal factory function");var s=function(e){var t=Po[a.length];return{identifier:t||Ji.pureFunctionV,isVarLength:!t}}(),u=s.identifier,c=s.isVarLength,p=[gr(l),o];return c?p.push(pr(a)):p.push.apply(p,Object(r.g)(a)),ur(u).callFn(p)}var Go=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=null),this.bindingLevel=e,this.parent=t,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null}return Object.defineProperty(e,"ROOT_SCOPE",{get:function(){return e._ROOT_SCOPE||(e._ROOT_SCOPE=(new e).set(0,"$event",sr("$event"))),e._ROOT_SCOPE},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){var n=t.map.get(e);if(null!=n)return t!==this&&(this.map.set(e,n={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority}),this.maybeGenerateSharedContextVar(n),this.maybeRestoreView(n.retrievalLevel)),n.declareLocalCallback&&!n.declare&&(n.declare=!0),n.lhs;t=t.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)},e.prototype.set=function(e,t,n,r,i){return void 0===r&&(r=0),!this.map.has(t)||M("The name "+t+" is already defined in scope to be "+this.map.get(t)),this.map.set(t,{retrievalLevel:e,lhs:n,declare:!1,declareLocalCallback:i,priority:r}),this},e.prototype.getLocal=function(e){return this.get(e)},e.prototype.nestedScope=function(t){var n=new e(t,this);return t>0&&n.generateSharedContextVar(0),n},e.prototype.getSharedContextName=function(e){var t=this.map.get("$$shared_ctx$$"+e);return t&&t.declare?t.lhs:null},e.prototype.maybeGenerateSharedContextVar=function(e){if(1===e.priority){var t=this.map.get("$$shared_ctx$$"+e.retrievalLevel);t?t.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}},e.prototype.generateSharedContextVar=function(e){var t=sr("ctx"+this.freshReferenceName());this.map.set("$$shared_ctx$$"+e,{retrievalLevel:e,lhs:t,declareLocalCallback:function(e,n){return[t.set(Bo(n)).toConstDecl()]},declare:!1,priority:2})},e.prototype.getComponentProperty=function(e){var t=this.map.get("$$shared_ctx$$0");return t.declare=!0,this.maybeRestoreView(0),t.lhs.prop(e)},e.prototype.maybeRestoreView=function(e){this.isListenerScope()&&e=19&&e.length%2==1||M("Invalid interpolation argument length "+e.length),ur(Ji.interpolationV).callFn([pr(e)])}function zo(){return new Ci(new Ht(new Ge),K,new Pr,null,[])}function Wo(e){return"className"==e.name||"class"==e.name}function Ko(e,t){switch(t){case D.HTML:return ur(Ji.sanitizeHtml);case D.SCRIPT:return ur(Ji.sanitizeScript);case D.STYLE:return 1===e.type?ur(Ji.sanitizeStyle):null;case D.URL:return ur(Ji.sanitizeUrl);case D.RESOURCE_URL:return ur(Ji.sanitizeResourceUrl);default:return null}}function Qo(e){return"@"+e}function $o(e,t,n){var i=new so;i.set("type",e.type),i.set("selectors",oo(x(e.selector)));var o=po({name:e.name,type:e.type,deps:e.deps,injectFn:Ji.directiveInject});i.set("factory",o.factory),i.set("contentQueries",function(e,t){if(e.queries.length){var n=e.queries.map(function(e){var n=Yo(e,t,null);return ur(Ji.registerContentQuery).callFn([n]).toStmt()}),r=e.name;return hr([],n,Cn,null,r?r+"_ContentQueries":null)}return null}(e,t)),i.set("contentQueriesRefresh",function(e){if(e.queries.length>0){var t=[],n=e.name,r=[new Gn("dirIndex",_n),new Gn("queryStartIndex",_n)],i=sr("instance"),o=no(t,eo);return t.push(i.set(ur(Ji.load).callFn([sr("dirIndex")])).toDeclStmt(Cn,[er.Final])),e.queries.forEach(function(e,n){var r=sr("queryStartIndex"),a=ur(Ji.loadQueryList).callFn([n>0?r.plus(gr(n)):r]),l=o().set(a),s=ur(Ji.queryRefresh).callFn([l]),u=i.prop(e.propertyName).set(e.first?o().prop("first"):o()),c=s.and(u);t.push(c.toStmt())}),hr(r,t,Cn,null,n?n+"_ContentQueriesRefresh":null)}return null}(e));var a=Object.keys(e.host.properties).length;i.set("hostBindings",function(e,t,n,i){var o,l,s,u,c=[],p=e.typeSourceSpan,d=function(e){return{hostAttributes:e.host.attributes,hostListeners:e.host.listeners,hostProperties:e.host.properties}}(e),h=t.createBoundHostProperties(d,p),f=ur(Ji.load).callFn([sr("dirIndex")]);if(h){var g=new jo(n,function(){return M("Unexpected node")},function(e){var t=a;return a+=e,t},function(){return M("Unexpected pipe")});try{for(var v=Object(r.h)(h),m=v.next();!m.done;m=v.next()){var y=Oi(null,f,(_=m.value).expression.visit(g),"b",xi.TrySimple,function(){return M("Unexpected interpolation")});c.push.apply(c,Object(r.g)(y.stmts)),c.push(ur(Ji.elementProperty).callFn([sr("elIndex"),gr(_.name),ur(Ji.bind).callFn([y.currValExpr])]).toStmt())}}catch(T){o={error:T}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(o)throw o.error}}}var b=t.createDirectiveHostEventAsts(d,p);if(b)try{for(var C=Object(r.h)(b),w=C.next();!w.done;w=C.next()){y=Di(null,f,(_=w.value).handler,"b",function(){return M("Unexpected interpolation")});var _,E=_.name&&j(_.name),A=(D=e.name)&&E?D+"_"+E+"_HostBindingHandler":null,S=hr([new Gn("$event",bn)],Object(r.g)(y.stmts,[new or(y.allowDefault)]),Cn,null,A);c.push(ur(Ji.listener).callFn([gr(_.name),S]).toStmt())}}catch(x){s={error:x}}finally{try{w&&!w.done&&(u=C.return)&&u.call(C)}finally{if(s)throw s.error}}if(c.length>0){var D=e.name;return hr([new Gn("dirIndex",_n),new Gn("elIndex",_n)],c,Cn,null,D?D+"_HostBindings":null)}return null}(e,n,t)),a&&i.set("hostVars",gr(a)),i.set("attributes",function(e){var t,n,i=[],o=e.host.attributes;try{for(var a=Object(r.h)(Object.getOwnPropertyNames(o)),l=a.next();!l.done;l=a.next()){var s=l.value,u=o[s];i.push(gr(s),gr(u))}}catch(c){t={error:c}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i.length>0?pr(i):null}(e)),i.set("inputs",ao(e.inputs)),i.set("outputs",ao(e.outputs));var l=[];return l.push(ur(Ji.PublicFeature)),e.usesInheritance&&l.push(ur(Ji.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&l.push(ur(Ji.NgOnChangesFeature)),l.length&&i.set("features",pr(l)),null!==e.exportAs&&i.set("exportAs",gr(e.exportAs)),{definitionMap:i,statements:o.statements}}function Yo(e,t,n){var i=function(e,t){if(Array.isArray(e.predicate)){var n=[];return e.predicate.forEach(function(e){var t=e.split(",").map(function(e){return gr(e.trim())});n.push.apply(n,Object(r.g)(t))}),t.getConstLiteral(pr(n),!0)}return e.predicate}(e,t),o=[gr(n,Cn),i,gr(e.descendants)];return e.read&&o.push(e.read),ur(Ji.query).callFn(o)}function Xo(e){return cr(gr(e))}function Jo(e){return cr(dr(Object.keys(e).map(function(t){return{key:t,value:gr(e[t]),quoted:!0}})))}function ea(e,t){var n,r=(e.selector||"").replace(/\n/g,"");return cr(ur(t,[function(e,t){var n=null;if(t>0){n=[];for(var r=0;r0?cr(pr(n.map(function(e){return gr(e)}))):En)]))}var ta=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,na=function(e){function t(t){var n=e.call(this)||this;return n.reflector=t,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return Object(r.c)(t,e),t.prototype.createReturnStmt=function(e){new or(new Yn(this._evalExportedVars.map(function(e){return new $n(e,sr(e),!1)}))).visitStatement(this,e)},t.prototype.getArgs=function(){for(var e={},t=0;t=0?(n="anonymous_"+R++,t.__anonymousType=n):n=j(n),n}({reference:t})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(e,this._evalArgNames[r])},t}(function(e){function t(){return e.call(this,!1)||this}return Object(r.c)(t,e),t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),null!=e.parent&&(t.print(e,e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(e,".prototype);")),e.getters.forEach(function(r){return n._visitClassGetter(e,r,t)}),e.methods.forEach(function(r){return n._visitClassMethod(e,r,t)}),t.popClass(),null},t.prototype._visitClassConstructor=function(e,t){t.print(e,"function "+e.name+"("),null!=e.constructorMethod&&this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),null!=e.constructorMethod&&e.constructorMethod.body.length>0&&(t.println(e,"var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println(e,"}")},t.prototype._visitClassGetter=function(e,t,n){n.println(e,"Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"}});")},t.prototype._visitClassMethod=function(e,t,n){n.print(e,e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(e,") {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"};")},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},t.prototype.visitReadVarExpr=function(t,n){if(t.builtin===Tn.This)n.print(t,"self");else{if(t.builtin===Tn.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");e.prototype.visitReadVarExpr.call(this,t,n)}return null},t.prototype.visitDeclareVarStmt=function(e,t){return t.print(e,"var "+e.name),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null},t.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},t.prototype.visitInvokeFunctionExpr=function(t,n){var r=t.fn;return r instanceof xn&&r.builtin===Tn.Super?(n.currentClass.parent.visitExpression(this,n),n.print(t,".call(this"),t.args.length>0&&(n.print(t,", "),this.visitAllExpressions(t.args,n,",")),n.print(t,")")):e.prototype.visitInvokeFunctionExpr.call(this,t,n),null},t.prototype.visitFunctionExpr=function(e,t){return t.print(e,"function"+(e.name?" "+e.name:"")+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},t.prototype.visitDeclareFunctionStmt=function(e,t){return t.print(e,"function "+e.name+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitTryCatchStmt=function(e,t){t.println(e,"try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println(e,"} catch ("+Sr.name+") {"),t.incIndent();var n=[Dr.set(Sr.prop("stack")).toDeclStmt(null,[er.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null},t.prototype._visitParams=function(e,t){this.visitAllObjects(function(e){return t.print(null,e.name)},e,t,",")},t.prototype.getBuiltinMethodName=function(e){var t;switch(e){case kn.ConcatArray:t="concat";break;case kn.SubscribeObservable:t="subscribe";break;case kn.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t}(Or)),ra=function(){function e(e){this.context=e}return e.prototype.resolveExternalReference=function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to "+e.moduleName+", only references to @angular/core are supported.");if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '"+e.name+"'.");return this.context[e.name]},e.prototype.parameters=function(e){throw new Error("Not implemented.")},e.prototype.annotations=function(e){throw new Error("Not implemented.")},e.prototype.shallowAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.tryAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.propMetadata=function(e){throw new Error("Not implemented.")},e.prototype.hasLifecycleHook=function(e,t){throw new Error("Not implemented.")},e.prototype.guards=function(e){throw new Error("Not implemented.")},e.prototype.componentModuleUrl=function(e,t){throw new Error("Not implemented.")},e}();function ia(e,t,n,i){return function(e,t,n,i){var o=new na(n),a=xr.createRoot();return o.visitAllStatements(t,a),o.createReturnStmt(a),function(e,t,n,i){var o=t.toSource()+"\n//# sourceURL="+e,a=[],l=[];for(var s in n)a.push(s),l.push(n[s]);return(new(Function.bind.apply(Function,Object(r.g)([void 0],a.concat(o))))).apply(void 0,Object(r.g)(l))}(e,a,o.getArgs())}(n,Object(r.g)(i,[new nr("$def",e,void 0,[er.Exported])]),new ra(t)).$def}var oa=n("S1nX");function aa(e){for(var t in e)if(e[t]===aa)return t;throw Error("Could not find renamed property on target object.")}function la(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}n.d(t,"\u0275angular_packages_core_core_l",function(){return xb}),n.d(t,"\u0275angular_packages_core_core_i",function(){return Sb}),n.d(t,"\u0275angular_packages_core_core_j",function(){return Db}),n.d(t,"\u0275angular_packages_core_core_k",function(){return Tb}),n.d(t,"\u0275angular_packages_core_core_f",function(){return Um}),n.d(t,"\u0275angular_packages_core_core_g",function(){return ob}),n.d(t,"\u0275angular_packages_core_core_h",function(){return db}),n.d(t,"\u0275angular_packages_core_core_c",function(){return Hm}),n.d(t,"\u0275angular_packages_core_core_d",function(){return Dm}),n.d(t,"\u0275angular_packages_core_core_e",function(){return Mm}),n.d(t,"\u0275angular_packages_core_core_m",function(){return uy}),n.d(t,"\u0275angular_packages_core_core_o",function(){return oy}),n.d(t,"\u0275angular_packages_core_core_n",function(){return iy}),n.d(t,"\u0275angular_packages_core_core_r",function(){return sy}),n.d(t,"\u0275angular_packages_core_core_p",function(){return ay}),n.d(t,"\u0275angular_packages_core_core_q",function(){return ly}),n.d(t,"\u0275angular_packages_core_core_bd",function(){return ca}),n.d(t,"\u0275angular_packages_core_core_w",function(){return qc}),n.d(t,"\u0275angular_packages_core_core_x",function(){return kd}),n.d(t,"\u0275angular_packages_core_core_v",function(){return Gc}),n.d(t,"\u0275angular_packages_core_core_z",function(){return Ru}),n.d(t,"\u0275angular_packages_core_core_bg",function(){return Ss}),n.d(t,"\u0275angular_packages_core_core_ba",function(){return Nh}),n.d(t,"\u0275angular_packages_core_core_bb",function(){return Fh}),n.d(t,"\u0275angular_packages_core_core_bc",function(){return Hh}),n.d(t,"\u0275angular_packages_core_core_a",function(){return Da}),n.d(t,"\u0275angular_packages_core_core_b",function(){return Ta}),n.d(t,"\u0275angular_packages_core_core_be",function(){return aa}),n.d(t,"\u0275angular_packages_core_core_s",function(){return ww}),n.d(t,"\u0275angular_packages_core_core_t",function(){return tE}),n.d(t,"\u0275angular_packages_core_core_u",function(){return Hb}),n.d(t,"createPlatform",function(){return Ly}),n.d(t,"assertPlatform",function(){return Iy}),n.d(t,"destroyPlatform",function(){return Vy}),n.d(t,"getPlatform",function(){return ky}),n.d(t,"PlatformRef",function(){return Ny}),n.d(t,"ApplicationRef",function(){return Hy}),n.d(t,"createPlatformFactory",function(){return My}),n.d(t,"NgProbeToken",function(){return Oy}),n.d(t,"enableProdMode",function(){return Ng}),n.d(t,"isDevMode",function(){return kg}),n.d(t,"APP_ID",function(){return Bm}),n.d(t,"PACKAGE_ROOT_URL",function(){return Qm}),n.d(t,"PLATFORM_INITIALIZER",function(){return zm}),n.d(t,"PLATFORM_ID",function(){return Wm}),n.d(t,"APP_BOOTSTRAP_LISTENER",function(){return Km}),n.d(t,"APP_INITIALIZER",function(){return Pm}),n.d(t,"ApplicationInitStatus",function(){return Zm}),n.d(t,"DebugElement",function(){return eb}),n.d(t,"DebugNode",function(){return Jy}),n.d(t,"asNativeElements",function(){return tb}),n.d(t,"getDebugNode",function(){return rb}),n.d(t,"Testability",function(){return _y}),n.d(t,"TestabilityRegistry",function(){return Ey}),n.d(t,"setTestabilityGetter",function(){return Ay}),n.d(t,"TRANSLATIONS",function(){return _b}),n.d(t,"TRANSLATIONS_FORMAT",function(){return Eb}),n.d(t,"LOCALE_ID",function(){return wb}),n.d(t,"MissingTranslationStrategy",function(){return Ab}),n.d(t,"ApplicationModule",function(){return Ob}),n.d(t,"wtfCreateScope",function(){return py}),n.d(t,"wtfLeave",function(){return dy}),n.d(t,"wtfStartTimeRange",function(){return hy}),n.d(t,"wtfEndTimeRange",function(){return fy}),n.d(t,"Type",function(){return _l}),n.d(t,"EventEmitter",function(){return lg}),n.d(t,"ErrorHandler",function(){return ym}),n.d(t,"Sanitizer",function(){return iv}),n.d(t,"SecurityContext",function(){return rv}),n.d(t,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return xa}),n.d(t,"Attribute",function(){return Oa}),n.d(t,"ContentChild",function(){return Ia}),n.d(t,"ContentChildren",function(){return Ma}),n.d(t,"Query",function(){return La}),n.d(t,"ViewChild",function(){return ka}),n.d(t,"ViewChildren",function(){return Va}),n.d(t,"Component",function(){return Jv}),n.d(t,"Directive",function(){return Xv}),n.d(t,"HostBinding",function(){return im}),n.d(t,"HostListener",function(){return om}),n.d(t,"Input",function(){return nm}),n.d(t,"Output",function(){return rm}),n.d(t,"Pipe",function(){return em}),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",function(){return am}),n.d(t,"NO_ERRORS_SCHEMA",function(){return lm}),n.d(t,"NgModule",function(){return sm}),n.d(t,"ViewEncapsulation",function(){return kl}),n.d(t,"Version",function(){return um}),n.d(t,"VERSION",function(){return cm}),n.d(t,"defineInjectable",function(){return va}),n.d(t,"defineInjector",function(){return ma}),n.d(t,"forwardRef",function(){return Wa}),n.d(t,"resolveForwardRef",function(){return Ka}),n.d(t,"Injectable",function(){return pm}),n.d(t,"inject",function(){return Cl}),n.d(t,"INJECTOR",function(){return rl}),n.d(t,"Injector",function(){return ol}),n.d(t,"ReflectiveInjector",function(){return Fm}),n.d(t,"createInjector",function(){return Nf}),n.d(t,"ResolvedReflectiveFactory",function(){return Om}),n.d(t,"ReflectiveKey",function(){return Em}),n.d(t,"InjectionToken",function(){return Ca}),n.d(t,"Inject",function(){return Qa}),n.d(t,"Optional",function(){return $a}),n.d(t,"Self",function(){return Ya}),n.d(t,"SkipSelf",function(){return Xa}),n.d(t,"Host",function(){return Ja}),n.d(t,"NgZone",function(){return gy}),n.d(t,"\u0275NoopNgZone",function(){return wy}),n.d(t,"RenderComponentType",function(){return $h}),n.d(t,"Renderer",function(){return Xh}),n.d(t,"Renderer2",function(){return nf}),n.d(t,"RendererFactory2",function(){return ef}),n.d(t,"RendererStyleFlags2",function(){return tf}),n.d(t,"RootRenderer",function(){return Jh}),n.d(t,"COMPILER_OPTIONS",function(){return ny}),n.d(t,"Compiler",function(){return ty}),n.d(t,"CompilerFactory",function(){return ry}),n.d(t,"ModuleWithComponentFactories",function(){return Ym}),n.d(t,"ComponentFactory",function(){return wh}),n.d(t,"ComponentRef",function(){return Ch}),n.d(t,"ComponentFactoryResolver",function(){return xh}),n.d(t,"ElementRef",function(){return Qh}),n.d(t,"NgModuleFactory",function(){return Ih}),n.d(t,"NgModuleRef",function(){return Mh}),n.d(t,"NgModuleFactoryLoader",function(){return Ry}),n.d(t,"getModuleFactory",function(){return By}),n.d(t,"QueryList",function(){return Uy}),n.d(t,"SystemJsNgModuleLoader",function(){return zy}),n.d(t,"SystemJsNgModuleLoaderConfig",function(){return Gy}),n.d(t,"TemplateRef",function(){return sg}),n.d(t,"ViewContainerRef",function(){return Ky}),n.d(t,"EmbeddedViewRef",function(){return Yy}),n.d(t,"ViewRef",function(){return $y}),n.d(t,"ChangeDetectionStrategy",function(){return Na}),n.d(t,"ChangeDetectorRef",function(){return Qy}),n.d(t,"DefaultIterableDiffer",function(){return lb}),n.d(t,"IterableDiffers",function(){return gb}),n.d(t,"KeyValueDiffers",function(){return vb}),n.d(t,"SimpleChange",function(){return ms}),n.d(t,"WrappedValue",function(){return vs}),n.d(t,"platformCore",function(){return Cb}),n.d(t,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return xy}),n.d(t,"\u0275APP_ID_RANDOM_PROVIDER",function(){return Gm}),n.d(t,"\u0275defaultIterableDiffers",function(){return yb}),n.d(t,"\u0275defaultKeyValueDiffers",function(){return bb}),n.d(t,"\u0275devModeEqual",function(){return gs}),n.d(t,"\u0275isListLikeIterable",function(){return ys}),n.d(t,"\u0275ChangeDetectorStatus",function(){return Fa}),n.d(t,"\u0275isDefaultChangeDetectionStrategy",function(){return Ha}),n.d(t,"\u0275Console",function(){return $m}),n.d(t,"\u0275getInjectableDef",function(){return ya}),n.d(t,"\u0275inject",function(){return Cl}),n.d(t,"\u0275setCurrentInjector",function(){return bl}),n.d(t,"\u0275APP_ROOT",function(){return Of}),n.d(t,"\u0275ivyEnabled",function(){return qv}),n.d(t,"\u0275ComponentFactory",function(){return wh}),n.d(t,"\u0275CodegenComponentFactoryResolver",function(){return Oh}),n.d(t,"\u0275resolveComponentResources",function(){return Ll}),n.d(t,"\u0275ReflectionCapabilities",function(){return Tl}),n.d(t,"\u0275RenderDebugInfo",function(){return Yh}),n.d(t,"\u0275_sanitizeHtml",function(){return tv}),n.d(t,"\u0275_sanitizeStyle",function(){return lv}),n.d(t,"\u0275_sanitizeUrl",function(){return Rg}),n.d(t,"\u0275global",function(){return Pa}),n.d(t,"\u0275looseIdentical",function(){return qa}),n.d(t,"\u0275stringify",function(){return za}),n.d(t,"\u0275makeDecorator",function(){return Aa}),n.d(t,"\u0275isObservable",function(){return Rm}),n.d(t,"\u0275isPromise",function(){return jm}),n.d(t,"\u0275clearOverrides",function(){return oE}),n.d(t,"\u0275initServicesIfNeeded",function(){return y_}),n.d(t,"\u0275overrideComponentView",function(){return iE}),n.d(t,"\u0275overrideProvider",function(){return rE}),n.d(t,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return xw}),n.d(t,"\u0275defineBase",function(){return Ul}),n.d(t,"\u0275defineComponent",function(){return jl}),n.d(t,"\u0275defineDirective",function(){return Gl}),n.d(t,"\u0275definePipe",function(){return ql}),n.d(t,"\u0275defineNgModule",function(){return Zl}),n.d(t,"\u0275detectChanges",function(){return fd}),n.d(t,"\u0275renderComponent",function(){return Ud}),n.d(t,"\u0275Render3ComponentFactory",function(){return uf}),n.d(t,"\u0275Render3ComponentRef",function(){return cf}),n.d(t,"\u0275directiveInject",function(){return uh}),n.d(t,"\u0275injectAttribute",function(){return ch}),n.d(t,"\u0275getFactoryOf",function(){return mh}),n.d(t,"\u0275getInheritedFactory",function(){return yh}),n.d(t,"\u0275templateRefExtractor",function(){return Eg}),n.d(t,"\u0275PublicFeature",function(){return bh}),n.d(t,"\u0275InheritDefinitionFeature",function(){return $d}),n.d(t,"\u0275NgOnChangesFeature",function(){return Jd}),n.d(t,"\u0275Render3NgModuleRef",function(){return Bf}),n.d(t,"\u0275markDirty",function(){return md}),n.d(t,"\u0275NgModuleFactory",function(){return Uf}),n.d(t,"\u0275NO_CHANGE",function(){return yd}),n.d(t,"\u0275container",function(){return Jp}),n.d(t,"\u0275nextContext",function(){return cp}),n.d(t,"\u0275elementStart",function(){return yp}),n.d(t,"\u0275namespaceHTML",function(){return vp}),n.d(t,"\u0275namespaceMathML",function(){return gp}),n.d(t,"\u0275namespaceSVG",function(){return fp}),n.d(t,"\u0275element",function(){return mp}),n.d(t,"\u0275listener",function(){return Mp}),n.d(t,"\u0275text",function(){return zp}),n.d(t,"\u0275embeddedViewStart",function(){return rd}),n.d(t,"\u0275query",function(){return wg}),n.d(t,"\u0275registerContentQuery",function(){return Pd}),n.d(t,"\u0275projection",function(){return ud}),n.d(t,"\u0275bind",function(){return bd}),n.d(t,"\u0275interpolation1",function(){return wd}),n.d(t,"\u0275interpolation2",function(){return _d}),n.d(t,"\u0275interpolation3",function(){return Ed}),n.d(t,"\u0275interpolation4",function(){return Ad}),n.d(t,"\u0275interpolation5",function(){return Sd}),n.d(t,"\u0275interpolation6",function(){return Dd}),n.d(t,"\u0275interpolation7",function(){return Td}),n.d(t,"\u0275interpolation8",function(){return xd}),n.d(t,"\u0275interpolationV",function(){return Cd}),n.d(t,"\u0275pipeBind1",function(){return tg}),n.d(t,"\u0275pipeBind2",function(){return ng}),n.d(t,"\u0275pipeBind3",function(){return rg}),n.d(t,"\u0275pipeBind4",function(){return ig}),n.d(t,"\u0275pipeBindV",function(){return og}),n.d(t,"\u0275pureFunction0",function(){return Gf}),n.d(t,"\u0275pureFunction1",function(){return qf}),n.d(t,"\u0275pureFunction2",function(){return zf}),n.d(t,"\u0275pureFunction3",function(){return Wf}),n.d(t,"\u0275pureFunction4",function(){return Kf}),n.d(t,"\u0275pureFunction5",function(){return Qf}),n.d(t,"\u0275pureFunction6",function(){return $f}),n.d(t,"\u0275pureFunction7",function(){return Yf}),n.d(t,"\u0275pureFunction8",function(){return Xf}),n.d(t,"\u0275pureFunctionV",function(){return Jf}),n.d(t,"\u0275getCurrentView",function(){return Bc}),n.d(t,"\u0275restoreView",function(){return Uc}),n.d(t,"\u0275containerRefreshStart",function(){return td}),n.d(t,"\u0275containerRefreshEnd",function(){return nd}),n.d(t,"\u0275queryRefresh",function(){return _g}),n.d(t,"\u0275loadQueryList",function(){return Md}),n.d(t,"\u0275elementEnd",function(){return kp}),n.d(t,"\u0275elementProperty",function(){return Fp}),n.d(t,"\u0275projectionDef",function(){return ld}),n.d(t,"\u0275reference",function(){return Ld}),n.d(t,"\u0275enableBindings",function(){return Hp}),n.d(t,"\u0275disableBindings",function(){return jp}),n.d(t,"\u0275elementAttribute",function(){return Np}),n.d(t,"\u0275elementStyling",function(){return Bp}),n.d(t,"\u0275elementStylingMap",function(){return qp}),n.d(t,"\u0275elementStyleProp",function(){return Gp}),n.d(t,"\u0275elementStylingApply",function(){return Up}),n.d(t,"\u0275elementClassProp",function(){return Zp}),n.d(t,"\u0275textBinding",function(){return Wp}),n.d(t,"\u0275template",function(){return Xp}),n.d(t,"\u0275embeddedViewEnd",function(){return id}),n.d(t,"\u0275store",function(){return Od}),n.d(t,"\u0275load",function(){return Id}),n.d(t,"\u0275pipe",function(){return eg}),n.d(t,"\u0275whenRendered",function(){return Kd}),n.d(t,"\u0275i18nAttribute",function(){return ff}),n.d(t,"\u0275i18nExp",function(){return gf}),n.d(t,"\u0275i18nStart",function(){return vf}),n.d(t,"\u0275i18nEnd",function(){return mf}),n.d(t,"\u0275i18nApply",function(){return yf}),n.d(t,"\u0275i18nExpMapping",function(){return bf}),n.d(t,"\u0275i18nInterpolation1",function(){return Cf}),n.d(t,"\u0275i18nInterpolation2",function(){return wf}),n.d(t,"\u0275i18nInterpolation3",function(){return _f}),n.d(t,"\u0275i18nInterpolation4",function(){return Ef}),n.d(t,"\u0275i18nInterpolation5",function(){return Af}),n.d(t,"\u0275i18nInterpolation6",function(){return Sf}),n.d(t,"\u0275i18nInterpolation7",function(){return Df}),n.d(t,"\u0275i18nInterpolation8",function(){return Tf}),n.d(t,"\u0275i18nInterpolationV",function(){return xf}),n.d(t,"\u0275i18nMapping",function(){return df}),n.d(t,"\u0275WRAP_RENDERER_FACTORY2",function(){return sf}),n.d(t,"\u0275Render3DebugRendererFactory2",function(){return uE}),n.d(t,"\u0275compileNgModuleDefs",function(){return Fv}),n.d(t,"\u0275patchComponentDefWithScope",function(){return Hv}),n.d(t,"\u0275compileComponent",function(){return Vv}),n.d(t,"\u0275compileDirective",function(){return kv}),n.d(t,"\u0275compilePipe",function(){return Nv}),n.d(t,"\u0275sanitizeHtml",function(){return sv}),n.d(t,"\u0275sanitizeStyle",function(){return uv}),n.d(t,"\u0275sanitizeUrl",function(){return cv}),n.d(t,"\u0275sanitizeResourceUrl",function(){return pv}),n.d(t,"\u0275bypassSanitizationTrustHtml",function(){return Dg}),n.d(t,"\u0275bypassSanitizationTrustStyle",function(){return Tg}),n.d(t,"\u0275bypassSanitizationTrustScript",function(){return xg}),n.d(t,"\u0275bypassSanitizationTrustUrl",function(){return Og}),n.d(t,"\u0275bypassSanitizationTrustResourceUrl",function(){return Lg}),n.d(t,"\u0275getContext",function(){return js}),n.d(t,"\u0275bindPlayerFactory",function(){return ju}),n.d(t,"\u0275addPlayer",function(){return pE}),n.d(t,"\u0275getPlayers",function(){return dE}),n.d(t,"\u0275compileNgModuleFactory__POST_NGCC__",function(){return Ty}),n.d(t,"\u0275R3_COMPILE_COMPONENT__POST_NGCC__",function(){return Rv}),n.d(t,"\u0275R3_COMPILE_DIRECTIVE__POST_NGCC__",function(){return Pv}),n.d(t,"\u0275R3_COMPILE_INJECTABLE__POST_NGCC__",function(){return Zv}),n.d(t,"\u0275R3_COMPILE_NGMODULE__POST_NGCC__",function(){return Bv}),n.d(t,"\u0275R3_COMPILE_PIPE__POST_NGCC__",function(){return Uv}),n.d(t,"\u0275ivyEnable__POST_NGCC__",function(){return Gv}),n.d(t,"\u0275R3_ELEMENT_REF_FACTORY__POST_NGCC__",function(){return Rh}),n.d(t,"\u0275R3_TEMPLATE_REF_FACTORY__POST_NGCC__",function(){return Ph}),n.d(t,"\u0275R3_CHANGE_DETECTOR_REF_FACTORY__POST_NGCC__",function(){return Zh}),n.d(t,"\u0275R3_VIEW_CONTAINER_REF_FACTORY__POST_NGCC__",function(){return Bh}),n.d(t,"\u0275R3_RENDERER2_FACTORY__POST_NGCC__",function(){return Uh}),n.d(t,"\u0275registerModuleFactory",function(){return Zy}),n.d(t,"\u0275EMPTY_ARRAY",function(){return SC}),n.d(t,"\u0275EMPTY_MAP",function(){return DC}),n.d(t,"\u0275and",function(){return TC}),n.d(t,"\u0275ccf",function(){return WC}),n.d(t,"\u0275cmf",function(){return aE}),n.d(t,"\u0275crt",function(){return Kb}),n.d(t,"\u0275did",function(){return yw}),n.d(t,"\u0275eld",function(){return xC}),n.d(t,"\u0275elementEventFullName",function(){return oC}),n.d(t,"\u0275getComponentViewDefinitionFactory",function(){return KC}),n.d(t,"\u0275inlineInterpolate",function(){return EC}),n.d(t,"\u0275interpolate",function(){return _C}),n.d(t,"\u0275mod",function(){return jC}),n.d(t,"\u0275mpd",function(){return HC}),n.d(t,"\u0275ncd",function(){return Pw}),n.d(t,"\u0275nov",function(){return ow}),n.d(t,"\u0275pid",function(){return bw}),n.d(t,"\u0275prd",function(){return Cw}),n.d(t,"\u0275pad",function(){return Uw}),n.d(t,"\u0275pod",function(){return Gw}),n.d(t,"\u0275ppd",function(){return Bw}),n.d(t,"\u0275qud",function(){return Nw}),n.d(t,"\u0275ted",function(){return zw}),n.d(t,"\u0275unv",function(){return qb}),n.d(t,"\u0275vid",function(){return Qw});var sa=aa({ngComponentDef:aa}),ua=aa({ngDirectiveDef:aa}),ca=aa({ngInjectableDef:aa}),pa=aa({ngInjectorDef:aa}),da=aa({ngPipeDef:aa}),ha=aa({ngModuleDef:aa}),fa=aa({ngBaseDef:aa}),ga=aa({__NG_ELEMENT_ID__:aa});function va(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ma(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ya(e){return e.hasOwnProperty(ca)?e[ca]:null}function ba(e){return e.hasOwnProperty(pa)?e[pa]:null}var Ca=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?va({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),wa="__annotations__",_a="__parameters__",Ea="__prop__metadata__";function Aa(e,t,n,i,o){var a=Sa(t);function l(){for(var e,t=[],n=0;n ");else if("object"==typeof t){var i=[];for(var o in t)if(t.hasOwnProperty(o)){var a=t[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):za(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(dl,"\n ")}function ml(e,t){return new Error(vl(e,t))}var yl=void 0;function bl(e){var t=yl;return yl=e,t}function Cl(e,t){if(void 0===t&&(t=0),void 0===yl)throw new Error("inject() must be called from an injection context");if(null===yl){var n=ya(e);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&t)return null;throw new Error("Injector: NOT_FOUND ["+za(e)+"]")}return yl.get(e,8&t?null:void 0,t)}function wl(e){for(var t=[],n=0;n=Yl?n:n[rs]}function Ms(e){return 0!=(16384&e.flags)}function Is(e){return 4096==(4096&e.flags)}function Vs(e){return Array.isArray(e)&&"number"==typeof e[Cs]}function ks(e){for(var t=Array.isArray(e)?e:Hs(e);t&&!(64&t[Jl]);)t=t[es];return t}function Ns(e){return ks(e)[ls]}function Fs(e){return e[$l]}function Hs(e){var t=Fs(e);return t?Array.isArray(t)?t:t.lViewData:null}function js(e){var t,n=Fs(e);if(n){if(Array.isArray(n)){var r=n,i=void 0,o=void 0,a=void 0;if((t=e)&&t.constructor&&t.constructor.ngComponentDef){if(-1==(i=Gs(r,e)))throw new Error("The provided component was not found in the application");o=e}else if(e&&e.constructor&&e.constructor.ngDirectiveDef){if(-1==(i=function(e,t){for(var n=e[Xl].firstChild;n;){for(var r=qs(n),i=zs(n,r),o=r;o=0){var f;Zs(f=Ds(r[h]),s=Rs(r,h,f)),n=s;break}}}return n||null}function Rs(e,t,n){return{lViewData:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Ps(e){var t,n=Fs(e);if(Array.isArray(n)){var r=Gs(n,e);(i=Rs(n,r,(t=Ls(r,n))[rs])).component=e,Zs(e,i),Zs(i.native,i)}else{var i;t=Ls((i=n).nodeIndex,i.lViewData)}return t}function Zs(e,t){e[$l]=t}function Bs(e,t){for(var n=e[Xl].firstChild;n;){if(xs(n,e)===t)return n.index;n=Us(n)}return-1}function Us(e){return e.child?e.child:e.next?e.next:e.parent&&e.parent.next||null}function Gs(e,t){var n=e[Xl].components;if(n)for(var r=0;r>15}function zs(e,t){var n=4095&e.flags;return n?t+n:-1}function Ws(e,t,n,r){t&&(r.initHooks||(r.initHooks=[])).push(e,t),n&&((r.initHooks||(r.initHooks=[])).push(e,n),(r.checkHooks||(r.checkHooks=[])).push(e,n))}function Ks(e,t){if(t.firstTemplatePass)for(var n=e>>15,r=n+(4095&e),i=n;i-1?t[es][n]:null}return t[es][e.parent.index]}function pu(e,t){var n=cu(e,t);return n?n[Es]:null}var du=[];function hu(e,t,n,r,i){for(var o=e[Xl].node,a=-1,l=e,s=o.child;s;){var u=null;if(3===s.type){gu(t,n,r,xs(s,l),i);var c=l[s.index];Vs(c)&&gu(t,n,r,c[_s],i)}else if(0===s.type){var p=l[s.index];gu(t,n,r,p[_s],i),r&&(p[Es]=r),p[ws].length&&(u=(l=p[ws][0])[Xl].node,i=p[_s])}else if(1===s.type){var d=fu(l),h=d[is].projection[s.projection];du[++a]=s,du[++a]=l,h&&(u=(l=d[es])[Xl].data[h.index])}else u=s.child;if(null===u)for(null===s.next&&8192&s.flags&&(l=du[a--],s=du[a--]),u=s.next;!u;){if(null===(s=s.parent||l[Xl].node)||s===o)return null;0===s.type&&(i=(l=l[es])[s.index][_s]),u=2===s.type&&l[ts]?(l=l[ts])[Xl].node:s.next}s=u}}function fu(e){for(var t=e[is];t&&2===t.type;)t=(e=e[es])[is];return e}function gu(e,t,n,r,i){0===e?lu(t)?t.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===e?lu(t)?t.removeChild(n,r):n.removeChild(r):2===e&&t.destroyNode(r)}function vu(e,t){return lu(t)?t.createText(As(e)):t.createTextNode(As(e))}function mu(e,t,n){var r=pu(e[Xl].node,e);r&&hu(e,t?0:1,e[us],r,n)}function yu(e,t,n,r,i){var o=t[ws];r>0&&(o[r-1][ts]=e),r-1&&(e[ds]=i,e[es]=n),e[ns]&&e[ns].insertView(r),e[Jl]|=8}function bu(e,t,n){var r=e[ws],i=r[t];t>0&&(r[t-1][ts]=i[ts]),r.splice(t,1),n||mu(i,!1),i[ns]&&i[ns].removeView(),i[ds]=-1,i[es]=null,i[Jl]&=-9}function Cu(e,t,n){var r=e[ws][n];bu(e,n,!!t.detached),_u(r)}function wu(e){var t=e[Xl].childIndex;return-1===t?null:e[t]}function _u(e){var t=e[us];lu(t)&&t.destroyNode&&hu(e,2,t,null),function(e){if(-1===e[Xl].childIndex)return Au(e);for(var t=wu(e);t;){var n=null;if(t.length>=Yl?t[Xl].childIndex>-1&&(n=wu(t)):t[ws].length&&(n=t[ws][0]),null==n){for(;t&&!t[ts]&&t!==e;)Au(t),t=Eu(t,e);Au(t||e),n=t&&t[ts]}t=n}}(e),e[Jl]|=32}function Eu(e,t){var n;return e.length>=Yl&&(n=e[is])&&2===n.type?cu(n,e):e[es]===t?null:e[es]}function Au(e){if(e.length>=Yl){var t=e;!function(e){var t=e[Xl].cleanup;if(null!=t){for(var n=0;n-1&&h>u?"":s[h+1],8&l&&(i=(n=f).length,a=(o=n.indexOf(r=g))+r.length,-1===o||o>0&&" "!==n[o-1]||a=8?t+0:t;n?e[r]|=1:e[r]&=-2}function Xu(e,t){return 1==(1&e[t>=8?t+0:t])}function Ju(e,t){return 2==(2&e[t>=8?t+0:t])}function ec(e,t){return 4==(4&e[t>=8?t+0:t])}function tc(e,t,n){return 15&e|t<<4|n<<18}function nc(e,t){var n=rc(t);return e[2][n]}function rc(e){return e>>4&16383}function ic(e){var t=e>>18&16383;return t>=8?t:-1}function oc(e){return ic(e[3])}function ac(e){return e[1]}function lc(e,t,n){e[t+1]=n}function sc(e,t,n){e[t+2]=n}function uc(e,t,n){var r=e[0];if(t){if(!r||0===n)return!0}else if(!r)return!1;return r[n]!==t}function cc(e,t,n){var r=e[0]||qu(e);return n>0?r[n]=t:(r.splice(n=r[0],0,t,null),r[0]+=2),n}function pc(e,t,n){e[t+3]=n}function dc(e,t){return e[t+3]||0}function hc(e,t){var n=dc(e,t);if(n){var r=e[0];if(r)return r[n]}return null}function fc(e,t,n){e[3===t?t:t+0]=n}function gc(e,t){return e[3===t?t:t+0]}function vc(e,t){return e[t+2]}function mc(e,t){return e[t+1]}function yc(e,t){Yu(e,3,t)}function bc(e,t){t?e[3]|=8:e[3]&=-9}function Cc(e,t,n){for(var r=(n||0)+1;r=0&&fc(e,u,tc(c=gc(e,u),rc(c),n));var c,p=ic(s);p>=0&&fc(e,p,tc(c=gc(e,p),rc(c),t)),sc(e,t,vc(e,n)),lc(e,t,mc(e,n)),fc(e,t,gc(e,n)),pc(e,t,dc(e,n)),sc(e,n,r),lc(e,n,i),fc(e,n,o),pc(e,n,a)}function _c(e,t,n,r,i,o,a){var l=t0){var o=rc(gc(e,i));fc(e,i,tc((Xu(e,i)?1:0)|(Ju(e,i)?2:0)|(ec(e,i)?4:0),o,r))}}}(e)}function Ec(e,t){return t?!!e:null!==e}function Ac(e,t,n){return t?2:n&&n(e)?4:0}function Sc(e,t,n){return!(2&e)&&t&&n&&4&e?t.toString()!==n.toString():t!==n}var Dc,Tc,xc,Oc,Lc,Mc,Ic,Vc,kc,Nc,Fc=function(){function e(e,t,n){this._element=t,this._type=n,this._values={},this._dirty=!1,this._factory=e}return e.prototype.setValue=function(e,t){this._values[e]!==t&&(this._values[e]=t,this._dirty=!0)},e.prototype.buildPlayer=function(e){if(this._dirty){var t=this._factory.fn(this._element,this._type,this._values,e||null);return this._values={},this._dirty=!1,t}},e}(),Hc=Promise.resolve(null),jc="__CIRCULAR__";function Rc(){return Dc}function Pc(){return Tc}function Zc(){return Nc&&Nc[cs]}function Bc(){return Nc}function Uc(e){zc=e}function Gc(){return Lc}function qc(){return Nc}var zc=null;function Wc(e){return e[as]||(e[as]=[])}function Kc(e){return e[Xl].cleanup||(e[Xl].cleanup=[])}var Qc=!1,$c=!0,Yc=-1;function Xc(){return Yc}function Jc(e,t){var n=Nc;return Ic=e&&e[Xl],kc=e&&1==(1&e[Jl]),$c=e&&Ic.firstTemplatePass,Yc=e&&Ic.bindingStartIndex,Dc=e&&e[us],Lc=t,Mc=!0,Nc=zc=e,n&&(n[ns]=Vc),Vc=e&&e[ns],n}function ep(e,t){t||(Qc||Js(Nc,Ic.viewHooks,Ic.viewCheckHooks,kc),Nc[Jl]&=-6),Nc[Jl]|=16,Nc[os]=Ic.bindingStartIndex,Jc(e,null)}function tp(){np();var e=$c;Ic.firstTemplatePass=$c=!1,Qc||Xs(Nc,Ic,kc),function(e){for(var t=wu(Nc);null!==t;t=t[ts])if(t.length0;)t=t[fs],e--;return t}(e,zc))[ls]}function pp(e,t,n){var r=Jc(e,e[is]);try{Tc.begin&&Tc.begin(),n?(vp(),n(dp(e),t),tp()):(rp(),np(),od(Yl,!1))}finally{Tc.end&&Tc.end(),ep(r)}}function dp(e){return 1&e[Jl]?3:2}var hp=null;function fp(){hp="http://www.w3.org/2000/svg/"}function gp(){hp="http://www.w3.org/1998/MathML/"}function vp(){hp=null}function mp(e,t,n,r){yp(e,t,n,r),kp()}function yp(e,t,n,r){var i=bp(t),o=op(e,3,i,t,n||null);n&&Op(i,n),xu(i,o,Nc),Cp(r),0===xc&&Zs(i,Nc),xc++}function bp(e,t){var n=t||Dc;return lu(n)?n.createElement(e,hp):null===hp?n.createElement(e):n.createElementNS(hp,e)}function Cp(e,t){void 0===t&&(t=xs),Oc&&($c?function(e,t,n){var r=n?{"":-1}:null,i=t.currentMatches=Ep(e);wp(e,i);var o=0;if(i)for(var a=0;a0)for(var t=Lc.flags>>15,n=t+e,r=t;r0&&(Ic.expandoInstructions||(Ic.expandoInstructions=[])).push(r,n)}function _p(e){for(var t=0;t0)for(var i=e>>15,o=i+n,a=0===t,l=Ic.data,s=i;s=v,w=(c=C?g[u-v]:f[u],C?a[c]:o[c]),_=r[w],E=4*u+b,A=4*u+8,S=Ac(c,C,n||null);fc(i,A,tc(S,w,E)),lc(i,A,c),sc(i,A,null),pc(i,A,0),fc(i,E,tc(S|(null!==_?1:0),w,A)),lc(i,E,c),sc(i,E,null),pc(i,E,0)}return fc(i,3,tc(0,0,b)),yc(i,r.length>1),i}(e,t,n)),(t&&t.length||e&&e.length)&&Up(r.index-Yl)}function Up(e){(function(e,t,n,r,i){var o=0;if(function(e){return Xu(e,3)}(e)){for(var a=8&e[3],l=e[5],s=oc(e),u=ac(e),c=8;c0&&dd(Ns(Nc),2)}function Gp(e,t,n,r){var i=null;n&&(i=r?As(n)+r:n),Ku(Bu(e,Nc),t,i)}function qp(e,t,n){!function(e,t,n){n=n||null;var r=e[5],i=t instanceof Ru?new Fc(t,r,2):null,o=n instanceof Ru?new Fc(n,r,3):null,a=i?t.value:t,l=o?n.value:n,s=a===e[6],u=l===e[7];if(!s||!u){e[6]=a,e[7]=l;var c=zu,p=!1,d=!1,h=i?1:0;uc(e,i,1)&&(cc(e,i,1),d=!0);var f=o?3:0;uc(e,o,3)&&(cc(e,o,3),d=!0),s||("string"==typeof a?(c=a.split(/\s+/),p=!0):c=a?Object.keys(a):zu);for(var g=a||Wu,v=l?Object.keys(l):zu,m=l||Wu,y=v.length,b=!1,C=oc(e),w=0,_=v.length+c.length;C=y;if(!E&&!u||E&&!s){var A=E?w-y:w,S=E?c[A]:v[A],D=E?!!p||g[S]:m[S],T=E?h:f;if((H=mc(e,C))===S){var x=vc(e,C),O=gc(e,C);pc(e,C,T),Sc(O,x,D)&&(sc(e,C,D),d=d||!!T,Sc(O,V=nc(e,O),D)&&(Yu(e,C,!0),b=!0))}else{var L=Cc(e,S,C);if(L>0){var M=vc(e,L),I=gc(e,L);if(wc(e,C,L),Sc(I,M,D)){var V=nc(e,I);sc(e,C,D),Sc(I,V,D)&&(Yu(e,C,!0),d=d||!!T,b=!0)}}else d=d||!!T,_c(e,C,E,S,Ac(S,E,ac(e)),D,T),b=!0}}C+=4,w++}for(;C=y;if(!F&&!u||F&&!s){A=F?w-y:w;var H=F?c[A]:v[A];x=F?!!p||g[H]:m[H],O=1|Ac(H,F,N),e.push(O,H,x,T=F?h:f),b=!0}w++}b&&yc(e,!0),d&&bc(e,!0)}}(Bu(e,Nc),t,n)}function zp(e,t){var n=vu(t,Dc),r=op(e,3,n,null,null);Mc=!1,xu(n,r,Nc)}function Wp(e,t){if(t!==yd){var n=Ts(e,Nc);lu(Dc)?Dc.setValue(n,As(t)):n.textContent=As(t)}}function Kp(e,t,n){var r=$p(e,t,n,xs(Lc,Nc));return n.template&&(Ls(Lc.index,Nc)[ls]=t),$c&&Ws(e,n.onInit,n.doCheck,Ic),Lc&&Lc.attrs&&function(e,t,r,i){var o=Lc.initialInputs;(void 0===o||e>=o.length)&&(o=function(e,t,n){var r=n.initialInputs||(n.initialInputs=[]);r[e]=null;for(var i=n.attrs,o=0;o=o.length||null==o[e])&&(o[e]=xp(e,null,t,n,Ic.directiveRegistry,Ic.pipeRegistry,null)),o[e]}(e,t,n),null,2,Zc()),i[ns]&&(a[ns]=i[ns].createView()),ap(e,a),Jc(a,a[Xl].node)),i&&(kc&&yu(a,i,o,i[Cs],-1),i[Cs]++),dp(a)}function id(){var e=Nc[is];tp(),ep(Nc[es]),Lc=e,Mc=!1}function od(e,t){var n=Ls(e,Nc);ad(n)&&6&n[Jl]&&(t&&function(e){for(var t=e[Xl],n=e.length;n=Ic.data.length&&(Ic.data[n]=null),Nc[n]=t}function Ld(e){return Ss(e,zc)}function Md(e){return Nc[hs][e]}function Id(e){return Ss(e,Nc)}function Vd(e){return Nc[e]}function kd(e,t){if(Nc[e]===yd)Nc[e]=t;else{if(r=t,(n=Nc[e])!=n&&r!=r||n===r)return!1;!function(n,r,i,o){if(r){var a="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+Nc[e]+"'. Current value: '"+t+"'.";throw n&&(a+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),new Error(a)}}(kc,Qc),Nc[e]=t}var n,r;return!0}function Nd(e,t){return Nc[e]=t}function Fd(e,t,n){var r=kd(e,t);return kd(e+1,n)||r}function Hd(e,t,n,r){var i=Fd(e,t,n);return kd(e+2,r)||i}function jd(e,t,n,r,i){var o=Fd(e,t,n);return Fd(e+2,r,i)||o}function Rd(){return Ic}function Pd(e){var t=(Nc[hs]||(Nc[hs]=[])).push(e);if($c){var n=Nc.length-1,r=Ic.contentQueries||(Ic.contentQueries=[]);n!==(Ic.contentQueries.length?Ic.contentQueries[Ic.contentQueries.length-2]:-1)&&r.push(n,t-1)}}var Zd=Hc,Bd=[0,1];function Ud(e,t){void 0===t&&(t={});var n=t.rendererFactory||su,r=t.sanitizer||null,i=zl(e);i.type!=e&&(i.type=e);var o=Lp(n,t.host||i.selectors[0][0]),a=i.onPush?68:66,l=zd(t.scheduler||requestAnimationFrame.bind(window),t.playerHandler||null),s=n.createRenderer(o,i),u=ip(s,xp(-1,null,1,0,null,null,null),l,a);u[ss]=t.injector||null;var c,p=Jc(u,null);try{n.begin&&n.begin();var d=Gd(o,i,u,s,r);c=qd(o,d,i,u,l,t.hostFeatures||null),rp(),vd(d,c)}finally{ep(p),n.end&&n.end()}return c}function Gd(e,t,n,r,i){sp();var o=n[Xl],a=ip(r,Tp(t.template,t.consts,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery),null,t.onPush?4:2,i),l=op(0,3,e,null,null);return o.firstTemplatePass&&(o.expandoInstructions=Bd.slice(),t.diPublic&&t.diPublic(t),l.flags=n.length<<15|4096),a[rs]=n[Yl],a[is]=l,n[Yl]=a}function qd(e,t,n,r,i,o){var a=$p(r.length,n.factory(),n,e);return i.components.push(a),t[ls]=a,o&&o.forEach(function(e){return e(a,n)}),r[Xl].firstTemplatePass&&_p(n.hostVars),np(),a}function zd(e,t){return{components:[],scheduler:e,clean:Zd,playerHandler:t||null,flags:0}}function Wd(e,t){var n=Hs(e)[Xl],r=n.data.length-1;Ws(r,t.onInit,t.doCheck,n),Ks(r<<15|1,n)}function Kd(e){return function(e){return ks(e)[ls]}(e).clean}function Qd(e){return"function"==typeof e.template}function $d(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=function(){var n,i,o=void 0;if(Qd(e))o=t.ngComponentDef||t.ngDirectiveDef;else{if(t.ngComponentDef)throw new Error("Directives cannot inherit Components");o=t.ngDirectiveDef}var a=t.ngBaseDef;if(a||o){var l=e;l.inputs=Yd(e.inputs),l.declaredInputs=Yd(e.declaredInputs),l.outputs=Yd(e.outputs)}if(a&&(la(e.inputs,a.inputs),la(e.declaredInputs,a.declaredInputs),la(e.outputs,a.outputs)),o){var s=e.hostBindings,u=o.hostBindings;if(u&&(e.hostBindings=s?function(e,t){u(e,t),s(e,t)}:u),Qd(e)&&Qd(o)){var c=e.viewQuery,p=o.viewQuery;p&&(e.viewQuery=c?function(e,t){p(e,t),c(e,t)}:p)}var d=e.contentQueries,h=o.contentQueries;h&&(e.contentQueries=d?function(){h(),d()}:h);var f=e.contentQueriesRefresh,g=o.contentQueriesRefresh;g&&(e.contentQueriesRefresh=f?function(e,t){g(e,t),f(e,t)}:g),la(e.inputs,o.inputs),la(e.declaredInputs,o.declaredInputs),la(e.outputs,o.outputs),e.afterContentChecked=e.afterContentChecked||o.afterContentChecked,e.afterContentInit=e.afterContentInit||o.afterContentInit,e.afterViewChecked=e.afterViewChecked||o.afterViewChecked,e.afterViewInit=e.afterViewInit||o.afterViewInit,e.doCheck=e.doCheck||o.doCheck,e.onDestroy=e.onDestroy||o.onDestroy,e.onInit=e.onInit||o.onInit;var v=o.features;if(v)try{for(var m=Object(r.h)(v),y=m.next();!y.done;y=m.next()){var b=y.value;b&&b!==$d&&b(e)}}catch(w){n={error:w}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}return"break"}var C=t.prototype;C&&(e.afterContentChecked=e.afterContentChecked||C.afterContentChecked,e.afterContentInit=e.afterContentInit||C.afterContentInit,e.afterViewChecked=e.afterViewChecked||C.afterViewChecked,e.afterViewInit=e.afterViewInit||C.afterViewInit,e.doCheck=e.doCheck||C.doCheck,e.onDestroy=e.onDestroy||C.onDestroy,e.onInit=e.onInit||C.onInit),t=Object.getPrototypeOf(t)};t&&"break"!==n(););}function Yd(e){return e===Nl?{}:e===Fl?[]:e}var Xd="__ngOnChanges_";function Jd(e){var t=e.declaredInputs,n=e.type.prototype,r=function(e){if(t.hasOwnProperty(e)){for(var r=t[e],i=Xd+r,o=void 0,a=n;!o&&a&&Object.getPrototypeOf(a)!==Object.getPrototypeOf(Object.prototype);)o=Object.getOwnPropertyDescriptor(a,r),a=Object.getPrototypeOf(a);var l=o&&o.set;Object.defineProperty(n,r,{get:o&&o.get||(l?void 0:function(){return this[i]}),set:function(t){var n=this[Xd];n||(n={},Object.defineProperty(this,Xd,{value:n,writable:!0}));var r=!this.hasOwnProperty(i),o=n[e];o?o.currentValue=t:n[e]=new ms(this[i],t,r),r?Object.defineProperty(this,i,{value:t,writable:!0}):this[i]=t,l&&l.call(this,t)},configurable:!1})}};for(var i in t)r(i);null!=e.onInit&&(e.onInit=eh(e.onInit)),e.doCheck=eh(e.doCheck)}function eh(e){return function(){var t=this[Xd];null!=t&&(this.ngOnChanges(t),this[Xd]=null),e&&e.apply(this)}}var th=255,nh=0;function rh(e,t){var n=oh(e,t);if(-1!==n)return n;var r=t[Xl];r.firstTemplatePass&&(e.injectorIndex=t.length,ih(r.data,e),ih(t,null),ih(r.blueprint,null));var i=ah(e,t),o=32767&i,a=lh(i,t),l=a[Xl].data,s=e.injectorIndex;if(-1!==i)for(var u=0;u>15,r=t;n>0;)r=r[fs],n--;return r}function sh(e){!function(e,t,n){!function(e,t,n){if(t.firstTemplatePass){var r=n[ga];null==r&&(r=n[ga]=nh++);var i=r&th,o=1<>15,a=o+i,l=t[Xl].data,s=o;s>15>0}var vh=function(){function e(e,t){this._tNode=e,this._hostView=t,this._injectorIndex=rh(e,t)}return e.prototype.get=function(e){return Lc=this._tNode,Nc=this._hostView,ph(this._tNode,this._hostView,e)},e}();function mh(e){var t=e,n=zl(t)||Wl(t)||Kl(t)||ya(t)||ba(t);return n&&void 0!==n.factory?n.factory:null}function yh(e){var t=mh(Object.getPrototypeOf(e.prototype).constructor);return null!==t?t:function(e){return new e}}function bh(e){e.diPublic=sh}var Ch=function(){return function(){}}(),wh=function(){return function(){}}();function _h(e){var t=Error("No component factory found for "+za(e)+". Did you add it to @NgModule.entryComponents?");return t[Dh]=e,t}var Eh,Ah,Sh,Dh="ngComponent",Th=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw _h(e)},e}(),xh=function(){function e(){}return e.NULL=new Th,e}(),Oh=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r>15,i=Ls(e.index,t);return new Vh(i,n,r)}if(3===e.type){var o=fu(t);return new Vh(o,o[ls],-1)}return null}function jh(){for(var e=[],t=0;t0&&0==--p)break;if(void 0!==v&&v>d&&(d=v),l){var y=l.indexOf(g)+1;0!==y&&y!==t&&(n=e(y,n,r,i,o,a,l,s))}}else g&&u.push(536870912,g)}if(o){var b=o[t];if(b)for(var C=Object.keys(b),w=0;wd&&(d=A))}if(a){var _=a[t];if(_)for(C=Object.keys(_),w=0;wd&&(d=A))}}if(0===t&&"number"==typeof s)for(w=d+1;w<=s;w++)u.push(-1610612736|w);return n}(0,0,o,a,t,n,r,i),a}function hf(e,t,n){var r=qc();r[Xl].firstTemplatePass&&(n===t&&e!==t.child?(e.next=t.child,t.child=e):n!==t&&e!==n.next?(e.next=n.next,n.next=e):e.next=null,t!==r[is]&&(e.parent=t)),xu(xs(e,r),e,r);var i=r[e.index];return 0!==e.type&&Vs(i)&&xu(i[_s],e,r),e}function ff(e,t){}function gf(e){}function vf(e,t,n){void 0===n&&(n=0)}function mf(){}function yf(e,t){var n=qc();if(t){var r=Rc(),i=Os(e,n).parent||n[is],o=i;sp();for(var a=0;a>15,a=o+(4095&i),l=o;l-1?n[l]:vg(t,n))&&yg(e,s)}}e=e.next}}function yg(e,t){e.values.push(t),e.list.setDirty()}function bg(e,t,n,r){return{next:e,list:t,predicate:function(e,t){var n=Array.isArray(e);return{type:n?null:e,selector:n?e:null,read:t}}(n,r),values:t._valuesTree,containerValues:null}}var Cg=function(){function e(){this.dirty=!0,this.changes=new lg,this._values=[],this._valuesTree=[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){var e=this._values;return e.length?e[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){var e=this._values;return e.length?e[e.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._values.map(e)},e.prototype.filter=function(e){return this._values.filter(e)},e.prototype.find=function(e){return this._values.find(e)},e.prototype.reduce=function(e,t){return this._values.reduce(e,t)},e.prototype.forEach=function(e){this._values.forEach(e)},e.prototype.some=function(e){return this._values.some(e)},e.prototype.toArray=function(){return this._values.slice(0)},e.prototype[Ua()]=function(){return this._values[Ua()]()},e.prototype.toString=function(){return this._values.toString()},e.prototype.reset=function(e){this._values=function(e){for(var t=[],n=0;n0?(e=r.concat(e.slice(n+1)),n=0):n++:(t.push(r),n++)}return t}(e),this.dirty=!1},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}();function wg(e,t,n,r){var i,o=new Cg;return(i=ug,Lc&&Lc!==Nc[is]&&!Ms(Lc)&&(Vc&&(Vc=Vc.clone()),Lc.flags|=16384),Vc||(Vc=new i(null,null,null))).track(o,t,n,r),Ip(null,o,o.destroy),null!=e&&Od(e,o),o}function _g(e){return!!e.dirty&&(e.reset(e._valuesTree),e.notifyOnChanges(),!0)}function Eg(e,t){return Fh(sg,Qh,e,t)}var Ag="__SANITIZER_TRUSTED_BRAND__";function Sg(e,t){return e instanceof String&&e[Ag]===t}function Dg(e){return Mg(e,"Html")}function Tg(e){return Mg(e,"Style")}function xg(e){return Mg(e,"Script")}function Og(e){return Mg(e,"Url")}function Lg(e){return Mg(e,"ResourceUrl")}function Mg(e,t){var n=new String(e);return n[Ag]=t,n}var Ig=!0,Vg=!1;function kg(){return Vg=!0,Ig}function Ng(){if(Vg)throw new Error("Cannot enable prod mode after platform setup.");Ig=!1}var Fg=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();Wg.hasOwnProperty(t)&&!Ug.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(ev(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Xg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jg=/([^\#-~ |!])/g;function ev(e){return e.replace(/&/g,"&").replace(Xg,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Jg,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function tv(e,t){var n=null;try{Bg=Bg||new Fg(e);var r=t?String(t):"";n=Bg.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Bg.getInertBodyElement(r)}while(r!==o);var a=new Yg,l=a.sanitizeChildren(nv(n)||n);return kg()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),l}finally{if(n)for(var s=nv(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}function nv(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var rv=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),iv=function(){return function(){}}(),ov=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),av=/^url\(([^)]+)\)$/;function lv(e){if(!(e=String(e).trim()))return"";var t=e.match(av);return t&&Rg(t[1])===t[1]||e.match(ov)&&function(e){for(var t=!0,n=!0,r=0;r0)throw new Error("Animation bindings are as-of-yet unsupported in Ivy");var a=function(e){t.hasOwnProperty(e)&&t[e].forEach(function(t){"HostBinding"===t.ngMetadataName?o[t.hostPropertyName||e]=e:"HostListener"===t.ngMetadataName&&(i[t.eventName||e]=e+"("+(t.args||[]).join(",")+")")})};for(var l in t)a(l);return{attributes:r,listeners:i,properties:o}}(t,n),o=Tv(t.inputs||[]),a=Tv(t.outputs||[]),l={},s={},u=function(e){n.hasOwnProperty(e)&&n[e].forEach(function(t){"Input"===t.ngMetadataName?l[e]=t.bindingPropertyName||e:"Output"===t.ngMetadataName&&(s[e]=t.bindingPropertyName||e)})};for(var c in n)u(c);return{name:e.name,type:new Ln(e),typeArgumentCount:0,selector:t.selector,deps:gv(e),host:i,inputs:Object(r.a)({},o,l),outputs:Object(r.a)({},a,s),queries:[],lifecycle:{usesOnChanges:void 0!==e.prototype.ngOnChanges},typeSourceSpan:null,usesInheritance:!function(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}(e),exportAs:t.exportAs||null}}function Tv(e){return e.reduce(function(e,t){var n=Object(r.f)(t.split(",").map(function(e){return e.trim()}),2),i=n[0];return e[i]=n[1]||i,e},{})}function xv(e){return void 0!==e.useClass}var Ov=aa({provide:String,useValue:aa});function Lv(e){return Ov in e}function Mv(e){return void 0!==e.useFactory}function Iv(e){return void 0!==e.useExisting}var Vv=function(e,t){var n=null;!function(e){Il(e)&&Ml.add(e)}(t),Object.defineProperty(e,sa,{get:function(){if(null===n){if(Il(t)){var i=["Component '"+za(e)+"' is not resolved:"];throw t.templateUrl&&i.push(" - templateUrl: "+za(t.templateUrl)),t.styleUrls&&t.styleUrls.length&&i.push(" - styleUrls: "+JSON.stringify(t.styleUrls)),i.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(i.join("\n"))}var o=new Ki,a=function(e,t,n,r){void 0===n&&(n={});var i=zo(),o=(new dn).parse(e,t);if(o.errors&&o.errors.length>0)return{errors:o.errors,nodes:[],hasNgContent:!1,ngContentSelectors:[],relativeContextFilePath:""};var a=o.rootNodes;n.preserveWhitespaces||(a=z(new bi,a));var l=function(e,t){var n,r,i,o=new Oo(t),a=z(o,e),l=t.errors.concat(o.errors),s=l.filter(function(e){return e.level===Ut.ERROR});if(s.length>0)throw n="Template parse errors:\n"+s.join("\n"),r=s,(i=Error(n))[V]=!0,r&&(i[k]=r),i;return{nodes:a,errors:l,ngContentSelectors:o.ngContentSelectors,hasNgContent:o.hasNgContent}}(a,i),s=l.errors;return s&&s.length>0?{errors:s,nodes:[],hasNgContent:!1,ngContentSelectors:[],relativeContextFilePath:""}:{nodes:l.nodes,hasNgContent:l.hasNgContent,ngContentSelectors:l.ngContentSelectors,relativeContextFilePath:""}}(t.template,"ng://"+za(e)+"/template.html",{preserveWhitespaces:t.preserveWhitespaces||!1});if(void 0!==a.errors){var l=a.errors.map(function(e){return e.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for "+za(e)+": "+l)}var s=null!==t.animations?new Ln(t.animations):null,u=function(e,t,n){var r=$o(e,t,zo()),i=r.definitionMap,o=r.statements,a=e.selector&&w.parse(e.selector),l=a&&a[0];if(l){var s=l.getAttrs();s.length&&i.set("attrs",t.getConstLiteral(pr(s.map(function(e){return gr(null!=e?e:void 0)})),!0))}var u=null;if(e.directives.size){var c=new _;e.directives.forEach(function(e,t){c.addSelectables(w.parse(t),e)}),u=c}e.viewQueries.length&&i.set("viewQuery",function(e,t){for(var n=[],r=[],i=no(r,eo),o=0;o1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return za(e.token)}).join(" -> ")+")":""}function Cm(e,t,n,r){var i=[t],o=n(i),a=r?function(e,t){var n=o+" caused by: "+(t instanceof Error?t.message:t),r=Error(n);return r[hm]=t,r}(0,r):Error(o);return a.addKey=wm,a.keys=i,a.injectors=[e],a.constructResolvingMessage=n,a[hm]=r,a}function wm(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function _m(e,t){for(var n=[],r=0,i=t.length;r=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Cm(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+bm(e)});return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Ey=function(){function e(){this._applications=new Map,Dy.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),Dy.findTestabilityInTree(this,e,t)},Object(r.b)([Object(r.d)("design:paramtypes",[])],e)}();function Ay(e){Dy=e}var Sy,Dy=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}());function Ty(e,t,n){return Promise.resolve(new Uf(n))}var xy=new Ca("AllowMultipleToken"),Oy=function(){return function(e,t){this.name=e,this.token=t}}();function Ly(e){if(Sy&&!Sy.destroyed&&!Sy.injector.get(xy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Sy=e.get(Ny);var t=e.get(zm,null);return t&&t.forEach(function(e){return e()}),Sy}function My(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new Ca(r);return function(t){void 0===t&&(t=[]);var o=ky();if(!o||o.injector.get(xy,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0});Ly(ol.create({providers:a,name:r}))}return Iy(i)}}function Iy(e){var t=ky();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Vy(){Sy&&!Sy.destroyed&&Sy.destroy()}function ky(){return Sy&&!Sy.destroyed?Sy:null}var Ny=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new wy:("zone.js"===n?void 0:n)||new gy({enableLongStackTrace:kg()}),o=[{provide:gy,useValue:i}];return i.run(function(){var t=ol.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),a=n.injector.get(ym,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return jy(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){a.handleError(e)}})}),function(e,t,i){try{var o=((a=n.injector.get(Zm)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return jm(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(l){throw t.runOutsideAngular(function(){return e.handleError(l)}),l}var a}(a,i)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=Fy({},t);return function(e,t,n){return e.get(ry).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Hy);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+za(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Fy(e,t){return Array.isArray(t)?t.reduce(Fy,e):Object(r.a)({},e,t)}var Hy=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=kg(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new a.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),c=new a.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){gy.assertNotInAngularZone(),Ga(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){gy.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(l.a)(u,c.pipe(Object(oa.a)()))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof wh?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof Lh?null:this._injector.get(Mh),o=n.create(ol.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(_y,null);return a&&o.injector.get(Ey).registerApplication(o.location.nativeElement,a),this._loadComponent(o),kg()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,dy(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;jy(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Km,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),jy(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=py("ApplicationRef#tick()"),e}();function jy(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ry=function(){return function(){}}(),Py=new Map;function Zy(e,t){var n=Py.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);Py.set(e,t)}function By(e){var t=Py.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}var Uy=function(){function e(){this.dirty=!0,this._results=[],this.changes=new lg,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[Ua()]=function(){return this._results[Ua()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),Gy=function(){return function(){}}(),qy={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},zy=function(){function e(e,t){this._compiler=e,this._config=t||qy}return e.prototype.load=function(e){return this._compiler instanceof ty?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,i=Object(r.f)(e.split("#"),2),o=i[0],a=i[1];return void 0===a&&(a="default"),n("crnd")(o).then(function(e){return e[a]}).then(function(e){return Wy(e,o,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=Object(r.f)(e.split("#"),2),i=t[0],o=t[1],a="NgFactory";return void 0===o&&(o="default",a=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[o+a]}).then(function(e){return Wy(e,i,o)})},e}();function Wy(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Ky=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Wh(e,Qh)},e}(),Qy=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return zh()},e}(),$y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(Qy),Yy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}($y),Xy=function(){return function(e,t){this.name=e,this.callback=t}}(),Jy=function(){function e(e,t,n){this.nativeNode=e,this._debugContext=n,this.listeners=[],this.parent=null,t&&t instanceof eb&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),eb=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return Object(r.c)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,i=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,Object(r.g)([o+1,0],t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=i}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof eb&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof eb&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof eb&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Jy);function tb(e){return e.map(function(e){return e.nativeElement})}var nb=new Map;function rb(e){return nb.get(e)||null}function ib(e){nb.set(e.nativeNode,e)}var ob=function(){function e(){}return e.prototype.supports=function(e){return ys(e)},e.prototype.create=function(e){return new lb(e)},e}(),ab=function(e,t){return t},lb=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||ab}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:c,token:t.token},e._providers[c]=VC,e._providers[c]=PC(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{bl(o)}}function PC(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var i=n.length;switch(i){case 0:return new t;case 1:return new t(RC(e,n[0]));case 2:return new t(RC(e,n[0]),RC(e,n[1]));case 3:return new t(RC(e,n[0]),RC(e,n[1]),RC(e,n[2]));default:for(var o=new Array(i),a=0;a=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,qC(n,t),jb.dirtyParentQueries(r),UC(r),r}function BC(e,t,n){var r=t?iC(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);fC(n,2,i,o,void 0)}function UC(e){fC(e,3,null,null,void 0)}function GC(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qC(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var zC=new Object;function WC(e,t,n,r,i,o){return new QC(e,t,n,r,i,o)}function KC(e){return e.viewDefFactory}var QC=function(e){function t(t,n,r,i,o,a){var l=e.call(this)||this;return l.selector=t,l.componentType=n,l._inputs=i,l._outputs=o,l.ngContentSelectors=a,l.viewDefFactory=r,l}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=hC(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=jb.createRootView(e,t||[],n,i,r,zC),l=kb(a,o).instance;return n&&a.renderer.setAttribute(Vb(a,0).renderElement,"ng-version",cm.full),new $C(a,new ew(a),l)},t}(wh),$C=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Qh(Vb(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new iw(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(Ch);function YC(e,t,n){return new XC(e,t,n)}var XC=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Qh(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new iw(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=rC(e),e=e.parent;return e?new iw(e,t):new iw(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=ZC(this._data,e);jb.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new ew(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Lh||(i=o.get(Mh));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a=e;return o=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=o.length),(i=a._view).viewContainerParent=this._view,GC(o,r,i),function(e,t){var n=nC(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,i),jb.dirtyParentQueries(i),BC(n,r>0?o[r-1]:null,i),a.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,l=this._embeddedViews.indexOf(e._view);return i=t,a=(o=(n=this._data).viewContainer._embeddedViews)[r=l],qC(o,r),null==i&&(i=o.length),GC(o,i,a),jb.dirtyParentQueries(a),UC(a),BC(n,i>0?o[i-1]:null,a),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=ZC(this._data,e);t&&jb.destroyView(t)},e.prototype.detach=function(e){var t=ZC(this._data,e);return t?new ew(t):null},e}();function JC(e){return new ew(e)}var ew=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return fC(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Jb(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{jb.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){jb.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),jb.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,UC(this._view),jb.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function tw(e,t){return new nw(e,t)}var nw=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.c)(t,e),t.prototype.createEmbeddedView=function(e){return new ew(jb.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Qh(Vb(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(sg);function rw(e,t){return new iw(e,t)}var iw=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=ol.THROW_IF_NOT_FOUND),jb.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Gb(e)},t)},e}();function ow(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Vb(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ib(e,n.nodeIndex).renderText;if(20240&n.flags)return kb(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function aw(e){return new lw(e.renderer)}var lw=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Object(r.f)(CC(t),2),i=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,i=t.provider;switch(201347067&t.flags){case 512:return Tw(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,o){var a=o.length;switch(a){case 0:return i();case 1:return i(Ow(e,t,n,o[0]));case 2:return i(Ow(e,t,n,o[0]),Ow(e,t,n,o[1]));case 3:return i(Ow(e,t,n,o[0]),Ow(e,t,n,o[1]),Ow(e,t,n,o[2]));default:for(var l=Array(a),s=0;s0)u=g,$w(g)||(c=g);else for(;u&&f===u.nodeIndex+u.childCount;){var y=u.parent;y&&(y.childFlags|=u.childFlags,y.childMatchedQueries|=u.childMatchedQueries),c=(u=y)&&$w(u)?u.renderParent:u}}return{factory:null,nodeFlags:a,rootNodeFlags:l,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Bb,updateRenderer:r||Bb,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function $w(e){return 0!=(1&e.flags)&&null===e.element.name}function Yw(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Xw(e,t,n,r){var i=t_(e.root,e.renderer,e,t,n);return n_(i,e.component,r),r_(i),i}function Jw(e,t,n){var r=t_(e,e.renderer,null,null,t);return n_(r,n,n),r_(r),r}function e_(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,t_(e.root,i,e,t.element.componentProvider,n)}function t_(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function n_(e,t,n){e.component=t,e.context=n}function r_(e){var t;aC(e)&&(t=Vb(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&IC(e,t,0,n)&&(h=!0),d>1&&IC(e,t,1,r)&&(h=!0),d>2&&IC(e,t,2,i)&&(h=!0),d>3&&IC(e,t,3,o)&&(h=!0),d>4&&IC(e,t,4,a)&&(h=!0),d>5&&IC(e,t,5,l)&&(h=!0),d>6&&IC(e,t,6,s)&&(h=!0),d>7&&IC(e,t,7,u)&&(h=!0),d>8&&IC(e,t,8,c)&&(h=!0),d>9&&IC(e,t,9,p)&&(h=!0),h}(e,t,n,r,i,o,a,l,s,u,c,p);case 2:return function(e,t,n,r,i,o,a,l,s,u,c,p){var d=!1,h=t.bindings,f=h.length;if(f>0&&Yb(e,t,0,n)&&(d=!0),f>1&&Yb(e,t,1,r)&&(d=!0),f>2&&Yb(e,t,2,i)&&(d=!0),f>3&&Yb(e,t,3,o)&&(d=!0),f>4&&Yb(e,t,4,a)&&(d=!0),f>5&&Yb(e,t,5,l)&&(d=!0),f>6&&Yb(e,t,6,s)&&(d=!0),f>7&&Yb(e,t,7,u)&&(d=!0),f>8&&Yb(e,t,8,c)&&(d=!0),f>9&&Yb(e,t,9,p)&&(d=!0),d){var g=t.text.prefix;f>0&&(g+=Kw(n,h[0])),f>1&&(g+=Kw(r,h[1])),f>2&&(g+=Kw(i,h[2])),f>3&&(g+=Kw(o,h[3])),f>4&&(g+=Kw(a,h[4])),f>5&&(g+=Kw(l,h[5])),f>6&&(g+=Kw(s,h[6])),f>7&&(g+=Kw(u,h[7])),f>8&&(g+=Kw(c,h[8])),f>9&&(g+=Kw(p,h[9]));var v=Ib(e,t.nodeIndex).renderText;e.renderer.setValue(v,g)}return d}(e,t,n,r,i,o,a,l,s,u,c,p);case 16384:return function(e,t,n,r,i,o,a,l,s,u,c,p){var d=kb(e,t.nodeIndex),h=d.instance,f=!1,g=void 0,v=t.bindings.length;return v>0&&$b(e,t,0,n)&&(f=!0,g=Mw(e,d,t,0,n,g)),v>1&&$b(e,t,1,r)&&(f=!0,g=Mw(e,d,t,1,r,g)),v>2&&$b(e,t,2,i)&&(f=!0,g=Mw(e,d,t,2,i,g)),v>3&&$b(e,t,3,o)&&(f=!0,g=Mw(e,d,t,3,o,g)),v>4&&$b(e,t,4,a)&&(f=!0,g=Mw(e,d,t,4,a,g)),v>5&&$b(e,t,5,l)&&(f=!0,g=Mw(e,d,t,5,l,g)),v>6&&$b(e,t,6,s)&&(f=!0,g=Mw(e,d,t,6,s,g)),v>7&&$b(e,t,7,u)&&(f=!0,g=Mw(e,d,t,7,u,g)),v>8&&$b(e,t,8,c)&&(f=!0,g=Mw(e,d,t,8,c,g)),v>9&&$b(e,t,9,p)&&(f=!0,g=Mw(e,d,t,9,p,g)),g&&h.ngOnChanges(g),65536&t.flags&&Mb(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),f}(e,t,n,r,i,o,a,l,s,u,c,p);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,l,s,u,c,p){var d=t.bindings,h=!1,f=d.length;if(f>0&&Yb(e,t,0,n)&&(h=!0),f>1&&Yb(e,t,1,r)&&(h=!0),f>2&&Yb(e,t,2,i)&&(h=!0),f>3&&Yb(e,t,3,o)&&(h=!0),f>4&&Yb(e,t,4,a)&&(h=!0),f>5&&Yb(e,t,5,l)&&(h=!0),f>6&&Yb(e,t,6,s)&&(h=!0),f>7&&Yb(e,t,7,u)&&(h=!0),f>8&&Yb(e,t,8,c)&&(h=!0),f>9&&Yb(e,t,9,p)&&(h=!0),h){var g=Nb(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(d.length),f>0&&(v[0]=n),f>1&&(v[1]=r),f>2&&(v[2]=i),f>3&&(v[3]=o),f>4&&(v[4]=a),f>5&&(v[5]=l),f>6&&(v[6]=s),f>7&&(v[7]=u),f>8&&(v[8]=c),f>9&&(v[9]=p);break;case 64:v={},f>0&&(v[d[0].name]=n),f>1&&(v[d[1].name]=r),f>2&&(v[d[2].name]=i),f>3&&(v[d[3].name]=o),f>4&&(v[d[4].name]=a),f>5&&(v[d[5].name]=l),f>6&&(v[d[6].name]=s),f>7&&(v[d[7].name]=u),f>8&&(v[d[8].name]=c),f>9&&(v[d[9].name]=p);break;case 128:var m=n;switch(f){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,i);break;case 4:v=m.transform(r,i,o);break;case 5:v=m.transform(r,i,o,a);break;case 6:v=m.transform(r,i,o,a,l);break;case 7:v=m.transform(r,i,o,a,l,s);break;case 8:v=m.transform(r,i,o,a,l,s,u);break;case 9:v=m.transform(r,i,o,a,l,s,u,c);break;case 10:v=m.transform(r,i,o,a,l,s,u,c,p)}}g.value=v}return h}(e,t,n,r,i,o,a,l,s,u,c,p);default:throw"unreachable"}}(e,t,i,o,a,l,s,u,c,p,d,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&Xb(e,t,0,n),d>1&&Xb(e,t,1,r),d>2&&Xb(e,t,2,i),d>3&&Xb(e,t,3,o),d>4&&Xb(e,t,4,a),d>5&&Xb(e,t,5,l),d>6&&Xb(e,t,6,s),d>7&&Xb(e,t,7,u),d>8&&Xb(e,t,8,c),d>9&&Xb(e,t,9,p)}(e,t,r,i,o,a,l,s,u,c,p,d):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);D_.forEach(function(t,r){if(o.has(ya(r).providedIn)){var i={token:r,flags:t.flags|(n?4096:0),deps:cC(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Gb(r)]=i}})}}(e=e.factory(function(){return Bb})),e):e}(r))}var S_=new Map,D_=new Map,T_=new Map;function x_(e){var t;S_.set(e.token,e),"function"==typeof e.token&&(t=ya(e.token))&&"function"==typeof t.providedIn&&D_.set(e.token,e)}function O_(e,t){var n=hC(KC(t)),r=hC(n.nodes[0].element.componentView);T_.set(e,r)}function L_(){S_.clear(),D_.clear(),T_.clear()}function M_(e){if(0===S_.size)return e;var t=function(e){for(var t=[],n=null,r=0;r0){var r=t.flags>>15;return this.view[Xl].data.slice(r,r+n).map(function(e){return e.type})}return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return void 0===(e=sE(this._nativeNode)).localRefs&&(e.localRefs=function(t,n){var r=t[Xl].data[e.nodeIndex];if(r&&r.localNames){for(var i={},o=0;o=0;i--)t(n[i])}},DlQD:function(e,t,n){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:v,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:v,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:v,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||C.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=this.options.tables?n.tables:n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=d(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=d(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=d(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=//,n.html=d(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=d(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag",n._tag).getRegex(),n.blockquote=d(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=m({},n),n.gfm=m({},n.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=d(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex(),n.tables=m({},n.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=m({},n.normal,{html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,i,o,a,l,s,u,c,p,d,h,f,g,v,m,C;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:b(o,"\n")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))&&(s={type:"table",header:y(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===s.align.length){for(e=e.substring(o[0].length),h=0;h ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),this.tokens.push(u={type:"list_start",ordered:v=(a=o[2]).length>1,start:v?+a:"",loose:!1}),c=[],r=!1,g=(o=o[0].match(this.rules.item)).length,h=0;h1?1===l.length:l.length>1||this.options.smartLists&&l!==a)&&(e=o.slice(h+1).join("\n")+e,h=g-1)),i=r||/\n\n(?!\s*$)/.test(s),h!==g-1&&(r="\n"===s.charAt(s.length-1),i||(i=r)),i&&(u.loose=!0),C=void 0,(m=/^\[[ xX]\] /.test(s))&&(C=" "!==s[1],s=s.replace(/^\[[ xX]\] +/,"")),c.push(p={type:"list_item_start",task:m,checked:C,loose:i}),this.tokens.push(p),this.token(s,!1),this.tokens.push({type:"list_item_end"});if(u.loose)for(g=c.length,h=0;h?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:v,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:v,text:/^(`+|[^`])[\s\S]*?(?=[\\?@\\[^_{|}~",i.em=d(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=d(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=d(i.tag).replace("comment",n._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/,i._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=d(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=d(i.reflink).replace("label",i._label).getRegex(),i.normal=m({},i),i.pedantic=m({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=m({},i.normal,{escape:d(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:d(i.text).replace("]|","~]|").replace("|$","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|$").getRegex()}),i.gfm.url=d(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=m({},i.gfm,{br:d(i.br).replace("{2,}","*").getRegex(),text:d(i.gfm.text).replace("{2,}","*").getRegex()}),o.rules=i,o.output=function(e,t,n){return new o(t,n).output(e)},o.prototype.output=function(e){for(var t,n,r,i,a,l,s="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),s+=c(a[1]);else if(a=this.rules.tag.exec(e))!this.inLink&&/^/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):c(a[0]):a[0];else if(a=this.rules.link.exec(e))e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),s+=this.outputLink(a,{href:o.escapes(r),title:o.escapes(i)}),this.inLink=!1;else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){s+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),s+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),s+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),s+=this.renderer.codespan(c(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),s+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),s+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=c(this.mangle(a[1]))):n=c(a[1]),s+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),s+=this.renderer.text(this.inRawBlock?a[0]:c(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=c(a[0]));else{do{l=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(l!==a[0]);n=c(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),s+=this.renderer.link(r,null,n)}return s},o.escapes=function(e){return e?e.replace(o.rules._escapes,"$1"):e},o.prototype.outputLink=function(e,t){var n=t.href,r=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,c(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'

'+(n?e:c(e,!0))+"
\n":"
"+(n?e:c(e,!0))+"
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='
    "+n+""},a.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">")},a.prototype.text=function(e){return e},l.prototype.strong=l.prototype.em=l.prototype.codespan=l.prototype.del=l.prototype.text=function(e){return e},l.prototype.link=l.prototype.image=function(e,t,n){return""+n},l.prototype.br=function(){return""},s.parse=function(e,t){return new s(t).parse(e)},s.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,m({},this.options,{renderer:new l})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},s.prototype.next=function(){return this.token=this.tokens.pop()},s.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},s.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},s.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,p(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},c.escapeTest=/[&<>"']/,c.escapeReplace=/[&<>"']/g,c.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},c.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,c.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(){}function m(e){for(var t,n,r=1;r=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+c(p.message+"",!0)+"
    ";throw p}}v.exec=v,C.options=C.setOptions=function(e){return m(C.defaults,e),C},C.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},C.defaults=C.getDefaults(),C.Parser=s,C.parser=s.parse,C.Renderer=a,C.TextRenderer=l,C.Lexer=r,C.lexer=r.lex,C.InlineLexer=o,C.inlineLexer=o.output,C.Slugger=u,C.parse=C,e.exports=C}(this||("undefined"!=typeof window?window:global))},"E++1":function(e,t,n){"use strict";n.r(t),n.d(t,"unknownFragmentMessage",function(){return i}),n.d(t,"KnownFragmentNames",function(){return o});var r=n("dWS+");function i(e){return'Unknown fragment "'.concat(e,'".')}function o(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new r.a(i(n),[t.name]))}}}},ELLl:function(e,t,n){!function(e){var t={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))});var i={Backspace:function(t){var i=l(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),u=0;u=0;u--){var p=a[u].head;t.replaceRange("",n(p.line,p.ch-1),n(p.line,p.ch+1),"+delete")}},Enter:function(t){var n=l(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&p.indexOf(i)>=0&&t.getRange(n(y.line,y.ch-2),y)==i+i){if(y.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(y.line,y.ch-2))))return e.Pass;v="addFour"}else if(d){var C=0==y.ch?" ":t.getRange(n(y.line,y.ch-1),y);if(e.isWordChar(b)||C==i||e.isWordChar(C))return e.Pass;v="both"}else{if(!f)return e.Pass;v="both"}else v=d&&u(t,y)?"both":p.indexOf(i)>=0&&t.getRange(y,n(y.line,y.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=v)return e.Pass}else c=v}var w=s%2?a.charAt(s-1):i,_=s%2?i:a.charAt(s+1);t.operation(function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==c){var i=t.getSelections();for(r=0;r0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});t.setSelections(i)}else"both"==c?(t.replaceSelection(w+_,null),t.triggerElectric(w+_),t.execCommand("goCharLeft")):"addFour"==c&&(t.replaceSelection(w+w+w+w,"before"),t.execCommand("goCharRight"));var o,a})}(i,t)}}function l(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function s(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function u(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n("VrN/"))},EMzn:function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return p});var r=n("rWdj"),i=n("neE4"),o=n("oycr"),a=n("CbW8"),l=n("/jXB"),s=n("F8X2");function u(e,t){var n="string"==typeof e?new i.a(e):e;if(!(n instanceof i.a))throw new TypeError("Must provide Source. Received: ".concat(Object(r.a)(n)));return function(e){var t=e.token;return{kind:l.a.DOCUMENT,definitions:ne(e,a.a.SOF,h,a.a.EOF),loc:Q(e,t)}}(Object(a.b)(n,t||{}))}function c(e,t){var n="string"==typeof e?new i.a(e):e,r=Object(a.b)(n,t||{});J(r,a.a.SOF);var o=D(r,!1);return J(r,a.a.EOF),o}function p(e,t){var n="string"==typeof e?new i.a(e):e,r=Object(a.b)(n,t||{});J(r,a.a.SOF);var o=V(r);return J(r,a.a.EOF),o}function d(e){var t=J(e,a.a.NAME);return{kind:l.a.NAME,value:t.value,loc:Q(e,t)}}function h(e){if(Y(e,a.a.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return f(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return N(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===a.a.NAME)switch(t.value){case"schema":return function(e){var t=e.token;ee(e,"extend"),ee(e,"schema");var n=M(e,!0),r=Y(e,a.a.BRACE_L)?ne(e,a.a.BRACE_L,j,a.a.BRACE_R):[];if(0===n.length&&0===r.length)throw te(e);return{kind:l.a.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:Q(e,t)}}(e);case"scalar":return function(e){var t=e.token;ee(e,"extend"),ee(e,"scalar");var n=d(e),r=M(e,!0);if(0===r.length)throw te(e);return{kind:l.a.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:Q(e,t)}}(e);case"type":return function(e){var t=e.token;ee(e,"extend"),ee(e,"type");var n=d(e),r=R(e),i=M(e,!0),o=P(e);if(0===r.length&&0===i.length&&0===o.length)throw te(e);return{kind:l.a.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o,loc:Q(e,t)}}(e);case"interface":return function(e){var t=e.token;ee(e,"extend"),ee(e,"interface");var n=d(e),r=M(e,!0),i=P(e);if(0===r.length&&0===i.length)throw te(e);return{kind:l.a.INTERFACE_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:Q(e,t)}}(e);case"union":return function(e){var t=e.token;ee(e,"extend"),ee(e,"union");var n=d(e),r=M(e,!0),i=G(e);if(0===r.length&&0===i.length)throw te(e);return{kind:l.a.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:Q(e,t)}}(e);case"enum":return function(e){var t=e.token;ee(e,"extend"),ee(e,"enum");var n=d(e),r=M(e,!0),i=q(e);if(0===r.length&&0===i.length)throw te(e);return{kind:l.a.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:Q(e,t)}}(e);case"input":return function(e){var t=e.token;ee(e,"extend"),ee(e,"input");var n=d(e),r=M(e,!0),i=W(e);if(0===r.length&&0===i.length)throw te(e);return{kind:l.a.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:Q(e,t)}}(e)}throw te(e,t)}(e)}else{if(Y(e,a.a.BRACE_L))return f(e);if(F(e))return N(e)}throw te(e)}function f(e){if(Y(e,a.a.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return g(e);case"fragment":return function(e){var t=e.token;return ee(e,"fragment"),e.options.experimentalFragmentVariables?{kind:l.a.FRAGMENT_DEFINITION,name:S(e),variableDefinitions:m(e),typeCondition:(ee(e,"on"),k(e)),directives:M(e,!1),selectionSet:C(e),loc:Q(e,t)}:{kind:l.a.FRAGMENT_DEFINITION,name:S(e),typeCondition:(ee(e,"on"),k(e)),directives:M(e,!1),selectionSet:C(e),loc:Q(e,t)}}(e)}else if(Y(e,a.a.BRACE_L))return g(e);throw te(e)}function g(e){var t=e.token;if(Y(e,a.a.BRACE_L))return{kind:l.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:C(e),loc:Q(e,t)};var n,r=v(e);return Y(e,a.a.NAME)&&(n=d(e)),{kind:l.a.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:m(e),directives:M(e,!1),selectionSet:C(e),loc:Q(e,t)}}function v(e){var t=J(e,a.a.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw te(e,t)}function m(e){return Y(e,a.a.PAREN_L)?ne(e,a.a.PAREN_L,y,a.a.PAREN_R):[]}function y(e){var t=e.token;return e.options.experimentalVariableDefinitionDirectives?{kind:l.a.VARIABLE_DEFINITION,variable:b(e),type:(J(e,a.a.COLON),V(e)),defaultValue:X(e,a.a.EQUALS)?D(e,!0):void 0,directives:M(e,!0),loc:Q(e,t)}:{kind:l.a.VARIABLE_DEFINITION,variable:b(e),type:(J(e,a.a.COLON),V(e)),defaultValue:X(e,a.a.EQUALS)?D(e,!0):void 0,loc:Q(e,t)}}function b(e){var t=e.token;return J(e,a.a.DOLLAR),{kind:l.a.VARIABLE,name:d(e),loc:Q(e,t)}}function C(e){var t=e.token;return{kind:l.a.SELECTION_SET,selections:ne(e,a.a.BRACE_L,w,a.a.BRACE_R),loc:Q(e,t)}}function w(e){return Y(e,a.a.SPREAD)?function(e){var t,n=e.token;return J(e,a.a.SPREAD),Y(e,a.a.NAME)&&"on"!==e.token.value?{kind:l.a.FRAGMENT_SPREAD,name:S(e),directives:M(e,!1),loc:Q(e,n)}:("on"===e.token.value&&(e.advance(),t=k(e)),{kind:l.a.INLINE_FRAGMENT,typeCondition:t,directives:M(e,!1),selectionSet:C(e),loc:Q(e,n)})}(e):function(e){var t,n,r=e.token,i=d(e);return X(e,a.a.COLON)?(t=i,n=d(e)):n=i,{kind:l.a.FIELD,alias:t,name:n,arguments:_(e,!1),directives:M(e,!1),selectionSet:Y(e,a.a.BRACE_L)?C(e):void 0,loc:Q(e,r)}}(e)}function _(e,t){var n=t?A:E;return Y(e,a.a.PAREN_L)?ne(e,a.a.PAREN_L,n,a.a.PAREN_R):[]}function E(e){var t=e.token;return{kind:l.a.ARGUMENT,name:d(e),value:(J(e,a.a.COLON),D(e,!1)),loc:Q(e,t)}}function A(e){var t=e.token;return{kind:l.a.ARGUMENT,name:d(e),value:(J(e,a.a.COLON),x(e)),loc:Q(e,t)}}function S(e){if("on"===e.token.value)throw te(e);return d(e)}function D(e,t){var n=e.token;switch(n.kind){case a.a.BRACKET_L:return function(e,t){var n=e.token;return{kind:l.a.LIST,values:function(e,t,n,r){J(e,a.a.BRACKET_L);for(var i=[];!X(e,r);)i.push(n(e));return i}(e,0,t?x:O,a.a.BRACKET_R),loc:Q(e,n)}}(e,t);case a.a.BRACE_L:return function(e,t){var n=e.token;J(e,a.a.BRACE_L);for(var r=[];!X(e,a.a.BRACE_R);)r.push(L(e,t));return{kind:l.a.OBJECT,fields:r,loc:Q(e,n)}}(e,t);case a.a.INT:return e.advance(),{kind:l.a.INT,value:n.value,loc:Q(e,n)};case a.a.FLOAT:return e.advance(),{kind:l.a.FLOAT,value:n.value,loc:Q(e,n)};case a.a.STRING:case a.a.BLOCK_STRING:return T(e);case a.a.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:l.a.BOOLEAN,value:"true"===n.value,loc:Q(e,n)}):"null"===n.value?(e.advance(),{kind:l.a.NULL,loc:Q(e,n)}):(e.advance(),{kind:l.a.ENUM,value:n.value,loc:Q(e,n)});case a.a.DOLLAR:if(!t)return b(e)}throw te(e)}function T(e){var t=e.token;return e.advance(),{kind:l.a.STRING,value:t.value,block:t.kind===a.a.BLOCK_STRING,loc:Q(e,t)}}function x(e){return D(e,!0)}function O(e){return D(e,!1)}function L(e,t){var n=e.token;return{kind:l.a.OBJECT_FIELD,name:d(e),value:(J(e,a.a.COLON),D(e,t)),loc:Q(e,n)}}function M(e,t){for(var n=[];Y(e,a.a.AT);)n.push(I(e,t));return n}function I(e,t){var n=e.token;return J(e,a.a.AT),{kind:l.a.DIRECTIVE,name:d(e),arguments:_(e,t),loc:Q(e,n)}}function V(e){var t,n=e.token;return X(e,a.a.BRACKET_L)?(t=V(e),J(e,a.a.BRACKET_R),t={kind:l.a.LIST_TYPE,type:t,loc:Q(e,n)}):t=k(e),X(e,a.a.BANG)?{kind:l.a.NON_NULL_TYPE,type:t,loc:Q(e,n)}:t}function k(e){var t=e.token;return{kind:l.a.NAMED_TYPE,name:d(e),loc:Q(e,t)}}function N(e){var t=F(e)?e.lookahead():e.token;if(t.kind===a.a.NAME)switch(t.value){case"schema":return function(e){var t=e.token;ee(e,"schema");var n=M(e,!0),r=ne(e,a.a.BRACE_L,j,a.a.BRACE_R);return{kind:l.a.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:Q(e,t)}}(e);case"scalar":return function(e){var t=e.token,n=H(e);ee(e,"scalar");var r=d(e),i=M(e,!0);return{kind:l.a.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:Q(e,t)}}(e);case"type":return function(e){var t=e.token,n=H(e);ee(e,"type");var r=d(e),i=R(e),o=M(e,!0),a=P(e);return{kind:l.a.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a,loc:Q(e,t)}}(e);case"interface":return function(e){var t=e.token,n=H(e);ee(e,"interface");var r=d(e),i=M(e,!0),o=P(e);return{kind:l.a.INTERFACE_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:Q(e,t)}}(e);case"union":return function(e){var t=e.token,n=H(e);ee(e,"union");var r=d(e),i=M(e,!0),o=G(e);return{kind:l.a.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o,loc:Q(e,t)}}(e);case"enum":return function(e){var t=e.token,n=H(e);ee(e,"enum");var r=d(e),i=M(e,!0),o=q(e);return{kind:l.a.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o,loc:Q(e,t)}}(e);case"input":return function(e){var t=e.token,n=H(e);ee(e,"input");var r=d(e),i=M(e,!0),o=W(e);return{kind:l.a.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:Q(e,t)}}(e);case"directive":return function(e){var t=e.token,n=H(e);ee(e,"directive"),J(e,a.a.AT);var r=d(e),i=B(e);ee(e,"on");var o=function(e){X(e,a.a.PIPE);var t=[];do{t.push(K(e))}while(X(e,a.a.PIPE));return t}(e);return{kind:l.a.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,locations:o,loc:Q(e,t)}}(e)}throw te(e,t)}function F(e){return Y(e,a.a.STRING)||Y(e,a.a.BLOCK_STRING)}function H(e){if(F(e))return T(e)}function j(e){var t=e.token,n=v(e);J(e,a.a.COLON);var r=k(e);return{kind:l.a.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:Q(e,t)}}function R(e){var t=[];if("implements"===e.token.value){e.advance(),X(e,a.a.AMP);do{t.push(k(e))}while(X(e,a.a.AMP)||e.options.allowLegacySDLImplementsInterfaces&&Y(e,a.a.NAME))}return t}function P(e){return e.options.allowLegacySDLEmptyFields&&Y(e,a.a.BRACE_L)&&e.lookahead().kind===a.a.BRACE_R?(e.advance(),e.advance(),[]):Y(e,a.a.BRACE_L)?ne(e,a.a.BRACE_L,Z,a.a.BRACE_R):[]}function Z(e){var t=e.token,n=H(e),r=d(e),i=B(e);J(e,a.a.COLON);var o=V(e),s=M(e,!0);return{kind:l.a.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s,loc:Q(e,t)}}function B(e){return Y(e,a.a.PAREN_L)?ne(e,a.a.PAREN_L,U,a.a.PAREN_R):[]}function U(e){var t=e.token,n=H(e),r=d(e);J(e,a.a.COLON);var i,o=V(e);X(e,a.a.EQUALS)&&(i=x(e));var s=M(e,!0);return{kind:l.a.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:s,loc:Q(e,t)}}function G(e){var t=[];if(X(e,a.a.EQUALS)){X(e,a.a.PIPE);do{t.push(k(e))}while(X(e,a.a.PIPE))}return t}function q(e){return Y(e,a.a.BRACE_L)?ne(e,a.a.BRACE_L,z,a.a.BRACE_R):[]}function z(e){var t=e.token,n=H(e),r=d(e),i=M(e,!0);return{kind:l.a.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:Q(e,t)}}function W(e){return Y(e,a.a.BRACE_L)?ne(e,a.a.BRACE_L,U,a.a.BRACE_R):[]}function K(e){var t=e.token,n=d(e);if(s.a.hasOwnProperty(n.value))return n;throw te(e,t)}function Q(e,t){if(!e.options.noLocation)return new $(t,e.lastToken,e.source)}function $(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function Y(e,t){return e.token.kind===t}function X(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function J(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw Object(o.a)(e.source,n.start,"Expected ".concat(t,", found ").concat(Object(a.c)(n)))}function ee(e,t){var n=e.token;if(n.kind===a.a.NAME&&n.value===t)return e.advance(),n;throw Object(o.a)(e.source,n.start,'Expected "'.concat(t,'", found ').concat(Object(a.c)(n)))}function te(e,t){var n=t||e.token;return Object(o.a)(e.source,n.start,"Unexpected ".concat(Object(a.c)(n)))}function ne(e,t,n,r){J(e,t);for(var i=[n(e)];!X(e,r);)i.push(n(e));return i}$.prototype.toJSON=$.prototype.inspect=function(){return{start:this.start,end:this.end}}},Ehmk:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r,i=n("eihs");function o(){try{return r.apply(this,arguments)}catch(e){return i.a.e=e,i.a}}function a(e){return r=e,o}},Ei2f:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7AeT");function i(e){return Object(r.a)(e.map(function(e){return'"'.concat(e,'"')}))}},EkME:function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return p}),n.d(t,"b",function(){return d});var r=n("2C6G"),i=n("L2ys"),o=n("93gR"),a=n("4RMZ"),l=n("FQ53"),s=n("jOXf");function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new a.a(e);t||Object(r.a)(0,"Must provide document"),Object(o.a)(e);var c=new s.b(e,t,u),p=Object(i.d)(n.map(function(e){return e(c)}));return Object(i.c)(t,Object(i.e)(u,p)),c.getErrors()}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.b,r=new s.a(e,t),o=n.map(function(e){return e(r)});return Object(i.c)(e,Object(i.d)(o)),r.getErrors()}function p(e){var t=c(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}function d(e,t){var n=c(e,t);if(0!==n.length)throw new Error(n.map(function(e){return e.message}).join("\n\n"))}},EkS5:function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return p}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return h});var r="function"==typeof Symbol?Symbol:void 0,i=r&&r.iterator;function o(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function a(e){return Object(e)===e&&(o(e)||function(e){return!!l(e)}(e))}function l(e){if(null!=e){var t=i&&e[i]||e["@@iterator"];if("function"==typeof t)return t}}function s(e){this._o=e,this._i=0}function u(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,i=function(e){var t=l(e);if(t)return t.call(e)}(e);if(i){for(var a;!(a=i.next()).done;)if(t.call(n,a.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(o(e))for(;r=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var c=r&&r.asyncIterator,p=c||"@@asyncIterator";function d(e){return!!f(e)}function h(e){var t=f(e);if(t)return t.call(e)}function f(e){if(null!=e){var t=c&&e[c]||e["@@asyncIterator"];if("function"==typeof t)return t}}function g(e){this._i=e}g.prototype[p]=function(){return this},g.prototype.next=function(){var e=this._i.next();return Promise.resolve(e.value).then(function(t){return{value:t,done:e.done}})}},"En8+":function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});var i=r()},"F/XL":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("nkY7"),i=n("IUTb"),o=n("G5J1"),a=n("PU8L");function l(){for(var e=[],t=0;t0&&e.reportError(new O.a("Must provide only one schema definition.",t)),++r)}}},C.a,w.a,_.b,E.a,x.a,S.b]},"FUd+":function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="FUd+"},FYXD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("67Y/");function i(){for(var e=[],t=0;t '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"}(n("VrN/"),n("Ku0u"))},Gi3i:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("mrSG"),i=n("FFOo"),o=n("T1DM");function a(e,t){return void 0===t&&(t=o.a),function(n){return n.lift(new l(e,t))}}var l=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))},e}(),s=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.c(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(i.a);function u(e){e.debouncedNext()}},Gu07:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("nTAO");t.SortablejsBindings=function(){function e(e){this.bindings=e.map(function(e){return new r.SortablejsBinding(e)})}return e.prototype.injectIntoEvery=function(e,t){this.bindings.forEach(function(n,r){return n.insert(e,t[r])})},e.prototype.getFromEvery=function(e){return this.bindings.map(function(t){return t.get(e)})},e.prototype.extractFromEvery=function(e){return this.bindings.map(function(t){return t.remove(e)})},Object.defineProperty(e.prototype,"provided",{get:function(){return!!this.bindings.length},enumerable:!0,configurable:!0}),e}()},HBFN:function(e,t,n){"use strict";var r=n("Tzvz"),i=l(n("VrN/")),o=l(n("i1zs")),a=n("8Ur0");function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(p(e,t,n,t.parentType),h(e,".")),h(e,r,"field-name",n,(0,a.getFieldReference)(t))}function u(e,t,n){h(e,"@"+t.directiveDef.name,"directive-name",n,(0,a.getDirectiveReference)(t))}function c(e,t,n,r){h(e,": "),p(e,t,n,r)}function p(e,t,n,i){i instanceof r.GraphQLNonNull?(p(e,t,n,i.ofType),h(e,"!")):i instanceof r.GraphQLList?(h(e,"["),p(e,t,n,i.ofType),h(e,"]")):h(e,i.name,"type-name",n,(0,a.getTypeReference)(t,i))}function d(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function h(e,t,n,r,i){if(n){var o=r.onClick,a=document.createElement(o?"a":"span");o&&(a.href="javascript:void 0",a.addEventListener("click",function(e){o(i,e)})),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n("CRiN"),i.default.registerHelper("info","graphql",function(e,t){if(t.schema&&e.state){var n=e.state,r=n.kind,i=n.step,l=(0,o.default)(t.schema,e.state);if("Field"===r&&0===i&&l.fieldDef||"AliasedField"===r&&2===i&&l.fieldDef){var f=document.createElement("div");return function(e,t,n){s(e,t,n),c(e,t,n,t.type)}(f,l,t),d(f,t,l.fieldDef),f}if("Directive"===r&&1===i&&l.directiveDef){var g=document.createElement("div");return u(g,l,t),d(g,t,l.directiveDef),g}if("Argument"===r&&0===i&&l.argDef){var v=document.createElement("div");return function(e,t,n){t.directiveDef?u(e,t,n):t.fieldDef&&s(e,t,n);var r=t.argDef.name;h(e,"("),h(e,r,"arg-name",n,(0,a.getArgumentReference)(t)),c(e,t,n,t.inputType),h(e,")")}(v,l,t),d(v,t,l.argDef),v}if("EnumValue"===r&&l.enumValue&&l.enumValue.description){var m=document.createElement("div");return function(e,t,n){var r=t.enumValue.name;p(e,t,n,t.inputType),h(e,"."),h(e,r,"enum-value",n,(0,a.getEnumValueReference)(t))}(m,l,t),d(m,t,l.enumValue),m}if("NamedType"===r&&l.type&&l.type.description){var y=document.createElement("div");return p(y,l,t,l.type),d(y,t,l.type),y}}})},HJBe:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e){return void 0===e&&(e=null),function(t){return t.lift(new a(e))}}var a=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.defaultValue))},e}(),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.c(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(i.a)},HkoP:function(e,t,n){"use strict";var r,i=(r=n("VrN/"))&&r.__esModule?r:{default:r},o=n("jpir");function a(e,t){var n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}i.default.defineMode("graphql",function(e){var t=(0,o.onlineParser)({eatWhitespace:function(e){return e.eatWhile(o.isIgnored)},lexRules:o.LexRules,parseRules:o.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},HsqM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"==typeof e}},I2ZF:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},I7JT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE=void 0,t.getDefinitionQueryResultForNamedType=function(e,t,n){var r,i,o;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=t.name.value,0!==(i=n.filter(function(e){var t=e.definition;return t.name&&t.name.value===r})).length){a.next=5;break}return process.stderr.write("Definition not found for GraphQL type "+r),a.abrupt("return",{queryRange:[],definitions:[]});case 5:return o=i.map(function(e){return c(e.filePath||"",e.content,e.definition)}),a.abrupt("return",{definitions:o,queryRange:o.map(function(n){return l(e,t)})});case 7:case"end":return a.stop()}},null,this)},t.getDefinitionQueryResultForFragmentSpread=function(e,t,n){var r,i,o;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=t.name.value,0!==(i=n.filter(function(e){return e.definition.name.value===r})).length){a.next=5;break}return process.stderr.write("Definition not found for GraphQL fragment "+r),a.abrupt("return",{queryRange:[],definitions:[]});case 5:return o=i.map(function(e){return u(e.filePath||"",e.content,e.definition)}),a.abrupt("return",{definitions:o,queryRange:o.map(function(n){return l(e,t)})});case 7:case"end":return a.stop()}},null,this)},t.getDefinitionQueryResultForDefinitionNode=function(e,t,n){return{definitions:[u(e,t,n)],queryRange:n.name?[l(t,n.name)]:[]}};var r,i=n("OZIm"),o=(r=n("9lTW"))&&r.__esModule?r:{default:r},a=t.LANGUAGE="GraphQL";function l(e,t){var n=t.loc;return(0,o.default)(n,"Expected ASTNode to have a location."),(0,i.locToRange)(e,n)}function s(e,t){var n=t.loc;return(0,o.default)(n,"Expected ASTNode to have a location."),(0,i.offsetToPosition)(e,n.start)}function u(e,t,n){var r=n.name;return(0,o.default)(r,"Expected ASTNode to have a Name."),{path:e,position:s(t,n),range:l(t,n),name:r.value||"",language:a,projectRoot:e}}function c(e,t,n){var r=n.name;return(0,o.default)(r,"Expected ASTNode to have a Name."),{path:e,position:s(t,n),range:l(t,n),name:r.value||"",language:a,projectRoot:e}}},IUTb:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("6blF"),i=n("pugT"),o=n("+tJ4");function a(e,t){return new r.a(t?function(n){var r=new i.a,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Object(o.a)(e))}},Iab2:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){o(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function n(e){var t=new XMLHttpRequest;return t.open("HEAD",e,!1),t.send(),200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var i=function(){try{return Function("return this")()||(0,eval)("this")}catch(o){return"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:this}}(),o=i.saveAs||"object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(e,o,a){var l=i.URL||i.webkitURL,s=document.createElement("a");s.download=o=o||e.name||"download",s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?r(s):n(s.href)?t(e,o,a):r(s,s.target="_blank")):(s.href=l.createObjectURL(e),setTimeout(function(){l.revokeObjectURL(s.href)},4e4),setTimeout(function(){r(s)},0))}:"msSaveOrOpenBlob"in navigator?function(e,i,o){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Depricated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),i);else if(n(e))t(e,i,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){r(a)})}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,l=/constructor/i.test(i.HTMLElement)||i.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&l)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var c=i.URL||i.webkitURL,p=c.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout(function(){c.revokeObjectURL(p)},4e4)}};i.saveAs=o.saveAs=o,void 0!==e&&(e.exports=o)})?r.apply(t,[]):r)||(e.exports=i)},Ip0R:function(e,t,n){"use strict";n.r(t),n.d(t,"\u0275angular_packages_common_common_e",function(){return Ye}),n.d(t,"\u0275angular_packages_common_common_d",function(){return q}),n.d(t,"\u0275angular_packages_common_common_a",function(){return Oe}),n.d(t,"\u0275angular_packages_common_common_b",function(){return Ve}),n.d(t,"\u0275angular_packages_common_common_g",function(){return wt}),n.d(t,"\u0275angular_packages_common_common_f",function(){return Ut}),n.d(t,"\u0275registerLocaleData",function(){return v}),n.d(t,"formatDate",function(){return te}),n.d(t,"formatCurrency",function(){return Ae}),n.d(t,"formatNumber",function(){return De}),n.d(t,"formatPercent",function(){return Se}),n.d(t,"NgLocaleLocalization",function(){return Ie}),n.d(t,"NgLocalization",function(){return Le}),n.d(t,"registerLocaleData",function(){return v}),n.d(t,"Plural",function(){return b}),n.d(t,"NumberFormatStyle",function(){return y}),n.d(t,"FormStyle",function(){return C}),n.d(t,"TranslationWidth",function(){return w}),n.d(t,"FormatWidth",function(){return _}),n.d(t,"NumberSymbol",function(){return E}),n.d(t,"WeekDay",function(){return A}),n.d(t,"getNumberOfCurrencyDigits",function(){return K}),n.d(t,"getCurrencySymbol",function(){return z}),n.d(t,"getLocaleDayPeriods",function(){return D}),n.d(t,"getLocaleDayNames",function(){return T}),n.d(t,"getLocaleMonthNames",function(){return x}),n.d(t,"getLocaleId",function(){return S}),n.d(t,"getLocaleEraNames",function(){return O}),n.d(t,"getLocaleWeekEndRange",function(){return M}),n.d(t,"getLocaleFirstDayOfWeek",function(){return L}),n.d(t,"getLocaleDateFormat",function(){return I}),n.d(t,"getLocaleDateTimeFormat",function(){return k}),n.d(t,"getLocaleExtraDayPeriodRules",function(){return Z}),n.d(t,"getLocaleExtraDayPeriods",function(){return B}),n.d(t,"getLocalePluralCase",function(){return R}),n.d(t,"getLocaleTimeFormat",function(){return V}),n.d(t,"getLocaleNumberSymbol",function(){return N}),n.d(t,"getLocaleNumberFormat",function(){return F}),n.d(t,"getLocaleCurrencyName",function(){return j}),n.d(t,"getLocaleCurrencySymbol",function(){return H}),n.d(t,"\u0275parseCookieValue",function(){return ke}),n.d(t,"CommonModule",function(){return Gt}),n.d(t,"DeprecatedI18NPipesModule",function(){return qt}),n.d(t,"NgClass",function(){return Ne}),n.d(t,"NgForOf",function(){return je}),n.d(t,"NgForOfContext",function(){return He}),n.d(t,"NgIf",function(){return Pe}),n.d(t,"NgIfContext",function(){return Ze}),n.d(t,"NgPlural",function(){return We}),n.d(t,"NgPluralCase",function(){return Ke}),n.d(t,"NgStyle",function(){return Qe}),n.d(t,"NgSwitch",function(){return Ge}),n.d(t,"NgSwitchCase",function(){return qe}),n.d(t,"NgSwitchDefault",function(){return ze}),n.d(t,"NgTemplateOutlet",function(){return $e}),n.d(t,"NgComponentOutlet",function(){return Fe}),n.d(t,"DOCUMENT",function(){return zt}),n.d(t,"AsyncPipe",function(){return St}),n.d(t,"DatePipe",function(){return Lt}),n.d(t,"I18nPluralPipe",function(){return It}),n.d(t,"I18nSelectPipe",function(){return Vt}),n.d(t,"JsonPipe",function(){return kt}),n.d(t,"LowerCasePipe",function(){return Dt}),n.d(t,"CurrencyPipe",function(){return Rt}),n.d(t,"DecimalPipe",function(){return Ht}),n.d(t,"PercentPipe",function(){return jt}),n.d(t,"SlicePipe",function(){return Bt}),n.d(t,"UpperCasePipe",function(){return Ot}),n.d(t,"TitleCasePipe",function(){return xt}),n.d(t,"KeyValuePipe",function(){return Nt}),n.d(t,"DeprecatedDatePipe",function(){return gt}),n.d(t,"DeprecatedCurrencyPipe",function(){return Ct}),n.d(t,"DeprecatedDecimalPipe",function(){return yt}),n.d(t,"DeprecatedPercentPipe",function(){return bt}),n.d(t,"\u0275PLATFORM_BROWSER_ID",function(){return Wt}),n.d(t,"\u0275PLATFORM_SERVER_ID",function(){return Kt}),n.d(t,"\u0275PLATFORM_WORKER_APP_ID",function(){return Qt}),n.d(t,"\u0275PLATFORM_WORKER_UI_ID",function(){return $t}),n.d(t,"isPlatformBrowser",function(){return Yt}),n.d(t,"isPlatformServer",function(){return Xt}),n.d(t,"isPlatformWorkerApp",function(){return Jt}),n.d(t,"isPlatformWorkerUi",function(){return en}),n.d(t,"VERSION",function(){return tn}),n.d(t,"ViewportScroller",function(){return nn}),n.d(t,"\u0275NullViewportScroller",function(){return on}),n.d(t,"PlatformLocation",function(){return o}),n.d(t,"LOCATION_INITIALIZED",function(){return a}),n.d(t,"LocationStrategy",function(){return l}),n.d(t,"APP_BASE_HREF",function(){return s}),n.d(t,"HashLocationStrategy",function(){return p}),n.d(t,"PathLocationStrategy",function(){return d}),n.d(t,"Location",function(){return u});var r=n("CcnG"),i=n("mrSG"),o=function(){return function(){}}(),a=new r.InjectionToken("Location Initialized"),l=function(){return function(){}}(),s=new r.InjectionToken("appBaseHref"),u=function(){function e(e){var n=this;this._subject=new r.EventEmitter,this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(c(i)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,state:e.state,type:e.type})})}var t;return t=e,e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},e.prototype.normalize=function(e){return t.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,c(e)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",e,t)},e.prototype.replaceState=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function c(e){return e.replace(/\/index.html$/,"")}var p=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(i.c)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=u.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(l),d=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(i.c)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return u.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+u.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(l),h=void 0,f=["en",[["a","p"],["AM","PM"],h],[["AM","PM"],h,h],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],h,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],h,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",h,"{1} 'at' {0}",h],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],g={};function v(e,t,n){"string"!=typeof t&&(n=t,t=e[0]),t=t.toLowerCase().replace(/_/g,"-"),g[t]=e,n&&(g[t][19]=n)}var m={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,0],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",0],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",0],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",0],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",0],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",0],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",0],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,0],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UZS:[void 0,void 0,0],VEF:[void 0,"Bs"],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},y=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),b=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),C=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),w=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),_=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),E=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({}),A=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}({});function S(e){return q(e)[0]}function D(e,t,n){var r=q(e),i=U([r[1],r[2]],t);return U(i,n)}function T(e,t,n){var r=q(e),i=U([r[3],r[4]],t);return U(i,n)}function x(e,t,n){var r=q(e),i=U([r[5],r[6]],t);return U(i,n)}function O(e,t){return U(q(e)[7],t)}function L(e){return q(e)[8]}function M(e){return q(e)[9]}function I(e,t){return U(q(e)[10],t)}function V(e,t){return U(q(e)[11],t)}function k(e,t){return U(q(e)[12],t)}function N(e,t){var n=q(e),r=n[13][t];if(void 0===r){if(t===E.CurrencyDecimal)return n[13][E.Decimal];if(t===E.CurrencyGroup)return n[13][E.Group]}return r}function F(e,t){return q(e)[14][t]}function H(e){return q(e)[15]||null}function j(e){return q(e)[16]||null}function R(e){return q(e)[18]}function P(e){if(!e[19])throw new Error('Missing extra locale data for the locale "'+e[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function Z(e){var t=q(e);return P(t),(t[19][2]||[]).map(function(e){return"string"==typeof e?G(e):[G(e[0]),G(e[1])]})}function B(e,t,n){var r=q(e);P(r);var i=U([r[19][0],r[19][1]],t)||[];return U(i,n)||[]}function U(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function G(e){var t=Object(i.f)(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}function q(e){var t=e.toLowerCase().replace(/_/g,"-"),n=g[t];if(n)return n;var r=t.split("-")[0];if(n=g[r])return n;if("en"===r)return f;throw new Error('Missing locale data for the locale "'+e+'".')}function z(e,t,n){void 0===n&&(n="en");var r=function(e){return q(e)[17]}(n)[e]||m[e]||[],i=r[1];return"narrow"===t&&"string"==typeof i?i:r[0]||e}var W=2;function K(e){var t,n=m[e];return n&&(t=n[2]),"number"==typeof t?t:W}var Q=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,$={},Y=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{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]*)/,X=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),J=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),ee=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function te(e,t,n,r){var o=function(e){if(he(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var r=Object(i.f)(e.split("-").map(function(e){return+e}),3);return new Date(r[0],r[1]-1,r[2])}if(t=e.match(Q))return de(t)}var o=new Date(e);if(!he(o))throw new Error('Unable to convert "'+e+'" into a date');return o}(e);t=function e(t,n){var r=S(t);if($[r]=$[r]||{},$[r][n])return $[r][n];var i="";switch(n){case"shortDate":i=I(t,_.Short);break;case"mediumDate":i=I(t,_.Medium);break;case"longDate":i=I(t,_.Long);break;case"fullDate":i=I(t,_.Full);break;case"shortTime":i=V(t,_.Short);break;case"mediumTime":i=V(t,_.Medium);break;case"longTime":i=V(t,_.Long);break;case"fullTime":i=V(t,_.Full);break;case"short":var o=e(t,"shortTime"),a=e(t,"shortDate");i=ne(k(t,_.Short),[o,a]);break;case"medium":var l=e(t,"mediumTime"),s=e(t,"mediumDate");i=ne(k(t,_.Medium),[l,s]);break;case"long":var u=e(t,"longTime"),c=e(t,"longDate");i=ne(k(t,_.Long),[u,c]);break;case"full":var p=e(t,"fullTime"),d=e(t,"fullDate");i=ne(k(t,_.Full),[p,d])}return i&&($[r][n]=i),i}(n,t)||t;for(var a,l=[];t;){if(!(a=Y.exec(t))){l.push(t);break}var s=(l=l.concat(a.slice(1))).pop();if(!s)break;t=s}var u=o.getTimezoneOffset();r&&(u=pe(r,u),o=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(pe(t,r)-r))}(o,r));var c="";return l.forEach(function(e){var t=function(e){if(ce[e])return ce[e];var t;switch(e){case"G":case"GG":case"GGG":t=oe(ee.Eras,w.Abbreviated);break;case"GGGG":t=oe(ee.Eras,w.Wide);break;case"GGGGG":t=oe(ee.Eras,w.Narrow);break;case"y":t=ie(J.FullYear,1,0,!1,!0);break;case"yy":t=ie(J.FullYear,2,0,!0,!0);break;case"yyy":t=ie(J.FullYear,3,0,!1,!0);break;case"yyyy":t=ie(J.FullYear,4,0,!1,!0);break;case"M":case"L":t=ie(J.Month,1,1);break;case"MM":case"LL":t=ie(J.Month,2,1);break;case"MMM":t=oe(ee.Months,w.Abbreviated);break;case"MMMM":t=oe(ee.Months,w.Wide);break;case"MMMMM":t=oe(ee.Months,w.Narrow);break;case"LLL":t=oe(ee.Months,w.Abbreviated,C.Standalone);break;case"LLLL":t=oe(ee.Months,w.Wide,C.Standalone);break;case"LLLLL":t=oe(ee.Months,w.Narrow,C.Standalone);break;case"w":t=ue(1);break;case"ww":t=ue(2);break;case"W":t=ue(1,!0);break;case"d":t=ie(J.Date,1);break;case"dd":t=ie(J.Date,2);break;case"E":case"EE":case"EEE":t=oe(ee.Days,w.Abbreviated);break;case"EEEE":t=oe(ee.Days,w.Wide);break;case"EEEEE":t=oe(ee.Days,w.Narrow);break;case"EEEEEE":t=oe(ee.Days,w.Short);break;case"a":case"aa":case"aaa":t=oe(ee.DayPeriods,w.Abbreviated);break;case"aaaa":t=oe(ee.DayPeriods,w.Wide);break;case"aaaaa":t=oe(ee.DayPeriods,w.Narrow);break;case"b":case"bb":case"bbb":t=oe(ee.DayPeriods,w.Abbreviated,C.Standalone,!0);break;case"bbbb":t=oe(ee.DayPeriods,w.Wide,C.Standalone,!0);break;case"bbbbb":t=oe(ee.DayPeriods,w.Narrow,C.Standalone,!0);break;case"B":case"BB":case"BBB":t=oe(ee.DayPeriods,w.Abbreviated,C.Format,!0);break;case"BBBB":t=oe(ee.DayPeriods,w.Wide,C.Format,!0);break;case"BBBBB":t=oe(ee.DayPeriods,w.Narrow,C.Format,!0);break;case"h":t=ie(J.Hours,1,-12);break;case"hh":t=ie(J.Hours,2,-12);break;case"H":t=ie(J.Hours,1);break;case"HH":t=ie(J.Hours,2);break;case"m":t=ie(J.Minutes,1);break;case"mm":t=ie(J.Minutes,2);break;case"s":t=ie(J.Seconds,1);break;case"ss":t=ie(J.Seconds,2);break;case"S":t=ie(J.FractionalSeconds,1);break;case"SS":t=ie(J.FractionalSeconds,2);break;case"SSS":t=ie(J.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ae(X.Short);break;case"ZZZZZ":t=ae(X.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ae(X.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ae(X.Long);break;default:return null}return ce[e]=t,t}(e);c+=t?t(o,n,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ne(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function re(e,t,n,r,i){void 0===n&&(n="-");var o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));for(var a=String(e);a.length0||s>-n)&&(s+=n),e===J.Hours)0===s&&-12===n&&(s=12);else if(e===J.FractionalSeconds)return l=t,re(s,3).substr(0,l);var u=N(a,E.MinusSign);return re(s,t,u,r,i)}}function oe(e,t,n,r){return void 0===n&&(n=C.Format),void 0===r&&(r=!1),function(i,o){return function(e,t,n,r,i,o){switch(n){case ee.Months:return x(t,i,r)[e.getMonth()];case ee.Days:return T(t,i,r)[e.getDay()];case ee.DayPeriods:var a=e.getHours(),l=e.getMinutes();if(o){var s,u=Z(t),c=B(t,i,r);if(u.forEach(function(e,t){if(Array.isArray(e)){var n=e[0],r=e[1],i=r.hours;a>=n.hours&&l>=n.minutes&&(a0?Math.floor(i/60):Math.ceil(i/60);switch(e){case X.Short:return(i>=0?"+":"")+re(a,2,o)+re(Math.abs(i%60),2,o);case X.ShortGMT:return"GMT"+(i>=0?"+":"")+re(a,1,o);case X.Long:return"GMT"+(i>=0?"+":"")+re(a,2,o)+":"+re(Math.abs(i%60),2,o);case X.Extended:return 0===r?"Z":(i>=0?"+":"")+re(a,2,o)+":"+re(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+e+'"')}}}var le=0,se=4;function ue(e,t){return void 0===t&&(t=!1),function(n,r){var i,o,a,l;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,u=n.getDate();i=1+Math.floor((u+s)/7)}else{var c=(a=n.getFullYear(),l=new Date(a,le,1).getDay(),new Date(a,0,1+(l<=se?se:se+7)-l)),p=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(se-o.getDay()))).getTime()-c.getTime();i=1+Math.round(p/6048e5)}return re(i,e,N(r,E.MinusSign))}}var ce={};function pe(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function de(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,l=Number(e[5]||0)-r,s=Number(e[6]||0),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,l,s,u),t}function he(e){return e instanceof Date&&!isNaN(e.valueOf())}var fe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ge=22,ve=".",me="0",ye=";",be=",",Ce="#",we="\xa4",_e="%";function Ee(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l="",s=!1;if(isFinite(e)){var u=function(t){var n,r,i,o,a,l=Math.abs(e)+"",s=0;for((r=l.indexOf(ve))>-1&&(l=l.replace(ve,"")),(i=l.search(/e/i))>0?(r<0&&(r=i),r+=+l.slice(i+1),l=l.substring(0,i)):r<0&&(r=l.length),i=0;l.charAt(i)===me;i++);if(i===(a=l.length))n=[0],r=1;else{for(a--;l.charAt(a)===me;)a--;for(r-=i,n=[],o=0;i<=a;i++,o++)n[o]=Number(l.charAt(i))}return r>ge&&(n=n.splice(0,ge-1),s=r-1,r=1),{digits:n,exponent:s,integerLen:r}}();a&&(u=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(u));var c=t.minInt,p=t.minFrac,d=t.maxFrac;if(o){var h=o.match(fe);if(null===h)throw new Error(o+" is not a valid digit info");var f=h[1],g=h[3],v=h[5];null!=f&&(c=xe(f)),null!=g&&(p=xe(g)),null!=v?d=xe(v):null!=g&&p>d&&(d=p)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction ("+t+") is higher than the maximum ("+n+").");var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),a=o+e.integerLen,l=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var s=a;s=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;i=d?r.pop():p=!1),t>=10?1:0},0);h&&(r.unshift(h),e.integerLen++)}(u,p,d);var m=u.digits,y=u.integerLen,b=u.exponent,C=[];for(s=m.every(function(e){return!e});y0?C=m.splice(y,m.length):(C=m,m=[0]);var w=[];for(m.length>=t.lgSize&&w.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)w.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&w.unshift(m.join("")),l=w.join(N(n,r)),C.length&&(l+=N(n,i)+C.join("")),b&&(l+=N(n,E.Exponential)+"+"+b)}else l=N(n,E.Infinity);return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Ae(e,t,n,r,i){var o=Te(F(t,y.Currency),N(t,E.MinusSign));return o.minFrac=K(r),o.maxFrac=o.minFrac,Ee(e,o,t,E.CurrencyGroup,E.CurrencyDecimal,i).replace(we,n).replace(we,"")}function Se(e,t,n){return Ee(e,Te(F(t,y.Percent),N(t,E.MinusSign)),t,E.Group,E.Decimal,n,!0).replace(new RegExp(_e,"g"),N(t,E.PercentSign))}function De(e,t,n){return Ee(e,Te(F(t,y.Decimal),N(t,E.MinusSign)),t,E.Group,E.Decimal,n)}function Te(e,t){void 0===t&&(t="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(ye),i=r[0],o=r[1],a=-1!==i.indexOf(ve)?i.split(ve):[i.substring(0,i.lastIndexOf(me)+1),i.substring(i.lastIndexOf(me)+1)],l=a[0],s=a[1]||"";n.posPre=l.substr(0,l.indexOf(Ce));for(var u=0;u-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}var Ie=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(i.c)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):R(t||this.locale)(e)){case b.Zero:return"zero";case b.One:return"one";case b.Two:return"two";case b.Few:return"few";case b.Many:return"many";default:return"other"}},t}(Le);function Ve(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),l=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?b.One:b.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?b.One:b.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?b.One:b.Other;case"ar":return 0===n?b.Zero:1===n?b.One:2===n?b.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?b.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?b.Many:b.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?b.One:b.Other;case"be":return n%10==1&&n%100!=11?b.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?b.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?b.Many:b.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?b.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?b.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?b.Few:0!==n&&n%1e6==0?b.Many:b.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?b.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?b.Few:b.Other;case"cs":case"sk":return 1===i&&0===o?b.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?b.Few:0!==o?b.Many:b.Other;case"cy":return 0===n?b.Zero:1===n?b.One:2===n?b.Two:3===n?b.Few:6===n?b.Many:b.Other;case"da":return 1===n||0!==l&&(0===i||1===i)?b.One:b.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?b.One:0===o&&i%100==2||a%100==2?b.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?b.Few:b.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?b.One:b.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?b.One:b.Other;case"ga":return 1===n?b.One:2===n?b.Two:n===Math.floor(n)&&n>=3&&n<=6?b.Few:n===Math.floor(n)&&n>=7&&n<=10?b.Many:b.Other;case"gd":return 1===n||11===n?b.One:2===n||12===n?b.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?b.Few:b.Other;case"gv":return 0===o&&i%10==1?b.One:0===o&&i%10==2?b.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?b.Many:b.Other:b.Few;case"he":return 1===i&&0===o?b.One:2===i&&0===o?b.Two:0!==o||n>=0&&n<=10||n%10!=0?b.Other:b.Many;case"is":return 0===l&&i%10==1&&i%100!=11||0!==l?b.One:b.Other;case"ksh":return 0===n?b.Zero:1===n?b.One:b.Other;case"kw":case"naq":case"se":case"smn":return 1===n?b.One:2===n?b.Two:b.Other;case"lag":return 0===n?b.Zero:0!==i&&1!==i||0===n?b.Other:b.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?b.Few:0!==a?b.Many:b.Other:b.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?b.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?b.One:b.Other;case"mk":return 0===o&&i%10==1||a%10==1?b.One:b.Other;case"mt":return 1===n?b.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?b.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?b.Many:b.Other;case"pl":return 1===i&&0===o?b.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?b.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?b.Many:b.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?b.One:b.Other;case"ro":return 1===i&&0===o?b.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?b.Few:b.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?b.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?b.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?b.Many:b.Other;case"shi":return 0===i||1===n?b.One:n===Math.floor(n)&&n>=2&&n<=10?b.Few:b.Other;case"si":return 0===n||1===n||0===i&&1===a?b.One:b.Other;case"sl":return 0===o&&i%100==1?b.One:0===o&&i%100==2?b.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?b.Few:b.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?b.One:b.Other;default:return b.Other}}function ke(e,t){var n,r;t=encodeURIComponent(t);try{for(var o=Object(i.h)(e.split(";")),a=o.next();!a.done;a=o.next()){var l=a.value,s=l.indexOf("="),u=Object(i.f)(-1==s?[l,""]:[l.slice(0,s),l.slice(s+1)],2),c=u[1];if(u[0].trim()===t)return decodeURIComponent(c)}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var Ne=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r["\u0275stringify"])(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),Fe=function(){function e(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return e.prototype.ngOnChanges=function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(r.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}},e.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},e}(),He=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),je=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(r.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new He(null,t._ngForOf,-1,-1),i),a=new Re(e,o);n.push(a)}else null==i?t._viewContainer.remove(r):(o=t._viewContainer.get(r),t._viewContainer.move(o,i),a=new Re(e,o),n.push(a))});for(var r=0;r1?"short":"narrow":"long",n}function pt(e){return e.reduce(function(e,t){return Object(i.a)({},e,t)},{})}function dt(e){return function(t,n){return at(t,n,e)}}var ht=new Map,ft=function(){function e(){}return e.format=function(e,t,n){return function(e,t,n){var r=tt[e];if(r)return r(t,n);var i=e,o=ht.get(i);if(!o){o=[];var a=void 0;et.exec(e);for(var l=e;l;)(a=et.exec(l))?l=(o=o.concat(a.slice(1))).pop():(o.push(l),l=null);ht.set(i,o)}return o.reduce(function(e,r){var i=nt[r];return e+(i?i(t,n):function(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,e,t)},e}(),gt=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var r;if("string"==typeof e&&(e=e.trim()),vt(e))r=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=Object(i.f)(e.split("-").map(function(e){return parseInt(e,10)}),3);r=new Date(o[0],o[1]-1,o[2])}else r=new Date(e);else r=new Date(parseFloat(e));if(!vt(r)){var a=void 0;if("string"!=typeof e||!(a=e.match(Q)))throw Xe(t,e);r=de(a)}return ft.format(r,this._locale,t._ALIASES[n]||n)},e._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},e}();function vt(e){return e instanceof Date&&!isNaN(e.valueOf())}function mt(e,t,n,r,i,o,a){if(void 0===o&&(o=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw Xe(e,n);var l,s,u;if(r!==y.Currency&&(l=1,s=0,u=3),i){var c=i.match(fe);if(null===c)throw new Error(i+" is not a valid digit info for number pipes");null!=c[1]&&(l=xe(c[1])),null!=c[3]&&(s=xe(c[3])),null!=c[5]&&(u=xe(c[5]))}return Je.format(n,t,r,{minimumIntegerDigits:l,minimumFractionDigits:s,maximumFractionDigits:u,currency:o,currencyAsSymbol:a})}var yt=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n){return mt(t,this._locale,e,y.Decimal,n)},e}(),bt=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n){return mt(t,this._locale,e,y.Percent,n)},e}(),Ct=function(){function e(e){this._locale=e}var t;return t=e,e.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),mt(t,this._locale,e,y.Currency,i,n,r)},e}(),wt=[yt,bt,Ct,gt],_t=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),Et=new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),At=new _t,St=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var t;return t=e,e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.WrappedValue.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(e){if(Object(r["\u0275isPromise"])(e))return Et;if(Object(r["\u0275isObservable"])(e))return At;throw Xe(t,e)},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e}(),Dt=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw Xe(t,e);return e.toLowerCase()},e}(),Tt=/(?:[A-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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\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-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,xt=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw Xe(t,e);return e.replace(Tt,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})},e}(),Ot=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw Xe(t,e);return e.toUpperCase()},e}(),Lt=function(){function e(e){this.locale=e}var t;return t=e,e.prototype.transform=function(e,n,r,i){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;try{return te(e,n,i||this.locale,r)}catch(o){throw Xe(t,o.message)}},e}(),Mt=/#/g,It=function(){function e(e){this._localization=e}var t;return t=e,e.prototype.transform=function(e,n,r){if(null==e)return"";if("object"!=typeof n||null===n)throw Xe(t,n);return n[Me(e,Object.keys(n),this._localization,r)].replace(Mt,e.toString())},e}(),Vt=function(){function e(){}var t;return t=e,e.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw Xe(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},e}(),kt=function(){function e(){}return e.prototype.transform=function(e){return JSON.stringify(e,null,2)},e}(),Nt=function(){function e(e){this.differs=e}return e.prototype.transform=function(e,t){var n=this;if(void 0===t&&(t=Ft),!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var r=this.differ.diff(e);return r&&(this.keyValues=[],r.forEachItem(function(e){n.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues},e}();function Ft(e,t){var n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,s=Array.isArray(e),u=[e],p=-1,d=[],h=void 0,f=void 0,g=void 0,v=[],m=[],y=e;do{var b=++p===u.length,C=b&&0!==d.length;if(b){if(f=0===m.length?void 0:v[v.length-1],h=g,g=m.pop(),C){if(s)h=h.slice();else{var w={};for(var _ in h)h.hasOwnProperty(_)&&(w[_]=h[_]);h=w}for(var E=0,A=0;A=6"},i={"@babel/code-frame":"7.0.0-beta.46","@babel/parser":"7.0.0-beta.55","@glimmer/syntax":"0.30.3","@iarna/toml":"2.0.0",camelcase:"4.1.0",chalk:"2.1.0","cjk-regex":"1.0.2",cosmiconfig:"5.0.5",dashify:"0.2.2",dedent:"0.7.0",diff:"3.2.0",editorconfig:"0.15.0","editorconfig-to-prettier":"0.0.6","emoji-regex":"6.5.1","escape-string-regexp":"1.0.5",esutils:"2.0.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.78.0","get-stream":"3.0.0",globby:"6.1.0",graphql:"0.13.2","html-tag-names":"1.1.2",ignore:"3.3.7","jest-docblock":"23.2.0","json-stable-stringify":"1.0.1",leven:"2.1.0","linguist-languages":"6.2.1-dev.20180706","lodash.uniqby":"4.7.0",mem:"1.1.0",minimatch:"3.0.4",minimist:"1.2.0","normalize-path":"3.0.0",parse5:"3.0.3","postcss-less":"1.1.5","postcss-media-query-parser":"0.2.3","postcss-scss":"1.0.6","postcss-selector-parser":"2.2.3","postcss-values-parser":"1.5.0","remark-parse":"5.0.0",resolve:"1.5.0",semver:"5.4.1","string-width":"2.1.1",typescript:"3.0.1","typescript-eslint-parser":"18.0.0","unicode-regex":"1.0.1",unified:"6.1.6",yaml:"ikatyang/yaml#a765c1ee16d6b8a5e715564645f2b85f7e04828b","yaml-unist-parser":"ikatyang/yaml-unist-parser#cd4f73325b3fc02a6d17842d0d9cee0dfc729c9b"},o={"@babel/cli":"7.0.0-beta.55","@babel/core":"7.0.0-beta.55","@babel/preset-env":"7.0.0-beta.55","babel-loader":"8.0.0-beta.3",benchmark:"2.1.4","builtin-modules":"2.0.0",codecov:"2.2.0","cross-env":"5.0.5",eslint:"4.18.2","eslint-config-prettier":"2.9.0","eslint-friendly-formatter":"3.0.0","eslint-plugin-import":"2.9.0","eslint-plugin-prettier":"2.6.0","eslint-plugin-react":"7.7.0",execa:"0.10.0","has-ansi":"3.0.0",jest:"23.3.0","jest-junit":"5.0.0","jest-watch-typeahead":"0.1.0",mkdirp:"0.5.1",prettier:"1.14.1",prettylint:"1.0.0",rimraf:"2.6.2",rollup:"0.47.6","rollup-plugin-alias":"1.4.0","rollup-plugin-babel":"4.0.0-beta.4","rollup-plugin-commonjs":"8.2.6","rollup-plugin-json":"2.1.1","rollup-plugin-node-builtins":"2.0.0","rollup-plugin-node-globals":"1.1.0","rollup-plugin-node-resolve":"2.0.0","rollup-plugin-replace":"1.2.1","rollup-plugin-uglify":"3.0.0",shelljs:"0.8.1","snapshot-diff":"0.4.0","strip-ansi":"4.0.0",tempy:"0.2.1",webpack:"3.12.0"},a={"@babel/code-frame":"7.0.0-beta.46"},l={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"node ./scripts/test-dist.js","test-integration":"jest tests_integration","perf-repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter","lint-docs":"prettylint {.,docs,website,website/blog}/*.md",build:"node --max-old-space-size=2048 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js","check-deps":"node ./scripts/check-deps.js"},s={name:"prettier",version:"1.14.3",description:e,bin:t,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:i,devDependencies:o,resolutions:a,scripts:l},u=Object.freeze({name:"prettier",version:"1.14.3",description:e,bin:t,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:i,devDependencies:o,resolutions:a,scripts:l,default:s}),c="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function d(e,t){return e(t={exports:{}},t.exports),t.exports}var h=d(function(e,t){function n(){}function r(e,t,n,r,i){for(var o=0,a=t.length,l=0,s=0;oe.length?n:e}),u.value=e.join(p)}else u.value=e.join(n.slice(l,l+u.count));l+=u.count,u.added||(s+=u.count)}}var d=t[a-1];return a>1&&(d.added||d.removed)&&e.equals("",d.value)&&(t[a-2].value+=d.value,t.pop()),t}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var o=this;function a(e){return i?(setTimeout(function(){i(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,c=l+s,p=[{newPos:-1,components:[]}],d=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=l&&d+1>=s)return a([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*u;n<=u;n+=2){var i=void 0,c=p[n-1],d=p[n+1],h=(d?d.newPos:0)-n;c&&(p[n-1]=void 0);var f=c&&c.newPos+1=l&&h+1>=s)return a(r(o,i.components,t,e,o.useLongestToken));p[n]=i}else p[n]=void 0}var v;u++}if(i)!function e(){setTimeout(function(){if(u>c)return i();h()||e()},0)}();else for(;u<=c;){var f=h();if(f)return f}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,a=e.newPos,l=a-r,s=0;a+11)throw new Error("applyPatch only works with a single input.");t=t[0]}var i=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,c=0,p=0,d=void 0,h=void 0;function f(e,t){for(var n=0;nu)return!1;t++}}return!0}for(var g=0;g0?u(v.lines.slice(-l.context)):[],p-=h.length,d-=h.length)}(a=h).push.apply(a,n(o.map(function(e){return(t.added?"+":"-")+e}))),t.added?g+=o.length:f+=o.length}else{if(p)if(o.length<=2*l.context&&e=s.length-2&&o.length<=l.context){var w=/\n$/.test(r),_=/\n$/.test(i);0!=o.length||w?w&&_||h.push("\\ No newline at end of file"):h.splice(C.oldLines,0,"\\ No newline at end of file")}c.push(C),p=0,d=0,h=[]}f+=o.length,g+=o.length}},y=0;y"):r.removed&&t.push(""),t.push(r.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")),r.added?t.push(""):r.removed&&t.push("")}return t.join("")}});p(H);var j=d(function(e,t){t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var n,r=(n=h)&&n.__esModule?n:{default:n};t.Diff=r.default,t.diffChars=f.diffChars,t.diffWords=v.diffWords,t.diffWordsWithSpace=v.diffWordsWithSpace,t.diffLines=m.diffLines,t.diffTrimmedLines=m.diffTrimmedLines,t.diffSentences=y.diffSentences,t.diffCss=b.diffCss,t.diffJson=L.diffJson,t.diffArrays=M.diffArrays,t.structuredPatch=N.structuredPatch,t.createTwoFilesPatch=N.createTwoFilesPatch,t.createPatch=N.createPatch,t.applyPatch=k.applyPatch,t.applyPatches=k.applyPatches,t.parsePatch=I.parsePatch,t.convertChangesToDMP=F.convertChangesToDMP,t.convertChangesToXML=H.convertChangesToXML,t.canonicalize=L.canonicalize});p(j);var R={ConfigError:function(e){function t(){return w(this,t),x(this,A(t).apply(this,arguments))}return E(t,T(Error)),t}(),DebugError:function(e){function t(){return w(this,t),x(this,A(t).apply(this,arguments))}return E(t,T(Error)),t}(),UndefinedParserError:function(e){function t(){return w(this,t),x(this,A(t).apply(this,arguments))}return E(t,T(Error)),t}()},P="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Z(){throw new Error("setTimeout has not been defined")}function B(){throw new Error("clearTimeout has not been defined")}var U=Z,G=B;function q(e){if(U===setTimeout)return setTimeout(e,0);if((U===Z||!U)&&setTimeout)return U=setTimeout,setTimeout(e,0);try{return U(e,0)}catch(t){try{return U.call(null,e,0)}catch(t){return U.call(this,e,0)}}}"function"==typeof P.setTimeout&&(U=setTimeout),"function"==typeof P.clearTimeout&&(G=clearTimeout);var z,W=[],K=!1,Q=-1;function $(){K&&z&&(K=!1,z.length?W=z.concat(W):Q=-1,W.length&&Y())}function Y(){if(!K){var e=q($);K=!0;for(var t=W.length;t;){for(z=W,W=[];++Q1)for(var n=1;n)?=?)";var S=l++;a[S]=a[u]+"|x|X|\\*";var D=l++;a[D]=a[s]+"|x|X|\\*";var T=l++;a[T]="[v=\\s]*("+a[D]+")(?:\\.("+a[D]+")(?:\\.("+a[D]+")(?:"+a[g]+")?"+a[y]+"?)?)?";var x=l++;a[x]="[v=\\s]*("+a[S]+")(?:\\.("+a[S]+")(?:\\.("+a[S]+")(?:"+a[v]+")?"+a[y]+"?)?)?";var O=l++;a[O]="^"+a[A]+"\\s*"+a[T]+"$";var L=l++;a[L]="^"+a[A]+"\\s*"+a[x]+"$";var M=l++;a[M]="(?:~>?)";var I=l++;a[I]="(\\s*)"+a[M]+"\\s+",o[I]=new RegExp(a[I],"g");var V=l++;a[V]="^"+a[M]+a[T]+"$";var k=l++;a[k]="^"+a[M]+a[x]+"$";var N=l++;a[N]="(?:\\^)";var F=l++;a[F]="(\\s*)"+a[N]+"\\s+",o[F]=new RegExp(a[F],"g");var H=l++;a[H]="^"+a[N]+a[T]+"$";var j=l++;a[j]="^"+a[N]+a[x]+"$";var R=l++;a[R]="^"+a[A]+"\\s*("+_+")$|^$";var P=l++;a[P]="^"+a[A]+"\\s*("+w+")$|^$";var Z=l++;a[Z]="(\\s*)"+a[A]+"\\s*("+_+"|"+a[T]+")",o[Z]=new RegExp(a[Z],"g");var B=l++;a[B]="^\\s*("+a[T]+")\\s+-\\s+("+a[T]+")\\s*$";var U=l++;a[U]="^\\s*("+a[x]+")\\s+-\\s+("+a[x]+")\\s*$";var G=l++;a[G]="(<|>)?=?\\s*\\*";for(var q=0;q<34;q++)n(q,a[q]),o[q]||(o[q]=new RegExp(a[q]));function z(e,t){if(e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t?o[E]:o[b]).test(e))return null;try{return new W(e,t)}catch(n){return null}}function W(e,t){if(e instanceof W){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.loose=t;var a=e.trim().match(t?o[E]:o[b]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=a[4]?a[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(i){return null}},t.diff=function(e,t){if(J(e,t))return null;var n=z(e),r=z(t);if(n.prerelease.length||r.prerelease.length){for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return"pre"+i;return"prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return i},t.compareIdentifiers=Q;var K=/^[0-9]+$/;function Q(e,t){var n=K.test(e),r=K.test(t);return n&&r&&(e=+e,t=+t),n&&!r?-1:r&&!n?1:et?1:0}function $(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return $(e,t,n)>0}function X(e,t,n){return $(e,t,n)<0}function J(e,t,n){return 0===$(e,t,n)}function ee(e,t,n){return 0!==$(e,t,n)}function te(e,t,n){return $(e,t,n)>=0}function ne(e,t,n){return $(e,t,n)<=0}function re(e,t,n,r){var i;switch(t){case"===":"object"===C(e)&&(e=e.version),"object"===C(n)&&(n=n.version),i=e===n;break;case"!==":"object"===C(e)&&(e=e.version),"object"===C(n)&&(n=n.version),i=e!==n;break;case"":case"=":case"==":i=J(e,n,r);break;case"!=":i=ee(e,n,r);break;case">":i=Y(e,n,r);break;case">=":i=te(e,n,r);break;case"<":i=X(e,n,r);break;case"<=":i=ne(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function ie(e,t){if(e instanceof ie){if(e.loose===t)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.loose=t,this.parse(e),this.value=this.semver===oe?"":this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return Q(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=$,t.compareLoose=function(e,t){return $(e,t,!0)},t.rcompare=function(e,t,n){return $(t,e,n)},t.sort=function(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})},t.rsort=function(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})},t.gt=Y,t.lt=X,t.eq=J,t.neq=ee,t.gte=te,t.lte=ne,t.cmp=re,t.Comparator=ie;var oe={};function ae(e,t){if(e instanceof ae)return e.loose===t?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function le(e){return!e||"x"===e.toLowerCase()||"*"===e}function se(e,t,n,r,i,o,a,l,s,u,c,p,d){return((t=le(n)?"":le(r)?">="+n+".0.0":le(i)?">="+n+"."+r+".0":">="+t)+" "+(l=le(s)?"":le(u)?"<"+(+s+1)+".0.0":le(c)?"<"+s+"."+(+u+1)+".0":p?"<="+s+"."+u+"."+c+"-"+p:"<="+l)).trim()}function ue(e,t){for(var r=0;r0){var i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function pe(e,t,n){try{t=new ae(t,n)}catch(r){return!1}return t.test(e)}function de(e,t,n,r){var i,o,a,l,s;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=Y,o=ne,a=X,l=">",s=">=";break;case"<":i=X,o=te,a=Y,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pe(e,t,r))return!1;for(var u=0;u=0.0.0")),p=p||e,i(e.semver,(c=c||e).semver,r)?c=e:a(e.semver,p.semver,r)&&(p=e)}),c.operator===l||c.operator===s)return!1;if((!p.operator||p.operator===l)&&o(e,p.semver))return!1;if(p.operator===s&&a(e,p.semver))return!1}return!0}ie.prototype.parse=function(e){var t=e.match(this.loose?o[R]:o[P]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=t[1],"="===this.operator&&(this.operator=""),this.semver=t[2]?new W(t[2],this.loose):oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.loose)),re(e,this.operator,this.semver,this.loose))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new ae(e.value,t),pe(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),pe(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||l||s},t.Range=ae,ae.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),n("range",e,t),e=e.replace(t?o[U]:o[B],se),n("hyphen replace",e),e=e.replace(o[Z],"$1$2$3"),n("comparator trim",e,o[Z]),e=(e=(e=e.replace(o[I],"$1~")).replace(o[F],"$1^")).split(/\s+/).join(" ");var r=t?o[R]:o[P],i=e.split(" ").map(function(e){return function(e,t){return n("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){return n("caret",e,t),e.replace(t?o[j]:o[H],function(t,r,i,o,a){var l;return n("caret",e,t,r,i,o,a),le(r)?l="":le(i)?l=">="+r+".0.0 <"+(+r+1)+".0.0":le(o)?l="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),"-"!==a.charAt(0)&&(a="-"+a),l="0"===r?"0"===i?">="+r+"."+i+"."+o+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+a+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",l),l})}(e,t)}).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){return e.replace(t?o[k]:o[V],function(t,r,i,o,a){var l;return n("tilde",e,t,r,i,o,a),le(r)?l="":le(i)?l=">="+r+".0.0 <"+(+r+1)+".0.0":le(o)?l=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),"-"!==a.charAt(0)&&(a="-"+a),l=">="+r+"."+i+"."+o+a+" <"+r+"."+(+i+1)+".0"):l=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",l),l})}(e,t)}).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){return(e=e.trim()).replace(t?o[L]:o[O],function(t,r,i,o,a,l){n("xRange",e,t,r,i,o,a,l);var s=le(i),u=s||le(o),c=u||le(a);return"="===r&&c&&(r=""),s?t=">"===r||"<"===r?"<0.0.0":"*":r&&c?(u&&(o=0),c&&(a=0),">"===r?(r=">=",u?(i=+i+1,o=0,a=0):c&&(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":c&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t})}(e,t)}).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(i=i.filter(function(e){return!!e.match(r)})),i.map(function(e){return new ie(e,t)})},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new ae(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.loose));for(var t=0;t",n)},t.outside=de,t.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)}}),de=d(function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;rt.length&&(e=t,t=n);var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;if(0===r)return i;for(var o,a,l,s,u=0;ua?s>a?a+1:s:s>l?l+1:s;return a},De={apiDescriptor:function e(t,n){return 1===arguments.length?JSON.stringify(t):"`{ ".concat(e(t),": ").concat(JSON.stringify(n)," }`")},cliDescriptor:function(e,t){return!1===t?"`--no-".concat(e,"`"):!0===t||1===arguments.length?"`--".concat(e,"`"):""===t?"`--".concat(e,"` without an argument"):"`--".concat(e,"=").concat(t,"`")}},Te={validateOption:function(e,t,n){var r=(n=n||{}).descriptor||De.apiDescriptor;if("function"!=typeof t.exception||!t.exception(e))try{!function e(t,n){if(n.array){if(!Array.isArray(t))throw new Error("Expected an array");t.forEach(function(t){return e(t,Object.assign({},n,{array:!1}))})}else switch(n.type){case"int":!function(e){if(!("number"==typeof e&&Math.floor(e)===e&&e>=0&&e!==1/0))throw new Error("Expected an integer")}(t);break;case"boolean":!function(e){if("boolean"!=typeof e)throw new Error("Expected a boolean")}(t);break;case"choice":!function(e,t){if(!t.some(function(t){return t.value===e})){var n=t.filter(function(e){return!e.deprecated}).map(function(e){return JSON.stringify(e.value)}).sort(),r=n.slice(0,-2),i=n.slice(-2);throw new Error("Expected ".concat(r.concat(i.join(" or ")).join(", ")))}}(t,n.choices)}}(e,t)}catch(i){throw new Error("Invalid `".concat(r(t.name),"` value. ").concat(i.message,", but received `").concat(JSON.stringify(e),"`."))}}};function xe(e,t){return"".concat(t(e.name)," is deprecated. Prettier now treats it as ").concat("string"==typeof e.redirect?t(e.redirect):t(e.redirect.option,e.redirect.value),".")}var Oe=function(e,t,n){return function(e,t,n){var r=!1===(n=n||{}).logger?{warn:function(){}}:void 0!==n.logger?n.logger:console,i=n.descriptor||De.apiDescriptor,o=n.passThrough||[],a=t.reduce(function(e,t){return Object.assign(e,_({},t.name,t))},{});return Object.keys(e).reduce(function(n,l){var s=a[l],u=l,c=e[l];if(!s)return!0===o||-1!==o.indexOf(u)?n[u]=c:r.warn(function(e,t,n,r){var i=["Ignored unknown option ".concat(r(e,c),".")],o=n.find(function(t){return Se(t.name,e)<3});return o&&i.push("Did you mean ".concat(JSON.stringify(o.name),"?")),i.join(" ")}(u,0,t,i)),n;if(s.deprecated?"string"==typeof s.redirect?(r.warn(xe(s,i)),u=s.redirect):c&&(r.warn(xe(s,i)),c=s.redirect.value,u=s.redirect.option):c=function(e,t){return"int"===t.type?Number(e):e}(c,s),s.choices){var p=s.choices.find(function(e){return e.value===c});p&&p.deprecated&&(r.warn(function(e,t,n){return"".concat(n(e.name,t.value)," is deprecated. Prettier now treats it as ").concat(n(e.name,t.redirect),".")}(s,p,i)),c=p.redirect)}return s.array&&!Array.isArray(c)&&(c=[c]),c!==s.default&&Te.validateOption(c,a[u],{descriptor:i}),n[u]=c,n},{})}(e,t,Object.assign({descriptor:De.apiDescriptor},n))},Le={},Me=Object.freeze({default:Le}),Ie=d(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0]};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});p(Ie);var Ve=d(function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()}),ke=d(function(e){!function(){var t,n,r,i,o,a;function l(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B2\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\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\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\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\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-\uAB5F\uAB64\uAB65\uABC0-\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B2\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\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\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\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\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-\uAB5F\uAB64\uAB65\uABC0-\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\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(l(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(l(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(l(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(l(e))}}}()}),Ne=d(function(e){!function(){var t=ke;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(o=e.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!a(i))return!1;a=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:i,isReservedWordES6:o,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:a,isIdentifierNameES6:l,isIdentifierES5:function(e,t){return a(e)&&!i(e,t)},isIdentifierES6:function(e,t){return l(e)&&!o(e,t)}}}()}),Fe=d(function(e,t){t.ast=Ve,t.code=ke,t.keyword=Ne}),He=/[|\\{}()[\]^$+*?.]/g,je=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(He,"\\$&")},Re={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Pe=d(function(e){var t={};for(var n in Re)Re.hasOwnProperty(n)&&(t[Re[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,a=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:a})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),l=Math.max(r,i,o),s=l-a;return l===a?t=0:r===l?t=(i-o)/s:i===l?t=2+(o-r)/s:o===l&&(t=4+(r-i)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+l)/2,[t,100*(l===a?0:n<=.5?s/(l+a):s/(2-l-a)),100*n]},r.rgb.hsv=function(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),l=Math.max(r,i,o),s=l-a;return n=0===l?0:s/l*1e3/10,l===a?t=0:r===l?t=(i-o)/s:i===l?t=2+(o-r)/s:o===l&&(t=4+(r-i)/s),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,l/255*1e3/10]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i,o,a=1/0;for(var l in Re)if(Re.hasOwnProperty(l)){var s=(i=e,o=Re[l],Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));s.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[o=255*s,o,o];t=2*s-(n=s<.5?s*(1+l):s+l-s*l),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,i[u]=255*(o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t);return i},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),l=255*r*(1-n*o),s=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,s,a];case 1:return[l,r,a];case 2:return[a,r,s];case 3:return[a,l,r];case 4:return[s,a,r];case 5:return[r,a,l]}},r.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,l=Math.max(a,.01);return r=(2-o)*a,n=o*l,[i,100*(n=(n/=(t=(2-o)*l)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,i,o,a,l,s=e[0]/360,u=e[1]/100,c=e[2]/100,p=u+c;switch(p>1&&(u/=p,c/=p),r=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(r=1-r),i=u+r*((n=1-c)-u),t){default:case 6:case 0:o=n,a=i,l=u;break;case 1:o=i,a=n,l=u;break;case 2:o=u,a=n,l=i;break;case 3:o=u,a=i,l=n;break;case 4:o=i,a=u,l=n;break;case 5:o=n,a=u,l=i}return[255*o,255*a,255*l]},r.cmyk.rgb=function(e){var t=e[1]/100,n=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-r)+r)),255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r))]},r.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r;t=e[1]/500+(n=(e[0]+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),a=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},r.lch.lab=function(e){var t,n=e[1];return t=e[2]/360*2*Math.PI,[e[0],n*Math.cos(t),n*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),l=o-a;return t=l<=0?0:o===n?(r-i)/l%6:o===r?2+(i-n)/l:4+(n-r)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?a/(1-l):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},r.hsv.hcg=function(e){var t=e[2]/100,n=e[1]/100*t,r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],100*n,100*r]},r.hcg.rgb=function(e){var t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];var r,i=[0,0,0],o=e[0]/360%1*6,a=o%1,l=1-a;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return[255*(t*i[0]+(r=(1-t)*n)),255*(t*i[1]+r),255*(t*i[2]+r)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=1-e[2]/100,n=t-e[1]/100,r=0;return n<1&&(r=(t-n)/(1-n)),[e[0],100*n,100*r]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}),Ze=Object.keys(Pe);function Be(e,t){return function(n){return t(e(n))}}function Ue(e,t){for(var n=[t[e].parent,e],r=Pe[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),r=Be(Pe[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}var Ge={};Object.keys(Pe).forEach(function(e){Ge[e]={},Object.defineProperty(Ge[e],"channels",{value:Pe[e].channels}),Object.defineProperty(Ge[e],"labels",{value:Pe[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Ze.length,n=0;n1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===C(n))for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var qe,ze=Ge,We=d(function(e){var t=function(e,t){return function(){var n=e.apply(ze,arguments);return"\x1b[".concat(n+t,"m")}},n=function(e,t){return function(){var n=e.apply(ze,arguments);return"\x1b[".concat(38+t,";5;").concat(n,"m")}},r=function(e,t){return function(){var n=e.apply(ze,arguments);return"\x1b[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(var o=Object.keys(i),a=0;a=2,has16m:e>=3}}(function(e){if(!1===qe)return 0;if($e("color=16m")||$e("color=full")||$e("color=truecolor"))return 3;if($e("color=256"))return 2;if(e&&!e.isTTY&&!0!==qe)return 0;var t=qe?1:0;if("win32"===ce.platform){var n=Ye.release().split(".");return Number(ce.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Xe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in Xe})||"codeship"===Xe.CI_NAME?1:t;if("TEAMCITY_VERSION"in Xe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Xe.TEAMCITY_VERSION)?1:0;if("truecolor"===Xe.COLORTERM)return 3;if("TERM_PROGRAM"in Xe){var r=parseInt((Xe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Xe.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Xe.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Xe.TERM)?1:"COLORTERM"in Xe?1:t}(e))}$e("no-color")||$e("no-colors")||$e("color=false")?qe=!1:($e("color")||$e("colors")||$e("color=true")||$e("color=always"))&&(qe=!0),"FORCE_COLOR"in Xe&&(qe=0===Xe.FORCE_COLOR.length||0!==parseInt(Xe.FORCE_COLOR,10));var et={supportsColor:Je,stdout:Je(ce.stdout),stderr:Je(ce.stderr)},tt=d(function(e){var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function a(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):o.get(e)||e}function l(e,t){var n,o=[],l=t.trim().split(/\s*,\s*/g),s=!0,u=!1,c=void 0;try{for(var p,d=l[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=p.value;if(isNaN(h)){if(!(n=h.match(r)))throw new Error("Invalid Chalk template style argument: ".concat(h," (in style '").concat(e,"')"));o.push(n[2].replace(i,function(e,t,n){return t?a(t):n}))}else o.push(Number(h))}}catch(f){u=!0,c=f}finally{try{s||null==d.return||d.return()}finally{if(u)throw c}}return o}function s(e,t){var n={},r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var s=a.value,u=!0,c=!1,p=void 0;try{for(var d,h=s.styles[Symbol.iterator]();!(u=(d=h.next()).done);u=!0){var f=d.value;n[f[0]]=s.inverse?null:f.slice(1)}}catch(b){c=!0,p=b}finally{try{u||null==h.return||h.return()}finally{if(c)throw p}}}}catch(b){i=!0,o=b}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}for(var g=e,v=Object.keys(n),m=0;m0?g[y].apply(g,n[y]):g[y]}}return g}e.exports=function(e,r){var i=[],o=[],u=[];if(r.replace(t,function(t,r,c,p,d,h){if(r)u.push(a(r));else if(p){var f=u.join("");u=[],o.push(0===i.length?f:s(e,i)(f)),i.push({inverse:c,styles:function(e){n.lastIndex=0;for(var t,r=[];null!==(t=n.exec(e));){var i=t[1];if(t[2]){var o=l(i,t[2]);r.push([i].concat(o))}else r.push([i])}return r}(p)})}else if(d){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");o.push(s(e,i)(u.join(""))),u=[],i.pop()}else u.push(h)}),o.push(u.join("")),i.length>0){var c="Chalk template literal is missing ".concat(i.length," closing bracket").concat(1===i.length?"":"s"," (`}`)");throw new Error(c)}return o.join("")}}),nt=d(function(e){var t=et.stdout,n="win32"===ce.platform&&!(ce.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function a(e,n){e.level=void 0===(n=n||{}).level?t?t.level:0:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function l(e){if(!this||!(this instanceof l)||this.template){var t={};return a(t,e),t.template=function(){var e=[].slice.call(arguments);return(function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],i=1;i1)for(var i=1;i"),s(l.gutter,i),e,u].join("")}return" "+s(l.gutter,i)+e}).join("\n");return r.message&&!f&&(v=""+" ".repeat(g+1)+r.message+"\n"+v),o?a.reset(v):v}});p(it);var ot=Me&&Le||Me,at=R.ConfigError,lt=function e(t){return t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},st=function e(t){var n,r=t.nodes&&((n=t.nodes).length>0?n[n.length-1]:null);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var i=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(i,e(t.typeAnnotation)):t.loc&&!i?t.loc.end:i},ut=Object.getOwnPropertyNames,ct=Object.getOwnPropertyDescriptor;function pt(e){var t={},n=!0,r=!1,i=void 0;try{for(var o,a=e.plugins[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;if(l.parsers){var s=!0,u=!1,c=void 0;try{for(var p,d=ut(l.parsers)[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=p.value;Object.defineProperty(t,h,ct(l.parsers,h))}}catch(f){u=!0,c=f}finally{try{s||null==d.return||d.return()}finally{if(u)throw c}}}}}catch(f){r=!0,i=f}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return t}function dt(e,t){if(t=t||pt(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:lt,locEnd:st};if("string"==typeof e.parser){if(t.hasOwnProperty(e.parser))return t[e.parser];try{return{parse:n("FUd+")(ot.resolve(ce.cwd(),e.parser)),astFormat:"estree",locStart:lt,locEnd:st}}catch(r){throw new at("Couldn't resolve parser \"".concat(e.parser,'"'))}}}var ht={parse:function(e,t){var n=pt(t),r=Object.keys(n).reduce(function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t].parse}})},{}),i=dt(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(a){var o=a.loc;if(o)throw a.codeFrame=it.codeFrameColumns(e,o,{highlightCode:!0}),a.message+="\n"+a.codeFrame,a;throw a.stack}},resolveParser:dt},ft=R.UndefinedParserError,gt=_e,vt=ht.resolveParser,mt={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null},yt=function(e,t){t=t||{};var n,r,i,o,a=Object.assign({},e),l=gt(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,s=l.reduce(function(e,t){return Object.assign(e,_({},t.name,t.default))},Object.assign({},mt));if(!a.parser)if(a.filepath){if(a.parser=(n=a.plugins,r=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&"\\"===e[3]){var i=e[2];"?"!==i&&"."!==i||"\\\\"!==e.slice(0,2)||(e=e.slice(2),r="//")}var o=e.split(/[\/\\]+/);return!1!==t&&""===o[o.length-1]&&o.pop(),r+o.join("/")}(a.filepath).split("/"),i=r[r.length-1].toLowerCase(),(o=gt(null,{plugins:n}).languages.find(function(e){return null!==e.since&&(e.extensions&&e.extensions.some(function(e){return i.endsWith(e)})||e.filenames&&e.filenames.find(function(e){return e.toLowerCase()===i}))}))&&o.parsers[0]),!a.parser)throw new ft("No parser could be inferred for file: ".concat(a.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babylon' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),a.parser="babylon";var u=vt(Oe(a,[l.find(function(e){return"parser"===e.name})],{passThrough:!0,logger:!1}));a.astFormat=u.astFormat,a.locEnd=u.locEnd,a.locStart=u.locStart;var c=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find(function(e){return e.printers&&e.printers[t]});if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(a);a.printer=c.printers[a.astFormat];var p=l.filter(function(e){return e.pluginDefaults&&e.pluginDefaults[c.name]}).reduce(function(e,t){return Object.assign(e,_({},t.name,t.pluginDefaults[c.name]))},{}),d=Object.assign({},s,p);return Object.keys(d).forEach(function(e){null==a[e]&&(a[e]=d[e])}),"json"===a.parser&&(a.trailingComma="none"),Oe(a,l,Object.assign({passThrough:Object.keys(mt)},t))};function bt(){}bt.ok=function(){},bt.strictEqual=function(){};var Ct=Object.freeze({default:bt});function wt(e){return{type:"concat",parts:e}}function _t(e){return{type:"indent",contents:e}}function Et(e,t){return{type:"align",contents:t,n:e}}function At(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}var St={type:"break-parent"},Dt=wt([{type:"line",hard:!0},St]),Tt=wt([{type:"line",hard:!0,literal:!0},St]),xt={concat:wt,join:function(e,t){for(var n=[],r=0;r0){for(var i=0;i<~]))"].join("|");return new RegExp(e,"g")}}),Lt=d(function(e){e.exports=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)}}),Mt=d(function(e){e.exports=function(e){if("string"!=typeof e||0===e.length)return 0;var t;e="string"==typeof(t=e)?t.replace(Ot(),""):t;for(var n=0,r=0;r=127&&i<=159||i>=768&&i<=879||(i>65535&&r++,n+=Lt(i)?2:1)}return n}}),It=[[12288,12351],[44032,55215],[65040,65055],[65072,65135],[65280,65376],[65504,65519]],Vt=[[4352,4607],[11904,12255],[12352,12687],[12800,19903],[19968,40959],[43360,43391],[63744,64255]];function kt(){return Nt(Vt.concat(It))}function Nt(e){return new RegExp("["+e.map(Ft).reduce(function(e,t){return e+t})+"]","g")}function Ft(e){return Ht(e[0])+"-"+Ht(e[1])}function Ht(e){return"\\u"+e.toString(16)}!function(e){e.punctuations=function(){return Nt(It)},e.characters=function(){return Nt(Vt)}}(kt||(kt={}));var jt=kt,Rt=d(function(e,t){t.__esModule=!0,t.get_data=function(){return{Pc:[[95,95],[8255,8256],[8276,8276],[65075,65076],[65101,65103],[65343,65343]],Pe:[[41,41],[93,93],[125,125],[3899,3899],[3901,3901],[5788,5788],[8262,8262],[8318,8318],[8334,8334],[8969,8969],[8971,8971],[9002,9002],[10089,10089],[10091,10091],[10093,10093],[10095,10095],[10097,10097],[10099,10099],[10101,10101],[10182,10182],[10215,10215],[10217,10217],[10219,10219],[10221,10221],[10223,10223],[10628,10628],[10630,10630],[10632,10632],[10634,10634],[10636,10636],[10638,10638],[10640,10640],[10642,10642],[10644,10644],[10646,10646],[10648,10648],[10713,10713],[10715,10715],[10749,10749],[11811,11811],[11813,11813],[11815,11815],[11817,11817],[12297,12297],[12299,12299],[12301,12301],[12303,12303],[12305,12305],[12309,12309],[12311,12311],[12313,12313],[12315,12315],[12318,12319],[64830,64830],[65048,65048],[65078,65078],[65080,65080],[65082,65082],[65084,65084],[65086,65086],[65088,65088],[65090,65090],[65092,65092],[65096,65096],[65114,65114],[65116,65116],[65118,65118],[65289,65289],[65341,65341],[65373,65373],[65376,65376],[65379,65379]],Ps:[[40,40],[91,91],[123,123],[3898,3898],[3900,3900],[5787,5787],[8218,8218],[8222,8222],[8261,8261],[8317,8317],[8333,8333],[8968,8968],[8970,8970],[9001,9001],[10088,10088],[10090,10090],[10092,10092],[10094,10094],[10096,10096],[10098,10098],[10100,10100],[10181,10181],[10214,10214],[10216,10216],[10218,10218],[10220,10220],[10222,10222],[10627,10627],[10629,10629],[10631,10631],[10633,10633],[10635,10635],[10637,10637],[10639,10639],[10641,10641],[10643,10643],[10645,10645],[10647,10647],[10712,10712],[10714,10714],[10748,10748],[11810,11810],[11812,11812],[11814,11814],[11816,11816],[11842,11842],[12296,12296],[12298,12298],[12300,12300],[12302,12302],[12304,12304],[12308,12308],[12310,12310],[12312,12312],[12314,12314],[12317,12317],[64831,64831],[65047,65047],[65077,65077],[65079,65079],[65081,65081],[65083,65083],[65085,65085],[65087,65087],[65089,65089],[65091,65091],[65095,65095],[65113,65113],[65115,65115],[65117,65117],[65288,65288],[65339,65339],[65371,65371],[65375,65375],[65378,65378]],Lm:[[688,705],[710,721],[736,740],[748,748],[750,750],[884,884],[890,890],[1369,1369],[1600,1600],[1765,1766],[2036,2037],[2042,2042],[2074,2074],[2084,2084],[2088,2088],[2417,2417],[3654,3654],[3782,3782],[4348,4348],[6103,6103],[6211,6211],[6823,6823],[7288,7293],[7468,7530],[7544,7544],[7579,7615],[8305,8305],[8319,8319],[8336,8348],[11388,11389],[11631,11631],[11823,11823],[12293,12293],[12337,12341],[12347,12347],[12445,12446],[12540,12542],[40981,40981],[42232,42237],[42508,42508],[42623,42623],[42652,42653],[42775,42783],[42864,42864],[42888,42888],[43e3,43001],[43471,43471],[43494,43494],[43632,43632],[43741,43741],[43763,43764],[43868,43871],[65392,65392],[65438,65439]],Mc:[[2307,2307],[2363,2363],[2366,2368],[2377,2380],[2382,2383],[2434,2435],[2494,2496],[2503,2504],[2507,2508],[2519,2519],[2563,2563],[2622,2624],[2691,2691],[2750,2752],[2761,2761],[2763,2764],[2818,2819],[2878,2878],[2880,2880],[2887,2888],[2891,2892],[2903,2903],[3006,3007],[3009,3010],[3014,3016],[3018,3020],[3031,3031],[3073,3075],[3137,3140],[3202,3203],[3262,3262],[3264,3268],[3271,3272],[3274,3275],[3285,3286],[3330,3331],[3390,3392],[3398,3400],[3402,3404],[3415,3415],[3458,3459],[3535,3537],[3544,3551],[3570,3571],[3902,3903],[3967,3967],[4139,4140],[4145,4145],[4152,4152],[4155,4156],[4182,4183],[4194,4196],[4199,4205],[4227,4228],[4231,4236],[4239,4239],[4250,4252],[6070,6070],[6078,6085],[6087,6088],[6435,6438],[6441,6443],[6448,6449],[6451,6456],[6681,6682],[6741,6741],[6743,6743],[6753,6753],[6755,6756],[6765,6770],[6916,6916],[6965,6965],[6971,6971],[6973,6977],[6979,6980],[7042,7042],[7073,7073],[7078,7079],[7082,7082],[7143,7143],[7146,7148],[7150,7150],[7154,7155],[7204,7211],[7220,7221],[7393,7393],[7410,7411],[7415,7415],[12334,12335],[43043,43044],[43047,43047],[43136,43137],[43188,43203],[43346,43347],[43395,43395],[43444,43445],[43450,43451],[43453,43456],[43567,43568],[43571,43572],[43597,43597],[43643,43643],[43645,43645],[43755,43755],[43758,43759],[43765,43765],[44003,44004],[44006,44007],[44009,44010],[44012,44012]],Zp:[[8233,8233]],Sc:[[36,36],[162,165],[1423,1423],[1547,1547],[2546,2547],[2555,2555],[2801,2801],[3065,3065],[3647,3647],[6107,6107],[8352,8383],[43064,43064],[65020,65020],[65129,65129],[65284,65284],[65504,65505],[65509,65510]],Me:[[1160,1161],[6846,6846],[8413,8416],[8418,8420],[42608,42610]],Sk:[[94,94],[96,96],[168,168],[175,175],[180,180],[184,184],[706,709],[722,735],[741,747],[749,749],[751,767],[885,885],[900,901],[8125,8125],[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[12443,12444],[42752,42774],[42784,42785],[42889,42890],[43867,43867],[64434,64449],[65342,65342],[65344,65344],[65507,65507]],Cs:[[55296,55296],[56191,56192],[56319,56320],[57343,57343]],Nl:[[5870,5872],[8544,8578],[8581,8584],[12295,12295],[12321,12329],[12344,12346],[42726,42735]],So:[[166,166],[169,169],[174,174],[176,176],[1154,1154],[1421,1422],[1550,1551],[1758,1758],[1769,1769],[1789,1790],[2038,2038],[2554,2554],[2928,2928],[3059,3064],[3066,3066],[3199,3199],[3407,3407],[3449,3449],[3841,3843],[3859,3859],[3861,3863],[3866,3871],[3892,3892],[3894,3894],[3896,3896],[4030,4037],[4039,4044],[4046,4047],[4053,4056],[4254,4255],[5008,5017],[6464,6464],[6622,6655],[7009,7018],[7028,7036],[8448,8449],[8451,8454],[8456,8457],[8468,8468],[8470,8471],[8478,8483],[8485,8485],[8487,8487],[8489,8489],[8494,8494],[8506,8507],[8522,8522],[8524,8525],[8527,8527],[8586,8587],[8597,8601],[8604,8607],[8609,8610],[8612,8613],[8615,8621],[8623,8653],[8656,8657],[8659,8659],[8661,8691],[8960,8967],[8972,8991],[8994,9e3],[9003,9083],[9085,9114],[9140,9179],[9186,9254],[9280,9290],[9372,9449],[9472,9654],[9656,9664],[9666,9719],[9728,9838],[9840,10087],[10132,10175],[10240,10495],[11008,11055],[11077,11078],[11085,11123],[11126,11157],[11160,11193],[11197,11208],[11210,11218],[11244,11247],[11493,11498],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12292,12292],[12306,12307],[12320,12320],[12342,12343],[12350,12351],[12688,12689],[12694,12703],[12736,12771],[12800,12830],[12842,12871],[12880,12880],[12896,12927],[12938,12976],[12992,13054],[13056,13311],[19904,19967],[42128,42182],[43048,43051],[43062,43063],[43065,43065],[43639,43641],[65021,65021],[65508,65508],[65512,65512],[65517,65518],[65532,65533]],Lt:[[453,453],[456,456],[459,459],[498,498],[8072,8079],[8088,8095],[8104,8111],[8124,8124],[8140,8140],[8188,8188]],Zl:[[8232,8232]],Lo:[[170,170],[186,186],[443,443],[448,451],[660,660],[1488,1514],[1520,1522],[1568,1599],[1601,1610],[1646,1647],[1649,1747],[1749,1749],[1774,1775],[1786,1788],[1791,1791],[1808,1808],[1810,1839],[1869,1957],[1969,1969],[1994,2026],[2048,2069],[2112,2136],[2144,2154],[2208,2228],[2230,2237],[2308,2361],[2365,2365],[2384,2384],[2392,2401],[2418,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],[2482,2482],[2486,2489],[2493,2493],[2510,2510],[2524,2525],[2527,2529],[2544,2545],[2556,2556],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],[2654,2654],[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2749],[2768,2768],[2784,2785],[2809,2809],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2877,2877],[2908,2909],[2911,2913],[2929,2929],[2947,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],[2972,2972],[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3024,3024],[3077,3084],[3086,3088],[3090,3112],[3114,3129],[3133,3133],[3160,3162],[3168,3169],[3200,3200],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3261],[3294,3294],[3296,3297],[3313,3314],[3333,3340],[3342,3344],[3346,3386],[3389,3389],[3406,3406],[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],[3517,3517],[3520,3526],[3585,3632],[3634,3635],[3648,3653],[3713,3714],[3716,3716],[3719,3720],[3722,3722],[3725,3725],[3732,3735],[3737,3743],[3745,3747],[3749,3749],[3751,3751],[3754,3755],[3757,3760],[3762,3763],[3773,3773],[3776,3780],[3804,3807],[3840,3840],[3904,3911],[3913,3948],[3976,3980],[4096,4138],[4159,4159],[4176,4181],[4186,4189],[4193,4193],[4197,4198],[4206,4208],[4213,4225],[4238,4238],[4304,4346],[4349,4680],[4682,4685],[4688,4694],[4696,4696],[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],[4800,4800],[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5873,5880],[5888,5900],[5902,5905],[5920,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],[6108,6108],[6176,6210],[6212,6263],[6272,6276],[6279,6312],[6314,6314],[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],[6917,6963],[6981,6987],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7287],[7401,7404],[7406,7409],[7413,7414],[8501,8504],[11568,11623],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12294,12294],[12348,12348],[12353,12438],[12447,12447],[12449,12538],[12543,12543],[12549,12590],[12593,12686],[12704,12730],[12784,12799],[13312,13312],[19893,19893],[19968,19968],[40938,40938],[40960,40980],[40982,42124],[42192,42231],[42240,42507],[42512,42527],[42538,42539],[42606,42606],[42656,42725],[42895,42895],[42999,42999],[43003,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],[43259,43259],[43261,43261],[43274,43301],[43312,43334],[43360,43388],[43396,43442],[43488,43492],[43495,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43631],[43633,43638],[43642,43642],[43646,43695],[43697,43697],[43701,43702],[43705,43709],[43712,43712],[43714,43714],[43739,43740],[43744,43754],[43762,43762],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43968,44002],[44032,44032],[55203,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65382,65391],[65393,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500]],Mn:[[768,879],[1155,1159],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1552,1562],[1611,1631],[1648,1648],[1750,1756],[1759,1764],[1767,1768],[1770,1773],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2260,2273],[2275,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6845],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8400,8412],[8417,8417],[8421,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42607],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43452],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071]],Po:[[33,35],[37,39],[42,42],[44,44],[46,47],[58,59],[63,64],[92,92],[161,161],[167,167],[182,183],[191,191],[894,894],[903,903],[1370,1375],[1417,1417],[1472,1472],[1475,1475],[1478,1478],[1523,1524],[1545,1546],[1548,1549],[1563,1563],[1566,1567],[1642,1645],[1748,1748],[1792,1805],[2039,2041],[2096,2110],[2142,2142],[2404,2405],[2416,2416],[2557,2557],[2800,2800],[3572,3572],[3663,3663],[3674,3675],[3844,3858],[3860,3860],[3973,3973],[4048,4052],[4057,4058],[4170,4175],[4347,4347],[4960,4968],[5741,5742],[5867,5869],[5941,5942],[6100,6102],[6104,6106],[6144,6149],[6151,6154],[6468,6469],[6686,6687],[6816,6822],[6824,6829],[7002,7008],[7164,7167],[7227,7231],[7294,7295],[7360,7367],[7379,7379],[8214,8215],[8224,8231],[8240,8248],[8251,8254],[8257,8259],[8263,8273],[8275,8275],[8277,8286],[11513,11516],[11518,11519],[11632,11632],[11776,11777],[11782,11784],[11787,11787],[11790,11798],[11800,11801],[11803,11803],[11806,11807],[11818,11822],[11824,11833],[11836,11839],[11841,11841],[11843,11849],[12289,12291],[12349,12349],[12539,12539],[42238,42239],[42509,42511],[42611,42611],[42622,42622],[42738,42743],[43124,43127],[43214,43215],[43256,43258],[43260,43260],[43310,43311],[43359,43359],[43457,43469],[43486,43487],[43612,43615],[43742,43743],[43760,43761],[44011,44011],[65040,65046],[65049,65049],[65072,65072],[65093,65094],[65097,65100],[65104,65106],[65108,65111],[65119,65121],[65128,65128],[65130,65131],[65281,65283],[65285,65287],[65290,65290],[65292,65292],[65294,65295],[65306,65307],[65311,65312],[65340,65340],[65377,65377],[65380,65381]],Co:[[57344,57344],[63743,63743]],Sm:[[43,43],[60,62],[124,124],[126,126],[172,172],[177,177],[215,215],[247,247],[1014,1014],[1542,1544],[8260,8260],[8274,8274],[8314,8316],[8330,8332],[8472,8472],[8512,8516],[8523,8523],[8592,8596],[8602,8603],[8608,8608],[8611,8611],[8614,8614],[8622,8622],[8654,8655],[8658,8658],[8660,8660],[8692,8959],[8992,8993],[9084,9084],[9115,9139],[9180,9185],[9655,9655],[9665,9665],[9720,9727],[9839,9839],[10176,10180],[10183,10213],[10224,10239],[10496,10626],[10649,10711],[10716,10747],[10750,11007],[11056,11076],[11079,11084],[64297,64297],[65122,65122],[65124,65126],[65291,65291],[65308,65310],[65372,65372],[65374,65374],[65506,65506],[65513,65516]],Pf:[[187,187],[8217,8217],[8221,8221],[8250,8250],[11779,11779],[11781,11781],[11786,11786],[11789,11789],[11805,11805],[11809,11809]],Cc:[[0,31],[127,159]],Pi:[[171,171],[8216,8216],[8219,8220],[8223,8223],[8249,8249],[11778,11778],[11780,11780],[11785,11785],[11788,11788],[11804,11804],[11808,11808]],Lu:[[65,90],[192,214],[216,222],[256,256],[258,258],[260,260],[262,262],[264,264],[266,266],[268,268],[270,270],[272,272],[274,274],[276,276],[278,278],[280,280],[282,282],[284,284],[286,286],[288,288],[290,290],[292,292],[294,294],[296,296],[298,298],[300,300],[302,302],[304,304],[306,306],[308,308],[310,310],[313,313],[315,315],[317,317],[319,319],[321,321],[323,323],[325,325],[327,327],[330,330],[332,332],[334,334],[336,336],[338,338],[340,340],[342,342],[344,344],[346,346],[348,348],[350,350],[352,352],[354,354],[356,356],[358,358],[360,360],[362,362],[364,364],[366,366],[368,368],[370,370],[372,372],[374,374],[376,377],[379,379],[381,381],[385,386],[388,388],[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],[418,418],[420,420],[422,423],[425,425],[428,428],[430,431],[433,435],[437,437],[439,440],[444,444],[452,452],[455,455],[458,458],[461,461],[463,463],[465,465],[467,467],[469,469],[471,471],[473,473],[475,475],[478,478],[480,480],[482,482],[484,484],[486,486],[488,488],[490,490],[492,492],[494,494],[497,497],[500,500],[502,504],[506,506],[508,508],[510,510],[512,512],[514,514],[516,516],[518,518],[520,520],[522,522],[524,524],[526,526],[528,528],[530,530],[532,532],[534,534],[536,536],[538,538],[540,540],[542,542],[544,544],[546,546],[548,548],[550,550],[552,552],[554,554],[556,556],[558,558],[560,560],[562,562],[570,571],[573,574],[577,577],[579,582],[584,584],[586,586],[588,588],[590,590],[880,880],[882,882],[886,886],[895,895],[902,902],[904,906],[908,908],[910,911],[913,929],[931,939],[975,975],[978,980],[984,984],[986,986],[988,988],[990,990],[992,992],[994,994],[996,996],[998,998],[1e3,1e3],[1002,1002],[1004,1004],[1006,1006],[1012,1012],[1015,1015],[1017,1018],[1021,1071],[1120,1120],[1122,1122],[1124,1124],[1126,1126],[1128,1128],[1130,1130],[1132,1132],[1134,1134],[1136,1136],[1138,1138],[1140,1140],[1142,1142],[1144,1144],[1146,1146],[1148,1148],[1150,1150],[1152,1152],[1162,1162],[1164,1164],[1166,1166],[1168,1168],[1170,1170],[1172,1172],[1174,1174],[1176,1176],[1178,1178],[1180,1180],[1182,1182],[1184,1184],[1186,1186],[1188,1188],[1190,1190],[1192,1192],[1194,1194],[1196,1196],[1198,1198],[1200,1200],[1202,1202],[1204,1204],[1206,1206],[1208,1208],[1210,1210],[1212,1212],[1214,1214],[1216,1217],[1219,1219],[1221,1221],[1223,1223],[1225,1225],[1227,1227],[1229,1229],[1232,1232],[1234,1234],[1236,1236],[1238,1238],[1240,1240],[1242,1242],[1244,1244],[1246,1246],[1248,1248],[1250,1250],[1252,1252],[1254,1254],[1256,1256],[1258,1258],[1260,1260],[1262,1262],[1264,1264],[1266,1266],[1268,1268],[1270,1270],[1272,1272],[1274,1274],[1276,1276],[1278,1278],[1280,1280],[1282,1282],[1284,1284],[1286,1286],[1288,1288],[1290,1290],[1292,1292],[1294,1294],[1296,1296],[1298,1298],[1300,1300],[1302,1302],[1304,1304],[1306,1306],[1308,1308],[1310,1310],[1312,1312],[1314,1314],[1316,1316],[1318,1318],[1320,1320],[1322,1322],[1324,1324],[1326,1326],[1329,1366],[4256,4293],[4295,4295],[4301,4301],[5024,5109],[7680,7680],[7682,7682],[7684,7684],[7686,7686],[7688,7688],[7690,7690],[7692,7692],[7694,7694],[7696,7696],[7698,7698],[7700,7700],[7702,7702],[7704,7704],[7706,7706],[7708,7708],[7710,7710],[7712,7712],[7714,7714],[7716,7716],[7718,7718],[7720,7720],[7722,7722],[7724,7724],[7726,7726],[7728,7728],[7730,7730],[7732,7732],[7734,7734],[7736,7736],[7738,7738],[7740,7740],[7742,7742],[7744,7744],[7746,7746],[7748,7748],[7750,7750],[7752,7752],[7754,7754],[7756,7756],[7758,7758],[7760,7760],[7762,7762],[7764,7764],[7766,7766],[7768,7768],[7770,7770],[7772,7772],[7774,7774],[7776,7776],[7778,7778],[7780,7780],[7782,7782],[7784,7784],[7786,7786],[7788,7788],[7790,7790],[7792,7792],[7794,7794],[7796,7796],[7798,7798],[7800,7800],[7802,7802],[7804,7804],[7806,7806],[7808,7808],[7810,7810],[7812,7812],[7814,7814],[7816,7816],[7818,7818],[7820,7820],[7822,7822],[7824,7824],[7826,7826],[7828,7828],[7838,7838],[7840,7840],[7842,7842],[7844,7844],[7846,7846],[7848,7848],[7850,7850],[7852,7852],[7854,7854],[7856,7856],[7858,7858],[7860,7860],[7862,7862],[7864,7864],[7866,7866],[7868,7868],[7870,7870],[7872,7872],[7874,7874],[7876,7876],[7878,7878],[7880,7880],[7882,7882],[7884,7884],[7886,7886],[7888,7888],[7890,7890],[7892,7892],[7894,7894],[7896,7896],[7898,7898],[7900,7900],[7902,7902],[7904,7904],[7906,7906],[7908,7908],[7910,7910],[7912,7912],[7914,7914],[7916,7916],[7918,7918],[7920,7920],[7922,7922],[7924,7924],[7926,7926],[7928,7928],[7930,7930],[7932,7932],[7934,7934],[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],[8025,8025],[8027,8027],[8029,8029],[8031,8031],[8040,8047],[8120,8123],[8136,8139],[8152,8155],[8168,8172],[8184,8187],[8450,8450],[8455,8455],[8459,8461],[8464,8466],[8469,8469],[8473,8477],[8484,8484],[8486,8486],[8488,8488],[8490,8493],[8496,8499],[8510,8511],[8517,8517],[8579,8579],[11264,11310],[11360,11360],[11362,11364],[11367,11367],[11369,11369],[11371,11371],[11373,11376],[11378,11378],[11381,11381],[11390,11392],[11394,11394],[11396,11396],[11398,11398],[11400,11400],[11402,11402],[11404,11404],[11406,11406],[11408,11408],[11410,11410],[11412,11412],[11414,11414],[11416,11416],[11418,11418],[11420,11420],[11422,11422],[11424,11424],[11426,11426],[11428,11428],[11430,11430],[11432,11432],[11434,11434],[11436,11436],[11438,11438],[11440,11440],[11442,11442],[11444,11444],[11446,11446],[11448,11448],[11450,11450],[11452,11452],[11454,11454],[11456,11456],[11458,11458],[11460,11460],[11462,11462],[11464,11464],[11466,11466],[11468,11468],[11470,11470],[11472,11472],[11474,11474],[11476,11476],[11478,11478],[11480,11480],[11482,11482],[11484,11484],[11486,11486],[11488,11488],[11490,11490],[11499,11499],[11501,11501],[11506,11506],[42560,42560],[42562,42562],[42564,42564],[42566,42566],[42568,42568],[42570,42570],[42572,42572],[42574,42574],[42576,42576],[42578,42578],[42580,42580],[42582,42582],[42584,42584],[42586,42586],[42588,42588],[42590,42590],[42592,42592],[42594,42594],[42596,42596],[42598,42598],[42600,42600],[42602,42602],[42604,42604],[42624,42624],[42626,42626],[42628,42628],[42630,42630],[42632,42632],[42634,42634],[42636,42636],[42638,42638],[42640,42640],[42642,42642],[42644,42644],[42646,42646],[42648,42648],[42650,42650],[42786,42786],[42788,42788],[42790,42790],[42792,42792],[42794,42794],[42796,42796],[42798,42798],[42802,42802],[42804,42804],[42806,42806],[42808,42808],[42810,42810],[42812,42812],[42814,42814],[42816,42816],[42818,42818],[42820,42820],[42822,42822],[42824,42824],[42826,42826],[42828,42828],[42830,42830],[42832,42832],[42834,42834],[42836,42836],[42838,42838],[42840,42840],[42842,42842],[42844,42844],[42846,42846],[42848,42848],[42850,42850],[42852,42852],[42854,42854],[42856,42856],[42858,42858],[42860,42860],[42862,42862],[42873,42873],[42875,42875],[42877,42878],[42880,42880],[42882,42882],[42884,42884],[42886,42886],[42891,42891],[42893,42893],[42896,42896],[42898,42898],[42902,42902],[42904,42904],[42906,42906],[42908,42908],[42910,42910],[42912,42912],[42914,42914],[42916,42916],[42918,42918],[42920,42920],[42922,42926],[42928,42932],[42934,42934],[65313,65338]],Pd:[[45,45],[1418,1418],[1470,1470],[5120,5120],[6150,6150],[8208,8213],[11799,11799],[11802,11802],[11834,11835],[11840,11840],[12316,12316],[12336,12336],[12448,12448],[65073,65074],[65112,65112],[65123,65123],[65293,65293]],Cf:[[173,173],[1536,1541],[1564,1564],[1757,1757],[1807,1807],[2274,2274],[6158,6158],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[65279,65279],[65529,65531]],Nd:[[48,57],[1632,1641],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305]],Ll:[[97,122],[181,181],[223,246],[248,255],[257,257],[259,259],[261,261],[263,263],[265,265],[267,267],[269,269],[271,271],[273,273],[275,275],[277,277],[279,279],[281,281],[283,283],[285,285],[287,287],[289,289],[291,291],[293,293],[295,295],[297,297],[299,299],[301,301],[303,303],[305,305],[307,307],[309,309],[311,312],[314,314],[316,316],[318,318],[320,320],[322,322],[324,324],[326,326],[328,329],[331,331],[333,333],[335,335],[337,337],[339,339],[341,341],[343,343],[345,345],[347,347],[349,349],[351,351],[353,353],[355,355],[357,357],[359,359],[361,361],[363,363],[365,365],[367,367],[369,369],[371,371],[373,373],[375,375],[378,378],[380,380],[382,384],[387,387],[389,389],[392,392],[396,397],[402,402],[405,405],[409,411],[414,414],[417,417],[419,419],[421,421],[424,424],[426,427],[429,429],[432,432],[436,436],[438,438],[441,442],[445,447],[454,454],[457,457],[460,460],[462,462],[464,464],[466,466],[468,468],[470,470],[472,472],[474,474],[476,477],[479,479],[481,481],[483,483],[485,485],[487,487],[489,489],[491,491],[493,493],[495,496],[499,499],[501,501],[505,505],[507,507],[509,509],[511,511],[513,513],[515,515],[517,517],[519,519],[521,521],[523,523],[525,525],[527,527],[529,529],[531,531],[533,533],[535,535],[537,537],[539,539],[541,541],[543,543],[545,545],[547,547],[549,549],[551,551],[553,553],[555,555],[557,557],[559,559],[561,561],[563,569],[572,572],[575,576],[578,578],[583,583],[585,585],[587,587],[589,589],[591,659],[661,687],[881,881],[883,883],[887,887],[891,893],[912,912],[940,974],[976,977],[981,983],[985,985],[987,987],[989,989],[991,991],[993,993],[995,995],[997,997],[999,999],[1001,1001],[1003,1003],[1005,1005],[1007,1011],[1013,1013],[1016,1016],[1019,1020],[1072,1119],[1121,1121],[1123,1123],[1125,1125],[1127,1127],[1129,1129],[1131,1131],[1133,1133],[1135,1135],[1137,1137],[1139,1139],[1141,1141],[1143,1143],[1145,1145],[1147,1147],[1149,1149],[1151,1151],[1153,1153],[1163,1163],[1165,1165],[1167,1167],[1169,1169],[1171,1171],[1173,1173],[1175,1175],[1177,1177],[1179,1179],[1181,1181],[1183,1183],[1185,1185],[1187,1187],[1189,1189],[1191,1191],[1193,1193],[1195,1195],[1197,1197],[1199,1199],[1201,1201],[1203,1203],[1205,1205],[1207,1207],[1209,1209],[1211,1211],[1213,1213],[1215,1215],[1218,1218],[1220,1220],[1222,1222],[1224,1224],[1226,1226],[1228,1228],[1230,1231],[1233,1233],[1235,1235],[1237,1237],[1239,1239],[1241,1241],[1243,1243],[1245,1245],[1247,1247],[1249,1249],[1251,1251],[1253,1253],[1255,1255],[1257,1257],[1259,1259],[1261,1261],[1263,1263],[1265,1265],[1267,1267],[1269,1269],[1271,1271],[1273,1273],[1275,1275],[1277,1277],[1279,1279],[1281,1281],[1283,1283],[1285,1285],[1287,1287],[1289,1289],[1291,1291],[1293,1293],[1295,1295],[1297,1297],[1299,1299],[1301,1301],[1303,1303],[1305,1305],[1307,1307],[1309,1309],[1311,1311],[1313,1313],[1315,1315],[1317,1317],[1319,1319],[1321,1321],[1323,1323],[1325,1325],[1327,1327],[1377,1415],[5112,5117],[7296,7304],[7424,7467],[7531,7543],[7545,7578],[7681,7681],[7683,7683],[7685,7685],[7687,7687],[7689,7689],[7691,7691],[7693,7693],[7695,7695],[7697,7697],[7699,7699],[7701,7701],[7703,7703],[7705,7705],[7707,7707],[7709,7709],[7711,7711],[7713,7713],[7715,7715],[7717,7717],[7719,7719],[7721,7721],[7723,7723],[7725,7725],[7727,7727],[7729,7729],[7731,7731],[7733,7733],[7735,7735],[7737,7737],[7739,7739],[7741,7741],[7743,7743],[7745,7745],[7747,7747],[7749,7749],[7751,7751],[7753,7753],[7755,7755],[7757,7757],[7759,7759],[7761,7761],[7763,7763],[7765,7765],[7767,7767],[7769,7769],[7771,7771],[7773,7773],[7775,7775],[7777,7777],[7779,7779],[7781,7781],[7783,7783],[7785,7785],[7787,7787],[7789,7789],[7791,7791],[7793,7793],[7795,7795],[7797,7797],[7799,7799],[7801,7801],[7803,7803],[7805,7805],[7807,7807],[7809,7809],[7811,7811],[7813,7813],[7815,7815],[7817,7817],[7819,7819],[7821,7821],[7823,7823],[7825,7825],[7827,7827],[7829,7837],[7839,7839],[7841,7841],[7843,7843],[7845,7845],[7847,7847],[7849,7849],[7851,7851],[7853,7853],[7855,7855],[7857,7857],[7859,7859],[7861,7861],[7863,7863],[7865,7865],[7867,7867],[7869,7869],[7871,7871],[7873,7873],[7875,7875],[7877,7877],[7879,7879],[7881,7881],[7883,7883],[7885,7885],[7887,7887],[7889,7889],[7891,7891],[7893,7893],[7895,7895],[7897,7897],[7899,7899],[7901,7901],[7903,7903],[7905,7905],[7907,7907],[7909,7909],[7911,7911],[7913,7913],[7915,7915],[7917,7917],[7919,7919],[7921,7921],[7923,7923],[7925,7925],[7927,7927],[7929,7929],[7931,7931],[7933,7933],[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],[8126,8126],[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],[8458,8458],[8462,8463],[8467,8467],[8495,8495],[8500,8500],[8505,8505],[8508,8509],[8518,8521],[8526,8526],[8580,8580],[11312,11358],[11361,11361],[11365,11366],[11368,11368],[11370,11370],[11372,11372],[11377,11377],[11379,11380],[11382,11387],[11393,11393],[11395,11395],[11397,11397],[11399,11399],[11401,11401],[11403,11403],[11405,11405],[11407,11407],[11409,11409],[11411,11411],[11413,11413],[11415,11415],[11417,11417],[11419,11419],[11421,11421],[11423,11423],[11425,11425],[11427,11427],[11429,11429],[11431,11431],[11433,11433],[11435,11435],[11437,11437],[11439,11439],[11441,11441],[11443,11443],[11445,11445],[11447,11447],[11449,11449],[11451,11451],[11453,11453],[11455,11455],[11457,11457],[11459,11459],[11461,11461],[11463,11463],[11465,11465],[11467,11467],[11469,11469],[11471,11471],[11473,11473],[11475,11475],[11477,11477],[11479,11479],[11481,11481],[11483,11483],[11485,11485],[11487,11487],[11489,11489],[11491,11492],[11500,11500],[11502,11502],[11507,11507],[11520,11557],[11559,11559],[11565,11565],[42561,42561],[42563,42563],[42565,42565],[42567,42567],[42569,42569],[42571,42571],[42573,42573],[42575,42575],[42577,42577],[42579,42579],[42581,42581],[42583,42583],[42585,42585],[42587,42587],[42589,42589],[42591,42591],[42593,42593],[42595,42595],[42597,42597],[42599,42599],[42601,42601],[42603,42603],[42605,42605],[42625,42625],[42627,42627],[42629,42629],[42631,42631],[42633,42633],[42635,42635],[42637,42637],[42639,42639],[42641,42641],[42643,42643],[42645,42645],[42647,42647],[42649,42649],[42651,42651],[42787,42787],[42789,42789],[42791,42791],[42793,42793],[42795,42795],[42797,42797],[42799,42801],[42803,42803],[42805,42805],[42807,42807],[42809,42809],[42811,42811],[42813,42813],[42815,42815],[42817,42817],[42819,42819],[42821,42821],[42823,42823],[42825,42825],[42827,42827],[42829,42829],[42831,42831],[42833,42833],[42835,42835],[42837,42837],[42839,42839],[42841,42841],[42843,42843],[42845,42845],[42847,42847],[42849,42849],[42851,42851],[42853,42853],[42855,42855],[42857,42857],[42859,42859],[42861,42861],[42863,42863],[42865,42872],[42874,42874],[42876,42876],[42879,42879],[42881,42881],[42883,42883],[42885,42885],[42887,42887],[42892,42892],[42894,42894],[42897,42897],[42899,42901],[42903,42903],[42905,42905],[42907,42907],[42909,42909],[42911,42911],[42913,42913],[42915,42915],[42917,42917],[42919,42919],[42921,42921],[42933,42933],[42935,42935],[43002,43002],[43824,43866],[43872,43877],[43888,43967],[64256,64262],[64275,64279],[65345,65370]],No:[[178,179],[185,185],[188,190],[2548,2553],[2930,2935],[3056,3058],[3192,3198],[3416,3422],[3440,3448],[3882,3891],[4969,4988],[6128,6137],[6618,6618],[8304,8304],[8308,8313],[8320,8329],[8528,8543],[8585,8585],[9312,9371],[9450,9471],[10102,10131],[11517,11517],[12690,12693],[12832,12841],[12872,12879],[12881,12895],[12928,12937],[12977,12991],[43056,43061]],Zs:[[32,32],[160,160],[5760,5760],[8192,8202],[8239,8239],[8287,8287],[12288,12288]]}}});p(Rt);var Pt=d(function(e,t){function n(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t}t.__esModule=!0,t.normalize_ranges=function(e){return e.sort(function(e,t){return e[0]-t[0]}).reduce(function(e,t,n){if(0===n)return[t];var r=e[e.length-1],i=r[0],o=t[1];return r[1]+1===t[0]?e.slice(0,-1).concat([[i,o]]):e.concat([t])},[])},t.build_regex=function(e,t){var r=e.map(function(e){var t=e[0],r=e[1];return t===r?"\\u"+n(t):"\\u"+n(t)+"-\\u"+n(r)}).join("");return new RegExp("["+r+"]",t)}});p(Pt);var Zt,Bt,Ut,Gt=/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]\uFE0F|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F/g,qt=/[^\x20-\x7F]/,zt=jt().source,Wt=je("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"),Kt="".concat(Wt).concat((Zt=["Pc","Pd","Pe","Pf","Pi","Po","Ps"],Bt=Rt.get_data(),Ut=Zt.reduce(function(e,t){return e.concat(Bt[t])},[]),Pt.build_regex(Pt.normalize_ranges(Ut),void 0)).source.slice(1,-1)),Qt=new RegExp("[".concat(Kt,"]"));function $t(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function Yt(e){return e.length>0?e[e.length-1]:null}function Xt(e){return function(t,n,r){var i=r&&r.backwards;if(!1===n)return!1;for(var o=t.length,a=n;a>=0&&a"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){cn[e]=t})});var dn={"==":!0,"!=":!0,"===":!0,"!==":!0},hn={"+":!0,"-":!0},fn={"*":!0,"/":!0,"%":!0},gn={">>":!0,">>>":!0,"<<":!0};function vn(e,t,n){for(var r=0,i=n=n||0;i0&&e.comments.some(function(e){return"prettier-ignore"===e.value.trim()})}function bn(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Cn,wn={punctuationRegex:Qt,punctuationCharRange:Kt,getStringWidth:function(e){return e?qt.test(e)?Mt(e.replace(Gt," ")):e.length:0},splitText:function(e,t){var n="non-cjk",r="cjk-character",i="cjk-punctuation",o=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(zt,")\n(").concat(zt,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach(function(e,t,l){t%2!=1?(0!==t&&t!==l.length-1||""!==e)&&e.split(new RegExp("(".concat(zt,")"))).forEach(function(e,t,o){(0!==t&&t!==o.length-1||""!==e)&&(t%2!=0?a(Qt.test(e)?{type:"word",value:e,kind:i,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&a({type:"word",value:e,kind:n,hasLeadingPunctuation:Qt.test(e[0]),hasTrailingPunctuation:Qt.test(Yt(e))}))}):o.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})}),o;function a(e){var t,a,l=Yt(o);l&&"word"===l.type&&(l.kind===n&&e.kind===r&&!l.hasTrailingPunctuation||l.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?o.push({type:"whitespace",value:" "}):(a=i,l.kind===(t=n)&&e.kind===a||l.kind===a&&e.kind===t||[l.value,e.value].some(function(e){return/\u3000/.test(e)})||o.push({type:"whitespace",value:""}))),o.push(e)}},getMaxContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(je(t),")+"),"g"));return null===n?0:n.reduce(function(e,n){return Math.max(e,n.length/t.length)},0)},getPrecedence:pn,shouldFlatten:function(e,t){return pn(t)!==pn(e)?"%"===t&&!hn[e]:!("**"===e||dn[e]&&dn[t]||"%"===t&&fn[e]||"%"===e&&fn[t]||t!==e&&fn[t]&&fn[e]||gn[e]&&gn[t])},isBitwiseOperator:function(e){return!!gn[e]||"|"===e||"^"===e||"&"===e},isExportDeclaration:$t,getParentExportDeclaration:function(e){var t=e.getParentNode();return"declaration"===e.getName()&&$t(t)?t:null},getPenultimate:function(e){return e.length>1?e[e.length-2]:null},getLast:Yt,getNextNonSpaceNonCommentCharacterIndex:un,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(un(e,t,n))},skipWhitespace:Jt,skipSpaces:en,skipNewline:an,isNextLineEmptyAfterIndex:sn,isNextLineEmpty:function(e,t,n){return sn(e,n(t))},isPreviousLineEmpty:function(e,t,n){var r=n(t)-1;return r=an(e,r=en(e,r,{backwards:!0}),{backwards:!0}),(r=en(e,r,{backwards:!0}))!==an(e,r,{backwards:!0})},hasNewline:ln,hasNewlineInRange:function(e,t,n){for(var r=t;r(r.match(l.regex)||[]).length:u=!0;var c="json"===t.parser?i.quote:s?l.quote:a.quote;return n?u?c+r+c:e:mn(r,c,!("css"===t.parser||"less"===t.parser||"scss"===t.parser))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(e){return yn(e.getValue())},hasNodeIgnoreComment:yn,makeString:mn,matchAncestorTypes:function(e,t,n){for(n=n||0,t=t.slice();t.length;){var r=e.getParentNode(n),i=t.shift();if(!r||r.type!==i)return!1;n++}return!0},addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,bn(e,t)},addDanglingComment:function(e,t){t.leading=!1,t.trailing=!1,bn(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,bn(e,t)},isWithinParentArrayProperty:function(e,t){var n=e.getValue(),r=e.getParentNode();if(null==r)return!1;if(!Array.isArray(r[t]))return!1;var i=e.getName();return r[t][i]===n}},_n=wn.getStringWidth,En=xt.concat,An=xt.fill,Sn=xt.cursor,Dn=1,Tn=2;function xn(e,t){return Ln(e,{type:"indent"},t)}function On(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?Ln(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):Ln(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function Ln(e,t,n){var r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t),i="",o=0,a=0,l=0,s=!0,u=!1,c=void 0;try{for(var p,d=r[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=p.value;switch(h.type){case"indent":v(),n.useTabs?f(1):g(n.tabWidth);break;case"stringAlign":v(),i+=h.n,o+=h.n.length;break;case"numberAlign":a+=1,l+=h.n;break;default:throw new Error("Unexpected type '".concat(h.type,"'"))}}}catch(b){u=!0,c=b}finally{try{s||null==d.return||d.return()}finally{if(u)throw c}}return m(),Object.assign({},e,{value:i,length:o,queue:r});function f(e){i+="\t".repeat(e),o+=n.tabWidth*e}function g(e){i+=" ".repeat(e),o+=e}function v(){n.useTabs?(a>0&&f(a),y()):m()}function m(){l>0&&g(l),y()}function y(){a=0,l=0}}function Mn(e,t,n,r,i){for(var o=t.length,a=[e];n>=0;)if(0!==a.length){var l=a.pop(),s=l[0],u=l[1],c=l[2];if("string"==typeof c)n-=_n(c);else switch(c.type){case"concat":for(var p=c.parts.length-1;p>=0;p--)a.push([s,u,c.parts[p]]);break;case"indent":a.push([xn(s,r),u,c.contents]);break;case"align":a.push([On(s,c.n,r),u,c.contents]);break;case"group":if(i&&c.break)return!1;a.push([s,c.break?Dn:u,c.contents]),c.id&&(Cn[c.id]=a[a.length-1][1]);break;case"fill":for(var d=c.parts.length-1;d>=0;d--)a.push([s,u,c.parts[d]]);break;case"if-break":var h=c.groupId?Cn[c.groupId]:u;h===Dn&&c.breakContents&&a.push([s,u,c.breakContents]),h===Tn&&c.flatContents&&a.push([s,u,c.flatContents]);break;case"line":switch(u){case Tn:if(!c.hard){c.soft||(n-=1);break}return!0;case Dn:return!0}}}else{if(0===o)return!0;a.push(t[o-1]),o--}return!1}var In={};function Vn(e,t,n,r){for(var i=[e];0!==i.length;){var o=i.pop();if(o!==In){var a=!0;if(t&&!1===t(o)&&(a=!1),n&&(i.push(o),i.push(In)),a)if("concat"===o.type||"fill"===o.type)for(var l=o.parts.length-1;l>=0;--l)i.push(o.parts[l]);else if("if-break"===o.type)o.flatContents&&i.push(o.flatContents),o.breakContents&&i.push(o.breakContents);else if("group"===o.type&&o.expandedStates)if(r)for(var s=o.expandedStates.length-1;s>=0;--s)i.push(o.expandedStates[s]);else i.push(o.contents);else o.contents&&i.push(o.contents)}else n(i.pop())}}function kn(e,t){if("concat"===e.type||"fill"===e.type){var n=e.parts.map(function(e){return kn(e,t)});return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){var r=e.breakContents&&kn(e.breakContents,t),i=e.flatContents&&kn(e.flatContents,t);return t(Object.assign({},e,{breakContents:r,flatContents:i}))}if(e.contents){var o=kn(e.contents,t);return t(Object.assign({},e,{contents:o}))}return t(e)}function Nn(e,t,n){var r=n,i=!1;return Vn(e,function(e){var n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1}),r}function Fn(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Hn(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function jn(e){if(e.length>0){var t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function Rn(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Pn(e){if("concat"===e.type){for(var t=[],n=0;n=0;h--)o.push([c,p,d.parts[h]]);break;case"indent":o.push([xn(c,t),p,d.contents]);break;case"align":o.push([On(c,d.n,t),p,d.contents]);break;case"group":switch(p){case Tn:if(!l){o.push([c,d.break?Dn:Tn,d.contents]);break}case Dn:l=!1;var f=[c,Tn,d.contents],g=n-i;if(!d.break&&Mn(f,o,g,t))o.push(f);else if(d.expandedStates){var v=d.expandedStates[d.expandedStates.length-1];if(d.break){o.push([c,Dn,v]);break}for(var m=1;m=d.expandedStates.length){o.push([c,Dn,v]);break}var y=[c,Tn,d.expandedStates[m]];if(Mn(y,o,g,t)){o.push(y);break}}}else o.push([c,Dn,d.contents])}d.id&&(Cn[d.id]=o[o.length-1][1]);break;case"fill":var b=n-i,C=d.parts;if(0===C.length)break;var w=C[0],_=[c,Tn,w],E=[c,Dn,w],A=Mn(_,[],b,t,!0);if(1===C.length){o.push(A?_:E);break}var S=C[1],D=[c,Tn,S],T=[c,Dn,S];if(2===C.length){A?(o.push(D),o.push(_)):(o.push(T),o.push(E));break}C.splice(0,2);var x=[c,p,An(C)];Mn([c,Tn,En([w,S,C[0]])],[],b,t,!0)?(o.push(x),o.push(D),o.push(_)):A?(o.push(x),o.push(T),o.push(_)):(o.push(x),o.push(T),o.push(E));break;case"if-break":var O=d.groupId?Cn[d.groupId]:p;O===Dn&&d.breakContents&&o.push([c,p,d.breakContents]),O===Tn&&d.flatContents&&o.push([c,p,d.flatContents]);break;case"line-suffix":s.push([c,p,d.contents]);break;case"line-suffix-boundary":s.length>0&&o.push([c,p,{type:"line",hard:!0}]);break;case"line":switch(p){case Tn:if(!d.hard){d.soft||(a.push(" "),i+=1);break}l=!0;case Dn:if(s.length){o.push([c,p,d]),[].push.apply(o,s.reverse()),s=[];break}if(d.literal)c.root?(a.push(r,c.root.value),i=c.root.length):(a.push(r),i=0);else{if(a.length>0){for(;a.length>0&&"string"==typeof a[a.length-1]&&a[a.length-1].match(/^[^\S\n]*$/);)a.pop();a.length&&"string"==typeof a[a.length-1]&&(a[a.length-1]=a[a.length-1].replace(/[^\S\n]*$/,""))}a.push(r+c.value),i=c.length}}}}var L=a.indexOf(Sn.placeholder);if(-1!==L){var M=a.indexOf(Sn.placeholder,L+1),I=a.slice(0,L).join(""),V=a.slice(L+1,M).join("");return{formatted:I+V+a.slice(M+1).join(""),cursorNodeStart:I.length,cursorNodeText:V}}return{formatted:a.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Nn(e,Hn,!1)},isLineNext:function(e){return Nn(e,Fn,!1)},traverseDoc:Vn,mapDoc:kn,propagateBreaks:function(e){var t=new Set,n=[];Vn(e,function(e){if("break-parent"===e.type&&jn(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}},function(e){"group"===e.type&&n.pop().break&&jn(n)},!0)},removeLines:function(e){return kn(e,Rn)},stripTrailingHardline:function(e){return"concat"===e.type&&2===e.parts.length&&"concat"===e.parts[1].type&&2===e.parts[1].parts.length&&e.parts[1].parts[0].hard&&"break-parent"===e.parts[1].parts[1].type?e.parts[0]:e}},debug:{printDocToDebug:function(e){return Zn(Pn(e))}}},Un={isNextLineEmpty:function(e,t,n){return wn.isNextLineEmpty(e,t,n.locEnd)},isNextLineEmptyAfterIndex:wn.isNextLineEmptyAfterIndex,isPreviousLineEmpty:function(e,t,n){return wn.isPreviousLineEmpty(e,t,n.locStart)},getNextNonSpaceNonCommentCharacterIndex:function(e,t,n){return wn.getNextNonSpaceNonCommentCharacterIndex(e,t,n.locEnd)},mapDoc:Bn.utils.mapDoc,makeString:wn.makeString,addLeadingComment:wn.addLeadingComment,addDanglingComment:wn.addDanglingComment,addTrailingComment:wn.addTrailingComment},Gn=Ct&&bt||Ct,qn=Bn.builders,zn=qn.concat,Wn=qn.hardline,Kn=qn.breakParent,Qn=qn.indent,$n=qn.lineSuffix,Yn=qn.join,Xn=qn.cursor,Jn=wn.hasNewline,er=wn.skipNewline,tr=wn.isPreviousLineEmpty,nr=Un.addLeadingComment,rr=Un.addDanglingComment,ir=Un.addTrailingComment,or=Symbol("child-nodes");function ar(e,t,n){if(e){var r,i=t.printer,o=t.locStart,a=t.locEnd;if(n){if(e&&i.canAttachComment&&i.canAttachComment(e)){var l;for(l=n.length-1;l>=0&&!(o(n[l])<=o(e)&&a(n[l])<=a(e));--l);return void n.splice(l+1,0,e)}}else if(e[or])return e[or];if(i.getCommentChildNodes?r=i.getCommentChildNodes(e):e&&"object"===C(e)&&(r=Object.keys(e).filter(function(e){return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e}).map(function(t){return e[t]})),r)return n||Object.defineProperty(e,or,{value:n=[],enumerable:!1}),r.forEach(function(e){ar(e,t,n)}),n}}function lr(e,t,n){var r=e.length;if(0!==r){var i,o=e[0],a=o.precedingNode,l=o.followingNode,s=n.locStart(l);for(i=r;i>0;--i){var u=e[i-1];Gn.strictEqual(u.precedingNode,a),Gn.strictEqual(u.followingNode,l);var c=t.slice(n.locEnd(u),s).trim();if(""!==c&&!/^\(+$/.test(c))break;s=n.locStart(u)}e.forEach(function(e,t){t>1,d=s[p];if(a(d)-a(n)<=0&&l(n)-l(d)<=0)return n.enclosingNode=d,void e(d,n,r);if(l(d)-a(n)<=0)i=d,u=p+1;else{if(!(l(n)-a(d)<=0))throw new Error("Comment location overlaps with node location");o=d,c=p}}if(n.enclosingNode&&"TemplateLiteral"===n.enclosingNode.type){var h=n.enclosingNode.quasis,f=ur(h,n,r);i&&ur(h,i,r)!==f&&(i=null),o&&ur(h,o,r)!==f&&(o=null)}i&&(n.precedingNode=i),o&&(n.followingNode=o)}(t,l,r);var u=l.precedingNode,c=l.enclosingNode,p=l.followingNode,d=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:function(){return!1},h=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:function(){return!1},f=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:function(){return!1},g=e.length-1===s;if(Jn(n,o(l),{backwards:!0}))d(l,n,r,t,g)||(p?nr(p,l):u?ir(u,l):rr(c||t,l));else if(Jn(n,a(l)))h(l,n,r,t,g)||(u?ir(u,l):p?nr(p,l):rr(c||t,l));else if(f(l,n,r,t,g));else if(u&&p){var v=i.length;v>0&&i[v-1].followingNode!==l.followingNode&&lr(i,n,r),i.push(l)}else u?ir(u,l):p?nr(p,l):rr(c||t,l)}}),lr(i,n,r),e.forEach(function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}},printComments:function(e,t,n,r){var i=e.getValue(),o=t(e),a=i&&i.comments;if(!a||0===a.length)return cr(e,n,o);var l=[],s=[r?";":"",o];return e.each(function(e){var t=e.getValue(),r=t.trailing;if(t.leading){var i=function(e,t,n){var r=e.getValue(),i=sr(e,n);if(!i)return"";var o=n.printer.isBlockComment&&n.printer.isBlockComment(r);return zn(o?[i,Jn(n.originalText,n.locEnd(r))?Wn:" "]:[i,Wn])}(e,0,n);if(!i)return;l.push(i);var o=n.originalText;Jn(o,er(o,n.locEnd(t)))&&l.push(Wn)}else r&&s.push(function(e,t,n){var r=e.getValue(),i=sr(e,n);if(!i)return"";var o=n.printer.isBlockComment&&n.printer.isBlockComment(r),a=e.getNode(1),l=e.getNode(2),s=l&&("ClassDeclaration"===l.type||"ClassExpression"===l.type)&&l.superClass===a;if(Jn(n.originalText,n.locStart(r),{backwards:!0})){var u=tr(n.originalText,r,n.locStart);return $n(zn([Wn,u?Wn:"",i]))}return zn(o||s?[" ",i]:[$n(" "+i),o?"":Kn])}(e,0,n))},"comments"),cr(e,n,zn(l.concat(s)))},printDanglingComments:function(e,t,n,r){var i=[],o=e.getValue();return o&&o.comments?(e.each(function(e){var n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||i.push(sr(e,t))},"comments"),0===i.length?"":n?Yn(Wn,i):Qn(zn([Wn,Yn(Wn,i)]))):""},getSortedChildNodes:ar};function dr(e){Gn.ok(this instanceof dr),this.stack=[e]}function hr(e,t){for(var n=e.stack,r=n.length-1;r>=0;r-=2){var i=n[r];if(i&&!Array.isArray(i)&&--t<0)return i}return null}dr.prototype.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},dr.prototype.getValue=function(){var e=this.stack;return e[e.length-1]},dr.prototype.getNode=function(e){return hr(this,~~e)},dr.prototype.getParentNode=function(e){return hr(this,1+~~e)},dr.prototype.call=function(e){for(var t=this.stack,n=t.length,r=t[n-1],i=arguments.length,o=1;o0&&(o=Cr(wr.removeLines(yr([br,o])),n,t.tabWidth)),wr.propagateBreaks(o),"json"!==t.parser&&"json5"!==t.parser&&"json-stringify"!==t.parser||(o=yr([o,br])),o}function Er(e,t,n,r){Gn.ok(e instanceof fr);var i=e.getValue(),o=t.printer;if(o.hasPrettierIgnore&&o.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(i),t.locEnd(i));if(i)try{var a=vr.printSubtree(e,n,t,_r);if(a)return a}catch(l){if(c.PRETTIER_DEBUG)throw l}return o.print(e,t,n,r)}var Ar=_r;function Sr(e,t,n,r,i){r=r||function(){return!0},i=i||[];var o=n.locStart(e,n.locStart),a=n.locEnd(e,n.locEnd);if(o<=t&&t<=a){var l=!0,s=!1,u=void 0;try{for(var c,p=pr.getSortedChildNodes(e,n)[Symbol.iterator]();!(l=(c=p.next()).done);l=!0){var d=Sr(c.value,t,n,r,[e].concat(i));if(d)return d}}catch(h){s=!0,u=h}finally{try{l||null==p.return||p.return()}finally{if(s)throw u}}if(r(e))return{node:e,parentNodes:i}}}function Dr(e,t){if(null==t)return!1;switch(e.parser){case"flow":case"babylon":case"typescript":return["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"].indexOf(t.type)>-1;case"json":return["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"].indexOf(t.type)>-1;case"graphql":return["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"].indexOf(t.kind)>-1;case"vue":return"root"!==t.tag}return!1}var Tr={calculateRange:function(e,t,n){var r,i=e.slice(t.rangeStart,t.rangeEnd),o=Math.max(t.rangeStart+i.search(/\S/),t.rangeStart);for(r=t.rangeEnd;r>t.rangeStart&&!e[r-1].match(/\S/);--r);var a=Sr(n,o,t,function(e){return Dr(t,e)}),l=Sr(n,r,t,function(e){return Dr(t,e)});if(!a||!l)return{rangeStart:0,rangeEnd:0};var s=function(e,t,n){var r=e.node,i=t.node;if(r===i)return{startNode:r,endNode:i};var o=!0,a=!1,l=void 0;try{for(var s,u=t.parentNodes[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value;if(!("Program"!==c.type&&"File"!==c.type&&n.locStart(c)>=n.locStart(e.node)))break;i=c}}catch(m){a=!0,l=m}finally{try{o||null==u.return||u.return()}finally{if(a)throw l}}var p=!0,d=!1,h=void 0;try{for(var f,g=e.parentNodes[Symbol.iterator]();!(p=(f=g.next()).done);p=!0){var v=f.value;if(!("Program"!==v.type&&"File"!==v.type&&n.locEnd(v)<=n.locEnd(t.node)))break;r=v}}catch(m){d=!0,h=m}finally{try{p||null==g.return||g.return()}finally{if(d)throw h}}return{startNode:r,endNode:i}}(a,l,t),u=s.startNode,c=s.endNode;return{rangeStart:Math.min(t.locStart(u,t.locStart),t.locStart(c,t.locStart)),rangeEnd:Math.max(t.locEnd(u,t.locEnd),t.locEnd(c,t.locEnd))}},findNodeAtOffset:Sr},xr=yt,Or=Bn.printer.printDocToString,Lr=Bn.debug.printDocToDebug,Mr=65279,Ir=Symbol("cursor");function Vr(e,t,n){var r=t.comments;return r&&(delete t.comments,pr.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimRight(),r}function kr(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;var r=ht.parse(e,t),i=r.ast,o=e;if(e=r.text,t.cursorOffset>=0){var a=Tr.findNodeAtOffset(i,t.cursorOffset,t);a&&a.node&&(t.cursorNode=a.node)}var l=Vr(e,i,t),s=Ar(i,t,n);t.newLine=function(e){var t=e.indexOf("\n");return t>=0&&"\r"===e.charAt(t-1)?"\r\n":"\n"}(o);var u=Or(s,t);if(function(e){if(e){for(var t=0;t0){var c=u.formatted.trim();void 0!==u.cursorNodeStart&&(u.cursorNodeStart-=u.formatted.indexOf(c)),u.formatted=c+t.newLine}if(t.cursorOffset>=0){var p,d,h,f,g;if(t.cursorNode&&u.cursorNodeText?(p=t.locStart(t.cursorNode),d=e.slice(p,t.locEnd(t.cursorNode)),h=t.cursorOffset-p,f=u.cursorNodeStart,g=u.cursorNodeText):(p=0,d=e,h=t.cursorOffset,f=0,g=u.formatted),d===g)return{formatted:u.formatted,cursorOffset:f+h};var v=d.split("");v.splice(h,0,Ir);var m=g.split(""),y=j.diffArrays(v,m),b=f,C=!0,w=!1,_=void 0;try{for(var E,A=y[Symbol.iterator]();!(C=(E=A.next()).done);C=!0){var S=E.value;if(S.removed){if(S.value.indexOf(Ir)>-1)break}else b+=S.count}}catch(D){w=!0,_=D}finally{try{C||null==A.return||A.return()}finally{if(w)throw _}}return{formatted:u.formatted,cursorOffset:b}}return{formatted:u.formatted}}function Nr(e,t){var n=ht.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};if(t.rangeStart>0||t.rangeEnd=i&&t.cursorOffset=o?h=t.cursorOffset-o+(i+p.length):void 0!==c.cursorOffset&&(h=c.cursorOffset+i),{formatted:d,cursorOffset:h}}(e,t);var i=e.charCodeAt(0)===Mr;i&&(e=e.substring(1)),t.insertPragma&&t.printer.insertPragma&&!r&&(e=t.printer.insertPragma(e));var o=kr(e,t);return i&&(o.formatted=String.fromCharCode(Mr)+o.formatted),o}var Fr=Bn.builders,Hr=Fr.indent,jr=Fr.join,Rr=Fr.hardline,Pr=Fr.softline,Zr=Fr.literalline,Br=Fr.concat,Ur=Fr.dedentToRoot,Gr=Bn.utils,qr=Gr.mapDoc,zr=Gr.stripTrailingHardline;function Wr(e){return qr(e,function(e){if(!e.parts)return e;var t=[];return e.parts.forEach(function(e){t.push("string"==typeof e?e.replace(/(\\*)`/g,"$1$1\\`"):e)}),Object.assign({},e,{parts:t})})}function Kr(e){var t=[],n=!1;return e.map(function(e){return e.trim()}).forEach(function(e,r,i){""!==e&&(t.push(""===i[r-1]&&n?Br([Rr,e]):e),n=!0)}),0===t.length?null:jr(Rr,t)}function Qr(e){return"Identifier"===e.type&&"styled"===e.name}function $r(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}var Yr=d(function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var n=t.filter(function(e){return"\r\n"===e}).length;return n>t.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),Xr=d(function(e,t){var n,r;function i(){return n=(e=Yr)&&e.__esModule?e:{default:e};var e}function o(){return r=Ye}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(s);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(s);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function(e){var t=e.comments,a=void 0===t?"":t,l=e.pragmas,s=void 0===l?{}:l,u=(0,(n||i()).default)(a)||(r||o()).EOL,c=Object.keys(s),p=c.map(function(e){return g(e,s[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+u}).join("");if(!a){if(0===c.length)return"";if(1===c.length&&!Array.isArray(s[c[0]])){var d=s[c[0]];return"".concat("/**"," ").concat(g(c[0],d)[0]).concat(" */")}}var h=a.split(u).map(function(e){return"".concat(" *"," ").concat(e)}).join(u)+u;return"/**"+u+(a?h:"")+(a&&c.length?" *"+u:"")+p+" */"};var a=/\*\/$/,l=/^\/\*\*/,s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,c=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,d=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,h=/(\r?\n|^) *\* ?/g;function f(e){var t=(0,(n||i()).default)(e)||(r||o()).EOL;e=e.replace(l,"").replace(a,"").replace(h,"$1");for(var s="";s!==e;)s=e,e=e.replace(p,"".concat(t,"$1 $2").concat(t));e=e.replace(c,"").trimRight();for(var f,g=Object.create(null),v=e.replace(d,"").replace(c,"").trimRight();f=d.exec(e);){var m=f[2].replace(u,"");g[f[1]]="string"==typeof g[f[1]]||Array.isArray(g[f[1]])?[].concat(g[f[1]],m):m}return{comments:v,pragmas:g}}function g(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});p(Xr);var Jr=function(e){var t=Xr.parseWithComments(Xr.extract(e)),n=Object.assign({format:""},t.pragmas),r=Xr.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}),i=Xr.strip(e);return r+(i.startsWith("\n")?"\n":"\n\n")+i},ei=Un.addLeadingComment,ti=Un.addTrailingComment,ni=Un.addDanglingComment;function ri(e,t){var n=e.body.filter(function(e){return"EmptyStatement"!==e.type});0===n.length?ni(e,t):ei(n[0],t)}function ii(e,t){"BlockStatement"===e.type?ri(e,t):ei(e,t)}function oi(e,t,n,r,i,o){if(!n||"IfStatement"!==n.type||!r)return!1;var a=wn.getNextNonSpaceNonCommentCharacter(e,i,o.locEnd);return")"===a?(ti(t,i),!0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?ti(t,i):ni(n,i),!0):"BlockStatement"===r.type?(ri(r,i),!0):"IfStatement"===r.type?(ii(r.consequent,i),!0):("{"===a||n.consequent===r)&&(ei(r,i),!0)}function ai(e,t,n,r){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||n&&"Decorator"===n.type||(e.decorators&&0!==e.decorators.length?ti(e.decorators[e.decorators.length-1],r):ei(e,r),0))}function li(e,t,n,r,i){return t&&n&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==wn.getNextNonSpaceNonCommentCharacter(e,n,i.locEnd)?(ti(n,r),!0):!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type||(ti(n,r),0))}function si(e,t,n,r,i,o){return t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type?(ti(t,i),!0):!(!t||"Identifier"!==t.type&&"AssignmentPattern"!==t.type||!n||"ArrowFunctionExpression"!==n.type&&"FunctionExpression"!==n.type&&"FunctionDeclaration"!==n.type&&"ObjectMethod"!==n.type&&"ClassMethod"!==n.type||")"!==wn.getNextNonSpaceNonCommentCharacter(e,i,o.locEnd)||(ti(t,i),0))}function ui(e,t){return!(!e||"ImportSpecifier"!==e.type||(ei(e,t),0))}function ci(e,t,n,r){return t&&t.body&&0===t.body.length?(r?ni(t,n):ei(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(r?ni(e,n):ei(e,n),0))}var pi={handleOwnLineComment:function(e,t,n,r,i){var o=e.precedingNode,a=e.enclosingNode,l=e.followingNode;return!!(si(t,o,a,l,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type||!t||"Identifier"!==t.type||(ei(e,n),0))}(a,l,e)||oi(t,o,a,l,e,n)||function(e,t,n){return!(!e||"TryStatement"!==e.type||!t||("BlockStatement"===t.type?(ri(t,n),0):"TryStatement"===t.type?(ii(t.finalizer,n),0):"CatchClause"!==t.type||(ii(t.body,n),0)))}(a,l,e)||ai(a,0,l,e)||ui(a,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type||(ei(e,n),0))}(a,0,e)||function(e,t,n,r){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type||(ti(e,r),0))}(o,a,0,e)||ci(a,r,e,i)||function(e,t,n,r,i){return!!(n&&t&&"ImportDeclaration"===t.type&&wn.hasNewline(e,i.locEnd(r)))&&(ti(n,r),!0)}(t,a,o,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type||(ei(e,t),0))}(a,e)||li(t,a,o,e,n))},handleEndOfLineComment:function(e,t,n,r,i){var o=e.precedingNode,a=e.enclosingNode,l=e.followingNode;return!!(si(t,o,a,l,e,n)||function(e,t,n,r,i,o){var a=t&&!wn.hasNewlineInRange(i,o.locEnd(t),o.locStart(r));return!(t&&a||!e||"ConditionalExpression"!==e.type||!n||(ei(n,r),0))}(a,o,l,e,t,n)||ui(a,e)||oi(t,o,a,l,e,n)||ai(a,0,l,e)||function(e,t){return!(!e||"LabeledStatement"!==e.type||(ei(e,t),0))}(a,e)||function(e,t,n){return!!(t&&"CallExpression"===t.type&&e&&t.callee===e&&t.arguments.length>0)&&(ei(t.arguments[0],n),!0)}(o,a,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type||(ei(e,t),0))}(a,e)||ci(a,r,e,i)||function(e,t,n){return!(!e||"TypeAlias"!==e.type||(ei(e,n),0))}(a,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type||(ei(t,n),0))}(a,l,e))},handleRemainingComment:function(e,t,n,r,i){var o=e.precedingNode,a=e.enclosingNode,l=e.followingNode;return!!(oi(t,o,a,l,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type||(ti(e.value.left,n),0))}(a,o,e)||function(e,t,n,r){return!(")"!==wn.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)||(t&&(("FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&("CallExpression"!==t.body.type||0===t.body.arguments.length)||"ClassMethod"===t.type||"ObjectMethod"===t.type)&&0===t.params.length||"CallExpression"===t.type&&0===t.arguments.length)?(ni(t,n),0):!t||"MethodDefinition"!==t.type||0!==t.value.params.length||(ni(t.value,n),0)))}(t,a,e,n)||li(t,a,o,e,n)||ci(a,r,e,i)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var i=Un.getNextNonSpaceNonCommentCharacterIndex(e,n,r);return"=>"===e.substr(i,2)&&(ni(t,n),!0)}(t,a,e,n)||function(e,t,n,r,i){return!("("!==wn.getNextNonSpaceNonCommentCharacter(e,r,i.locEnd)||!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type||(ti(n,r),0))}(t,a,o,e,n)||function(e,t,n,r,i){return!(!t||"TSMappedType"!==t.type||(r&&"TSTypeParameter"===r.type&&r.name?(ei(r.name,i),0):!n||"TSTypeParameter"!==n.type||!n.constraint||(ti(n.constraint,i),0)))}(0,a,o,l,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label||(ti(e,t),0))}(a,e))},isBlockComment:function(e){return"Block"===e.type||"CommentBlock"===e.type}},di=function(e,t){var n=e.getParentNode();if(!n)return!1;var r=e.getName(),i=e.getNode();if(e.getValue()!==i)return!1;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForAwaitStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSAbstractClassDeclaration"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(i))return!1;if(function(e,t,n,r){var i=t.getValue();return")"===wn.getNextNonSpaceNonCommentCharacter(e,i,r)&&(o(i)||function a(l){var s=t.getParentNode(l);return!(!s||")"===wn.getNextNonSpaceNonCommentCharacter(e,s,r)||!/^[\s(]*$/.test(e.slice(n(s),n(i))))&&(o(s)||a(l+1))}(0));function o(t){return t.comments&&t.comments.some(function(t){return t.leading&&pi.isBlockComment(t)&&t.value.match(/^\*\s*@type\s*{[^}]+}\s*$/)&&"("===wn.getNextNonSpaceNonCommentCharacter(e,t,r)})}}(t.originalText,e,t.locStart,t.locEnd))return!0;if("Identifier"===i.type)return!1;if("ParenthesizedExpression"===n.type)return!1;if(!("ClassDeclaration"!==n.type&&"ClassExpression"!==n.type||n.superClass!==i||"ArrowFunctionExpression"!==i.type&&"AssignmentExpression"!==i.type&&"AwaitExpression"!==i.type&&"BinaryExpression"!==i.type&&"ConditionalExpression"!==i.type&&"LogicalExpression"!==i.type&&"NewExpression"!==i.type&&"ObjectExpression"!==i.type&&"ParenthesizedExpression"!==i.type&&"SequenceExpression"!==i.type&&"TaggedTemplateExpression"!==i.type&&"UnaryExpression"!==i.type&&"UpdateExpression"!==i.type&&"YieldExpression"!==i.type))return!0;if("ArrowFunctionExpression"===n.type&&n.body===i&&"SequenceExpression"!==i.type&&wn.startsWithNoLookaheadToken(i,!1)||"ExpressionStatement"===n.type&&wn.startsWithNoLookaheadToken(i,!0))return!0;switch(i.type){case"CallExpression":for(var o=n,a=0;o&&"MemberExpression"===o.type;)o=e.getParentNode(++a);return"NewExpression"===o.type&&o.callee===e.getParentNode(a-1);case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===r&&n.object===i;case"UpdateExpression":if("UnaryExpression"===n.type)return i.prefix&&("++"===i.operator&&"+"===n.operator||"--"===i.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return i.operator===n.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":case"MemberExpression":return"object"===r&&n.object===i;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":return"callee"===r&&n.callee===i;case"BinaryExpression":return"**"===n.operator&&"left"===r;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type)return!0;if("in"===i.operator&&function(t){for(var n=0;t;){var r=e.getParentNode(n++);if(!r)return!1;if("ForStatement"===r.type&&r.init===t)return!0;t=r}return!1}(i))return!0;case"TSTypeAssertionExpression":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":return"callee"===r&&n.callee===i;case"ClassDeclaration":case"TSAbstractClassDeclaration":return"superClass"===r&&n.superClass===i;case"TSTypeAssertionExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":return"object"===r&&n.object===i;case"AssignmentExpression":return n.left===i&&("TSTypeAssertionExpression"===i.type||"TSAsExpression"===i.type);case"Decorator":return n.expression===i&&("TSTypeAssertionExpression"===i.type||"TSAsExpression"===i.type);case"BinaryExpression":case"LogicalExpression":if(!i.operator&&"TSTypeAssertionExpression"!==i.type)return!0;var l=n.operator,s=wn.getPrecedence(l),u=i.operator,c=wn.getPrecedence(u);return s>c||("||"===l||"??"===l)&&"&&"===u||(s===c&&"right"===r?(Gn.strictEqual(n.right,i),!0):s===c&&!wn.shouldFlatten(l,u)||(s0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertionExpression"===e.type||"TSAsExpression"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&!e.returnType&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||Mo(e.body))}var ho=new Set(["pipe","pipeP","pipeK","compose","composeFlipped","composeP","composeK","flow","flowRight","connect"]);function fo(e,t,n){var r=e.getValue(),i=r.arguments;if(0===i.length)return Hi(["(",pr.printDanglingComments(e,t,!0),")"]);var o=!1,a=!1,l=i.length-1,s=e.map(function(e,r){var i=e.getNode(),s=[n(e)];return r===l||(Mi(t.originalText,i,t)?(0===r&&(a=!0),o=!0,s.push(",",Pi,Pi)):s.push(",",Ri)),Hi(s)},"arguments"),u=oo(t,"all")?",":"";function c(){return Ui(Hi(["(",Gi(Hi([Ri,Hi(s)])),u,Ri,")"]),{shouldBreak:!0})}if(function e(t){switch(t.type){case"OptionalMemberExpression":case"MemberExpression":return e(t.property);case"Identifier":return ho.has(t.name);case"StringLiteral":case"Literal":return ho.has(t.value)}}(r.callee)&&i.length>1)return c();var p=function(e){if(2!==e.length)return!1;var t=e[0],n=e[1];return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||po(n))}(i),d=function(e){var t=bi(e),n=Di(e);return!qo(t)&&!zo(t)&&po(t)&&(!n||n.type!==t.type)}(i);if(p||d){var h,f=(p?s.slice(1).some(eo):s.slice(0,-1).some(eo))||o,g=0;e.each(function(e){p&&0===g&&(h=[Hi([e.call(function(e){return n(e,{expandFirstArg:!0})}),s.length>1?",":"",a?Pi:Ri,a?Pi:""])].concat(s.slice(1))),d&&g===i.length-1&&(h=s.slice(0,-1).concat(e.call(function(e){return n(e,{expandLastArg:!0})}))),g++},"arguments");var v=s.some(eo);return Hi([v?Qi:"",zi([Hi([Ki(Gi(Hi(["(",Zi,Hi(h)])),Hi(["(",Hi(h)])),v?Hi([Ki(u),Zi]):"",")"]),Hi(p?["(",Ui(h[0],{shouldBreak:!0}),Hi(h.slice(1)),")"]:["(",Hi(s.slice(0,-1)),Ui(bi(h),{shouldBreak:!0}),")"]),c()],{shouldBreak:f})])}return Ui(Hi(["(",Gi(Hi([Zi,Hi(s)])),Ki(oo(t,"all")?",":""),Zi,")"]),{shouldBreak:s.some(eo)||o})}function go(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var i=e.getParentNode(),o=r.definite||i&&"VariableDeclarator"===i.type&&i.definite,a="DeclareFunction"===i.type&&i.id===r;return Qo(t.originalText,r.typeAnnotation,t)?Hi([" /*: ",e.call(n,"typeAnnotation")," */"]):Hi([a?"":o?"!: ":": ",e.call(n,"typeAnnotation")])}function vo(e,t,n){var r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function mo(e,t,n,r,i){var o=e.getValue(),a=o.parameters?"parameters":"params",l=i?vo(e,0,t):"",s=[];if(o[a]&&(s=e.map(t,a)),o.rest&&s.push(Hi(["...",e.call(t,"rest")])),0===s.length)return Hi([l,"(",pr.printDanglingComments(e,n,!0,function(e){return")"===vi(n.originalText,e,n.locEnd)}),")"]);var u=bi(o[a]);if(r&&(!o[a]||!o[a].some(function(e){return e.comments})))return Ui(Hi([ro(l),"(",ji(", ",s.map(ro)),")"]));if(na(o))return Hi([l,"(",ji(", ",s),")"]);var c=e.getParentNode();if(ha(c))return Hi([l,"(",ji(", ",s),")"]);if(($o(c,n)||function(e,t){return!("TypeAnnotation"!==c.type&&"TSTypeAnnotation"!==c.type||"FunctionTypeAnnotation"!==c.typeAnnotation.type||c.static||Jo(c,c.typeAnnotation,t))}(0,n)||"TypeAlias"===c.type||"UnionTypeAnnotation"===c.type||"TSUnionType"===c.type||"IntersectionTypeAnnotation"===c.type||"FunctionTypeAnnotation"===c.type&&c.returnType===o)&&1===o[a].length&&null===o[a][0].name&&o[a][0].typeAnnotation&&null===o.typeParameters&&-1!==["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].indexOf(o[a][0].typeAnnotation.type)&&("GenericTypeAnnotation"!==o[a][0].typeAnnotation.type||!o[a][0].typeAnnotation.typeParameters)&&!o.rest)return Hi("always"===n.arrowParens?["(",Hi(s),")"]:s);var p=!(u&&"RestElement"===u.type||o.rest);return Hi([l,"(",Gi(Hi([Zi,ji(Hi([",",Ri]),s)])),Ki(p&&oo(n,"all")?",":""),Zi,")"])}function yo(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function(e){return!(1!==e.params.length||e.rest||e.typeParameters||aa(e)||"Identifier"!==e.params[0].type||e.params[0].typeAnnotation||e.params[0].comments||e.params[0].optional||e.predicate||e.returnType)}(e.getValue())}function bo(e,t,n){var r=e.getValue(),i=[];return r.async&&i.push("async "),i.push("function"),r.generator&&i.push("*"),r.id&&i.push(" ",e.call(t,"id")),i.push(vo(e,0,t),Ui(Hi([mo(e,t,n),wo(e,t,n)])),r.body?" ":"",e.call(t,"body")),Hi(i)}function Co(e,t,n){var r=e.getValue(),i=[];if(r.async&&i.push("async "),r.generator&&i.push("*"),r.method||"get"===r.kind||"set"===r.kind)return co(e,t,n);var o=uo(e,t,n);return r.computed?i.push("[",o,"]"):i.push(o),i.push(vo(e,0,n),Ui(Hi([mo(e,n,t),wo(e,n,t)]))," ",e.call(n,"body")),Hi(i)}function wo(e,t,n){var r=e.getValue(),i=e.call(t,"returnType");if(r.returnType&&Qo(n.originalText,r.returnType,n))return Hi([" /*: ",i," */"]);var o=[i];return r.returnType&&r.returnType.typeAnnotation&&o.unshift(": "),r.predicate&&o.push(r.returnType?" ":": ",e.call(t,"predicate")),Hi(o)}function _o(e,t,n){var r=e.getValue(),i=t.semi?";":"",o=["export "],a=r.default||"ExportDefaultDeclaration"===r.type;if(a&&o.push("default "),o.push(pr.printDanglingComments(e,t,!0)),la(r)&&o.push(Pi),r.declaration)o.push(e.call(n,"declaration")),a&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSAbstractClassDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&o.push(i);else{if(r.specifiers&&r.specifiers.length>0){var l=[],s=[],u=[];e.each(function(t){var r=e.getValue().type;"ExportSpecifier"===r?l.push(n(t)):"ExportDefaultSpecifier"===r?s.push(n(t)):"ExportNamespaceSpecifier"===r&&u.push(Hi(["* as ",n(t)]))},"specifiers");var c=0!==u.length&&0!==l.length,p=0!==s.length&&(0!==u.length||0!==l.length);o.push("type"===r.exportKind?"type ":"",Hi(s),Hi([p?", ":""]),Hi(u),Hi([c?", ":""]),0!==l.length?Ui(Hi(["{",Gi(Hi([t.bracketSpacing?Ri:Zi,ji(Hi([",",Ri]),l)])),Ki(oo(t)?",":""),t.bracketSpacing?Ri:Zi,"}"])):"")}else o.push("{}");r.source&&o.push(" from ",e.call(n,"source")),o.push(i)}return Hi(o)}function Eo(e,t){var n=hi(e);return n?Gn.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),Hi(t)}function Ao(e){if(!e.variance)return null;var t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}}function So(e,t,n){var r=e.getValue();return r.modifiers&&r.modifiers.length?Hi([ji(" ",e.map(n,"modifiers"))," "]):""}function Do(e,t,n,r){var i=e.getValue();if(!i[r])return"";if(!Array.isArray(i[r]))return e.call(n,r);var o=e.getNode(2);return null!=o&&ha(o)||0===i[r].length||1===i[r].length&&(ta(i[r][0])||"GenericTypeAnnotation"===i[r][0].type&&ta(i[r][0].id)||"TSTypeReference"===i[r][0].type&&ta(i[r][0].typeName)||"NullableTypeAnnotation"===i[r][0].type)?Hi(["<",ji(", ",e.map(n,r)),">"]):Ui(Hi(["<",Gi(Hi([Zi,ji(Hi([",",Ri]),e.map(n,r))])),Ki("typescript"!==t.parser&&oo(t,"all")?",":""),Zi,">"]))}function To(e,t,n){var r=e.getValue(),i=[];"TSAbstractClassDeclaration"===r.type&&i.push("abstract "),i.push("class"),r.id&&i.push(" ",e.call(n,"id")),i.push(e.call(n,"typeParameters"));var o=[];if(r.superClass){var a=Hi(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?o.push(Ui(Hi([Ri,e.call(function(e){return pr.printComments(e,function(){return a},t)},"superClass")]))):i.push(Hi([" ",e.call(function(e){return pr.printComments(e,function(){return a},t)},"superClass")]))}else r.extends&&r.extends.length>0&&i.push(" extends ",ji(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&o.push(Ri,"mixins ",Ui(Gi(ji(Hi([",",Ri]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&o.push(Ri,"implements",Ui(Gi(Hi([Ri,ji(Hi([",",Ri]),e.map(n,"implements"))])))),o.length>0&&i.push(Ui(Gi(Hi(o)))),r.body&&r.body.comments&&Wo(t.originalText,r.body,t)?i.push(Pi):i.push(" "),i.push(e.call(n,"body")),i}function xo(e){var t=e.getValue();return t.optional?"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?":""}function Oo(e,t,n){var r=e.call(n,"property"),i=e.getValue(),o=xo(e);return i.computed?!i.property||ua(i.property)?Hi([o,"[",r,"]"]):Ui(Hi([o,"[",Gi(Hi([Zi,r])),Zi,"]"])):Hi([o,".",r])}function Lo(e,t,n){return Hi(["::",e.call(n,"callee")])}function Mo(e){return"JSXElement"===e.type||"JSXFragment"===e.type||"TSJsxFragment"===e.type}var Io=new RegExp("[^ \n\r\t]"),Vo=new RegExp("([ \n\r\t]+)");function ko(e){return sa(e)&&(Io.test(ma(e))||!/\n/.test(ma(e)))}function No(e,t){return e?"":1===t.length?Zi:Pi}function Fo(e,t){return e?Pi:1===t.length?Zi:Pi}function Ho(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type}function jo(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object}function Ro(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||"ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!Mo(e.right))}function Po(e,t,n,r){return Wo(r.originalText,t,r)?Gi(Hi([Pi,n])):Ho(t)&&!Ro(t)||"ConditionalExpression"===t.type&&Ho(t.test)&&!Ro(t.test)||"StringLiteralTypeAnnotation"===t.type||("Identifier"===e.type||ca(e)||"MemberExpression"===e.type)&&(ca(t)||function e(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&("Identifier"===t.object.type||e(t.object))}(t))&&"json"!==r.parser&&"json5"!==r.parser?Ui(Gi(Hi([Ri,n]))):Hi([" ",n])}function Zo(e,t,n,r,i,o){if(!r)return t;var a=Po(e,r,i,o);return Ui(Hi([t,n,a]))}function Bo(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?Hi([" ",t]):Gi(Hi([Ri,t]))}function Uo(e,t,n){var r=ma(e);return wi(r,t,n||"DirectiveLiteral"===e.type)}function Go(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function qo(e){return e.comments&&e.comments.some(function(e){return e.leading})}function zo(e){return e.comments&&e.comments.some(function(e){return e.trailing})}function Wo(e,t,n){return Mo(t)?Si(t):t.comments&&t.comments.some(function(t){return t.leading&&mi(e,n.locEnd(t))})}function Ko(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"CallExpression"===e.type||"OptionalCallExpression"===e.type||"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type&&!e.object||"UpdateExpression"===e.type&&!e.prefix}function Qo(e,t,n){var r=n.locStart(t),i=Ai(e,n.locEnd(t));return"/*"===e.substr(r,2)&&"*/"===e.substr(i,2)}function $o(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Yo(e,t))}function Yo(e,t){return Xo(e)||Jo(e,e.value,t)}function Xo(e){return"get"===e.kind||"set"===e.kind}function Jo(e,t,n){return n.locStart(e)===n.locStart(t)}function ea(e,t){return("flow"===t.parser||"typescript"===t.parser)&&(t.originalText.slice(0,t.locStart(e)).match(/declare[ \t]*$/)||t.originalText.slice(e.range[0],e.range[1]).startsWith("declare "))}function ta(e){if(pa(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter(function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type}).length,n=e.types.filter(function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type}).length;if(e.types.length-1===t&&n>0)return!0}return!1}function na(e){return e&&e.params&&1===e.params.length&&!e.params[0].comments&&("ObjectPattern"===e.params[0].type||"ArrayPattern"===e.params[0].type||"Identifier"===e.params[0].type&&e.params[0].typeAnnotation&&("TypeAnnotation"===e.params[0].typeAnnotation.type||"TSTypeAnnotation"===e.params[0].typeAnnotation.type)&&pa(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&pa(e.params[0].typeAnnotation)||"AssignmentPattern"===e.params[0].type&&("ObjectPattern"===e.params[0].left.type||"ArrayPattern"===e.params[0].left.type)&&("Identifier"===e.params[0].right.type||"ObjectExpression"===e.params[0].right.type&&0===e.params[0].right.properties.length||"ArrayExpression"===e.params[0].right.type&&0===e.params[0].right.elements.length))&&!e.rest}function ra(e){return e.quasis.some(function(e){return e.value.raw.includes("\n")})}function ia(e,t,n){return("TemplateLiteral"===e.type&&ra(e)||"TaggedTemplateExpression"===e.type&&ra(e.quasi))&&!mi(t,n.locStart(e),{backwards:!0})}function oa(e,t,n,r){var i=[],o=[];return e.each(function(e){i.push(Hi(o)),i.push(Ui(r(e))),o=[",",Ri],e.getValue()&&Mi(t.originalText,e.getValue(),t)&&o.push(Zi)},n),Hi(i)}function aa(e){return e.comments&&e.comments.some(function(e){return!e.leading&&!e.trailing})}function la(e){if(!e.comments)return!1;var t=bi(e.comments.filter(function(e){return!e.leading&&!e.trailing}));return t&&!pi.isBlockComment(t)}function sa(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function ua(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function ca(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function pa(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type}var da=/^(skip|[fx]?(it|describe|test))$/;function ha(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(fa(e)&&t&&ha(t))return ga(e.arguments[0].type);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(e))return ga(e.arguments[0].type)||fa(e.arguments[0])}else if(2===e.arguments.length&&("Identifier"===e.callee.type&&da.test(e.callee.name)||("MemberExpression"===(n=e).callee.type||"OptionalMemberExpression"===n.callee.type)&&"Identifier"===n.callee.object.type&&"Identifier"===n.callee.property.type&&da.test(n.callee.object.name)&&("only"===n.callee.property.name||"skip"===n.callee.property.name))&&("TemplateLiteral"===e.arguments[0].type||ca(e.arguments[0])))return ga(e.arguments[1].type)&&e.arguments[1].params.length<=1||fa(e.arguments[1]);var n;return!1}function fa(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function ga(e){return"FunctionExpression"===e||"ArrowFunctionExpression"===e}function va(e,t){if("markdown"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!Mo(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1==r.body.length}function ma(e){return e.extra?e.extra.raw:e.raw}var ya={print:function(e,t,n,r){var i=e.getValue(),o=!1,a=function(e,t,n,r){var i=e.getValue(),o=t.semi?";":"";if(!i)return"";if("string"==typeof i)return i;var a=[];switch(i.type){case"File":return i.program&&i.program.interpreter&&a.push(e.call(function(e){return e.call(n,"interpreter")},"program")),a.push(e.call(n,"program")),Hi(a);case"Program":return i.directives&&e.each(function(e){a.push(n(e),o,Pi),Mi(t.originalText,e.getValue(),t)&&a.push(Pi)},"directives"),a.push(e.call(function(e){return so(e,t,n)},"body")),a.push(pr.printDanglingComments(e,t,!0)),(i.body.length||i.comments)&&a.push(Pi),Hi(a);case"EmptyStatement":return"";case"ExpressionStatement":return Hi(i.directive?[Uo(i.expression,t,!0),o]:[e.call(n,"expression"),va(t,e)?"":o]);case"ParenthesizedExpression":return Hi(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Zo(i.left,e.call(n,"left"),Hi([" ",i.operator]),i.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":var l=e.getParentNode(),s=e.getParentNode(1),u=i!==l.body&&("IfStatement"===l.type||"WhileStatement"===l.type||"DoWhileStatement"===l.type),c=function e(t,n,r,i,o){var a=[],l=t.getValue();if(Ho(l)){gi(l.operator,l.left.operator)?a=a.concat(t.call(function(t){return e(t,n,r,!0,o)},"left")):a.push(t.call(n,"left"));var s=Ro(l),u="|>"===l.operator,c=Hi(s?[l.operator," ",t.call(n,"right")]:[u?Zi:"",l.operator,u?" ":Ri,t.call(n,"right")]),p=t.getParentNode();a.push(" ",o&&"LogicalExpression"===l.type||p.type===l.type||l.left.type===l.type||l.right.type===l.type?c:Ui(c)),i&&l.comments&&(a=pr.printComments(t,function(){return Hi(a)},r))}else a.push(t.call(n));return a}(e,n,t,!1,u);if(u)return Hi(c);if("UnaryExpression"===l.type||("MemberExpression"===l.type||"OptionalMemberExpression"===l.type)&&!l.computed)return Ui(Hi([Gi(Hi([Zi,Hi(c)])),Zi]));var p="ReturnStatement"===l.type||"JSXExpressionContainer"===l.type&&"JSXAttribute"===s.type||i===l.body&&"ArrowFunctionExpression"===l.type||i!==l.body&&"ForStatement"===l.type||"ConditionalExpression"===l.type&&"ReturnStatement"!==s.type,d="AssignmentExpression"===l.type||"VariableDeclarator"===l.type||"ClassProperty"===l.type||"TSAbstractClassProperty"===l.type||"ClassPrivateProperty"===l.type||"ObjectProperty"===l.type||"Property"===l.type,h=Ho(i.left)&&gi(i.operator,i.left.operator);if(p||Ro(i)&&!h||!Ro(i)&&d)return Ui(Hi(c));var f=Hi(c.slice(1));return Ui(Hi([c.length>0?c[0]:"",Gi(f)]));case"AssignmentPattern":return Hi([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertionExpression":var g=!("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type),v=Ui(Hi(["<",Gi(Hi([Zi,e.call(n,"typeAnnotation")])),Zi,">"])),m=Hi([Ki("("),Gi(Hi([Zi,e.call(n,"expression")])),Zi,Ki(")")]);return g?zi([Hi([v,e.call(n,"expression")]),Hi([v,Ui(m,{shouldBreak:!0})]),Hi([v,e.call(n,"expression")])]):Ui(Hi([v,e.call(n,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var y,b=e.getParentNode(),w=0;do{y=e.getParentNode(w),w++}while(y&&("MemberExpression"===y.type||"OptionalMemberExpression"===y.type||"TSNonNullExpression"===y.type));var _=y&&("NewExpression"===y.type||"BindExpression"===y.type||"VariableDeclarator"===y.type&&"Identifier"!==y.id.type||"AssignmentExpression"===y.type&&"Identifier"!==y.left.type)||i.computed||"Identifier"===i.object.type&&"Identifier"===i.property.type&&"MemberExpression"!==b.type&&"OptionalMemberExpression"!==b.type;return Hi([e.call(n,"object"),_?Oo(e,0,n):Ui(Gi(Hi([Zi,Oo(e,0,n)])))]);case"MetaProperty":return Hi([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return i.object&&a.push(e.call(n,"object")),a.push(Ui(Gi(Hi([Zi,Lo(e,0,n)])))),Hi(a);case"Identifier":return Hi([i.name,xo(e),go(e,t,n)]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return Hi(["...",e.call(n,"argument"),go(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return ea(i,t)&&a.push("declare "),a.push(bo(e,n,t)),i.body||a.push(o),Hi(a);case"ArrowFunctionExpression":i.async&&a.push("async "),yo(e,t)?a.push(e.call(n,"params",0)):a.push(Ui(Hi([mo(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),wo(e,n,t)])));var E=pr.printDanglingComments(e,t,!0,function(e){var n=Vi(t.originalText,e,t);return"=>"===t.originalText.substr(n,2)});E&&a.push(" ",E),a.push(" =>");var A=e.call(function(e){return n(e,r)},"body");if(!Wo(t.originalText,i.body,t)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||Mo(i.body)||ia(i.body,t.originalText,t)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return Ui(Hi([Hi(a)," ",A]));if("SequenceExpression"===i.body.type)return Ui(Hi([Hi(a),Ui(Hi([" (",Gi(Hi([Zi,A])),Zi,")"]))]));var S=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(i.comments&&i.comments.length),D=r&&r.expandLastArg&&oo(t,"all"),T="ConditionalExpression"===i.body.type&&!Ti(i.body,!1);return Ui(Hi([Hi(a),Ui(Hi([Gi(Hi([Ri,T?Ki("","("):"",A,T?Ki("",")"):""])),S?Hi([Ki(D?",":""),Zi]):""]))]));case"MethodDefinition":case"TSAbstractMethodDefinition":return i.accessibility&&a.push(i.accessibility+" "),i.static&&a.push("static "),"TSAbstractMethodDefinition"===i.type&&a.push("abstract "),a.push(co(e,t,n)),Hi(a);case"YieldExpression":return a.push("yield"),i.delegate&&a.push("*"),i.argument&&a.push(" ",e.call(n,"argument")),Hi(a);case"AwaitExpression":return Hi(["await ",e.call(n,"argument")]);case"ImportSpecifier":return i.importKind&&a.push(e.call(n,"importKind")," "),a.push(e.call(n,"imported")),i.local&&i.local.name!==i.imported.name&&a.push(" as ",e.call(n,"local")),Hi(a);case"ExportSpecifier":return a.push(e.call(n,"local")),i.exported&&i.exported.name!==i.local.name&&a.push(" as ",e.call(n,"exported")),Hi(a);case"ImportNamespaceSpecifier":return a.push("* as "),i.local?a.push(e.call(n,"local")):i.id&&a.push(e.call(n,"id")),Hi(a);case"ImportDefaultSpecifier":return e.call(n,i.local?"local":"id");case"TSExportAssignment":return Hi(["export = ",e.call(n,"expression"),o]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return _o(e,t,n);case"ExportAllDeclaration":return a.push("export "),"type"===i.exportKind&&a.push("type "),a.push("* from ",e.call(n,"source"),o),Hi(a);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":a.push("import "),i.importKind&&"value"!==i.importKind&&a.push(i.importKind+" ");var x=[],O=[];return i.specifiers&&i.specifiers.length>0?(e.each(function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?x.push(n(e)):O.push(n(e))},"specifiers"),x.length>0&&a.push(ji(", ",x)),x.length>0&&O.length>0&&a.push(", "),1===O.length&&0===x.length&&i.specifiers&&!i.specifiers.some(function(e){return e.comments})?a.push(Hi(["{",t.bracketSpacing?" ":"",Hi(O),t.bracketSpacing?" ":"","}"])):O.length>=1&&a.push(Ui(Hi(["{",Gi(Hi([t.bracketSpacing?Ri:Zi,ji(Hi([",",Ri]),O)])),Ki(oo(t)?",":""),t.bracketSpacing?Ri:Zi,"}"]))),a.push(" from ")):(i.importKind&&"type"===i.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(i),t.locStart(i.source))))&&a.push("{} from "),a.push(e.call(n,"source"),o),Hi(a);case"Import":return"import";case"BlockStatement":var L=e.call(function(e){return so(e,t,n)},"body"),M=i.body.find(function(e){return"EmptyStatement"!==e.type}),I=i.directives&&i.directives.length>0,V=e.getParentNode(),k=e.getParentNode(1);return M||I||aa(i)||"ArrowFunctionExpression"!==V.type&&"FunctionExpression"!==V.type&&"FunctionDeclaration"!==V.type&&"ObjectMethod"!==V.type&&"ClassMethod"!==V.type&&"ForStatement"!==V.type&&"WhileStatement"!==V.type&&"DoWhileStatement"!==V.type&&"DoExpression"!==V.type&&("CatchClause"!==V.type||k.finalizer)?(a.push("{"),I&&e.each(function(e){a.push(Gi(Hi([Pi,n(e),o]))),Mi(t.originalText,e.getValue(),t)&&a.push(Pi)},"directives"),M&&a.push(Gi(Hi([Pi,L]))),a.push(pr.printDanglingComments(e,t)),a.push(Pi,"}"),Hi(a)):"{}";case"ReturnStatement":return a.push("return"),i.argument&&(function(e,t){if(Wo(e.originalText,t,e))return!0;if(Ko(t))for(var n,r=t;n=(i=r).expressions?i.expressions[0]:i.left||i.test||i.callee||i.object||i.tag||i.argument||i.expression;)if(Wo(e.originalText,r=n,e))return!0;var i;return!1}(t,i.argument)?a.push(Hi([" (",Gi(Hi([Pi,e.call(n,"argument")])),Pi,")"])):"LogicalExpression"===i.argument.type||"BinaryExpression"===i.argument.type||"SequenceExpression"===i.argument.type?a.push(Ui(Hi([Ki(" ("," "),Gi(Hi([Zi,e.call(n,"argument")])),Zi,Ki(")")]))):a.push(" ",e.call(n,"argument"))),aa(i)&&a.push(" ",pr.printDanglingComments(e,t,!0)),a.push(o),Hi(a);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var N="NewExpression"===i.type,F=xo(e);return!N&&"Identifier"===i.callee.type&&("require"===i.callee.name||"define"===i.callee.name)||"Import"===i.callee.type||1===i.arguments.length&&ia(i.arguments[0],t.originalText,t)||!N&&ha(i,e.getParentNode())?Hi([N?"new ":"",e.call(n,"callee"),F,vo(e,0,n),Hi(["(",ji(", ",e.map(n,"arguments")),")"])]):!N&&jo(i.callee)?function(e,t,n){var r=[];function i(e){var n=t.originalText,r=Vi(n,e,t);return")"==n.charAt(r)?Ii(n,r+1,t):Mi(n,e,t)}var o=e.getValue();r.unshift({node:o,printed:Hi([xo(e),vo(e,0,n),fo(e,t,n)])}),e.call(function(e){return function e(o){var a=o.getValue();"CallExpression"!==a.type&&"OptionalCallExpression"!==a.type||!jo(a.callee)&&"CallExpression"!==a.callee.type&&"OptionalCallExpression"!==a.callee.type?jo(a)?(r.unshift({node:a,needsParens:di(o,t),printed:pr.printComments(o,function(){return"OptionalMemberExpression"===a.type||"MemberExpression"===a.type?Oo(o,0,n):Lo(o,0,n)},t)}),o.call(function(t){return e(t)},"object")):"TSNonNullExpression"===a.type?(r.unshift({node:a,printed:pr.printComments(o,function(){return"!"},t)}),o.call(function(t){return e(t)},"expression")):r.unshift({node:a,printed:o.call(n)}):(r.unshift({node:a,printed:Hi([pr.printComments(o,function(){return Hi([xo(o),vo(o,0,n),fo(o,t,n)])},t),i(a)?Pi:""])}),o.call(function(t){return e(t)},"callee"))}(e)},"callee");for(var a=[],l=[r[0]],s=1;s0&&a.push(l);var p=a.length>=2&&!a[1][0].node.comments&&function(n){var r=e.getParentNode(),i=r&&"ExpressionStatement"===r.type,o=n[1].length&&n[1][0].node.computed;if(1===n[0].length){var a=n[0][0].node;return"ThisExpression"===a.type||"Identifier"===a.type&&(c(a.name)||i&&a.name.length<=t.tabWidth||o)}var l=bi(n[0]).node;return("MemberExpression"===l.type||"OptionalMemberExpression"===l.type)&&"Identifier"===l.property.type&&(c(l.property.name)||o)}(a);function d(e){for(var t=[],n=0;n=3||h.slice(0,-1).some(eo)?Ui(C):Hi([eo(f)||b?Qi:"",zi([f,C])])}(e,t,n):Hi([N?"new ":"",e.call(n,"callee"),F,vo(e,0,n),fo(e,t,n)]);case"TSInterfaceDeclaration":return ea(i,t)&&a.push("declare "),a.push(i.abstract?"abstract ":"",So(e,0,n),"interface ",e.call(n,"id"),i.typeParameters?e.call(n,"typeParameters"):""," "),i.heritage.length&&a.push(Ui(Gi(Hi([Zi,"extends ",Gi(ji(Hi([",",Ri]),e.map(n,"heritage")))," "])))),a.push(e.call(n,"body")),Hi(a);case"ObjectTypeInternalSlot":return Hi([i.static?"static ":"","[[",e.call(n,"id"),"]]",xo(e),i.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var H,j="ObjectTypeAnnotation"===i.type,R=e.getParentNode(0),P="TSInterfaceBody"===i.type||"ObjectPattern"===i.type&&"FunctionDeclaration"!==R.type&&"FunctionExpression"!==R.type&&"ArrowFunctionExpression"!==R.type&&"AssignmentPattern"!==R.type&&"CatchClause"!==R.type&&i.properties.some(function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)})||"ObjectPattern"!==i.type&&yi(t.originalText,t.locStart(i),t.locEnd(i)),Z=j&&R&&("InterfaceDeclaration"===R.type||"DeclareInterface"===R.type||"DeclareClass"===R.type)&&"body"===e.getName()?";":"TSInterfaceBody"===i.type||"TSTypeLiteral"===i.type?Ki(o,";"):",",B=[],U=i.exact?"{|":"{",G=i.exact?"|}":"}";H="TSTypeLiteral"===i.type?"members":"TSInterfaceBody"===i.type?"body":"properties",j&&B.push("indexers","callProperties","internalSlots"),B.push(H);var q=[];B.forEach(function(r){e.each(function(e){var r=e.getValue();q.push({node:r,printed:n(e),loc:t.locStart(r)})},r)});var z,W=[],K=q.sort(function(e,t){return e.loc-t.loc}).map(function(e){var n=Hi(W.concat(Ui(e.printed)));return W=[Z,Ri],"TSPropertySignature"===e.node.type&&Si(e.node)&&W.shift(),Mi(t.originalText,e.node,t)&&W.push(Pi),n}),Q=bi(i[H]),$=!(Q&&("RestProperty"===Q.type||"RestElement"===Q.type||Si(Q)));if(0!==K.length||i.typeAnnotation)z=Hi([U,Gi(Hi([t.bracketSpacing?Ri:Zi,Hi(K)])),Ki($&&(","!==Z||oo(t))?Z:""),Hi([t.bracketSpacing?Ri:Zi,G]),xo(e),go(e,t,n)]);else{if(!aa(i))return Hi([U,G]);z=Ui(Hi([U,pr.printDanglingComments(e,t),Zi,G,xo(e)]))}var Y=e.getParentNode(2);return"ObjectPattern"===i.type&&R&&na(R)&&R.params[0]===i||ta(i)&&Y&&na(Y)&&Y.params[0].typeAnnotation&&Y.params[0].typeAnnotation.typeAnnotation===i?z:Ui(z,{shouldBreak:P});case"ObjectProperty":case"Property":return i.method||"get"===i.kind||"set"===i.kind?co(e,t,n):(i.shorthand?a.push(e.call(n,"value")):(X=i.computed?Hi(["[",e.call(n,"key"),"]"]):uo(e,t,n),a.push(Zo(i.key,X,":",i.value,e.call(n,"value"),t))),Hi(a));var X;case"ClassMethod":return i.static&&a.push("static "),a=a.concat(Co(e,t,n)),Hi(a);case"ObjectMethod":return Co(e,t,n);case"Decorator":return Hi(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===i.elements.length)aa(i)?a.push(Ui(Hi(["[",pr.printDanglingComments(e,t),Zi,"]"]))):a.push("[]");else{var J=bi(i.elements),ee=!(J&&"RestElement"===J.type),te=ee&&null===J;a.push(Ui(Hi(["[",Gi(Hi([Zi,oa(e,t,"elements",n)])),te?",":"",Ki(ee&&!te&&oo(t)?",":""),pr.printDanglingComments(e,t,!0),Zi,"]"])))}return a.push(xo(e),go(e,t,n)),Hi(a);case"SequenceExpression":var ne=e.getParentNode(0);if("ExpressionStatement"===ne.type||"ForStatement"===ne.type){var re=[];return e.each(function(e){0===e.getName()?re.push(n(e)):re.push(",",Gi(Hi([Ri,n(e)])))},"expressions"),Ui(Hi(re))}return Ui(Hi([ji(Hi([",",Ri]),e.map(n,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return Go(i);case"NumericLiteral":return _i(i.extra.raw);case"BigIntLiteral":return Hi([_i(i.extra.rawValue),"n"]);case"BooleanLiteral":case"StringLiteral":case"Literal":if(i.regex)return Go(i.regex);if("number"==typeof i.value)return _i(i.raw);if("string"!=typeof i.value)return""+i.value;var ie=e.getParentNode(1);return Uo(i,t,"typescript"===t.parser&&"string"==typeof i.value&&ie&&("Program"===ie.type||"BlockStatement"===ie.type));case"Directive":return e.call(n,"value");case"DirectiveLiteral":return Uo(i,t);case"UnaryExpression":return a.push(i.operator),/[a-z]$/.test(i.operator)&&a.push(" "),a.push(e.call(n,"argument")),Hi(a);case"UpdateExpression":return a.push(e.call(n,"argument"),i.operator),i.prefix&&a.reverse(),Hi(a);case"ConditionalExpression":return ao(e,t,n,{beforeParts:function(){return[e.call(n,"test")]},afterParts:function(e){return[e?Zi:""]}});case"VariableDeclaration":var oe,ae=e.map(function(e){return n(e)},"declarations"),le=e.getParentNode(),se="ForStatement"===le.type||"ForInStatement"===le.type||"ForOfStatement"===le.type||"ForAwaitStatement"===le.type,ue=i.declarations.some(function(e){return e.init});return 1===ae.length?oe=ae[0]:ae.length>1&&(oe=Gi(ae[0])),a=[ea(i,t)?"declare ":"",i.kind,oe?Hi([" ",oe]):"",Gi(Hi(ae.slice(1).map(function(e){return Hi([",",ue&&!se?Pi:Ri,e])})))],se&&le.body!==i||a.push(o),Ui(Hi(a));case"VariableDeclarator":return Zo(i.id,Hi([e.call(n,"id"),e.call(n,"typeParameters")])," =",i.init,i.init&&e.call(n,"init"),t);case"WithStatement":return Ui(Hi(["with (",e.call(n,"object"),")",Bo(i.body,e.call(n,"body"))]));case"IfStatement":var ce=Bo(i.consequent,e.call(n,"consequent")),pe=Ui(Hi(["if (",Ui(Hi([Gi(Hi([Zi,e.call(n,"test")])),Zi])),")",ce]));if(a.push(pe),i.alternate){var de=zo(i.consequent)&&i.consequent.comments.some(function(e){return e.trailing&&!pi.isBlockComment(e)})||la(i);a.push("BlockStatement"!==i.consequent.type||de?Pi:" "),aa(i)&&a.push(pr.printDanglingComments(e,t,!0),de?Pi:" "),a.push("else",Ui(Bo(i.alternate,e.call(n,"alternate"),"IfStatement"===i.alternate.type)))}return Hi(a);case"ForStatement":var he=Bo(i.body,e.call(n,"body")),fe=pr.printDanglingComments(e,t,!0),ge=fe?Hi([fe,Zi]):"";return Hi(i.init||i.test||i.update?[ge,Ui(Hi(["for (",Ui(Hi([Gi(Hi([Zi,e.call(n,"init"),";",Ri,e.call(n,"test"),";",Ri,e.call(n,"update")])),Zi])),")",he]))]:[ge,Ui(Hi(["for (;;)",he]))]);case"WhileStatement":return Ui(Hi(["while (",Ui(Hi([Gi(Hi([Zi,e.call(n,"test")])),Zi])),")",Bo(i.body,e.call(n,"body"))]));case"ForInStatement":return Ui(Hi([i.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Bo(i.body,e.call(n,"body"))]));case"ForOfStatement":case"ForAwaitStatement":return Ui(Hi(["for","ForAwaitStatement"===i.type||i.await?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Bo(i.body,e.call(n,"body"))]));case"DoWhileStatement":var ve=Bo(i.body,e.call(n,"body")),me=Ui(Hi(["do",ve]));return(a=[me]).push("BlockStatement"===i.body.type?" ":Pi),a.push("while ("),a.push(Ui(Hi([Gi(Hi([Zi,e.call(n,"test")])),Zi])),")",o),Hi(a);case"DoExpression":return Hi(["do ",e.call(n,"body")]);case"BreakStatement":return a.push("break"),i.label&&a.push(" ",e.call(n,"label")),a.push(o),Hi(a);case"ContinueStatement":return a.push("continue"),i.label&&a.push(" ",e.call(n,"label")),a.push(o),Hi(a);case"LabeledStatement":return Hi("EmptyStatement"===i.body.type?[e.call(n,"label"),":;"]:[e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return Hi(["try ",e.call(n,"block"),i.handler?Hi([" ",e.call(n,"handler")]):"",i.finalizer?Hi([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":return Hi(["catch ",i.param?Hi(["(",e.call(n,"param"),") "]):"",e.call(n,"body")]);case"ThrowStatement":return Hi(["throw ",e.call(n,"argument"),o]);case"SwitchStatement":return Hi([Ui(Hi(["switch (",Gi(Hi([Zi,e.call(n,"discriminant")])),Zi,")"]))," {",i.cases.length>0?Gi(Hi([Pi,ji(Pi,e.map(function(e){var r=e.getValue();return Hi([e.call(n),i.cases.indexOf(r)!==i.cases.length-1&&Mi(t.originalText,r,t)?Pi:""])},"cases"))])):"",Pi,"}"]);case"SwitchCase":i.test?a.push("case ",e.call(n,"test"),":"):a.push("default:");var ye=i.consequent.filter(function(e){return"EmptyStatement"!==e.type});if(ye.length>0){var be=e.call(function(e){return so(e,t,n)},"consequent");a.push(1===ye.length&&"BlockStatement"===ye[0].type?Hi([" ",be]):Gi(Hi([Pi,be])))}return Hi(a);case"DebuggerStatement":return Hi(["debugger",o]);case"JSXAttribute":var Ce;if(a.push(e.call(n,"name")),i.value)Ce=ca(i.value)?'"'+ma(i.value).slice(1,-1).replace(/"/g,""")+'"':e.call(n,"value"),a.push("=",Ce);return Hi(a);case"JSXIdentifier":return i.name?""+i.name:"this";case"JSXNamespacedName":return ji(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return ji(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return ji(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Hi(["{",e.call(function(e){var r=Hi(["...",n(e)]),i=e.getValue();return i.comments&&i.comments.length?Hi([Gi(Hi([Zi,pr.printComments(e,function(){return r},t)])),Zi]):r},"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var we=e.getParentNode(0),_e=!("JSXAttribute"===we.type&&i.expression.comments&&i.expression.comments.length>0)&&("ArrayExpression"===i.expression.type||"ObjectExpression"===i.expression.type||"ArrowFunctionExpression"===i.expression.type||"CallExpression"===i.expression.type||"OptionalCallExpression"===i.expression.type||"FunctionExpression"===i.expression.type||"JSXEmptyExpression"===i.expression.type||"TemplateLiteral"===i.expression.type||"TaggedTemplateExpression"===i.expression.type||"DoExpression"===i.expression.type||Mo(we)&&("ConditionalExpression"===i.expression.type||Ho(i.expression)));return Ui(Hi(_e?["{",e.call(n,"expression"),$i,"}"]:["{",Gi(Hi([Zi,e.call(n,"expression")])),Zi,$i,"}"]));case"JSXFragment":case"TSJsxFragment":case"JSXElement":var Ee=pr.printComments(e,function(){return function(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===r.children.length)return!0;if(r.children.length>1)return!1;var t=r.children[0];return sa(t)&&!ko(t)}())return r.openingElement.selfClosing=!0,e.call(n,"openingElement");var i=e.call(n,"JSXElement"===r.type?"openingElement":"openingFragment"),o=e.call(n,"JSXElement"===r.type?"closingElement":"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return Hi([i,Hi(e.map(n,"children")),o]);r.children=r.children.map(function(e){return"JSXExpressionContainer"===(t=e).type&&sa(t.expression)&&" "===t.expression.value&&!t.expression.comments?{type:"JSXText",value:" ",raw:" "}:e;var t});for(var a=r.children.filter(Mo).length>0,l=r.children.filter(function(e){return"JSXExpressionContainer"===e.type}).length>1,s="JSXElement"===r.type&&r.openingElement.attributes.length>1,u=eo(i)||a||s||l,c=t.singleQuote?"{' '}":'{" "}',p=Ki(Hi([c,Zi])," "),d=function(e,t,n,r,i){var o=e.getValue(),a=[];return e.map(function(e,t){var l=e.getValue();if(sa(l)){var s=ma(l);if(ko(l)){var u,c=s.split(Vo);if(""===c[0]&&(a.push(""),c.shift(),/\n/.test(c[0])?a.push(Fo(i,c[1])):a.push(r),c.shift()),""===bi(c)&&(c.pop(),u=c.pop()),0===c.length)return;c.forEach(function(e,t){a.push(t%2==1?Ri:e)}),void 0!==u?/\n/.test(u)?a.push(Fo(i,bi(a))):a.push(r):a.push(No(i,bi(a)))}else/\n/.test(s)?s.match(/\n/g).length>1&&(a.push(""),a.push(Pi)):(a.push(""),a.push(r))}else{var p=n(e);a.push(p);var d=o.children[t+1];if(d&&ko(d)){var h=ma(d).trim().split(Vo)[0];a.push(No(i,h))}else a.push(Pi)}},"children"),a}(e,0,n,p,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),h=r.children.filter(function(e){return ko(e)}).length>0,f=d.length-2;f>=0;f--){var g=d[f]===p&&""===d[f+1]&&(d[f+2]===Zi||d[f+2]===Pi);d[f]===Pi&&""===d[f+1]&&d[f+2]===Pi&&h||""===d[f]&&""===d[f+1]||(d[f]===Zi||d[f]===Pi)&&""===d[f+1]&&d[f+2]===p||d[f]===p&&""===d[f+1]&&d[f+2]===p?d.splice(f,2):g&&d.splice(f+1,2)}for(;d.length&&(to(bi(d))||no(bi(d)));)d.pop();for(;d.length&&(to(d[0])||no(d[0]))&&(to(d[1])||no(d[1]));)d.shift(),d.shift();var v=[];d.forEach(function(e,t){if(e===p){if(1===t&&""===d[t-1])return 2===d.length?void v.push(c):void v.push(Hi([c,Pi]));if(t===d.length-1)return void v.push(c);if(""===d[t-1]&&d[t-2]===Pi)return void v.push(c)}v.push(e),eo(e)&&(u=!0)});var m=h?Wi(v):Ui(Hi(v),{shouldBreak:!0}),y=Ui(Hi([i,Gi(Hi([Pi,m])),Pi,o]));return u?y:zi([Ui(Hi([i,Hi(d),o])),y])}(e,t,n)},t);return function(e,t){var n=e.getParentNode();if(!n)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,TSJsxFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0}[n.type])return t;var r=Oi(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"]);return Ui(Hi([Ki("("),Gi(Hi([Zi,t])),Zi,Ki(")")]),{shouldBreak:r})}(e,Ee);case"JSXOpeningElement":var Ae=e.getValue(),Se=Ae.name&&Ae.name.comments&&Ae.name.comments.length>0;if(Ae.selfClosing&&!Ae.attributes.length&&!Se)return Hi(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(Ae.attributes&&1===Ae.attributes.length&&Ae.attributes[0].value&&ca(Ae.attributes[0].value)&&!Ae.attributes[0].value.value.includes("\n")&&!Se&&(!Ae.attributes[0].comments||!Ae.attributes[0].comments.length))return Ui(Hi(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",Hi(e.map(n,"attributes")),Ae.selfClosing?" />":">"]));var De=Ae.attributes.length&&zo(bi(Ae.attributes)),Te=t.jsxBracketSameLine&&(!Se||Ae.attributes.length)&&!De,xe=Ae.attributes&&Ae.attributes.some(function(e){return e.value&&ca(e.value)&&e.value.value.includes("\n")});return Ui(Hi(["<",e.call(n,"name"),e.call(n,"typeParameters"),Hi([Gi(Hi(e.map(function(e){return Hi([Ri,n(e)])},"attributes"))),Ae.selfClosing?Ri:Te?">":Zi]),Ae.selfClosing?"/>":Te?"":">"]),{shouldBreak:xe});case"JSXClosingElement":return Hi([""]);case"JSXOpeningFragment":case"JSXClosingFragment":case"TSJsxOpeningFragment":case"TSJsxClosingFragment":var Oe=i.comments&&i.comments.length,Le=Oe&&!i.comments.every(pi.isBlockComment),Me="JSXOpeningFragment"===i.type||"TSJsxOpeningFragment"===i.type;return Hi([Me?"<":""]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var Ie=i.comments&&!i.comments.every(pi.isBlockComment);return Hi([pr.printDanglingComments(e,t,!Ie),Ie?Pi:""]);case"ClassBody":return i.comments||0!==i.body.length?Hi(["{",i.body.length>0?Gi(Hi([Pi,e.call(function(e){return so(e,t,n)},"body")])):pr.printDanglingComments(e,t),Pi,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":i.accessibility&&a.push(i.accessibility+" "),i.static&&a.push("static "),"TSAbstractClassProperty"===i.type&&a.push("abstract "),i.readonly&&a.push("readonly ");var Ve=Ao(i);return Ve&&a.push(Ve),i.computed?a.push("[",e.call(n,"key"),"]"):a.push(uo(e,t,n)),a.push(xo(e)),a.push(go(e,t,n)),i.value&&a.push(" =",Po(i.key,i.value,e.call(n,"value"),t)),a.push(o),Ui(Hi(a));case"ClassDeclaration":case"ClassExpression":case"TSAbstractClassDeclaration":return ea(i,t)&&a.push("declare "),a.push(Hi(To(e,t,n))),Hi(a);case"TSInterfaceHeritage":return a.push(e.call(n,"id")),i.typeParameters&&a.push(e.call(n,"typeParameters")),Hi(a);case"TemplateElement":return ji(Bi,i.value.raw.split(/\r?\n/g));case"TemplateLiteral":var ke=e.map(n,"expressions"),Ne=e.getParentNode(),Fe=/^[xf]?(describe|it|test)$/;if("TaggedTemplateExpression"===Ne.type&&Ne.quasi===i&&"MemberExpression"===Ne.tag.type&&"Identifier"===Ne.tag.property.type&&"each"===Ne.tag.property.name&&("Identifier"===Ne.tag.object.type&&Fe.test(Ne.tag.object.name)||"MemberExpression"===Ne.tag.object.type&&"Identifier"===Ne.tag.object.property.type&&("only"===Ne.tag.object.property.name||"skip"===Ne.tag.object.property.name)&&"Identifier"===Ne.tag.object.object.type&&Fe.test(Ne.tag.object.object.name))){var He=i.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(He.length>1||He.some(function(e){return 0!==e.length})){for(var je=ke.map(function(e){return"${"+io(e,Object.assign({},t,{printWidth:1/0})).formatted+"}"}),Re=[{hasLineBreak:!1,cells:[]}],Pe=1;Pe ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),Ye&&a.push(")"),Ui(Hi(a));case"TSRestType":return Hi(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return Hi([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return Hi([e.call(n,"name"),xo(e),i.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return Hi([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===i.type||ea(i,t))&&a.push("declare "),a.push("interface"),"DeclareInterface"!==i.type&&"InterfaceDeclaration"!==i.type||a.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),i.extends.length>0&&a.push(Ui(Gi(Hi([Ri,"extends ",ji(", ",e.map(n,"extends"))])))),a.push(" ",e.call(n,"body")),Ui(Hi(a));case"ClassImplements":case"InterfaceExtends":return Hi([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var Xe=e.map(n,"types"),Je=[],et=!1,tt=0;tt1&&(et=!0),Je.push(" & ",tt>1?Gi(Xe[tt]):Xe[tt])):Je.push(Gi(Hi([" &",Ri,Xe[tt]])));return Ui(Hi(Je));case"TSUnionType":case"UnionTypeAnnotation":var nt=e.getParentNode(),rt=e.getParentNode(1),it=!("TypeParameterInstantiation"===nt.type||"TSTypeParameterInstantiation"===nt.type||"GenericTypeAnnotation"===nt.type||"TSTypeReference"===nt.type||"FunctionTypeParam"===nt.type&&!nt.name||"TSTypeAssertionExpression"===rt.type||("TypeAlias"===nt.type||"VariableDeclarator"===nt.type)&&Wo(t.originalText,i,t)),ot=ta(i),at=e.map(function(e){var r=e.call(n);return ot||(r=qi(2,r)),pr.printComments(e,function(){return r},t)},"types");if(ot)return ji(" | ",at);var lt,st=Hi([Ki(Hi([it?Ri:"","| "])),ji(Hi([Ri,"| "]),at)]);if("TSUnionType"===i.type){var ut=e.getParentNode(2),ct=e.getParentNode(3);lt=ut&&"TSParenthesizedType"===ut.type&&ct&&("TSUnionType"===ct.type||"TSIntersectionType"===ct.type)}else lt=di(e,t);return Ui(lt?Hi([Gi(st),Zi]):it?Gi(st):st);case"NullableTypeAnnotation":return Hi(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return i.static&&a.push("static "),a.push(e.call(n,"value")),Hi(a);case"ObjectTypeIndexer":var pt=Ao(i);return Hi([pt||"","[",e.call(n,"id"),i.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")]);case"ObjectTypeProperty":var dt=Ao(i),ht="";return i.proto?ht="proto ":i.static&&(ht="static "),Hi([ht,Xo(i)?i.kind+" ":"",dt||"",uo(e,t,n),xo(e),Yo(i,t)?"":": ",e.call(n,"value")]);case"QualifiedTypeIdentifier":return Hi([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return Uo(i,t);case"NumberLiteralTypeAnnotation":return Gn.strictEqual(C(i.value),"number"),_i(null!=i.extra?i.extra.raw:i.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===i.type||ea(i,t))&&a.push("declare ");var ft=Po(i.id,i.right,e.call(n,"right"),t);return a.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",ft,o),Ui(Hi(a));case"TypeCastExpression":return Hi(["(",e.call(n,"expression"),": ",e.call(n,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Do(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":if("TSMappedType"===e.getParentNode().type)return a.push("[",e.call(n,"name")),i.constraint&&a.push(" in ",e.call(n,"constraint")),a.push("]"),Hi(a);var gt=Ao(i);return gt&&a.push(gt),a.push(e.call(n,"name")),i.bound&&(a.push(": "),a.push(e.call(n,"bound"))),i.constraint&&a.push(" extends ",e.call(n,"constraint")),i.default&&a.push(" = ",e.call(n,"default")),Hi(a);case"TypeofTypeAnnotation":return Hi(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return Hi(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return Hi([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return Hi([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return i.export&&a.push("export "),i.accessibility&&a.push(i.accessibility+" "),i.static&&a.push("static "),i.readonly&&a.push("readonly "),i.computed&&a.push("["),a.push(uo(e,t,n)),i.computed&&a.push("]"),a.push(xo(e)),i.typeAnnotation&&(a.push(": "),a.push(e.call(n,"typeAnnotation"))),i.initializer&&a.push(" = ",e.call(n,"initializer")),Hi(a);case"TSParameterProperty":return i.accessibility&&a.push(i.accessibility+" "),i.export&&a.push("export "),i.static&&a.push("static "),i.readonly&&a.push("readonly "),a.push(e.call(n,"parameter")),Hi(a);case"TSTypeReference":return Hi([e.call(n,"typeName"),Do(e,t,n,"typeParameters")]);case"TSTypeQuery":return Hi(["typeof ",e.call(n,"exprName")]);case"TSParenthesizedType":return e.call(n,"typeAnnotation");case"TSIndexSignature":var vt=e.getParentNode();return Hi([i.export?"export ":"",i.accessibility?Hi([i.accessibility," "]):"",i.static?"static ":"",i.readonly?"readonly ":"","[",e.call(n,"index"),"]: ",e.call(n,"typeAnnotation"),"ClassBody"===vt.type?o:""]);case"TSTypePredicate":return Hi([e.call(n,"parameterName")," is ",e.call(n,"typeAnnotation")]);case"TSNonNullExpression":return Hi([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return Hi([i.isTypeOf?"typeof ":"","import(",e.call(n,"parameter"),")",i.qualifier?Hi([".",e.call(n,"qualifier")]):"",Do(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return Hi([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignature":case"TSConstructorType":case"TSCallSignature":return"TSCallSignature"!==i.type&&a.push("new "),a.push(Ui(mo(e,n,t,!1,!0))),i.typeAnnotation&&a.push("TSConstructorType"===i.type?" => ":": ",e.call(n,"typeAnnotation")),Hi(a);case"TSTypeOperator":return Hi([i.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":return Ui(Hi(["{",Gi(Hi([t.bracketSpacing?Ri:Zi,i.readonlyToken?Hi([lo(i.readonlyToken,"readonly")," "]):"",So(e,0,n),e.call(n,"typeParameter"),i.questionToken?lo(i.questionToken,"?"):"",": ",e.call(n,"typeAnnotation")])),pr.printDanglingComments(e,t,!0),t.bracketSpacing?Ri:Zi,"}"]));case"TSMethodSignature":return a.push(i.accessibility?Hi([i.accessibility," "]):"",i.export?"export ":"",i.static?"static ":"",i.readonly?"readonly ":"",i.computed?"[":"",e.call(n,"key"),i.computed?"]":"",xo(e),mo(e,n,t,!1,!0)),i.typeAnnotation&&a.push(": ",e.call(n,"typeAnnotation")),Ui(Hi(a));case"TSNamespaceExportDeclaration":return a.push("export as namespace ",e.call(n,"name")),t.semi&&a.push(";"),Ui(Hi(a));case"TSEnumDeclaration":return ea(i,t)&&a.push("declare "),i.modifiers&&a.push(So(e,0,n)),i.const&&a.push("const "),a.push("enum ",e.call(n,"id")," "),a.push(Ui(Hi(0===i.members.length?["{",pr.printDanglingComments(e,t),Zi,"}"]:["{",Gi(Hi([Pi,oa(e,t,"members",n),oo(t,"es5")?",":""])),pr.printDanglingComments(e,t,!0),Pi,"}"]))),Hi(a);case"TSEnumMember":return a.push(e.call(n,"id")),i.initializer&&a.push(" = ",e.call(n,"initializer")),Hi(a);case"TSImportEqualsDeclaration":return a.push(So(e,0,n),"import ",e.call(n,"name")," = ",e.call(n,"moduleReference")),t.semi&&a.push(";"),Ui(Hi(a));case"TSExternalModuleReference":return Hi(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":var mt=e.getParentNode(),yt=sa(i.id),bt=i.body&&"TSModuleDeclaration"===i.body.type;return"TSModuleDeclaration"===mt.type?a.push("."):(!0===i.declare&&a.push("declare "),a.push(So(e,0,n)),"Identifier"===i.id.type&&"global"===i.id.name&&!/namespace|module/.test(t.originalText.slice(t.locStart(i),t.locStart(i.id)))||a.push(yt?"module ":"namespace ")),a.push(e.call(n,"id")),bt?a.push(e.call(n,"body")):i.body?a.push(" {",Gi(Hi([Ri,e.call(function(e){return pr.printDanglingComments(e,t,!0)},"body"),Ui(e.call(n,"body"))])),Ri,"}"):a.push(o),Hi(a);case"TSModuleBlock":return e.call(function(e){return so(e,t,n)},"body");case"PrivateName":return Hi(["#",e.call(n,"id")]);case"TSConditionalType":return ao(e,t,n,{beforeParts:function(){return[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")]},shouldCheckJsx:!1,operatorName:"TSConditionalType",consequentNode:"trueType",alternateNode:"falseType",testNode:"checkType",breakNested:!1});case"TSInferType":return Hi(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return a.push("#!",i.value,Pi),Mi(t.originalText,i,t)&&a.push(Pi),Hi(a);default:throw new Error("unknown type: "+JSON.stringify(i.type))}}(e,t,n,r);if(!i||no(a))return a;var l=[];if(i.decorators&&i.decorators.length>0&&!hi(e)){var s=1===i.decorators.length&&Li(e,"params")?Ri:Pi;e.each(function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,l.push(n(e),s)},"decorators")}else fi(i)&&i.declaration&&i.declaration.decorators?e.each(function(e){var t=e.getValue();l.push("Decorator"===t.type?"":"@",n(e),Pi)},"declaration","decorators"):o=di(e,t);var u=[];return o&&u.unshift("("),u.push(a),o&&u.push(")"),l.length>0?Ui(Hi(l.concat(u))):Hi(u)},embed:function(e,t,n){var r,i=e.getValue(),o=e.getParentNode(),a=e.getParentNode(1);switch(i.type){case"TemplateLiteral":if([function(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some(function(e){return"jsx"===e.name.name})},function(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n=t.tag;switch(n.type){case"MemberExpression":return Qr(n.object)||$r(n);case"CallExpression":return Qr(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(Qr(n.callee.object.object)||$r(n.callee.object))||"CallExpression"===n.callee.object.type&&Qr(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}},function(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name},function(e){var t=e.getParentNode(),n=e.getParentNode(1);return!!(t&&"ArrayExpression"===t.type&&"Property"===n.type&&function(e,t){var n=e.getParentNode(4);return!!(n&&"Decorator"===n.type&&n.expression&&"CallExpression"===n.expression.type&&n.expression.callee&&"Component"===n.expression.callee.name)}(e)&&n.key&&"styles"===n.key.name)}].some(function(t){return t(e)})){var l=i.quasis.map(function(e){return e.value.raw}),s=0,u=l.reduce(function(e,t,n){return 0==n?t:e+"@prettier-placeholder-"+s+++"-id"+t},"");return function(e,t,n){var r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";var i=function(e,t){if(!t||!t.length)return e;var n=t.slice(),r=0,i=qr(e,function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,i=t.indexOf("@"),o=i+1;if(i>-1&&"string"==typeof t[o]&&t[o].startsWith("prettier-placeholder")){var a=t[i],l=t[o],s=t.slice(o+1);t=t.slice(0,i).concat([a+l]).concat(s)}var u=t.findIndex(function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")});if(u>-1){var c=t[u],p=t.slice(u+1),d=c.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),h=d[2],f=n[d[1]];r++,t=t.slice(0,u).concat(["${",f,"}"+h]).concat(p)}return Object.assign({},e,{parts:t})});return n.length===r?i:null}(e,r.expressions?t.map(n,"expressions"):[]);if(!i)throw new Error("Couldn't insert all the expressions");return Br(["`",Hr(Br([Rr,zr(i)])),Pr,"`"])}(n(u,{parser:"css"}),e,t)}if(function(e){var t=e.getValue(),n=e.getParentNode();return t.leadingComments&&t.leadingComments.some(function(e){return"CommentBlock"===e.type&&" GraphQL "===e.value})||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){var c=i.expressions?e.map(t,"expressions"):[],p=i.quasis.length;if(1===p&&""===i.quasis[0].value.raw.trim())return"``";for(var d=[],h=0;h2&&""===m[0].trim()&&""===m[1].trim(),w=y>2&&""===m[y-1].trim()&&""===m[y-2].trim(),_=m.every(function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)});if(!g&&/#[^\r\n]*$/.test(m[y-1]))return null;var E=null;(E=_?Kr(m):zr(n(v,{parser:"graphql"})))?(E=Wr(E),!f&&C&&d.push(""),d.push(E),!g&&w&&d.push("")):f||g||!C||d.push(""),b&&d.push(Br(["${",b,"}"]))}return Br(["`",Hr(Br([Rr,jr(Rr,d)])),Rr,"`"])}break;case"TemplateElement":if(a&&"TaggedTemplateExpression"===a.type&&1===o.quasis.length&&"Identifier"===a.tag.type&&("md"===a.tag.name||"markdown"===a.tag.name)){var A=o.quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,function(e,t){return"\\".repeat(t.length/2)+"`"}),S=null===(r=A.match(/^([^\S\n]*)\S/m))?"":r[1];return Br([""!==S?Hr(Br([Pr,D(A.replace(new RegExp("^".concat(S),"gm"),""))])):Br([Zr,Ur(D(A))]),Pr])}}function D(e){var t=n(e,{parser:"markdown",__inJsTemplate:!0});return zr(Wr(t))}},insertPragma:Ni,massageAstNode:function(e,t,n){if(["range","raw","comments","leadingComments","trailingComments","extra","start","end","flags"].forEach(function(e){delete t[e]}),"BigIntLiteral"===e.type&&(t.value=t.value.toLowerCase()),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&" "===e.expression.value)return null;if("TSParameterProperty"===e.type&&null===e.accessibility&&!e.readonly)return{type:"Identifier",name:e.parameter.name,typeAnnotation:t.parameter.typeAnnotation,decorators:t.decorators};if("TSNamespaceExportDeclaration"===e.type&&e.specifiers&&0===e.specifiers.length&&delete t.specifiers,"TSParenthesizedType"===e.type&&"TSTypeAnnotation"===e.typeAnnotation.type)return t.typeAnnotation.typeAnnotation;"JSXOpeningElement"===e.type&&delete t.selfClosing,"JSXElement"===e.type&&delete t.closingElement,"Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!==C(e.key)||!e.key||"Literal"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"OptionalMemberExpression"===e.type&&!1===e.optional&&(t.type="MemberExpression",delete t.optional),"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some(function(e){return"jsx"===e.name.name})&&t.children.filter(function(e){return"JSXExpressionContainer"===e.type&&"TemplateLiteral"===e.expression.type}).map(function(e){return e.expression}).reduce(function(e,t){return e.concat(t.quasis)},[]).forEach(function(e){return delete e.value}),"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&t.value.expression.quasis.forEach(function(e){return delete e.value});var r=e.expression||e.callee;"Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length&&r.arguments[0].properties.some(function(e){return"styles"===e.key.name&&"ArrayExpression"===e.value.type})&&t.expression.arguments[0].properties.forEach(function(e){"ArrayExpression"===e.value.type&&e.value.elements[0].quasis.forEach(function(e){return delete e.value})}),"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name)&&"CallExpression"!==e.tag.type||t.quasi.quasis.forEach(function(e){return delete e.value}),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some(function(e){return"CommentBlock"===e.type&&" GraphQL "===e.value})||"CallExpression"===n.type&&"graphql"===n.callee.name)&&t.quasis.forEach(function(e){return delete e.value})},hasPrettierIgnore:function(e){return Ei(e)||function(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&Mo(t)&&Mo(n)))return!1;for(var r=null,i=n.children.indexOf(t);i>0;i--){var o=n.children[i-1];if("JSXText"!==o.type||ko(o)){r=o;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&r.expression.comments&&r.expression.comments.find(function(e){return"prettier-ignore"===e.value.trim()})}(e)},willPrintOwnComments:function(e){var t=e.getValue(),n=e.getParentNode();return(t&&Mo(t)||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&!Ei(e)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&!(e.callee&&"Import"===e.callee.type)},printComment:function(e,t){var n=e.getValue();switch(n.type){case"CommentBlock":case"Block":if(function(e){var t=e.value.split("\n");return t.length>1&&t.slice(0,t.length-1).every(function(e){return"*"===e.trim()[0]})}(n)){var r=function(e){var t=e.value.split("\n");return Hi(["/*",ji(Pi,t.map(function(e,n){return(n>0?" ":"")+(n x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:Sa.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Sa.singleQuote,trailingComma:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"none",description:"No trailing commas."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:!0,deprecated:"0.19.0",redirect:"es5"},{value:!1,deprecated:"0.19.0",redirect:"none"}]}},Ta=function(){for(var e=arguments,t=arguments[0],n=function(n){var r=e[n];Object.keys(r).forEach(function(e){var n="languageId"===e?"linguistLanguageId":e,i=r[e];t[n]=Array.isArray(t[n])?t[n].concat(i):i})},r=1;r","<=",">="].indexOf(e.value)},Ql=function(e){return"value-word"===e.type&&-1!==["==","!="].indexOf(e.value)},$l=bl,Yl=Cl,Xl=wl,Jl=_l,es=function(e){return bl(e)||Cl(e)||wl(e)||_l(e)||function(e){return"value-operator"===e.type&&"%"===e.value}(e)},ts=function(e){return"value-word"===e.type&&"in"===e.value},ns=function(e){return"value-word"===e.type&&-1!==["from","through","end"].indexOf(e.value)},rs=function(e){return"value-word"===e.type&&-1!==["and","or","not"].indexOf(e.value)},is=function(e){return e.raws&&""===e.raws.before},os=El,as=function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},ls=function(e){return"value-comment"===e.type&&e.inline},ss=function(e){return"value-word"===e.type&&"#"===e.value},us=function(e){return"value-word"===e.type&&"{"===e.value},cs=function(e){return"value-word"===e.type&&"}"===e.value},ps=function(e){return-1!==["value-word","value-atword"].indexOf(e.type)},ds=function(e){return"value-colon"===e.type},hs=function(e){return"value-func"===e.type&&-1!==ml.indexOf(e.value.toLowerCase())};function fs(e,t,n){var r=e.getValue(),i=[],o=0;return e.map(function(e){var a=r.nodes[o-1];if(a&&"css-comment"===a.type&&"prettier-ignore"===a.text.trim()){var l=e.getValue();i.push(t.originalText.slice(t.locStart(l),t.locEnd(l)))}else i.push(e.call(n));o!==r.nodes.length-1&&("css-comment"===r.nodes[o+1].type&&!xl(t.originalText,t.locStart(r.nodes[o+1]),{backwards:!0})&&"yaml"!==r.nodes[o].type&&"toml"!==r.nodes[o].type||"css-atrule"===r.nodes[o+1].type&&"else"===r.nodes[o+1].name&&"css-comment"!==r.nodes[o].type?i.push(" "):(i.push(kl),Ol(t.originalText,e.getValue(),t)&&"yaml"!==r.nodes[o].type&&"toml"!==r.nodes[o].type&&i.push(kl))),o++},"nodes"),Ml(i)}var gs=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,vs=RegExp(gs.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function ms(e,t){return e.replace(gs,function(e){return Dl(e,t)})}function ys(e){return e.replace(vs,function(e,t,n,r,i){return!n&&r?(n||"")+bs(r)+Ul(i||""):e})}function bs(e){return Sl(e).replace(/\.0(?=$|e)/,"")}var Cs={print:function(e,t,n){var r,i,o,a=e.getValue();if(!a)return"";if("string"==typeof a)return a;switch(a.type){case"yaml":case"toml":return Ml([a.raw,kl]);case"css-root":var l=fs(e,t,n);return l.parts.length?Ml([l,kl]):l;case"css-comment":if(a.raws.content)return a.raws.content;var s=t.originalText.slice(t.locStart(a),t.locEnd(a)),u=a.raws.text||a.text;return-1===s.indexOf(u)?Ml(a.raws.inline?["// ",u]:["/* ",u," */"]):s;case"css-rule":return Ml([e.call(n,"selector"),a.important?" !important":"",a.nodes?Ml([" {",a.nodes.length>0?jl(Ml([kl,fs(e,t,n)])):"",kl,"}",function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))}(a)?";":""]):";"]);case"css-decl":return Ml([a.raws.before.replace(/[\s;]/g,""),function(e){var t=yl(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))}(e)?a.prop:Ul(a.prop),":"===a.raws.between.trim()?":":a.raws.between.trim(),a.extend?"":" ",function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()}(a)?Zl(e.call(n,"value")):e.call(n,"value"),a.raws.important?a.raws.important.replace(/\s*!\s*important/i," !important"):a.important?" !important":"",a.raws.scssDefault?a.raws.scssDefault.replace(/\s*!default/i," !default"):a.scssDefault?" !default":"",a.raws.scssGlobal?a.raws.scssGlobal.replace(/\s*!global/i," !global"):a.scssGlobal?" !global":"",a.nodes?Ml([" {",jl(Ml([Nl,fs(e,t,n)])),Nl,"}"]):";"]);case"css-atrule":return Ml(["@",as(a)||a.name.endsWith(":")?a.name:Ul(a.name),a.params?Ml([as(a)?"":" ",e.call(n,"params")]):"",a.selector?jl(Ml([" ",e.call(n,"selector")])):"",a.value?Fl(Ml([" ",e.call(n,"value"),Wl(a)?function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close}(a)?" ":Vl:""])):"else"===a.name?" ":"",a.nodes?Ml([Wl(a)?"":" ","{",jl(Ml([a.nodes.length>0?Nl:"",fs(e,t,n)])),Nl,"}"]):";"]);case"media-query-list":var c=[];return e.each(function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||c.push(e.call(n))},"nodes"),Fl(jl(Il(Vl,c)));case"media-query":return Ml([Il(" ",e.map(n,"nodes")),zl(e,a)?"":","]);case"media-type":return ys(ms(a.value,t));case"media-feature-expression":return a.nodes?Ml(["(",Ml(e.map(n,"nodes")),")"]):a.value;case"media-feature":return Ul(ms(a.value.replace(/ +/g," "),t));case"media-colon":return Ml([a.value," "]);case"media-value":return ys(ms(a.value,t));case"media-keyword":return ms(a.value,t);case"media-url":return ms(a.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return a.value;case"selector-root":return Fl(Ml([ql(e,"custom-selector")?Ml([Bl(e,"css-atrule").customSelector,Vl]):"",Il(Ml([",",ql(e,["extend","custom-selector","nest"])?Vl:kl]),e.map(n,"nodes"))]));case"selector-selector":return Fl(jl(Ml(e.map(n,"nodes"))));case"selector-comment":return a.value;case"selector-string":return ms(a.value,t);case"selector-tag":var p=e.getParentNode(),d=p&&p.nodes.indexOf(a),h=d&&p.nodes[d-1];return Ml([a.namespace?Ml([!0===a.namespace?"":a.namespace.trim(),"|"]):"","selector-nesting"===h.type?a.value:ys(-1!==sl.indexOf(a.value.toLowerCase())||function(e,t){var n=yl(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&-1!==["from","to"].indexOf(t.toLowerCase())}(e,a.value)?a.value.toLowerCase():a.value)]);case"selector-id":return Ml(["#",a.value]);case"selector-class":return Ml([".",ys(ms(a.value,t))]);case"selector-attribute":return Ml(["[",a.namespace?Ml([!0===a.namespace?"":a.namespace.trim(),"|"]):"",a.attribute.trim(),a.operator?a.operator:"",a.value?function(e,t){var n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}(ms(a.value.trim(),t),t):"",a.insensitive?" i":"","]"]);case"selector-combinator":if("+"===a.value||">"===a.value||"~"===a.value||">>>"===a.value){var f=e.getParentNode();return Ml(["selector-selector"===f.type&&f.nodes[0]===a?"":Vl,a.value,zl(e,a)?"":" "])}var g=a.value.trim().startsWith("(")?Vl:"",v=ys(ms(a.value.trim(),t))||Vl;return Ml([g,v]);case"selector-universal":return Ml([a.namespace?Ml([!0===a.namespace?"":a.namespace.trim(),"|"]):"",a.value]);case"selector-pseudo":return Ml([Ul(a.value),a.nodes&&a.nodes.length>0?Ml(["(",Il(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return a.value;case"selector-unknown":var m=Bl(e,"css-rule");return m&&m.isSCSSNesterProperty?ys(ms(Ul(a.value),t)):a.value;case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return Ml([a.inline?"//":"/*",a.value,a.inline?"":"*/"]);case"value-comma_group":for(var y=e.getParentNode(),b=e.getParentNode(1),C=function(e){var t=yl(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()}(e),w=C&&"value-value"===y.type&&("grid"===C||C.startsWith("grid-template")),_=Bl(e,"css-atrule"),E=_&&Wl(_),A=e.map(n,"groups"),S=[],D=Gl(e,"url"),T=!1,x=!1,O=0;O0&&"value-comma_group"===a.groups[0].type&&a.groups[0].groups.length>0&&"value-word"===a.groups[0].groups[0].type&&a.groups[0].groups[0].value.startsWith("data:")))return Ml([a.open?e.call(n,"open"):"",Il(",",e.map(n,"groups")),a.close?e.call(n,"close"):""]);if(!a.open){for(var U=e.map(n,"groups"),G=[],q=0;q0?Gs(Rs(["(",qs(Rs([Us,Ps(Rs([zs("",", "),Us]),e.call(function(e){return Qs(e,t,n)},"arguments"))])),Us,")"])):"",Ks(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return Rs(r.block?['"""',Zs,Ps(Zs,r.value.replace(/"""/g,"\\$&").split("\n")),Zs,'"""']:['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return Rs(["$",e.call(n,"name")]);case"ListValue":return Gs(Rs(["[",qs(Rs([Us,Ps(Rs([zs("",", "),Us]),e.map(n,"values"))])),Us,"]"]));case"ObjectValue":return Gs(Rs(["{",t.bracketSpacing&&r.fields.length>0?" ":"",qs(Rs([Us,Ps(Rs([zs("",", "),Us]),e.map(n,"fields"))])),Us,zs("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Rs([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Rs(["@",e.call(n,"name"),r.arguments.length>0?Gs(Rs(["(",qs(Rs([Us,Ps(Rs([zs("",", "),Us]),e.call(function(e){return Qs(e,t,n)},"arguments"))])),Us,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Rs([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Rs([" = ",e.call(n,"defaultValue")]):""]);case"TypeExtensionDefinition":return Rs(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Rs([e.call(n,"description"),r.description?Zs:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Rs([" implements ",Ps(function(e){var t=e.indexOf("implements");if(-1===t)throw new Error("Must implement interfaces: "+e);var n=e.indexOf("{");return-1===n&&(n=e.length),e.substr(t,n).includes("&")?" & ":", "}(t.originalText.substr(t.locStart(r),t.locEnd(r))),e.map(n,"interfaces"))]):"",Ks(e,n,r),r.fields.length>0?Rs([" {",qs(Rs([Zs,Ps(Zs,e.call(function(e){return Qs(e,t,n)},"fields"))])),Zs,"}"]):""]);case"FieldDefinition":return Rs([e.call(n,"description"),r.description?Zs:"",e.call(n,"name"),r.arguments.length>0?Gs(Rs(["(",qs(Rs([Us,Ps(Rs([zs("",", "),Us]),e.call(function(e){return Qs(e,t,n)},"arguments"))])),Us,")"])):"",": ",e.call(n,"type"),Ks(e,n,r)]);case"DirectiveDefinition":return Rs([e.call(n,"description"),r.description?Zs:"","directive ","@",e.call(n,"name"),r.arguments.length>0?Gs(Rs(["(",qs(Rs([Us,Ps(Rs([zs("",", "),Us]),e.call(function(e){return Qs(e,t,n)},"arguments"))])),Us,")"])):"",Rs([" on ",Ps(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Rs([e.call(n,"description"),r.description?Zs:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),Ks(e,n,r),r.values.length>0?Rs([" {",qs(Rs([Zs,Ps(Zs,e.call(function(e){return Qs(e,t,n)},"values"))])),Zs,"}"]):""]);case"EnumValueDefinition":return Rs([e.call(n,"description"),r.description?Zs:"",e.call(n,"name"),Ks(e,n,r)]);case"InputValueDefinition":return Rs([e.call(n,"description"),r.description?r.description.block?Zs:Bs:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Rs([" = ",e.call(n,"defaultValue")]):"",Ks(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Rs([e.call(n,"description"),r.description?Zs:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),Ks(e,n,r),r.fields.length>0?Rs([" {",qs(Rs([Zs,Ps(Zs,e.call(function(e){return Qs(e,t,n)},"fields"))])),Zs,"}"]):""]);case"SchemaDefinition":return Rs(["schema",Ks(e,n,r)," {",r.operationTypes.length>0?qs(Rs([Zs,Ps(Zs,e.call(function(e){return Qs(e,t,n)},"operationTypes"))])):"",Zs,"}"]);case"OperationTypeDefinition":return Rs([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Rs([e.call(n,"description"),r.description?Zs:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),Ks(e,n,r),r.fields.length>0?Rs([" {",qs(Rs([Zs,Ps(Zs,e.call(function(e){return Qs(e,t,n)},"fields"))])),Zs,"}"]):""]);case"FragmentSpread":return Rs(["...",e.call(n,"name"),Ks(e,n,r)]);case"InlineFragment":return Rs(["...",r.typeCondition?Rs([" on ",e.call(n,"typeCondition")]):"",Ks(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Gs(Rs([e.call(n,"description"),r.description?Zs:"",Gs(Rs(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),Ks(e,n,r),r.types.length>0?Rs([" =",zs(""," "),qs(Rs([zs(Rs([Bs," "])),Ps(Rs([Bs,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Rs([e.call(n,"description"),r.description?Zs:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),Ks(e,n,r)]);case"NonNullType":return Rs([e.call(n,"type"),"!"]);case"ListType":return Rs(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:wn.hasIgnoreComment,insertPragma:function(e){return"# @format\n\n"+e},printComment:function(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimRight();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},Ys={bracketSpacing:Sa.bracketSpacing},Xs=[".graphql",".gql"],Js={name:"GraphQL",type:"data",extensions:Xs,tmScope:"source.graphql",aceMode:"text",languageId:139},eu=Object.freeze({name:"GraphQL",type:"data",extensions:Xs,tmScope:"source.graphql",aceMode:"text",languageId:139,default:Js}),tu={languages:[Ta({},eu&&Js||eu,{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]})],options:Ys,printers:{graphql:$s}},nu=Bn.builders,ru=nu.concat,iu=nu.join,ou=nu.softline,au=nu.hardline,lu=nu.line,su=nu.group,uu=nu.indent,cu=nu.ifBreak,pu=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function du(e,t){return e.call(t,"path")}function hu(e,t){var n=e.getValue(),r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function fu(e,t){var n=[];return n.push(du(e,t)),n=n.concat(hu(e,t)),uu(su(iu(lu,n)))}function gu(e,t){return su(ru(["{{#",fu(e,t),function(e){var t=e.getValue();return t.program&&t.program.blockParams.length?ru([" as |",t.program.blockParams.join(" "),"|"]):""}(e),ou,"}}"]))}function vu(e,t){return ru(["{{/",e.call(t,"path"),"}}"])}var mu={print:function(e,t,n){var r=e.getValue();if(!r)return"";switch(r.type){case"Program":return su(iu(ou,e.map(n,"body").filter(function(e){return""!==e})));case"ElementNode":var i=r.tag[0],o=-1!==r.tag.indexOf("."),a=i.toUpperCase()===i||o,l=r.children.length>0,s=a&&!l||-1!==pu.indexOf(r.tag),u=s?ru([" />",ou]):">";return ru([su(ru(["<",r.tag,function(e,t){return uu(ru([r.attributes.length?lu:"",iu(lu,e.map(t,"attributes")),r.modifiers.length?lu:"",iu(lu,e.map(t,"modifiers")),r.comments.length?lu:"",iu(lu,e.map(t,"comments"))]))}(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",cu(ou,""),u])),su(ru([uu(iu(ou,[""].concat(e.map(n,"children")))),cu(l?au:"",""),s?"":ru([""])]))]);case"BlockStatement":var c=e.getParentNode(1),p=c&&c.inverse&&c.inverse.body[0]===r&&"if"===c.inverse.body[0].path.parts[0],d=r.inverse&&r.inverse.body[0]&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],h=d?function(e){return e}:uu;if(r.inverse)return ru([p?ru(["{{else ",fu(e,n),"}}"]):gu(e,n),uu(ru([au,e.call(n,"program")])),r.inverse&&!d?ru([au,"{{else}}"]):"",r.inverse?h(ru([au,e.call(n,"inverse")])):"",p?"":ru([au,vu(e,n)])]);if(p)return ru([ru(["{{else ",fu(e,n),"}}"]),uu(ru([au,e.call(n,"program")]))]);var f=r.params.length>0||r.hash.pairs.length>0,g=r.program.body.length>0;return ru([gu(e,n),su(ru([uu(ru([ou,e.call(n,"program")])),f&&g?au:ou,vu(e,n)]))]);case"ElementModifierStatement":case"MustacheStatement":var v=e.getParentNode(1),m=v&&"ConcatStatement"===v.type;return su(ru([!1===r.escaped?"{{{":"{{",fu(e,n),m?"":ou,!1===r.escaped?"}}}":"}}"]));case"SubExpression":var y=hu(e,n),b=y.length>0?uu(ru([lu,su(iu(lu,y))])):"";return su(ru(["(",du(e,n),b,ou,")"]));case"AttrNode":var C="TextNode"===r.value.type;if(C&&r.value.loc.start.column===r.value.loc.end.column)return ru([r.name]);var w=C?'"':"";return ru([r.name,"=",w,e.call(n,"value"),w]);case"ConcatStatement":return ru(['"',su(uu(iu(ou,e.map(function(e){return n(e)},"parts").filter(function(e){return""!==e})))),'"']);case"Hash":return ru([iu(lu,e.map(n,"pairs"))]);case"HashPair":return ru([r.key,"=",e.call(n,"value")]);case"TextNode":var _="",E="";if(e.stack.indexOf("attributes")>=0){var A=e.getParentNode(0);if("ConcatStatement"===A.type){var S=A.parts,D=S.indexOf(r);D>0&&"MustacheStatement"===S[D-1].type&&(_=" "),D-1?"--":"";return ru(["{{!",T,r.value,T,"}}"]);case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return ru(["\x3c!--",r.value,"--\x3e"]);case"StringLiteral":return'"'.concat(r.value,'"');case"NumberLiteral":return String(r.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:function(e,t){if(delete t.loc,"TextNode"===e.type){if(""===e.chars.replace(/\s+/,""))return null;t.chars=e.chars.replace(/^\s+/,"").replace(/\s+$/,"")}}},yu=["hbs","htmlbars"],bu=[".handlebars",".hbs"],Cu={name:"Handlebars",type:"markup",group:"HTML",aliases:yu,extensions:bu,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},wu=Object.freeze({name:"Handlebars",type:"markup",group:"HTML",aliases:yu,extensions:bu,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:Cu}),_u={languages:[Ta({},wu&&Cu||wu,{since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]})],printers:{glimmer:mu}},Eu=Bn.builders,Au=Eu.hardline,Su=Eu.literalline,Du=Eu.concat,Tu=Eu.markAsRoot,xu=Bn.utils.mapDoc,Ou=d(function(e){var t=["format","prettier"];function n(e){var n="@(".concat(t.join("|"),")"),r=new RegExp(["\x3c!--\\s*".concat(n,"\\s*--\x3e"),"\x3c!--.*\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(n,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),i=e.match(r);return i&&0===i.index}e.exports={startWithPragma:n,hasPragma:function(e){return n(vl(e).content.trimLeft())},insertPragma:function(e){var n=vl(e),r="\x3c!-- @".concat(t[0]," --\x3e");return n.frontMatter?"".concat(n.frontMatter.raw,"\n\n").concat(r,"\n\n").concat(n.content):"".concat(r,"\n\n").concat(n.content)}}}),Lu=Bn.builders,Mu=Lu.concat,Iu=Lu.join,Vu=Lu.line,ku=Lu.literalline,Nu=Lu.markAsRoot,Fu=Lu.hardline,Hu=Lu.softline,ju=Lu.fill,Ru=Lu.align,Pu=Lu.indent,Zu=Lu.group,Bu=Bn.utils.mapDoc,Uu=Bn.printer.printDocToString,Gu=["heading","tableCell","link"],qu=["listItem","definition","footnoteDefinition"],zu=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break"],Wu=zu.concat(["tableCell","paragraph","heading"]);function Ku(e,t){return function(e,t,n){n=n||function(){return!0};var r=-1,i=!0,o=!1,a=void 0;try{for(var l,s=t.children[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var u=l.value;if(u.type===e.type&&n(u)?r++:r=-1,u===e)return r}}catch(c){o=!0,a=c}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}}(e,t,function(t){return t.ordered===e.ordered})}function Qu(e,t){return Iu(t,e.split("\n"))}function $u(e,t){for(var n,r=[].concat(t),i=-1;n=e.getParentNode(++i);)if(-1!==r.indexOf(n.type))return i;return-1}function Yu(e,t){var n=$u(e,t);return-1===n?null:e.getParentNode(n)}function Xu(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return Fu;var r="always"===n.proseWrap&&!Yu(e,Gu);return""!==t?r?Vu:" ":r?Hu:""}function Ju(e,t,n,r){var i,o=(r=r||{}).postprocessor||Mu,a=r.processor||function(e){return e.call(n)},l=e.getValue(),s=[];return e.map(function(e,n){var r=e.getValue(),o=a(e,n);if(!1!==o){var u={parts:s,prevNode:i,parentNode:l,options:t};(function(e,t){var n=0===t.parts.length,r=-1!==zu.indexOf(e.type),i="html"===e.type&&-1!==Wu.indexOf(t.parentNode.type);return n||r||i})(r,u)||(s.push(Fu),(function(e,t){var n=(t.prevNode&&t.prevNode.type)===e.type&&-1!==qu.indexOf(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,i=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,o="next"===ec(t.prevNode);return i||!(n||r||o||"html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line)}(r,u)||tc(r,u))&&s.push(Fu),tc(r,u)&&s.push(Fu)),s.push(o),i=r}},"children"),o(s)}function ec(e){if("html"!==e.type)return!1;var t=e.value.match(/^$/);return null!==t&&(t[1]?t[1]:"next")}function tc(e,t){return t.prevNode&&"list"===t.prevNode.type&&"code"===e.type&&e.isIndented}function nc(e,t){var n=[" "].concat(t||[]);return new RegExp(n.map(function(e){return"\\".concat(e)}).join("|")).test(e)?"<".concat(e,">"):e}function rc(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+rc(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var r=e.split("'").length-1,i=e.split('"').length-1,o=r>i?'"':i>r?"'":t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(o,")"),"g"),"\\$1"),"".concat(o).concat(e).concat(o)}var ic={print:function(e,t,n){var r,i,o,a,l,s=e.getValue();if(function(e){var t=Yu(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return Mu(wn.splitText(t.originalText.slice(s.position.start.offset,s.position.end.offset),t).map(function(n){return"word"===n.type?n.value:""===n.value?"":Xu(e,n.value,t)}));switch(s.type){case"root":return 0===s.children.length?"":Mu([(r=function(e,t,n){var r=[],i=null,o=e.getValue().children;return o.forEach(function(e,t){switch(ec(e)){case"start":null===i&&(i={index:t,offset:e.position.end.offset});break;case"end":null!==i&&(r.push({start:i,end:{index:t,offset:e.position.start.offset}}),i=null)}}),Ju(e,t,n,{processor:function(e,i){if(0!==r.length){var a=r[0];if(i===a.start.index)return Mu([o[a.start.index].value,t.originalText.slice(a.start.offset,a.end.offset),o[a.end.index].value]);if(a.start.index|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(p.value)?"never":t.proseWrap;return Xu(e,s.value,{proseWrap:d});case"emphasis":var h=e.getParentNode(),f=h.children.indexOf(s),g=h.children[f-1],v=h.children[f+1],m=g&&"sentence"===g.type&&g.children.length>0&&"word"===wn.getLast(g.children).type&&!wn.getLast(g.children).hasTrailingPunctuation||v&&"sentence"===v.type&&v.children.length>0&&"word"===v.children[0].type&&!v.children[0].hasLeadingPunctuation||Yu(e,"emphasis")?"*":"_";return Mu([m,Ju(e,t,n),m]);case"strong":return Mu(["**",Ju(e,t,n),"**"]);case"delete":return Mu(["~~",Ju(e,t,n),"~~"]);case"inlineCode":var y=wn.getMaxContinuousCount(s.value,"`"),b=1===y?"``":"`",C=y?" ":"";return Mu([b,C,s.value,C,b]);case"link":switch(t.originalText[s.position.start.offset]){case"<":var w=s.url.startsWith("mailto:")&&"mailto:"!==t.originalText.slice(s.position.start.offset+1,s.position.start.offset+1+"mailto:".length)?s.url.slice("mailto:".length):s.url;return Mu(["<",w,">"]);case"[":return Mu(["[",Ju(e,t,n),"](",nc(s.url,")"),rc(s.title,t),")"]);default:return t.originalText.slice(s.position.start.offset,s.position.end.offset)}case"image":return Mu(["![",s.alt||"","](",nc(s.url,")"),rc(s.title,t),")"]);case"blockquote":return Mu(["> ",Ru("> ",Ju(e,t,n))]);case"heading":return Mu(["#".repeat(s.depth)+" ",Ju(e,t,n)]);case"code":if(s.isIndented){var _=" ".repeat(4);return Ru(_,Mu([_,Iu(Fu,s.value.split("\n"))]))}var E=t.__inJsTemplate?"~":"`",A=E.repeat(Math.max(3,wn.getMaxContinuousCount(s.value,E)+1));return Mu([A,s.lang||"",Fu,Iu(Fu,s.value.split("\n")),Fu,A]);case"yaml":case"toml":return t.originalText.slice(s.position.start.offset,s.position.end.offset);case"html":var S=e.getParentNode(),D="root"===S.type&&wn.getLast(S.children)===s?s.value.trimRight():s.value;return Qu(D,/^$/.test(D)?Fu:Nu(ku));case"list":var T=Ku(s,e.getParentNode()),x=s.ordered&&s.children.length>1&&1==+(i=s.children[1],o=t.originalText,l=function(e){if(Array.isArray(e))return e}(a=o.slice(i.position.start.offset,i.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/))||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),4!==n.length);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}(),{numberText:l[1],marker:l[2],leadingSpaces:l[3]}).numberText;return Ju(e,t,n,{processor:function(e,r){var i,o=(i=s.ordered?(0===r?s.start:x?1:s.start+r)+(T%2==0?". ":") "):T%2==0?"- ":"* ",s.isAligned||s.hasIndentedCodeblock?function(e,t){var n,r=0==(n=i.length%t.tabWidth)?0:t.tabWidth-n;return i+" ".repeat(r>=4?0:r)}(0,t):i);return Mu([o,Ru(" ".repeat(o.length),function(e,t,n,r){var i=e.getValue(),o=null===i.checked?"":i.checked?"[x] ":"[ ] ";return Mu([o,Ju(e,t,n,{processor:function(e,i){if(0===i&&"list"!==e.getValue().type)return Ru(" ".repeat(o.length),e.call(n));var a,l=" ".repeat((a=t.tabWidth-r.length)<0?0:a>3?3:a);return Mu([l,Ru(l,e.call(n))])}})])}(e,t,n,o))])}});case"thematicBreak":var O=$u(e,"list");return-1===O?"---":Ku(e.getParentNode(O),e.getParentNode(O+1))%2==0?"***":"---";case"linkReference":return Mu(["[",Ju(e,t,n),"]","full"===s.referenceType?Mu(["[",s.identifier,"]"]):"collapsed"===s.referenceType?"[]":""]);case"imageReference":switch(s.referenceType){case"full":return Mu(["![",s.alt||"","][",s.identifier,"]"]);default:return Mu(["![",s.alt,"]","collapsed"===s.referenceType?"[]":""])}case"definition":var L="always"===t.proseWrap?Vu:" ";return Zu(Mu([Mu(["[",s.identifier,"]:"]),Pu(Mu([L,nc(s.url),null===s.title?"":Mu([L,rc(s.title,t,!1)])]))]));case"footnote":return Mu(["[^",Ju(e,t,n),"]"]);case"footnoteReference":return Mu(["[^",s.identifier,"]"]);case"footnoteDefinition":var M=e.getParentNode().children[e.getName()+1];return Mu(["[^",s.identifier,"]: ",Zu(Mu([Ru(" ".repeat(t.tabWidth),Ju(e,t,n,{processor:function(e,t){return 0===t?Zu(Mu([Hu,Hu,e.call(n)])):e.call(n)}})),M&&"footnoteDefinition"===M.type?Hu:""]))]);case"table":return function(e,t,n){var r=e.getValue(),i=[];e.map(function(e){var r=[];e.map(function(e){r.push(Uu(e.call(n),t).formatted)},"children"),i.push(r)},"children");var o=i.reduce(function(e,t){return e.map(function(e,n){return Math.max(e,wn.getStringWidth(t[n]))})},i[0].map(function(){return 3}));return Iu(Fu,[a(i[0]),Mu(["| ",Iu(" | ",o.map(function(e,t){switch(r.align[t]){case"left":return":"+"-".repeat(e-1);case"right":return"-".repeat(e-1)+":";case"center":return":"+"-".repeat(e-2)+":";default:return"-".repeat(e)}}))," |"]),Iu(Fu,i.slice(1).map(a))]);function a(e){return Mu(["| ",Iu(" | ",e.map(function(e,t){switch(r.align[t]){case"right":return Mu([" ".repeat(o[t]-wn.getStringWidth(n=e)),n]);case"center":return function(e,n){var r=o[t]-wn.getStringWidth(e),i=Math.floor(r/2),a=r-i;return Mu([" ".repeat(i),e," ".repeat(a)])}(e);default:return Mu([e," ".repeat(o[t]-wn.getStringWidth(e))])}var n}))," |"])}}(e,t,n);case"tableCell":return Ju(e,t,n);case"break":return/\s/.test(t.originalText[s.position.start.offset])?Mu([" ",Nu(ku)]):Mu(["\\",Fu]);case"liquidNode":return Qu(s.value,Fu);case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(s.type)))}},embed:function(e,t,n,r){var i,o,a=e.getValue();if("code"===a.type&&null!==a.lang){var l=a.lang.match(/^[A-Za-z0-9_-]+/),s=(i=l?l[0]:"",(o=_e(null,{plugins:r.plugins}).languages.find(function(e){return e.name.toLowerCase()===i||e.aliases&&-1!==e.aliases.indexOf(i)||e.extensions&&e.extensions.find(function(e){return e.substring(1)===i})}))?o.parsers[0]:null);if(s){var u=r.__inJsTemplate?"~":"`",c=u.repeat(Math.max(3,wn.getMaxContinuousCount(a.value,u)+1)),p=n(a.value,{parser:s});return Tu(Du([c,a.lang,Au,d(p),c]))}}return"yaml"===a.type?Tu(Du(["---",Au,a.value.trim()?d(n(a.value,{parser:"yaml"})):"","---"])):null;function d(e){return xu(e,function(e){return"string"==typeof e&&e.includes("\n")?Du(e.split(/(\n)/g).map(function(e,t){return t%2==0?e:Su})):e})}},massageAstNode:function(e,t,n){if(delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"whitespace"===e.type&&"\n"===e.value&&(t.value=" "),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&Ou.startWithPragma(e.value))return null},hasPrettierIgnore:function(e){var t=+e.getName();return 0!==t&&"next"===ec(e.getParentNode().children[t-1])},insertPragma:Ou.insertPragma},oc={proseWrap:Sa.proseWrap,singleQuote:Sa.singleQuote},ac=["pandoc"],lc=[".md",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".workbook"],sc={name:"Markdown",type:"prose",aliases:ac,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:lc,tmScope:"source.gfm",languageId:222},uc=Object.freeze({name:"Markdown",type:"prose",aliases:ac,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:lc,tmScope:"source.gfm",languageId:222,default:sc}),cc={languages:[Ta({},uc&&sc||uc,{since:"1.8.0",parsers:["remark"],filenames:["README"],vscodeLanguageIds:["markdown"]})],options:oc,printers:{mdast:ic}},pc=Bn.builders,dc=pc.concat,hc=pc.hardline,fc=Bn.builders,gc=fc.concat,vc=fc.hardline,mc={print:function(e,t,n){var r=e.getValue(),i=[],o=r.start;return e.each(function(e){var r=e.getValue();i.push(t.originalText.slice(o,r.start)),i.push(e.call(n)),o=r.end},"children"),i.push(t.originalText.slice(o,r.end)),"root"===r.tag&&r.children.length&&i.push(vc),gc(i)},embed:function(e,t,n,r){var i,o=e.getValue(),a=e.getParentNode();if(!a||"root"!==a.tag||o.unary)return null;if("style"===o.tag){var l=o.attrs.find(function(e){return"lang"===e.name});l&&"postcss"!==l.value?"scss"===l.value?i="scss":"less"===l.value&&(i="less"):i="css"}if("script"===o.tag){var s=o.attrs.find(function(e){return"lang"===e.name});s?"ts"!==s.value&&"tsx"!==s.value||(i="typescript"):i="babylon"}return i?dc([r.originalText.slice(o.start,o.contentStart),hc,n(r.originalText.slice(o.contentStart,o.contentEnd),{parser:i}),r.originalText.slice(o.contentEnd,o.end)]):null},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")},massageAstNode:function(e,t){delete t.start,delete t.end,delete t.contentStart,delete t.contentEnd},canAttachComment:function(e){return"string"==typeof e.tag}},yc=[".vue"],bc={name:"Vue",type:"markup",color:"#2c3e50",extensions:yc,tmScope:"text.html.vue",aceMode:"html",languageId:391},Cc=Object.freeze({name:"Vue",type:"markup",color:"#2c3e50",extensions:yc,tmScope:"text.html.vue",aceMode:"html",languageId:391,default:bc}),wc={languages:[Ta({},Cc&&bc||Cc,{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]})],printers:{vue:mc}};function _c(e){return e[e.length-1]}function Ec(e){return e&&"string"==typeof e.type}function Ac(e){return"prettier-ignore"===e.value.trim()}function Sc(e){var t=[],n=void 0,r=!0,i=!1,o=void 0;try{for(var a,l=e.split(/( +)/g)[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var s=a.value;" "!==s?t.push(" "===n?s:(t.pop()||"")+s):void 0===n&&t.unshift(""),n=s}}catch(u){i=!0,o=u}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var Dc=function(e,t,n){var r=t.split("\n").map(function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimRight():e.trimLeft()});return"preserve"===n.proseWrap?r.map(function(e){return 0===e.length?[]:[e]}):r.map(function(e){return 0===e.length?[]:Sc(e)}).reduce(function(t,n,i){return 0===i||0===r[i-1].length||0===n.length||"quoteDouble"===e&&_c(_c(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)])},[]).map(function(e){return"never"===n.proseWrap?[e.join(" ")]:e})},Tc=_c,xc=function(e){return"leadingComments"in e&&0!==e.leadingComments.length},Oc=function(e){return"middleComments"in e&&0!==e.middleComments.length},Lc=function(e){return"trailingComments"in e&&0!==e.trailingComments.length},Mc=function(e){return"endComments"in e&&0!==e.endComments.length},Ic=function(e){var t,n=e.getValue();if("documentBody"===n.type){var r=e.getParentNode();return 0!==r.head.children.length&&"comment"===(t=_c(r.head.children)).type&&Ac(t)}return"leadingComments"in n&&0!==n.leadingComments.length&&Ac(_c(n.leadingComments))},Vc=function(e){switch(e.getValue().type){case"comment":case"verbatimTag":case"shorthandTag":case"nonSpecificTag":return!1}for(var t=e.stack.length,n=1;n0?" ".repeat(e):e,t)}function ep(e){switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":case"null":return!0;default:return!1}}function tp(e){if("null"!==e.key.type)switch(e.key.node.type){case"alias":return!0}return!1}function np(e,t){var n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&kc(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,Xc):""}function rp(e,t,n){var r=Dc(e,t,n);return Wc(qc,r.map(function(e){return Uc(Wc(Kc,e).parts)}))}var ip={print:function(e,t,n){var r,i=e.getValue(),o=e.getParentNode(),a="tag"in i&&"null"!==i.tag.type?e.call(n,"tag"):"",l="anchor"in i&&"null"!==i.anchor.type?e.call(n,"anchor"):"",s="mapping"!==i.type&&"sequence"!==i.type&&"comment"!==i.type&&"directive"!==i.type&&"mappingItem"!==i.type&&"sequenceItem"!==i.type||Vc(e)?"":np(e,t.originalText);return Pc(["mappingValue"!==i.type&&xc(i)?Pc([Wc(qc,e.map(n,"leadingComments")),qc]):"",a,a&&l?" ":"",l,"sequence"!==i.type&&"mapping"!==i.type||0!==i.middleComments.length?a||l?" ":"":a||l?qc:"",Oc(i)?Pc([1===i.middleComments.length?"":qc,Wc(qc,e.map(n,"middleComments")),qc]):"",Ic(e)?t.originalText.slice(i.position.start.offset,i.position.end.offset):Gc(function(e,t,n,r,i){switch(e.type){case"root":return Pc([Pc(n.map(function(t,n){return n===e.children.length-1?i(t):Pc([i(t),Lc(e.children[n])||t.call(Ic,"body")&&(o=e.children[n],a=r.originalText,"\n..."===a.slice(o.position.end.offset-4,o.position.end.offset))?"":Pc([qc,0===e.children[n+1].head.children.length?"---":"..."]),qc]);var o,a},"children")),0===e.children.length||(y=function e(t){return"children"in t&&0!==t.children.length?e(_c(t.children)):t}(e),Fc(y)&&"keep"===y.chomping)?"":qc]);case"document":return Pc([0===e.head.children.length?n.call(i,"body"):Wc(qc,[n.call(i,"head"),"---"].concat(0===e.body.children.length?[]:n.call(i,"body"))),Lc(e)?Pc([qc,"..."]):""]);case"documentHead":case"documentBody":return Wc(qc,n.map(i,"children"));case"directive":return Pc(["%",Wc(" ",[e.name].concat(e.parameters))]);case"comment":return Pc(["#",e.value]);case"alias":return Pc(["*",e.value]);case"null":return"";case"verbatimTag":return Pc(["!<",e.value,">"]);case"shorthandTag":return Pc([e.handle,e.suffix]);case"nonSpecificTag":return"!";case"anchor":return Pc(["&",e.value]);case"plain":return rp(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var o=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&o.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(o)){var a="quoteDouble"===e.type?'"':"'";return Pc([a,rp(e.type,o,r),a])}if(o.includes('"'))return Pc(["'",rp(e.type,"quoteDouble"===e.type?o.replace(/\\"/g,'"'):o,r),"'"]);if(o.includes("'"))return Pc(['"',rp(e.type,"quoteSingle"===e.type?o.replace(/''/g,"'"):o,r),'"']);var l=r.singleQuote?"'":'"';return Pc([l,rp(e.type,o,r),l]);case"blockFolded":case"blockLiteral":var s=function(e,t){for(var n=0,r=e.stack.length-1,i=0;i":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",Lc(e)?Pc([" ",Wc(qc,n.map(i,"trailingComments"))]):"",(null===e.indent?Zc:Bc)(Jc(null===e.indent?r.tabWidth:e.indent-1+s,Pc(function(e,t){var n,r=t.parentIndent,i=t.isLastDescendant,o=t.options,a=e.position.start.line===e.position.end.line?"":o.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\s\S]*)$/)[1],l=null===e.indent?(n=a.match(/^( *)\S/m))?n[1].length:1/0:e.indent-1+r,s=a.split("\n").map(function(e){return e.slice(l)});return function(t){if("keep"===e.chomping)return 0===_c(t).length?t.slice(0,-1):t;for(var n=0,r=t.length-1;r>=0&&0===t[r].length;r--)n++;return 0===n?t:t.slice(0,n>=2&&!i?-(n-1):-n)}("preserve"===o.proseWrap||"blockLiteral"===e.type?s.map(function(e){return 0===e.length?[]:[e]}):s.map(function(e){return 0===e.length?[]:Sc(e)}).reduce(function(e,t,n){return 0===n||0===s[n-1].length||0===t.length||/^\s/.test(t[0])||/^\s|\s$/.test(_c(e))?e.concat([t]):e.concat([e.pop().concat(t)])},[]).map(function(e){return e.reduce(function(e,t){return 0!==e.length&&/\s$/.test(_c(e))?e.concat(e.pop()+" "+t):e.concat(t)},[])}).map(function(e){return"never"===o.proseWrap?[e.join(" ")]:e}))}(e,{parentIndent:s,isLastDescendant:u,options:r}).reduce(function(t,n,r,i){return t.concat(0===r?qc:0===i[r-1].length?qc:r===i.length-1&&0===n.length?Bc($c):Yc($c),Uc(Wc(Kc,n).parts),r===i.length-1&&"keep"===e.chomping&&u?0!==n.length&&Tc(n).endsWith(" ")?Bc($c):Bc(qc):[])},[]))))]);case"sequence":return Wc(qc,n.map(i,"children"));case"sequenceItem":return Pc(["- ",Jc(2,n.call(i,"node"))]);case"mappingKey":case"mappingValue":return n.call(i,"node");case"mapping":return Wc(qc,n.map(i,"children"));case"mappingItem":case"flowMappingItem":if("null"===e.key.type&&"null"===e.value.type)return Pc([":",Kc]);var c=n.call(i,"key"),p=n.call(i,"value");if("null"===e.value.type)return"flowMappingItem"===e.type&&"flowSequence"!==n.getParentNode().type?c:Pc(["? ",Jc(2,c)]);if("null"===e.key.type)return Pc([":","null"===e.value.node.type?"":" ",Jc(2,p)]);var d=Symbol("mappingKey");return xc(e.value)||"null"!==e.key.type&&!ep(e.key.node)?Pc(["? ",Jc(2,c),qc,Wc("",n.map(i,"value","leadingComments").map(function(e){return Pc([e,qc])})),": ",Jc(2,p)]):!function(e){switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.node)||xc(e.key.node)||Oc(e.key.node)||Lc(e.key.node)||Mc(e.key)||xc(e.value.node)||Oc(e.value.node)||Mc(e.value)||!function(e,t){switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return-1===e.value.indexOf("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}(e.value.node,r)?jc([Pc([Gc(Pc([zc("? "),Gc(Jc(2,c),{id:d})])),zc(Pc([qc,": ",Jc(2,p)]),b(Pc([tp(e)?" ":"",":",xc(e.value.node)||Mc(e.value)&&"null"!==e.value.node.type||"mapping"===t.type&&Lc(e.key.node)&&ep(e.value.node)||("mapping"===e.value.node.type||"sequence"===e.value.node.type)&&"null"===e.value.node.tag.type&&"null"===e.value.node.anchor.type?qc:"null"===e.value.node.type?"":Kc,p])),{groupId:d})])]):Pc([c,tp(e)?" ":"",": ",p]);case"flowMapping":case"flowSequence":var h="flowMapping"===e.type?"{":"[",f="flowMapping"===e.type?"}":"]",g="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?Kc:Xc,v=0!==e.children.length&&"flowMappingItem"===(m=Tc(e.children)).type&&"null"===m.key.type&&"null"===m.value.type;return Pc([h,b(Pc([g,Pc(n.map(function(t,n){return Pc([i(t),n===e.children.length-1?"":Pc([",",Kc,e.children[n].position.start.line!==e.children[n+1].position.start.line?np(t,r.originalText):""])])},"children")),zc(",","")])),v?"":g,f]);case"flowSequenceItem":return n.call(i,"node");default:throw new Error("Unexpected node type ".concat(e.type))}var m,y;function b(e){return Hc.align(" ".repeat(r.tabWidth),e)}}(i,o,e,t,n)),!Fc(i)&&Lc(i)?Qc(Pc([" ","mappingKey"===o.type&&"mapping"===e.getParentNode(2).type&&ep(i)?"":Rc,Wc(qc,e.map(n,"trailingComments"))])):"",s,Mc(i)?(r=Pc([qc,Wc(qc,e.map(n,"endComments"))]),"sequenceItem"===i.type?Jc(2,r):r):""])},massageAstNode:function(e,t){if(Nc(t))switch(delete t.position,t.type){case"comment":if(/^\s*@(prettier|format)\s*$/.test(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:function(e){return"# @format\n\n".concat(e)}},op={bracketSpacing:Sa.bracketSpacing,singleQuote:Sa.singleQuote,proseWrap:Sa.proseWrap},ap=["yml"],lp=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yml.mysql"],sp=[".clang-format",".clang-tidy",".gemrc","glide.lock"],up={name:"YAML",type:"data",tmScope:"source.yaml",aliases:ap,extensions:lp,filenames:sp,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},cp=Object.freeze({name:"YAML",type:"data",tmScope:"source.yaml",aliases:ap,extensions:lp,filenames:sp,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:up}),pp=[Ta({},cp&&up||cp,{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"]})],dp=be.version,hp=_e,fp=[ol,Hs,tu,_u,cc,wc,{languages:pp,printers:{yaml:ip},options:op}],gp=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function vp(e){return function(){var t=Array.from(arguments),n=t[1]&&t[1].plugins||[];return gp(n)||(n=Object.values(n)),t[1]=Object.assign({},t[1],{plugins:fp.concat(n)}),e.apply(null,t)}}var mp=vp(function(e,t){return Nr(e,t=xr(t))});return{formatWithCursor:mp,format:function(e,t){return mp(e,t).formatted},check:function(e,t){return mp(e,t).formatted===e},doc:Bn,getSupportInfo:vp(hp),version:dp,util:Un,__debug:{parse:vp(function(e,t,n){t=xr(t);var r=ht.parse(e,t);return n&&(r.ast=function e(t,n,r){if(Array.isArray(t))return t.map(function(t){return e(t,n,r)}).filter(function(e){return e});if(!t||"object"!==C(t))return t;for(var i={},o=Object.keys(t),a=0;a=2;return function(u){return u.pipe(e?Object(i.a)(function(t,n){return e(t,n,u)}):s.a,Object(o.a)(1),n?Object(a.a)(t):Object(l.a)(function(){return new r.a}))}}},PDj5:function(e,t,n){"use strict";function r(e){var t=!(e&&!1===e.descriptions);return"\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ".concat(t?"description":"","\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(t?"description":"","\n fields(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(t?"description":"","\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var i=r()},"PIH+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opt=function(e){return{ofRule:e}},t.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},t.butNot=function(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every(function(t){return t.match&&!t.match(e)})},e},t.t=function(e,t){return{style:t,match:function(t){return t.kind===e}}},t.p=function(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}},PKcT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opt=function(e){return{ofRule:e}},t.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},t.butNot=function(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every(function(t){return t.match&&!t.match(e)})},e},t.t=function(e,t){return{style:t,match:function(t){return t.kind===e}}},t.p=function(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}},PU8L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("6blF");function i(e){var t=new r.a(function(t){t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}},Phjn:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("psW0");function i(e,t){return Object(r.a)(e,t,1)}},PmNC:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("dWS+");function i(e,t){return t?'Variable "$'.concat(e,'" is not defined by operation "').concat(t,'".'):'Variable "$'.concat(e,'" is not defined.')}function o(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var o=e.getRecursiveVariableUsages(n),a=!0,l=!1,s=void 0;try{for(var u,c=o[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var p=u.value.node,d=p.name.value;!0!==t[d]&&e.reportError(new r.a(i(d,n.name&&n.name.value),[p,n]))}}catch(h){l=!0,s=h}finally{try{a||null==c.return||c.return()}finally{if(l)throw s}}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}},QFxO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("CcnG"),i=(n("t/Na"),n("ahDk"));t.NguiAutoComplete=function(){function e(e){this.http=e}return e.prototype.filter=function(e,t,n,r){var i=this;return e.filter(r?function(e){var r=n?i.getFormattedListItem(e).toLowerCase():JSON.stringify(e).toLowerCase();return t=t.toLowerCase(),-1!==r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(t.normalize("NFD").replace(/[\u0300-\u036f]/g,""))}:function(e){var r=n?i.getFormattedListItem(e).toLowerCase():JSON.stringify(e).toLowerCase();return t=t.toLowerCase(),-1!==r.indexOf(t)})},e.prototype.getFormattedListItem=function(e){var t,n=this.listFormatter||"(id) value";if("function"==typeof n)t=n.apply(this,[e]);else if("object"!=typeof e)t=e;else if("string"==typeof n){t=n;var r=n.match(/[a-zA-Z0-9_\$]+/g);r&&"string"!=typeof e&&r.forEach(function(n){t=t.replace(n,e[n])})}return t},e.prototype.getRemoteData=function(e){var t=this;if("string"!=typeof this.source)throw new TypeError("Invalid type of source, must be a string. e.g. http://www.google.com?q=:my_keyword");if(!this.http)throw new Error("Http is required.");var n=this.source.match(/:[a-zA-Z_]+/);if(null===n)throw new Error("Replacement word is missing.");var r=this.source.replace(n[0],e);return this.http.get(r).pipe(i.map(function(e){return t.pathToData&&t.pathToData.split(".").forEach(function(t){return e=e[t]}),e}))},e.decorators=[{type:r.Injectable}],e}()},Qcyp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},Qgas:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("dC0D"),i=n("AxiF"),o=n("HJBe"),a=n("y3By");function l(e,t){return arguments.length>=2?function(n){return Object(a.a)(Object(r.a)(e,t),Object(i.a)(1),Object(o.a)(t))(n)}:function(t){return Object(a.a)(Object(r.a)(function(t,n,r){return e(t,n,r+1)}),Object(i.a)(1))(t)}}},"R+r5":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("Qgas");function i(e,t,n){return 0===n?[t]:(e.push(t),e)}function o(){return Object(r.a)(i,[])}},Rney:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("T1DM"),i=n("MpAI"),o=n("gI3B");function a(e,t){return void 0===t&&(t=r.a),Object(i.a)(function(){return Object(o.a)(e,t)})}},RqDB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("CcnG");t.SortablejsService=function(){function e(){}return e.decorators=[{type:r.Injectable}],e}()},S1nX:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("xlPZ"),i=n("yGWI"),o=n("K9Ia");function a(){return new o.a}function l(){return function(e){return Object(i.a)()(Object(r.a)(a)(e))}}},S4Ci:function(e,t,n){"use strict";var r=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})};t.a=r},S5XQ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DKTb"),i=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.a),t}}},S5bw:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mrSG"),i=n("K9Ia"),o=n("zo3G"),a=n("pugT"),l=n("mZXl"),s=n("8g8A"),u=n("uMaO"),c=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.c(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new p(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new s.a;if(this.isStopped||this.hasError?t=a.a.EMPTY:(this.observers.push(e),t=new u.a(this,e)),i&&e.add(e=new l.a(e,i)),n)for(var c=0;ct&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(i.a),p=function(){return function(e,t){this.time=e,this.value=t}}()},SJVZ:function(e,t,n){!function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var l=r(t,i,"minFoldSize");function s(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),u=s(!1);if(u&&!u.cleared&&"unfold"!==o){var c=function(e,t){var n=r(e,t,"widget");if("string"==typeof n){var i=document.createTextNode(n);(n=document.createElement("span")).appendChild(i),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}(t,i);e.on(c,"mousedown",function(t){p.clear(),e.e_preventDefault(t)});var p=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});p.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n1&&r>1&&o[n-1]===a[r-2]&&o[n-2]===a[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+u))}return i[l][s]}n.d(t,"a",function(){return r})},TO6s:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getASTNodeAtPosition=function(e,t,n){var o=i(e,n),a=void 0;return(0,r.visit)(t,{enter:function(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=o&&o<=e.loc.end))return!1;a=e},leave:function(e){if(e.loc&&e.loc.start<=o&&o<=e.loc.end)return!1}}),a},t.pointToOffset=i,n("aQEm");var r=n("Tzvz");function i(e,t){var n=e.split("\n").slice(0,t.line);return t.character+n.map(function(e){return e.length+1}).reduce(function(e,t){return e+t},0)}},TirB:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n("rWdj"),i=n("2C6G"),o=n("kBjl"),a=n("WXJZ"),l=n("Mbdf"),s=n("EMzn"),u=n("51nL"),c=n("axIb"),p=n("4suF"),d=n("LViu"),h=n("19Hc");function f(e,t){var n=e.__schema,f=Object(o.a)(n.types,function(e){return e.name}),g=Object(o.a)(h.g.concat(d.introspectionTypes),function(e){return e.name});function v(e){if(e.kind===d.TypeKind.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return Object(c.d)(v(t))}if(e.kind===d.TypeKind.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var i=v(n);return Object(c.e)(Object(c.s)(i))}if(!e.name)throw new Error("Unknown type reference: "+Object(r.a)(e));return m(e.name)}function m(e){if(g[e])return g[e];var t=f[e];if(!t)throw new Error("Invalid or incomplete schema, unknown type: ".concat(e,". Ensure ")+"that a full introspection query is used in order to build a client schema.");var n=function(e){if(e&&e.name&&e.kind)switch(e.kind){case d.TypeKind.SCALAR:return new c.g({name:(n=e).name,description:n.description,serialize:function(e){return e}});case d.TypeKind.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+Object(r.a)(e));return new c.f({name:e.name,description:e.description,interfaces:function(){return e.interfaces.map(b)},fields:function(){return C(e)}})}(e);case d.TypeKind.INTERFACE:return new c.c({name:(t=e).name,description:t.description,fields:function(){return C(t)}});case d.TypeKind.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+Object(r.a)(e));return new c.h({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(y)}})}(e);case d.TypeKind.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+Object(r.a)(e));return new c.a({name:e.name,description:e.description,values:Object(a.a)(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}(e);case d.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+Object(r.a)(e));return new c.b({name:e.name,description:e.description,fields:function(){return w(e.inputFields)}})}(e)}var t,n;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+Object(r.a)(e))}(t);return g[e]=n,n}function y(e){var t=v(e);return Object(c.t)(t)}function b(e){var t=v(e);return Object(c.n)(t)}function C(e){if(!e.fields)throw new Error("Introspection result missing fields: "+Object(r.a)(e));return Object(a.a)(e.fields,function(e){return e.name},function(e){if(!e.args)throw new Error("Introspection result missing field args: "+Object(r.a)(e));return{description:e.description,deprecationReason:e.deprecationReason,type:(t=e.type,n=v(t),Object(c.N)(n)||Object(i.a)(0,"Introspection must provide output type for fields."),n),args:w(e.args)};var t,n})}function w(e){return Object(a.a)(e,function(e){return e.name},_)}function _(e){var t=function(t){var n=v(e.type);return Object(c.F)(n)||Object(i.a)(0,"Introspection must provide input type for arguments."),n}(),n=e.defaultValue?Object(l.a)(Object(s.c)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n}}var E=n.types.map(function(e){return m(e.name)}),A=n.queryType?y(n.queryType):null,S=n.mutationType?y(n.mutationType):null,D=n.subscriptionType?y(n.subscriptionType):null,T=n.directives?n.directives.map(function(e){if(!e.args)throw new Error("Introspection result missing directive args: "+Object(r.a)(e));if(!e.locations)throw new Error("Introspection result missing directive locations: "+Object(r.a)(e));return new p.c({name:e.name,description:e.description,locations:e.locations.slice(),args:w(e.args)})}):[];return new u.a({query:A,mutation:S,subscription:D,types:E,directives:T,assumeValid:t&&t.assumeValid,allowedLegacyNames:t&&t.allowedLegacyNames})}},Txjg:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("Zn8D");function i(){return Object(r.a)(1)}},Tzvz:function(e,t,n){"use strict";n.r(t);var r=n("93gR"),i=n("EMzn"),o=n("EkME"),a=n("EkS5"),l=n("dWS+"),s=n("jI7m"),u=n("rWdj"),c=n("2C6G"),p=n("/kEc"),d=n("das/");function h(e){return Boolean(e&&"function"==typeof e.then)}function f(e,t){switch(t.operation){case"query":var n=e.getQueryType();if(!n)throw new l.a("Schema does not define the required query root type.",[t]);return n;case"mutation":var r=e.getMutationType();if(!r)throw new l.a("Schema is not configured for mutations.",[t]);return r;case"subscription":var i=e.getSubscriptionType();if(!i)throw new l.a("Schema is not configured for subscriptions.",[t]);return i;default:throw new l.a("Can only have query, mutation and subscription operations.",[t])}}var g=n("umOc"),v=n("/jXB"),m=n("5XwX"),y=n("axIb"),b=n("LViu"),C=n("4suF");function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t,n,r,i,o,a){return 1===arguments.length?E(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):E(e,t,n,r,i,o,a)}function E(e,t,n,r,i,o,a){D(e,t,i);var l=T(e,t,n,r,i,o,a);if(Array.isArray(l))return{errors:l};var s=function(e,t,n){var r=f(e.schema,t),i=O(e,r,t.selectionSet,Object.create(null),Object.create(null));try{var o="mutation"===t.operation?function(e,t,n,r,i){return o=Object.keys(i),a=function(r,o){var a=i[o],l=S(void 0,o),s=I(e,t,n,a,l);return void 0===s?r:h(s)?s.then(function(e){return r[o]=e,r}):(r[o]=s,r)},l=Object.create(null),o.reduce(function(e,t){return h(e)?e.then(function(e){return a(e,t)}):a(e,t)},l);var o,a,l}(e,r,n,0,i):x(e,r,n,void 0,i);return h(o)?o.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):o}catch(a){return e.errors.push(a),null}}(l,l.operation,n);return function e(t,n){return h(n)?n.then(function(n){return e(t,n)}):0===t.errors.length?{data:n}:{errors:t.errors,data:n}}(l,s)}function A(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function S(e,t){return{prev:e,key:t}}function D(e,t,n){t||Object(c.a)(0,"Must provide document"),Object(r.a)(e),n&&"object"!==w(n)&&Object(c.a)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function T(e,t,n,r,i,o,a){for(var s,u,p=[],d=!1,h=Object.create(null),f=0;f0)return{errors:p};try{c=Object(i.a)(t)}catch(h){return{errors:[h]}}var d=Object(o.c)(e,c);return d.length>0?{errors:d}:_(e,c,n,a,l,s,u)}var Y=n("51nL"),X=n("19Hc"),J=n("y4cC"),ee=n("CbW8"),te=n("dQau"),ne=n("neE4"),re=n("L2ys"),ie=n("Xizt"),oe=n("F8X2");function ae(e,t){return new Promise(function(n){return n(t(e))})}function le(e){return{value:e,done:!1}}function se(e,t,n,r,i,o,a,l){return 1===arguments.length?ce(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver,e.subscribeFieldResolver):ce(e,t,n,r,i,o,a,l)}function ue(e){if(e instanceof l.a)return{errors:[e]};throw e}function ce(e,t,n,r,i,o,l,s){var u=pe(e,t,n,r,i,o,s),c=function(n){return _(e,t,n,r,i,o,l)};return u.then(function(e){return Object(a.d)(e)?function(e,t,n){var r,i,o,l,s,u,c=Object(a.c)(e);function p(e){return e.done?e:ae(e.value,t).then(le,i)}if("function"==typeof c.return&&(r=c.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(c).then(t,t)}),n){var d=n;o=function(e){return ae(e,d).then(le,i)}}return u=function(){return this},(s=a.a)in(l={next:function(){return c.next().then(p,o)},return:function(){return r?r.call(c).then(p,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof c.throw?c.throw(e).then(p,o):Promise.reject(e).catch(i)}})?Object.defineProperty(l,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[s]=u,l}(e,c,ue):e},ue)}function pe(e,t,n,r,i,o,c){D(e,t,i);try{var p=T(e,t,n,r,i,o,c);if(Array.isArray(p))return Promise.resolve({errors:p});var d=f(e,p.operation),h=O(p,d,p.operation.selectionSet,Object.create(null),Object.create(null)),g=Object.keys(h)[0],v=h[g],m=v[0].name.value,y=W(e,d,m);if(!y)throw new l.a('The subscription field "'.concat(m,'" is not defined.'),v);var b=y.subscribe||p.fieldResolver,C=S(void 0,g),w=V(p,y,v,d,C),_=k(p,y,v,b,n,w);return Promise.resolve(_).then(function(e){if(e instanceof Error)throw Object(s.a)(e,v,A(C));if(Object(a.d)(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+Object(u.a)(e))})}catch(E){return Promise.reject(E)}}var de=n("jOXf"),he=n("FQ53"),fe=n("sdW/"),ge=n("2Rkc"),ve=n("y8IY"),me=n("VlWk"),ye=n("E++1"),be=n("10sW"),Ce=n("g4S7"),we=n("AeAO"),_e=n("PmNC"),Ee=n("ZBm+"),Ae=n("A67W"),Se=n("r60r"),De=n("FduV"),Te=n("Vuqn"),xe=n("2/d+"),Oe=n("gggk"),Le=n("/C/i"),Me=n("sA7U"),Ie=n("lORA"),Ve=n("dwPZ"),ke=n("v96Q"),Ne=n("U4FY"),Fe=n("AW/X"),He=n("0xor"),je=n("cfc+"),Re=n("miOx"),Pe=n("PDj5"),Ze=n("SYjR");function Be(e,t){var n=_(e,Object(i.a)(Object(Pe.a)(t)));return(n.then||n.errors||!n.data)&&Object(c.a)(0),n.data}var Ue=n("TirB"),Ge=n("Yen0"),qe=n("kBjl"),ze=n("WXJZ"),We=n("S4Ci");function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t,n){Object(Y.b)(e)||Object(c.a)(0,"Must provide valid GraphQLSchema"),t&&t.kind===v.a.DOCUMENT||Object(c.a)(0,"Must provide valid Document AST"),n&&(n.assumeValid||n.assumeValidSDL)||Object(o.b)(t,e);for(var r,i=Object.create(null),a=Object.create(null),s=[],u=[],p=0;p-1:i==e)}}var n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){M={capture:!1,passive:!1}}}))}catch(se){}function Z(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=ie({},t),e[A]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Z.supportPointer};for(var r in n)!(r in t)&&(t[r]=n[r]);for(var i in P(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&I,q(e,"mousedown",this._onTapStart),q(e,"touchstart",this._onTapStart),t.supportPointer&&q(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(q(e,"dragover",this),q(e,"dragenter",this)),j.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function B(t,n){"clone"!==t.lastPullMode&&(n=!0),r&&r.state!==n&&(K(r,"display",n?"none":""),n||r.state&&(t.options.group.revertClone?(i.insertBefore(r,o),t._animate(e,r)):i.insertBefore(r,e)),r.state=n)}function U(e,t,n){if(e){n=n||D;do{if(">*"===t&&e.parentNode===n||ne(e,t))return e}while(e=G(e))}return null}function G(e){var t=e.host;return t&&t.nodeType?t:e.parentNode}function q(e,t,n){e.addEventListener(t,n,M)}function z(e,t,n){e.removeEventListener(t,n,M)}function W(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_," ")}}function K(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return D.defaultView&&D.defaultView.getComputedStyle?n=D.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function Q(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i*"!==t&&!ne(e,t)||n++;return n}function ne(e,t){if(e){var n=(t=t.split(".")).shift().toUpperCase(),r=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");return!(""!==n&&e.nodeName.toUpperCase()!=n||t.length&&((" "+e.className+" ").match(r)||[]).length!=t.length)}return!1}function re(e,t){var n,r;return function(){void 0===n&&(n=arguments,r=this,x(function(){1===n.length?e.call(r,n[0]):e.apply(r,n),n=void 0},t))}}function ie(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function oe(e){return L&&L.dom?L.dom(e).cloneNode(!0):O?O(e).clone(!0)[0]:e.cloneNode(!0)}function ae(e){return x(e,0)}function le(e){return clearTimeout(e)}return Z.prototype={constructor:Z,_onTapStart:function(t){var n,r=this,i=this.el,o=this.options,l=o.preventOnFilter,s=t.type,u=t.touches&&t.touches[0],c=(u||t).target,p=t.target.shadowRoot&&t.path&&t.path[0]||c,d=o.filter;if(function(e){for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&H.push(r)}}(i),!e&&!(/mousedown|pointerdown/.test(s)&&0!==t.button||o.disabled)&&!p.isContentEditable&&(c=U(c,o.draggable,i))&&a!==c){if(n=te(c,o.draggable),"function"==typeof d){if(d.call(this,t,c,this))return $(r,p,"filter",c,i,i,n),void(l&&t.preventDefault())}else if(d&&(d=d.split(",").some(function(e){if(e=U(p,e.trim(),i))return $(r,e,"filter",c,i,i,n),!0})))return void(l&&t.preventDefault());o.handle&&!U(p,o.handle,i)||this._prepareDragStart(t,u,c,n)}},_prepareDragStart:function(n,r,l,s){var u,c=this,p=c.el,d=c.options,f=p.ownerDocument;l&&!e&&l.parentNode===p&&(m=n,i=p,t=(e=l).parentNode,o=e.nextSibling,a=l,g=d.group,h=s,this._lastX=(r||n).clientX,this._lastY=(r||n).clientY,e.style["will-change"]="all",u=function(){c._disableDelayedDrag(),e.draggable=c.nativeDraggable,W(e,d.chosenClass,!0),c._triggerDragStart(n,r),$(c,i,"choose",e,i,i,h)},d.ignore.split(",").forEach(function(t){Q(e,t.trim(),X)}),q(f,"mouseup",c._onDrop),q(f,"touchend",c._onDrop),q(f,"touchcancel",c._onDrop),q(f,"selectstart",c),d.supportPointer&&q(f,"pointercancel",c._onDrop),d.delay?(q(f,"mouseup",c._disableDelayedDrag),q(f,"touchend",c._disableDelayedDrag),q(f,"touchcancel",c._disableDelayedDrag),q(f,"mousemove",c._disableDelayedDrag),q(f,"touchmove",c._disableDelayedDrag),d.supportPointer&&q(f,"pointermove",c._disableDelayedDrag),c._dragStartTimer=x(u,d.delay)):u())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),z(e,"mouseup",this._disableDelayedDrag),z(e,"touchend",this._disableDelayedDrag),z(e,"touchcancel",this._disableDelayedDrag),z(e,"mousemove",this._disableDelayedDrag),z(e,"touchmove",this._disableDelayedDrag),z(e,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(t,n){(n=n||("touch"==t.pointerType?t:null))?this._onDragStart(m={target:e,clientX:n.clientX,clientY:n.clientY},"touch"):this.nativeDraggable?(q(e,"dragend",this),q(i,"dragstart",this._onDragStart)):this._onDragStart(m,!0);try{D.selection?ae(function(){D.selection.empty()}):window.getSelection().removeAllRanges()}catch(se){}},_dragStarted:function(){if(i&&e){var t=this.options;W(e,t.ghostClass,!0),W(e,t.dragClass,!1),Z.active=this,$(this,i,"start",e,i,i,h)}else this._nulling()},_emulateDragOver:function(){if(y){if(this._lastX===y.clientX&&this._lastY===y.clientY)return;this._lastX=y.clientX,this._lastY=y.clientY,V||K(n,"display","none");var e=D.elementFromPoint(y.clientX,y.clientY),t=e,r=j.length;if(e&&e.shadowRoot&&(t=e=e.shadowRoot.elementFromPoint(y.clientX,y.clientY)),t)do{if(t[A]){for(;r--;)j[r]({clientX:y.clientX,clientY:y.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);V||K(n,"display","")}},_onTouchMove:function(e){if(m){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=o.clientX-m.clientX+i.x,l=o.clientY-m.clientY+i.y,s=e.touches?"translate3d("+a+"px,"+l+"px,0)":"translate("+a+"px,"+l+"px)";if(!Z.active){if(r&&F(N(o.clientX-this._lastX),N(o.clientY-this._lastY))5||t.clientX-(n.left+n.width)>5}(f,a)){if(0!==f.children.length&&f.children[0]!==n&&f===a.target&&(l=f.lastElementChild),l){if(l.animated)return;u=l.getBoundingClientRect()}B(C,w),!1!==Y(i,f,e,s,l,u,a)&&(e.contains(f)||(f.appendChild(e),t=f),this._animate(s,e),l&&this._animate(u,l))}else if(l&&!l.animated&&l!==e&&void 0!==l.parentNode[A]){c!==l&&(c=l,p=K(l),d=K(l.parentNode));var D=(u=l.getBoundingClientRect()).right-u.left,T=u.bottom-u.top,O=E.test(p.cssFloat+p.display)||"flex"==d.display&&0===d["flex-direction"].indexOf("row"),L=l.offsetWidth>e.offsetWidth,M=l.offsetHeight>e.offsetHeight,I=(O?(a.clientX-u.left)/D:(a.clientY-u.top)/T)>.5,V=l.nextElementSibling,N=!1;if(O){var F=e.offsetTop,H=l.offsetTop;N=F===H?l.previousElementSibling===e&&!L||I&&L:l.previousElementSibling===e||e.previousElementSibling===l?(a.clientY-u.top)/T>.5:H>F}else _||(N=V!==e&&!M||I&&M);var j=Y(i,f,e,s,l,u,a,N);!1!==j&&(1!==j&&-1!==j||(N=1===j),k=!0,x(J,30),B(C,w),e.contains(f)||(N&&!V?f.appendChild(e):l.parentNode.insertBefore(e,N?V:l)),t=e.parentNode,this._animate(s,e),this._animate(u,l))}}},_animate:function(e,t){var n=this.options.animation;if(n){var r=t.getBoundingClientRect();1===e.nodeType&&(e=e.getBoundingClientRect()),K(t,"transition","none"),K(t,"transform","translate3d("+(e.left-r.left)+"px,"+(e.top-r.top)+"px,0)"),K(t,"transition","all "+n+"ms"),K(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=x(function(){K(t,"transition",""),K(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;z(D,"touchmove",this._onTouchMove),z(D,"pointermove",this._onTouchMove),z(e,"mouseup",this._onDrop),z(e,"touchend",this._onDrop),z(e,"pointerup",this._onDrop),z(e,"touchcancel",this._onDrop),z(e,"pointercancel",this._onDrop),z(e,"selectstart",this)},_onDrop:function(a){var l=this.el,s=this.options;clearInterval(this._loopId),clearInterval(w.pid),clearTimeout(this._dragStartTimer),le(this._cloneId),le(this._dragStartId),z(D,"mouseover",this),z(D,"mousemove",this._onTouchMove),this.nativeDraggable&&(z(D,"drop",this),z(l,"dragstart",this._onDragStart)),this._offUpEvents(),a&&(b&&(a.preventDefault(),!s.dropBubble&&a.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),i!==t&&"clone"===Z.active.lastPullMode||r&&r.parentNode&&r.parentNode.removeChild(r),e&&(this.nativeDraggable&&z(e,"dragend",this),X(e),e.style["will-change"]="",W(e,this.options.ghostClass,!1),W(e,this.options.chosenClass,!1),$(this,i,"unchoose",e,t,i,h),i!==t?(f=te(e,s.draggable))>=0&&($(null,t,"add",e,t,i,h,f),$(this,i,"remove",e,t,i,h,f),$(null,t,"sort",e,t,i,h,f),$(this,i,"sort",e,t,i,h,f)):e.nextSibling!==o&&(f=te(e,s.draggable))>=0&&($(this,i,"update",e,t,i,h,f),$(this,i,"sort",e,t,i,h,f)),Z.active&&(null!=f&&-1!==f||(f=h),$(this,i,"end",e,t,i,h,f),this.save()))),this._nulling()},_nulling:function(){i=e=t=n=o=r=a=l=s=m=y=b=f=c=p=v=g=Z.active=null,H.forEach(function(e){e.checked=!0}),H.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragover":case"dragenter":e&&(this._onDragOver(t),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}(t));break;case"mouseover":this._onDrop(t);break;case"selectstart":t.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r=15&&(p=!1,s=!0);var _=y&&(u||p&&(null==w||w<12.11)),E=n||a&&l>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,D=function(e,t){var n=e.className,r=A(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return T(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}g?N=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(N=function(e){try{e.select()}catch(t){}});var R=function(){this.id=null};function P(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var W=[""];function K(e){for(;W.length<=e;)W.push(Q(W)+" ");return W[e]}function Q(e){return e[e.length-1]}function $(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&re.test(e)}function oe(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,r){var i=this;this.input=r,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=L("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=L("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=L("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[o],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: "+Z+"px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),a&&l<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),s||n&&m||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}function se(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ve(n,se(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ve(e.line,t):n<0?ve(e.line,0):e}(t,se(e,t.line).text.length)}function Ae(e,t){for(var n=[],r=0;r=t:o.to>t)?null:o.to))}return r}(n,i,a),s=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft))&&(r||(r=[])).push(new Te(a,null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var b=0;bt)&&(!n||Fe(n,o.marker)<0)&&(n=o.marker)}return n}function Ze(e,t,n,r,i){var o=se(e,t),a=De&&o.markedSpans;if(a)for(var l=0;l=0&&p<=0||c<=0&&p>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?me(u.to,n)>=0:me(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?me(u.from,r)<=0:me(u.from,r)<0)))return!0}}}function Be(e){for(var t;t=je(e);)e=t.find(-1,!0).line;return e}function Ue(e,t){var n=se(e,t),r=Be(n);return n==r?t:de(r)}function Ge(e,t){if(t>e.lastLine())return t;var n,r=se(e,t);if(!qe(e,r))return t;for(;n=Re(r);)r=n.find(1,!0).line;return de(r)+1}function qe(e,t){var n=De&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var $e=null;function Ye(e,t,n){var r;$e=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:$e=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:$e=i)}return null!=r?r:$e}var Xe=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,l){var s,u="ltr"==l?"L":"R";if(0==a.length||"ltr"==l&&!e.test(a))return!1;for(var c=a.length,p=[],d=0;d-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function it(e,t){var n=nt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function st(e){e.prototype.on=function(e,t){tt(this,e,t)},e.prototype.off=function(e,t){rt(this,e,t)}}function ut(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ct(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function pt(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function dt(e){ut(e),ct(e)}function ht(e){return e.target||e.srcElement}function ft(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var gt,vt,mt=function(){if(a&&l<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function yt(e){if(null==gt){var t=O("span","\u200b");x(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(gt=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=gt?O("span","\u200b"):O("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function bt(e){if(null!=vt)return vt;var t=x(e,document.createTextNode("A\u062eA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(vt=r.right-n.right<3)}var Ct,wt=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},_t=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(Ct){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(Ct){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Et="oncopy"in(Ct=O("div"))||(Ct.setAttribute("oncopy","return;"),"function"==typeof Ct.oncopy),At=null,St={},Dt={};function Tt(e){if("string"==typeof e&&Dt.hasOwnProperty(e))e=Dt[e];else if(e&&"string"==typeof e.name&&Dt.hasOwnProperty(e.name)){var t=Dt[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Tt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Tt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function xt(e,t){t=Tt(t);var n=St[t.name];if(!n)return xt(e,"text/plain");var r=n(e,t);if(Ot.hasOwnProperty(t.name)){var i=Ot[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ot={};function Lt(e,t){H(t,Ot.hasOwnProperty(e)?Ot[e]:Ot[e]={})}function Mt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function It(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Vt(e,t,n){return!e.startState||e.startState(t,n)}var kt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};kt.prototype.eol=function(){return this.pos>=this.string.length},kt.prototype.sol=function(){return this.pos==this.lineStart},kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},kt.prototype.next=function(){if(this.post},kt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},kt.prototype.skipToEnd=function(){this.pos=this.string.length},kt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},kt.prototype.backUp=function(e){this.pos-=e},kt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},kt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},kt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},kt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Nt=function(e,t){this.state=e,this.lookAhead=t},Ft=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Ht(e,t,n,r){var i=[e.state.modeGen],o={};zt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,l=function(r){n.baseTokens=i;var l=e.state.overlays[r],s=1,u=0;n.state=!0,zt(e,t.text,l.mode,n,function(e,t){for(var n=s;ue&&i.splice(s,1,e,i[s+1],r),s+=2,u=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Mt(e.doc.mode,r.state),o=Ht(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Ft(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=se(o,l-1),u=s.stateAfter;if(u&&(!n||l+(u instanceof Nt?u.lookAhead:0)<=o.modeFrontier))return l;var c=j(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=l-1,r=c)}return i}(e,t,n),a=o>r.first&&se(r,o-1).stateAfter,l=a?Ft.fromSaved(r,a,o):new Ft(r,Vt(r.mode),o);return r.iter(o,t,function(n){Pt(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ft.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ft.fromSaved=function(e,t,n){return t instanceof Nt?new Ft(e,Mt(e.mode,t.state),n,t.lookAhead):new Ft(e,Mt(e.mode,t),n)},Ft.prototype.save=function(e){var t=!1!==e?Mt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nt(t,this.maxLookAhead):t};var Ut=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Gt(e,t,n,r){var i,o,a=e.doc,l=a.mode,s=se(a,(t=Ee(a,t)).line),u=Rt(e,t.line,n),c=new kt(s.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(l=!1,a&&Pt(e,t,r,p.pos),p.pos=t.length,s=null):s=qt(Bt(n,p,r.state,d),o),d){var h=d[0].name;h&&(s="m-"+(s?h+" "+s:h))}if(!l||c!=s){for(;u1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&p.from<=u);d++);if(p.to>=c)return e(n,r,i,o,a,l,s);e(n,r.slice(0,p.to-u),i,o,null,l,s),o=null,r=r.slice(p.to-u),u=p.to}}}function nn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function rn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,s,u,c,p,d,h=i.length,f=0,g=1,v="",m=0;;){if(m==f){s=u=c=p=l="",d=null,m=1/0;for(var y=[],b=void 0,C=0;Cf||_.collapsed&&w.to==f&&w.from==f)?(null!=w.to&&w.to!=f&&m>w.to&&(m=w.to,u=""),_.className&&(s+=" "+_.className),_.css&&(l=(l?l+";":"")+_.css),_.startStyle&&w.from==f&&(c+=" "+_.startStyle),_.endStyle&&w.to==m&&(b||(b=[])).push(_.endStyle,w.to),_.title&&!p&&(p=_.title),_.collapsed&&(!d||Fe(d.marker,_)<0)&&(d=w)):w.from>f&&m>w.from&&(m=w.from)}if(b)for(var E=0;E=h)break;for(var S=Math.min(h,m);;){if(v){var D=f+v.length;if(!d){var T=D>S?v.slice(0,S-f):v;t.addToken(t,T,a?a+s:s,c,f+T.length==m?u:"",p,l)}if(D>=S){v=v.slice(S-f),f=S;break}f=D,c=""}v=i.slice(o,o=n[g++]),a=Yt(n[g++],t.cm.options)}}else for(var x=1;xn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Mn(e,t,n,r){return kn(e,Vn(e,t),n,r)}function In(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Hn(t.map,n,r),s=o.node,u=o.start,c=o.end,p=o.collapse;if(3==s.nodeType){for(var d=0;d<4;d++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}())return n;var r=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*r,right:n.right*r,top:n.top*i,bottom:n.bottom*i}}(0,i))}else{var h;u>0&&(p=r="right"),i=e.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==r?h.length-1:0]:s.getBoundingClientRect()}if(a&&l<9&&!u&&(!i||!i.left&&!i.right)){var f=s.parentNode.getClientRects()[0];i=f?{left:f.left,right:f.left+rr(e.display),top:f.top,bottom:f.bottom}:Fn}for(var g=i.top-t.rect.top,v=i.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=s-l)-1,t>=s&&(a="right")),null!=i){if(r=e[u+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==s-l)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Rn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a("before"==u?s-1:s,"before"==u);function c(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}var p=Ye(l,s,u),d=$e,h=c(s,p,"before"==u);return null!=d&&(h.other=c(s,d,"before"!=u)),h}function Qn(e,t){var n=0;t=Ee(e.doc,t),e.options.lineWrapping||(n=rr(e.display)*t.ch);var r=se(e.doc,t.line),i=We(r)+An(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function $n(e,t,n,r,i){var o=ve(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Yn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return $n(r.first,0,null,!0,-1);var i=he(r,n),o=r.first+r.size-1;if(i>o)return $n(r.first+r.size-1,se(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=se(r,i);;){var l=tr(e,a,i,t,n),s=Pe(a,l.ch+(l.xRel>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==i)return u;a=se(r,i=u.line)}}function Xn(e,t,n,r){r-=Gn(t);var i=t.text.length,o=ae(function(t){return kn(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=ae(function(t){return kn(e,n,t).top>r},o,i)}}function Jn(e,t,n,r){return n||(n=Vn(e,t)),Xn(e,t,n,qn(e,t,kn(e,n,r),"line").top)}function er(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function tr(e,t,n,r,i){i-=We(t);var o=Vn(e,t),a=Gn(t),l=0,s=t.text.length,u=!0,c=Je(t,e.doc.direction);if(c){var p=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var l=Xn(e,t,r,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,p=null,d=0;d=u||h.to<=s)){var f=kn(e,r,1!=h.level?Math.min(u,h.to)-1:Math.max(s,h.from)).right,g=fg)&&(c=h,p=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}:function(e,t,n,r,i,o,a){var l=ae(function(l){var s=i[l],u=1!=s.level;return er(Kn(e,ve(n,u?s.to:s.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=1!=s.level,c=Kn(e,ve(n,u?s.from:s.to,u?"after":"before"),"line",t,r);er(c,o,a,!0)&&c.top>a&&(s=i[l-1])}return s})(e,t,n,o,c,r,i);l=(u=1!=p.level)?p.from:p.to-1,s=u?p.to:p.from-1}var d,h,f=null,g=null,v=ae(function(t){var n=kn(e,o,t);return n.top+=a,n.bottom+=a,!!er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(f=t,g=n),!0)},l,s),m=!1;if(g){var y=r-g.left=C.bottom}return $n(n,v=oe(t.text,v,1),h,m,r-d)}function nr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Nn){Nn=O("pre");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(O("br"));Nn.appendChild(document.createTextNode("x"))}x(e.measure,Nn);var n=Nn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function rr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t]);x(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ir(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:or(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function or(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ar(e){var t=nr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/rr(e.display)-3);return function(i){if(qe(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||l.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(g,n||0,null==r?d:r,function(e,t,i,p){var v="ltr"==i,m=h(e,v?"left":"right"),y=h(t-1,v?"right":"left"),b=null==n&&0==e,C=null==r&&t==d,w=0==p,_=!g||p==g.length-1;if(y.top-m.top<=3){var E=(u?b:C)&&w?l:(v?m:y).left;c(E,m.top,((u?C:b)&&_?s:(v?y:m).right)-E,m.bottom)}else{var A,S,D,T;v?(A=u&&b&&w?l:m.left,S=u?s:f(e,i,"before"),D=u?l:f(t,i,"after"),T=u&&C&&_?s:y.right):(A=u?f(e,i,"before"):l,S=!u&&b&&w?s:m.right,D=!u&&C&&_?l:y.left,T=u?f(t,i,"after"):s),c(A,m.top,S-A,m.bottom),m.bottom0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function vr(e){e.state.focused||(e.display.input.focus(),yr(e))}function mr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,br(e))},100)}function yr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(it(e,"focus",e,t),e.state.focused=!0,V(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),gr(e))}function br(e,t){e.state.delayingBlurEvent||(e.state.focused&&(it(e,"blur",e,t),e.state.focused=!1,D(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Cr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||c<-.005)&&(pe(i.line,o),wr(i.line),i.rest))for(var p=0;p=a&&(o=he(t,We(se(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function Er(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=or(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;ao&&(t.bottom=t.top+o);var l=e.doc.height+Sn(n),s=t.bottom>l-r;if(t.topi+o){var u=Math.min(t.top,(s?l:t.bottom)-o);u!=i&&(a.scrollTop=u)}var c=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=xn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+c-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function Dr(e,t){null!=t&&(Or(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Tr(e){Or(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function xr(e,t,n){null==t&&null==n||Or(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Or(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Lr(e,Qn(e,t.from),Qn(e,t.to),t.margin))}function Lr(e,t,n,r){var i=Sr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});xr(e,i.scrollLeft,i.scrollTop)}function Mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||si(e,{top:t}),Ir(e,t,!0),n&&si(e),ri(e,100))}function Ir(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Vr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Er(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function kr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Sn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Tn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Nr=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),tt(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),tt(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Nr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;return n?(this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0",this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+(e.viewHeight-(t?r:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),t?(this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+(e.viewWidth-e.barLeft-(n?r:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Nr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Nr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Nr.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=y&&!h?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Nr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)})},Nr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Fr=function(){};function Hr(e,t){t||(t=kr(e));var n=e.display.barWidth,r=e.display.barHeight;jr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Cr(e),jr(e,kr(e)),n=e.display.barWidth,r=e.display.barHeight}function jr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Fr.prototype.update=function(){return{bottom:0,right:0}},Fr.prototype.setScrollLeft=function(){},Fr.prototype.setScrollTop=function(){},Fr.prototype.clear=function(){};var Rr={native:Nr,null:Fr};function Pr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Rr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),tt(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Vr(e,t):Mr(e,t)},e),e.display.scrollbars.addClass&&V(e.display.wrapper,e.display.scrollbars.addClass)}var Zr=0;function Br(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Zr},t=e.curOp,ln?ln.ops.push(t):t.ownsGroup=ln={ops:[t],delayedCallbacks:[]}}function Ur(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function qr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Cr(t),e.barMeasure=kr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Mn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Tn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function zr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!f){var o=O("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-An(e.display))+"px;\n height: "+(t.bottom-t.top+Tn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ve(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ve(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Kn(e,t),s=n&&n!=t?Kn(e,n):l,u=Sr(e,i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),c=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=u.scrollTop&&(Mr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Vr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}(t,Ee(r,e.scrollToPos.from),Ee(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;at)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)De&&Ue(e.doc,t)i.viewFrom?ei(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)ei(e);else if(t<=i.viewFrom){var o=ti(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):ei(e)}else if(n>=i.viewTo){var a=ti(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):ei(e)}else{var l=ti(e,t,t,-1),s=ti(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(an(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):ei(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==P(a,n)&&a.push(n)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ti(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!De||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;Ue(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function ni(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Rt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Mt(t.mode,r.state):null,s=Ht(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!p&&dn)return ri(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Kr(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==ni(e))return!1;Ar(e)&&(ei(e),t.dims=ir(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),De&&(o=Ue(e.doc,o),a=Ge(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=an(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=an(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=We(se(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=ni(e);if(!l&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=I();if(!t||!M(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&M(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return s&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,p=0;p-1&&(h=!1),pn(e,d,c,n)),h&&(T(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ge(e.options,c)))),a=d.node.nextSibling}else{var f=yn(e,d,c,n);o.insertBefore(f,a)}c+=d.size}for(;a;)a=l(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=I()&&(e.activeElt.focus(),e.anchorNode&&M(document.body,e.anchorNode)&&M(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function li(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=xn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Sn(e.display)-On(e),n.top)}),t.visible=_r(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ai(e,t);r=!1){Cr(e);var i=kr(e);cr(e),Hr(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function si(e,t){var n=new oi(e,t);if(ai(e,n)){Cr(e),li(e,n);var r=kr(e);cr(e),Hr(e,r),ci(e,r),n.finish()}}function ui(e){e.display.sizer.style.marginLeft=e.display.gutters.offsetWidth+"px"}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Tn(e)+"px"}function pi(e){var t=e.display.gutters,n=e.options.gutters;T(t);for(var r=0;r-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}oi.prototype.signal=function(e,t){lt(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;el.clientHeight;if(i&&l.scrollWidth>l.clientWidth||o&&u){if(o&&y&&s)e:for(var c=t.target,d=a.view;c!=l;c=c.parentNode)for(var h=0;h=0&&me(e,r.to())<=0)return n}return-1};var bi=function(e,t){this.anchor=e,this.head=t};function Ci(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return me(e.from(),t.from())}),n=P(t,i);for(var o=1;o0:s>=0){var u=we(l.from(),a.from()),c=Ce(l.to(),a.to()),p=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new bi(p?c:u,p?u:c))}}return new yi(t,n)}function wi(e,t){return new yi([new bi(e,t||e)],0)}function _i(e){return e.text?ve(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ei(e,t){if(me(e,t.from)<0)return e;if(me(e,t.to)<=0)return _i(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=_i(t).ch-t.to.ch),ve(n,r)}function Ai(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,f-1),e.insert(l.line+1,m)}un(e,"change",e,t)}function Li(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;al-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ni(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}(i,i.lastOp==r)))a=Q(o.changes),0==me(t.from,t.to)&&0==me(t.from,a.to)?a.to=_i(t):o.changes.push(ki(e,t));else{var s=Q(i.done);for(s&&s.ranges||Hi(e.sel,i.done),o={changes:[ki(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||it(e,"historyAdded")}function Hi(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ji(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Ri(e){if(!e)return null;for(var t,n=0;n-1&&(Q(l)[p]=u[p],delete u[p])}}}return r}function Bi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=me(t,i)<0;o!=me(n,i)<0?(i=t,t=n):o!=me(t,n)<0&&(t=n)}return new bi(i,t)}return new bi(n||t,t)}function Ui(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ki(e,new yi([Bi(e.sel.primary(),t,n,i)],0),r)}function Gi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(i&&(it(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),c=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(u=to(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=me(u,n))&&(r<0?c<0:c>0))return Ji(e,u,t,r,i)}var p=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(p=to(e,p,r,p.line==t.line?o:null)),p?Ji(e,p,t,r,i):null}}return t}function eo(e,t,n,r,i){var o=r||1;return Ji(e,t,n,o,i)||!i&&Ji(e,t,n,o,!0)||Ji(e,t,n,-o,i)||!i&&Ji(e,t,n,-o,!0)||(e.cantEdit=!0,ve(e.first,0))}function to(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?Ee(e,ve(t.line-1)):null:n>0&&t.ch==(r||se(e,t.line)).text.length?t.line0)){var c=[s,1],p=me(u.from,l.from),d=me(u.to,l.to);(p<0||!a.inclusiveLeft&&!p)&&c.push({from:u.from,to:l.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:l.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)oo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else oo(e,t)}}function oo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=me(t.from,t.to)){var n=Ai(e,t);Fi(e,t,n,e.cm?e.cm.curOp.id:NaN),so(e,t,n,Le(e,t));var r=[];Li(e,function(e,n){n||-1!=P(r,e.history)||(ho(e.history,t),r.push(e.history)),so(e,t,null,Le(e,t))})}}function ao(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--h){var f=d(h);if(f)return f.v}}}}function lo(e,t){if(0!=t&&(e.first+=t,e.sel=new yi($(e.sel.ranges,function(e){return new bi(ve(e.anchor.line+t,e.anchor.ch),ve(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Xr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ve(o,se(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ue(e,t.from,t.to),n||(n=Ai(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=de(Be(se(r,o.line))),r.iter(s,a.line+1,function(e){if(e==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&at(e),Oi(r,t,n,ar(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=Ke(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=se(e,r).stateAfter;if(i&&(!(i instanceof Nt)||r+i.lookAhead1||!(this.children[0]instanceof go))){var l=[];this.collapse(l),this.children=[new go(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ze(e,t.line,t,n,o)||t.line!=n.line&&Ze(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");De=!0}o.addToHistory&&Fi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,u=e.cm;if(e.iter(s,n.line+1,function(e){u&&o.collapsed&&!u.options.lineWrapping&&Be(e)==u.display.maxLine&&(l=!0),o.collapsed&&s!=t.line&&pe(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Te(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s}),o.collapsed&&e.iter(t.line,n.line+1,function(t){qe(e,t)&&pe(t,0)}),o.clearOnEnter&&tt(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Se=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++bo,o.atomic=!0),u){if(l&&(u.curOp.updateMaxLine=!0),o.collapsed)Xr(u,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var c=t.line;c<=n.line;c++)Jr(u,c,"text");o.atomic&&Yi(u.doc),un(u,"markerAdded",u,o)}return o}Co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Br(e),lt(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Xr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Yi(e.doc)),e&&un(e,"markerCleared",e,this,r,i),t&&Ur(e),this.parent&&this.parent.clear()}},Co.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)io(this,r[s]);l?Wi(this,l):this.cm&&Tr(this.cm)}),undo:Yr(function(){ao(this,"undo")}),redo:Yr(function(){ao(this,"redo")}),undoSelection:Yr(function(){ao(this,"undo",!0)}),redoSelection:Yr(function(){ao(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Ee(this,e),t=Ee(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),Ee(this,ve(n,t))},indexFromPos:function(e){var t=(e=Ee(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),Qi(t.doc,wi(n,n)),p)for(var d=0;d=0;t--)uo(e.doc,"",r[t].from,r[t].to,"+delete");Tr(e)})}function zo(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Wo(e,t,n){var r=zo(e,t.ch,n);return null==r?null:new ve(t.line,r,n<0?"after":"before")}function Ko(e,t,n,r,i){if(e){var o=Je(n,t.doc.direction);if(o){var a,l=i<0?Q(o):o[0],s=i<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var u=Vn(t,n),c=kn(t,u,a=i<0?n.text.length-1:0).top;a=ae(function(e){return kn(t,u,e).top==c},i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=zo(n,a,1))}else a=i<0?l.to:l.from;return new ve(r,a,s)}}return new ve(r,i<0?n.text.length:0,i<0?"before":"after")}Ho.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ho.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ho.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ho.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ho.default=y?Ho.macDefault:Ho.pcDefault;var Qo={selectAll:no,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return qo(e,function(t){if(t.empty()){var n=se(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ve(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ve(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=se(e.doc,i.line-1).text;a&&(i=new ve(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ve(i.line-1,a.length-1),i,"+transpose"))}n.push(new bi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Kr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(me((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(me(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=Qr(e,function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,rt(i.wrapper.ownerDocument,"mouseup",u),rt(i.wrapper.ownerDocument,"mousemove",c),rt(i.scroller,"dragstart",p),rt(i.scroller,"drop",u),o||(ut(t),r.addNew||Ui(e.doc,n,null,null,r.extend),s||a&&9==l?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),tt(i.wrapper.ownerDocument,"mouseup",u),tt(i.wrapper.ownerDocument,"mousemove",c),tt(i.scroller,"dragstart",p),tt(i.scroller,"drop",u),mr(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;ut(t);var a,l,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),a=l>-1?u[l]:new bi(n,n)):(a=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new bi(n,n)),n=sr(e,t,!0,!0),l=-1;else{var c=pa(e,n,r.unit);a=r.extend?Bi(a,c.anchor,c.head,r.extend):c}r.addNew?-1==l?(l=u.length,Ki(o,Ci(e,u.concat([a]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Ki(o,Ci(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):qi(o,l,a,G):(l=0,Ki(o,new yi([a],0),G),s=o.sel);var p=n,d=i.wrapper.getBoundingClientRect(),h=0;function f(t){e.state.selectingText=!1,h=1/0,ut(t),i.input.focus(),rt(i.wrapper.ownerDocument,"mousemove",g),rt(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=Qr(e,function(t){0!==t.buttons&&ft(t)?function t(u){var c=++h,f=sr(e,u,!0,"rectangle"==r.unit);if(f)if(0!=me(f,p)){e.curOp.focus=I(),function(t){if(0!=me(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],u=e.options.tabSize,c=j(se(o,n.line).text,n.ch,u),d=j(se(o,t.line).text,t.ch,u),h=Math.min(c,d),f=Math.max(c,d),g=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=v;g++){var m=se(o,g).text,y=z(m,h,u);h==f?i.push(new bi(ve(g,y),ve(g,y))):m.length>y&&i.push(new bi(ve(g,y),ve(g,z(m,f,u))))}i.length||i.push(new bi(n,n)),Ki(o,Ci(e,s.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,C=a,w=pa(e,t,r.unit),_=C.anchor;me(w.anchor,_)>0?(b=w.head,_=we(C.from(),w.anchor)):(b=w.anchor,_=Ce(C.to(),w.head));var E=s.ranges.slice(0);E[l]=function(e,t){var n=t.anchor,r=t.head,i=se(e.doc,n.line);if(0==me(n,r)&&n.sticky==r.sticky)return t;var o=Je(i);if(!o)return t;var a=Ye(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,u=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ye(o,r.ch,r.sticky),p=c-a||(r.ch-n.ch)*(1==l.level?-1:1);s=c==u-1||c==u?p<0:p>0}var d=o[u+(s?-1:0)],h=s==(1==d.level),f=h?d.from:d.to,g=h?"after":"before";return n.ch==f&&n.sticky==g?t:new bi(new ve(n.line,f,g),r)}(e,new bi(Ee(o,_),b)),Ki(o,Ci(e,E,l),G)}}(f);var g=_r(i,o);(f.line>=g.to||f.lined.bottom?20:0;v&&setTimeout(Qr(e,function(){h==c&&(i.scroller.scrollTop+=v,t(u))}),50)}}(t):f(t)}),v=Qr(e,f);e.state.selectingText=v,tt(i.wrapper.ownerDocument,"mousemove",g),tt(i.wrapper.ownerDocument,"mouseup",v)}(e,r,t,o)}(t,r,o,e):ht(e)==n.scroller&&ut(e):2==i?(r&&Ui(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(E?t.display.input.onContextMenu(e):mr(t)))}}function pa(e,t,n){if("char"==n)return new bi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new bi(ve(t.line,0),Ee(e.doc,ve(t.line+1,0)));var r=n(e,t);return new bi(r.from,r.to)}function da(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ut(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!lt(e,n))return pt(t);o-=l.top-a.viewOffset;for(var s=0;s=i)return it(e,n,e,he(e.doc,o),e.options.gutters[s],t),pt(t)}}function ha(e,t){return da(e,t,"gutterClick",!0)}function fa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zn(e)}ua.prototype.compare=function(e,t,n){return this.time+400>e&&0==me(t,this.pos)&&n==this.button};var ga={toString:function(){return"CodeMirror.Init"}},va={},ma={};function ya(e){pi(e),Xr(e),Er(e)}function ba(e,t,n){if(!t!=!(n&&n!=ga)){var r=e.display.dragFunctions,i=t?tt:rt;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ca(e){e.options.lineWrapping?(V(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(D(e.display.wrapper,"CodeMirror-wrap"),Qe(e)),lr(e),Xr(e),Zn(e),setTimeout(function(){return Hr(e)},100)}function wa(e,t){var n=this;if(!(this instanceof wa))return new wa(e,t);this.options=t=t?H(t):{},H(va,t,!1),di(t);var r=t.value;"string"==typeof r?r=new Do(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new wa.inputStyles[t.inputStyle](this),o=this.display=new le(e,r,i);for(var u in o.wrapper.CodeMirror=this,pi(this),fa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!m&&o.input.focus(),a&&l<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;tt(t.scroller,"mousedown",Qr(e,ca)),tt(t.scroller,"dblclick",a&&l<11?Qr(e,function(t){if(!ot(e,t)){var n=sr(e,t);if(n&&!ha(e,t)&&!En(e.display,t)){ut(t);var r=e.findWordAt(n);Ui(e.doc,r.anchor,r.head)}}}):function(t){return ot(e,t)||ut(t)}),tt(t.scroller,"contextmenu",function(t){return function(e,t){En(e.display,t)||function(e,t){return!!lt(e,"gutterContextMenu")&&da(e,t,"gutterContextMenu",!1)}(e,t)||ot(e,t,"contextmenu")||E||e.display.input.onContextMenu(t)}(e,t)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}tt(t.scroller,"touchstart",function(i){if(!ot(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ha(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),tt(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),tt(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!En(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,l=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new bi(l,l):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(l):new bi(ve(l.line,0),Ee(e.doc,ve(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ut(n)}i()}),tt(t.scroller,"touchcancel",i),tt(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Mr(e,t.scroller.scrollTop),Vr(e,t.scroller.scrollLeft,!0),it(e,"scroll",e))}),tt(t.scroller,"mousewheel",function(t){return mi(e,t)}),tt(t.scroller,"DOMMouseScroll",function(t){return mi(e,t)}),tt(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ot(e,t)||dt(t)},over:function(t){ot(e,t)||(function(e,t){var n=sr(e,t);if(n){var r=document.createDocumentFragment();dr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),x(e.display.dragCursor,r)}}(e,t),dt(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-To<100))dt(t);else if(!ot(e,t)&&!En(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:Qr(e,xo),leave:function(t){ot(e,t)||Oo(e)}};var s=t.input.getField();tt(s,"keyup",function(t){return oa.call(e,t)}),tt(s,"keydown",Qr(e,ia)),tt(s,"keypress",Qr(e,aa)),tt(s,"focus",function(t){return yr(e,t)}),tt(s,"blur",function(t){return br(e,t)})}(this),function(){var e;Mo||(tt(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Lo(Io)},100))}),tt(window,"blur",function(){return Lo(br)}),Mo=!0)}(),Br(this),this.curOp.forceUpdate=!0,Mi(this,r),t.autofocus&&!m||this.hasFocus()?setTimeout(F(yr,this),20):br(this),ma)ma.hasOwnProperty(u)&&ma[u](n,t[u],ga);Ar(this),t.finishInit&&t.finishInit(this);for(var c=0;c<_a.length;++c)_a[c](n);Ur(this),s&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}wa.defaults=va,wa.optionHandlers=ma;var _a=[];function Ea(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Rt(e,t).state:n="prev");var a=e.options.tabSize,l=se(o,t),s=j(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u,c=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((u=o.mode.indent(i,l.text.slice(c.length),l.text))==B||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?j(se(o,t-1).text,null,a):0:"add"==n?u=s+e.options.indentUnit:"subtract"==n?u=s-e.options.indentUnit:"number"==typeof n&&(u=s+n),u=Math.max(0,u);var p="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/a);h;--h)d+=a,p+="\t";if(d1)if(Aa&&Aa.text.join("\n")==t){if(r.ranges.length%Aa.text.length==0){u=[];for(var c=0;c=0;p--){var d=r.ranges[p],h=d.from(),f=d.to();d.empty()&&(n&&n>0?h=ve(h.line,h.ch-n):e.state.overwrite&&!l?f=ve(f.line,Math.min(se(o,f.line).text.length,f.ch+Q(s).length)):l&&Aa&&Aa.lineWise&&Aa.text.join("\n")==t&&(h=f=ve(h.line,0))),a=e.curOp.updateInput;var g={from:h,to:f,text:u?u[p%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming?"cut":"+input")};io(e.doc,g),un(e,"inputRead",e,g)}t&&!l&&xa(e,t),Tr(e),e.curOp.updateInput=a,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Ta(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Kr(t,function(){return Da(t,n,0,null,"paste")}),!0}function xa(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l-1){a=Ea(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(se(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ea(e,i.head.line,"smart"));a&&un(e,"electricInput",e,i.head.line)}}}function Oa(e){for(var t=[],n=[],r=0;r=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Ye(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=c.begin))return new ve(n.line,d,p?"before":"after")}var h=function(e,t,r){for(var o=function(e,t){return t?new ve(n.line,s(e,1),"before"):new ve(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=l?r.begin:s(r.end,-1);if(a.from<=u&&u0?c.end:s(c.begin,-1);return null==g||r>0&&g==t.text.length||!(f=h(r>0?0:i.length-1,r,u(g)))?null:f}(e.cm,l,t,n):Wo(l,t,n))){if(r||(a=t.line+n)=e.first+e.size||(t=new ve(a,t.ch,t.sticky),!(l=se(e,a))))return!1;t=Ko(i,e.cm,l,t.line,n)}else t=o;return!0}if("char"==r)s();else if("column"==r)s(!0);else if("word"==r||"group"==r)for(var u=null,c="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||s(!d);d=!1){var h=l.text.charAt(t.ch)||"\n",f=te(h,p)?"w":c&&"\n"==h?"n":!c||/\s/.test(h)?null:"p";if(!c||d||f||(f="s"),u&&u!=f){n<0&&(n=1,s(),t.sticky="after");break}if(f&&(u=f),n>0&&!s(!d))break}var g=eo(e,t,o,a,!0);return ye(o,g)&&(g.hitSide=!0),g}function Va(e,t,n,r){var i,o,a=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*nr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Yn(e,l,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var ka=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Na(e,t){var n=In(e,t.line);if(!n||n.hidden)return null;var r=se(e.doc,t.line),i=Ln(n,r,t.line),o=Je(r,e.doc.direction),a="left";o&&(a=Ye(o,t.ch)%2?"right":"left");var l=Hn(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Fa(e,t){return t&&(e.bad=!0),e}function Ha(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Fa(e.clipPos(ve(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Na(t,i)||{node:s[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=ve(a.line-1,se(r.doc,a.line-1).length)),l.ch==se(r.doc,l.line).text.length&&l.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=de(i.view[0].line),n=i.view[0].node):(t=de(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,u,c=ur(r,l.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=de(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function u(){a&&(o+=l,s&&(o+=l),a=s=!1)}function c(e){e&&(u(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,d=t.getAttribute("cm-marker");if(d){var h=e.findMarks(ve(r,0),ve(i+1,0),(v=+d,function(e){return e.id==v}));return void(h.length&&(o=h[0].find(0))&&c(ue(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;f&&u();for(var g=0;g1&&d.length>1;)if(Q(p)==Q(d))p.pop(),d.pop(),s--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var h=0,f=0,g=p[0],v=d[0],m=Math.min(g.length,v.length);ha.ch&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)h--,f++;p[p.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),p[0]=p[0].slice(h).replace(/\u200b+$/,"");var w=ve(t,h),_=ve(s,d.length?Q(d).length-f:0);return p.length>1||p[0]||me(w,_)?(uo(r.doc,p,w,_,"+input"),!0):void 0},ka.prototype.ensurePolled=function(){this.forceCompositionEnd()},ka.prototype.reset=function(){this.forceCompositionEnd()},ka.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ka.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},ka.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Kr(this.cm,function(){return Xr(e.cm)})},ka.prototype.setUneditable=function(e){e.contentEditable="false"},ka.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Qr(this.cm,Da)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},ka.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},ka.prototype.onContextMenu=function(){},ka.prototype.resetPosition=function(){},ka.prototype.needsContentAttribute=!0;var Ra=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};Ra.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ot(r,e)){if(r.somethingSelected())Sa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Oa(r);Sa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,U):(n.prevInput="",i.value=t.text.join("\n"),N(i))}"cut"==e.type&&(r.state.cutIncoming=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),tt(i,"input",function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),tt(i,"paste",function(e){ot(r,e)||Ta(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),tt(i,"cut",o),tt(i,"copy",o),tt(e.scroller,"paste",function(t){En(e,t)||ot(r,t)||(r.state.pasteIncoming=!0,n.focus())}),tt(e.lineSpace,"selectstart",function(t){En(e,t)||ut(t)}),tt(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),tt(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ra.prototype.createField=function(e){this.wrapper=Ma(),this.textarea=this.wrapper.firstChild},Ra.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=pr(e);if(e.options.moveInputWithCursor){var i=Kn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ra.prototype.showSelection=function(e){var t=this.cm.display;x(t.cursorDiv,e.cursors),x(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ra.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&N(this.textarea),a&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null))}},Ra.prototype.getField=function(){return this.textarea},Ra.prototype.supportsTouch=function(){return!1},Ra.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||I()!=this.textarea))try{this.textarea.focus()}catch(Ct){}},Ra.prototype.blur=function(){this.textarea.blur()},Ra.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ra.prototype.receivedFocus=function(){this.slowPoll()},Ra.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ra.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Ra.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||_t(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,u=Math.min(r.length,i.length);s1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ra.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ra.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},Ra.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea,o=sr(n,e),u=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Qr(n,Ki)(n.doc,wi(o),U);var c=i.style.cssText,d=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var h,f=t.wrapper.getBoundingClientRect();if(i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(h=window.scrollY),r.input.focus(),s&&window.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&l>=9&&v(),E){dt(e);var g=function(){rt(window,"mouseup",g),setTimeout(m,20)};tt(window,"mouseup",g)}else setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="\u200b"+(e?i.value:"");i.value="\u21da",i.value=o,t.prevInput=e?"":"\u200b",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=c,a&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart){(!a||a&&l<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==t.prevInput?Qr(n,no)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ra.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ra.prototype.setUneditable=function(){},Ra.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=ga&&i(e,t,n)}:i)}e.defineOption=n,e.Init=ga,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Di(e)},!0),n("indentUnit",2,Di,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Ti(e),Zn(e),Xr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ve(r,o))}r++});for(var i=n.length-1;i>=0;i--)uo(e.doc,t,n[i],ve(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=ga&&e.refresh()}),n("specialCharPlaceholder",Jt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("rtlMoveVisually",!C),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){fa(e),ya(e)},!0),n("keyMap","default",function(e,t,n){var r=Go(t),i=n!=ga&&Go(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ca,!0),n("gutters",[],function(e){di(e.options),ya(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?or(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Hr(e)},!0),n("scrollbarStyle","native",function(e){Pr(e),Hr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e){di(e.options),ya(e)},!0),n("firstLineNumber",1,ya,!0),n("lineNumberFormatter",function(e){return e},ya,!0),n("showCursorWhenSelecting",!1,cr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(br(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,ba),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,cr,!0),n("singleCursorHeightPerLine",!0,cr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ti,!0),n("addModeClass",!1,Ti,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Ti,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(wa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Qr(this,t[e])(this,n,i),it(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Go(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Ea(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Tr(this));else{var o=i.from(),a=i.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s0&&qi(this.doc,r,new bi(o,u[r].to()),U)}}}),getTokenAt:function(e,t){return Gt(this,e,t)},getLineTokens:function(e,t){return Gt(this,ve(e),t,!0)},getTokenTypeAt:function(e){e=Ee(this.doc,e);var t,n=jt(this,se(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=se(this.doc,e)}else r=e;return qn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-We(r):0)},defaultTextHeight:function(){return nr(this.display)},defaultCharWidth:function(){return rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a=this.display,l=(e=Kn(this,Ee(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var u=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(l=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&(null!=(o=Sr(this,{left:s,top:l,right:s+t.offsetWidth,bottom:l+t.offsetHeight})).scrollTop&&Mr(this,o.scrollTop),null!=o.scrollLeft&&Vr(this,o.scrollLeft))},triggerOnKeyDown:$r(ia),triggerOnKeyPress:$r(aa),triggerOnKeyUp:oa,triggerOnMouseDown:$r(ca),execCommand:function(e){if(Qo.hasOwnProperty(e))return Qo[e].call(null,this)},triggerElectric:$r(function(e){xa(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=Ee(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5)&&lr(this),it(this,"refresh",this)}),swapDoc:$r(function(e){var t=this.doc;return t.cm=null,Mi(this,e),Zn(this),this.display.input.reset(),xr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},st(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(wa);var Pa="iter insert remove copy getEditor constructor".split(" ");for(var Za in Do.prototype)Do.prototype.hasOwnProperty(Za)&&P(Pa,Za)<0&&(wa.prototype[Za]=function(e){return function(){return e.apply(this.doc,arguments)}}(Do.prototype[Za]));return st(Do),wa.inputStyles={textarea:Ra,contenteditable:ka},wa.defineMode=function(e){wa.defaults.mode||"null"==e||(wa.defaults.mode=e),(function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),St[e]=t}).apply(this,arguments)},wa.defineMIME=function(e,t){Dt[e]=t},wa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),wa.defineMIME("text/plain","null"),wa.defineExtension=function(e,t){wa.prototype[e]=t},wa.defineDocExtension=function(e,t){Do.prototype[e]=t},wa.fromTextArea=function(e,t){if((t=t?H(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(tt(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(Ct){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(rt(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var l=wa(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return l},function(e){e.off=rt,e.on=tt,e.wheelEventPixels=vi,e.Doc=Do,e.splitLines=wt,e.countColumn=j,e.findColumn=z,e.isWordChar=ee,e.Pass=B,e.signal=it,e.Line=Wt,e.changeEnd=_i,e.scrollbarModel=Rr,e.Pos=ve,e.cmpPos=me,e.modes=St,e.mimeModes=Dt,e.resolveMode=Tt,e.getMode=xt,e.modeExtensions=Ot,e.extendMode=Lt,e.copyState=Mt,e.startState=Vt,e.innerMode=It,e.commands=Qo,e.keyMap=Ho,e.keyName=Uo,e.isModifierKey=Zo,e.lookupKey=Po,e.normalizeKeyMap=Ro,e.StringStream=kt,e.SharedTextMarker=_o,e.TextMarker=Co,e.LineWidget=mo,e.e_preventDefault=ut,e.e_stopPropagation=ct,e.e_stop=dt,e.addClass=V,e.contains=M,e.rmClass=D,e.keyNames=Vo}(wa),wa.version="5.41.0",wa}()},Vuqn:function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return h});var r=n("dWS+"),i=n("/jXB"),o=n("rWdj"),a=n("kBjl"),l=n("axIb"),s=n("dQau"),u=n("4suF");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t,n){return'Directive "@'.concat(e,'" argument "').concat(t,'" of type ')+'"'.concat(n,'" is required but not provided.')}function d(e){return function(e){for(var t=1;t1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+l))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}(l(e.label),t),entry:e}}),function(e){return e.proximity<=2}),function(e){return!e.entry.isDeprecated}).sort(function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length}).map(function(e){return e.entry}):a(e,function(e){return!e.isDeprecated})}(t,l(e.string))};var r=n("Tzvz"),i=n("LViu");function o(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}function a(e,t){var n=e.filter(t);return 0===n.length?e:n}function l(e){return e.toLowerCase().replace(/\W/g,"")}},"X+28":function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {\n| ASTNode,\n| DocumentNode,")},XSbJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("CcnG"),i=n("9vfw"),o=n("gIcY");t.NguiAutoCompleteDirective=function(){function e(e,t,n){var o=this;this.resolver=e,this.viewContainerRef=t,this.parentForm=n,this.autocomplete=!1,this.acceptUserInput=!0,this.loadingTemplate=null,this.loadingText="Loading",this.tabToSelect=!0,this.selectOnBlur=!1,this.matchFormatted=!1,this.autoSelectFirstItem=!1,this.openOnFocus=!0,this.closeOnFocusOut=!0,this.reFocusAfterSelect=!0,this.headerItemTemplate=null,this.ignoreAccents=!0,this.zIndex="1",this.isRtl=!1,this.ngModelChange=new r.EventEmitter,this.valueChanged=new r.EventEmitter,this.customSelected=new r.EventEmitter,this.showAutoCompleteDropdown=function(e){if(!o.dropdownJustHidden){o.hideAutoCompleteDropdown(),o.scheduledBlurHandler=null;var t=o.resolver.resolveComponentFactory(i.NguiAutoCompleteComponent);o.componentRef=o.viewContainerRef.createComponent(t);var n=o.componentRef.instance;n.keyword=o.inputEl.value,n.showInputTag=!1,n.pathToData=o.pathToData,n.minChars=o.minChars,n.source=o.source,n.placeholder=o.autoCompletePlaceholder,n.acceptUserInput=o.acceptUserInput,n.maxNumList=parseInt(o.maxNumList,10),n.loadingText=o.loadingText,n.loadingTemplate=o.loadingTemplate,n.listFormatter=o.listFormatter,n.blankOptionText=o.blankOptionText,n.noMatchFoundText=o.noMatchFoundText,n.tabToSelect=o.tabToSelect,n.selectOnBlur=o.selectOnBlur,n.matchFormatted=o.matchFormatted,n.autoSelectFirstItem=o.autoSelectFirstItem,n.headerItemTemplate=o.headerItemTemplate,n.ignoreAccents=o.ignoreAccents,n.valueSelected.subscribe(o.selectNewValue),n.textEntered.subscribe(o.enterNewText),n.customSelected.subscribe(o.selectCustomValue),o.acDropdownEl=o.componentRef.location.nativeElement,o.acDropdownEl.style.display="none","INPUT"!==o.el.tagName&&o.acDropdownEl&&o.inputEl.parentElement.insertBefore(o.acDropdownEl,o.inputEl.nextSibling),o.revertValue=void 0!==o.ngModel?o.ngModel:o.inputEl.value,setTimeout(function(){n.reloadList(o.inputEl.value),o.styleAutoCompleteDropdown(),n.dropdownVisible=!0})}},this.hideAutoCompleteDropdown=function(e){if(o.componentRef){var t=void 0,n=void 0!==o.revertValue;o.inputEl&&n&&!1===o.acceptUserInput&&(t=o.componentRef.instance.findItemFromSelectValue(o.inputEl.value)),o.componentRef.destroy(),o.componentRef=void 0,o.inputEl&&n&&!1===o.acceptUserInput&&null===t?o.selectNewValue(o.revertValue):o.inputEl&&!0===o.acceptUserInput&&void 0===t&&e&&e.target.value&&o.enterNewText(e.target.value)}o.dropdownJustHidden=!0,setTimeout(function(){return o.dropdownJustHidden=!1},100)},this.styleAutoCompleteDropdown=function(){if(o.componentRef){o.el.getBoundingClientRect();var e=o.inputEl.getBoundingClientRect(),t=e.bottom+100>window.innerHeight,n=o.isRtl?"right":"left";o.acDropdownEl.style.width=e.width+"px",o.acDropdownEl.style.position="absolute",o.acDropdownEl.style.zIndex=o.zIndex,o.acDropdownEl.style[n]="0",o.acDropdownEl.style.display="inline-block",t?o.acDropdownEl.style.bottom=e.height+"px":o.acDropdownEl.style.top=e.height+"px"}},this.selectNewValue=function(e){e&&"object"==typeof e&&(e=o.setToStringFunction(e)),o.renderValue(e);var t=e;o.selectValueOf&&e[o.selectValueOf]&&(t=e[o.selectValueOf]),(o.parentForm&&o.formControlName||o.extFormControl)&&t&&o.formControl.patchValue(t),t!==o.ngModel&&o.ngModelChange.emit(t),o.valueChanged.emit(t),o.hideAutoCompleteDropdown(),setTimeout(function(){return o.reFocusAfterSelect&&o.inputEl.focus(),o.inputEl})},this.selectCustomValue=function(e){o.customSelected.emit(e),o.hideAutoCompleteDropdown(),setTimeout(function(){return o.reFocusAfterSelect&&o.inputEl.focus(),o.inputEl})},this.enterNewText=function(e){o.renderValue(e),o.ngModelChange.emit(e),o.valueChanged.emit(e),o.hideAutoCompleteDropdown()},this.keydownEventHandler=function(e){o.componentRef&&o.componentRef.instance.inputElKeyHandler(e)},this.inputEventHandler=function(e){if(o.componentRef){var t=o.componentRef.instance;t.dropdownVisible=!0,t.keyword=e.target.value,t.reloadListInDelay(e)}else o.showAutoCompleteDropdown()},this.el=this.viewContainerRef.element.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.documentClickListener=function(t){e.scheduledBlurHandler&&(e.scheduledBlurHandler(),e.scheduledBlurHandler=null)},document.addEventListener("click",this.documentClickListener),this.wrapperEl=document.createElement("div"),this.wrapperEl.className="ngui-auto-complete-wrapper",this.wrapperEl.style.position="relative",this.el.parentElement.insertBefore(this.wrapperEl,this.el.nextSibling),this.wrapperEl.appendChild(this.el),this.parentForm&&this.formControlName?this.parentForm.form?this.formControl=this.parentForm.form.get(this.formControlName):this.parentForm instanceof o.FormGroupName&&(this.formControl=this.parentForm.control.controls[this.formControlName]):this.extFormControl&&(this.formControl=this.extFormControl),this.ngModel?this.selectNewValue(this.ngModel):this.formControl&&this.formControl.value&&this.selectNewValue(this.formControl.value)},e.prototype.ngAfterViewInit=function(){var e=this;this.inputEl="INPUT"===this.el.tagName?this.el:this.el.querySelector("input"),this.openOnFocus&&this.inputEl.addEventListener("focus",function(t){return e.showAutoCompleteDropdown(t)}),this.closeOnFocusOut&&this.inputEl.addEventListener("focusout",function(t){return e.hideAutoCompleteDropdown(t)}),this.autocomplete||this.inputEl.setAttribute("autocomplete","off"),this.inputEl.addEventListener("blur",function(t){e.scheduledBlurHandler=function(){return e.blurHandler(t)}}),this.inputEl.addEventListener("keydown",function(t){return e.keydownEventHandler(t)}),this.inputEl.addEventListener("input",function(t){return e.inputEventHandler(t)})},e.prototype.ngOnDestroy=function(){this.componentRef&&(this.componentRef.instance.valueSelected.unsubscribe(),this.componentRef.instance.textEntered.unsubscribe()),this.documentClickListener&&document.removeEventListener("click",this.documentClickListener)},e.prototype.ngOnChanges=function(e){e.ngModel&&(this.ngModel=this.setToStringFunction(e.ngModel.currentValue),this.renderValue(this.ngModel))},e.prototype.blurHandler=function(e){if(this.componentRef){var t=this.componentRef.instance;this.selectOnBlur&&t.selectOne(t.filteredList[t.itemIndex]),this.closeOnFocusOut&&this.hideAutoCompleteDropdown(e)}},e.prototype.setToStringFunction=function(e){if(e&&"object"==typeof e){var t;if("string"==typeof this.valueFormatter){var n=this.valueFormatter.match(/[a-zA-Z0-9_\$]+/g),r=this.valueFormatter;n&&"string"!=typeof e&&n.forEach(function(t){r=r.replace(t,e[t])}),t=r}else t="function"==typeof this.valueFormatter?this.valueFormatter(e):this.displayPropertyName?e[this.displayPropertyName]:"string"==typeof this.listFormatter&&this.listFormatter.match(/^\w+$/)?e[this.listFormatter]:e.value;e.toString=function(){return t}}return e},e.prototype.renderValue=function(e){this.inputEl&&(this.inputEl.value=""+e)},e.decorators=[{type:r.Directive,args:[{selector:"[auto-complete], [ngui-auto-complete]"}]}],e.propDecorators={autocomplete:[{type:r.Input,args:["autocomplete"]}],autoCompletePlaceholder:[{type:r.Input,args:["auto-complete-placeholder"]}],source:[{type:r.Input,args:["source"]}],pathToData:[{type:r.Input,args:["path-to-data"]}],minChars:[{type:r.Input,args:["min-chars"]}],displayPropertyName:[{type:r.Input,args:["display-property-name"]}],acceptUserInput:[{type:r.Input,args:["accept-user-input"]}],maxNumList:[{type:r.Input,args:["max-num-list"]}],selectValueOf:[{type:r.Input,args:["select-value-of"]}],loadingTemplate:[{type:r.Input,args:["loading-template"]}],listFormatter:[{type:r.Input,args:["list-formatter"]}],loadingText:[{type:r.Input,args:["loading-text"]}],blankOptionText:[{type:r.Input,args:["blank-option-text"]}],noMatchFoundText:[{type:r.Input,args:["no-match-found-text"]}],valueFormatter:[{type:r.Input,args:["value-formatter"]}],tabToSelect:[{type:r.Input,args:["tab-to-select"]}],selectOnBlur:[{type:r.Input,args:["select-on-blur"]}],matchFormatted:[{type:r.Input,args:["match-formatted"]}],autoSelectFirstItem:[{type:r.Input,args:["auto-select-first-item"]}],openOnFocus:[{type:r.Input,args:["open-on-focus"]}],closeOnFocusOut:[{type:r.Input,args:["close-on-focusout"]}],reFocusAfterSelect:[{type:r.Input,args:["re-focus-after-select"]}],headerItemTemplate:[{type:r.Input,args:["header-item-template"]}],ignoreAccents:[{type:r.Input,args:["ignore-accents"]}],ngModel:[{type:r.Input}],formControlName:[{type:r.Input,args:["formControlName"]}],extFormControl:[{type:r.Input,args:["formControl"]}],zIndex:[{type:r.Input,args:["z-index"]}],isRtl:[{type:r.Input,args:["is-rtl"]}],ngModelChange:[{type:r.Output}],valueChanged:[{type:r.Output}],customSelected:[{type:r.Output}]},e}()},XYXw:function(e,t,n){"use strict";n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"c",function(){return v});var r=n("das/"),i=n("/kEc"),o=n("S4Ci"),a=n("3HNt"),l=n("dQau"),s=n("axIb"),u=n("19Hc"),c=n("4suF"),p=n("LViu");function d(e,t){return g(e,function(e){return!Object(c.g)(e)},f,t)}function h(e,t){return g(e,c.g,p.isIntrospectionType,t)}function f(e){return!Object(u.f)(e)&&!Object(p.isIntrospectionType)(e)}function g(e,t,n,r){var i=e.getDirectives().filter(t),a=e.getTypeMap(),l=Object(o.a)(a).sort(function(e,t){return e.name.localeCompare(t.name)}).filter(n);return[function(e){if(!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),"schema {\n".concat(t.join("\n"),"\n}")}}(e)].concat(i.map(function(e){return function(e,t){return w(t,e)+"directive @"+e.name+y(t,e.args)+" on "+e.locations.join(" | ")}(e,r)}),l.map(function(e){return v(e,r)})).filter(Boolean).join("\n\n")+"\n"}function v(e,t){if(Object(s.Q)(e))return function(e,t){return w(t,e)+"scalar ".concat(e.name)}(e,t);if(Object(s.M)(e))return function(e,t){var n=e.getInterfaces(),r=n.length?" implements "+n.map(function(e){return e.name}).join(" & "):"";return w(t,e)+"type ".concat(e.name).concat(r," {\n")+m(t,e)+"\n}"}(e,t);if(Object(s.G)(e))return function(e,t){return w(t,e)+"interface ".concat(e.name," {\n")+m(t,e)+"\n}"}(e,t);if(Object(s.S)(e))return function(e,t){return w(t,e)+"union ".concat(e.name," = ").concat(e.getTypes().join(" | "))}(e,t);if(Object(s.D)(e))return function(e,t){return w(t,e)+"enum ".concat(e.name," {\n")+function(e,t){return e.map(function(e,n){return w(t,e," ",!n)+" "+e.name+C(e)}).join("\n")}(e.getValues(),t)+"\n}"}(e,t);if(Object(s.E)(e))return function(e,t){var n=Object(o.a)(e.getFields());return w(t,e)+"input ".concat(e.name," {\n")+n.map(function(e,n){return w(t,e," ",!n)+" "+b(e)}).join("\n")+"\n}"}(e,t);throw new Error("Unknown type: ".concat(e,"."))}function m(e,t){return Object(o.a)(t.getFields()).map(function(t,n){return w(e,t," ",!n)+" "+t.name+y(e,t.args," ")+": "+String(t.type)+C(t)}).join("\n")}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every(function(e){return!e.description})?"("+t.map(b).join(", ")+")":"(\n"+t.map(function(t,r){return w(e,t," "+n,!r)+" "+n+b(t)}).join("\n")+"\n"+n+")"}function b(e){var t=e.name+": "+String(e.type);return Object(i.a)(e.defaultValue)||(t+=" = ".concat(Object(l.print)(Object(a.a)(e.defaultValue,e.type)))),t}function C(e){if(!e.isDeprecated)return"";var t=e.deprecationReason;return Object(r.a)(t)||""===t||t===c.a?" @deprecated":" @deprecated(reason: "+Object(l.print)(Object(a.a)(t,u.e))+")"}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.description)return"";var i=function(e,n){for(var r=[],i=t.description.split("\n"),o=0;o import type {GraphQLField, GraphQLSchema, GraphQLType} from 'graphql';\n| import {isCompositeType} from 'graphql';\n| import {")},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Yzoe:function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var l=i.shift();l&&l.applyMiddleware.apply(o,[e,a])}else n(e)})()})},e.prototype.use=function(e){var t=this;return e.map(function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)}),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise(function(t,n){if("function"==typeof e)try{return t(e.call(null))}catch(r){return n(r)}t(e)})}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then(function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,m.default.GQL_START,e))}).catch(function(e){n.unsubscribe(r),t(n.formatErrors(e))}),r},e.prototype.getObserver=function(e,t,n){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){return new s({min:1e3,max:this.wsTimeout,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(e.operations).length&&e.close()},this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,i=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!c.default(n)&&!h.getOperationAST(n,i)||i&&!c.default(i)||r&&!p.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?r({},n,{query:"string"==typeof n.query?n.query:d.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(t){e.unsentMessagesQueue.push(e.buildMessage(t,m.default.GQL_START,e.operations[t].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){e.connect()},t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach(function(t){e.sendMessageRaw(t)}),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))},this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e=this;this.client=new this.wsImpl(this.url,this.wsProtocols),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(e,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,m.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,m.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(t){e.eventEmitter.emit("error",t)},this.client.onmessage=function(t){e.processReceivedData(t.data)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(a){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[m.default.GQL_DATA,m.default.GQL_COMPLETE,m.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case m.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case m.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected"),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case m.default.GQL_COMPLETE:this.operations[n].handler(null,null),delete this.operations[n];break;case m.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case m.default.GQL_DATA:var i=t.payload.errors?r({},t.payload,{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,i);break;case m.default.GQL_CONNECTION_KEEP_ALIVE:var o=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,o&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,m.default.GQL_STOP,void 0))},e}()},"ZBm+":function(e,t,n){"use strict";n.r(t),n.d(t,"unusedFragMessage",function(){return i}),n.d(t,"NoUnusedFragments",function(){return o});var r=n("dWS+");function i(e){return'Fragment "'.concat(e,'" is never used.')}function o(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var o=Object.create(null),a=0;a0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;l||(l=e[a]=[]);var u=$(t)?Zone.root:Zone.current;if(0===l.length)l.push({zone:u,handler:i});else{for(var c=!1,p=0;p-1},t}(O),ie=["alt","control","meta","shift"],oe={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},ae=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.c)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return l().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(ie.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},t.getEventFullKey=function(e){var t="",n=l().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ie.forEach(function(r){r!=n&&(0,oe[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(O),le=function(){return function(){}}(),se=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.c)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.SecurityContext.NONE:return t;case o.SecurityContext.HTML:return t instanceof ce?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(o["\u0275_sanitizeHtml"])(this._doc,String(t)));case o.SecurityContext.STYLE:return t instanceof pe?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(o["\u0275_sanitizeStyle"])(t));case o.SecurityContext.SCRIPT:if(t instanceof de)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case o.SecurityContext.URL:return t instanceof fe||t instanceof he?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(o["\u0275_sanitizeUrl"])(String(t)));case o.SecurityContext.RESOURCE_URL:if(t instanceof fe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof ue)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new ce(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new pe(e)},t.prototype.bypassSecurityTrustScript=function(e){return new de(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new he(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new fe(e)},t}(le),ue=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(ue),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(ue),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(ue),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(ue),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(ue),ge=[{provide:o.PLATFORM_ID,useValue:i["\u0275PLATFORM_BROWSER_ID"]},{provide:o.PLATFORM_INITIALIZER,useValue:function(){h.makeCurrent(),C.init()},multi:!0},{provide:i.PlatformLocation,useClass:m,deps:[g]},{provide:g,useFactory:function(){return document},deps:[]}],ve=Object(o.createPlatformFactory)(o.platformCore,"browser",ge);function me(){return new o.ErrorHandler}var ye=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;return t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:o.APP_ID,useValue:e.appId},{provide:y,useExisting:o.APP_ID},b]}},e}();"undefined"!=typeof window&&window},ZZnB:function(e,t,n){"use strict";function r(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}n.d(t,"a",function(){return r})},ZfCc:function(e,t,n){"use strict";n.r(t),n.d(t,"nonExecutableDefinitionMessage",function(){return a}),n.d(t,"ExecutableDefinitions",function(){return l});var r=n("dWS+"),i=n("/jXB"),o=n("Xizt");function a(e){return"The ".concat(e," definition is not executable.")}function l(e){return{Document:function(t){var n=!0,l=!1,s=void 0;try{for(var u,c=t.definitions[Symbol.iterator]();!(n=(u=c.next()).done);n=!0){var p=u.value;Object(o.b)(p)||e.reportError(new r.a(a(p.kind===i.a.SCHEMA_DEFINITION||p.kind===i.a.SCHEMA_EXTENSION?"schema":p.name.value),[p]))}}catch(d){l=!0,s=d}finally{try{n||null==c.return||c.return()}finally{if(l)throw s}}return!1}}}},Zn8D:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("psW0"),i=n("mChF");function o(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(r.a)(i.a,e)}},aQEm:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.offsetToPosition=a,t.locToRange=function(e,t){var n=a(e,t.start),r=a(e,t.end);return new i(n,r)};var i=t.Range=function(){function e(t,n){var i=this;r(this,e),this.containsPosition=function(e){return i.start.line===e.line?i.start.character<=e.character:i.end.line===e.line?i.end.character>=e.character:i.start.line<=e.line&&i.end.line>=e.line},this.start=t,this.end=n}return e.prototype.setStart=function(e,t){this.start=new o(e,t)},e.prototype.setEnd=function(e,t){this.end=new o(e,t)},e}(),o=t.Position=function(){function e(t,n){var i=this;r(this,e),this.lessThanOrEqualTo=function(e){return i.line0&&this.destination.next(t),e.prototype._complete.call(this)},t}(p.a),g=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return o.c(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(e),a.length===t&&(r.splice(o,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(p.a),v=n("T1DM"),m=n("nkY7");function y(e){var t=arguments.length,n=v.a;Object(m.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new b(e,r,i,n))}}var b=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new w(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),C=function(){return function(){this.buffer=[]}}(),w=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var l=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly)a.add(l.closeAction=o.schedule(_,n,{subscriber:a,context:l,bufferTimeSpan:n}));else{var s={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(l.closeAction=o.schedule(A,n,{subscriber:a,context:l})),a.add(o.schedule(E,r,s))}return a}return o.c(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(_,n,{subscriber:this,context:e,bufferTimeSpan:n}))}},t.prototype.openContext=function(){var e=new C;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(p.a);function _(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function E(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(A,n,{subscriber:r,context:o})),this.schedule(e,t))}function A(e){e.subscriber.closeContext(e.context)}var S=n("pugT");function D(e,t){return function(n){return n.lift(new T(e,t))}}var T=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new x(e,this.openings,this.closingSelector))},e}(),x=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(Object(l.a)(i,n)),i}return o.c(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(n){this._error(n)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.subscription;this.destination.next(e.buffer),t.splice(t.indexOf(e),1),this.remove(n),n.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new S.a,r={buffer:[],subscription:n};t.push(r);var i=Object(l.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},t}(a.a),O=n("Ehmk"),L=n("eihs");function M(e){return function(t){return t.lift(new I(e))}}var I=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new V(e,this.closingSelector))},e}(),V=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return o.c(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,r,i){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];var t=Object(O.a)(this.closingSelector)();t===L.a?this.error(L.a.e):(e=new S.a,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Object(l.a)(this,t)),this.subscribing=!1)},t}(a.a),k=n("9Z1F"),N=n("dzgT");function F(e){return function(t){return t.lift(new N.a(e))}}var H=n("isby"),j=n("0/uQ");function R(){for(var e=[],t=0;t0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new ne(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(X.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(X.a.createComplete()),this.unsubscribe()},t}(p.a),ne=function(){return function(e,t){this.time=e,this.notification=t}}(),re=n("6blF");function ie(e,t){return t?function(n){return new le(n,t).lift(new oe(e))}:function(t){return t.lift(new oe(e))}}var oe=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ae(e,this.delayDurationSelector))},e}(),ae=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return o.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(r){this.destination.error(r)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=Object(l.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(a.a),le=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return o.c(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new se(e,this.source))},t}(re.a),se=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return o.c(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(p.a),ue=n("41IB");function ce(e,t){return function(n){return n.lift(new pe(e,t))}}var pe=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new de(e,this.keySelector,this.flushes))},e}(),de=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=n,i.values=new Set,r&&i.add(Object(l.a)(i,r)),i}return o.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(a.a),he=n("ad02");function fe(e,t){return Object(he.a)(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}var ge=n("b7mW"),ve=n("VnD/"),me=n("tNVB"),ye=n("t9fZ");function be(e,t){if(e<0)throw new ge.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(ve.a)(function(t,n){return n===e}),Object(ye.a)(1),n?Object($.a)(t):Object(me.a)(function(){return new ge.a}))}}var Ce=n("IUTb"),we=n("PU8L"),_e=n("G5J1");function Ee(){for(var e=[],t=0;t0?Object(P.a)(t,Object(Ce.a)(e,n)):Object(P.a)(t,Object(_e.b)(n)):Object(P.a)(t,Object(we.a)(e[0]))}}function Ae(e,t){return function(n){return n.lift(new Se(e,t,n))}}var Se=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new De(e,this.predicate,this.thisArg,this.source))},e}(),De=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return o.c(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(p.a);function Te(){return function(e){return e.lift(new xe)}}var xe=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Oe(e))},e}(),Oe=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return o.c(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(l.a)(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(a.a),Le=n("6V3w");function Me(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(r){return r.lift(new Ie(e,t,n))}}var Ie=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new Ve(e,this.project,this.concurrent,this.scheduler))},e}(),Ve=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(a.a);function ke(e){return function(t){return t.lift(new Ne(e))}}var Ne=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Fe(e,this.callback))},e}(),Fe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new S.a(n)),r}return o.c(t,e),t}(p.a);function He(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new je(e,n,!1,t))}}var je=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new Re(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),Re=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return o.c(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(p.a);function Pe(e,t){return function(n){return n.lift(new je(e,n,!0,t))}}var Ze=n("P6uZ"),Be=n("IxPp"),Ue=n("DKLv");function Ge(){return function(e){return e.lift(new qe)}}var qe=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new ze(e))},e}(),ze=function(e){function t(t){return e.call(this,t)||this}return o.c(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(p.a),We=n("3fWJ"),Ke=n("AxiF"),Qe=n("mChF");function $e(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(ve.a)(function(t,n){return e(t,n,r)}):Qe.a,Object(Ke.a)(1),n?Object($.a)(t):Object(me.a)(function(){return new We.a}))}}var Ye=n("67Y/");function Xe(e){return function(t){return t.lift(new Je(e))}}var Je=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new et(e,this.value))},e}(),et=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return o.c(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(p.a),tt=n("uW6F"),nt=n("Qgas");function rt(e){var t="function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t};return Object(nt.a)(t)}var it=n("p0ib");function ot(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(a.a);function ht(e){var t="function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(p.a);function Ft(e){return function(t){return t.lift(new Ht(e))}}var Ht=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new jt(e,this.notifier,t))},e}(),jt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return o.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){this.notifications=new _t.a;var t=Object(O.a)(this.notifier)(this.notifications);if(t===L.a)return e.prototype.complete.call(this);this.retries=t,this.retriesSubscription=Object(l.a)(this,t)},t}(a.a);function Rt(e){return void 0===e&&(e=-1),function(t){return t.lift(new Pt(e,t))}}var Pt=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Zt(e,this.count,this.source))},e}(),Zt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return o.c(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(p.a);function Bt(e){return function(t){return t.lift(new Ut(e,t))}}var Ut=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Gt(e,this.notifier,this.source))},e}(),Gt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i}return o.c(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new _t.a,(r=Object(O.a)(this.notifier)(n))===L.a)return e.prototype.error.call(this,L.a.e);i=Object(l.a)(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},t}(a.a),qt=n("yGWI");function zt(e){return function(t){return t.lift(new Wt(e))}}var Wt=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Kt(e),r=t.subscribe(n);return r.add(Object(l.a)(n,this.notifier)),r},e}(),Kt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return o.c(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(a.a);function Qt(e,t){return void 0===t&&(t=v.a),function(n){return n.lift(new $t(e,t))}}var $t=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Yt(e,this.period,this.scheduler))},e}(),Yt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Xt,n,{subscriber:i,period:n})),i}return o.c(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(p.a);function Xt(e){var t=e.period;e.subscriber.notifyNext(),this.schedule(e,t)}var Jt=n("dC0D");function en(e,t){return function(n){return n.lift(new tn(e,t))}}var tn=function(){function e(e,t){this.compareTo=e,this.comparor=t}return e.prototype.call=function(e,t){return t.subscribe(new nn(e,this.compareTo,this.comparor))},e}(),nn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new rn(t,i))),i}return o.c(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparor;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;n?(o=Object(O.a)(n)(r,i))===L.a&&this.destination.error(L.a.e):o=r===i,o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(p.a),rn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return o.c(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(p.a),on=n("S1nX"),an=n("klSw");function ln(e){return function(t){return t.lift(new sn(e,t))}}var sn=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new un(e,this.predicate,this.source))},e}(),un=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return o.c(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new We.a)},t}(p.a),cn=n("0mNj");function pn(e){return function(t){return t.lift(new dn(e))}}var dn=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new ge.a}return e.prototype.call=function(e,t){return t.subscribe(0===this._skipCount?new p.a(e):new hn(e,this._skipCount))},e}(),hn=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return o.c(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=(i=t.flush.bind(t,null),o=wn++,_n[o]=i,Promise.resolve().then(function(){return function(e){var t=_n[e];t&&t()}(o)}),o)));var i,o},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(delete _n[n],t.scheduled=void 0)},t}(n("h9Dq").a),An=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.c(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a=0&&l%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var s=new _t.a;i.push(s),n.next(s)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(p.a);function rr(e){var t=v.a,n=null,r=Number.POSITIVE_INFINITY;return Object(m.a)(arguments[3])&&(t=arguments[3]),Object(m.a)(arguments[2])?t=arguments[2]:Object(Sn.a)(arguments[2])&&(r=arguments[2]),Object(m.a)(arguments[1])?t=arguments[1]:Object(Sn.a)(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new ir(e,n,r,t))}}var ir=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new ar(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),or=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return o.c(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(_t.a),ar=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var l=a.openWindow();if(null!==r&&r>=0){var s={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(ur,n,{subscriber:a,window:l,context:null})),a.add(o.schedule(sr,r,s))}else a.add(o.schedule(lr,n,{subscriber:a,window:l,windowTimeSpan:n}));return a}return o.c(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new or;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(p.a);function lr(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function sr(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null};a.subscription=r.schedule(ur,t,{subscriber:n,window:o,context:a}),this.add(a.subscription),this.schedule(e,i)}function ur(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function cr(e,t){return function(n){return n.lift(new pr(e,t))}}var pr=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new dr(e,this.openings,this.closingSelector))},e}(),dr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(l.a)(i,n,n)),i}return o.c(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;rthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),_r=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return o.c(t,e),t.prototype[mr.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return Object(l.a)(this,this.observable,this,t)},t}(a.a);function Er(){for(var e=[],t=0;t=2&&o(d,u)+": "+h[n-2],o(d,c)+": "+h[n-1],i(2+d+s-1)+"^",n0&&r(t[0]);)t.shift();for(;t.length>0&&r(t[t.length-1]);)t.pop();return t.join("\n")}});t(d);var h=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.createLexer=function(e,t){var n=new u(a.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:i,lookahead:o}},t.getTokenDesc=function(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind};var n,r=(n=d)&&n.__esModule?n:{default:n};function i(){return this.lastToken=this.token,this.token=this.lookahead()}function o(){var e=this.token;if(e.kind!==a.EOF)do{e=e.next||(e.next=h(this,e))}while(e.kind===a.COMMENT);return e}var a=t.TokenKind=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),l=String.prototype.charCodeAt,s=String.prototype.slice;function u(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function c(e){return isNaN(e)?a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function h(e,t){var n=e.source,i=n.body,o=i.length,d=function(e,t,n){for(var r=e.length,i=t;i=o)return new u(a.EOF,o,o,h,v,t);var m=l.call(i,d);if(m<32&&9!==m&&10!==m&&13!==m)throw(0,p.syntaxError)(n,d,"Cannot contain the invalid character "+c(m)+".");switch(m){case 33:return new u(a.BANG,d,d+1,h,v,t);case 35:return function(e,t,n,r,i){var o=e.body,c=void 0,p=t;do{c=l.call(o,++p)}while(null!==c&&(c>31||9===c));return new u(a.COMMENT,t,p,n,r,i,s.call(o,t+1,p))}(n,d,h,v,t);case 36:return new u(a.DOLLAR,d,d+1,h,v,t);case 38:return new u(a.AMP,d,d+1,h,v,t);case 40:return new u(a.PAREN_L,d,d+1,h,v,t);case 41:return new u(a.PAREN_R,d,d+1,h,v,t);case 46:if(46===l.call(i,d+1)&&46===l.call(i,d+2))return new u(a.SPREAD,d,d+3,h,v,t);break;case 58:return new u(a.COLON,d,d+1,h,v,t);case 61:return new u(a.EQUALS,d,d+1,h,v,t);case 64:return new u(a.AT,d,d+1,h,v,t);case 91:return new u(a.BRACKET_L,d,d+1,h,v,t);case 93:return new u(a.BRACKET_R,d,d+1,h,v,t);case 123:return new u(a.BRACE_L,d,d+1,h,v,t);case 124:return new u(a.PIPE,d,d+1,h,v,t);case 125:return new u(a.BRACE_R,d,d+1,h,v,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){for(var o=e.body,c=o.length,p=t+1,d=0;p!==c&&null!==(d=l.call(o,p))&&(95===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++p;return new u(a.NAME,t,p,n,r,i,s.call(o,t,p))}(n,d,h,v,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var d=e.body,h=m,g=t,v=!1;if(45===h&&(h=l.call(d,++g)),48===h){if((h=l.call(d,++g))>=48&&h<=57)throw(0,p.syntaxError)(e,g,"Invalid number, unexpected digit after 0: "+c(h)+".")}else g=f(e,g,h),h=l.call(d,g);return 46===h&&(v=!0,h=l.call(d,++g),g=f(e,g,h),h=l.call(d,g)),69!==h&&101!==h||(v=!0,43!==(h=l.call(d,++g))&&45!==h||(h=l.call(d,++g)),g=f(e,g,h)),new u(v?a.FLOAT:a.INT,t,g,r,i,o,s.call(d,t,g))}(n,d,0,h,v,t);case 34:return 34===l.call(i,d+1)&&34===l.call(i,d+2)?function(e,t,n,i,o){for(var d=e.body,h=t+3,f=h,g=0,v="";h=48&&o<=57){do{o=l.call(r,++i)}while(o>=48&&o<=57);return i}throw(0,p.syntaxError)(e,i,"Invalid number, expected digit but got: "+c(o)+".")}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}u.prototype.toJSON=u.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}});t(h);var f=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0;var n,r=(n=u)&&n.__esModule?n:{default:n};t.Source=function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=t,this.name=n||"GraphQL request",this.locationOffset=i||{line:1,column:1},this.locationOffset.line>0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")}});t(f);var g=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})});t(g);var v=n(function(e,t){function n(e){var t=K(e,h.TokenKind.NAME);return{kind:i.Kind.NAME,value:t.value,loc:G(e,t)}}function r(e){if(z(e,h.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return o(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return L(e)}else{if(z(e,h.TokenKind.BRACE_L))return o(e);if(M(e))return L(e)}throw $(e)}function o(e){if(z(e,h.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return a(e);case"fragment":return function(e){var t=e.token;return Q(e,"fragment"),e.options.experimentalFragmentVariables?{kind:i.Kind.FRAGMENT_DEFINITION,name:C(e),variableDefinitions:s(e),typeCondition:(Q(e,"on"),O(e)),directives:D(e,!1),selectionSet:d(e),loc:G(e,t)}:{kind:i.Kind.FRAGMENT_DEFINITION,name:C(e),typeCondition:(Q(e,"on"),O(e)),directives:D(e,!1),selectionSet:d(e),loc:G(e,t)}}(e)}else if(z(e,h.TokenKind.BRACE_L))return a(e);throw $(e)}function a(e){var t=e.token;if(z(e,h.TokenKind.BRACE_L))return{kind:i.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:d(e),loc:G(e,t)};var r=l(e),o=void 0;return z(e,h.TokenKind.NAME)&&(o=n(e)),{kind:i.Kind.OPERATION_DEFINITION,operation:r,name:o,variableDefinitions:s(e),directives:D(e,!1),selectionSet:d(e),loc:G(e,t)}}function l(e){var t=K(e,h.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw $(e,t)}function s(e){return z(e,h.TokenKind.PAREN_L)?Y(e,h.TokenKind.PAREN_L,u,h.TokenKind.PAREN_R):[]}function u(e){var t=e.token;return{kind:i.Kind.VARIABLE_DEFINITION,variable:c(e),type:(K(e,h.TokenKind.COLON),x(e)),defaultValue:W(e,h.TokenKind.EQUALS)?w(e,!0):void 0,loc:G(e,t)}}function c(e){var t=e.token;return K(e,h.TokenKind.DOLLAR),{kind:i.Kind.VARIABLE,name:n(e),loc:G(e,t)}}function d(e){var t=e.token;return{kind:i.Kind.SELECTION_SET,selections:Y(e,h.TokenKind.BRACE_L,v,h.TokenKind.BRACE_R),loc:G(e,t)}}function v(e){return z(e,h.TokenKind.SPREAD)?function(e){var t=e.token;if(K(e,h.TokenKind.SPREAD),z(e,h.TokenKind.NAME)&&"on"!==e.token.value)return{kind:i.Kind.FRAGMENT_SPREAD,name:C(e),directives:D(e,!1),loc:G(e,t)};var n=void 0;return"on"===e.token.value&&(e.advance(),n=O(e)),{kind:i.Kind.INLINE_FRAGMENT,typeCondition:n,directives:D(e,!1),selectionSet:d(e),loc:G(e,t)}}(e):function(e){var t=e.token,r=n(e),o=void 0,a=void 0;return W(e,h.TokenKind.COLON)?(o=r,a=n(e)):a=r,{kind:i.Kind.FIELD,alias:o,name:a,arguments:m(e,!1),directives:D(e,!1),selectionSet:z(e,h.TokenKind.BRACE_L)?d(e):void 0,loc:G(e,t)}}(e)}function m(e,t){var n=t?b:y;return z(e,h.TokenKind.PAREN_L)?Y(e,h.TokenKind.PAREN_L,n,h.TokenKind.PAREN_R):[]}function y(e){var t=e.token;return{kind:i.Kind.ARGUMENT,name:n(e),value:(K(e,h.TokenKind.COLON),w(e,!1)),loc:G(e,t)}}function b(e){var t=e.token;return{kind:i.Kind.ARGUMENT,name:n(e),value:(K(e,h.TokenKind.COLON),E(e)),loc:G(e,t)}}function C(e){if("on"===e.token.value)throw $(e);return n(e)}function w(e,t){var n=e.token;switch(n.kind){case h.TokenKind.BRACKET_L:return function(e,t){var n=e.token;return{kind:i.Kind.LIST,values:function(e,t,n,r){K(e,h.TokenKind.BRACKET_L);for(var i=[];!W(e,r);)i.push(n(e));return i}(e,0,t?E:A,h.TokenKind.BRACKET_R),loc:G(e,n)}}(e,t);case h.TokenKind.BRACE_L:return function(e,t){var n=e.token;K(e,h.TokenKind.BRACE_L);for(var r=[];!W(e,h.TokenKind.BRACE_R);)r.push(S(e,t));return{kind:i.Kind.OBJECT,fields:r,loc:G(e,n)}}(e,t);case h.TokenKind.INT:return e.advance(),{kind:i.Kind.INT,value:n.value,loc:G(e,n)};case h.TokenKind.FLOAT:return e.advance(),{kind:i.Kind.FLOAT,value:n.value,loc:G(e,n)};case h.TokenKind.STRING:case h.TokenKind.BLOCK_STRING:return _(e);case h.TokenKind.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:i.Kind.BOOLEAN,value:"true"===n.value,loc:G(e,n)}):"null"===n.value?(e.advance(),{kind:i.Kind.NULL,loc:G(e,n)}):(e.advance(),{kind:i.Kind.ENUM,value:n.value,loc:G(e,n)});case h.TokenKind.DOLLAR:if(!t)return c(e)}throw $(e)}function _(e){var t=e.token;return e.advance(),{kind:i.Kind.STRING,value:t.value,block:t.kind===h.TokenKind.BLOCK_STRING,loc:G(e,t)}}function E(e){return w(e,!0)}function A(e){return w(e,!1)}function S(e,t){var r=e.token;return{kind:i.Kind.OBJECT_FIELD,name:n(e),value:(K(e,h.TokenKind.COLON),w(e,t)),loc:G(e,r)}}function D(e,t){for(var n=[];z(e,h.TokenKind.AT);)n.push(T(e,t));return n}function T(e,t){var r=e.token;return K(e,h.TokenKind.AT),{kind:i.Kind.DIRECTIVE,name:n(e),arguments:m(e,t),loc:G(e,r)}}function x(e){var t=e.token,n=void 0;return W(e,h.TokenKind.BRACKET_L)?(n=x(e),K(e,h.TokenKind.BRACKET_R),n={kind:i.Kind.LIST_TYPE,type:n,loc:G(e,t)}):n=O(e),W(e,h.TokenKind.BANG)?{kind:i.Kind.NON_NULL_TYPE,type:n,loc:G(e,t)}:n}function O(e){var t=e.token;return{kind:i.Kind.NAMED_TYPE,name:n(e),loc:G(e,t)}}function L(e){var t=M(e)?e.lookahead():e.token;if(t.kind===h.TokenKind.NAME)switch(t.value){case"schema":return function(e){var t=e.token;Q(e,"schema");var n=D(e,!0),r=Y(e,h.TokenKind.BRACE_L,V,h.TokenKind.BRACE_R);return{kind:i.Kind.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:G(e,t)}}(e);case"scalar":return function(e){var t=e.token,r=I(e);Q(e,"scalar");var o=n(e),a=D(e,!0);return{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:r,name:o,directives:a,loc:G(e,t)}}(e);case"type":return function(e){var t=e.token,r=I(e);Q(e,"type");var o=n(e),a=k(e),l=D(e,!0),s=N(e);return{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:r,name:o,interfaces:a,directives:l,fields:s,loc:G(e,t)}}(e);case"interface":return function(e){var t=e.token,r=I(e);Q(e,"interface");var o=n(e),a=D(e,!0),l=N(e);return{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:o,directives:a,fields:l,loc:G(e,t)}}(e);case"union":return function(e){var t=e.token,r=I(e);Q(e,"union");var o=n(e),a=D(e,!0),l=R(e);return{kind:i.Kind.UNION_TYPE_DEFINITION,description:r,name:o,directives:a,types:l,loc:G(e,t)}}(e);case"enum":return function(e){var t=e.token,r=I(e);Q(e,"enum");var o=n(e),a=D(e,!0),l=P(e);return{kind:i.Kind.ENUM_TYPE_DEFINITION,description:r,name:o,directives:a,values:l,loc:G(e,t)}}(e);case"input":return function(e){var t=e.token,r=I(e);Q(e,"input");var o=n(e),a=D(e,!0),l=B(e);return{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:o,directives:a,fields:l,loc:G(e,t)}}(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===h.TokenKind.NAME)switch(t.value){case"scalar":return function(e){var t=e.token;Q(e,"extend"),Q(e,"scalar");var r=n(e),o=D(e,!0);if(0===o.length)throw $(e);return{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:o,loc:G(e,t)}}(e);case"type":return function(e){var t=e.token;Q(e,"extend"),Q(e,"type");var r=n(e),o=k(e),a=D(e,!0),l=N(e);if(0===o.length&&0===a.length&&0===l.length)throw $(e);return{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:o,directives:a,fields:l,loc:G(e,t)}}(e);case"interface":return function(e){var t=e.token;Q(e,"extend"),Q(e,"interface");var r=n(e),o=D(e,!0),a=N(e);if(0===o.length&&0===a.length)throw $(e);return{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:r,directives:o,fields:a,loc:G(e,t)}}(e);case"union":return function(e){var t=e.token;Q(e,"extend"),Q(e,"union");var r=n(e),o=D(e,!0),a=R(e);if(0===o.length&&0===a.length)throw $(e);return{kind:i.Kind.UNION_TYPE_EXTENSION,name:r,directives:o,types:a,loc:G(e,t)}}(e);case"enum":return function(e){var t=e.token;Q(e,"extend"),Q(e,"enum");var r=n(e),o=D(e,!0),a=P(e);if(0===o.length&&0===a.length)throw $(e);return{kind:i.Kind.ENUM_TYPE_EXTENSION,name:r,directives:o,values:a,loc:G(e,t)}}(e);case"input":return function(e){var t=e.token;Q(e,"extend"),Q(e,"input");var r=n(e),o=D(e,!0),a=B(e);if(0===o.length&&0===a.length)throw $(e);return{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:o,fields:a,loc:G(e,t)}}(e)}throw $(e,t)}(e);case"directive":return function(e){var t=e.token,r=I(e);Q(e,"directive"),K(e,h.TokenKind.AT);var o=n(e),a=H(e);Q(e,"on");var l=function(e){W(e,h.TokenKind.PIPE);var t=[];do{t.push(U(e))}while(W(e,h.TokenKind.PIPE));return t}(e);return{kind:i.Kind.DIRECTIVE_DEFINITION,description:r,name:o,arguments:a,locations:l,loc:G(e,t)}}(e)}throw $(e,t)}function M(e){return z(e,h.TokenKind.STRING)||z(e,h.TokenKind.BLOCK_STRING)}function I(e){if(M(e))return _(e)}function V(e){var t=e.token,n=l(e);K(e,h.TokenKind.COLON);var r=O(e);return{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:G(e,t)}}function k(e){var t=[];if("implements"===e.token.value){e.advance(),W(e,h.TokenKind.AMP);do{t.push(O(e))}while(W(e,h.TokenKind.AMP)||e.options.allowLegacySDLImplementsInterfaces&&z(e,h.TokenKind.NAME))}return t}function N(e){return e.options.allowLegacySDLEmptyFields&&z(e,h.TokenKind.BRACE_L)&&e.lookahead().kind===h.TokenKind.BRACE_R?(e.advance(),e.advance(),[]):z(e,h.TokenKind.BRACE_L)?Y(e,h.TokenKind.BRACE_L,F,h.TokenKind.BRACE_R):[]}function F(e){var t=e.token,r=I(e),o=n(e),a=H(e);K(e,h.TokenKind.COLON);var l=x(e),s=D(e,!0);return{kind:i.Kind.FIELD_DEFINITION,description:r,name:o,arguments:a,type:l,directives:s,loc:G(e,t)}}function H(e){return z(e,h.TokenKind.PAREN_L)?Y(e,h.TokenKind.PAREN_L,j,h.TokenKind.PAREN_R):[]}function j(e){var t=e.token,r=I(e),o=n(e);K(e,h.TokenKind.COLON);var a=x(e),l=void 0;W(e,h.TokenKind.EQUALS)&&(l=E(e));var s=D(e,!0);return{kind:i.Kind.INPUT_VALUE_DEFINITION,description:r,name:o,type:a,defaultValue:l,directives:s,loc:G(e,t)}}function R(e){var t=[];if(W(e,h.TokenKind.EQUALS)){W(e,h.TokenKind.PIPE);do{t.push(O(e))}while(W(e,h.TokenKind.PIPE))}return t}function P(e){return z(e,h.TokenKind.BRACE_L)?Y(e,h.TokenKind.BRACE_L,Z,h.TokenKind.BRACE_R):[]}function Z(e){var t=e.token,r=I(e),o=n(e),a=D(e,!0);return{kind:i.Kind.ENUM_VALUE_DEFINITION,description:r,name:o,directives:a,loc:G(e,t)}}function B(e){return z(e,h.TokenKind.BRACE_L)?Y(e,h.TokenKind.BRACE_L,j,h.TokenKind.BRACE_R):[]}function U(e){var t=e.token,r=n(e);if(g.DirectiveLocation.hasOwnProperty(r.value))return r;throw $(e,t)}function G(e,t){if(!e.options.noLocation)return new q(t,e.lastToken,e.source)}function q(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function z(e,t){return e.token.kind===t}function W(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function K(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw(0,p.syntaxError)(e.source,n.start,"Expected "+t+", found "+(0,h.getTokenDesc)(n))}function Q(e,t){var n=e.token;if(n.kind===h.TokenKind.NAME&&n.value===t)return e.advance(),n;throw(0,p.syntaxError)(e.source,n.start,'Expected "'+t+'", found '+(0,h.getTokenDesc)(n))}function $(e,t){var n=t||e.token;return(0,p.syntaxError)(e.source,n.start,"Unexpected "+(0,h.getTokenDesc)(n))}function Y(e,t,n,r){K(e,t);for(var i=[n(e)];!W(e,r);)i.push(n(e));return i}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){var n="string"==typeof e?new f.Source(e):e;if(!(n instanceof f.Source))throw new TypeError("Must provide Source. Received: "+String(n));return function(e){var t=e.token;K(e,h.TokenKind.SOF);var n=[];do{n.push(r(e))}while(!W(e,h.TokenKind.EOF));return{kind:i.Kind.DOCUMENT,definitions:n,loc:G(e,t)}}((0,h.createLexer)(n,t||{}))},t.parseValue=function(e,t){var n="string"==typeof e?new f.Source(e):e,r=(0,h.createLexer)(n,t||{});K(r,h.TokenKind.SOF);var i=w(r,!1);return K(r,h.TokenKind.EOF),i},t.parseType=function(e,t){var n="string"==typeof e?new f.Source(e):e,r=(0,h.createLexer)(n,t||{});K(r,h.TokenKind.SOF);var i=x(r);return K(r,h.TokenKind.EOF),i},t.parseConstValue=E,t.parseTypeReference=x,t.parseNamedType=O,q.prototype.toJSON=q.prototype.inspect=function(){return{start:this.start,end:this.end}}});t(v);var m=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,l=void 0,s=Array.isArray(e),u=[e],c=-1,p=[],d=void 0,h=void 0,f=void 0,g=[],v=[],m=e;do{var y=++c===u.length,b=y&&0!==p.length;if(y){if(h=0===v.length?void 0:g[g.length-1],d=f,f=v.pop(),b){if(s)d=d.slice();else{var C={};for(var w in d)d.hasOwnProperty(w)&&(C[w]=d[w]);d=C}for(var _=0,E=0;E"!==n.kind;)"Comment"===n.kind&&(Object.assign(n,{column:n.column-1}),t.push(n)),n=n.next;return t}(),function t(n){if(n&&"object"===e(n))for(var r in delete n.startToken,delete n.endToken,delete n.prev,delete n.next,n)t(n[r]);return n}(r),r}catch(e){throw e instanceof p.GraphQLError?function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}},astFormat:"graphql",hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}}}}}()},b7mW:function(e,t,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},bCCX:function(e,t,n){"use strict";n.r(t),(function(e){var r,i=n("SLVX");r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e;var o=Object(i.a)(r);t.default=o}).call(this,n("3UD+")(e))},bWpG:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function a(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.durationSelector))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.c(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(n){this.destination.error(n)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(o.a)(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(i.a)},cV09:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}function n(e,t,n){return e<=t?e:Math.max(t,e+n)}e.defineExtension("showMatchesOnScrollbar",function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)}),t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to);t++)i.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var n=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),this.caseFold),r=this.options&&this.options.maxMatches||1e3;n.findNext();){var i;if((i={from:n.from(),to:n.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>r)break}this.gap=null}},t.prototype.onChange=function(t){var r=t.from.line,i=e.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,r,o),t.from.line),this.gap.to=Math.max(n(this.gap.to,r,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var a=0;a=0;a--){var l=i[a].from(),s=i[a].to();l.line>=n||(s.line>=n&&(s=r(n,0)),n=l.line,null==o?this.uncomment(l,s,e)?o="un":(this.lineComment(l,s,e),o="line"):"un"==o?this.uncomment(l,s,e):this.lineComment(l,s,e))}}),e.defineExtension("lineComment",function(e,a,l){l||(l=t);var s=this,u=o(s,e),c=s.getLine(e.line);if(null!=c&&(p=c,!/\bstring\b/.test(s.getTokenTypeAt(r(e.line,0)))||/^[\'\"\`]/.test(p))){var p,d=l.lineComment||u.lineComment;if(d){var h=Math.min(0!=a.ch||a.line==e.line?a.line+1:a.line,s.lastLine()+1),f=null==l.padding?" ":l.padding,g=l.commentBlankLines||e.line==a.line;s.operation(function(){if(l.indent){for(var t=null,o=e.line;oa.length)&&(t=a)}for(o=e.line;op||l.operation(function(){if(0!=a.fullLines){var t=n.test(l.getLine(p));l.replaceRange(d+c,r(p)),l.replaceRange(u+d,r(e.line,0));var o=a.blockCommentLead||s.blockCommentLead;if(null!=o)for(var h=e.line+1;h<=p;++h)(h!=p||t)&&l.replaceRange(o+d,r(h,0))}else l.replaceRange(c,i),l.replaceRange(u,e)})}}else(a.lineComment||s.lineComment)&&0!=a.fullLines&&l.lineComment(e,i,a)}),e.defineExtension("uncomment",function(e,i,a){a||(a=t);var l,s=this,u=o(s,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,s.lastLine()),p=Math.min(e.line,c),d=a.lineComment||u.lineComment,h=[],f=null==a.padding?" ":a.padding;e:if(d){for(var g=p;g<=c;++g){var v=s.getLine(g),m=v.indexOf(d);if(m>-1&&!/comment/.test(s.getTokenTypeAt(r(g,m+1)))&&(m=-1),-1==m&&n.test(v))break e;if(m>-1&&n.test(v.slice(0,m)))break e;h.push(v)}if(s.operation(function(){for(var e=p;e<=c;++e){var t=h[e-p],n=t.indexOf(d),i=n+d.length;n<0||(t.slice(i,i+f.length)==f&&(i+=f.length),l=!0,s.replaceRange("",r(e,n),r(e,i)))}}),l)return!0}var y=a.blockCommentStart||u.blockCommentStart,b=a.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var C=a.blockCommentLead||u.blockCommentLead,w=s.getLine(p),_=w.indexOf(y);if(-1==_)return!1;var E=c==p?w:s.getLine(c),A=E.indexOf(b,c==p?_+y.length:0),S=r(p,_+1),D=r(c,A+1);if(-1==A||!/comment/.test(s.getTokenTypeAt(S))||!/comment/.test(s.getTokenTypeAt(D))||s.getRange(S,D,"\n").indexOf(b)>-1)return!1;var T=w.lastIndexOf(y,e.ch),x=-1==T?-1:w.slice(0,e.ch).indexOf(b,T+y.length);if(-1!=T&&-1!=x&&x+b.length!=e.ch)return!1;x=E.indexOf(b,i.ch);var O=E.slice(i.ch).lastIndexOf(y,x-i.ch);return T=-1==x||-1==O?-1:i.ch+O,(-1==x||-1==T||T==i.ch)&&(s.operation(function(){s.replaceRange("",r(c,A-(f&&E.slice(A-f.length,A)==f?f.length:0)),r(c,A+b.length));var e=_+y.length;if(f&&w.slice(e,e+f.length)==f&&(e+=f.length),s.replaceRange("",r(p,_),r(p,e)),C)for(var t=p+1;t<=c;++t){var i=s.getLine(t),o=i.indexOf(C);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+C.length;f&&i.slice(a,a+f.length)==f&&(a+=f.length),s.replaceRange("",r(t,o),r(t,a))}}}),!0)})}(n("VrN/"))},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},dC0D:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(e,t,n))}}var a=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.hasSeed))},e}(),l=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.c(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)},t}(i.a)},dEwP:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("nkY7"),i=n("F/XL"),o=n("0/uQ"),a=n("Txjg");function l(){for(var e=[],t=0;t=o)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}}),s=i[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),u(r,e,r.depth)}function l(e,t){var n=a.styles[t];return n?"\x1b["+a.colors[n][0]+"m"+e+"\x1b["+a.colors[n][1]+"m":e}function s(e,t){return e}function u(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=u(e,i,r)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):f(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a,l=Object.keys(n),s=(a={},l.forEach(function(e,t){a[e]=!0}),a);if(e.showHidden&&(l=Object.getOwnPropertyNames(n)),w(n)&&(l.indexOf("message")>=0||l.indexOf("description")>=0))return c(n);if(0===l.length){if(_(n))return e.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(y(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return e.stylize(Date.prototype.toString.call(n),"date");if(w(n))return c(n)}var b,E="",A=!1,S=["{","}"];return d(n)&&(A=!0,S=["[","]"]),_(n)&&(E=" [Function"+(n.name?": "+n.name:"")+"]"),y(n)&&(E=" "+RegExp.prototype.toString.call(n)),C(n)&&(E=" "+Date.prototype.toUTCString.call(n)),w(n)&&(E=" "+c(n)),0!==l.length||A&&0!=n.length?r<0?y(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),b=A?function(e,t,n,r,i){for(var o=[],a=0,l=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(b,E,S)):S[0]+E+S[1]}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,l,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?l=e.stylize(s.set?"[Getter/Setter]":"[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),D(r,i)||(a="["+i+"]"),l||(e.seen.indexOf(s.value)<0?(l=f(n)?u(e,s.value,null):u(e,s.value,n-1)).indexOf("\n")>-1&&(l=o?l.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+l.split("\n").map(function(e){return" "+e}).join("\n")):l=e.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return l;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+l}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function f(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function m(e){return void 0===e}function y(e){return b(e)&&"[object RegExp]"===E(e)}function b(e){return"object"==typeof e&&null!==e}function C(e){return b(e)&&"[object Date]"===E(e)}function w(e){return b(e)&&("[object Error]"===E(e)||e instanceof Error)}function _(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;o[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else o[e]=function(){};return o[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=f,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=y,t.isObject=b,t.isDate=C,t.isError=w,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n("VNB6");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[A((e=new Date).getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n("5wz/"),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},"das/":function(e,t,n){"use strict";function r(e){return null==e||e!=e}n.d(t,"a",function(){return r})},dp2Y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHoverInformation=function(e,t,n,i){var p=i||(0,r.getTokenAtPosition)(t,n);if(!e||!p||!p.state)return[];var d=p.state,h=d.kind,f=d.step,g=(0,r.getTypeInfo)(e,p.state),v={schema:e};if("Field"===h&&0===f&&g.fieldDef||"AliasedField"===h&&2===f&&g.fieldDef){var m=[];return function(e,t,n){o(e,t,n),l(e,t,n,t.type)}(m,g,v),u(m,0,g.fieldDef),m.join("").trim()}if("Directive"===h&&1===f&&g.directiveDef){var y=[];return a(y,g),u(y,0,g.directiveDef),y.join("").trim()}if("Argument"===h&&0===f&&g.argDef){var b=[];return function(e,t,n){if(t.directiveDef?a(e,t):t.fieldDef&&o(e,t,n),t.argDef){var r=t.argDef.name;c(e,"("),c(e,r),l(e,t,n,t.inputType),c(e,")")}}(b,g,v),u(b,0,g.argDef),b.join("").trim()}if("EnumValue"===h&&g.enumValue&&g.enumValue.description){var C=[];return function(e,t,n){if(t.enumValue){var r=t.enumValue.name;s(e,t,n,t.inputType),c(e,"."),c(e,r)}}(C,g,v),u(C,0,g.enumValue),C.join("").trim()}if("NamedType"===h&&g.type&&g.type.description){var w=[];return s(w,g,v,g.type),u(w,0,g.type),w.join("").trim()}};var r=n("reK8"),i=n("Tzvz");function o(e,t,n){if(t.fieldDef){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(s(e,t,n,t.parentType),c(e,".")),c(e,r)}}function a(e,t,n){t.directiveDef&&c(e,"@"+t.directiveDef.name)}function l(e,t,n,r){c(e,": "),s(e,t,n,r)}function s(e,t,n,r){r&&(r instanceof i.GraphQLNonNull?(s(e,t,n,r.ofType),c(e,"!")):r instanceof i.GraphQLList?(c(e,"["),s(e,t,n,r.ofType),c(e,"]")):c(e,r.name))}function u(e,t,n){if(n){var r="string"==typeof n.description?n.description:null;r&&(c(e,"\n\n"),c(e,r)),function(e,t,n){if(n){var r="string"==typeof n.deprecationReason?n.deprecationReason:null;r&&(c(e,"\n\n"),c(e,"Deprecated: "),c(e,r))}}(e,0,n)}}function c(e,t){e.push(t)}},dwPZ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("dWS+");function i(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var i=t.name.value;return n[i]?e.reportError(new r.a(function(e){return'There can be only one input field named "'.concat(e,'".')}(i),[n[i],t.name])):n[i]=t.name,!1}}}},dzgT:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return p});var r=n("mrSG"),i=n("nkY7"),o=n("isby"),a=n("MGBS"),l=n("zotm"),s=n("IUTb"),u={};function c(){for(var e=[],t=0;t1&&e.reportError(new r.a("This anonymous operation must be the only defined operation.",[n]))}}}},gI3B:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("6blF"),i=n("T1DM"),o=n("/21U"),a=n("nkY7");function l(e,t,n){void 0===e&&(e=0);var l=-1;return Object(o.a)(t)?l=Number(t)<1?1:Number(t):Object(a.a)(t)&&(n=t),Object(a.a)(n)||(n=i.a),new r.a(function(t){var r=Object(o.a)(e)?e:+e-n.now();return n.schedule(s,r,{index:0,period:l,subscriber:t})})}function s(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},gIcY:function(e,t,n){"use strict";n.r(t);var r=n("mrSG"),i=n("CcnG"),o=n("6blF"),a=n("isby"),l=n("G5J1"),s=n("zotm"),u=n("MGBS"),c=n("67Y/"),p=function(e){function t(t,n){var r=e.call(this,t)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;oe?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return v(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return v(e.value)?null:b.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(v(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(v(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(w);return 0==t.length?null:function(e){return E(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(w);return 0==t.length?null:function(e){return function e(){for(var t,n=[],r=0;r=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),j=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(N),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),R={provide:A,useExisting:Object(i.forwardRef)(function(){return P}),multi:!0},P=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Z='\n
    \n \n
    \n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',B='\n
    \n
    \n \n
    \n
    \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',U='\n
    \n
    \n \n
    \n
    ',G=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Z)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+B+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+U)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Z)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+B)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}(),q={provide:A,useExisting:Object(i.forwardRef)(function(){return W}),multi:!0};function z(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var W=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=z(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var i=Object(r.h)(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var a=o.value;if(this._compareWith(this._optionMap.get(a),e))return a}}catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),K=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(z(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}(),Q={provide:A,useExisting:Object(i.forwardRef)(function(){return Y}),multi:!0};function $(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var Y=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function oe(e){return null!=e?C.compose(e.map(L)):null}function ae(e){return null!=e?C.composeAsync(e.map(M)):null}function le(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(i["\u0275looseIdentical"])(t,n.currentValue)}var se=[D,P,V,W,Y,j];function ue(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ce(e,t){if(!t)return null;Array.isArray(t)||ie(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){var o;t.constructor===O?n=t:(o=t,se.some(function(e){return o.constructor===e})?(r&&ie(e,"More than one built-in value accessor matches form control with"),r=t):(i&&ie(e,"More than one custom value accessor matches form control with"),i=t))}),i||r||n||(ie(e,"No valid value accessor for form control with"),null)}function pe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function de(e,t,n,r){Object(i.isDevMode)()&&"never"!==r&&((null!==r&&"once"!==r||t._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(G.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}var he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return J(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return oe(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ae(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(g),fe=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),ge={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},ve=function(e){function t(t){return e.call(this,t)||this}return Object(r.c)(t,e),t}(fe),me=function(e){function t(t){return e.call(this,t)||this}return Object(r.c)(t,e),t}(fe);function ye(e){var t=Ce(e)?e.validators:e;return Array.isArray(t)?oe(t):t||null}function be(e,t){var n=Ce(t)?t.asyncValidators:e;return Array.isArray(n)?ae(n):n||null}function Ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var we=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ye(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=be(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(r.a)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(r.a)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof Ee?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Ae&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){Ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),_e=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,ye(n),be(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.c)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(we),Ee=function(e){function t(t,n,r){var i=e.call(this,ye(n),be(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.c)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof _e?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(r.h)(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(we),Ae=function(e){function t(t,n,r){var i=e.call(this,ye(n),be(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.c)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof _e?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(r.h)(this.controls),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(we),Se={provide:g,useExisting:Object(i.forwardRef)(function(){return Te})},De=Promise.resolve(null),Te=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.EventEmitter,r.form=new Ee({},oe(t),ae(n)),r}return Object(r.c)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ee(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),pe(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;De.then(function(){var n=t._findContainer(e.path),r=new Ee({});ne(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;De.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ue(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(g),xe=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Z+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
    \n \n \n
    \n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+B+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+U)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+B+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+U)},e.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n \n\n After:\n \n ")},e}(),Oe=new i.InjectionToken("NgFormSelectorWarning"),Le=function(){function e(e){(e&&"once"!==e||t._ngFormWarning)&&"always"!==e||(xe.ngFormWarning(),t._ngFormWarning=!0)}var t;return t=e,e._ngFormWarning=!1,e}(),Me={provide:g,useExisting:Object(i.forwardRef)(function(){return Ie})},Ie=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}var n;return Object(r.c)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Te||xe.modelGroupParentException()},t}(he),Ve={provide:N,useExisting:Object(i.forwardRef)(function(){return Ne})},ke=Promise.resolve(null),Ne=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.control=new _e,a._registered=!1,a.update=new i.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=ce(a,o),a}return Object(r.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),le(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?J(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return oe(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ae(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){ee(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Ie)&&this._parent instanceof he?xe.formGroupNameException():this._parent instanceof Ie||this._parent instanceof Te||xe.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||xe.missingNameException()},t.prototype._updateValue=function(e){var t=this;ke.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;ke.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(N),Fe=new i.InjectionToken("NgModelWithFormControlWarning"),He={provide:N,useExisting:Object(i.forwardRef)(function(){return je})},je=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a._ngModelWarningConfig=o,a.update=new i.EventEmitter,a._ngModelWarningSent=!1,a._rawValidators=t||[],a._rawAsyncValidators=n||[],a.valueAccessor=ce(a,r),a}var n;return Object(r.c)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){G.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(ee(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),le(e,this.viewModel)&&(de("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return oe(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ae(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t._ngModelWarningSentOnce=!1,t}(N),Re={provide:g,useExisting:Object(i.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new i.EventEmitter,r}return Object(r.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return ee(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){pe(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);ne(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);ne(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ue(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return re(t)}),t.valueAccessor.registerOnTouched(function(){return re(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&ee(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=oe(this._validators);this.form.validator=C.compose([this.form.validator,e]);var t=ae(this._asyncValidators);this.form.asyncValidator=C.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||G.missingFormException()},t}(g),Ze={provide:g,useExisting:Object(i.forwardRef)(function(){return Be})},Be=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return Object(r.c)(t,e),t.prototype._checkParentType=function(){qe(this._parent)&&G.groupParentException()},t}(he),Ue={provide:g,useExisting:Object(i.forwardRef)(function(){return Ge})},Ge=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return Object(r.c)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return J(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return oe(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ae(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){qe(this._parent)&&G.arrayParentException()},t}(g);function qe(e){return!(e instanceof Be||e instanceof Pe||e instanceof Ge)}var ze={provide:N,useExisting:Object(i.forwardRef)(function(){return We})},We=function(e){function t(t,n,r,o,a){var l=e.call(this)||this;return l._ngModelWarningConfig=a,l._added=!1,l.update=new i.EventEmitter,l._ngModelWarningSent=!1,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=r||[],l.valueAccessor=ce(l,o),l}var n;return Object(r.c)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){G.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),le(e,this.viewModel)&&(de("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return J(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return oe(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return ae(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Be)&&this._parent instanceof he?G.ngModelGroupException():this._parent instanceof Be||this._parent instanceof Pe||this._parent instanceof Ge||G.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t._ngModelWarningSentOnce=!1,t}(N),Ke={provide:m,useExisting:Object(i.forwardRef)(function(){return $e}),multi:!0},Qe={provide:m,useExisting:Object(i.forwardRef)(function(){return Ye}),multi:!0},$e=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?C.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.validate=function(e){return this.required?C.requiredTrue(e):null},t}($e),Xe={provide:m,useExisting:Object(i.forwardRef)(function(){return Je}),multi:!0},Je=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?C.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),et={provide:m,useExisting:Object(i.forwardRef)(function(){return tt}),multi:!0},tt=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=C.minLength(parseInt(this.minlength,10))},e}(),nt={provide:m,useExisting:Object(i.forwardRef)(function(){return rt}),multi:!0},rt=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=C.maxLength(parseInt(this.maxlength,10))},e}(),it={provide:m,useExisting:Object(i.forwardRef)(function(){return ot}),multi:!0},ot=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=C.pattern(this.pattern)},e}(),at=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new Ee(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new _e(e,t,n)},e.prototype.array=function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Ae(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){return e instanceof _e||e instanceof Ee||e instanceof Ae?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),lt=new i.Version("7.0.1"),st=function(){return function(){}}(),ut=[st,K,X,O,V,P,D,W,Y,j,ve,me,$e,tt,rt,ot,Ye,Je],ct=[Ne,Ie,Te,Le],pt=[je,Pe,We,Be,Ge],dt=function(){return function(){}}(),ht=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Oe,useValue:e.warnOnDeprecatedNgFormSelector}]}},e}(),ft=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Fe,useValue:e.warnOnNgModelWithFormControl}]}},e}()},gQ7D:function(e,t,n){"use strict";e.exports=n("aUsF")},gggk:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("dWS+");function i(e){return{OperationDefinition:function(t){var n;"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new r.a(((n=t.name&&t.name.value)?'Subscription "'.concat(n,'" '):"Anonymous Subscription ")+"must select only one top level field.",t.selectionSet.selections.slice(1)))}}}},grTV:function(e,t){throw new Error("Module parse failed: Unexpected token (11:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {\n| DocumentNode,\n| FragmentSpreadNode,")},h9Dq:function(e,t,n){"use strict";var r=n("mrSG"),i=function(e){function t(t,n){return e.call(this)||this}return r.c(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n("pugT").a);n.d(t,"a",function(){return o});var o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.c(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(i)},hY1Q:function(e,t){throw new Error("Module parse failed: Unexpected token (16:12)\nYou may need an appropriate loader to handle this file type.\n| */\n| \n> import type {GraphQLSchema} from 'graphql';\n| import type {ContextToken} from 'graphql-language-service-types';\n| import type {Hover} from 'vscode-languageserver-types';")},i1zs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,a.default)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?l(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,i.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":var r="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&l(e,n.parentType,t.prevState.name):null;n.argDefs=r&&r.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o1,r.options.tooltips))}}var v;i.onUpdateLinting&&i.onUpdateLinting(n,s,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){s(e)},t.options.delay||500))}e.defineOption("lint",!1,function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var l=n.getOption("gutters"),u=!1,p=0;p":".","?":"/","|":"\\"},p={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();m.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},m.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},m.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},m.prototype.reset=function(){return this._callbacks={},this._directMap={},this},m.prototype.stopCallback=function(e,t){return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&!function e(t,n){return null!==t&&t!==o&&(t===n||e(t.parentNode,n))}(t,this.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable)},m.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},m.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);l=null},m.init=function(){var e=m(o);for(var t in e)"_"!==t.charAt(0)&&(m[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},m.init(),i.Mousetrap=m,void 0!==e&&e.exports&&(e.exports=m),void 0===(r=(function(){return m}).call(t,n,t,e))||(e.exports=r)}function h(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:u[e.which]?u[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function v(e,t){var n,r,i,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i95&&e<112||s.hasOwnProperty(e)&&(l[s[e]]=e);return l}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}(r,o,t)}}function m(e){var t=this;if(e=e||o,!(t instanceof m))return new m(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},i=!1,a=!1,l=!1;function s(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(l=!1)}function u(e,n,i,o,a,l){var s,u,c,p=[],d=i.type;if(!t._callbacks[e])return[];for("keyup"==d&&g(e)&&(n=[e]),s=0;s1?function(e,t,o,a){function u(t){return function(){l=t,++r[e],clearTimeout(n),n=setTimeout(s,1e3)}}function p(t){c(o,t,e),"keyup"!==a&&(i=f(t)),setTimeout(s,10)}r[e]=0;for(var h=0;h0?c.filter(function(e){return-1===e.message.indexOf("Unknown directive")||!(e.nodes&&e.nodes[0]&&e.nodes[0].name&&"arguments"===e.nodes[0].name.value||e.nodes&&e.nodes[0]&&e.nodes[0].name&&e.nodes[0].name.value&&"argumentDefinitions"===e.nodes[0].name.value)}):[]};var r=n("Tzvz")},isby:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},jDMi:function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"};function i(e,t,i){var a=e.getLineHandle(t.line),l=t.ch-1,s=i&&i.afterCursor;null==s&&(s=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=!s&&l>=0&&r[a.text.charAt(l)]||r[a.text.charAt(++l)];if(!u)return null;var c=">"==u.charAt(1)?1:-1;if(i&&i.strict&&c>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),d=o(e,n(t.line,l+(c>0?1:0)),c,p||null,i);return null==d?null:{from:n(t.line,l),to:d&&d.pos,match:d&&d.ch==u.charAt(0),forward:c>0}}function o(e,t,i,o,a){for(var l=a&&a.maxScanLineLength||1e4,s=a&&a.maxScanLines||1e3,u=[],c=a&&a.bracketRegex?a.bracketRegex:/[(){}[\]]/,p=i>0?Math.min(t.line+s,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-s),d=t.line;d!=p;d+=i){var h=e.getLine(d);if(h){var f=i>0?0:h.length-1,g=i>0?h.length:-1;if(!(h.length>l))for(d==t.line&&(f=t.ch-(i<0?1:0));f!=g;f+=i){var v=h.charAt(f);if(c.test(v)&&(void 0===o||e.getTokenTypeAt(n(d,f+1))==o))if(">"==r[v].charAt(1)==i>0)u.push(v);else{if(!u.length)return{pos:n(d,f),ch:v};u.pop()}}}}return d-i!=(i>0?e.lastLine():e.firstLine())&&null}function a(e,r,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,l=[],s=e.listSelections(),u=0;ui))break;o=a}}return o?{from:e.Pos(r.line,n.getLine(r.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}})}(n("VrN/"))},jZto:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WS_TIMEOUT=3e4},jpir:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("2pGb");Object.defineProperty(t,"CharacterStream",{enumerable:!0,get:function(){return l(r).default}});var i=n("OgOH");Object.defineProperty(t,"LexRules",{enumerable:!0,get:function(){return i.LexRules}}),Object.defineProperty(t,"ParseRules",{enumerable:!0,get:function(){return i.ParseRules}}),Object.defineProperty(t,"isIgnored",{enumerable:!0,get:function(){return i.isIgnored}});var o=n("PKcT");Object.defineProperty(t,"butNot",{enumerable:!0,get:function(){return o.butNot}}),Object.defineProperty(t,"list",{enumerable:!0,get:function(){return o.list}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return o.p}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return o.t}});var a=n("lpFD");function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"onlineParser",{enumerable:!0,get:function(){return l(a).default}})},kBjl:function(e,t,n){"use strict";function r(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}n.d(t,"a",function(){return r})},kHuA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseRules=t.LexRules=t.isIgnored=void 0;var r=n("PIH+");function i(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function o(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}t.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},t.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},t.ParseRules={Document:[(0,r.list)("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[i("query"),(0,r.opt)(o("def")),(0,r.opt)("VariableDefinitions"),(0,r.list)("Directive"),"SelectionSet"],Mutation:[i("mutation"),(0,r.opt)(o("def")),(0,r.opt)("VariableDefinitions"),(0,r.list)("Directive"),"SelectionSet"],Subscription:[i("subscription"),(0,r.opt)(o("def")),(0,r.opt)("VariableDefinitions"),(0,r.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,r.p)("("),(0,r.list)("VariableDefinition"),(0,r.p)(")")],VariableDefinition:["Variable",(0,r.p)(":"),"Type",(0,r.opt)("DefaultValue")],Variable:[(0,r.p)("$","variable"),o("variable")],DefaultValue:[(0,r.p)("="),"Value"],SelectionSet:[(0,r.p)("{"),(0,r.list)("Selection"),(0,r.p)("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[o("property"),(0,r.p)(":"),o("qualifier"),(0,r.opt)("Arguments"),(0,r.list)("Directive"),(0,r.opt)("SelectionSet")],Field:[o("property"),(0,r.opt)("Arguments"),(0,r.list)("Directive"),(0,r.opt)("SelectionSet")],Arguments:[(0,r.p)("("),(0,r.list)("Argument"),(0,r.p)(")")],Argument:[o("attribute"),(0,r.p)(":"),"Value"],FragmentSpread:[(0,r.p)("..."),o("def"),(0,r.list)("Directive")],InlineFragment:[(0,r.p)("..."),(0,r.opt)("TypeCondition"),(0,r.list)("Directive"),"SelectionSet"],FragmentDefinition:[i("fragment"),(0,r.opt)((0,r.butNot)(o("def"),[i("on")])),"TypeCondition",(0,r.list)("Directive"),"SelectionSet"],TypeCondition:[i("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,r.t)("Number","number")],StringValue:[(0,r.t)("String","string")],BooleanValue:[(0,r.t)("Name","builtin")],NullValue:[(0,r.t)("Name","keyword")],EnumValue:[o("string-2")],ListValue:[(0,r.p)("["),(0,r.list)("Value"),(0,r.p)("]")],ObjectValue:[(0,r.p)("{"),(0,r.list)("ObjectField"),(0,r.p)("}")],ObjectField:[o("attribute"),(0,r.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[(0,r.p)("["),"Type",(0,r.p)("]"),(0,r.opt)((0,r.p)("!"))],NonNullType:["NamedType",(0,r.opt)((0,r.p)("!"))],NamedType:[{style:"atom",match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}}],Directive:[(0,r.p)("@","meta"),o("meta"),(0,r.opt)("Arguments")],SchemaDef:[i("schema"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("OperationTypeDef"),(0,r.p)("}")],OperationTypeDef:[o("keyword"),(0,r.p)(":"),o("atom")],ScalarDef:[i("scalar"),o("atom"),(0,r.list)("Directive")],ObjectTypeDef:[i("type"),o("atom"),(0,r.opt)("Implements"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("FieldDef"),(0,r.p)("}")],Implements:[i("implements"),(0,r.list)("NamedType")],FieldDef:[o("property"),(0,r.opt)("ArgumentsDef"),(0,r.p)(":"),"Type",(0,r.list)("Directive")],ArgumentsDef:[(0,r.p)("("),(0,r.list)("InputValueDef"),(0,r.p)(")")],InputValueDef:[o("attribute"),(0,r.p)(":"),"Type",(0,r.opt)("DefaultValue"),(0,r.list)("Directive")],InterfaceDef:[i("interface"),o("atom"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("FieldDef"),(0,r.p)("}")],UnionDef:[i("union"),o("atom"),(0,r.list)("Directive"),(0,r.p)("="),(0,r.list)("UnionMember",(0,r.p)("|"))],UnionMember:["NamedType"],EnumDef:[i("enum"),o("atom"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("EnumValueDef"),(0,r.p)("}")],EnumValueDef:[o("string-2"),(0,r.list)("Directive")],InputDef:[i("input"),o("atom"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("InputValueDef"),(0,r.p)("}")],ExtendDef:[i("extend"),"ObjectTypeDef"],DirectiveDef:[i("directive"),(0,r.p)("@","meta"),o("meta"),(0,r.opt)("ArgumentsDef"),i("on"),(0,r.list)("DirectiveLocation",(0,r.p)("|"))],DirectiveLocation:[o("string-2")]}},kiQV:function(e){e.exports={name:"altair",productName:"Altair GraphQL Client",version:"2.1.7",license:"MIT",author:"Samuel Imolorhe (https://sirmuel.design/)",description:"The best graphQL client you will ever need",homepage:"https://imolorhe.github.io/altair/",keywords:["graphql","altair","wysiwyg","editor","client"],main:"electron/main.js",scripts:{ng:"ng",start:"ng serve","start:prod":"node server","start:prod:translate":"node server --translate",build:"npm run generate-settings-schema-validator && ng build --prod --aot --stats-json",test:"ng test","test-single-run":"ng test --watch=false --code-coverage","test-build":"ng lint && npm run build && npm run test-single-run","local-verify":"ng test --single-run && ng lint && ng e2e && yarn build && lerna bootstrap",lint:"ng lint",e2e:"ng e2e","heroku-postbuild":"npm run build",electron:"npm run build && ./electron/fix-base-path.sh && ./node_modules/.bin/electron .","build-electron":"./bin/package_electron_app.sh","build-ext":"npm run build && ./bin/chrome_ext.sh",package:"electron-forge package",make:"electron-forge make","dist-electron":"build","test-electron":"npm run build && ./electron/fix-base-path.sh && npm run test-electron:simple","test-electron:simple":"./node_modules/.bin/mocha --full-trace electron/__tests__",postinstall:"npm run generate-settings-schema-validator && opencollective postinstall","lerna-publish":"lerna publish from-git --force-publish=* --yes","publish-packages":"npm run build && lerna bootstrap && npm run lerna-publish","generate-settings-schema":"./node_modules/.bin/typescript-json-schema --ignoreErrors src/app/reducers/settings/settings.ts State > src/app/utils/settings.schema.json","compile-settings-schema-validator":"ajv compile -s src/app/utils/settings.schema.json -o src/app/utils/validate_settings_schema.js","generate-settings-schema-validator":"npm run generate-settings-schema && npm run compile-settings-schema-validator"},engines:{node:">= 6.9.1"},private:!0,dependencies:{"@angular/animations":"^7.0.1","@angular/cdk":"7.0.3","@angular/cli":"^7.0.3","@angular/common":"^7.0.1","@angular/compiler":"^7.0.1","@angular/compiler-cli":"^7.0.1","@angular/core":"^7.0.1","@angular/forms":"^7.0.1","@angular/http":"^7.0.1","@angular/platform-browser":"^7.0.1","@angular/platform-browser-dynamic":"^7.0.1","@angular/platform-server":"^7.0.1","@angular/router":"^7.0.1","@beyerleinf/ngx-dnd":"^6.0.0-preview3","@clr/angular":"^0.13.7","@clr/icons":"^0.13.7","@clr/ui":"^0.13.7","@ctrl/ngx-codemirror":"^1.3.9","@ngrx/effects":"^6.1.0","@ngrx/store":"^6.1.0","@ngrx/store-devtools":"^6.1.0","@ngui/auto-complete":"^2.0.0","@ngx-translate/core":"^11.0.0","@ngx-translate/http-loader":"^4.0.0","@webcomponents/custom-elements":"^1.2.4","angular-sortablejs":"^2.5.1","body-parser":"^1.17.1",bootstrap:"4.0.0-alpha.5",codemirror:"^5.41.0","codemirror-graphql":"^0.6.12","comment-regex":"^1.0.1","cookie-parser":"^1.4.3","core-js":"^2.5.3",curlup:"^1.0.0",dexie:"^2.0.4","electron-compile":"^6.4.4","electron-debug":"^2.0.0","electron-is-dev":"^1.0.0","electron-log":"^3.0.2","electron-squirrel-startup":"^1.0.0","electron-updater":"^4.0.1","electron-util":"^0.10.0","electron-window-state":"^5.0.3",express:"^4.16.2","file-dialog":"^0.0.7","file-saver":"^2.0.0-rc.4",graphql:"^14.0.2","graphql-query-compress":"^1.0.0",marked:"^0.6.2",mousetrap:"^1.6.2","mousetrap-global-bind":"^1.1.0","ngrx-store-localstorage":"^6.0.0","ngx-contextmenu":"^5.1.1","ngx-electron":"^2.0.0","ngx-markdown":"^7.1.4","ngx-pipes":"^2.1.0","ngx-popper":"^6.0.6","ngx-toastr":"^9.1.2",opencollective:"^1.0.3","popper.js":"^1.14.6",prettier:"^1.14.3",rxjs:"^6.3.3",sortablejs:"^1.7.0","subscriptions-transport-ws":"0.9.16","to-snake-case":"^1.0.0",uuid:"^3.1.0","valid-url":"^1.0.9","zone.js":"^0.8.20"},devDependencies:{"@angular-devkit/build-angular":"~0.10.0","@types/chrome":"^0.0.83","@types/electron":"^1.4.38","@types/graphql":"^14.2.0","@types/jasmine":"3.3.12","@types/mousetrap":"^1.6.0","@types/node":"^11.11.8","ajv-cli":"^3.0.0","babel-plugin-transform-async-to-generator":"^6.24.1","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1",chai:"^4.2.0","chai-as-promised":"^7.1.1",codelyzer:"^4.0.2",devtron:"^1.4.0","electron-builder":"^20.27.1","electron-chromedriver":"^5.0.0-beta.1","electron-prebuilt-compile":"^4.0.0","electron-reloader":"^0.2.0","jasmine-core":"^3.1.0","jasmine-spec-reporter":"~4.2.1",karma:"^4.0.1","karma-chrome-launcher":"^2.2.0","karma-cli":"^2.0.0","karma-coverage-istanbul-reporter":"^2.0.0","karma-jasmine":"^2.0.1","karma-jasmine-html-reporter":"1.3.1",lerna:"^3.10.7","mime-types":"^2.1.17",mocha:"6.1.4",ncp:"^2.0.0","ngrx-store-freeze":"^0.2.0",protractor:"^5.2.2",spectron:"^5.0.0","ts-node":"^8.0.3",tslint:"^5.9.1",typescript:">=3.1.1 <3.2","typescript-json-schema":"^0.37.0","web-ext":"^3.0.0"},config:{forge:"./forge.config.js"},repository:{type:"git",url:"git+https://github.com/imolorhe/altair.git"},bugs:{url:"https://github.com/imolorhe/altair/issues"},collective:{type:"opencollective",url:"https://opencollective.com/altair",logo:"https://opencollective.com/altair/logo.txt"}}},klSw:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("S5bw");function i(e,t,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY),function(i){return i.lift(function(e,t,n){var i,o,a=0,l=!1,s=!1;return function(u){a++,i&&!l||(l=!1,i=new r.a(e,t,n),o=u.subscribe({next:function(e){i.next(e)},error:function(e){l=!0,i.error(e)},complete:function(){s=!0,i.complete()}}));var c=i.subscribe(this);return function(){a--,c.unsubscribe(),o&&0===a&&s&&o.unsubscribe()}}}(e,t,n))}}},lORA:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("dWS+");function i(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new r.a('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},lpFD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return l(e.parseRules,t,"Document"),t},token:function(t,n){return function(e,t,n){var r=n.lexRules,i=n.parseRules,c=n.eatWhitespace,d=n.editorConfig;if(t.rule&&0===t.rule.length?s(t):t.needsAdvance&&(t.needsAdvance=!1,u(t,!0)),e.sol()){var h=d&&d.tabSize||2;t.indentLevel=Math.floor(e.indentation()/h)}if(c(e))return"ws";var f=function(e,t){for(var n=Object.keys(e),r=0;r0&&v[v.length-1] import type {\n| Outline,\n| TextToken,")},"m3Q/":function(e,t,n){!function(e){"use strict";var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in c)i[o]=c[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;iu.clientHeight+1,A=s.getScrollInfo();if(_>0){var S=w.bottom-w.top;if(g.top-(g.bottom-w.top)-S>0)u.style.top=(m=g.top-S)+"px",y=!1;else if(S>C){u.style.height=C-5+"px",u.style.top=(m=g.bottom-w.top)+"px";var D=s.getCursor();i.from.ch!=D.ch&&(g=s.cursorCoords(D),u.style.left=(v=g.left)+"px",w=u.getBoundingClientRect())}}var T,x=w.right-b;if(x>0&&(w.right-w.left>b&&(u.style.width=b-5+"px",x-=w.right-w.left-b),u.style.left=(v=g.left-x)+"px"),E)for(var O=u.firstChild;O;O=O.nextSibling)O.style.paddingRight=s.display.nativeBarWidth+"px";return s.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var l=e.options.extraKeys;if(l)for(var a in l)l.hasOwnProperty(a)&&o(a,l[a]);return i}(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:c.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){T=setTimeout(function(){r.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(T)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect(),n=m+A.top-e.top,i=n-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(y||(i+=u.offsetHeight),i<=t.top||i>=t.bottom)return r.close();u.style.top=n+"px",u.style.left=v+A.left-e.left+"px"}),e.on(u,"dblclick",function(e){var t=l(u,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(u,"click",function(e){var t=l(u,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())}),e.on(u,"mousedown",function(){setTimeout(function(){s.focus()},20)}),e.signal(i,"select",c[this.selectedHint],u.childNodes[this.selectedHint]),!0}function u(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n];r.hint?r.hint(this.cm,t,r):this.cm.replaceRange(a(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,"")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,i.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)})}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),l=i;o.start,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n("VrN/"))},m8Fq:function(e,t,n){(function(e){!function(e){"use strict";e.exports.is_uri=n,e.exports.is_http_uri=r,e.exports.is_https_uri=i,e.exports.is_web_uri=o,e.exports.isUri=n,e.exports.isHttpUri=r,e.exports.isHttpsUri=i,e.exports.isWebUri=o;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,r,i,o,a,l="",s="";if(r=(n=t(e))[2],i=n[3],o=n[4],a=n[5],(l=n[1])&&l.length&&i.length>=0){if(r&&r.length){if(0!==i.length&&!/^\//.test(i))return}else if(/^\/\//.test(i))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(l.toLowerCase()))return s+=l+":",r&&r.length&&(s+="//"+r),s+=i,o&&o.length&&(s+="?"+o),a&&a.length&&(s+="#"+a),s}}}function r(e,r){if(n(e)){var i,o,a,l,s="",u="",c="",p="";if(u=(i=t(e))[2],o=i[3],a=i[4],l=i[5],s=i[1]){if(r){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),p+=s+":",p+="//"+u,c&&(p+=c),p+=o,a&&a.length&&(p+="?"+a),l&&l.length&&(p+="#"+l),p}}}function i(e){return r(e,!0)}function o(e){return r(e)||i(e)}}(e)}).call(this,n("YuTi")(e))},mChF:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},mZXl:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var r=n("mrSG"),i=n("FFOo"),o=n("60iU");function a(e,t){return void 0===t&&(t=0),function(n){return n.lift(new l(e,t))}}var l=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))},e}(),s=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return r.c(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new u(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(o.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(o.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},t}(i.a),u=function(){return function(e,t){this.notification=e,this.destination=t}}()},miOx:function(e,t,n){"use strict";var r=n("dWS+"),i=n("oNwi"),o=n("2C6G");function a(e){e||Object(o.a)(0,"Received null or undefined error.");var t=e.message||"An unknown error occurred.",n=e.locations,r=e.path,i=e.extensions;return i?{message:t,locations:n,path:r,extensions:i}:{message:t,locations:n,path:r}}n.d(t,"a",function(){return r.a}),n.d(t,"c",function(){return i.a}),n.d(t,"b",function(){return a})},mrSG:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"e",function(){return l}),n.d(t,"d",function(){return s}),n.d(t,"h",function(){return u}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return p});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var e=[],t=0;ta?t.charCoords(e,"local")[n?"top":"bottom"]:t.heightAtLine(s,"local")+(n?0:s.height)}var c=t.lastLine();if(t.display.barWidth)for(var p,d=0;dc)){for(var f=p||u(h.from,!0)*n,g=u(h.to,!1)*n;dc)&&!((p=u(i[d+1].from,!0)*n)>g+.9);)g=u((h=i[++d]).to,!1)*n;if(g!=f){var v=Math.max(g-f,3),m=r.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(f+this.buttonHeight)+"px; height: "+v+"px",m.className=this.options.className,h.id&&m.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(r)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(n("VrN/"))},nTAO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SortablejsBinding=function(){function e(e){this.target=e}return e.prototype.insert=function(e,t){this.isFormArray?this.target.insert(e,t):this.target.splice(e,0,t)},e.prototype.get=function(e){return this.isFormArray?this.target.at(e):this.target[e]},e.prototype.remove=function(e){var t;return this.isFormArray?(t=this.target.at(e),this.target.removeAt(e)):t=this.target.splice(e,1)[0],t},Object.defineProperty(e.prototype,"isFormArray",{get:function(){return!!this.target.at&&!!this.target.insert&&!!this.target.reset},enumerable:!0,configurable:!0}),e}()},neE4:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("2C6G"),i=n("ZZnB");function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(e,t,n){o(this,"body",void 0),o(this,"name",void 0),o(this,"locationOffset",void 0),this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||Object(r.a)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Object(r.a)(0,"column in locationOffset is 1-indexed and must be positive")};Object(i.a)(a)},nkY7:function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},ny24:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function a(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new s(e),r=Object(o.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),s=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(i.a)},oNwi:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("y4cC");function i(e){var t=[];if(e.nodes){var n=!0,i=!1,a=void 0;try{for(var l,s=e.nodes[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var u=l.value;u.loc&&t.push(o(u.loc.source,Object(r.a)(u.loc.source,u.loc.start)))}}catch(v){i=!0,a=v}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}}else if(e.source&&e.locations){var c=e.source,p=!0,d=!1,h=void 0;try{for(var f,g=e.locations[Symbol.iterator]();!(p=(f=g.next()).done);p=!0)t.push(o(c,f.value))}catch(v){d=!0,h=v}finally{try{p||null==g.return||g.return()}finally{if(d)throw h}}}return 0===t.length?e.message:[e.message].concat(t).join("\n\n")+"\n"}function o(e,t){var n=e.locationOffset.column-1,r=a(n)+e.body,i=t.line-1,o=t.line+(e.locationOffset.line-1),l=t.column+(1===t.line?n:0),s=r.split(/\r\n|[\n\r]/g);return"".concat(e.name," (").concat(o,":").concat(l,")\n")+function(e){var t=e.filter(function(e){return void 0!==e[1]}),n=0,r=!0,i=!1,o=void 0;try{for(var l,s=t[Symbol.iterator]();!(r=(l=s.next()).done);r=!0)n=Math.max(n,l.value[0].length)}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return t.map(function(e){var t,r=e[1];return a(n-(t=e[0]).length)+t+r}).join("\n")}([["".concat(o-1,": "),s[i-1]],["".concat(o,": "),s[i]],["",a(l-1)+"^"],["".concat(o+1,": "),s[i+1]]])}function a(e){return Array(e+1).join(" ")}},oycr:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("dWS+");function i(e,t,n){return new r.a("Syntax Error: ".concat(n),void 0,e,[t])}},p0Sj:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("IUTb"),i=n("PU8L"),o=n("G5J1"),a=n("dEwP"),l=n("nkY7");function s(){for(var e=[],t=0;t0?Object(a.a)(Object(r.a)(e,n),t):Object(a.a)(Object(o.b)(n),t):Object(a.a)(Object(i.a)(e[0]),t)}}},p0ib:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("6blF"),i=n("nkY7"),o=n("Zn8D"),a=n("IUTb");function l(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof s&&(n=e.pop()),null===l&&1===e.length&&e[0]instanceof r.a?e[0]:Object(o.a)(n)(Object(a.a)(e,l))}},psW0:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("mrSG"),i=n("zotm"),o=n("MGBS"),a=n("rPjj"),l=n("67Y/"),s=n("0/uQ");function u(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(u(function(n,r){return Object(s.a)(e(n,r)).pipe(Object(l.a)(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.project,this.concurrent))},e}(),p=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.a)},pugT:function(e,t,n){"use strict";var r=n("isby"),i=n("McSo"),o=n("2Bdj"),a=n("Ehmk"),l=n("eihs");function s(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}s.prototype=Object.create(Error.prototype);var u=s;n.d(t,"a",function(){return c});var c=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,s=this._parents,c=this._unsubscribe,d=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,f=s?s.length:0;n;)n.remove(this),n=++h1)for(var u=0;u0)return[[t,e.map(function(e){return e[0]})],e.reduce(function(e,t){return e.concat(t[1])},[n]),e.reduce(function(e,t){return e.concat(t[2])},[r])]}(function(e,t,n,r,i,o,a,l){var s=[],u=g(e,t,i,o),c=u[0],f=u[1],v=g(e,t,a,l),m=v[0],y=v[1];if(h(e,s,t,n,r,c,m),0!==y.length)for(var b=Object.create(null),C=0;Ce.trim().replace(/^('|")\s*/,"").replace(/\s*('|")$/,"");e.exports={parseCurl:e=>{let t=e.trim();const i=[],o={url:"",method:"GET",headers:{},auth:{}};for(;t;)n.some(e=>{if(e.regex.test(t))return i.push({name:e.name,value:t.match(e.regex)}),t=t.replace(e.regex,"").trim(),!0});if(i.length){if("curl"!==i.shift().name)throw new Error("Not a curl command.");let e="";i.forEach(t=>{if(e){switch(e){case"header-state":{const e=r(t.value[0]).split(/\s*:\s*/);o.headers[e[0]]=e[1];break}case"data-state":o.data=r(t.value[0]).trim();break;case"custom-method-state":o.method=r(t.value[0]).trim()}e=""}else switch(t.name){case"header-state":e="header-state";break;case"data-state":e="data-state";break;case"custom-method-state":e="custom-method-state";break;case"user-state":e="user-state";break;case"string":{const e=r(t.value[0]);(e=>/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/.test(e))(e)&&(o.url=e);break}}})}return o}}},rPjj:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n("FFOo").a)},rWdj:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){switch(r(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e){if("function"==typeof e.inspect)return e.inspect();if(Array.isArray(e))return"["+e.map(i).join(", ")+"]";var t=Object.keys(e).map(function(t){return"".concat(t,": ").concat(i(e[t]))}).join(", ");return t?"{ "+t+" }":"{}"}return String(e);default:return String(e)}}n.d(t,"a",function(){return i})},reK8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=t.character)return n=l,i=r({},a),o=e.current(),"BREAK"});return{start:a.start,end:a.end,string:o||a.string,state:i||a.state,style:n||a.style}}function s(e,t){for(var n=e.split("\n"),r=(0,o.onlineParser)(),i=r.startState(),a="",l=new o.CharacterStream(""),s=0;st.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var l=a.end;;){var s=r(l.line+1);if(null==s)break;l=s.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:l}}),e.registerHelper("fold","include",function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})}(n("VrN/"))},sA7U:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("dWS+");function i(e){return'The directive "'.concat(e,'" can only be used once at ')+"this location."}function o(e){return{enter:function(t){var n=t.directives;if(n){var o=Object.create(null),a=!0,l=!1,s=void 0;try{for(var u,c=n[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var p=u.value,d=p.name.value;o[d]?e.reportError(new r.a(i(d),[o[d],p])):o[d]=p}}catch(h){l=!0,s=h}finally{try{a||null==c.return||c.return()}finally{if(l)throw s}}}}}}},"sJV+":function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return a});var r=n("axIb");function i(e,t){return e===t||(Object(r.K)(e)&&Object(r.K)(t)?i(e.ofType,t.ofType):!(!Object(r.I)(e)||!Object(r.I)(t))&&i(e.ofType,t.ofType))}function o(e,t,n){return t===n||(Object(r.K)(n)?!!Object(r.K)(t)&&o(e,t.ofType,n.ofType):Object(r.K)(t)?o(e,t.ofType,n):Object(r.I)(n)?!!Object(r.I)(t)&&o(e,t.ofType,n.ofType):!Object(r.I)(t)&&!!(Object(r.B)(n)&&Object(r.M)(t)&&e.isPossibleType(n,t)))}function a(e,t,n){return t===n||(Object(r.B)(t)?Object(r.B)(n)?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(n,t)}):e.isPossibleType(t,n):!!Object(r.B)(n)&&e.isPossibleType(n,t))}},"sdW/":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("dWS+"),i=n("T95z"),o=n("Ei2f"),a=n("axIb");function l(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var l=e.getSchema(),s=t.name.value,u=function(e,t,n){if(Object(a.B)(t)){var r=[],i=Object.create(null),o=!0,l=!1,s=void 0;try{for(var u,c=e.getPossibleTypes(t)[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var p=u.value;if(p.getFields()[n]){r.push(p.name);var d=!0,h=!1,f=void 0;try{for(var g,v=p.getInterfaces()[Symbol.iterator]();!(d=(g=v.next()).done);d=!0){var m=g.value;m.getFields()[n]&&(i[m.name]=(i[m.name]||0)+1)}}catch(y){h=!0,f=y}finally{try{d||null==v.return||v.return()}finally{if(h)throw f}}}}}catch(y){l=!0,s=y}finally{try{o||null==c.return||c.return()}finally{if(l)throw s}}return Object.keys(i).sort(function(e,t){return i[t]-i[e]}).concat(r)}return[]}(l,n,s),c=0!==u.length?[]:function(e,t,n){if(Object(a.M)(t)||Object(a.G)(t)){var r=Object.keys(t.getFields());return Object(i.a)(n,r)}return[]}(0,n,s);e.reportError(new r.a(function(e,t,n,r){var i='Cannot query field "'.concat(e,'" on type "').concat(t,'".');if(0!==n.length){var a=Object(o.a)(n);i+=" Did you mean to use an inline fragment on ".concat(a,"?")}else 0!==r.length&&(i+=" Did you mean ".concat(Object(o.a)(r),"?"));return i}(s,n.name,u,c),[t]))}}}}},"t/Na":function(e,t,n){"use strict";n.r(t),n.d(t,"\u0275angular_packages_common_http_http_a",function(){return L}),n.d(t,"\u0275angular_packages_common_http_http_b",function(){return I}),n.d(t,"\u0275angular_packages_common_http_http_c",function(){return q}),n.d(t,"\u0275angular_packages_common_http_http_d",function(){return H}),n.d(t,"\u0275angular_packages_common_http_http_g",function(){return B}),n.d(t,"\u0275angular_packages_common_http_http_h",function(){return U}),n.d(t,"\u0275angular_packages_common_http_http_e",function(){return R}),n.d(t,"\u0275angular_packages_common_http_http_f",function(){return P}),n.d(t,"HttpBackend",function(){return d}),n.d(t,"HttpHandler",function(){return p}),n.d(t,"HttpClient",function(){return T}),n.d(t,"HttpHeaders",function(){return h}),n.d(t,"HTTP_INTERCEPTORS",function(){return O}),n.d(t,"JsonpClientBackend",function(){return V}),n.d(t,"JsonpInterceptor",function(){return k}),n.d(t,"HttpClientJsonpModule",function(){return K}),n.d(t,"HttpClientModule",function(){return W}),n.d(t,"HttpClientXsrfModule",function(){return z}),n.d(t,"\u0275HttpInterceptingHandler",function(){return G}),n.d(t,"HttpParams",function(){return v}),n.d(t,"HttpUrlEncodingCodec",function(){return f}),n.d(t,"HttpRequest",function(){return C}),n.d(t,"HttpErrorResponse",function(){return S}),n.d(t,"HttpEventType",function(){return w}),n.d(t,"HttpHeaderResponse",function(){return E}),n.d(t,"HttpResponse",function(){return A}),n.d(t,"HttpResponseBase",function(){return _}),n.d(t,"HttpXhrBackend",function(){return j}),n.d(t,"XhrFactory",function(){return F}),n.d(t,"HttpXsrfTokenExtractor",function(){return Z});var r=n("mrSG"),i=n("CcnG"),o=n("F/XL"),a=n("6blF"),l=n("Phjn"),s=n("VnD/"),u=n("67Y/"),c=n("Ip0R"),p=function(){return function(){}}(),d=function(){return function(){}}(),h=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,Object(r.g)(n)),this.headers.set(t,i);break;case"d":var o=e.value;if(o){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),f=function(){function e(){}return e.prototype.encodeKey=function(e){return g(e)},e.prototype.encodeValue=function(e){return g(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function g(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var v=function(){function e(e){void 0===e&&(e={});var t,n,i,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new f,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,i=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),o=Object(r.f)(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),a=o[0],l=o[1],s=i.get(a)||[];s.push(l),i.set(a,s)}),i)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];o.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=null)},e}();function m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function y(e){return"undefined"!=typeof Blob&&e instanceof Blob}function b(e){return"undefined"!=typeof FormData&&e instanceof FormData}var C=function(){function e(e,t,n,r){var i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new h),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a=200&&this.status<300}}(),E=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=w.ResponseHeader,n}return Object(r.c)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(_),A=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=w.Response,n.body=void 0!==t.body?t.body:null,n}return Object(r.c)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(_),S=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return Object(r.c)(t,e),t}(_);function D(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var T=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r,i=this;if(void 0===n&&(n={}),e instanceof C)r=e;else{var a;a=n.headers instanceof h?n.headers:new h(n.headers);var c=void 0;n.params&&(c=n.params instanceof v?n.params:new v({fromObject:n.params})),r=new C(e,t,void 0!==n.body?n.body:null,{headers:a,params:c,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var p=Object(o.a)(r).pipe(Object(l.a)(function(e){return i.handler.handle(e)}));if(e instanceof C||"events"===n.observe)return p;var d=p.pipe(Object(s.a)(function(e){return e instanceof A}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return d.pipe(Object(u.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return d.pipe(Object(u.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return d.pipe(Object(u.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return d.pipe(Object(u.a)(function(e){return e.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new v).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,D(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,D(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,D(n,t))},e}(),x=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),O=new i.InjectionToken("HTTP_INTERCEPTORS"),L=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e}(),M=0,I=function(){return function(){}}(),V=function(){function e(e,t){this.callbackMap=e,this.document=t}return e.prototype.nextCallback=function(){return"ng_jsonp_callback_"+M++},e.prototype.handle=function(e){var t=this;if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");return new a.a(function(n){var r=t.nextCallback(),i=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),o=t.document.createElement("script");o.src=i;var a=null,l=!1,s=!1;t.callbackMap[r]=function(e){delete t.callbackMap[r],s||(a=e,l=!0)};var u=function(){o.parentNode&&o.parentNode.removeChild(o),delete t.callbackMap[r]},c=function(e){s||(u(),l?(n.next(new A({body:a,status:200,statusText:"OK",url:i})),n.complete()):n.error(new S({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},p=function(e){s||(u(),n.error(new S({error:e,status:0,statusText:"JSONP Error",url:i})))};return o.addEventListener("load",c),o.addEventListener("error",p),t.document.body.appendChild(o),n.next({type:w.Sent}),function(){s=!0,o.removeEventListener("load",c),o.removeEventListener("error",p),u()}})},e}(),k=function(){function e(e){this.jsonp=e}return e.prototype.intercept=function(e,t){return"JSONP"===e.method?this.jsonp.handle(e):t.handle(e)},e}(),N=/^\)\]\}',?\n/,F=function(){return function(){}}(),H=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}(),j=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),l=null,s=function(){if(null!==l)return l;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new h(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new E({headers:i,status:t,statusText:n,url:o})},u=function(){var t=s(),i=t.headers,o=t.status,a=t.statusText,l=t.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var p=u;u=u.replace(N,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=p,c&&(c=!1,u={error:d,text:u})}}c?(n.next(new A({body:u,headers:i,status:o,statusText:a,url:l||void 0})),n.complete()):n.error(new S({error:u,headers:i,status:o,statusText:a,url:l||void 0}))},c=function(e){var t=new S({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(t)},p=!1,d=function(t){p||(n.next(s()),p=!0);var i={type:w.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(e){var t={type:w.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",u),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:w.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),e.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},e}(),R=new i.InjectionToken("XSRF_COOKIE_NAME"),P=new i.InjectionToken("XSRF_HEADER_NAME"),Z=function(){return function(){}}(),B=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c["\u0275parseCookieValue"])(e,this.cookieName),this.lastCookieString=e),this.lastToken},e}(),U=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)},e}(),G=function(){function e(e,t){this.backend=e,this.injector=t,this.chain=null}return e.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(O,[]);this.chain=t.reduceRight(function(e,t){return new x(e,t)},this.backend)}return this.chain.handle(e)},e}();function q(){return"object"==typeof window?window:{}}var z=function(){function e(){}var t;return t=e,e.disable=function(){return{ngModule:t,providers:[{provide:U,useClass:L}]}},e.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:P,useValue:e.headerName}:[]]}},e}(),W=function(){return function(){}}(),K=function(){return function(){}}()},t4VC:function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t>1,l=r(e.slice(0,a)).length;if(l==n)return a;l>n?o=a:i=a+1}}function s(e,s,u,c){var p;this.atOccurrence=!1,this.doc=e,u=u?e.clipPos(u):r(0,0),this.pos={from:u,to:u},"object"==typeof c?p=c.caseFold:(p=c,c=null),"string"==typeof s?(null==p&&(p=!1),this.matches=function(i,o){return(i?function(e,i,o,a){if(!i.length)return null;var s=a?t:n,u=s(i).split(/\r|\n\r?/);e:for(var c=o.line,p=o.ch,d=e.firstLine()-1+u.length;c>=d;c--,p=-1){var h=e.getLine(c);p>-1&&(h=h.slice(0,p));var f=s(h);if(1==u.length){var g=f.lastIndexOf(u[0]);if(-1==g)continue e;return{from:r(c,l(h,f,g,s)),to:r(c,l(h,f,g+u[0].length,s))}}var v=u[u.length-1];if(f.slice(0,v.length)==v){var m=1;for(o=c-u.length+1;m=s;o--,l=-1){var u=e.getLine(o);l>-1&&(u=u.slice(0,l));var c=a(u,t);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}:o)(e,s,n)}:function(t,n){return(t?function(e,t,n){t=i(t,"gm");for(var o,l=1,s=n.line,u=e.firstLine();s>=u;){for(var c=0;cu);c++){var p=e.getLine(s++);a=null==a?p:a+"\n"+p}l*=2,t.lastIndex=n.ch;var d=t.exec(a);if(d){var h=a.slice(0,d.index).split("\n"),f=d[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+f.length-1,1==f.length?v+f[0].length:f[f.length-1].length),match:d}}}})(e,s,n)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),s.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}(n("VrN/"))},uW6F:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("mrSG"),i=n("FFOo"),o=n("60iU");function a(){return function(e){return e.lift(new l)}}var l=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new s(e))},e}(),s=function(e){function t(t){return e.call(this,t)||this}return r.c(t,e),t.prototype._next=function(e){this.destination.next(o.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(o.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(o.a.createComplete()),e.complete()},t}(i.a)},uWOL:function(e,t,n){var r=n("NtLt");e.exports=function(e){return r(e).replace(/\s/g,"_")}},uhBA:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new a(n,r||e,o),s=i?i+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=this._events[i?i+e:e];if(!t)return[];if(t.fn)return[t.fn];for(var n=0,r=t.length,o=new Array(r);n0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return l(e.parseRules,t,"Document"),t},token:function(t,n){return function(e,t,n){var r=n.lexRules,i=n.parseRules,c=n.eatWhitespace,d=n.editorConfig;if(t.rule&&0===t.rule.length?s(t):t.needsAdvance&&(t.needsAdvance=!1,u(t,!0)),e.sol()){var h=d&&d.tabSize||2;t.indentLevel=Math.floor(e.indentation()/h)}if(c(e))return"ws";var f=function(e,t){for(var n=Object.keys(e),r=0;r0&&v[v.length-1]=s&&(o=i(a.indicatorOpen))}e.setGutterMarker(n,a.gutter,o),++l})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var l=r(e,n);l?l.clear():e.foldCode(t(n,0),a.rangeFinder)}}}function s(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function c(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},D=function(){for(var e=[],t=0;t0?x.apply(null,D(t,[e])):e}var L=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?x.apply(void 0,D(e)):function(e){return e};return function(e,n){return e=t(e),function(t,r){return e(t=void 0===t?n:t,r)}}}(i)(n,o):O(r,i)(n,o);return e[a]=l,e},{});this.addReducers(t)},t.prototype.removeFeature=function(e){this.removeFeatures([e])},t.prototype.removeFeatures=function(e){this.removeReducers(e.map(function(e){return e.key}))},t.prototype.addReducer=function(e,t){var n;this.addReducers(((n={})[e]=t,n))},t.prototype.addReducers=function(e){this.reducers=M({},this.reducers,e),this.updateReducers(Object.keys(e))},t.prototype.removeReducer=function(e){this.removeReducers([e])},t.prototype.removeReducers=function(e){var t=this;e.forEach(function(e){var n,r;t.reducers=(n=t.reducers,r=e,Object.keys(n).filter(function(e){return e!==r}).reduce(function(e,t){return Object.assign(e,((r={})[t]=n[t],r));var r},{}))}),this.updateReducers(e)},t.prototype.updateReducers=function(e){var t=this;this.next(this.reducerFactory(this.reducers,this.initialState)),e.forEach(function(e){t.dispatcher.next({type:k,feature:e})})},t.prototype.ngOnDestroy=function(){this.complete()},t}(o.a),F=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(l.a),j=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),t}(a.a),Z=function(e){function t(t,n,r,i){var o=e.call(this,i)||this,a={state:i},l=t.pipe(Object(u.b)(s.a)).pipe(Object(c.a)(n)).pipe(Object(p.a)(B,a));return o.stateSubscription=l.subscribe(function(e){var t=e.action;o.next(e.state),r.next(t)}),o}return j(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t.INIT=g,t}(o.a);function B(e,t){void 0===e&&(e={state:void 0});var n=R(t,2),r=n[0];return{state:(0,n[1])(e.state,r),action:r}}var U=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},q=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Q=function(){for(var e=[],t=0;t1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.a)},yiBj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GRAPHQL_WS="graphql-ws",t.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},"yu+w":function(e,t,n){var r;e.exports=function e(t,n,i){function o(l,s){if(!n[l]){if(!t[l]){if(!s&&"function"==typeof r&&r)return r(l,!0);if(a)return a(l,!0);var u=new Error("Cannot find module '"+l+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[l]={exports:{}};t[l][0].call(c.exports,function(e){return o(t[l][1][e]||e)},c,c.exports,e,t,n,i)}return n[l].exports}for(var a="function"==typeof r&&r,l=0;ln&&(i=n);var o=function(e){return e.charCodeAt(0).toString(16).toUpperCase()},a=function(e,t,n){return e.substr(t,n).replace(/\\/g,"\\\\").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+o(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+o(e)}).replace(/[\u0100-\u0FFF]/g,function(e){return"\\u0"+o(e)}).replace(/[\u1000-\uFFFF]/g,function(e){return"\\u"+o(e)})};return{prologTrunc:r>0,prologText:a(e,r,t-r),tokenText:a(e,t,1),epilogText:a(e,t+1,i-(t+1)),epilogTrunc:i3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;r(this,e),this.type=t,this.value=n,this.text=i,this.pos=o,this.line=a,this.column=l}return o(e,[{key:"toString",value:function(){return""}},{key:"isA",value:function(e,t){return e===this.type&&(2!==arguments.length||t===this.value)}}]),e}(),s=function(e){function t(e,n,i,o,a){r(this,t);var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return l.name="ParsingError",l.message=e,l.pos=n,l.line=i,l.column=o,l.input=a,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),o(t,[{key:"toString",value:function(){for(var e=a(this.input,this.pos),t="line "+this.line+" (column "+this.column+"): ",n="",r=0;r0?((t=this._tokenizr).state.apply(t,arguments),this):(e=this._tokenizr).state.apply(e,arguments)}},{key:"tag",value:function(){var e;return(e=this._tokenizr).tag.apply(e,arguments),this}},{key:"tagged",value:function(){var e;return(e=this._tokenizr).tagged.apply(e,arguments)}},{key:"untag",value:function(){var e;return(e=this._tokenizr).untag.apply(e,arguments),this}},{key:"repeat",value:function(){return this._tokenizr._log(" REPEAT"),this._repeat=!0,this}},{key:"reject",value:function(){return this._tokenizr._log(" REJECT"),this._reject=!0,this}},{key:"ignore",value:function(){return this._tokenizr._log(" IGNORE"),this._ignore=!0,this}},{key:"accept",value:function(e,t){return arguments.length<2&&(t=this._match[0]),this._tokenizr._log(" ACCEPT: type: "+e+", value: "+JSON.stringify(t)+" ("+(void 0===t?"undefined":i(t))+'), text: "'+this._match[0]+'"'),this._tokenizr._pending.push(new l(e,t,this._match[0],this._tokenizr._pos,this._tokenizr._line,this._tokenizr._column)),this}},{key:"stop",value:function(){return this._tokenizr._stopped=!0,this}}]),e}(),c=function(){function e(){r(this,e),this._before=null,this._after=null,this._finish=null,this._rules=[],this._debug=!1,this.reset()}return o(e,[{key:"reset",value:function(){return this._input="",this._len=0,this._eof=!1,this._pos=0,this._line=1,this._column=1,this._state=["default"],this._tag={},this._transaction=[],this._pending=[],this._stopped=!1,this._ctx=new u(this),this}},{key:"error",value:function(e){return new s(e,this._pos,this._line,this._column,this._input)}},{key:"debug",value:function(e){return this._debug=e,this}},{key:"_log",value:function(e){this._debug&&console.log("tokenizr: "+e)}},{key:"input",value:function(e){if("string"!=typeof e)throw new Error('parameter "input" not a String');return this.reset(),this._input=e,this._len=e.length,this}},{key:"push",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "state" not a String');return this._log(" STATE (PUSH): old: <"+this._state[this._state.length-1]+">, new: <"+e+">"),this._state.push(e),this}},{key:"pop",value:function(){if(0!==arguments.length)throw new Error("invalid number of arguments");if(this._state.length<2)throw new Error("no more custom states to pop");return this._log(" STATE (POP): old: <"+this._state[this._state.length-1]+">, new: <"+this._state[this._state.length-2]+">"),this._state.pop()}},{key:"state",value:function(e){if(1===arguments.length){if("string"!=typeof e)throw new Error('parameter "state" not a String');return this._log(" STATE (SET): old: <"+this._state[this._state.length-1]+">, new: <"+e+">"),this._state[this._state.length-1]=e,this}if(0===arguments.length)return this._state[this._state.length-1];throw new Error("invalid number of arguments")}},{key:"tag",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return this._log(" TAG (ADD): "+e),this._tag[e]=!0,this}},{key:"tagged",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return!0===this._tag[e]}},{key:"untag",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return this._log(" TAG (DEL): "+e),delete this._tag[e],this}},{key:"before",value:function(e){return this._before=e,this}},{key:"after",value:function(e){return this._after=e,this}},{key:"finish",value:function(e){return this._finish=e,this}},{key:"rule",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown";if(2===arguments.length&&"function"==typeof t){var o=[e,t];t=o[0],n=o[1],e="*"}else if(3===arguments.length&&"function"==typeof t){var a=[e,t,n];t=a[0],n=a[1],r=a[2],e="*"}if("string"!=typeof e)throw new Error('parameter "state" not a String');if(!("object"===(void 0===t?"undefined":i(t))&&t instanceof RegExp))throw new Error('parameter "pattern" not a RegExp');if("function"!=typeof n)throw new Error('parameter "action" not a Function');if("string"!=typeof r)throw new Error('parameter "name" not a String');e=e.split(/\s*,\s*/g).map(function(e){var t=e.split(/\s+/g),n=t.filter(function(e){return null===e.match(/^#/)}),r=t.filter(function(e){return null!==e.match(/^#/)}).map(function(e){return e.replace(/^#/,"")});if(1!==n.length)throw new Error("exactly one state required");return{state:n[0],tags:r}});var l="g";return t.multiline&&(l+="m"),t.ignoreCase&&(l+="i"),t=new RegExp(t.source,l),this._log("rule: configure rule (state: "+e+", pattern: "+t.source+")"),this._rules.push({state:e,pattern:t,action:n,name:r}),this}},{key:"_progress",value:function(e,t){for(var n=this._line,r=this._column,i=this._input,o=e;o, to: ")}},{key:"_tokenize",value:function(){var e=this,t=function(){e._eof||(null!==e._finish&&e._finish.call(e._ctx,e._ctx),e._eof=!0,e._pending.push(new l("EOF","","",e._pos,e._line,e._column)))};if(!(this._stopped||this._pos>=this._len)){for(var n=!0;n;){if(n=!1,this._debug){var r=a(this._input,this._pos),i=Object.keys(this._tag).map(function(e){return"#"+e}).join(" ");this._log("INPUT: state: <"+this._state[this._state.length-1]+">, tags: <"+i+">, text: "+(r.prologTrunc?"...":'"')+r.prologText+"<"+r.tokenText+">"+r.epilogText+(r.epilogTrunc?"...":'"')+", at: ")}for(var o=0;o0&&(t+=" "+e.tags.map(function(e){return"#"+e}).join(" ")),t}).join(", ");this._log(" RULE: state(s): <"+s+">, pattern: "+this._rules[o].pattern.source)}var u=!1,c=this._rules[o].state.map(function(e){return e.state}),p=c.indexOf("*");if(p<0&&(p=c.indexOf(this._state[this._state.length-1])),p>=0){u=!0;var d=this._rules[o].state[p].tags;(d=d.filter(function(t){return!e._tag[t]})).length>0&&(u=!1)}if(u){this._rules[o].pattern.lastIndex=this._pos;var h=this._rules[o].pattern.exec(this._input);if(this._rules[o].pattern.lastIndex=this._pos,null!==(h=this._rules[o].pattern.exec(this._input))&&h.index===this._pos){if(this._debug&&this._log(" MATCHED: "+JSON.stringify(h)),this._ctx._match=h,this._ctx._repeat=!1,this._ctx._reject=!1,this._ctx._ignore=!1,null!==this._before&&this._before.call(this._ctx,this._ctx,h,this._rules[o]),this._rules[o].action.call(this._ctx,this._ctx,h),null!==this._after&&this._after.call(this._ctx,this._ctx,h,this._rules[o]),this._ctx._reject)continue;if(this._ctx._repeat){n=!0;break}if(this._ctx._ignore){if(this._progress(this._pos,this._rules[o].pattern.lastIndex),this._pos=this._rules[o].pattern.lastIndex,this._pos>=this._len)return void t();n=!0;break}if(this._pending.length>0)return this._progress(this._pos,this._rules[o].pattern.lastIndex),this._pos=this._rules[o].pattern.lastIndex,void(this._pos>=this._len&&t());throw new Error('action of pattern "'+this._rules[o].pattern.source+'" neither rejected nor accepted any token(s)')}}}}throw this.error("token not recognized")}t()}},{key:"token",value:function(){if(0===this._pending.length&&this._tokenize(),this._pending.length>0){var e=this._pending.shift();return this._transaction.length>0&&this._transaction[0].push(e),this._log("TOKEN: "+e.toString()),e}return null}},{key:"tokens",value:function(){for(var e=[],t=void 0;null!==(t=this.token());)e.push(t);return e}},{key:"peek",value:function(e){void 0===e&&(e=0);for(var t=0;t=this._pending.length)throw new Error("not enough tokens available for peek operation");return this._log("PEEK: "+this._pending[e].toString()),this._pending[e]}},{key:"skip",value:function(e){void 0===e&&(e=1);for(var t=0;tthis._pending.length)throw new Error("not enough tokens available for skip operation");for(;e-- >0;)this.token();return this}},{key:"consume",value:function(e,t){for(var n=this,r=0;r, found: ",o.pos,o.line,o.column,n._input)};return 2!==arguments.length||o.isA(e,t)?o.isA(e)||a():a(JSON.stringify(t),void 0===t||i(t)),o}},{key:"begin",value:function(){return this._log("BEGIN: level "+this._transaction.length),this._transaction.unshift([]),this}},{key:"depth",value:function(){if(0===this._transaction.length)throw new Error("cannot determine depth -- no active transaction");return this._transaction[0].length}},{key:"commit",value:function(){if(0===this._transaction.length)throw new Error("cannot commit transaction -- no active transaction");return this._transaction.shift(),this._log("COMMIT: level "+this._transaction.length),this}},{key:"rollback",value:function(){if(0===this._transaction.length)throw new Error("cannot rollback transaction -- no active transaction");return this._pending=this._transaction[0].concat(this._pending),this._transaction.shift(),this._log("ROLLBACK: level "+this._transaction.length),this}},{key:"alternatives",value:function(){for(var e=null,t=[],n=arguments.length,r=Array(n),i=0;i0)throw(t=t.sort(function(e,t){return e.depth-t.depth}))[0].ex;return e}}]),e}();c.Token=l,c.ParsingError=s,c.ActionContext=u,t.exports=c},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r,i=(r=e("tokenizr"))&&r.__esModule?r:{default:r};t.exports=function(e){var t=new i.default;t.rule(/#[^\r\n]*(?=\r?\n)/,function(e,t){e.accept("comment")}),t.rule(/"(?:\\"|[^"])*"/,function(e,t){e.accept("string")}),t.rule(/$[a-zA-Z_][a-zA-Z0-9_]*/,function(e,t){e.accept("var")}),t.rule(/[a-zA-Z_][a-zA-Z0-9_]*/,function(e,t){e.accept("id")}),t.rule(/[+-]?[0-9]*\.?[0-9]+(?:[eE][+-]?[0-9]+)?/,function(e,t){e.accept("number")}),t.rule(/[ \t\r\n]+/,function(e,t){e.accept("ws"," ")}),t.rule(/[{}]/,function(e,t){e.accept("brace")}),t.rule(/[[\]]/,function(e,t){e.accept("bracket")}),t.rule(/[()]/,function(e,t){e.accept("parenthesis")}),t.rule(/,/,function(e,t){e.accept("comma")}),t.rule(/!/,function(e,t){e.accept("not")}),t.rule(/\.\.\./,function(e,t){e.accept("ellipsis")}),t.rule(/@/,function(e,t){e.accept("at")}),t.rule(/:/,function(e,t){e.accept("colon")}),t.rule(/./,function(e,t){e.accept("any")}),t.input(e),t.debug(!1);for(var n=t.tokens(),r="",o=/^(?:brace|bracket|parenthesis|comma|colon)$/,a=0;a0&&n[a-1].type.match(o)))&&(n.splice(a,1),a--);return n.forEach(function(e){r+=e.value}),r}},{tokenizr:1}]},{},[2])(2)},yzD6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("CcnG"),i=n("Ip0R"),o=n("gIcY"),a=n("9vfw"),l=n("XSbJ"),s=n("QFxO");t.NguiAutoCompleteModule=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[s.NguiAutoComplete]}},e.decorators=[{type:r.NgModule,args:[{imports:[i.CommonModule,o.FormsModule],declarations:[a.NguiAutoCompleteComponent,l.NguiAutoCompleteDirective],exports:[a.NguiAutoCompleteComponent,l.NguiAutoCompleteDirective],entryComponents:[a.NguiAutoCompleteComponent]}]}],e}()},zKC0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("CcnG"),i=n("pwFB"),o=n("t4VC"),a=n("RqDB");t.SortablejsModule=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[a.SortablejsService,{provide:i.GLOBALS,useValue:t}]}},e.decorators=[{type:r.NgModule,args:[{declarations:[o.SortablejsDirective],exports:[o.SortablejsDirective],providers:[a.SortablejsService]}]}],e}()},zUnb:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"ApiService",function(){return yr}),n.d(r,"GqlService",function(){return Qr}),n.d(r,"DbService",function(){return Xr}),n.d(r,"QueryService",function(){return Jr}),n.d(r,"WindowService",function(){return li}),n.d(r,"NotifyService",function(){return Vr}),n.d(r,"DonationService",function(){return pi}),n.d(r,"ElectronAppService",function(){return di}),n.d(r,"KeybinderService",function(){return fi}),n.d(r,"StorageService",function(){return Qa}),n.d(r,"QueryCollectionService",function(){return Xa}),n.d(r,"EnvironmentService",function(){return el});var i=n("CcnG"),o={production:!0,version:n("kiQV").version},a=!!(window&&window.process&&window.process.versions.electron),l=function(){return localStorage.getItem("altair__debug_current_version")};l()!==o.version&&(localStorage.setItem("altair__debug_previous_version",l()),localStorage.setItem("altair__debug_current_version",o.version)),Object.defineProperty(window,"__ENABLE_DEBUG_MODE__",{get:function(){return window._ALTAIR__ENABLE_DEBUG_MODE__},set:function(e){e&&(console.group("\u2699\ufe0f\ud83d\udee0Altair Debug Information"),console.log("Previous version:",localStorage.getItem("altair__debug_previous_version")),console.log("Current version:",l()),console.groupEnd()),window._ALTAIR__ENABLE_DEBUG_MODE__=e}});var s={log:function(){for(var e=[],t=0;t0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))},Ce=function(){return(Ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;nr?1:nr?-1:nr?-1:nr?1:n=ae.query_history_depth&&n.list.pop(),bt({},n,{list:[{query:t.payload.query}].concat(n.list)});case"CLEAR_HISTORY":return{list:[]};default:return e}},stream:function(e,t){switch(void 0===e&&(e=On),t.type){case"SET_STREAM_SETTING":return xn({},e,{url:t.payload.streamUrl,isConnected:!1});case"SET_STREAM_CLIENT":return xn({},e,{client:t.payload.streamClient});case"SET_STREAM_FAILED":return xn({},e,{failed:t.payload.failed,isConnected:!1});case"SET_STREAM_CONNECTED":return xn({},e,{isConnected:t.payload.connected});default:return e}}};function ar(e){return function(t,n){return o.production&&!window.__ENABLE_DEBUG_MODE__||s.log(n.type,n),window.__LAST_ACTION__=window.__LAST_ACTION__||[],window.__LAST_ACTION__.push(n.type),window.__LAST_ACTION__.length>10&&window.__LAST_ACTION__.shift(),e(t,n)}}var lr=function(e){return"altair_"+e};function sr(e){return Object(h.localStorageSync)({keys:["windows","windowsMeta","settings","environments"],rehydrate:!0,storageKeySerializer:lr})(e)}var ur,cr,pr,dr={windows:(ur=Object(d.w)(or),cr=ur(void 0,{type:"___INIT___"}),pr={},function(e,t){void 0===e&&(e=pr);var n=Object.assign({},e),r=n[t.windowId];switch(t.type){case at:var i=t.payload,o=i.windowId,a=i.title,l=i.url,u=i.collectionId,c=i.windowIdInCollection;return n[o]=JSON.parse(JSON.stringify(cr)),n[o].layout.title=a,n[o].windowId=o,l&&(n[o].query.url=l),u&&(n[o].layout.collectionId=u),c&&(n[o].layout.windowIdInCollection=c),n;case"SET_WINDOWS":var p={};return t.payload.forEach(function(e){var t=e.windowId,n=e.title;(r=JSON.parse(JSON.stringify(cr))).windowId=t,r.layout.title=r.layout.title||n,p[t]=vt({},r)}),p;case lt:var d=t.payload.windowId;return n[d]&&delete n[d],Object.assign({},n);default:return r?(n[t.windowId]=ur(r,t),n[t.windowId].windowId=t.windowId,n):(s.warn("Invalid window ID provided."),n)}}),windowsMeta:function(e,t){switch(void 0===e&&(e=Ot),t.type){case"SET_ACTIVE_WINDOW_ID":return xt({},e,{activeWindowId:t.payload.windowId});case"SET_WINDOW_IDS":return xt({},e,{windowIds:t.payload.ids});case"REPOSITION_WINDOW":var n=t.payload.currentPosition,r=t.payload.newPosition;if(n>-1&&n-1&&r=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,s.error(t),t},e.prototype.get=function(e){return this.http.get(""+this.api_url+e,{headers:this.headers}).pipe(Object(gr.a)(this.checkForError),Object(vr.a)(function(e){return Object(fr.a)(e)}))},e.prototype.post=function(e,t){return this.http.post(""+this.api_url+e,JSON.stringify(t),{headers:this.headers}).pipe(Object(gr.a)(this.checkForError),Object(vr.a)(function(e){return Object(fr.a)(e)}))},e.prototype.delete=function(e){return this.http.delete(""+this.api_url+e,{headers:this.headers}).pipe(Object(gr.a)(this.checkForError),Object(vr.a)(function(e){return Object(fr.a)(e)}))},e.prototype.setHeaders=function(e){var t=this;Object.keys(e).forEach(function(n){return t.headers.set(n,e[n])})},e.prototype.setUrl=function(e){this.api_url=e},e}(),br=n("xMyE"),Cr=n("MlsZ"),wr=n("azY9"),_r=n("Yzoe"),Er=n("PDj5"),Ar=n("TirB"),Sr=n("EMzn"),Dr=n("51nL"),Tr=n("L2ys"),xr=n("dQau"),Or=n("XYXw"),Lr=n("Yen0"),Mr=n("93gR"),Ir=n("yu+w"),Vr=function(){function e(e){this.toastr=e,this.extensionNotifications={},this.manageExtensionNotifications()}return e.prototype.success=function(e,t,n){return void 0===t&&(t="Altair"),void 0===n&&(n={}),this.exec("success",e,t,n)},e.prototype.error=function(e,t,n){return void 0===t&&(t="Altair"),void 0===n&&(n={}),this.exec("error",e,t,n)},e.prototype.warning=function(e,t,n){return void 0===t&&(t="Altair"),void 0===n&&(n={}),this.exec("warning",e,t,n)},e.prototype.info=function(e,t,n){return void 0===t&&(t="Altair"),void 0===n&&(n={}),this.exec("info",e,t,n)},e.prototype.exec=function(e,t,n,r){void 0===r&&(r={});var i=this.toastr[e](t,n,r);return r.data&&r.data.url&&i.onTap.subscribe(function(e){window.open(r.data.url,"_blank")}),i},e.prototype.pushNotify=function(e,t,n){return void 0===t&&(t="Altair"),void 0===n&&(n={}),me?this.extensionPushNotify(e,t,n):this.electronPushNotify(e,t,n)},e.prototype.electronPushNotify=function(e,t,n){void 0===t&&(t="Altair"),void 0===n&&(n={});var r=new Notification(t,{body:e});return n&&(r.onclick=n.onclick),r},e.prototype.extensionPushNotify=function(e,t,n){var r=this;void 0===t&&(t="Altair"),void 0===n&&(n={}),window.chrome.notifications.create({type:"basic",iconUrl:"assets/img/logo.png",title:t,message:e},function(e){n&&(r.extensionNotifications[e]={},n.onclick&&(r.extensionNotifications[e].onclick=n.onclick))})},e.prototype.manageExtensionNotifications=function(){var e=this;me&&(window.chrome.notifications.onClicked.addListener(function(t){e.extensionNotifications[t]&&e.extensionNotifications[t].onclick&&e.extensionNotifications[t].onclick()}),window.chrome.notifications.onClosed.addListener(function(t){e.extensionNotifications[t]&&delete e.extensionNotifications[t]}))},e}(),kr=n("2C6G"),Nr=n("kBjl"),Fr=n("WXJZ"),Hr=n("Mbdf"),jr=n("F8X2"),Rr=n("axIb"),Pr=n("4suF"),Zr=n("LViu"),Br=n("19Hc"),Ur=n("4RMZ"),Gr=n("i1zs"),qr=n.n(Gr),zr=function(){return(zr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=i)){var s=l&&l.getFields();return{kind:"SelectionSet",selections:Object.keys(s).map(function(e){var t=s[e];return{kind:"Field",name:{kind:"Name",value:e},selectionSet:Wr(t?t.type:null,{maxDepth:i,currentDepth:a+1})}})}}},Kr=function(){return(Kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t},e.prototype._send=function(e,t,n,r){var i={query:e,variables:{},operationName:null},o=null,a=null,l=this.headers;if(n&&(i.operationName=n),t)try{i.variables=JSON.parse(t)}catch(p){return s.error(p),Object(fr.a)(p)}if(this.isGETRequest())a=this.getParamsFromData(i);else if(r&&r.length){var u={};i.variables=i.variables||{},r.forEach(function(e,t){var n=e.name.split(".");n[1]?(i.variables[n[0]]=i.variables[n[0]]||[],i.variables[n[0]]=i.variables[n[0]].concat([null])):i.variables[e.name]=null,u[t]=["variables."+e.name]});var c=new FormData;c.append("operations",JSON.stringify(i)),c.append("map",JSON.stringify(u)),r.forEach(function(e,t){c.append(""+t,e.data)}),o=c}else o=JSON.stringify(i);return this.http.request(this.method,this.api_url,Kr({},!this.isGETRequest()&&{body:o},{params:a,headers:l,observe:"response"})).pipe(Object(gr.a)(this.checkForError),Object(vr.a)(function(e){return s.error(e),Object(fr.a)(e)}))},e.prototype.send=function(e,t,n,r){return this._send(e,t,n,r).pipe(Object(gr.a)(function(e){return e.body}))},e.prototype.sendRequest=function(e,t){var n=t.files&&t.files.length&&t.files.filter(function(e){return e&&e.data instanceof File&&e.name});return this.setUrl(e).setHTTPMethod(t.method).setHeaders(t.headers,{skipDefaults:this.isGETRequest(t.method)||!(!n||!n.length)}),this._send(t.query,t.variables,t.selectedOperation,n)},e.prototype.isGETRequest=function(e){return void 0===e&&(e=this.method),console.log("get"===e.toLowerCase()),"get"===e.toLowerCase()},e.prototype.setHeaders=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={skipDefaults:!1});var n=new mr.HttpHeaders;t.skipDefaults||(n=new mr.HttpHeaders(this.defaultHeaders));var r=["Origin"];return e&&e.length&&e.forEach(function(e){!r.includes(e.key)&&e.key&&e.value&&(n=n.set(e.key,e.value))}),this.headers=n,this},e.prototype.getParamsFromData=function(e){return Object.keys(e).reduce(function(t,n){return t.set(n,"object"==typeof e[n]?JSON.stringify(e[n]):e[n])},new mr.HttpParams)},e.prototype.getUrl=function(){return this.api_url},e.prototype.setUrl=function(e){return this.api_url=e,this},e.prototype.setHTTPMethod=function(e){return this.method=e,this},e.prototype.getIntrospectionRequest=function(e){var t=this,n=this.api_url;return this.api_url=e,this._send(Object(Er.a)()).pipe(Object(gr.a)(function(e){return s.log("introspection",e),e}),Object(vr.a)(function(e){return s.log("Error from first introspection query.",e),t._send("\n\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n description\n args {\n ...InputValue\n }\n onOperation\n onFragment\n onField\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n description\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n").pipe(Object(gr.a)(function(e){return s.log("old introspection",e),e}))}),Object(br.a)(function(){return t.api_url=n}))},e.prototype.getIntrospectionData=function(){return this.introspectionData},e.prototype.getIntrospectionSchema=function(e){try{return e&&e.__schema?t=Object(Ar.a)(e):null}catch(n){s.log("Trying old buildClientSchema.",n);try{var t=function(t,n){var r=e.__schema,i=Object(Nr.a)(r.types,function(e){return e.name}),o=Object(Nr.a)(Br.g.concat(Zr.introspectionTypes),function(e){return e.name});function a(e){if(e.kind===Zr.TypeKind.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return Object(Rr.d)(a(t))}if(e.kind===Zr.TypeKind.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var r=a(n);return Object(Rr.e)(Object(Rr.s)(r))}if(!e.name)throw new Error("Unknown type reference: "+JSON.stringify(e));return l(e.name)}function l(e){if(o[e])return o[e];var t=i[e];if(!t)throw new Error("Invalid or incomplete schema, unknown type: "+e+". Ensure that a full introspection query is used in order to build a client schema.");var n=function(e){if(e&&e.name&&e.kind)switch(e.kind){case Zr.TypeKind.SCALAR:return new Rr.g({name:(n=e).name,description:n.description,serialize:function(e){return e}});case Zr.TypeKind.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+JSON.stringify(e));return new Rr.f({name:e.name,description:e.description,interfaces:e.interfaces.map(u),fields:function(){return c(e)}})}(e);case Zr.TypeKind.INTERFACE:return new Rr.c({name:(t=e).name,description:t.description,fields:function(){return c(t)}});case Zr.TypeKind.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+JSON.stringify(e));return new Rr.h({name:e.name,description:e.description,types:e.possibleTypes.map(s)})}(e);case Zr.TypeKind.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+JSON.stringify(e));return new Rr.a({name:e.name,description:e.description,values:Object(Fr.a)(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}(e);case Zr.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+JSON.stringify(e));return new Rr.b({name:e.name,description:e.description,fields:function(){return p(e.inputFields)}})}(e)}var t,n;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+JSON.stringify(e))}(t);return o[e]=n,n}function s(e){var t=a(e);return Object(Rr.t)(t)}function u(e){var t=a(e);return Object(Rr.n)(t)}function c(e){if(!e.fields)throw new Error("Introspection result missing fields: "+JSON.stringify(e));return Object(Fr.a)(e.fields,function(e){return e.name},function(e){if(!e.args)throw new Error("Introspection result missing field args: "+JSON.stringify(e));return{description:e.description,deprecationReason:e.deprecationReason,type:(t=e.type,n=a(t),Object(kr.a)(Object(Rr.N)(n),"Introspection must provide output type for fields."),n),args:p(e.args)};var t,n})}function p(e){return Object(Fr.a)(e,function(e){return e.name},d)}function d(e){var t=function(t){var n=a(e.type);return Object(kr.a)(Object(Rr.F)(n),"Introspection must provide input type for arguments."),n}(),n=e.defaultValue?Object(Hr.a)(Object(Sr.c)(e.defaultValue),t):void 0;return{name:e.name,description:e.description,type:t,defaultValue:n}}var h=r.types.map(function(e){return l(e.name)}),f=r.queryType?s(r.queryType):null,g=r.mutationType?s(r.mutationType):null,v=r.subscriptionType?s(r.subscriptionType):null,m=r.directives?r.directives.map(function(e){var t=e.locations?e.locations.slice():[].concat(e.onField?[jr.a.FIELD]:[],e.onOperation?[jr.a.QUERY,jr.a.MUTATION,jr.a.SUBSCRIPTION]:[],e.onFragment?[jr.a.FRAGMENT_DEFINITION,jr.a.FRAGMENT_SPREAD,jr.a.INLINE_FRAGMENT]:[]);if(!e.args)throw new Error("Introspection result missing directive args: "+JSON.stringify(e));return new Pr.c({name:e.name,description:e.description,locations:t,args:p(e.args)})}):[];return new Dr.a({query:f,mutation:g,subscription:v,types:h,directives:m,assumeValid:void 0,allowedLegacyNames:void 0})}();return this.notifyService.info("\n Looks like your server is still using an old version of GraphQL (older than v0.5.0).\n You should upgrade to avoid broken implementations.\n "),t}catch(n){s.log("Bad introspection data.",n),this.notifyService.error("\n Looks like the GraphQL schema is invalid.\n Please check that your schema in your GraphQL server conforms to the latest GraphQL spec.\n ")}return null}},e.prototype.getActualTypeName=function(e){return e?e.inspect().replace(/[\[\]!]/g,""):""},e.prototype.fillAllFields=function(e,t,n,r,i){return function(e,t,n,r,o){var a=(void 0===i?{}:i).maxDepth,l=void 0===a?1:a,u=[];if(!e)return{insertions:u,result:t};var c=r.state;"SelectionSet"===r.state.kind&&(c.wasSelectionSet=!0,c=zr({},c,c.prevState));var p=qr()(e,r.state).type,d=function(e){if(!e)return null;try{return Object(Sr.a)(e)}catch(t){return s.error("Something wrong with your query",t),null}}(t=t.replace(/{\s*}/g,""));if(!p||!d)return{insertions:u,result:t};var h=new Ur.a(e);return Object(Tr.c)(d,{leave:function(e){s.log(e)},enter:function(e){if(h.enter(e),"Field"===e.kind&&e.name.value===c.name&&e.loc&&(c.wasSelectionSet||e.loc.startToken.line-1===n.line)){s.log(e,h,h.getType(),n,r,l);var i=Wr(p,{maxDepth:l}),o=function(e,t){for(var n=t,r=t;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}(t,e.loc.start);return i&&u.push({index:e.loc.end,string:" "+Object(xr.print)(i).replace(/\n/g,"\n"+o)}),zr({},e,{selectionSet:i})}}}),{insertions:u,result:function(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach(function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i}),n+=e.slice(r)}(t,u)}}(e,t,n,r)},e.prototype.parseQuery=function(e){if(!e)return{};try{return Object(Sr.a)(e)}catch(t){return s.error("Something wrong with your query",t),{}}},e.prototype.isSchema=function(e){return e instanceof Dr.a},e.prototype.isSubscriptionQuery=function(e){var t=this.parseQuery(e);return!!t.definitions&&t.definitions.reduce(function(e,t){return e||"OperationDefinition"===t.kind&&"subscription"===t.operation},!1)},e.prototype.createSubscriptionClient=function(e,t){return new _r.SubscriptionClient(e,Kr({reconnect:!0},t))},e.prototype.closeSubscriptionClient=function(e){e&&e.close&&e.close()},e.prototype.getOperations=function(e){var t=this.parseQuery(e);return t.definitions?t.definitions.filter(function(e){return"OperationDefinition"===e.kind}).map(function(e,t){return e.name&&e.name.value||(e.name=e.name||{},e.name.value="#"+t.toString()),e}):[]},e.prototype.getOperationAtIndex=function(e,t){return this.getOperations(e).find(function(e){return e.loc.start<=t&&e.loc.end>=t})},e.prototype.getOperationNameAtIndex=function(e,t){var n=this.getOperationAtIndex(e,t);return n?n.name&&n.name.value:""},e.prototype.prettify=function(e){return Cr.format(e,{parser:"graphql",plugins:[wr]})},e.prototype.compress=function(e){return Ir(this.prettify(e))},e.prototype.nameQuery=function(e){if(e){var t=this.parseQuery(e),n=e.trim().replace(/[^A-Za-z0-9]/g,"_").replace(/_+/g,"_").substr(0,20)+(10*Math.random()).toFixed(0),r=Object(Tr.c)(t,{OperationDefinition:function(e){return s.log(e),Kr({},e,{name:e.name||{kind:"Name",value:n}})}});return Object(xr.print)(r)}},e.prototype.getSDL=function(e){return this.isSchema(e)?this.prettify(Object(Or.b)(e)):""},e.prototype.sdlToSchema=function(e){return Object(Lr.c)(e)},e.prototype.validateSchema=function(e){return Object(Mr.b)(e)},e.prototype.createStreamClient=function(e){return new EventSource(e)},e.prototype.closeStreamClient=function(e){e&&e.close&&e.close()},e}(),$r=n("6blF"),Yr=n("F/XL"),Xr=function(){function e(){this.storagePrefix="altair:",this.servicePrefix="db:"}return e.prototype.getItemName=function(e){return""+this.storagePrefix+this.servicePrefix+e},e.prototype.getItemByExactKey=function(e){var t=localStorage.getItem(e);return $r.a.create(function(e){if(t)try{var n=JSON.parse(t);e.next(n.value)}catch(r){e.next(t)}else e.next(null)})},e.prototype.getItem=function(e){return this.getItemByExactKey(this.getItemName(e))},e.prototype.setItem=function(e,t){var n={value:null};return e&&t&&(n.value=t),localStorage.setItem(this.getItemName(e),JSON.stringify(n)),$r.a.create(function(e){return e.next(null)})},e.prototype.removeItemByExactKey=function(e){return localStorage.removeItem(e),$r.a.create(function(e){return e.next(null)})},e.prototype.removeItem=function(e){return this.removeItemByExactKey(this.getItemName(e))},e.prototype.getAllKeys=function(){var e=this,t=Object.keys(localStorage).filter(function(t){return t.includes(e.storagePrefix)});return Object(Yr.a)(t)},e}(),Jr=function(){function e(e,t){this.db=e,this.store=t}return e.prototype.loadUrl=function(e){var t=this;return this.db.getItem(e+":url").subscribe(function(n){n&&t.store.dispatch(new N({url:n},e))})},e.prototype.loadQuery=function(e){var t=this;return this.db.getItem(e+":query").subscribe(function(n){n&&t.store.dispatch(new R(n,e))})},e.prototype.loadIntrospection=function(e){var t=this;return this.db.getItem(e+":introspection").subscribe(function(n){n&&t.store.dispatch(new Ke(n,e))})},e.prototype.storeUrl=function(e,t){return this.db.setItem(t+":url",e)},e.prototype.storeQuery=function(e,t){return this.db.setItem(t+":query",e)},e.prototype.storeIntrospection=function(e,t){return this.db.setItem(t+":introspection",e)},e}(),ei=n("P6uZ"),ti=n("xk4V"),ni=function(){return(ni=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;t--)r=0!=(i=266338304&(r=(r<<6&268435455)+(n=e.charCodeAt(t))+(n<<14)))?r^i>>21:r;return String(r)};function ci(e){return ui(navigator.userAgent+":"+e)}var pi=function(){function e(e){this.dbService=e,this.actionCountKey="dac",this.seedKey="ds",this.hashKey="dh",this.seedBuff=1e5}return e.prototype.donated=function(){var e=Math.random()*this.seedBuff;this.dbService.setItem(this.seedKey,e),this.dbService.setItem(this.hashKey,ci(e)),this.dbService.setItem(this.actionCountKey,0)},e.prototype.trackAndCheckIfEligible=function(){var e=this,t=this.dbService.getItem(this.actionCountKey),n=this.dbService.getItem(this.seedKey),r=this.dbService.getItem(this.hashKey);return $r.a.create(function(i){Object(si.b)(t,n,r).subscribe(function(t){var n=t[0],r=t[1],o=t[2];return n&&n>=ae.donation.action_count_threshold?(e.dbService.setItem(e.actionCountKey,0),r&&ci(r)===o?i.next(!1):i.next(!0)):(e.dbService.setItem(e.actionCountKey,n+1),i.next(!1))})})},e}(),di=function(){function e(e,t,n,r,i){var o=this;this.electron=e,this.store=t,this.windowService=n,this.notifyService=r,this.zone=i,this.activeWindowId="",this.ipc=window.ipc,this.store.subscribe(function(e){o.windowIds=Object.keys(e.windows),o.activeWindowId=e.windowsMeta.activeWindowId})}return e.prototype.connect=function(){var e=this;this.electron.isElectronApp&&(this.ipc.on("file-opened",function(t,n){e.zone.run(function(){return e.windowService.importStringData(n)})}),this.ipc.on("certificate-error",function(t,n){e.zone.run(function(){return e.notifyService.warning("\n Your request has an invalid certificate.\n You should check that your request is coming from a trusted source.\n ",null,{tapToDismiss:!0})})}),this.ipc.on("create-tab",function(){e.zone.run(function(){return e.windowService.newWindow().pipe(Object(ei.a)()).subscribe()})}),this.ipc.on("close-tab",function(){e.zone.run(function(){e.windowIds.length>1&&e.windowService.removeWindow(e.activeWindowId)})}),this.ipc.on("send-request",function(){e.zone.run(function(){return e.store.dispatch(new q(e.activeWindowId))})}),this.ipc.on("reload-docs",function(){e.zone.run(function(){return e.store.dispatch(new H(e.activeWindowId))})}),this.ipc.on("show-docs",function(){e.zone.run(function(){return e.store.dispatch(new et(e.activeWindowId))})}),s.log("Electron app connected."),this.ipc.send("get-file-opened"))},e.prototype.setHeaders=function(e){this.electron.isElectronApp&&this.ipc.sendSync("set-headers-sync",e)},e.prototype.isElectronApp=function(){return this.electron.isElectronApp},e}(),hi=n("imBb"),fi=(n("XcA1"),function(){function e(e,t,n,r){var i=this;this.store=e,this.windowService=t,this.electronService=n,this.zone=r,this.activeWindowId="",this.shortcuts=[],this.store.subscribe(function(e){i.windowIds=Object.keys(e.windows),i.activeWindowId=e.windowsMeta.activeWindowId})}return e.prototype.connect=function(){var e=this;this.bindShortcut(["Ctrl+Shift+V"],function(){return e.store.dispatch(new He(e.activeWindowId))},"Toggle Variable Pane"),this.bindShortcut(["Ctrl+Shift+H"],function(){return e.store.dispatch(new Fe(e.activeWindowId))},"Toggle Header Pane"),this.bindShortcut(["Ctrl+Shift+R"],function(){return e.store.dispatch(new H(e.activeWindowId))},"Reload Docs"),this.bindShortcut(["Ctrl+Shift+D"],function(){return e.store.dispatch(new et(e.activeWindowId))},"Toggle Docs"),this.bindShortcut(["Command+Enter","Ctrl+Enter"],function(){return e.store.dispatch(new q(e.activeWindowId))},"Send Request")},e.prototype.bindShortcut=function(e,t,n){var r=this;return this.shortcuts.push({keys:e,description:n}),hi.bindGlobal(e.map(function(e){return e.toLowerCase()}),function(){return r.zone.run(t)})},e.prototype.getShortcuts=function(){var e=[{title:"General",shortcuts:this.shortcuts},{title:"Editor",shortcuts:[{keys:["Ctrl+D"],description:"Jump to docs"},{keys:["Ctrl+F","Alt+F"],description:"Search in context"},{keys:["Ctrl+/","Command+/"],description:"Toggle comment"},{keys:["Ctrl+Shift+Enter"],description:"Fill all fields"}]}];return this.electronService.isElectronApp()&&e.push({title:"Electron Shortcuts",shortcuts:[]}),e},e}()),gi=n("mrSG"),vi=Object.keys,mi=Array.isArray,yi="undefined"!=typeof self?self:"undefined"!=typeof window?window:global;function bi(e,t){return"object"!=typeof t?e:(vi(t).forEach(function(n){e[n]=t[n]}),e)}var Ci=Object.getPrototypeOf,wi={}.hasOwnProperty;function _i(e,t){return wi.call(e,t)}function Ei(e,t){"function"==typeof t&&(t=t(Ci(e))),vi(t).forEach(function(n){Si(e,n,t[n])})}var Ai=Object.defineProperty;function Si(e,t,n,r){Ai(e,t,bi(n&&_i(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function Di(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Si(e.prototype,"constructor",e),{extend:Ei.bind(null,e.prototype)}}}}var Ti=Object.getOwnPropertyDescriptor,xi=[].slice;function Oi(e,t,n){return xi.call(e,t,n)}function Li(e,t){return t(e)}function Mi(e){if(!e)throw new Error("Assertion Failed")}function Ii(e){yi.setImmediate?setImmediate(e):setTimeout(e,0)}function Vi(e,t){return e.reduce(function(e,n,r){var i=t(n,r);return i&&(e[i[0]]=i[1]),e},{})}function ki(e,t,n){try{e.apply(null,n)}catch(r){t&&t(r)}}function Ni(e,t){if(_i(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r=0)t=e;else for(var i in t=e.constructor?Object.create(e.constructor.prototype):{},e)_i(e,i)&&(t[i]=Zi(e[i]));return t}function Bi(e,t,n,r){return n=n||{},r=r||"",vi(e).forEach(function(i){if(_i(t,i)){var o=e[i],a=t[i];"object"==typeof o&&"object"==typeof a&&o&&a&&""+o.constructor==""+a.constructor?Bi(o,a,n,r+i+"."):o!==a&&(n[r+i]=t[i])}else n[r+i]=void 0}),vi(t).forEach(function(i){_i(e,i)||(n[r+i]=t[i])}),n}var Ui="undefined"!=typeof Symbol&&Symbol.iterator,Gi=Ui?function(e){var t;return null!=e&&(t=e[Ui])&&t.apply(e)}:function(){return null},qi={};function zi(e){var t,n,r,i;if(1===arguments.length){if(mi(e))return e.slice();if(this===qi&&"string"==typeof e)return[e];if(i=Gi(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var Wi="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Ki(e,t){Wi=e,Qi=t}var Qi=function(){return!0},$i=!new Error("").stack;function Yi(){if($i)try{throw new Error}catch(e){return e}return new Error}function Xi(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(Qi).map(function(e){return"\n"+e}).join("")):""}var Ji=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],eo=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Ji),to={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function no(e,t){this._e=Yi(),this.name=e,this.message=t}function ro(e,t,n,r){this._e=Yi(),this.failures=t,this.failedKeys=r,this.successCount=n}function io(e,t){this._e=Yi(),this.name="BulkError",this.failures=t,this.message=function(e,t){return e+". Errors: "+t.map(function(e){return e.toString()}).filter(function(e,t,n){return n.indexOf(e)===t}).join("\n")}(e,t)}Di(no).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Xi(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Di(ro).from(no),Di(io).from(no);var oo=eo.reduce(function(e,t){return e[t]=t+"Error",e},{}),ao=no,lo=eo.reduce(function(e,t){var n=t+"Error";function r(e,r){this._e=Yi(),this.name=n,e?"string"==typeof e?(this.message=e,this.inner=r||null):"object"==typeof e&&(this.message=e.name+" "+e.message,this.inner=e):(this.message=to[t]||n,this.inner=null)}return Di(r).from(ao),e[t]=r,e},{});lo.Syntax=SyntaxError,lo.Type=TypeError,lo.Range=RangeError;var so=Ji.reduce(function(e,t){return e[t+"Error"]=lo[t],e},{}),uo=eo.reduce(function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=lo[t]),e},{});function co(){}function po(e){return e}function ho(e,t){return null==e||e===po?t:function(n){return t(e(n))}}function fo(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function go(e,t){return e===co?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?fo(r,this.onsuccess):r),i&&(this.onerror=this.onerror?fo(i,this.onerror):i),void 0!==o?o:n}}function vo(e,t){return e===co?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?fo(n,this.onsuccess):n),r&&(this.onerror=this.onerror?fo(r,this.onerror):r)}}function mo(e,t){return e===co?t:function(n){var r=e.apply(this,arguments);bi(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?fo(i,this.onsuccess):i),o&&(this.onerror=this.onerror?fo(o,this.onerror):o),void 0===r?void 0===a?void 0:a:bi(r,a)}}function yo(e,t){return e===co?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function bo(e,t){return e===co?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=new Array(i);i--;)o[i]=arguments[i];return n.then(function(){return t.apply(r,o)})}return t.apply(this,arguments)}}uo.ModifyError=ro,uo.DexieError=no,uo.BulkError=io;var Co={},wo=100,_o=7,Eo=function(){try{return new Function("let F=async ()=>{},p=F();return [p,Object.getPrototypeOf(p),Promise.resolve(),F.constructor];")()}catch(t){var e=yi.Promise;return e?[e.resolve(),e.prototype,e.resolve()]:[]}}(),Ao=Eo[0],So=Eo[1],Do=Eo[2],To=So&&So.then,xo=Ao&&Ao.constructor,Oo=Eo[3],Lo=!!Do,Mo=!1,Io=Do?function(){Do.then(Jo)}:yi.setImmediate?setImmediate.bind(null,Jo):yi.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){Jo(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(Jo,0)},Vo=function(e,t){Bo.push([e,t]),No&&(Io(),No=!1)},ko=!0,No=!0,Fo=[],Ho=[],jo=null,Ro=po,Po={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:_a,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{_a(e[0],e[1])}catch(t){}})}},Zo=Po,Bo=[],Uo=0,Go=[];function qo(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=co,this._lib=!1;var t=this._PSD=Zo;if(Wi&&(this._stackHolder=Yi(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==Co)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ko(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,n){try{n(function(n){if(null===t._state){if(n===t)throw new TypeError("A promise cannot be resolved with itself.");var r=t._lib&&ea();n&&"function"==typeof n.then?e(t,function(e,t){n instanceof qo?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,Qo(t)),r&&ta()}},Ko.bind(null,t))}catch(r){Ko(t,r)}}(this,e)}var zo={get:function(){var e=Zo,t=ua;function n(n,r){var i=this,o=!e.global&&(e!==Zo||t!==ua);o&&ha();var a=new qo(function(t,a){$o(i,new Wo(ba(n,e,o),ba(r,e,o),t,a,e))});return Wi&&Xo(a,this),a}return n.prototype=Co,n},set:function(e){Si(this,"then",e&&e.prototype===Co?zo:{get:function(){return e},set:zo.set})}};function Wo(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function Ko(e,t){if(Ho.push(t),null===e._state){var n=e._lib&&ea();t=Ro(t),e._state=!1,e._value=t,Wi&&null!==t&&"object"==typeof t&&!t._promise&&ki(function(){var n=function e(t,n){var r;return Ti(t,n)||(r=Ci(t))&&e(r,n)}(t,"stack");t._promise=e,Si(t,"stack",{get:function(){return Mo?n&&(n.get?n.get.apply(t):n.value):e.stack}})}),function(e){Fo.some(function(t){return t._value===e._value})||Fo.push(e)}(e),Qo(e),n&&ta()}}function Qo(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n0;)for(e=Bo,Bo=[],n=e.length,t=0;t0);ko=!0,No=!0}function na(){var e=Fo;Fo=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)});for(var t=Go.slice(0),n=t.length;n;)t[--n]()}function ra(e){return new qo(Co,!1,e)}function ia(e,t){var n=Zo;return function(){var r=ea(),i=Zo;try{return va(n,!0),e.apply(this,arguments)}catch(o){t&&t(o)}finally{va(i,!1),r&&ta()}}}Ei(qo.prototype,{then:zo,_then:function(e,t){$o(this,new Wo(null,null,e,t,Zo))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return this.then(null,"function"==typeof t?function(e){return e instanceof t?n(e):ra(e)}:function(e){return e&&e.name===t?n(e):ra(e)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),ra(t)})},stack:{get:function(){if(this._stack)return this._stack;try{Mo=!0;var e=function e(t,n,r){if(n.length===r)return n;var i="";if(!1===t._state){var o,a,l=t._value;null!=l?(o=l.name||"Error",a=l.message||l,i=Xi(l,0)):(o=l,a=""),n.push(o+(a?": "+a:"")+i)}return Wi&&((i=Xi(t._stackHolder,2))&&-1===n.indexOf(i)&&n.push(i),t._prev&&e(t._prev,n,r)),n}(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Mo=!1}}},timeout:function(e,t){var n=this;return e<1/0?new qo(function(r,i){var o=setTimeout(function(){return i(new lo.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,o))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&Si(qo.prototype,Symbol.toStringTag,"Promise"),Po.env=ma(),Ei(qo,{all:function(){var e=zi.apply(null,arguments).map(fa);return new qo(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(function(i,o){return qo.resolve(i).then(function(n){e[o]=n,--r||t(e)},n)})})},resolve:function(e){if(e instanceof qo)return e;if(e&&"function"==typeof e.then)return new qo(function(t,n){e.then(t,n)});var t=new qo(Co,!0,e);return Xo(t,jo),t},reject:ra,race:function(){var e=zi.apply(null,arguments).map(fa);return new qo(function(t,n){e.map(function(e){return qo.resolve(e).then(t,n)})})},PSD:{get:function(){return Zo},set:function(e){return Zo=e}},newPSD:pa,usePSD:ya,scheduler:{get:function(){return Vo},set:function(e){Vo=e}},rejectionMapper:{get:function(){return Ro},set:function(e){Ro=e}},follow:function(e,t){return new qo(function(n,r){return pa(function(t,n){var r=Zo;r.unhandleds=[],r.onunhandled=n,r.finalize=fo(function(){var e=this;Go.push(function r(){0===e.unhandleds.length?t():n(e.unhandleds[0]),Go.splice(Go.indexOf(r),1)}),++Uo,Vo(function(){0==--Uo&&na()},[])},r.finalize),e()},t,n,r)})}});var oa={awaits:0,echoes:0,id:0},aa=0,la=[],sa=0,ua=0,ca=0;function pa(e,t,n,r){var i=Zo,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++ca;var a=Po.env;o.env=Lo?{Promise:qo,PromiseProp:{value:qo,configurable:!0,writable:!0},all:qo.all,race:qo.race,resolve:qo.resolve,reject:qo.reject,nthen:Ca(a.nthen,o),gthen:Ca(a.gthen,o)}:{},t&&bi(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=ya(o,e,n,r);return 0===o.ref&&o.finalize(),l}function da(){return oa.id||(oa.id=++aa),++oa.awaits,oa.echoes+=_o,oa.id}function ha(e){!oa.awaits||e&&e!==oa.id||(0==--oa.awaits&&(oa.id=0),oa.echoes=oa.awaits*_o)}function fa(e){return oa.echoes&&e&&e.constructor===xo?(da(),e.then(function(e){return ha(),e},function(e){return ha(),Ea(e)})):e}function ga(){var e=la[la.length-1];la.pop(),va(e,!1)}function va(e,t){var n,r=Zo;if((t?!oa.echoes||sa++&&e===Zo:!sa||--sa&&e===Zo)||(n=t?(function(e){++ua,oa.echoes&&0!=--oa.echoes||(oa.echoes=oa.id=0),la.push(Zo),va(e,!0)}).bind(null,e):ga,To.call(Ao,n)),e!==Zo&&(Zo=e,r===Po&&(Po.env=ma()),Lo)){var i=Po.env.Promise,o=e.env;So.then=o.nthen,i.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(yi,"Promise",o.PromiseProp),i.all=o.all,i.race=o.race,i.resolve=o.resolve,i.reject=o.reject)}}function ma(){var e=yi.Promise;return Lo?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(yi,"Promise"),all:e.all,race:e.race,resolve:e.resolve,reject:e.reject,nthen:So.then,gthen:e.prototype.then}:{}}function ya(e,t,n,r,i){var o=Zo;try{return va(e,!0),t(n,r,i)}finally{va(o,!1)}}function ba(e,t,n){return"function"!=typeof e?e:function(){var r=Zo;n&&da(),va(t,!0);try{return e.apply(this,arguments)}finally{va(r,!1)}}}function Ca(e,t){return function(n,r){return e.call(this,ba(n,t,!1),ba(r,t,!1))}}var wa="unhandledrejection";function _a(e,t){var n;try{n=t.onuncatched(e)}catch(o){}if(!1!==n)try{var r,i={promise:t,reason:e};if(yi.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(wa,!0,!0),bi(r,i)):yi.CustomEvent&&bi(r=new CustomEvent(wa,{detail:i}),i),r&&yi.dispatchEvent&&(dispatchEvent(r),!yi.PromiseRejectionEvent&&yi.onunhandledrejection))try{yi.onunhandledrejection(r)}catch(a){}r.defaultPrevented||console.warn("Unhandled rejection: "+(e.stack||e))}catch(o){}}var Ea=qo.reject;function Aa(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,o=new Array(i-1);--i;)o[i-1]=arguments[i];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=o;for(var r=1,i=arguments.length;r.",La="String expected.",Ma=[],Ia="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Va=Ia,ka=Ia,Na=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)};function Fa(e,t){var n,r,i,o,a=Fa.dependencies,l=bi({addons:Fa.addons,autoOpen:!0,indexedDB:a.indexedDB,IDBKeyRange:a.IDBKeyRange},t),s=l.addons,u=l.autoOpen,c=l.indexedDB,p=l.IDBKeyRange,d=this._dbSchema={},h=[],f=[],g={},v=null,m=null,y=!1,b=null,C=!1,w="readwrite",_=this,E=new qo(function(e){n=e}),A=new qo(function(e,t){r=t}),S=!0,D=!!Wa(c);function T(e){this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null},this.stores({})}function x(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(e){O(i,e)}),i}function O(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function L(e,t,n){this.name=e,this.schema=t,this._tx=n,this.hook=g[e]?g[e].hook:Aa(null,{creating:[go,co],reading:[ho,po],updating:[mo,co],deleting:[vo,co]})}function M(e,t,n){return(n?Za:Ra)(function(n){e.push(n),t&&t()})}function I(e,t,n,r,i){return new qo(function(o,a){var l=n.length,s=l-1;if(0===l)return o();if(r){var u,c=Za(a),p=ja(null);ki(function(){for(var r=0;r0?e:t}function B(e,t){return c.cmp(e,t)}function U(e,t){return c.cmp(t,e)}function G(e,t){return et?-1:e===t?0:1}function z(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}function W(e,t){for(var n=t.db.objectStoreNames,r=0;re}).forEach(function(e){r.push(function(){var r=d,i=e._cfg.dbschema;W(r,n),W(i,n),d=_._dbSchema=i;var a=function(e,t){var n={del:[],add:[],change:[]};for(var r in e)t[r]||n.del.push(r);for(r in t){var i=e[r],o=t[r];if(i){var a={name:r,def:o,recreate:!1,del:[],add:[],change:[]};if(i.primKey.src!==o.primKey.src)a.recreate=!0,n.change.push(a);else{var l=i.idxByName,s=o.idxByName;for(var u in l)s[u]||a.del.push(u);for(u in s){var c=l[u],p=s[u];c?c.src!==p.src&&a.change.push(p):a.add.push(p)}(a.del.length>0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}else n.add.push([r,o])}return n}(r,i);if(a.add.forEach(function(e){x(n,e[0],e[1].primKey,e[1].indexes)}),a.change.forEach(function(e){if(e.recreate)throw new lo.Upgrade("Not yet support for changing primary key");var t=n.objectStore(e.name);e.add.forEach(function(e){O(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),O(t,e)}),e.del.forEach(function(e){t.deleteIndex(e)})}),e._cfg.contentUpgrade)return o=!0,qo.follow(function(){e._cfg.contentUpgrade(t)})}),r.push(function(t){o&&Va||function(e,t){for(var n=0;nMath.pow(2,62)?0:t.oldVersion)/10,r,n)},n),i.onsuccess=ia(function(){if(r=null,v=i.result,Ma.push(_),S)!function(){if(_.verno=v.version/10,_._dbSchema=d={},0!==(f=Oi(v.objectStoreNames,0)).length){var e=v.transaction(za(f),"readonly");f.forEach(function(t){for(var n=e.objectStore(t),r=n.keyPath,i=r&&"string"==typeof r&&-1!==r.indexOf("."),o=new Ga(r,r||"",!1,!1,!!n.autoIncrement,r&&"string"!=typeof r,i),a=[],l=0;l0)try{W(d,v.transaction(za(v.objectStoreNames),"readonly"))}catch(n){}v.onversionchange=ia(function(e){_._vcFired=!0,_.on("versionchange").fire(e)}),D||"__dbnames"===e||Sa.dbnames.put({name:e}).catch(co),t()},n)})]).then(function(){return b=[],qo.resolve(Fa.vip(_.on.ready.fire)).then(function e(){if(b.length>0){var t=b.reduce(bo,co);return b=[],qo.resolve(Fa.vip(t)).then(e)}})}).finally(function(){b=null}).then(function(){return y=!1,_}).catch(function(e){try{r&&r.abort()}catch(t){}return y=!1,_.close(),Ea(m=e)}).finally(function(){C=!0,t()})},this.close=function(){var e=Ma.indexOf(_);if(e>=0&&Ma.splice(e,1),v){try{v.close()}catch(t){}v=null}u=!1,m=new lo.DatabaseClosed,y&&r(m),E=new qo(function(e){n=e}),A=new qo(function(e,t){r=t})},this.delete=function(){var t=arguments.length>0;return new qo(function(n,r){if(t)throw new lo.InvalidArgument("Arguments not allowed in db.delete()");function i(){_.close();var t=c.deleteDatabase(e);t.onsuccess=ia(function(){D||Sa.dbnames.delete(e).catch(co),n()}),t.onerror=Ra(r),t.onblocked=K}y?E.then(i):i()})},this.backendDB=function(){return v},this.isOpen=function(){return null!==v},this.hasBeenClosed=function(){return m&&m instanceof lo.DatabaseClosed},this.hasFailed=function(){return null!==m},this.dynamicallyOpened=function(){return S},this.name=e,Ei(this,{tables:{get:function(){return vi(g).map(function(e){return g[e]})}}}),this.on=Aa(this,"populate","blocked","versionchange",{ready:[bo,co]}),this.on.ready.subscribe=Li(this.on.ready.subscribe,function(e){return function(t,n){Fa.vip(function(){C?(m||qo.resolve().then(t),n&&e(t)):b?(b.push(t),n&&e(t)):(e(t),n||e(function e(){_.on.ready.unsubscribe(t),_.on.ready.unsubscribe(e)}))})}}),this.transaction=function(){var e=(function(e,t,n){var r=arguments.length;if(r<2)throw new lo.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,Ri(i),n]}).apply(this,arguments);return this._transaction.apply(this,e)},this._transaction=function(e,t,n){var r=Zo.trans;r&&r.db===_&&-1===e.indexOf("!")||(r=null);var i=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{var o=t.map(function(e){var t=e instanceof L?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t});if("r"==e||"readonly"==e)e="readonly";else{if("rw"!=e&&e!=w)throw new lo.InvalidArgument("Invalid transaction mode: "+e);e=w}if(r){if("readonly"===r.mode&&e===w){if(!i)throw new lo.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&o.forEach(function(e){if(r&&-1===r.storeNames.indexOf(e)){if(!i)throw new lo.SubTransaction("Table "+e+" not included in parent transaction.");r=null}}),i&&r&&!r.active&&(r=null)}}catch(l){return r?r._promise(null,function(e,t){t(l)}):Ea(l)}return r?r._promise(e,a,"lock"):Zo.trans?ya(Zo.transless,function(){return _._whenReady(a)}):_._whenReady(a);function a(){return qo.resolve().then(function(){var t,i=Zo.transless||Zo,a=_._createTransaction(e,o,d,r),l={trans:a,transless:i};r?a.idbtrans=r.idbtrans:a.create(),n.constructor===Oo&&da();var s=qo.follow(function(){if(t=n.call(a,a))if(t.constructor===xo){var e=ha.bind(null,null);t.then(e,e)}else"function"==typeof t.next&&"function"==typeof t.throw&&(t=Ua(t))},l);return(t&&"function"==typeof t.then?qo.resolve(t).then(function(e){return a.active?e:Ea(new lo.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):s.then(function(){return t})).then(function(e){return r&&a._resolve(),a._completion.then(function(){return e})}).catch(function(e){return a._reject(e),Ea(e)})})}},this.table=function(e){if(!_i(g,e))throw new lo.InvalidTable("Table "+e+" does not exist");return g[e]},Ei(L.prototype,{_trans:function(e,t,n){var r=this._tx||Zo.trans;return r&&r.db===_?r===Zo.trans?r._promise(e,t,n):pa(function(){return r._promise(e,t,n)},{trans:r,transless:Zo.transless||Zo}):function e(t,n,r){if(C||Zo.letThrough){var i=_._createTransaction(t,n,d);try{i.create()}catch(o){return Ea(o)}return i._promise(t,function(e,t){return pa(function(){return Zo.trans=i,r(e,t,i)})}).then(function(e){return i._completion.then(function(){return e})})}if(!y){if(!u)return Ea(new lo.DatabaseClosed);_.open().catch(co)}return E.then(function(){return e(t,n,r)})}(e,[this.name],t)},_idbstore:function(e,t,n){var r=this.name;return this._trans(e,function(e,n,i){if(-1===i.storeNames.indexOf(r))throw new lo.NotFound("Table"+r+" not part of transaction");return t(e,n,i.idbtrans.objectStore(r),i)},n)},get:function(e,t){if(e&&e.constructor===Object)return this.where(e).first(t);var n=this;return this._idbstore("readonly",function(t,r,i){var o=i.get(e);o.onerror=Ra(r),o.onsuccess=ia(function(){t(n.hook.reading.fire(o.result))},r)}).then(t)},where:function(e){if("string"==typeof e)return new k(this,e);if(mi(e))return new k(this,"["+e.join("+")+"]");var t=vi(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter(function(e){return e.compound&&t.every(function(t){return e.keyPath.indexOf(t)>=0})&&e.keyPath.every(function(e){return t.indexOf(e)>=0})})[0];if(n&&Ta!==Da)return this.where(n.name).equals(n.keyPath.map(function(t){return e[t]}));n||console.warn("The query "+JSON.stringify(e)+" on "+this.name+" would benefit of a compound index ["+t.join("+")+"]");var r=this.schema.idxByName,i=t.reduce(function(t,n){return[t[0]||r[n],t[0]||!r[n]?z(t[1],function(t){return""+Ni(t,n)==""+e[n]}):t[1]]},[null,null]),o=i[0];return o?this.where(o.name).equals(e[o.keyPath]).filter(i[1]):n?this.filter(i[1]):this.where(t).equals("")},count:function(e){return this.toCollection().count(e)},offset:function(e){return this.toCollection().offset(e)},limit:function(e){return this.toCollection().limit(e)},reverse:function(){return this.toCollection().reverse()},filter:function(e){return this.toCollection().and(e)},each:function(e){return this.toCollection().each(e)},toArray:function(e){return this.toCollection().toArray(e)},orderBy:function(e){return new N(new k(this,mi(e)?"["+e.join("+")+"]":e))},toCollection:function(){return new N(new k(this))},mapToClass:function(e,t){this.schema.mappedClass=e;var n=Object.create(e.prototype);t&&Ha(n,t),this.schema.instanceTemplate=n;var r=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var r in t)if(_i(t,r))try{n[r]=t[r]}catch(i){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),e},defineClass:function(e){return this.mapToClass(Fa.defineClass(e),e)},bulkDelete:function(e){return this.hook.deleting.fire===co?this._idbstore(w,function(t,n,r,i){t(I(r,i,e,!1,co))}):this.where(":id").anyOf(e).delete().then(function(){})},bulkPut:function(e,t){var n=this;return this._idbstore(w,function(r,i,o){if(!o.keyPath&&!n.schema.primKey.auto&&!t)throw new lo.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument");if(o.keyPath&&t)throw new lo.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(t&&t.length!==e.length)throw new lo.InvalidArgument("Arguments objects and keys must have the same length");if(0===e.length)return r();var a,l,s=function(e){0===u.length?r(e):i(new io(n.name+".bulkPut(): "+u.length+" of "+c+" operations failed",u))},u=[],c=e.length,p=n;if(n.hook.creating.fire===co&&n.hook.updating.fire===co){l=M(u);for(var d=0,h=e.length;d=0;--i){var o=f[i];(null==o||g[o])&&(n.push(e[i]),t&&r.push(o),null!=o&&(g[o]=null))}return n.reverse(),t&&r.reverse(),p.bulkAdd(n,r)}).then(function(e){var t=f[f.length-1];return null!=t?t:e}):p.bulkAdd(e)).then(s).catch(io,function(e){u=u.concat(e.failures),s()}).catch(i)}},"locked")},bulkAdd:function(e,t){var n=this,r=this.hook.creating.fire;return this._idbstore(w,function(i,o,a,l){if(!a.keyPath&&!n.schema.primKey.auto&&!t)throw new lo.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument");if(a.keyPath&&t)throw new lo.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(t&&t.length!==e.length)throw new lo.InvalidArgument("Arguments objects and keys must have the same length");if(0===e.length)return i();function s(e){0===d.length?i(e):o(new io(n.name+".bulkAdd(): "+d.length+" of "+h+" operations failed",d))}var u,c,p,d=[],h=e.length;if(r!==co){var f,g=a.keyPath;c=M(d,null,!0),p=ja(null),ki(function(){for(var n=0,i=e.length;n0&&!this._locked();){var e=this._blockedFuncs.shift();try{ya(e[1],e[0])}catch(t){}}return this},_locked:function(){return this._reculock&&Zo.lockOwnerFor!==this},create:function(e){var t=this;if(!this.mode)return this;if(Mi(!this.idbtrans),!e&&!v)switch(m&&m.name){case"DatabaseClosedError":throw new lo.DatabaseClosed(m);case"MissingAPIError":throw new lo.MissingAPI(m.message,m);default:throw new lo.OpenFailed(m)}if(!this.active)throw new lo.TransactionInactive;return Mi(null===this._completion._state),(e=this.idbtrans=e||v.transaction(za(this.storeNames),this.mode)).onerror=ia(function(n){Ba(n),t._reject(e.error)}),e.onabort=ia(function(n){Ba(n),t.active&&t._reject(new lo.Abort(e.error)),t.active=!1,t.on("abort").fire(n)}),e.oncomplete=ia(function(){t.active=!1,t._resolve()}),this},_promise:function(e,t,n){var r=this;if(e===w&&this.mode!==w)return Ea(new lo.ReadOnly("Transaction is readonly"));if(!this.active)return Ea(new lo.TransactionInactive);if(this._locked())return new qo(function(i,o){r._blockedFuncs.push([function(){r._promise(e,t,n).then(i,o)},Zo])});if(n)return pa(function(){var e=new qo(function(e,n){r._lock();var i=t(e,n,r);i&&i.then&&i.then(e,n)});return e.finally(function(){return r._unlock()}),e._lib=!0,e});var i=new qo(function(e,n){var i=t(e,n,r);i&&i.then&&i.then(e,n)});return i._lib=!0,i},_root:function(){return this.parent?this.parent._root():this},waitFor:function(e){var t=this._root();if(e=qo.resolve(e),t._waitingFor)t._waitingFor=t._waitingFor.then(function(){return e});else{t._waitingFor=e,t._waitingQueue=[];var n=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(n.get(-1/0).onsuccess=e)}()}var r=t._waitingFor;return new qo(function(n,i){e.then(function(e){return t._waitingQueue.push(ia(n.bind(null,e)))},function(e){return t._waitingQueue.push(ia(i.bind(null,e)))}).finally(function(){t._waitingFor===r&&(t._waitingFor=null)})})},abort:function(){this.active&&this._reject(new lo.Abort),this.active=!1},tables:{get:(o=function(){return g},function(){return console.warn("Transaction.tables is deprecated. See https://github.com/dfahlander/Dexie.js/wiki/Deprecations. "+Xi(Yi(),1)),o.apply(this,arguments)})},table:function(e){return new L(e,_.table(e).schema,this)}}),Ei(k.prototype,function(){function e(e,t,n){var r=e instanceof k?new N(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function t(e){return new N(e,function(){return p.only("")}).limit(0)}function n(e,t,n,r,i,o){for(var a=Math.min(e.length,r.length),l=-1,s=0;s=0?e.substr(0,l)+t[l]+n.substr(l+1):null;i(e[s],u)<0&&(l=s)}return a0)&&(p=v)}return t(null!==p?function(){e.continue(p+h)}:i),!1}),v}return{between:function(n,r,i,o){i=!1!==i,o=!0===o;try{return P(n,r)>0||0===P(n,r)&&(i||o)&&(!i||!o)?t(this):new N(this,function(){return p.bound(n,r,!i,!o)})}catch(a){return e(this,Oa)}},equals:function(e){return new N(this,function(){return p.only(e)})},above:function(e){return new N(this,function(){return p.lowerBound(e,!0)})},aboveOrEqual:function(e){return new N(this,function(){return p.lowerBound(e)})},below:function(e){return new N(this,function(){return p.upperBound(e,!0)})},belowOrEqual:function(e){return new N(this,function(){return p.upperBound(e)})},startsWith:function(t){return"string"!=typeof t?e(this,La):this.between(t,t+Da,!0,!0)},startsWithIgnoreCase:function(e){return""===e?this.startsWith(e):r(this,function(e,t){return 0===e.indexOf(t[0])},[e],Da)},equalsIgnoreCase:function(e){return r(this,function(e,t){return e===t[0]},[e],"")},anyOfIgnoreCase:function(){var e=zi.apply(qi,arguments);return 0===e.length?t(this):r(this,function(e,t){return-1!==t.indexOf(e)},e,"")},startsWithAnyOfIgnoreCase:function(){var e=zi.apply(qi,arguments);return 0===e.length?t(this):r(this,function(e,t){return t.some(function(t){return 0===e.indexOf(t)})},e,Da)},anyOf:function(){var n=zi.apply(qi,arguments),r=B;try{n.sort(r)}catch(a){return e(this,Oa)}if(0===n.length)return t(this);var i=new N(this,function(){return p.bound(n[0],n[n.length-1])});i._ondirectionchange=function(e){n.sort(r="next"===e?B:U)};var o=0;return i._addAlgorithm(function(e,t,i){for(var a=e.key;r(a,n[o])>0;)if(++o===n.length)return t(i),!1;return 0===r(a,n[o])||(t(function(){e.continue(n[o])}),!1)}),i},notEqual:function(e){return this.inAnyRange([[xa,e],[e,Ta]],{includeLowers:!1,includeUppers:!1})},noneOf:function(){var t=zi.apply(qi,arguments);if(0===t.length)return new N(this);try{t.sort(B)}catch(r){return e(this,Oa)}var n=t.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[xa,t]]},null);return n.push([t[t.length-1],Ta]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},inAnyRange:function(n,r){if(0===n.length)return t(this);if(!n.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&B(e[0],e[1])<=0}))return e(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",lo.InvalidArgument);var i,o=!r||!1!==r.includeLowers,a=r&&!0===r.includeUppers,l=B;function s(e,t){return l(e[0],t[0])}try{(i=n.reduce(function(e,t){for(var n=0,r=e.length;n0){i[0]=P(o=i[0],a=t[0])<0?o:a,i[1]=Z(i[1],t[1]);break}}var o,a;return n===r&&e.push(t),e},[])).sort(s)}catch(g){return e(this,Oa)}var u=0,c=a?function(e){return B(e,i[u][1])>0}:function(e){return B(e,i[u][1])>=0},d=o?function(e){return U(e,i[u][0])>0}:function(e){return U(e,i[u][0])>=0},h=c,f=new N(this,function(){return p.bound(i[0][0],i[i.length-1][1],!o,!a)});return f._ondirectionchange=function(e){"next"===e?(h=c,l=B):(h=d,l=U),i.sort(s)},f._addAlgorithm(function(e,t,n){for(var r=e.key;h(r);)if(++u===i.length)return t(n),!1;return!!function(e){return!c(e)&&!d(e)}(r)||0!==P(r,i[u][1])&&0!==P(r,i[u][0])&&(t(function(){e.continue(l===B?i[u][0]:i[u][1])}),!1)}),f},startsWithAnyOf:function(){var n=zi.apply(qi,arguments);return n.every(function(e){return"string"==typeof e})?0===n.length?t(this):this.inAnyRange(n.map(function(e){return[e,e+Da]})):e(this,"startsWithAnyOf() only works with strings")}}}),Ei(N.prototype,function(){function e(e,t){e.filter=z(e.filter,t)}function t(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return z(r(),t())}:t,e.justLimit=n&&!r}function n(e,t){if(e.isPrimKey)return t;var n=e.table.schema.idxByName[e.index];if(!n)throw new lo.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return t.index(n.name)}function r(e,t){var r=n(e,t);return e.keysOnly&&"openKeyCursor"in r?r.openKeyCursor(e.range||null,e.dir+e.unique):r.openCursor(e.range||null,e.dir+e.unique)}function o(e,t,n,i,o){var a=e.replayFilter?z(e.filter,e.replayFilter()):e.filter;e.or?function(){var l={},s=0;function u(){2==++s&&n()}function c(e,n,r){if(!a||a(n,r,u,i)){var o=n.primaryKey,s=""+o;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(o)),_i(l,s)||(l[s]=!0,t(e,n,r))}}e.or._iterate(c,u,i,o),R(r(e,o),e.algorithm,c,u,i,!e.keysOnly&&e.valueMapper)}():R(r(e,o),z(e.algorithm,a),t,n,i,!e.keysOnly&&e.valueMapper)}return{_read:function(e,t){var n=this._ctx;return n.error?n.table._trans(null,Ea.bind(null,n.error)):n.table._idbstore("readonly",e).then(t)},_write:function(e){var t=this._ctx;return t.error?t.table._trans(null,Ea.bind(null,t.error)):t.table._idbstore(w,e,"locked")},_addAlgorithm:function(e){var t=this._ctx;t.algorithm=z(t.algorithm,e)},_iterate:function(e,t,n,r){return o(this._ctx,e,t,n,r)},clone:function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&bi(n,e),t._ctx=n,t},raw:function(){return this._ctx.valueMapper=null,this},each:function(e){var t=this._ctx;return this._read(function(n,r,i){o(t,e,n,r,i)})},count:function(e){var t=this._ctx;if(F(t,!0))return this._read(function(e,r,i){var o=n(t,i),a=t.range?o.count(t.range):o.count();a.onerror=Ra(r),a.onsuccess=function(n){e(Math.min(n.target.result,t.limit))}},e);var r=0;return this._read(function(e,n,i){o(t,function(){return++r,!1},function(){e(r)},n,i)},e)},sortBy:function(e,t){var n=e.split(".").reverse(),r=n[0],i=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function l(e,t){var n=o(e,i),r=o(t,i);return nr?a:0}return this.toArray(function(e){return e.sort(l)}).then(t)},toArray:function(e){var t=this._ctx;return this._read(function(e,r,a){if(i&&"next"===t.dir&&F(t,!0)&&t.limit>0){var l=t.table.hook.reading.fire,s=n(t,a),u=t.limit<1/0?s.getAll(t.range,t.limit):s.getAll(t.range);u.onerror=Ra(r),u.onsuccess=Pa(l===po?e:function(t){try{e(t.map(l))}catch(n){r(n)}})}else{var c=[];o(t,function(e){c.push(e)},function(){e(c)},r,a)}},e)},offset:function(e){var n=this._ctx;return e<=0?this:(n.offset+=e,F(n)?t(n,function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n(function(){e.advance(t),t=0}),!1))}}):t(n,function(){var t=e;return function(){return--t<0}}),this)},limit:function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),t(this._ctx,function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this},until:function(t,n){return e(this._ctx,function(e,r,i){return!t(e.value)||(r(i),n)}),this},first:function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},last:function(e){return this.reverse().first(e)},filter:function(t){var n;return e(this._ctx,function(e){return t(e.value)}),(n=this._ctx).isMatch=z(n.isMatch,t),this},and:function(e){return this.filter(e)},or:function(e){return new k(this._ctx.table,e,this)},reverse:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},desc:function(){return this.reverse()},eachKey:function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})},eachUniqueKey:function(e){return this._ctx.unique="unique",this.eachKey(e)},eachPrimaryKey:function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})},keys:function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},primaryKeys:function(e){var t=this._ctx;if(i&&"next"===t.dir&&F(t,!0)&&t.limit>0)return this._read(function(e,r,i){var o=n(t,i),a=t.limit<1/0?o.getAllKeys(t.range,t.limit):o.getAllKeys(t.range);a.onerror=Ra(r),a.onsuccess=Pa(e)}).then(e);t.keysOnly=!t.isMatch;var r=[];return this.each(function(e,t){r.push(t.primaryKey)}).then(function(){return r}).then(e)},uniqueKeys:function(e){return this._ctx.unique="unique",this.keys(e)},firstKey:function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},lastKey:function(e){return this.reverse().firstKey(e)},distinct:function(){var t=this._ctx,n=t.index&&t.table.schema.idxByName[t.index];if(!n||!n.multi)return this;var r={};return e(this._ctx,function(e){var t=e.primaryKey.toString(),n=_i(r,t);return r[t]=!0,!n}),this},modify:function(e){var t=this,n=this._ctx.table.hook,r=n.updating.fire,i=n.deleting.fire;return this._write(function(n,o,a,l){var s;if("function"==typeof e)s=r===co&&i===co?e:function(t){var n=Zi(t);if(!1===e.call(this,t,this))return!1;if(_i(this,"value")){var o=Bi(n,this.value),a=r.call(this,o,this.primKey,n,l);a&&(t=this.value,vi(a).forEach(function(e){Fi(t,e,a[e])}))}else i.call(this,this.primKey,t,l)};else if(r===co){var u=vi(e),c=u.length;s=function(t){for(var n=!1,r=0;r0?y():n(h))}t.clone().raw()._iterate(function(e,t){m=t.primaryKey;var n={primKey:t.primaryKey,value:e,onsuccess:null,onerror:null};function r(e){return g.push(e),v.push(n.primKey),b(),!0}if(!1!==s.call(n,e,n)){var i=!_i(n,"value");++d,ki(function(){var e=i?t.delete():t.update(n.value);e._hookCtx=n,e.onerror=Za(r),e.onsuccess=ja(function(){++h,b()})},r)}else n.onsuccess&&n.onsuccess(n.value)},function(){f=!0,b()},y,a)})},delete:function(){var e=this,t=this._ctx,n=t.range,r=t.table.hook.deleting.fire,i=r!==co;if(!i&&F(t)&&(t.isPrimKey&&!ka||!n))return this._write(function(e,t,r){var i=Ra(t),o=n?r.count(n):r.count();o.onerror=i,o.onsuccess=function(){var a=o.result;ki(function(){var t=n?r.delete(n):r.clear();t.onerror=i,t.onsuccess=function(){return e(a)}},function(e){return t(e)})}});var o=i?2e3:1e4;return this._write(function(n,a,l,s){var u=0,c=e.clone({keysOnly:!t.isMatch&&!i}).distinct().limit(o).raw(),p=[],d=function(){return c.each(i?function(e,t){p.push([t.primaryKey,t.value])}:function(e,t){p.push(t.primaryKey)}).then(function(){return p.sort(i?function(e,t){return B(e[0],t[0])}:B),I(l,s,p,i,r)}).then(function(){var e=p.length;return u+=e,p=[],e0?console.warn("Another connection wants to upgrade database '"+_.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+_.name+"'. Closing db now to resume the delete request."),_.close()}),_.on("blocked",function(e){!e.newVersion||e.newVersion input {\n outline: none;\n border: 0;\n padding: 2px;\n box-sizing: border-box;\n background-clip: content-box;\n }\n\n .ngui-auto-complete > ul {\n background-color: #fff;\n margin: 0;\n width: 100%;\n overflow-y: auto;\n list-style-type: none;\n padding: 0;\n border: 1px solid #ccc;\n box-sizing: border-box;\n animation: slideDown 0.1s;\n }\n\n .ngui-auto-complete > ul.empty {\n display: none;\n }\n\n .ngui-auto-complete > ul li {\n padding: 2px 5px;\n border-bottom: 1px solid #eee;\n }\n\n .ngui-auto-complete > ul li.selected {\n background-color: #ccc;\n }\n\n .ngui-auto-complete > ul li:last-child {\n border-bottom: none;\n }\n\n .ngui-auto-complete > ul li:not(.header-item):hover {\n background-color: #ccc;\n }"],data:{}});function hl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["autoCompleteInput",1]],null,5,"input",[["class","keyword"]],[[1,"autocomplete",0],[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"focus"],[null,"blur"],[null,"keydown"],[null,"input"],[null,"ngModelChange"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i["\u0275nov"](e,1)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i["\u0275nov"](e,1).onTouched()&&r),"compositionstart"===t&&(r=!1!==i["\u0275nov"](e,1)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i["\u0275nov"](e,1)._compositionEnd(n.target.value)&&r),"focus"===t&&(r=!1!==o.showDropdownList(n)&&r),"blur"===t&&(r=!1!==o.blurHandler(n)&&r),"keydown"===t&&(r=!1!==o.inputElKeyHandler(n)&&r),"input"===t&&(r=!1!==o.reloadListInDelay(n)&&r),"ngModelChange"===t&&(r=!1!==(o.keyword=n)&&r),r},null,null)),i["\u0275did"](1,16384,null,0,sl.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,sl.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[sl.DefaultValueAccessor]),i["\u0275did"](3,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](5,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null)],function(e,t){e(t,3,0,t.component.keyword)},function(e,t){var n=t.component;e(t,0,0,n.autocomplete?"null":"off",i["\u0275inlineInterpolate"](1,"",n.placeholder,""),i["\u0275nov"](t,5).ngClassUntouched,i["\u0275nov"](t,5).ngClassTouched,i["\u0275nov"](t,5).ngClassPristine,i["\u0275nov"](t,5).ngClassDirty,i["\u0275nov"](t,5).ngClassValid,i["\u0275nov"](t,5).ngClassInvalid,i["\u0275nov"](t,5).ngClassPending)})}function fl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"li",[["class","loading"]],[[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.loadingTemplate)})}function gl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"li",[["class","loading"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.loadingText)})}function vl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"li",[["class","no-match-found"]],null,[[null,"mousedown"]],function(e,t,n){var r=!0;return"mousedown"===t&&(r=!1!==e.component.selectOne("")&&r),r},null,null)),(e()(),i["\u0275ted"](1,null,["","\n "]))],null,function(e,t){e(t,1,0,t.component.noMatchFoundText||"No Result Found")})}function ml(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"li",[["class","header-item"]],[[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.headerItemTemplate)})}function yl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"li",[["class","blank-item"]],null,[[null,"mousedown"]],function(e,t,n){var r=!0;return"mousedown"===t&&(r=!1!==e.component.selectOne("")&&r),r},null,null)),(e()(),i["\u0275ted"](1,null,["","\n "]))],null,function(e,t){e(t,1,0,t.component.blankOptionText)})}function bl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"li",[["class","item"]],[[8,"innerHTML",1]],[[null,"mousedown"]],function(e,t,n){var r=!0;return"mousedown"===t&&(r=!1!==e.component.selectOne(e.context.$implicit)&&r),r},null,null)),i["\u0275did"](1,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](2,{selected:0}),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=e(t,2,0,t.context.index===t.component.itemIndex);e(t,1,0,"item",n)},function(e,t){e(t,0,0,t.component.autoComplete.getFormattedListItem(t.context.$implicit))})}function Cl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,19,"ul",[],[[2,"empty",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,fl)),i["\u0275did"](3,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,gl)),i["\u0275did"](6,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,vl)),i["\u0275did"](9,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ml)),i["\u0275did"](12,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,yl)),i["\u0275did"](15,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,bl)),i["\u0275did"](18,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.isLoading&&n.loadingTemplate),e(t,6,0,n.isLoading&&!n.loadingTemplate),e(t,9,0,n.minCharsEntered&&!n.isLoading&&!n.filteredList.length),e(t,12,0,n.headerItemTemplate&&n.filteredList.length),e(t,15,0,n.blankOptionText&&n.filteredList.length),e(t,18,0,n.filteredList,n.trackByIndex)},function(e,t){e(t,0,0,t.component.emptyList)})}function wl(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{autoCompleteInput:0}),i["\u0275qud"](402653184,2,{autoCompleteContainer:0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,[[2,0],["autoCompleteContainer",1]],null,9,"div",[["class","ngui-auto-complete"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,hl)),i["\u0275did"](7,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Cl)),i["\u0275did"](11,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "]))],function(e,t){var n=t.component;e(t,7,0,n.showInputTag),e(t,11,0,n.dropdownVisible)},null)}function _l(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"ngui-auto-complete",[],null,null,null,wl,dl)),i["\u0275prd"](512,null,cl.NguiAutoComplete,cl.NguiAutoComplete,[[2,mr.HttpClient]]),i["\u0275did"](2,114688,null,0,pl.NguiAutoCompleteComponent,[i.ElementRef,cl.NguiAutoComplete],null,null)],function(e,t){e(t,2,0)},null)}var El=i["\u0275ccf"]("ngui-auto-complete",pl.NguiAutoCompleteComponent,_l,{autocomplete:"autocomplete",listFormatter:"list-formatter",source:"source",pathToData:"path-to-data",minChars:"min-chars",placeholder:"placeholder",blankOptionText:"blank-option-text",noMatchFoundText:"no-match-found-text",acceptUserInput:"accept-user-input",loadingText:"loading-text",loadingTemplate:"loading-template",maxNumList:"max-num-list",showInputTag:"show-input-tag",showDropdownOnInit:"show-dropdown-on-init",tabToSelect:"tab-to-select",matchFormatted:"match-formatted",autoSelectFirstItem:"auto-select-first-item",selectOnBlur:"select-on-blur",reFocusAfterSelect:"re-focus-after-select",headerItemTemplate:"header-item-template",ignoreAccents:"ignore-accents"},{valueSelected:"valueSelected",customSelected:"customSelected",textEntered:"textEntered"},[]),Al=n("pugT"),Sl=n("K9Ia"),Dl=n("Gi3i"),Tl=n("t9fZ"),xl="undefined"!=typeof Intl&&Intl.v8BreakIterator,Ol=function(){function e(e){this._platformId=e,this.isBrowser=this._platformId?Object(ul.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!xl)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(i.PLATFORM_ID,8))},token:e,providedIn:"root"}),e}(),Ll=function(){return function(){}}();function Ml(e){return Array.isArray(e)?e:[e]}function Il(e){return null==e?"":"string"==typeof e?e:e+"px"}var Vl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(gi.c)(t,e),t.prototype.setActiveItem=function(t){this.activeItem&&this.activeItem.setInactiveStyles(),e.prototype.setActiveItem.call(this,t),this.activeItem&&this.activeItem.setActiveStyles()},t}(function(){function e(e){var t=this;this._items=e,this._activeItemIndex=-1,this._wrap=!1,this._letterKeyStream=new Sl.a,this._typeaheadSubscription=Al.a.EMPTY,this._vertical=!0,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new Sl.a,this.change=new Sl.a,e instanceof i.QueryList&&e.changes.subscribe(function(e){if(t._activeItem){var n=e.toArray().indexOf(t._activeItem);n>-1&&n!==t._activeItemIndex&&(t._activeItemIndex=n)}})}return e.prototype.skipPredicate=function(e){return this._skipPredicateFn=e,this},e.prototype.withWrap=function(e){return void 0===e&&(e=!0),this._wrap=e,this},e.prototype.withVerticalOrientation=function(e){return void 0===e&&(e=!0),this._vertical=e,this},e.prototype.withHorizontalOrientation=function(e){return this._horizontal=e,this},e.prototype.withTypeAhead=function(e){var t=this;if(void 0===e&&(e=200),this._items.length&&this._items.some(function(e){return"function"!=typeof e.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(br.a)(function(e){return t._pressedLetters.push(e)}),Object(Dl.a)(e),Object(ol.a)(function(){return t._pressedLetters.length>0}),Object(gr.a)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),r=1;r=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t)))}this._pressedLetters=[],e.preventDefault()},Object.defineProperty(e.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),e.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},e.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},e.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},e.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},e.prototype.updateActiveItem=function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e);this._activeItemIndex=n,this._activeItem=t[n]},e.prototype.updateActiveItemIndex=function(e){this.updateActiveItem(e)},e.prototype._setActiveItemByDelta=function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)},e.prototype._setActiveInWrapMode=function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}},e.prototype._setActiveInDefaultMode=function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)},e.prototype._setActiveItemByIndex=function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}},e.prototype._getItemsArray=function(){return this._items instanceof i.QueryList?this._items.toArray():this._items},e}());function kl(){throw Error("Host already has a portal attached")}var Nl=function(){function e(){}return e.prototype.attach=function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&kl(),this._attachedHost=e,e.attach(this)},e.prototype.detach=function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())},Object.defineProperty(e.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),e.prototype.setAttachedHost=function(e){this._attachedHost=e},e}(),Fl=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.component=t,o.viewContainerRef=n,o.injector=r,o.componentFactoryResolver=i,o}return Object(gi.c)(t,e),t}(Nl),Hl=function(e){function t(t,n,r){var i=e.call(this)||this;return i.templateRef=t,i.viewContainerRef=n,i.context=r,i}return Object(gi.c)(t,e),Object.defineProperty(t.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),t.prototype.attach=function(t,n){return void 0===n&&(n=this.context),this.context=n,e.prototype.attach.call(this,t)},t.prototype.detach=function(){return this.context=void 0,e.prototype.detach.call(this)},t}(Nl),jl=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.outletElement=t,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return Object(gi.c)(t,e),t.prototype.attachComponentPortal=function(e){var t,n=this,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t},t.prototype.attachTemplatePortal=function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.detectChanges(),r.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),this.setDisposeFn(function(){var e=n.indexOf(r);-1!==e&&n.remove(e)}),r},t.prototype.dispose=function(){e.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},t.prototype._getComponentRootNode=function(e){return e.hostView.rootNodes[0]},t}(function(){function e(){this._isDisposed=!1}return e.prototype.hasAttached=function(){return!!this._attachedPortal},e.prototype.attach=function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&kl(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof Fl?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Hl?(this._attachedPortal=e,this.attachTemplatePortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},e.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},e.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},e.prototype.setDisposeFn=function(e){this._disposeFn=e},e.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},e}()),Rl=function(){return function(){}}(),Pl=function(){function e(e,t){this.template=e,this.elementRef=t,this.divider=!1,this.enabled=!0,this.passive=!1,this.visible=!0,this.execute=new i.EventEmitter,this.isActive=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this.passive||this.divider||!this.evaluateIfFunction(this.enabled,this.currentItem)},enumerable:!0,configurable:!0}),e.prototype.evaluateIfFunction=function(e,t){return e instanceof Function?e(t):e},e.prototype.setActiveStyles=function(){this.isActive=!0},e.prototype.setInactiveStyles=function(){this.isActive=!1},e.prototype.triggerExecute=function(e,t){this.evaluateIfFunction(this.enabled,e)&&this.execute.emit({event:t,item:e})},e}(),Zl=new i.InjectionToken("CONTEXT_MENU_OPTIONS"),Bl=function(){function e(e,t,n,r){this.changeDetector=e,this.elementRef=t,this.options=n,this.renderer=r,this.menuItems=[],this.isLeaf=!1,this.execute=new i.EventEmitter,this.openSubMenu=new i.EventEmitter,this.closeLeafMenu=new i.EventEmitter,this.closeAllMenus=new i.EventEmitter,this.autoFocus=!1,this.useBootstrap4=!1,this.subscription=new Al.a,n&&(this.autoFocus=n.autoFocus,this.useBootstrap4=n.useBootstrap4)}return e.prototype.ngOnInit=function(){var e=this;this.menuItems.forEach(function(t){t.currentItem=e.item,e.subscription.add(t.execute.subscribe(function(n){return e.execute.emit(Object(gi.a)({},n,{menuItem:t}))}))});var t=new i.QueryList;t.reset(this.menuItems),this._keyManager=new Vl(t).withWrap()},e.prototype.ngAfterViewInit=function(){var e=this;this.autoFocus&&setTimeout(function(){return e.focus()}),this.overlay.updatePosition()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.focus=function(){this.autoFocus&&this.menuElement.nativeElement.focus()},e.prototype.stopEvent=function(e){e.stopPropagation()},e.prototype.isMenuItemEnabled=function(e){return this.evaluateIfFunction(e&&e.enabled)},e.prototype.isMenuItemVisible=function(e){return this.evaluateIfFunction(e&&e.visible)},e.prototype.evaluateIfFunction=function(e){return e instanceof Function?e(this.item):e},e.prototype.isDisabled=function(e){return e.enabled&&!e.enabled(this.item)},e.prototype.onKeyEvent=function(e){this.isLeaf&&this._keyManager.onKeydown(e)},e.prototype.keyboardOpenSubMenu=function(e){if(this.isLeaf){this.cancelEvent(e);var t=this.menuItems[this._keyManager.activeItemIndex];t&&this.onOpenSubMenu(t)}},e.prototype.keyboardMenuItemSelect=function(e){if(this.isLeaf){this.cancelEvent(e);var t=this.menuItems[this._keyManager.activeItemIndex];t&&this.onMenuItemSelect(t,e)}},e.prototype.onCloseLeafMenu=function(e){this.isLeaf&&(this.cancelEvent(e),this.closeLeafMenu.emit({exceptRootMenu:37===e.keyCode,event:e}))},e.prototype.closeMenu=function(e){"click"===e.type&&2===e.button||this.closeAllMenus.emit({event:e})},e.prototype.onOpenSubMenu=function(e,t){var n=this.menuItemElements.toArray()[this._keyManager.activeItemIndex];this.openSubMenu.emit({anchorElement:n&&n.nativeElement,contextMenu:e.subMenu,event:t,item:this.item,parentContextMenu:this})},e.prototype.onMenuItemSelect=function(e,t){t.preventDefault(),t.stopPropagation(),this.onOpenSubMenu(e,t),e.subMenu||e.triggerExecute(this.item,t)},e.prototype.cancelEvent=function(e){if(e){var t=e.target;["INPUT","TEXTAREA","SELECT"].indexOf(t.tagName)>-1||t.isContentEditable||(e.preventDefault(),e.stopPropagation())}},e}(),Ul=function(){function e(e,t){this.overlay=e,this.scrollStrategy=t,this.isDestroyingLeafMenu=!1,this.show=new Sl.a,this.triggerClose=new Sl.a,this.close=new Sl.a,this.overlays=[],this.fakeElement={getBoundingClientRect:function(){return{bottom:0,height:0,left:0,right:0,top:0,width:0}}}}return e.prototype.openContextMenu=function(e){var t=e.anchorElement,n=e.event,r=e.parentContextMenu;if(r){l=this.overlay.position().connectedTo(new i.ElementRef(n?n.target:t),{originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}).withFallbackPosition({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"});var o=this.overlay.create({positionStrategy:l,panelClass:"ngx-contextmenu",scrollStrategy:this.scrollStrategy.close()});this.destroySubMenus(r),this.overlays=this.overlays.concat(o),this.attachContextMenu(o,e)}else{var a=n;this.fakeElement.getBoundingClientRect=function(){return{bottom:a.clientY,height:0,left:a.clientX,right:a.clientX,top:a.clientY,width:0}},this.closeAllContextMenus({eventType:"cancel",event:n});var l=this.overlay.position().connectedTo(new i.ElementRef(t||this.fakeElement),{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}).withFallbackPosition({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}).withFallbackPosition({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"});this.overlays=[this.overlay.create({positionStrategy:l,panelClass:"ngx-contextmenu",scrollStrategy:this.scrollStrategy.close()})],this.attachContextMenu(this.overlays[0],e)}},e.prototype.attachContextMenu=function(e,t){var n=this,r=t.event,i=t.item,o=t.menuItems,a=t.menuClass,l=e.attach(new Fl(Bl));l.instance.event=r,l.instance.item=i,l.instance.menuItems=o,l.instance.overlay=e,l.instance.isLeaf=!0,l.instance.menuClass=a,e.contextMenu=l.instance;var s=new Al.a;s.add(l.instance.execute.asObservable().subscribe(function(e){return n.closeAllContextMenus(Object(gi.a)({eventType:"execute"},e))})),s.add(l.instance.closeAllMenus.asObservable().subscribe(function(e){return n.closeAllContextMenus(Object(gi.a)({eventType:"cancel"},e))})),s.add(l.instance.closeLeafMenu.asObservable().subscribe(function(e){return n.destroyLeafMenu(e)})),s.add(l.instance.openSubMenu.asObservable().subscribe(function(e){n.destroySubMenus(l.instance),e.contextMenu?(l.instance.isLeaf=!1,n.show.next(e)):l.instance.isLeaf=!0})),l.onDestroy(function(){o.forEach(function(e){return e.isActive=!1}),s.unsubscribe()}),l.changeDetectorRef.detectChanges()},e.prototype.closeAllContextMenus=function(e){this.overlays&&(this.close.next(e),this.overlays.forEach(function(e,t){e.detach(),e.dispose()})),this.overlays=[]},e.prototype.getLastAttachedOverlay=function(){for(var e=this.overlays[this.overlays.length-1];this.overlays.length>1&&e&&!e.hasAttached();)e.detach(),e.dispose(),this.overlays=this.overlays.slice(0,-1),e=this.overlays[this.overlays.length-1];return e},e.prototype.destroyLeafMenu=function(e){var t=this,n=void 0===e?{}:e,r=n.exceptRootMenu,i=n.event;this.isDestroyingLeafMenu||(this.isDestroyingLeafMenu=!0,setTimeout(function(){var e=t.getLastAttachedOverlay();t.overlays.length>1&&e&&(e.detach(),e.dispose()),!r&&t.overlays.length>0&&e&&(t.close.next({eventType:"cancel",event:i}),e.detach(),e.dispose());var n=t.getLastAttachedOverlay();n&&(n.contextMenu.isLeaf=!0),t.isDestroyingLeafMenu=!1}))},e.prototype.destroySubMenus=function(e){var t=this.overlays.indexOf(e.overlay);this.overlays.slice(t+1).forEach(function(e){e.detach(),e.dispose()})},e.prototype.isLeafMenu=function(e){var t=this.getLastAttachedOverlay();return e.overlay===t},e}(),Gl=function(){function e(e,t,n,r){var o=this;this._contextMenuService=e,this.changeDetector=t,this.elementRef=n,this.options=r,this.menuClass="",this.autoFocus=!1,this.useBootstrap4=!1,this.disabled=!1,this.close=new i.EventEmitter,this.open=new i.EventEmitter,this.visibleMenuItems=[],this.links=[],this.subscription=new Al.a,r&&(this.autoFocus=r.autoFocus,this.useBootstrap4=r.useBootstrap4),this.subscription.add(e.show.subscribe(function(e){o.onMenuEvent(e)}))}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onMenuEvent=function(e){var t=this;if(!this.disabled){var n=e.contextMenu,r=e.item;n&&n!==this||(this.event=e.event,this.item=r,this.setVisibleMenuItems(),this._contextMenuService.openContextMenu(Object(gi.a)({},e,{menuItems:this.visibleMenuItems,menuClass:this.menuClass})),this._contextMenuService.close.asObservable().pipe(Object(ei.a)()).subscribe(function(e){return t.close.emit(e)}),this.open.next(e))}},e.prototype.isMenuItemVisible=function(e){return this.evaluateIfFunction(e.visible)},e.prototype.setVisibleMenuItems=function(){var e=this;this.visibleMenuItems=this.menuItems.filter(function(t){return e.isMenuItemVisible(t)})},e.prototype.evaluateIfFunction=function(e){return e instanceof Function?e(this.item):e},e}(),ql=function(){function e(e){this.contextMenuService=e}return e.prototype.onContextMenu=function(e){this.contextMenu.disabled||(this.contextMenuService.show.next({contextMenu:this.contextMenu,event:e,item:this.contextMenuSubject}),e.preventDefault(),e.stopPropagation())},e}(),zl=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[Ul,{provide:Zl,useValue:t}]}},e}(),Wl=n("isby"),Kl=n("2Bdj");function Ql(e,t,n,r){return Object(Kl.a)(n)&&(r=n,n=void 0),r?Ql(e,t,n).pipe(Object(gr.a)(function(e){return Object(Wl.a)(e)?r.apply(void 0,e):r(e)})):new $r.a(function(r){!function e(t,n,r,i,o){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var l=t;t.addEventListener(n,r,o),a=function(){return l.removeEventListener(n,r,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var s=t;t.on(n,r),a=function(){return s.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var u=t;t.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,p=t.length;c1?Array.prototype.slice.call(arguments):e)},r,n)})}Object,n("h9Dq");var $l=n("p0ib"),Yl=n("Rney"),Xl=n("ny24"),Jl=(n("p0Sj"),n("qyHS"),n("15JJ"));n("klSw");var es=function(){function e(e,t){this._ngZone=e,this._platform=t,this._scrolled=new Sl.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return e.prototype.register=function(e){var t=this,n=e.elementScrolled().subscribe(function(){return t._scrolled.next(e)});this.scrollContainers.set(e,n)},e.prototype.deregister=function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))},e.prototype.scrolled=function(e){var t=this;return void 0===e&&(e=20),this._platform.isBrowser?$r.a.create(function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(Object(Yl.a)(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Object(Yr.a)()},e.prototype.ngOnDestroy=function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()},e.prototype.ancestorScrolled=function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(ol.a)(function(e){return!e||n.indexOf(e)>-1}))},e.prototype.getAncestorScrollContainers=function(e){var t=this,n=[];return this.scrollContainers.forEach(function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)}),n},e.prototype._scrollableContainsElement=function(e,t){var n=t.nativeElement,r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},e.prototype._addGlobalListener=function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Ql(window.document,"scroll").subscribe(function(){return e._scrolled.next()})})},e.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(i.NgZone),Object(i.inject)(Ol))},token:e,providedIn:"root"}),e}(),ts=function(){return function(){}}(),ns=function(){function e(e,t){var n=this;this._platform=e,t.runOutsideAngular(function(){n._change=e.isBrowser?Object($l.a)(Ql(window,"resize"),Ql(window,"orientationchange")):Object(Yr.a)(),n._invalidateCache=n.change().subscribe(function(){return n._updateViewportSize()})})}return e.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},e.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e},e.prototype.getViewportRect=function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}},e.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=document.documentElement,t=e.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||e.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||e.scrollLeft||0}},e.prototype.change=function(e){return void 0===e&&(e=20),e>0?this._change.pipe(Object(Yl.a)(e)):this._change},e.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(Ol),Object(i.inject)(i.NgZone))},token:e,providedIn:"root"}),e}(),rs=function(){function e(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return e.prototype.attach=function(){},e.prototype.enable=function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Il(-this._previousScrollPosition.left),e.style.top=Il(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},e.prototype.disable=function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,r=t.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=r,n.scrollBehavior=i}},e.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width},e}();function is(){return Error("Scroll strategy has already been attached.")}var os=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return e.prototype.attach=function(e){if(this._overlayRef)throw is();this._overlayRef=e},e.prototype.enable=function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}(),as=function(){function e(){}return e.prototype.enable=function(){},e.prototype.disable=function(){},e.prototype.attach=function(){},e}();function ls(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function ss(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var us=function(){function e(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}return e.prototype.attach=function(e){if(this._overlayRef)throw is();this._overlayRef=e},e.prototype.enable=function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;ls(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}(),cs=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=function(){return new as},this.close=function(e){return new os(i._scrollDispatcher,i._ngZone,i._viewportRuler,e)},this.block=function(){return new rs(i._viewportRuler,i._document)},this.reposition=function(e){return new us(i._scrollDispatcher,i._viewportRuler,i._ngZone,e)},this._document=r}return e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(es),Object(i.inject)(ns),Object(i.inject)(i.NgZone),Object(i.inject)(ul.DOCUMENT))},token:e,providedIn:"root"}),e}(),ps=function(){return function(e){var t=this;this.scrollStrategy=new as,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e&&Object.keys(e).forEach(function(n){void 0!==e[n]&&(t[n]=e[n])})}}(),ds=function(){return function(e,t,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}(),hs=function(){return function(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}();function fs(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "top", "bottom" or "center".')}function gs(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "start", "end" or "center".')}var vs=function(){function e(e){var t=this;this._attachedOverlays=[],this._keydownListener=function(e){for(var n=t._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEventSubscriptions>0){n[r]._keydownEvents.next(e);break}},this._document=e}return e.prototype.ngOnDestroy=function(){this._detach()},e.prototype.add=function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(e)},e.prototype.remove=function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()},e.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(ul.DOCUMENT))},token:e,providedIn:"root"}),e}(),ms=function(){function e(e){this._document=e}return e.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},e.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},e.prototype._createContainer=function(){var e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),this._document.body.appendChild(e),this._containerElement=e},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(ul.DOCUMENT))},token:e,providedIn:"root"}),e}(),ys=function(){function e(e,t,n,r,i,o,a,l){var s=this;this._portalOutlet=e,this._host=t,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=a,this._location=l,this._backdropElement=null,this._backdropClick=new Sl.a,this._attachments=new Sl.a,this._detachments=new Sl.a,this._locationChanges=Al.a.EMPTY,this._keydownEventsObservable=$r.a.create(function(e){var t=s._keydownEvents.subscribe(e);return s._keydownEventSubscriptions++,function(){t.unsubscribe(),s._keydownEventSubscriptions--}}),this._keydownEvents=new Sl.a,this._keydownEventSubscriptions=0,r.scrollStrategy&&r.scrollStrategy.attach(this),this._positionStrategy=r.positionStrategy}return Object.defineProperty(e.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this,n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(Tl.a)(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),n},e.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}},e.prototype.dispose=function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()},e.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},e.prototype.backdropClick=function(){return this._backdropClick.asObservable()},e.prototype.attachments=function(){return this._attachments.asObservable()},e.prototype.detachments=function(){return this._detachments.asObservable()},e.prototype.keydownEvents=function(){return this._keydownEventsObservable},e.prototype.getConfig=function(){return this._config},e.prototype.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()},e.prototype.updatePositionStrategy=function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))},e.prototype.updateSize=function(e){this._config=Object(gi.a)({},this._config,e),this._updateElementSize()},e.prototype.setDirection=function(e){this._config=Object(gi.a)({},this._config,{direction:e}),this._updateElementDirection()},e.prototype.getDirection=function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"},e.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},e.prototype._updateElementSize=function(){var e=this._pane.style;e.width=Il(this._config.width),e.height=Il(this._config.height),e.minWidth=Il(this._config.minWidth),e.minHeight=Il(this._config.minHeight),e.maxWidth=Il(this._config.maxWidth),e.maxHeight=Il(this._config.maxHeight)},e.prototype._togglePointerEvents=function(e){this._pane.style.pointerEvents=e?"auto":"none"},e.prototype._attachBackdrop=function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(t){return e._backdropClick.next(t)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},e.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},e.prototype.detachBackdrop=function(){var e=this,t=this._backdropElement;if(t){var n=void 0,r=function(){t&&t.parentNode&&t.parentNode.removeChild(t),e._backdropElement==t&&(e._backdropElement=null),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",r)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(r,500)})}},e.prototype._toggleClasses=function(e,t,n){var r=e.classList;Ml(t).forEach(function(e){n?r.add(e):r.remove(e)})},e.prototype._detachContentWhenStable=function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.asObservable().pipe(Object(Xl.a)(Object($l.a)(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})},e}(),bs=function(){function e(e,t,n,r,i){var o=this;this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new Sl.a,this._resizeSubscription=Al.a.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this._appliedPanelClasses=[],this.positionChanges=$r.a.create(function(e){var t=o._positionChanges.subscribe(e);return o._positionChangeSubscriptions++,function(){t.unsubscribe(),o._positionChangeSubscriptions--}}),this.setOrigin(e)}return Object.defineProperty(e.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this;if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})},e.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var e,t=this._originRect,n=this._overlayRect,r=this._viewportRect,i=[],o=0,a=this._preferredPositions;od&&(d=v,p=g)}return this._isPushed=!1,void this._applyPosition(p.position,p.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}},e.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},e.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Cs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},e.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}},e.prototype.withScrollableContainers=function(e){this.scrollables=e},e.prototype.withPositions=function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},e.prototype.withViewportMargin=function(e){return this._viewportMargin=e,this},e.prototype.withFlexibleDimensions=function(e){return void 0===e&&(e=!0),this._hasFlexibleDimensions=e,this},e.prototype.withGrowAfterOpen=function(e){return void 0===e&&(e=!0),this._growAfterOpen=e,this},e.prototype.withPush=function(e){return void 0===e&&(e=!0),this._canPush=e,this},e.prototype.withLockedPosition=function(e){return void 0===e&&(e=!0),this._positionLocked=e,this},e.prototype.setOrigin=function(e){return this._origin=e instanceof i.ElementRef?e.nativeElement:e,this},e.prototype.withDefaultOffsetX=function(e){return this._offsetX=e,this},e.prototype.withDefaultOffsetY=function(e){return this._offsetY=e,this},e.prototype.withTransformOriginOn=function(e){return this._transformOriginSelector=e,this},e.prototype._getOriginPoint=function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}},e.prototype._getOverlayPoint=function(e,t,n){var r;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+r,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}},e.prototype._getOverlayFit=function(e,t,n,r){var i=e.x,o=e.y,a=this._getOffset(r,"x"),l=this._getOffset(r,"y");a&&(i+=a),l&&(o+=l);var s=0-o,u=o+t.height-n.height,c=this._subtractOverflows(t.width,0-i,i+t.width-n.width),p=this._subtractOverflows(t.height,s,u),d=c*p;return{visibleArea:d,isCompletelyWithinViewport:t.width*t.height===d,fitsInViewportVertically:p===t.height,fitsInViewportHorizontally:c==t.width}},e.prototype._canFitWithFlexibleDimensions=function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,o=this._overlayRef.getConfig().minHeight,a=this._overlayRef.getConfig().minWidth;return(e.fitsInViewportVertically||null!=o&&o<=r)&&(e.fitsInViewportHorizontally||null!=a&&a<=i)}},e.prototype._pushOverlayOnScreen=function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var r,i,o=this._viewportRect,a=Math.max(e.x+t.width-o.right,0),l=Math.max(e.y+t.height-o.bottom,0),s=Math.max(o.top-n.top-e.y,0),u=Math.max(o.left-n.left-e.x,0);return this._previousPushAmount={x:r=t.width0){var n=this._getScrollVisibility(),r=new hs(e,n);this._positionChanges.next(r)}this._isInitialRender=!1},e.prototype._setTransformOrigin=function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var i=0;ip&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-p/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)l=s.right-e.x+this._viewportMargin,o=e.x-s.left;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=s.right-e.x;else{c=Math.min(s.right-e.x+s.left,e.x);var d=this._lastBoundingBoxSize.width;a=e.x-c,(o=2*c)>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:r,left:a,bottom:i,right:l,width:o,height:n}},e.prototype._setBoundingBoxStyles=function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Il(n.height),r.top=Il(n.top),r.bottom=Il(n.bottom),r.width=Il(n.width),r.left=Il(n.left),r.right=Il(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=Il(i)),o&&(r.maxWidth=Il(o))}this._lastBoundingBoxSize=n,Cs(this._boundingBox.style,r)},e.prototype._resetBoundingBoxStyles=function(){Cs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},e.prototype._resetOverlayElementStyles=function(){Cs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},e.prototype._setOverlayElementStyles=function(e,t){var n={};if(this._hasExactPosition()){var r=this._viewportRuler.getViewportScrollPosition();Cs(n,this._getExactOverlayY(t,e,r)),Cs(n,this._getExactOverlayX(t,e,r))}else n.position="static";var i="",o=this._getOffset(t,"x"),a=this._getOffset(t,"y");o&&(i+="translateX("+o+"px) "),a&&(i+="translateY("+a+"px)"),n.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),Cs(this._pane.style,n)},e.prototype._getExactOverlayY=function(e,t,n){var r={top:null,bottom:null},i=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer?this._overlayContainer.getContainerElement().getBoundingClientRect().top:0;return i.y-=o,"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=Il(i.y),r},e.prototype._getExactOverlayX=function(e,t,n){var r={left:null,right:null},i=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?r.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":r.left=Il(i.x),r},e.prototype._getScrollVisibility=function(){var e=this._origin.getBoundingClientRect(),t=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:ss(e,n),isOriginOutsideView:ls(e,n),isOverlayClipped:ss(t,n),isOverlayOutsideView:ls(t,n)}},e.prototype._subtractOverflows=function(e){for(var t=[],n=1;n=0){qs=1;break}var Ws=Us&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},qs))}};function Ks(e){return e&&"[object Function]"==={}.toString.call(e)}function Qs(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function $s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Ys(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Qs(e);return/(auto|scroll|overlay)/.test(t.overflow+t.overflowY+t.overflowX)?e:Ys($s(e))}var Xs=Us&&!(!window.MSInputMethodContext||!document.documentMode),Js=Us&&/MSIE 10/.test(navigator.userAgent);function eu(e){return 11===e?Xs:10===e?Js:Xs||Js}function tu(e){if(!e)return document.documentElement;for(var t=eu(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Qs(n,"position")?tu(n):n:e?e.ownerDocument.documentElement:document.documentElement}function nu(e){return null!==e.parentNode?nu(e.parentNode):e}function ru(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,l,s=o.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return"BODY"===(l=(a=s).nodeName)||"HTML"!==l&&tu(a.firstElementChild)!==a?tu(s):s;var u=nu(e);return u.host?ru(u.host,t):ru(e,nu(t).host)}function iu(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return"BODY"===n||"HTML"===n?(e.ownerDocument.scrollingElement||e.ownerDocument.documentElement)[t]:e[t]}function ou(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function au(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],eu(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function lu(e){var t=e.body,n=e.documentElement,r=eu(10)&&getComputedStyle(n);return{height:au("Height",t,n,r),width:au("Width",t,n,r)}}var su=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},uu=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=eu(10),i="HTML"===t.nodeName,o=hu(e),a=hu(t),l=Ys(e),s=Qs(t),u=parseFloat(s.borderTopWidth,10),c=parseFloat(s.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=du({top:o.top-a.top-u,left:o.left-a.left-c,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var d=parseFloat(s.marginTop,10),h=parseFloat(s.marginLeft,10);p.top-=u-d,p.bottom-=u-d,p.left-=c-h,p.right-=c-h,p.marginTop=d,p.marginLeft=h}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=iu(t,"top"),i=iu(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(p,t)),p}function gu(e){if(!e||!e.parentElement||eu())return document.documentElement;for(var t=e.parentElement;t&&"none"===Qs(t,"transform");)t=t.parentElement;return t||document.documentElement}function vu(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?gu(e):ru(e,t);if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=fu(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:iu(n),l=t?0:iu(n,"left");return du({top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var l=void 0;"scrollParent"===r?"BODY"===(l=Ys($s(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var s=fu(l,a,i);if("HTML"!==l.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===Qs(t,"position")||e($s(t)))}(a))o=s;else{var u=lu(e.ownerDocument),c=u.height,p=u.width;o.top+=s.top-s.marginTop,o.bottom=c+s.top,o.left+=s.left-s.marginLeft,o.right=p+s.left}}var d="number"==typeof(n=n||0);return o.left+=d?n:n.left||0,o.top+=d?n:n.top||0,o.right-=d?n:n.right||0,o.bottom-=d?n:n.bottom||0,o}function mu(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=vu(n,r,o,i),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(l).map(function(e){return pu({key:e},l[e],{area:(t=l[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),u=s.filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight}),c=u.length>0?u[0].key:s[0].key,p=e.split("-")[1];return c+(p?"-"+p:"")}function yu(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return fu(n,r?gu(t):ru(t,n),r)}function bu(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Cu(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function wu(e,t,n){n=n.split("-")[0];var r=bu(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",l=o?"left":"top",s=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[s]/2-r[s]/2,i[l]=n===l?t[l]-r[u]:t[Cu(l)],i}function _u(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Eu(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e.name===n});var r=_u(e,function(e){return e.name===n});return e.indexOf(r)}(e,0,n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Ks(n)&&(t.offsets.popper=du(t.offsets.popper),t.offsets.reference=du(t.offsets.reference),t=n(t,e))}),t}function Au(e,t){return e.some(function(e){return e.enabled&&e.name===t})}function Su(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Iu.indexOf(e),r=Iu.slice(n+1).concat(Iu.slice(0,n));return t?r.reverse():r}var ku={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,l=-1!==["bottom","top"].indexOf(n),s=l?"left":"top",u=l?"width":"height",c={start:cu({},s,o[s]),end:cu({},s,o[s]+o[u]-a[u])};e.offsets.popper=pu({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.offsets,o=i.popper,a=i.reference,l=e.placement.split("-")[0];return n=Tu(+r)?[+r,0]:function(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),l=a.indexOf(_u(a,function(e){return-1!==e.search(/,|\s/)}));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,u=-1!==l?[a.slice(0,l).concat([a[l].split(s)[0]]),[a[l].split(s)[1]].concat(a.slice(l+1))]:[a];return(u=u.map(function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var l=void 0;switch(a){case"%p":l=n;break;case"%":case"%r":default:l=r}return du(l)[t]/100*o}return"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o}(e,i,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){Tu(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}(r,o,a,l),"left"===l?(o.top+=n[0],o.left-=n[1]):"right"===l?(o.top+=n[0],o.left+=n[1]):"top"===l?(o.left+=n[0],o.top-=n[1]):"bottom"===l&&(o.left+=n[0],o.top+=n[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||tu(e.instance.popper);e.instance.reference===n&&(n=tu(n));var r=Su("transform"),i=e.instance.popper.style,o=i.top,a=i.left,l=i[r];i.top="",i.left="",i[r]="";var s=vu(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=l,t.boundaries=s;var u=e.offsets.popper,c={primary:function(e){var n=u[e];return u[e]s[e]&&!t.escapeWithReference&&(r=Math.min(u[n],s[e]-("right"===e?u.width:u.height))),cu({},n,r)}};return t.priority.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=pu({},u,c[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),l=a?"right":"bottom",s=a?"left":"top",u=a?"width":"height";return n[l]o(r[l])&&(e.offsets.popper[s]=o(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Lu(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,l=o.reference,s=-1!==["left","right"].indexOf(i),u=s?"height":"width",c=s?"Top":"Left",p=c.toLowerCase(),d=s?"left":"top",h=s?"bottom":"right",f=bu(r)[u];l[h]-fa[h]&&(e.offsets.popper[p]+=l[p]+f-a[h]),e.offsets.popper=du(e.offsets.popper);var g=l[p]+l[u]/2-f/2,v=Qs(e.instance.popper),m=parseFloat(v["margin"+c],10),y=parseFloat(v["border"+c+"Width"],10),b=g-e.offsets.popper[p]-m-y;return b=Math.max(Math.min(a[u]-f,b),0),e.arrowElement=r,e.offsets.arrow=(cu(n={},p,Math.round(b)),cu(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Au(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=vu(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Cu(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[r,i];break;case"clockwise":a=Vu(r);break;case"counterclockwise":a=Vu(r,!0);break;default:a=t.behavior}return a.forEach(function(l,s){if(r!==l||a.length===s+1)return e;r=e.placement.split("-")[0],i=Cu(r);var u=e.offsets.popper,c=e.offsets.reference,p=Math.floor,d="left"===r&&p(u.right)>p(c.left)||"right"===r&&p(u.left)p(c.top)||"bottom"===r&&p(u.top)p(n.right),g=p(u.top)p(n.bottom),m="left"===r&&h||"right"===r&&f||"top"===r&&g||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&f||!y&&"start"===o&&g||!y&&"end"===o&&v);(d||m||b)&&(e.flipped=!0,(d||m)&&(r=a[s+1]),b&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=pu({},e.offsets.popper,wu(e.instance.popper,e.offsets.reference,e.placement)),e=Eu(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(l?i[a?"width":"height"]:0),e.placement=Cu(t),e.offsets.popper=du(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Lu(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=_u(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};su(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Ws(this.update.bind(this)),this.options=pu({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(pu({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=pu({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return pu({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Ks(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return uu(e,[{key:"update",value:function(){return(function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=yu(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=mu(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=wu(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Eu(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}).call(this)}},{key:"destroy",value:function(){return(function(){return this.state.isDestroyed=!0,Au(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Su("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}).call(this)}},{key:"enableEventListeners",value:function(){return(function(){this.state.eventsEnabled||(this.state=function(e,t,n,r){n.updateBound=r,Du(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Ys(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(Ys(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}(this.reference,0,this.state,this.scheduleUpdate))}).call(this)}},{key:"disableEventListeners",value:function(){return(function(){var e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.state,Du(this.reference).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}).call(this)}}]),e}();Nu.Utils=("undefined"!=typeof window?window:global).PopperUtils,Nu.placements=Mu,Nu.Defaults=ku;var Fu=Nu,Hu=function(){function e(){}return e.CLICK="click",e.HOVER="hover",e.MOUSEDOWN="mousedown",e.NONE="none",e}(),ju=function(){function e(){}return e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e.TopStart="top-start",e.BottomStart="bottom-start",e.LeftStart="left-start",e.RightStart="right-start",e.TopEnd="top-end",e.BottomEnd="bottom-end",e.LeftEnd="left-end",e.RightEnd="right-end",e.Auto="auto",e.AutoStart="auto-start",e.AutoEnd="auto-end",e}(),Ru=function(){function e(e,t,n,r){this.elemRef=e,this.renderer=t,this.viewRef=n,this.CDR=r,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:ju.Auto,boundariesElement:"",trigger:Hu.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new i.EventEmitter,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}return e.prototype.onMouseOver=function(){this.isMouseOver=!0},e.prototype.showOnLeave=function(){this.isMouseOver=!1,(this.popperOptions.trigger===Hu.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()},e.prototype.onDocumentResize=function(){this.update()},e.prototype.ngOnDestroy=function(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))},e.prototype.clean=function(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())},e.prototype.show=function(){if(this.referenceObject){var e=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);e&&this.elemRef.nativeElement.parentNode!==e&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),e.appendChild(this.elemRef.nativeElement));var t={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(t.onUpdate=this.onUpdate);var n=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);t.modifiers&&n&&(t.modifiers.preventOverflow={boundariesElement:n}),t.modifiers&&void 0!==this.popperOptions.preventOverflow&&(t.modifiers.preventOverflow=t.modifiers.preventOverflow||{},t.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,t.modifiers.preventOverflow.enabled||(t.modifiers.hide={enabled:!1})),this.determineArrowColor(),t.modifiers=Object.assign(t.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new Fu(this.referenceObject,this.popperViewRef.nativeElement,t),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}},e.prototype.determineArrowColor=function(){var e=this;["background-color","backgroundColor"].some(function(t){return!!e.popperOptions.styles&&!!e.popperOptions.styles.hasOwnProperty(t)&&(e.arrowColor=e.popperOptions.styles[t],!0)})},e.prototype.update=function(){this.popperInstance&&this.popperInstance.update()},e.prototype.scheduleUpdate=function(){this.popperInstance&&this.popperInstance.scheduleUpdate()},e.prototype.hide=function(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()},e.prototype.toggleVisibility=function(e){e?(this.opacity=1,this.displayType="block",this.ariaHidden="false"):(this.opacity=0,this.displayType="none",this.ariaHidden="true"),this.CDR.destroyed||this.CDR.detectChanges()},e.prototype.extractAppliedClassListExpr=function(e){if(!e||"string"!=typeof e)return null;try{return e.replace(/ /,"").split(",").reduce(function(e,t){return e[t]=!0,e},{})}catch(t){return null}},e.prototype.clearGlobalResize=function(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()},e}(),Pu=function(){function e(t,n,r,o,a,l){void 0===l&&(l={}),this.viewContainerRef=t,this.changeDetectorRef=n,this.resolver=r,this.elementRef=o,this.renderer=a,this.popperDefaults=l,this.popperContentClass=Ru,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new i.EventEmitter,this.popperOnHidden=new i.EventEmitter,this.popperOnUpdate=new i.EventEmitter,e.baseOptions=Object(gi.a)({},e.baseOptions,this.popperDefaults)}return e.prototype.hideOnClickOutsideHandler=function(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)},e.prototype.hideOnScrollHandler=function(e){!this.disabled&&this.hideOnScroll&&this.scheduledHide(e,this.hideTimeout)},e.prototype.applyTriggerListeners=function(){switch(this.showTrigger){case Hu.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Hu.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Hu.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Hu.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))},e.assignDefined=function(e){for(var t,n,r,i,o=[],a=1;a0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}},e.prototype.hide=function(){this.disabled||(this.shown?(this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()):this.overrideShowTimeout())},e.prototype.scheduledShow=function(e){var t=this;void 0===e&&(e=this.showDelay),this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(function(){t.show(),t.applyChanges()},e))},e.prototype.scheduledHide=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=this.hideTimeout),this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(function(){var t=e?e.toElement:null,r=!!n.popperContent.popperViewRef&&n.popperContent.popperViewRef.nativeElement;!r||r===t||r.contains(t)||n.content.isMouseOver||(n.hide(),n.applyChanges())},t))},e.prototype.getRefElement=function(){return this.targetElement||this.viewContainerRef.element.nativeElement},e.prototype.applyChanges=function(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()},e.prototype.setDefaults=function(){this.showDelay=void 0===this.showDelay?e.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?e.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?e.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?e.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?e.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?e.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?e.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},e.baseOptions.styles):this.styles},e.prototype.clearEventListeners=function(){this.eventListeners.forEach(function(e){e&&"function"==typeof e&&e()}),this.eventListeners.length=0},e.prototype.clearGlobalEventListeners=function(){this.globalEventListeners.forEach(function(e){e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0},e.prototype.overrideShowTimeout=function(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)},e.prototype.overrideHideTimeout=function(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)},e.prototype.constructContent=function(){var e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance},e.prototype.setContentProperties=function(t){t.popperOptions=e.assignDefined(t.popperOptions,e.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),t.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(t.onHidden.subscribe(this.hide.bind(this)))},e.prototype.getScrollParent=function(e){var t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==t&&"hidden"!==t&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null},e.prototype.onPopperUpdate=function(e){this.popperOnUpdate.emit(e)},e.baseOptions={showDelay:0,placement:ju.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Hu.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}},e}(),Zu=function(){function e(){}return e.prototype.ngDoBootstrap=function(){},e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:"popperDefaults",useValue:t}]}},e}(),Bu=i["\u0275crt"]({encapsulation:2,styles:['\n .ngxp__container {\n display: none;\n position: absolute;\n border-radius: 3px;\n border: 1px solid grey;\n box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);\n padding: 10px;\n }\n\n .ngxp__container.ngxp__animation {\n -webkit-animation: ngxp-fadeIn 150ms ease-out;\n -moz-animation: ngxp-fadeIn 150ms ease-out;\n -o-animation: ngxp-fadeIn 150ms ease-out;\n animation: ngxp-fadeIn 150ms ease-out;\n\n }\n\n .ngxp__container > .ngxp__arrow {\n border-color: grey;\n width: 0;\n height: 0;\n border-style: solid;\n position: absolute;\n margin: 5px;\n }\n\n .ngxp__container[x-placement^="top"],\n .ngxp__container[x-placement^="bottom"],\n .ngxp__container[x-placement^="right"],\n .ngxp__container[x-placement^="left"] {\n display: block;\n }\n\n .ngxp__container[x-placement^="top"] {\n margin-bottom: 5px;\n }\n\n .ngxp__container[x-placement^="top"] > .ngxp__arrow {\n border-width: 5px 5px 0 5px;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n bottom: -5px;\n left: calc(50% - 5px);\n margin-top: 0;\n margin-bottom: 0;\n }\n\n .ngxp__container[x-placement^="top"] > .ngxp__arrow.__force-arrow {\n border-right-color: transparent !important;\n border-bottom-color: transparent !important;\n border-left-color: transparent !important;\n }\n\n .ngxp__container[x-placement^="bottom"] {\n margin-top: 5px;\n }\n\n .ngxp__container[x-placement^="bottom"] > .ngxp__arrow {\n border-width: 0 5px 5px 5px;\n border-top-color: transparent;\n border-right-color: transparent;\n border-left-color: transparent;\n top: -5px;\n left: calc(50% - 5px);\n margin-top: 0;\n margin-bottom: 0;\n }\n\n .ngxp__container[x-placement^="bottom"] > .ngxp__arrow.__force-arrow {\n border-top-color: transparent !important;\n border-right-color: transparent !important;\n border-left-color: transparent !important;\n }\n\n .ngxp__container[x-placement^="right"] {\n margin-left: 5px;\n }\n\n .ngxp__container[x-placement^="right"] > .ngxp__arrow {\n border-width: 5px 5px 5px 0;\n border-top-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n left: -5px;\n top: calc(50% - 5px);\n margin-left: 0;\n margin-right: 0;\n }\n\n .ngxp__container[x-placement^="right"] > .ngxp__arrow.__force-arrow {\n border-top-color: transparent !important;\n border-bottom-color: transparent !important;\n border-left-color: transparent !important;\n }\n\n .ngxp__container[x-placement^="left"] {\n margin-right: 5px;\n }\n\n .ngxp__container[x-placement^="left"] > .ngxp__arrow {\n border-width: 5px 0 5px 5px;\n border-top-color: transparent;\n border-bottom-color: transparent;\n border-right-color: transparent;\n right: -5px;\n top: calc(50% - 5px);\n margin-left: 0;\n margin-right: 0;\n }\n\n .ngxp__container[x-placement^="left"] > .ngxp__arrow.__force-arrow {\n border-top-color: transparent !important;\n border-bottom-color: transparent !important;\n border-right-color: transparent !important;\n }\n\n @-webkit-keyframes ngxp-fadeIn {\n 0% {\n display: none;\n opacity: 0;\n }\n\n 1% {\n display: block;\n opacity: 0;\n }\n\n 100% {\n display: block;\n opacity: 1;\n }\n }\n\n @keyframes ngxp-fadeIn {\n 0% {\n display: none;\n opacity: 0;\n }\n\n 1% {\n display: block;\n opacity: 0;\n }\n\n 100% {\n display: block;\n opacity: 1;\n }\n }\n '],data:{}});function Uu(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","ngxp__inner"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,0,0,t.component.text)})}function Gu(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","ngxp__inner"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function qu(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{popperViewRef:0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,[[1,0],["popperViewRef",1]],null,12,"div",[],[[2,"ngxp__container",null],[2,"ngxp__animation",null],[4,"display",null],[4,"opacity",null],[1,"aria-hidden",0],[1,"aria-describedby",0],[1,"role",0]],null,null,null,null)),i["\u0275did"](3,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),i["\u0275did"](4,278528,null,0,ul.NgStyle,[i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngStyle:[0,"ngStyle"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Uu)),i["\u0275did"](7,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Gu)),i["\u0275did"](10,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,1,"div",[["class","ngxp__arrow"]],[[4,"border-color",null],[2,"__force-arrow",null]],null,null,null,null)),i["\u0275did"](13,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.extractAppliedClassListExpr(n.popperOptions.applyClass)),e(t,4,0,n.popperOptions.styles),e(t,7,0,n.text),e(t,10,0,!n.text),e(t,13,0,"ngxp__arrow",n.extractAppliedClassListExpr(n.popperOptions.applyArrowClass))},function(e,t){var n=t.component;e(t,2,0,!n.popperOptions.disableDefaultStyling,!n.popperOptions.disableAnimation,n.displayType,n.opacity,i["\u0275inlineInterpolate"](1,"",n.ariaHidden,""),n.popperOptions.ariaDescribe||null,i["\u0275inlineInterpolate"](1,"",n.popperOptions.ariaRole,"")),e(t,12,0,n.arrowColor,n.arrowColor)})}function zu(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,16777216,null,null,1,"popper-content",[],null,[[null,"mouseover"],[null,"mouseleave"]],function(e,t,n){var r=!0;return"mouseover"===t&&(r=!1!==i["\u0275nov"](e,1).onMouseOver()&&r),"mouseleave"===t&&(r=!1!==i["\u0275nov"](e,1).showOnLeave()&&r),r},qu,Bu)),i["\u0275did"](1,180224,null,0,Ru,[i.ElementRef,i.Renderer2,i.ViewContainerRef,i.ChangeDetectorRef],null,null)],null,null)}var Wu=i["\u0275ccf"]("popper-content",Ru,zu,{},{},["*","*"]),Ku=n("26FU"),Qu=function(){return function(){}}(),$u=function(){return function(){}}(),Yu="*";function Xu(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function Ju(e){return{type:6,styles:e,offset:null}}function ec(e){Promise.resolve(null).then(e)}var tc=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;ec(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),nc=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,i=0,o=this.players.length;0==o?ec(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==o&&t._onFinish()}),e.onDestroy(function(){++r==o&&t._onDestroy()}),e.onStart(function(){++i==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),rc="!",ic=function(){return function(){}}(),oc=function(){return function(){}}(),ac=function(){var e={RIGHT_CENTER:0,RIGHT_TOP:1,RIGHT_BOTTOM:2,TOP_CENTER:3,TOP_RIGHT:4,TOP_LEFT:5,BOTTOM_CENTER:6,BOTTOM_RIGHT:7,BOTTOM_LEFT:8,LEFT_CENTER:9,LEFT_TOP:10,LEFT_BOTTOM:11};return e[e.RIGHT_CENTER]="RIGHT_CENTER",e[e.RIGHT_TOP]="RIGHT_TOP",e[e.RIGHT_BOTTOM]="RIGHT_BOTTOM",e[e.TOP_CENTER]="TOP_CENTER",e[e.TOP_RIGHT]="TOP_RIGHT",e[e.TOP_LEFT]="TOP_LEFT",e[e.BOTTOM_CENTER]="BOTTOM_CENTER",e[e.BOTTOM_RIGHT]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT]="BOTTOM_LEFT",e[e.LEFT_CENTER]="LEFT_CENTER",e[e.LEFT_TOP]="LEFT_TOP",e[e.LEFT_BOTTOM]="LEFT_BOTTOM",e}(),lc="absolute",sc=function(){function e(e){this.element=e,this.scrollableElements=[],this.boundOnScrollListener=this.emitScrollEvent.bind(this),e.style.position=lc,e.style.top=0,e.style.bottom="auto",e.style.left=0,e.style.right="auto"}return e.prototype.anchor=function(e,t,n,r){var i=void 0===r?{}:r,o=i.offsetX,a=void 0===o?0:o,l=i.offsetY,s=void 0===l?0:l,u=i.useAnchorParent,c=void 0!==u&&u;this.addScrollEventListeners(e),c&&(e=e.parentNode),e.style.position="static";var p=e.getBoundingClientRect(),d=this.element.getBoundingClientRect(),h=p.left-d.left+a,f=p.top-d.top+s;switch(t){case ac.LEFT_TOP:case ac.TOP_LEFT:break;case ac.TOP_CENTER:h+=p.width/2;break;case ac.TOP_RIGHT:case ac.RIGHT_TOP:h+=p.width;break;case ac.LEFT_BOTTOM:case ac.BOTTOM_LEFT:f+=p.height;break;case ac.BOTTOM_CENTER:f+=p.height,h+=p.width/2;break;case ac.BOTTOM_RIGHT:case ac.RIGHT_BOTTOM:f+=p.height,h+=p.width;break;case ac.LEFT_CENTER:f+=p.height/2;break;case ac.RIGHT_CENTER:f+=p.height/2,h+=p.width}switch(n){case ac.LEFT_TOP:case ac.TOP_LEFT:break;case ac.TOP_CENTER:h-=d.width/2;break;case ac.TOP_RIGHT:case ac.RIGHT_TOP:h-=d.width;break;case ac.LEFT_BOTTOM:case ac.BOTTOM_LEFT:f-=d.height;break;case ac.BOTTOM_CENTER:f-=d.height,h-=d.width/2;break;case ac.BOTTOM_RIGHT:case ac.RIGHT_BOTTOM:f-=d.height,h-=d.width;break;case ac.LEFT_CENTER:f-=d.height/2;break;case ac.RIGHT_CENTER:f-=d.height/2,h-=d.width}var g=getComputedStyle(this.element),v=parseInt(g.marginLeft,10),m=parseInt(g.marginRight,10),y=parseInt(g.marginTop,10),b=parseInt(g.marginBottom,10);switch(t){case ac.LEFT_TOP:case ac.TOP_LEFT:case ac.TOP_RIGHT:case ac.RIGHT_TOP:n!==ac.BOTTOM_RIGHT&&n!==ac.RIGHT_BOTTOM||(f-=b,h-=m),n!==ac.BOTTOM_LEFT&&n!==ac.LEFT_BOTTOM||(f-=y,h+=v),n!==ac.TOP_LEFT&&n!==ac.LEFT_TOP||(f+=y,h+=v),n!==ac.TOP_RIGHT&&n!==ac.RIGHT_TOP||(f+=y,h-=m);break;case ac.LEFT_BOTTOM:case ac.BOTTOM_LEFT:case ac.BOTTOM_RIGHT:case ac.RIGHT_BOTTOM:n!==ac.BOTTOM_LEFT&&n!==ac.LEFT_BOTTOM||(f-=b,h+=v),n!==ac.BOTTOM_RIGHT&&n!==ac.RIGHT_BOTTOM||(f-=b,h-=m),n!==ac.TOP_LEFT&&n!==ac.LEFT_TOP||(f+=y,h+=v),n!==ac.TOP_RIGHT&&n!==ac.RIGHT_TOP||(f+=y,h-=m);break;case ac.TOP_CENTER:f-=b,h+=v,h-=m;break;case ac.BOTTOM_CENTER:f+=y,h+=v,h-=m;break;case ac.LEFT_CENTER:f+=y,f-=b,h-=m;break;case ac.RIGHT_CENTER:f+=y,f-=b,h+=v}return this.element.style.transform="translateX("+Math.round(h)+"px) translateY("+Math.round(f)+"px)",this._scroll.asObservable()},e.prototype.release=function(){this.element.style.transform="",this.removeScrollEventListeners()},e.prototype.isPositioned=function(e){var t=getComputedStyle(e).position;return"relative"===t||t===lc||"fixed"===t},e.prototype.emitScrollEvent=function(){this._scroll.next()},e.prototype.addScrollEventListeners=function(e){this._scroll=new Sl.a;for(var t=e,n=e;n&&n!==document&&(this.scrolls(n)&&(n.addEventListener("scroll",this.boundOnScrollListener),this.scrollableElements.push(n)),n===t||!this.isPositioned(n));)n=n.parentNode},e.prototype.removeScrollEventListeners=function(){var e,t;try{for(var n=Object(gi.h)(this.scrollableElements),r=n.next();!r.done;r=n.next())r.value.removeEventListener("scroll",this.boundOnScrollListener)}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.scrollableElements.length=0,this._scroll&&(this._scroll.complete(),delete this._scroll)},e.prototype.scrolls=function(e){var t=getComputedStyle(e);return"scroll"===t.overflowX||"auto"===t.overflowX||"scroll"===t.overflowY||"auto"===t.overflowY},e}(),uc=function(){return function(){}}();new i.Optional,new i.SkipSelf,Object(i.forwardRef)(function(){return cc});var cc=function(){function e(){}return e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),pc=function(){return function(){}}(),dc=function(){return function(){}}(),hc=function(){return function(){}}(),fc=function(){return function(){}}(),gc=function(){return function(){}}(),vc=function(){function e(){this._controlChanges=new Sl.a}return Object.defineProperty(e.prototype,"controlChanges",{get:function(){return this._controlChanges.asObservable()},enumerable:!0,configurable:!0}),e.prototype.setControl=function(e){this._controlChanges.next(e)},e}(),mc=function(){function e(e){var t=this;this.ngControlService=e,this._statusChanges=new Sl.a,this.subscriptions=[],this.subscriptions.push(this.ngControlService.controlChanges.subscribe(function(e){t.control=e,t.listenForChanges()}))}return Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this._statusChanges.asObservable()},enumerable:!0,configurable:!0}),e.prototype.listenForChanges=function(){var e=this;this.subscriptions.push(this.control.statusChanges.pipe(Object(ol.a)(function(){return e.control.touched})).subscribe(function(){e._statusChanges.next(e.control)}))},e.prototype.triggerStatusChange=function(){this.control&&this._statusChanges.next(this.control)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()})},e}(),yc=0,bc=function(){function e(){this._id="clr-form-control-"+ ++yc,this._idChange=new Ku.a(this._id)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e,this._idChange.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idChange",{get:function(){return this._idChange.asObservable()},enumerable:!0,configurable:!0}),e}(),Cc={VERTICAL:"vertical",HORIZONTAL:"horizontal",COMPACT:"compact"},wc=function(){function e(){this.layout=Cc.VERTICAL,this.layoutValues=Object.keys(Cc).map(function(e){return Cc[e]})}return e.prototype.isVertical=function(){return this.layout===Cc.VERTICAL},Object.defineProperty(e.prototype,"layoutClass",{get:function(){return"clr-form-"+this.layout},enumerable:!0,configurable:!0}),e.prototype.isValid=function(e){return this.layoutValues.indexOf(e)>-1},e}(),_c=function(){function e(e,t,n,r){this.controlIdService=e,this.layoutService=t,this.renderer=n,this.el=r}return e.prototype.ngOnInit=function(){var e=this;this.controlIdService&&this.renderer.addClass(this.el.nativeElement,"clr-control-label"),this.layoutService&&!this.layoutService.isVertical()&&this.el.nativeElement&&this.el.nativeElement.className.indexOf("clr-col")<0&&(this.renderer.addClass(this.el.nativeElement,"clr-col-xs-12"),this.renderer.addClass(this.el.nativeElement,"clr-col-md-2")),!this.forAttr&&this.controlIdService&&(this.subscription=this.controlIdService.idChange.subscribe(function(t){return e.forAttr=t}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}(),Ec=new i.InjectionToken("IS_NEW_FORMS_LAYOUT"),Ac=function(){return function(){}}(),Sc=function(){return function(){this._dynamic=!1}}(),Dc=function(){return function(){}}();new i.InjectionToken("IF_ACTIVE_ID");var Tc=function(){function e(){this._openChange=new Sl.a,this._ignoredElementChange=new Sl.a}return Object.defineProperty(e.prototype,"openChange",{get:function(){return this._openChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"open",{get:function(){return this._open},set:function(e){this._open!==(e=!!e)&&(this._open=e,this._openChange.next(e))},enumerable:!0,configurable:!0}),e.prototype.toggleWithEvent=function(e){this.originalEvent=e,this.open=!this.open,delete this.originalEvent},Object.defineProperty(e.prototype,"ignoredElementChange",{get:function(){return this._ignoredElementChange.asObservable()},enumerable:!0,configurable:!0}),e.prototype.registerIgnoredElement=function(e){this._ignoredElementChange.next(e)},e}(),xc=function(){function e(e,t,n){var r=this;this.ifOpenService=e,this.template=t,this.container=n,this.openChange=new i.EventEmitter(!1),this.subscription=this.ifOpenService.openChange.subscribe(function(e){r.updateView(e),r.openChange.emit(e)})}return Object.defineProperty(e.prototype,"open",{get:function(){return this.ifOpenService.open},set:function(e){this.ifOpenService.open=e},enumerable:!0,configurable:!0}),e.prototype.updateView=function(e){e?this.container.createEmbeddedView(this.template):this.container.clear()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e}(),Oc=function(){return function(){}}(),Lc=function(){function e(){this._previousFocusTraps=[]}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._previousFocusTraps.push(this._current),this._current=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nbFocusTrappers",{get:function(){return this._previousFocusTraps.length},enumerable:!0,configurable:!0}),e.prototype.activatePreviousTrapper=function(){this._current=this._previousFocusTraps.pop()},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Mc=function(){function e(e,t,n,r,i){this.el=e,this.injector=t,this.focusTrapsTracker=n,this.renderer=r,this.platformId=i,this.document=this.injector.get(ul.DOCUMENT),this.focusTrapsTracker.current=this,this.renderer.setAttribute(this.el.nativeElement,"tabindex","0")}return e.prototype.onFocusIn=function(e){var t=this.el.nativeElement;this.focusTrapsTracker.current===this&&e.target&&!t.contains(e.target)&&t.focus()},e.prototype.createFocusableOffScreenEl=function(){var e=this.renderer.createElement("span");return this.renderer.setAttribute(e,"tabindex","0"),this.renderer.addClass(e,"offscreen-focus-rebounder"),e},e.prototype.addReboundEls=function(){Object(ul.isPlatformBrowser)(this.platformId)&&1===this.focusTrapsTracker.nbFocusTrappers&&(this.topReboundEl=this.createFocusableOffScreenEl(),this.bottomReboundEl=this.createFocusableOffScreenEl(),this.renderer.insertBefore(this.document.body,this.topReboundEl,this.document.body.firstChild),this.renderer.appendChild(this.document.body,this.bottomReboundEl))},e.prototype.removeReboundEls=function(){Object(ul.isPlatformBrowser)(this.platformId)&&1===this.focusTrapsTracker.nbFocusTrappers&&this.topReboundEl&&this.bottomReboundEl&&(this.renderer.removeChild(this.document.body,this.topReboundEl),this.renderer.removeChild(this.document.body,this.bottomReboundEl))},e.prototype.setPreviousFocus=function(){this.previousActiveElement&&this.previousActiveElement.focus&&this.previousActiveElement.focus()},e.prototype.ngAfterViewInit=function(){Object(ul.isPlatformBrowser)(this.platformId)&&(this.previousActiveElement=this.document.activeElement),this.addReboundEls()},e.prototype.ngOnDestroy=function(){this.removeReboundEls(),this.setPreviousFocus(),this.focusTrapsTracker.activatePreviousTrapper()},e}(),Ic=function(){return function(){}}(),Vc="dd/MM/y",kc=/d+.+m+.+y+/i,Nc=/m+.+d+.+y+/i,Fc=/d+|m+|y+/i,Hc=/\d+/g,jc=/Mobi/i,Rc=/\u200f/g,Pc={name:"LITTLE_ENDIAN",format:["DD","MM","YYYY"]},Zc={name:"MIDDLE_ENDIAN",format:["MM","DD","YYYY"]},Bc={name:"BIG_ENDIAN",format:["YYYY","MM","DD"]};function Uc(e,t){return new Date(e,t+1,0).getDate()}var Gc=function(){function e(e,t,n,r,i){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),this.dayModel=e,this.isTodaysDate=t,this.isDisabled=n,this.isSelected=r,this.isFocusable=i}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.isFocusable?0:-1},enumerable:!0,configurable:!0}),e}(),qc=function(){function e(e,t){this.year=e,this.month=t,this.initializeDaysInCalendar()}return e.prototype.initializeDaysInCalendar=function(){var e=this,t=Uc(this.year,this.month);this.days=Array(t).fill(null).map(function(t,n){return new zc(e.year,e.month,n+1)})},e.prototype.isEqual=function(e){return!!e&&this.year===e.year&&this.month===e.month},e.prototype.isDayInCalendar=function(e){return!!e&&this.year===e.year&&this.month===e.month},e.prototype.previousMonth=function(){return 0===this.month?new e(this.year-1,11):new e(this.year,this.month-1)},e.prototype.nextMonth=function(){return 11===this.month?new e(this.year+1,0):new e(this.year,this.month+1)},e}(),zc=function(){function e(e,t,n){this.year=e,this.month=t,this.date=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return new qc(this.year,this.month)},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){return!!e&&this.year===e.year&&this.month===e.month&&this.date===e.date},e.prototype.toDate=function(){return new Date(this.year,this.month,this.date)},e.prototype.incrementBy=function(t){var n=new Date(this.year,this.month,this.date+t);return new e(n.getFullYear(),n.getMonth(),n.getDate())},e.prototype.clone=function(){return new e(this.year,this.month,this.date)},e}(),Wc=function(){function e(e,t,n,r,i){this.calendar=e,this.selectedDay=t,this.focusableDay=n,this.today=r,this.firstDayOfWeek=i,this.currMonthDayViews=[],this.initializeCalendarView()}return Object.defineProperty(e.prototype,"calendarView",{get:function(){return this._calendarView},enumerable:!0,configurable:!0}),e.prototype.initializeCalendarView=function(){var e=this.calendar.previousMonth(),t=this.calendar.nextMonth(),n=this.numDaysFromPrevMonthInCalView(this.calendar.year,this.calendar.month),r=42-(this.calendar.days.length+n),i=[],o=[];n>0&&(i=this.generateDayViewModels(e.days.slice(-1*n),!0,!1)),this.currMonthDayViews=this.generateDayViewModels(this.calendar.days,!1,!0),r>0&&(o=this.generateDayViewModels(t.days.slice(0,r),!0,!1)),this._calendarView=this.generateCalendarView(i,this.currMonthDayViews,o),this.initializeSelectedDay(),this.initializeFocusableDay()},e.prototype.generateDayViewModels=function(e,t,n){var r=e.map(function(e){return new Gc(e,!1,t,!1,!1)});return n&&this.calendar.isDayInCalendar(this.today)&&(r[this.today.date-1].isTodaysDate=!0),r},e.prototype.numDaysFromPrevMonthInCalView=function(e,t){var n=new Date(e,t,1).getDay();return n>=this.firstDayOfWeek?n-this.firstDayOfWeek:7+n-this.firstDayOfWeek},e.prototype.isDayInCalendarView=function(e){return!!this.calendar.isDayInCalendar(e)},e.prototype.generateCalendarView=function(e,t,n){for(var r=Object(gi.g)(e,t,n),i=[],o=0;o<6;o++)i[o]=r.slice(7*o,7*(o+1));return i},e.prototype.initializeSelectedDay=function(){this.selectedDay&&this.isDayInCalendarView(this.selectedDay)&&(this.currMonthDayViews[this.selectedDay.date-1].isSelected=!0)},e.prototype.initializeFocusableDay=function(){this.focusableDay&&this.isDayInCalendarView(this.focusableDay)?this.setFocusableFlag(this.focusableDay,!0):this.selectedDay&&this.isDayInCalendarView(this.selectedDay)?(this.setFocusableFlag(this.selectedDay,!0),this.focusableDay=this.selectedDay.clone()):this.isDayInCalendarView(this.today)?(this.setFocusableFlag(this.today,!0),this.focusableDay=this.today.clone()):(this.focusableDay=new zc(this.calendar.year,this.calendar.month,15),this.setFocusableFlag(this.focusableDay,!0))},e.prototype.setFocusableFlag=function(e,t){e&&(this.currMonthDayViews[e.date-1].isFocusable=t)},e.prototype.updateFocusableDay=function(e){this.setFocusableFlag(this.focusableDay,!1),this.setFocusableFlag(e,!0),this.focusableDay=e},e}(),Kc=function(){function e(){this._todaysFullDate=new Date,this._selectedDayChange=new Sl.a,this._displayedCalendarChange=new Sl.a,this._focusOnCalendarChange=new Sl.a,this._focusedDayChange=new Sl.a}return Object.defineProperty(e.prototype,"displayedCalendar",{get:function(){return this._displayedCalendar},enumerable:!0,configurable:!0}),e.prototype.setDisplayedCalendar=function(e){this._displayedCalendar.isEqual(e)||(this._displayedCalendar=e,this._displayedCalendarChange.next())},e.prototype.initializeTodaysDate=function(){this._todaysFullDate=new Date,this._today=new zc(this._todaysFullDate.getFullYear(),this._todaysFullDate.getMonth(),this._todaysFullDate.getDate())},Object.defineProperty(e.prototype,"today",{get:function(){return this._today},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedDayChange",{get:function(){return this._selectedDayChange.asObservable()},enumerable:!0,configurable:!0}),e.prototype.notifySelectedDayChanged=function(e){e.isEqual(this.selectedDay)||(this.selectedDay=e,this._selectedDayChange.next(e))},e.prototype.initializeCalendar=function(){this.focusedDay=null,this.initializeTodaysDate(),this._displayedCalendar=this.selectedDay?new qc(this.selectedDay.year,this.selectedDay.month):new qc(this.today.year,this.today.month)},e.prototype.changeMonth=function(e){this.setDisplayedCalendar(new qc(this._displayedCalendar.year,e))},e.prototype.changeYear=function(e){this.setDisplayedCalendar(new qc(e,this._displayedCalendar.month))},e.prototype.moveToNextMonth=function(){this.setDisplayedCalendar(this._displayedCalendar.nextMonth())},e.prototype.moveToPreviousMonth=function(){this.setDisplayedCalendar(this._displayedCalendar.previousMonth())},e.prototype.moveToCurrentMonth=function(){this.displayedCalendar.isDayInCalendar(this.today)||this.setDisplayedCalendar(new qc(this.today.year,this.today.month)),this._focusOnCalendarChange.next()},e.prototype.incrementFocusDay=function(e){this.focusedDay=this.focusedDay.incrementBy(e),this._displayedCalendar.isDayInCalendar(this.focusedDay)?this._focusedDayChange.next(this.focusedDay):this.setDisplayedCalendar(this.focusedDay.calendar),this._focusOnCalendarChange.next()},Object.defineProperty(e.prototype,"displayedCalendarChange",{get:function(){return this._displayedCalendarChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusOnCalendarChange",{get:function(){return this._focusOnCalendarChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedDayChange",{get:function(){return this._focusedDayChange.asObservable()},enumerable:!0,configurable:!0}),e}(),Qc=function(){function e(e,t){this._ngZone=e,this.platformId=t}return e.prototype.focusCell=function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.asObservable().pipe(Object(ei.a)()).subscribe(function(){if(Object(ul.isPlatformBrowser)(t.platformId)){var n=e.nativeElement.querySelector('[tabindex="0"]');n&&n.focus()}})})},e}(),$c=function(){function e(e){this.locale=e,this._firstDayOfWeek=0,this.initializeLocaleData()}return Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localeDaysNarrow",{get:function(){return this._localeDaysNarrow},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localeMonthsAbbreviated",{get:function(){return this._localeMonthsAbbreviated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localeMonthsWide",{get:function(){return this._localeMonthsWide},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localeDateFormat",{get:function(){return this._localeDateFormat},enumerable:!0,configurable:!0}),e.prototype.initializeLocaleData=function(){this.initializeFirstDayOfWeek(),this.initializeLocaleDateFormat(),this.initializeLocaleMonthsAbbreviated(),this.initializeLocaleMonthsWide(),this.initializeLocaleDaysNarrow()},e.prototype.initializeLocaleDaysNarrow=function(){var e=Object(ul.getLocaleDayNames)(this.locale,ul.FormStyle.Standalone,ul.TranslationWidth.Narrow).slice(),t=this.firstDayOfWeek;if(t>0){var n=e.splice(0,t);e.push.apply(e,Object(gi.g)(n))}this._localeDaysNarrow=e},e.prototype.initializeLocaleMonthsAbbreviated=function(){this._localeMonthsAbbreviated=Object(ul.getLocaleMonthNames)(this.locale,ul.FormStyle.Standalone,ul.TranslationWidth.Abbreviated).slice()},e.prototype.initializeLocaleMonthsWide=function(){this._localeMonthsWide=Object(ul.getLocaleMonthNames)(this.locale,ul.FormStyle.Standalone,ul.TranslationWidth.Wide).slice()},e.prototype.initializeFirstDayOfWeek=function(){this._firstDayOfWeek=Object(ul.getLocaleFirstDayOfWeek)(this.locale)},e.prototype.initializeLocaleDateFormat=function(){this._localeDateFormat=Object(ul.getLocaleDateFormat)(this.locale,ul.FormatWidth.Short)},e}(),Yc=function(){function e(e,t,n,r){this._localeHelperService=e,this._dateNavigationService=t,this._datepickerFocusService=n,this._elRef=r,this._subs=[],this.generateCalendarView(),this.initializeSubscriptions()}return Object.defineProperty(e.prototype,"localeDaysNarrow",{get:function(){return this._localeHelperService.localeDaysNarrow},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this._dateNavigationService.displayedCalendar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedDay",{get:function(){return this._dateNavigationService.selectedDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedDay",{get:function(){return this._dateNavigationService.focusedDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"today",{get:function(){return this._dateNavigationService.today},enumerable:!0,configurable:!0}),e.prototype.initializeSubscriptions=function(){var e=this;this._subs.push(this._dateNavigationService.displayedCalendarChange.subscribe(function(){e.generateCalendarView()})),this._subs.push(this._dateNavigationService.focusedDayChange.subscribe(function(t){e.calendarViewModel.updateFocusableDay(t)})),this._subs.push(this._dateNavigationService.focusOnCalendarChange.subscribe(function(){e._datepickerFocusService.focusCell(e._elRef)}))},e.prototype.generateCalendarView=function(){this.calendarViewModel=new Wc(this.calendar,this.selectedDay,this.focusedDay,this.today,this._localeHelperService.firstDayOfWeek)},e.prototype.onKeyDown=function(e){if(e&&this.focusedDay)switch(e.keyCode){case 38:e.preventDefault(),this._dateNavigationService.incrementFocusDay(-7);break;case 40:e.preventDefault(),this._dateNavigationService.incrementFocusDay(7);break;case 37:e.preventDefault(),this._dateNavigationService.incrementFocusDay(-1);break;case 39:e.preventDefault(),this._dateNavigationService.incrementFocusDay(1)}},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e.prototype.ngOnDestroy=function(){this._subs.forEach(function(e){return e.unsubscribe()})},e}(),Xc=function(){function e(){this.className=""}return e.prototype.controlClass=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n="");var r=[this.className,n];return e&&r.push("clr-error"),t&&-1===this.className.indexOf("clr-col")&&r.push("clr-col-md-10 clr-col-xs-12"),r.join(" ").trim()},e.prototype.initControlClass=function(e,t){t&&t.className&&(this.className=t.className,t.className.split(" ").forEach(function(n){n.startsWith("clr-col")&&e.removeClass(t,n)}))},e}(),Jc=function(){function e(){this._focused=new Ku.a(!1)}return Object.defineProperty(e.prototype,"focusChange",{get:function(){return this._focused.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{set:function(e){this._focused.next(e)},enumerable:!0,configurable:!0}),e}(),ep=function(){function e(){this._touchedChange=new Sl.a,this._dirtyChange=new Sl.a}return Object.defineProperty(e.prototype,"touchedChange",{get:function(){return this._touchedChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirtyChange",{get:function(){return this._dirtyChange.asObservable()},enumerable:!0,configurable:!0}),e.prototype.markAsTouched=function(){this._touchedChange.next()},e.prototype.markAsDirty=function(){this._dirtyChange.next()},e}(),tp=function(){function e(e){this._localeHelperService=e,this.cldrLocaleDateFormat=Vc,this.localeDisplayFormat=Pc,this.delimiters=["/","/"],this.cldrLocaleDateFormat=this._localeHelperService.localeDateFormat,this.initializeLocaleDisplayFormat()}return e.prototype.initializeLocaleDisplayFormat=function(){var e=this.cldrLocaleDateFormat.toLocaleLowerCase();this.localeDisplayFormat=kc.test(e)?Pc:Nc.test(e)?Zc:Bc,this.extractDelimiters()},e.prototype.extractDelimiters=function(){if(this.cldrLocaleDateFormat){var e=this.cldrLocaleDateFormat.replace(Rc,"").split(Fc);e&&4===e.length?this.delimiters=[e[1],e[2]]:console.error("Unexpected date format received. Delimiters extracted: ",e)}},e.prototype.toLocaleDisplayFormatString=function(e){if(e){if(isNaN(e.getTime()))return"";var t=e.getDate(),n=e.getMonth()+1,r=t>9?t.toString():"0"+t,i=n>9?n.toString():"0"+n;return this.localeDisplayFormat===Pc?r+this.delimiters[0]+i+this.delimiters[1]+e.getFullYear():this.localeDisplayFormat===Zc?i+this.delimiters[0]+r+this.delimiters[1]+e.getFullYear():e.getFullYear()+this.delimiters[0]+i+this.delimiters[1]+r}return""},Object.defineProperty(e.prototype,"placeholderText",{get:function(){var e=this.localeDisplayFormat.format;return e[0]+this.delimiters[0]+e[1]+this.delimiters[1]+e[2]},enumerable:!0,configurable:!0}),e.prototype.isValidMonth=function(e){return e>-1&&e<12},e.prototype.isValidDate=function(e,t,n){return n>0&&n<=Uc(e,t)},e.prototype.validateAndGetDate=function(e,t,n){var r=+e,i=+t-1,o=+n;if(!this.isValidMonth(i)||!this.isValidDate(r,i,o))return null;var a=function(e){if(e>9999||e>100&&e<999||e<10)return-1;if(e>999)return e;var t=(new Date).getFullYear(),n=e+100*Math.floor(t/100);return n>t+20&&(n-=100),n}(r);return-1!==a?new Date(a,i,o):null},e.prototype.isValidInput=function(e){if(!e)return null;var t=e.match(Hc);if(!t||3!==t.length)return null;var n=Object(gi.f)(t,3),r=n[0],i=n[1],o=n[2];return this.localeDisplayFormat===Pc?this.validateAndGetDate(o,i,r):this.localeDisplayFormat===Zc?this.validateAndGetDate(o,r,i):this.validateAndGetDate(r,i,o)},e}(),np=function(){function e(e){this._document=e,this._isUserAgentMobile=!1,this._document&&(this._isUserAgentMobile=jc.test(e.defaultView.navigator.userAgent),this._innerWidth=e.defaultView.innerWidth)}return Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!(this._document&&this._innerWidth<768&&this._isUserAgentMobile)},enumerable:!0,configurable:!0}),e}(),rp=function(){function e(e,t,n,r,i,o,a,l,s,u,c){var p=this;this._ifOpenService=e,this._dateNavigationService=t,this._datepickerEnabledService=n,this.dateFormControlService=r,this.commonStrings=i,this.ifErrorService=o,this.focusService=a,this.controlClassService=l,this.layoutService=s,this.newFormsLayout=u,this.ngControlService=c,this._dynamic=!1,this.invalid=!1,this.focus=!1,this.subscriptions=[],this.subscriptions.push(this._ifOpenService.openChange.subscribe(function(e){e&&p.initializeCalendar()})),this.subscriptions.push(this.focusService.focusChange.subscribe(function(e){p.focus=e})),this.subscriptions.push(this.ngControlService.controlChanges.subscribe(function(e){p.control=e}))}return e.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.ifErrorService.statusChanges.subscribe(function(t){e.invalid=t.invalid}))},e.prototype.controlClass=function(){return this.controlClassService.controlClass(this.invalid,this.addGrid())},e.prototype.addGrid=function(){return!(!this.layoutService||this.layoutService.isVertical())},Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._datepickerEnabledService.isEnabled},enumerable:!0,configurable:!0}),e.prototype.initializeCalendar=function(){this._dateNavigationService.initializeCalendar()},e.prototype.toggleDatepicker=function(e){this._ifOpenService.toggleWithEvent(e),this.dateFormControlService.markAsTouched()},e.prototype.ngOnDestroy=function(){this.subscriptions.map(function(e){return e.unsubscribe()})},e}(),ip=function(){function e(e,t){var n=this;this.parentHost=t,this.updateAnchor=!1,this.popoverOptions={},this.closeOnOutsideClick=!1,this.el=e.get(i.ElementRef),this.ifOpenService=e.get(Tc),this.renderer=e.get(i.Renderer2),this.anchorElem=t.nativeElement,this.popoverInstance=new sc(this.el.nativeElement),this.subscription=this.ifOpenService.openChange.subscribe(function(e){e?(n.anchor(),n.attachESCListener()):(n.release(),n.detachESCListener())}),this.ifOpenService.open&&(this.anchor(),this.attachESCListener())}return e.prototype.anchor=function(){this.updateAnchor=!0,this.ignore=this.ifOpenService.originalEvent},e.prototype.release=function(){this.detachOutsideClickListener(),this.popoverInstance.release()},e.prototype.ngAfterViewChecked=function(){var e=this;this.updateAnchor&&(this.updateAnchor=!1,this.popoverInstance.anchor(this.anchorElem,this.anchorPoint,this.popoverPoint,this.popoverOptions).subscribe(function(){e.ifOpenService.open=!1}),this.attachOutsideClickListener())},e.prototype.ngOnDestroy=function(){this.release(),this.detachESCListener(),this.subscription.unsubscribe()},Object.defineProperty(e.prototype,"isOffScreen",{get:function(){return!this.ifOpenService.open},enumerable:!0,configurable:!0}),e.prototype.attachESCListener=function(){var e=this;this.documentESCListener=this.renderer.listen("document","keydown",function(t){t&&27===t.keyCode&&(e.ifOpenService.open=!1)})},e.prototype.detachESCListener=function(){this.documentESCListener&&(this.documentESCListener(),delete this.documentESCListener)},e.prototype.attachOutsideClickListener=function(){var e=this;this.closeOnOutsideClick&&(this.hostClickListener=this.renderer.listen(this.el.nativeElement,"click",function(t){return e.ignore=t}),this.ignoredElement&&(this.ignoredElementClickListener=this.renderer.listen(this.ignoredElement,"click",function(t){return e.ignore=t})),this.documentClickListener=this.renderer.listen("document","click",function(t){t===e.ignore?delete e.ignore:e.ifOpenService.open=!1}))},e.prototype.detachOutsideClickListener=function(){this.closeOnOutsideClick&&(this.hostClickListener&&(this.hostClickListener(),delete this.hostClickListener),this.ignoredElementClickListener&&(this.ignoredElementClickListener(),delete this.ignoredElementClickListener),this.documentClickListener&&(this.documentClickListener(),delete this.documentClickListener))},e}(),op=function(){function e(){this._currentView="DAYVIEW"}return Object.defineProperty(e.prototype,"isDayView",{get:function(){return"DAYVIEW"===this._currentView},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isYearView",{get:function(){return"YEARVIEW"===this._currentView},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMonthView",{get:function(){return"MONTHVIEW"===this._currentView},enumerable:!0,configurable:!0}),e.prototype.changeToMonthView=function(){this._currentView="MONTHVIEW"},e.prototype.changeToYearView=function(){this._currentView="YEARVIEW"},e.prototype.changeToDayView=function(){this._currentView="DAYVIEW"},e}(),ap=function(e){function t(t,n,r){var i=e.call(this,n,t)||this;return i._viewManagerService=r,i.configurePopover(),i}return Object(gi.c)(t,e),t.prototype.configurePopover=function(){this.anchorPoint=ac.BOTTOM_LEFT,this.popoverPoint=ac.LEFT_TOP,this.closeOnOutsideClick=!0},Object.defineProperty(t.prototype,"isMonthView",{get:function(){return this._viewManagerService.isMonthView},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isYearView",{get:function(){return this._viewManagerService.isYearView},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDayView",{get:function(){return this._viewManagerService.isDayView},enumerable:!0,configurable:!0}),t}(ip),lp=function(){function e(e,t,n){this._dateNavigationService=e,this._ifOpenService=t,this.dateFormControlService=n}return e.prototype.onDayViewFocus=function(){this._dateNavigationService.focusedDay=this.dayView.dayModel},e.prototype.selectDay=function(){this._dateNavigationService.notifySelectedDayChanged(this.dayView.dayModel),this.dateFormControlService.markAsDirty(),this._ifOpenService.open=!1},e}(),sp=function(){function e(e,t,n,r){this._viewManagerService=e,this._dateNavigationService=t,this._localeHelperService=n,this.commonStrings=r}return e.prototype.changeToMonthView=function(){this._viewManagerService.changeToMonthView()},e.prototype.changeToYearView=function(){this._viewManagerService.changeToYearView()},Object.defineProperty(e.prototype,"calendarMonth",{get:function(){return this._localeHelperService.localeMonthsAbbreviated[this._dateNavigationService.displayedCalendar.month]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarYear",{get:function(){return this._dateNavigationService.displayedCalendar.year},enumerable:!0,configurable:!0}),e.prototype.nextMonth=function(){this._dateNavigationService.moveToNextMonth()},e.prototype.previousMonth=function(){this._dateNavigationService.moveToPreviousMonth()},e.prototype.currentMonth=function(){this._dateNavigationService.moveToCurrentMonth()},e}(),up=function(){function e(e,t,n,r,i){this._viewManagerService=e,this._localeHelperService=t,this._dateNavigationService=n,this._datepickerFocusService=r,this._elRef=i,this._focusedMonthIndex=this.calendarMonthIndex}return Object.defineProperty(e.prototype,"monthNames",{get:function(){return this._localeHelperService.localeMonthsWide},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarMonthIndex",{get:function(){return this._dateNavigationService.displayedCalendar.month},enumerable:!0,configurable:!0}),e.prototype.changeMonth=function(e){this._dateNavigationService.changeMonth(e),this._viewManagerService.changeToDayView()},e.prototype.getTabIndex=function(e){return e===this._focusedMonthIndex?0:-1},e.prototype.onKeyDown=function(e){if(e){var t=e.keyCode;38===t&&this._focusedMonthIndex>0?(e.preventDefault(),this._focusedMonthIndex--,this._datepickerFocusService.focusCell(this._elRef)):40===t&&this._focusedMonthIndex<11?(e.preventDefault(),this._focusedMonthIndex++,this._datepickerFocusService.focusCell(this._elRef)):39===t&&this._focusedMonthIndex<6?(e.preventDefault(),this._focusedMonthIndex=this._focusedMonthIndex+6,this._datepickerFocusService.focusCell(this._elRef)):37===t&&this._focusedMonthIndex>5&&(e.preventDefault(),this._focusedMonthIndex=this._focusedMonthIndex-6,this._datepickerFocusService.focusCell(this._elRef))}},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e}(),cp=function(){function e(e){this.year=e,this.yearRange=[],this.generateYearRange()}return Object.defineProperty(e.prototype,"middleYear",{get:function(){return this.yearRange[Math.floor(this.yearRange.length/2)]},enumerable:!0,configurable:!0}),e.prototype.generateYearRange=function(){var e=this.year-this.year%10;this.yearRange=this.generateRange(e,e+10)},e.prototype.generateRange=function(e,t){return Array.from({length:t-e},function(t,n){return n+e})},e.prototype.nextDecade=function(){return new e(this.year+10)},e.prototype.previousDecade=function(){return new e(this.year-10)},e.prototype.currentDecade=function(){return new e((new Date).getFullYear())},e.prototype.inRange=function(e){return this.yearRange.indexOf(e)>-1},e}(),pp=function(){function e(e,t,n,r,i){this._dateNavigationService=e,this._viewManagerService=t,this._datepickerFocusService=n,this._elRef=r,this.commonStrings=i,this.yearRangeModel=new cp(this.calendarYear),this._focusedYear=this.calendarYear}return Object.defineProperty(e.prototype,"calendarYear",{get:function(){return this._dateNavigationService.displayedCalendar.year},enumerable:!0,configurable:!0}),e.prototype.incrementFocusYearBy=function(e){this._focusedYear=this._focusedYear+e,this.yearRangeModel.inRange(this._focusedYear)||(this.yearRangeModel=e>0?this.yearRangeModel.nextDecade():this.yearRangeModel.previousDecade()),this._datepickerFocusService.focusCell(this._elRef)},e.prototype.changeYear=function(e){this._dateNavigationService.changeYear(e),this._viewManagerService.changeToDayView()},e.prototype.previousDecade=function(){this.yearRangeModel=this.yearRangeModel.previousDecade()},e.prototype.currentDecade=function(){this.yearRangeModel.inRange(this._dateNavigationService.today.year)||(this.yearRangeModel=this.yearRangeModel.currentDecade()),this._datepickerFocusService.focusCell(this._elRef)},e.prototype.nextDecade=function(){this.yearRangeModel=this.yearRangeModel.nextDecade()},e.prototype.getTabIndex=function(e){return this.yearRangeModel.inRange(this._focusedYear)||(this._focusedYear=this.yearRangeModel.inRange(this.calendarYear)?this.calendarYear:this.yearRangeModel.middleYear),this._focusedYear===e?0:-1},e.prototype.onKeyDown=function(e){if(e){var t=e.keyCode;38===t?(e.preventDefault(),this.incrementFocusYearBy(-1)):40===t?(e.preventDefault(),this.incrementFocusYearBy(1)):39===t?(e.preventDefault(),this.incrementFocusYearBy(5)):37===t&&(e.preventDefault(),this.incrementFocusYearBy(-5))}},e.prototype.ngAfterViewInit=function(){this._datepickerFocusService.focusCell(this._elRef)},e}(),dp=function(){return function(){}}(),hp=function(){function e(e,t,n,r){var i=this;this.ifErrorService=e,this.layoutService=t,this.controlClassService=n,this.ngControlService=r,this.subscriptions=[],this.invalid=!1,this._dynamic=!1,this.subscriptions.push(this.ifErrorService.statusChanges.subscribe(function(e){i.invalid=e.invalid})),this.subscriptions.push(this.ngControlService.controlChanges.subscribe(function(e){i.control=e}))}return e.prototype.controlClass=function(){return this.controlClassService.controlClass(this.invalid,this.addGrid())},e.prototype.addGrid=function(){return!(!this.layoutService||this.layoutService.isVertical())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.map(function(e){return e.unsubscribe()})},e}(),fp=function(){return function(){}}(),gp=new i.InjectionToken(void 0);function vp(){return new Ku.a(!1)}var mp=function(){function e(e,t,n,r,i,o,a){var l=this;this.ifErrorService=e,this.layoutService=t,this.controlClassService=n,this.focusService=r,this.ngControlService=i,this.toggleService=o,this.commonStrings=a,this.subscriptions=[],this.invalid=!1,this._dynamic=!1,this.show=!1,this.focus=!1,this._toggle=!0,this.subscriptions.push(this.ifErrorService.statusChanges.subscribe(function(e){l.invalid=e.invalid})),this.subscriptions.push(this.focusService.focusChange.subscribe(function(e){l.focus=e})),this.subscriptions.push(this.ngControlService.controlChanges.subscribe(function(e){l.control=e}))}return Object.defineProperty(e.prototype,"clrToggle",{get:function(){return this._toggle},set:function(e){this._toggle=e,e||(this.show=!1)},enumerable:!0,configurable:!0}),e.prototype.toggle=function(){this.show=!this.show,this.toggleService.next(this.show)},e.prototype.controlClass=function(){return this.controlClassService.controlClass(this.invalid,this.addGrid())},e.prototype.addGrid=function(){return!(!this.layoutService||this.layoutService.isVertical())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.map(function(e){return e.unsubscribe()})},e}(),yp=function(){return function(){}}(),bp=function(){return function(e){this.controlClassService=e,this._dynamic=!1,this.hasContainer=!1,e&&(this.hasContainer=!0)}}(),Cp=function(){return function(){}}(),wp=function(){function e(e,t,n,r){var i=this;this.ifErrorService=e,this.layoutService=t,this.controlClassService=n,this.ngControlService=r,this.subscriptions=[],this.invalid=!1,this._dynamic=!1,this.multi=!1,this.subscriptions.push(this.ifErrorService.statusChanges.subscribe(function(e){i.invalid=e.invalid})),this.subscriptions.push(this.ngControlService.controlChanges.subscribe(function(e){i.multi=e.valueAccessor instanceof sl.SelectMultipleControlValueAccessor,i.control=e}))}return e.prototype.wrapperClass=function(){return this.multi?"clr-multiselect-wrapper":"clr-select-wrapper"},e.prototype.controlClass=function(){return this.controlClassService.controlClass(this.invalid,this.addGrid())},e.prototype.addGrid=function(){return!(!this.layoutService||this.layoutService.isVertical())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.map(function(e){return e.unsubscribe()})},e}(),_p=function(){return function(){}}(),Ep=function(){function e(e,t,n,r){var i=this;this.ifErrorService=e,this.layoutService=t,this.controlClassService=n,this.ngControlService=r,this.subscriptions=[],this.invalid=!1,this._dynamic=!1,this.subscriptions.push(this.ifErrorService.statusChanges.subscribe(function(e){i.invalid=e.invalid})),this.subscriptions.push(this.ngControlService.controlChanges.subscribe(function(e){i.control=e}))}return e.prototype.controlClass=function(){return this.controlClassService.controlClass(this.invalid,this.addGrid())},e.prototype.addGrid=function(){return!(!this.layoutService||this.layoutService.isVertical())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.map(function(e){return e.unsubscribe()})},e}(),Ap=function(){return function(){}}(),Sp=function(){return function(){}}(),Dp=function(){return function(){}}(),Tp=function(){return function(){}}(),xp=function(){return function(){}}(),Op=function(){function e(e,t,n){this._filters=e,this._sort=t,this._page=n,this.loading=!1,this.trackBy=function(e,t){return t},this._smart=!1,this._displayed=[],this._change=new Sl.a,this._allChanges=new Sl.a}return e.prototype.destroy=function(){this._filtersSub&&this._filtersSub.unsubscribe(),this._sortSub&&this._sortSub.unsubscribe(),this._pageSub&&this._pageSub.unsubscribe()},Object.defineProperty(e.prototype,"smart",{get:function(){return this._smart},enumerable:!0,configurable:!0}),e.prototype.smartenUp=function(){var e=this;this._smart=!0,this._filtersSub=this._filters.change.subscribe(function(){return e._filterItems()}),this._sortSub=this._sort.change.subscribe(function(){e._sort.comparator?e._sortItems():e._filterItems()}),this._pageSub=this._page.change.subscribe(function(){return e._changePage()})},Object.defineProperty(e.prototype,"all",{get:function(){return this._all},set:function(e){this._all=e,this.emitAllChanges(e),this.smart?this._filterItems():(this._displayed=e,this.emitChange())},enumerable:!0,configurable:!0}),e.prototype.refresh=function(){this.smart&&this._filterItems()},Object.defineProperty(e.prototype,"displayed",{get:function(){return this._displayed},enumerable:!0,configurable:!0}),e.prototype.emitChange=function(){this._change.next(this.displayed)},Object.defineProperty(e.prototype,"change",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitAllChanges=function(e){this._allChanges.next(e)},Object.defineProperty(e.prototype,"allChanges",{get:function(){return this._allChanges.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uninitialized",{get:function(){return!this._all},enumerable:!0,configurable:!0}),e.prototype._filterItems=function(){var e=this;this.uninitialized||(this._filtered=this._filters.hasActiveFilters()?this._all.filter(function(t){return e._filters.accepts(t)}):this._all.slice(),this._page.totalItems=this._filtered.length,this._sortItems())},e.prototype._sortItems=function(){var e=this;this.uninitialized||(this._sort.comparator&&this._filtered.sort(function(t,n){return e._sort.compare(t,n)}),this._changePage())},e.prototype._changePage=function(){this.uninitialized||(this._displayed=this._page.size>0?this._filtered.slice(this._page.firstItem,this._page.lastItem+1):this._filtered,this.emitChange())},e}(),Lp=new i.InjectionToken("POPOVER_HOST_ANCHOR"),Mp=function(){function e(e){this._items=e}return Object.defineProperty(e.prototype,"trackBy",{set:function(e){this._items&&(this._items.trackBy=e)},enumerable:!0,configurable:!0}),e}(),Ip=function(){return function(){}}(),Vp=function(){function e(e,t){this.parent=e,this.commonStrings=t,this.expanded=!1,this.expandedChange=new i.EventEmitter(!1),this.expandable=!1,this.focused=!1,this._changedChildren=0,this._fullyInitialized=!1,this._changed=!1,e&&e.addChild()}return Object.defineProperty(e.prototype,"getChangedValue",{get:function(){return this._changed||this._changedChildren>0&&!this.expanded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"setChangedValue",{set:function(e){this._changed=e,this.parent&&this._fullyInitialized&&(e?this.parent._changedChildren++:this.parent._changedChildren--)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._fullyInitialized=!0},e.prototype.addChild=function(){this.expandable=!0},e.prototype.toggleExpand=function(){this.expandable&&(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded))},Object.defineProperty(e.prototype,"caretDirection",{get:function(){return this.expanded?"down":"right"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"caretTitle",{get:function(){return this.expanded?this.commonStrings.collapse:this.commonStrings.expand},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.expandable?"button":null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.expandable?"0":null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onStackLabelFocus",{get:function(){return this.expandable&&!this.expanded&&this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.expandable?this.expanded?"true":"false":null},enumerable:!0,configurable:!0}),e}(),kp=function(){function e(){this.editable=!1,this.save=new i.EventEmitter(!1),this._editMode=!1,this.editingChange=new i.EventEmitter(!1)}return Object.defineProperty(e.prototype,"editing",{get:function(){return this.editable&&this._editMode},set:function(e){this.editable&&(this._editMode=e,this.editingChange.emit(e),e||this.save.emit(null))},enumerable:!0,configurable:!0}),e}(),Np=function(){return function(){}}(),Fp=function(){return function(){}}(),Hp=function(){return function(){}}(),jp=function(){return function(){}}(),Rp=0,Pp=new i.InjectionToken("UNIQUE_ID");function Zp(){return"clr-id-"+Rp++}var Bp=function(){return function(){}}(),Up=function(){return function(){}}(),Gp=function(){var e={DRAG_START:0,DRAG_MOVE:1,DRAG_END:2,DRAG_ENTER:3,DRAG_LEAVE:4,DROP:5};return e[e.DRAG_START]="DRAG_START",e[e.DRAG_MOVE]="DRAG_MOVE",e[e.DRAG_END]="DRAG_END",e[e.DRAG_ENTER]="DRAG_ENTER",e[e.DRAG_LEAVE]="DRAG_LEAVE",e[e.DROP]="DROP",e}(),qp=function(){function e(e,t,n){this.ngZone=e,this.renderer=t,this.eventBus=n,this.dragStart=new Sl.a,this.dragMove=new Sl.a,this.dragEnd=new Sl.a,this.hasDragStarted=!1}return Object.defineProperty(e.prototype,"dragStarted",{get:function(){return this.dragStart.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragMoved",{get:function(){return this.dragMove.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragEnded",{get:function(){return this.dragEnd.asObservable()},enumerable:!0,configurable:!0}),e.prototype.attachDragListeners=function(e){this.draggableEl=e,this.listeners=[this.customDragEvent(this.draggableEl,"mousedown","mousemove","mouseup"),this.customDragEvent(this.draggableEl,"touchstart","touchmove","touchend")]},e.prototype.detachDragListeners=function(){this.listeners&&this.listeners.map(function(e){return e()}),this.nestedListeners&&this.nestedListeners.map(function(e){return e()})},e.prototype.customDragEvent=function(e,t,n,r){var i=this;return this.renderer.listen(e,t,function(){i.nestedListeners=[],i.nestedListeners.push(i.renderer.listen("document","selectstart",function(e){e.preventDefault(),e.stopImmediatePropagation()})),i.nestedListeners.push(i.ngZone.runOutsideAngular(function(){return i.renderer.listen("document",n,function(e){e.stopImmediatePropagation(),i.hasDragStarted?i.broadcast(e,Gp.DRAG_MOVE):(i.hasDragStarted=!0,i.broadcast(e,Gp.DRAG_START))})})),i.nestedListeners.push(i.renderer.listen("document",r,function(e){i.hasDragStarted&&(i.hasDragStarted=!1,i.broadcast(e,Gp.DRAG_END)),i.nestedListeners&&i.nestedListeners.map(function(e){return e()})}))})},e.prototype.broadcast=function(e,t){var n=this.generateDragEvent(e,t);switch(n.type){case Gp.DRAG_START:this.dragStart.next(n);break;case Gp.DRAG_MOVE:this.dragMove.next(n);break;case Gp.DRAG_END:this.dragEnd.next(n)}n.ghostElement=this.ghostElement,n.dropPointPosition=this.dropPointPosition,this.eventBus.broadcast(n)},e.prototype.generateDragEvent=function(e,t){var n;return{type:t,dragPosition:{pageX:(n=e.hasOwnProperty("changedTouches")?e.changedTouches[0]:e).pageX,pageY:n.pageY},group:this.group,dragDataTransfer:this.dragDataTransfer,ghostElement:this.ghostElement}},e}(),zp=function(){function e(e){this.domAdapter=e}return e.prototype.capture=function(e,t){this.draggableElClientRect=this.domAdapter.clientRect(e),this.snapshotDragEvent=t},e.prototype.discard=function(){delete this.draggableElClientRect,delete this.snapshotDragEvent},Object.defineProperty(e.prototype,"hasDraggableState",{get:function(){return!!this.snapshotDragEvent&&!!this.draggableElClientRect},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clientRect",{get:function(){return this.draggableElClientRect},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragEvent",{get:function(){return this.snapshotDragEvent},enumerable:!0,configurable:!0}),e}(),Wp=function(){function e(e,t,n,r,i){var o=this;if(this.el=e,this.dragEventListener=t,this.draggableSnapshot=n,this.renderer=r,this.ngZone=i,this.subscriptions=[],this.leaveAnimConfig={value:0,params:{top:"0px",left:"0px"}},!this.dragEventListener||!this.draggableSnapshot)throw new Error("The clr-draggable-ghost component can only be used inside of a clrDraggable directive.");this.draggableGhostEl=this.el.nativeElement,this.renderer.addClass(this.draggableGhostEl,"draggable-ghost"),this.dragEventListener.ghostElement=this.draggableGhostEl,this.setDefaultGhostSize(this.draggableGhostEl);var a={top:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageY-this.draggableSnapshot.clientRect.top:0,left:this.draggableSnapshot.hasDraggableState?this.draggableSnapshot.dragEvent.dragPosition.pageX-this.draggableSnapshot.clientRect.left:0},l=!1;this.subscriptions.push(this.dragEventListener.dragMoved.subscribe(function(e){l||(o.draggableSnapshot.hasDraggableState?o.animateToOnLeave(o.draggableSnapshot.clientRect.top+"px",o.draggableSnapshot.clientRect.left+"px"):o.animateToOnLeave(e.dragPosition.pageY+"px",e.dragPosition.pageX+"px"),l=!0);var t=o.findTopLeftPosition(e.dragPosition,a);o.setPositionStyle(o.draggableGhostEl,t.pageX,t.pageY),o.dragEventListener.dropPointPosition=o.findDropPointPosition(t)}))}return e.prototype.setDefaultGhostSize=function(e){this.draggableSnapshot.hasDraggableState&&this.setSizeStyle(e,this.draggableSnapshot.clientRect.width,this.draggableSnapshot.clientRect.height)},e.prototype.animateToOnLeave=function(e,t){var n=this;this.ngZone.run(function(){n.leaveAnimConfig={value:0,params:{top:e,left:t}}})},e.prototype.findTopLeftPosition=function(e,t){return{pageX:e.pageX-t.left,pageY:e.pageY-t.top}},e.prototype.findDropPointPosition=function(e){return this.draggableSnapshot.hasDraggableState?{pageX:e.pageX+this.draggableSnapshot.clientRect.width/2,pageY:e.pageY+this.draggableSnapshot.clientRect.height/2}:e},e.prototype.setSizeStyle=function(e,t,n){this.renderer.setStyle(e,"width",t+"px"),this.renderer.setStyle(e,"height",n+"px")},e.prototype.setPositionStyle=function(e,t,n){this.renderer.setStyle(e,"left",t+"px"),this.renderer.setStyle(e,"top",n+"px"),this.renderer.setStyle(e,"visibility","visible")},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()})},e}(),Kp=function(){return function(){}}(),Qp=function(){function e(){this._changes=new Sl.a}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!0,configurable:!0}),e.prototype.closeMenus=function(){this._changes.next(!1)},e}();function $p(e){return e||new Qp}new i.Optional,new i.SkipSelf;var Yp=function(){function e(e,t,n,r){var i=this;this.parent=e,this.ifOpenService=t,this.cdr=n,this.subscriptions=[],this.isMenuClosable=!0,this.subscriptions.push(r.changes.subscribe(function(e){return i.ifOpenService.open=e})),this.subscriptions.push(t.openChange.subscribe(function(e){return i.cdr.markForCheck()}))}return e.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()})},e}(),Xp=function(){function e(e,t,n,r){this.dropdown=e,this.el=t,this._dropdownService=n,this.renderer=r}return e.prototype.ngAfterViewInit=function(){var e=this;this.renderer.listen(this.el.nativeElement,"click",function(){return e.onDropdownItemClick()})},e.prototype.onDropdownItemClick=function(){this.dropdown.isMenuClosable&&!this.el.nativeElement.classList.contains("disabled")&&this._dropdownService.closeMenus()},e}(),Jp=function(e){function t(t,n,r){var i=this;if(!n)throw new Error("clr-dropdown-menu should only be used inside of a clr-dropdown");return i=e.call(this,t,n)||this,r?(i.anchorPoint=ac.RIGHT_TOP,i.popoverPoint=ac.LEFT_TOP):(i.anchorPoint=ac.BOTTOM_LEFT,i.popoverPoint=ac.LEFT_TOP),i.popoverOptions.allowMultipleOpen=!0,i.closeOnOutsideClick=!0,i}return Object(gi.c)(t,e),Object.defineProperty(t.prototype,"position",{set:function(e){switch(e){case"top-right":this.anchorPoint=ac.TOP_RIGHT,this.popoverPoint=ac.RIGHT_BOTTOM;break;case"top-left":this.anchorPoint=ac.TOP_LEFT,this.popoverPoint=ac.LEFT_BOTTOM;break;case"bottom-right":this.anchorPoint=ac.BOTTOM_RIGHT,this.popoverPoint=ac.RIGHT_TOP;break;case"bottom-left":this.anchorPoint=ac.BOTTOM_LEFT,this.popoverPoint=ac.LEFT_TOP;break;case"right-top":this.anchorPoint=ac.RIGHT_TOP,this.popoverPoint=ac.LEFT_TOP;break;case"right-bottom":this.anchorPoint=ac.RIGHT_BOTTOM,this.popoverPoint=ac.LEFT_BOTTOM;break;case"left-top":this.anchorPoint=ac.LEFT_TOP,this.popoverPoint=ac.RIGHT_TOP;break;case"left-bottom":this.anchorPoint=ac.LEFT_BOTTOM,this.popoverPoint=ac.RIGHT_BOTTOM;break;default:this.anchorPoint=ac.BOTTOM_LEFT,this.popoverPoint=ac.LEFT_TOP}},enumerable:!0,configurable:!0}),t}(ip),ed=function(){function e(e,t){this.ifOpenService=t,this.isRootLevelToggle=!0,e.parent&&(this.isRootLevelToggle=!1)}return Object.defineProperty(e.prototype,"active",{get:function(){return this.ifOpenService.open},enumerable:!0,configurable:!0}),e.prototype.onDropdownTriggerClick=function(e){this.ifOpenService.toggleWithEvent(e)},e}(),td=function(){return function(){}}(),nd=["alert-info","alert-warning","alert-danger","alert-success","info","warning","danger","success"],rd=function(){function e(e){this.commonStrings=e,this.defaultIconShape="info-circle",this._alertIconShape="",this._alertType="info"}return Object.defineProperty(e.prototype,"alertType",{get:function(){return this._alertType},set:function(e){nd.indexOf(e)>-1&&(this._alertType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alertIconShape",{get:function(){return""===this._alertIconShape?this.iconInfoFromType(this._alertType).shape:this._alertIconShape},set:function(e){e?e!==this._alertIconShape&&(this._alertIconShape=e):this._alertIconShape=""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alertIconTitle",{get:function(){return this.iconInfoFromType(this._alertType).title},enumerable:!0,configurable:!0}),e.prototype.iconInfoFromType=function(e,t){void 0===t&&(t="shape");var n={shape:"",cssClass:"",title:""};switch(e){case"warning":case"alert-warning":n.shape="exclamation-triangle",n.cssClass="alert-warning",n.title=this.commonStrings.warning;break;case"danger":case"alert-danger":n.shape="exclamation-circle",n.cssClass="alert-danger",n.title=this.commonStrings.danger;break;case"success":case"alert-success":n.shape="check-circle",n.cssClass="alert-success",n.title=this.commonStrings.success;break;default:n.shape=this.defaultIconShape,n.cssClass="alert-info",n.title=this.commonStrings.info}return n},e}(),id=function(){function e(){this.allAlerts=new i.QueryList,this._current=0,this._change=new Sl.a}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){e!==this._current&&(this._current=e,this._change.next(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeAlerts",{get:function(){return this.allAlerts.filter(function(e){return!e._closed})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentAlert",{get:function(){return this.activeAlerts[this.current]},set:function(e){this.current=this.activeAlerts.indexOf(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.activeAlerts.length},enumerable:!0,configurable:!0}),e.prototype.manage=function(e){this.allAlerts=e},e.prototype.next=function(){this.current=this.current===this.activeAlerts.length-1?0:this.current+1},e.prototype.previous=function(){0!==this.activeAlerts.length&&(this.current=0===this.current?this.activeAlerts.length-1:this.current-1)},e.prototype.close=function(){this.previous()},e}(),od=function(){function e(e,t,n,r){this.iconService=e,this.cdr=t,this.multiAlertService=n,this.commonStrings=r,this.isSmall=!1,this.closable=!0,this.isAppLevel=!1,this._closed=!1,this._closedChanged=new i.EventEmitter(!1),this.previouslyHidden=!1,this.hidden=!1}return Object.defineProperty(e.prototype,"alertType",{get:function(){return this.iconService.alertType},set:function(e){this.iconService.alertType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alertIconShape",{set:function(e){this.iconService.alertIconShape=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alertClass",{get:function(){return this.iconService.iconInfoFromType(this.iconService.alertType).cssClass},enumerable:!0,configurable:!0}),e.prototype.detectChangesIfNeeded=function(){this.previouslyHidden!==this.hidden&&(this.previouslyHidden=this.hidden,this.cdr.detectChanges())},Object.defineProperty(e.prototype,"isHidden",{get:function(){return this.multiAlertService&&(this.multiAlertService.currentAlert===this?!0===this.hidden&&(this.previouslyHidden=!0,this.hidden=!1):!1===this.hidden&&(this.previouslyHidden=!1,this.hidden=!0),this.detectChangesIfNeeded()),this.hidden},enumerable:!0,configurable:!0}),e.prototype.close=function(){this.closable&&(this._closed=!0,this.multiAlertService&&this.multiAlertService.close(),this._closedChanged.emit(!0))},e.prototype.open=function(){this._closed=!1,this._closedChanged.emit(!1)},e}(),ad=function(){return function(e){this.iconService=e}}(),ld=function(){return function(){}}(),sd=function(){return function(){}}(),ud=function(){return function(){}}(),cd=function(){return function(){}}(),pd=function(){return function(){}}(),dd=function(){return function(){}}();new i.InjectionToken("TABS_ID");var hd=function(){return function(){}}(),fd=function(){return function(){}}(),gd=function(){return function(){}}(),vd=function(){function e(e){this._document=e}return e.prototype.stopScrolling=function(){this._document.body.classList.add("no-scrolling")},e.prototype.resumeScrolling=function(){this._document.body.classList.contains("no-scrolling")&&this._document.body.classList.remove("no-scrolling")},e}(),md=function(){function e(e,t,n){this._scrollingService=e,this.commonStrings=t,this.modalId=n,this._open=!1,this._openChanged=new i.EventEmitter(!1),this.closable=!0,this.staticBackdrop=!1,this.skipAnimation="false",this.bypassScrollService=!1,this.stopClose=!1,this.altClose=new i.EventEmitter(!1)}return Object.defineProperty(e.prototype,"sizeClass",{get:function(){return this.size?"modal-"+this.size:""},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){!this.bypassScrollService&&e&&e.hasOwnProperty("_open")&&(e._open.currentValue?this._scrollingService.stopScrolling():this._scrollingService.resumeScrolling())},e.prototype.ngOnDestroy=function(){this._scrollingService.resumeScrolling()},e.prototype.open=function(){!0!==this._open&&(this._open=!0,this._openChanged.emit(!0))},e.prototype.close=function(){this.stopClose?this.altClose.emit(!1):this.closable&&!1!==this._open&&(this._open=!1,this._openChanged.emit(!1),this.focusTrap.setPreviousFocus())},e.prototype.fadeDone=function(e){"void"===e.toState&&this._openChanged.emit(!1)},e}(),yd=function(){return function(){}}(),bd=function(){return function(){}}(),Cd=function(){return function(){}}(),wd=function(){return function(){}}(),_d=function(){return function(){}}(),Ed=function(){return function(){}}(),Ad=i["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] { display: block; }"],data:{}});function Sd(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"dl",[["class","stack-view"]],null,null,null,null,null)),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}var Dd=i["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] { display: block; }"],data:{animation:[{type:7,name:"collapse",definitions:[{type:0,name:"true",styles:{type:6,styles:{height:0,display:"none"},offset:null},options:void 0},{type:1,expr:"true => false",animation:[{type:4,styles:{type:6,styles:{height:"*",display:"*"},offset:null},timings:"0.2s ease-in-out"}],options:null},{type:1,expr:"false => true",animation:[{type:6,styles:{height:"*",display:"*"},offset:null},{type:4,styles:null,timings:"0.2s ease-in-out"}],options:null}],options:{}}]}});function Td(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-icon",[["class","stack-block-caret"],["shape","caret"]],[[1,"dir",0],[1,"title",0]],null,null,null,null)),i["\u0275did"](1,16384,null,0,ic,[],null,null)],null,function(e,t){var n=t.component;e(t,0,0,n.caretDirection,n.caretTitle)})}function xd(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,6,"dt",[["class","stack-block-label"]],[[1,"role",0],[1,"tabindex",0],[1,"aria-expanded",0]],[[null,"click"],[null,"keyup.enter"],[null,"keyup.space"],[null,"focus"],[null,"blur"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.toggleExpand()&&r),"keyup.enter"===t&&(r=!1!==i.toggleExpand()&&r),"keyup.space"===t&&(r=!1!==i.toggleExpand()&&r),"focus"===t&&(r=0!=(i.focused=!0)&&r),"blur"===t&&(r=0!=(i.focused=!1)&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Td)),i["\u0275did"](4,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,3,"dd",[["class","stack-block-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,3,"div",[["class","stack-children"]],[[24,"@collapse",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,2),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,4,0,t.component.expandable)},function(e,t){var n=t.component;e(t,1,0,n.role,n.tabIndex,n.ariaExpanded),e(t,15,0,""+!n.expanded)})}var Od=i["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] { display: block; }"],data:{}});function Ld(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"button",[["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"clr-icon",[["shape","close"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](3,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.commonStrings.close)})}function Md(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,10,"div",[["aria-live","assertive"],["class","alert"],["role","alert"]],[[2,"alert-hidden",null],[2,"alert-sm",null],[2,"alert-app-level",null]],null,null,null,null)),i["\u0275did"](1,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,3,"div",[["class","alert-items"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ld)),i["\u0275did"](9,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,"alert",n.alertClass),e(t,9,0,n.closable)},function(e,t){var n=t.component;e(t,0,0,n.isHidden,n.isSmall,n.isAppLevel)})}function Id(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Md)),i["\u0275did"](2,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,2,0,!t.component._closed)},null)}var Vd=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function kd(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,4,"div",[["class","alert-icon-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"clr-icon",[["class","alert-icon"]],[[1,"shape",0],[1,"title",0]],null,null,null,null)),i["\u0275did"](4,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,3,0,n.iconService.alertIconShape,n.iconService.alertIconTitle)})}var Nd=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Fd(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"label",[],[[1,"for",0]],null,null,null,null)),i["\u0275did"](1,212992,null,0,_c,[[2,bc],[2,wc],i.Renderer2,i.ElementRef],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).forAttr)})}function Hd(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Fd)),i["\u0275did"](7,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,7,0,t.component._dynamic)},null)}function jd(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"clr-checkbox-container",[],[[2,"checkbox",null]],null,null,Hd,Nd)),i["\u0275prd"](4608,null,bc,bc,[]),i["\u0275did"](2,49152,null,0,Sc,[],null,null)],null,function(e,t){e(t,0,0,!0)})}var Rd=i["\u0275ccf"]("clr-checkbox-container",Sc,jd,{},{},["[clrCheckbox]","*"]),Pd=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Zd(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,null,null,null,null,null,null,null))],null,null)}function Bd(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"button",[["class","datepicker-trigger"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleDatepicker(n)&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"clr-icon",[["class","datepicker-trigger-icon"],["shape","calendar"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](3,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.commonStrings.open)})}function Ud(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"clr-datepicker-view-manager",[["clrFocusTrap",""]],[[2,"datepicker",null],[2,"is-off-screen",null]],[["document","focusin"]],function(e,t,n){var r=!0;return"document:focusin"===t&&(r=!1!==i["\u0275nov"](e,2).onFocusIn(n)&&r),r},ah,nh)),i["\u0275prd"](4608,null,Qc,Qc,[i.NgZone,i.PLATFORM_ID]),i["\u0275did"](2,4341760,null,0,Mc,[i.ElementRef,i.Injector,Lc,i.Renderer2,i.PLATFORM_ID],null,null),i["\u0275prd"](512,null,op,op,[]),i["\u0275did"](4,8568832,null,0,ap,[[1,i.ElementRef],i.Injector,op],null,null)],null,function(e,t){e(t,0,0,!0,i["\u0275nov"](t,4).isOffScreen)})}function Gd(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Zd)),i["\u0275did"](4,540672,null,0,ul.NgTemplateOutlet,[i.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Bd)),i["\u0275did"](7,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ud)),i["\u0275did"](10,147456,null,0,xc,[Tc,i.TemplateRef,i.ViewContainerRef],{open:[0,"open"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,i["\u0275nov"](t.parent,5)),e(t,7,0,n.isEnabled),e(t,10,0,null)},null)}function qd(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,null,null,null,null,null,null,null))],null,null)}function zd(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"button",[["class","datepicker-trigger"],["type","button"]],[[1,"title",0],[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleDatepicker(n)&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"clr-icon",[["class","clr-input-group-icon-action"],["shape","calendar"]],null,null,null,null,null)),i["\u0275did"](3,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,0,0,n.commonStrings.open,null==n.control?null:n.control.disabled)})}function Wd(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"clr-datepicker-view-manager",[["clrFocusTrap",""]],[[2,"datepicker",null],[2,"is-off-screen",null]],[["document","focusin"]],function(e,t,n){var r=!0;return"document:focusin"===t&&(r=!1!==i["\u0275nov"](e,2).onFocusIn(n)&&r),r},ah,nh)),i["\u0275prd"](4608,null,Qc,Qc,[i.NgZone,i.PLATFORM_ID]),i["\u0275did"](2,4341760,null,0,Mc,[i.ElementRef,i.Injector,Lc,i.Renderer2,i.PLATFORM_ID],null,null),i["\u0275prd"](512,null,op,op,[]),i["\u0275did"](4,8568832,null,0,ap,[[1,i.ElementRef],i.Injector,op],null,null)],null,function(e,t){e(t,0,0,!0,i["\u0275nov"](t,4).isOffScreen)})}function Kd(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,2),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function Qd(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,3),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function $d(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,26,"div",[["class","clr-control-container"]],null,null,null,null,null)),i["\u0275did"](4,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,16,"div",[["class","clr-input-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,10,"div",[["class","clr-input-group"]],[[2,"clr-focus",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,qd)),i["\u0275did"](11,540672,null,0,ul.NgTemplateOutlet,[i.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,zd)),i["\u0275did"](14,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Wd)),i["\u0275did"](17,147456,null,0,xc,[Tc,i.TemplateRef,i.ViewContainerRef],{open:[0,"open"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,1,"clr-icon",[["class","clr-validate-icon"],["shape","exclamation-circle"]],null,null,null,null,null)),i["\u0275did"](21,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Kd)),i["\u0275did"](25,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Qd)),i["\u0275did"](28,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,"clr-control-container",n.controlClass()),e(t,11,0,i["\u0275nov"](t.parent,5)),e(t,14,0,n.isEnabled),e(t,17,0,null),e(t,25,0,!n.invalid),e(t,28,0,n.invalid)},function(e,t){e(t,8,0,t.component.focus)})}function Yd(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,4),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Xd(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,null,null,null,null,null,null,null))],null,null)}function Jd(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,[["oldLayout",2]],null,0,null,Gd)),(e()(),i["\u0275ted"](-1,null,["\n \n "])),(e()(),i["\u0275and"](0,[["newLayout",2]],null,0,null,$d)),(e()(),i["\u0275ted"](-1,null,["\n \n "])),(e()(),i["\u0275and"](0,[["clrDate",2]],null,0,null,Yd)),(e()(),i["\u0275ted"](-1,null,["\n \n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Xd)),i["\u0275did"](8,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"],ngIfThen:[1,"ngIfThen"],ngIfElse:[2,"ngIfElse"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,8,0,t.component.newFormsLayout,i["\u0275nov"](t,3),i["\u0275nov"](t,1))},null)}function eh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,12,"clr-date-container",[],[[2,"date-container",null],[2,"clr-form-control-disabled",null],[2,"clr-form-control",null]],null,null,Jd,Pd)),i["\u0275prd"](4608,null,bc,bc,[]),i["\u0275prd"](4608,null,$c,$c,[i.LOCALE_ID]),i["\u0275prd"](4608,null,tp,tp,[$c]),i["\u0275prd"](512,null,Tc,Tc,[]),i["\u0275prd"](512,null,Kc,Kc,[]),i["\u0275prd"](512,null,np,np,[ul.DOCUMENT]),i["\u0275prd"](512,null,ep,ep,[]),i["\u0275prd"](512,null,vc,vc,[]),i["\u0275prd"](131584,null,mc,mc,[vc]),i["\u0275prd"](512,null,Jc,Jc,[]),i["\u0275prd"](512,null,Xc,Xc,[]),i["\u0275did"](12,245760,null,0,rp,[Tc,Kc,np,ep,cc,mc,Jc,Xc,[2,wc],[2,Ec],vc],null,null)],function(e,t){e(t,12,0)},function(e,t){e(t,0,0,!i["\u0275nov"](t,12).newFormsLayout,null==i["\u0275nov"](t,12).control?null:i["\u0275nov"](t,12).control.disabled,i["\u0275nov"](t,12).newFormsLayout)})}var th=i["\u0275ccf"]("clr-date-container",rp,eh,{},{},["*","label","clr-control-helper","clr-control-error","[clrDate]"]),nh=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function rh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-monthpicker",[],[[2,"monthpicker",null]],[[null,"keydown"]],function(e,t,n){var r=!0;return"keydown"===t&&(r=!1!==i["\u0275nov"](e,1).onKeyDown(n)&&r),r},ph,uh)),i["\u0275did"](1,4243456,null,0,up,[op,$c,Kc,Qc,i.ElementRef],null,null)],null,function(e,t){e(t,0,0,!0)})}function ih(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-yearpicker",[],[[2,"yearpicker",null]],[[null,"keydown"]],function(e,t,n){var r=!0;return"keydown"===t&&(r=!1!==i["\u0275nov"](e,1).onKeyDown(n)&&r),r},fh,dh)),i["\u0275did"](1,4243456,null,0,pp,[Kc,op,Qc,i.ElementRef,cc],null,null)],null,function(e,t){e(t,0,0,!0)})}function oh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-daypicker",[],[[2,"daypicker",null]],null,null,sh,lh)),i["\u0275did"](1,49152,null,0,sp,[op,Kc,$c,cc],null,null)],null,function(e,t){e(t,0,0,!0)})}function ah(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,rh)),i["\u0275did"](2,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,ih)),i["\u0275did"](5,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,oh)),i["\u0275did"](8,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.isMonthView),e(t,5,0,n.isYearView),e(t,8,0,n.isDayView)},null)}var lh=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function sh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,31,"div",[["class","calendar-header"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,7,"div",[["class","calendar-pickers"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"button",[["class","calendar-btn monthpicker-trigger"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeToMonthView()&&r),r},null,null)),(e()(),i["\u0275ted"](5,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"button",[["class","calendar-btn yearpicker-trigger"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeToYearView()&&r),r},null,null)),(e()(),i["\u0275ted"](8,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,19,"div",[["class","calendar-switchers"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,4,"button",[["class","calendar-btn switcher"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.previousMonth()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,1,"clr-icon",[["dir","left"],["shape","angle"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](16,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,4,"button",[["class","calendar-btn switcher"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.currentMonth()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,1,"clr-icon",[["shape","event"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](22,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,4,"button",[["class","calendar-btn switcher"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.nextMonth()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,1,"clr-icon",[["dir","right"],["shape","angle"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](28,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](33,0,null,null,1,"clr-calendar",[],null,[[null,"keydown"]],function(e,t,n){var r=!0;return"keydown"===t&&(r=!1!==i["\u0275nov"](e,34).onKeyDown(n)&&r),r},bh,gh)),i["\u0275did"](34,4374528,null,0,Yc,[$c,Kc,Qc,i.ElementRef],null,null),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,5,0,n.calendarMonth),e(t,8,0,n.calendarYear),e(t,15,0,n.commonStrings.previous),e(t,21,0,n.commonStrings.current),e(t,27,0,n.commonStrings.next)})}var uh=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ch(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","calendar-btn month"],["type","button"]],[[2,"is-selected",null],[1,"tabindex",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeMonth(e.context.index)&&r),r},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){var n=t.component;e(t,0,0,t.context.index===n.calendarMonthIndex,n.getTabIndex(t.context.index)),e(t,1,0,t.context.$implicit)})}function ph(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ch)),i["\u0275did"](2,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,t.component.monthNames)},null)}var dh=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function hh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","calendar-btn year"],["type","button"]],[[1,"tabindex",0],[2,"is-selected",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeYear(e.context.$implicit)&&r),r},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){var n=t.component;e(t,0,0,n.getTabIndex(t.context.$implicit),t.context.$implicit===n.calendarYear),e(t,1,0,t.context.$implicit)})}function fh(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,19,"div",[["class","year-switchers"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,4,"button",[["class","calendar-btn switcher"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.previousDecade()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"clr-icon",[["dir","left"],["shape","angle"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](6,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,4,"button",[["class","calendar-btn switcher"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.currentDecade()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,"clr-icon",[["shape","event"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](12,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,4,"button",[["class","calendar-btn switcher"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.nextDecade()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,1,"clr-icon",[["dir","right"],["shape","angle"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](18,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,4,"div",[["class","years"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,hh)),i["\u0275did"](25,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,25,0,t.component.yearRangeModel.yearRange)},function(e,t){var n=t.component;e(t,5,0,n.commonStrings.previous),e(t,11,0,n.commonStrings.current),e(t,17,0,n.commonStrings.next)})}var gh=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function vh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"td",[["class","calendar-cell weekday"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function mh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"td",[["class","calendar-cell"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"clr-day",[],[[2,"day",null]],null,null,wh,Ch)),i["\u0275did"](3,49152,null,0,lp,[Kc,Tc,ep],{dayView:[0,"dayView"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.context.$implicit)},function(e,t){e(t,2,0,!0)})}function yh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"tr",[["class","calendar-row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,mh)),i["\u0275did"](3,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.context.$implicit)},null)}function bh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,8,"table",[["class","calendar-table weekdays"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"tbody",[],null,null,null,null,null)),(e()(),i["\u0275eld"](3,0,null,null,4,"tr",[["class","calendar-row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,vh)),i["\u0275did"](6,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](10,0,null,null,5,"table",[["class","calendar-table calendar-dates"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"tbody",[],null,null,null,null,null)),(e()(),i["\u0275and"](16777216,null,null,1,null,yh)),i["\u0275did"](14,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,n.localeDaysNarrow),e(t,14,0,n.calendarViewModel.calendarView)},null)}var Ch=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function wh(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"button",[["class","day-btn"],["type","button"]],[[2,"is-today",null],[2,"is-disabled",null],[2,"is-selected",null],[1,"tabindex",0]],[[null,"click"],[null,"focus"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectDay()&&r),"focus"===t&&(r=!1!==i.onDayViewFocus()&&r),r},null,null)),(e()(),i["\u0275ted"](2,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,1,0,n.dayView.isTodaysDate,n.dayView.isDisabled,n.dayView.isSelected,n.dayView.tabIndex),e(t,2,0,n.dayView.dayModel.date)})}var _h=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Eh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"label",[],[[1,"for",0]],null,null,null,null)),i["\u0275did"](1,212992,null,0,_c,[[2,bc],[2,wc],i.Renderer2,i.ElementRef],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).forAttr)})}function Ah(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-icon",[["aria-hidden","true"],["class","clr-validate-icon"],["shape","exclamation-circle"]],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,ic,[],null,null)],null,null)}function Sh(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,2),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function Dh(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,3),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function Th(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Eh)),i["\u0275did"](4,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,16,"div",[["class","clr-control-container"]],null,null,null,null,null)),i["\u0275did"](7,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,6,"div",[["class","clr-input-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ah)),i["\u0275did"](14,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Sh)),i["\u0275did"](18,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Dh)),i["\u0275did"](21,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,!n.label&&n.addGrid()),e(t,7,0,"clr-control-container",n.controlClass()),e(t,14,0,n.invalid),e(t,18,0,!n.invalid),e(t,21,0,n.invalid)},null)}function xh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"clr-input-container",[],[[2,"clr-form-control",null],[2,"clr-form-control-disabled",null],[2,"clr-row",null]],null,null,Th,_h)),i["\u0275prd"](4608,null,bc,bc,[]),i["\u0275prd"](512,null,vc,vc,[]),i["\u0275prd"](131584,null,mc,mc,[vc]),i["\u0275prd"](512,null,Xc,Xc,[]),i["\u0275did"](5,180224,null,1,hp,[mc,[2,wc],Xc,vc],null,null),i["\u0275qud"](335544320,1,{label:0})],null,function(e,t){e(t,0,0,!0,null==i["\u0275nov"](t,5).control?null:i["\u0275nov"](t,5).control.disabled,i["\u0275nov"](t,5).addGrid())})}var Oh=i["\u0275ccf"]("clr-input-container",hp,xh,{},{},["label","[clrInput]","clr-control-helper","clr-control-error"]),Lh=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Mh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"label",[],[[1,"for",0]],null,null,null,null)),i["\u0275did"](1,212992,null,0,_c,[[2,bc],[2,wc],i.Renderer2,i.ElementRef],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).forAttr)})}function Ih(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-icon",[["class","clr-input-group-icon-action"],["shape","eye"]],[[1,"title",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggle()&&r),r},null,null)),i["\u0275did"](1,16384,null,0,ic,[],null,null)],null,function(e,t){e(t,0,0,t.component.commonStrings.show)})}function Vh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-icon",[["class","clr-input-group-icon-action"],["shape","eye-hide"]],[[1,"title",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggle()&&r),r},null,null)),i["\u0275did"](1,16384,null,0,ic,[],null,null)],null,function(e,t){e(t,0,0,t.component.commonStrings.hide)})}function kh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-icon",[["aria-hidden","true"],["class","clr-validate-icon"],["shape","exclamation-circle"]],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,ic,[],null,null)],null,null)}function Nh(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,2),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function Fh(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,3),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function Hh(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Mh)),i["\u0275did"](4,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,25,"div",[["class","clr-control-container"]],null,null,null,null,null)),i["\u0275did"](7,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,15,"div",[["class","clr-input-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,9,"div",[["class","clr-input-group"]],[[2,"clr-focus",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ih)),i["\u0275did"](16,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Vh)),i["\u0275did"](19,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,kh)),i["\u0275did"](23,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Nh)),i["\u0275did"](27,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Fh)),i["\u0275did"](30,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,!n.label&&n.addGrid()),e(t,7,0,"clr-control-container",n.controlClass()),e(t,16,0,!n.show&&n.clrToggle),e(t,19,0,n.show&&n.clrToggle),e(t,23,0,n.invalid),e(t,27,0,!n.invalid),e(t,30,0,n.invalid)},function(e,t){e(t,11,0,t.component.focus)})}function jh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,8,"clr-password-container",[],[[2,"clr-form-control",null],[2,"clr-form-control-disabled",null],[2,"clr-row",null]],null,null,Hh,Lh)),i["\u0275prd"](4608,null,bc,bc,[]),i["\u0275prd"](512,null,vc,vc,[]),i["\u0275prd"](131584,null,mc,mc,[vc]),i["\u0275prd"](512,null,Xc,Xc,[]),i["\u0275prd"](512,null,Jc,Jc,[]),i["\u0275prd"](1024,null,gp,vp,[]),i["\u0275did"](7,180224,null,1,mp,[mc,[2,wc],Xc,Jc,vc,gp,cc],null,null),i["\u0275qud"](335544320,1,{label:0})],null,function(e,t){e(t,0,0,!0,null==i["\u0275nov"](t,7).control?null:i["\u0275nov"](t,7).control.disabled,i["\u0275nov"](t,7).addGrid())})}var Rh=i["\u0275ccf"]("clr-password-container",mp,jh,{clrToggle:"clrToggle"},{},["label","[clrPassword]","clr-control-helper","clr-control-error"]),Ph=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Zh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"label",[],[[1,"for",0]],null,null,null,null)),i["\u0275did"](1,212992,null,0,_c,[[2,bc],[2,wc],i.Renderer2,i.ElementRef],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).forAttr)})}function Bh(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Zh)),i["\u0275did"](6,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,6,0,!t.component.label)},null)}function Uh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"clr-radio-wrapper",[],[[2,"clr-radio-wrapper",null]],null,null,Bh,Ph)),i["\u0275prd"](4608,null,bc,bc,[]),i["\u0275did"](2,49152,null,1,bp,[[2,Xc]],null,null),i["\u0275qud"](335544320,1,{label:0})],null,function(e,t){e(t,0,0,!0)})}var Gh=i["\u0275ccf"]("clr-radio-wrapper",bp,Uh,{},{},["[clrRadio]","label"]),qh=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function zh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"label",[],[[1,"for",0]],null,null,null,null)),i["\u0275did"](1,212992,null,0,_c,[[2,bc],[2,wc],i.Renderer2,i.ElementRef],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).forAttr)})}function Wh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-icon",[["aria-hidden","true"],["class","clr-validate-icon"],["shape","exclamation-circle"]],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,ic,[],null,null)],null,null)}function Kh(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,2),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function Qh(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,3),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function $h(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,[" \n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,zh)),i["\u0275did"](4,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,17,"div",[["class","clr-control-container"]],null,null,null,null,null)),i["\u0275did"](7,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,7,"div",[],null,null,null,null,null)),i["\u0275did"](10,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Wh)),i["\u0275did"](15,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Kh)),i["\u0275did"](19,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Qh)),i["\u0275did"](22,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,!n.label&&n.addGrid()),e(t,7,0,"clr-control-container",n.controlClass()),e(t,10,0,n.wrapperClass()),e(t,15,0,n.invalid),e(t,19,0,!n.invalid),e(t,22,0,n.invalid)},null)}function Yh(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"clr-select-container",[],[[2,"clr-form-control",null],[2,"clr-form-control-disabled",null],[2,"clr-row",null]],null,null,$h,qh)),i["\u0275prd"](4608,null,bc,bc,[]),i["\u0275prd"](512,null,vc,vc,[]),i["\u0275prd"](131584,null,mc,mc,[vc]),i["\u0275prd"](512,null,Xc,Xc,[]),i["\u0275did"](5,180224,null,2,wp,[mc,[2,wc],Xc,vc],null,null),i["\u0275qud"](335544320,1,{label:0}),i["\u0275qud"](335544320,2,{multiple:0})],null,function(e,t){e(t,0,0,!0,null==i["\u0275nov"](t,5).control?null:i["\u0275nov"](t,5).control.disabled,i["\u0275nov"](t,5).addGrid())})}var Xh=i["\u0275ccf"]("clr-select-container",wp,Yh,{},{},["label","[clrSelect]","clr-control-helper","clr-control-error"]),Jh=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ef(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"label",[],[[1,"for",0]],null,null,null,null)),i["\u0275did"](1,212992,null,0,_c,[[2,bc],[2,wc],i.Renderer2,i.ElementRef],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).forAttr)})}function tf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-icon",[["aria-hidden","true"],["class","clr-validate-icon"],["shape","exclamation-circle"]],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,ic,[],null,null)],null,null)}function nf(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,2),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function rf(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,3),(e()(),i["\u0275and"](0,null,null,0))],null,null)}function of(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ef)),i["\u0275did"](4,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,16,"div",[["class","clr-control-container"]],null,null,null,null,null)),i["\u0275did"](7,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,6,"div",[["class","clr-textarea-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,tf)),i["\u0275did"](14,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,nf)),i["\u0275did"](18,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,rf)),i["\u0275did"](21,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,!n.label&&n.addGrid()),e(t,7,0,"clr-control-container",n.controlClass()),e(t,14,0,n.invalid),e(t,18,0,!n.invalid),e(t,21,0,n.invalid)},null)}function af(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"clr-textarea-container",[],[[2,"clr-form-control",null],[2,"clr-form-control-disabled",null],[2,"clr-row",null]],null,null,of,Jh)),i["\u0275prd"](4608,null,bc,bc,[]),i["\u0275prd"](512,null,vc,vc,[]),i["\u0275prd"](131584,null,mc,mc,[vc]),i["\u0275prd"](512,null,Xc,Xc,[]),i["\u0275did"](5,180224,null,1,Ep,[mc,[2,wc],Xc,vc],null,null),i["\u0275qud"](335544320,1,{label:0})],null,function(e,t){e(t,0,0,!0,null==i["\u0275nov"](t,5).control?null:i["\u0275nov"](t,5).control.disabled,i["\u0275nov"](t,5).addGrid())})}var lf=i["\u0275ccf"]("clr-textarea-container",Ep,af,{},{},["label","[clrTextarea]","clr-control-helper","clr-control-error"]),sf=i["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] { display: none; }\n .open[_nghost-%COMP%] { display: inline; }"],data:{animation:[{type:7,name:"fadeDown",definitions:[{type:1,expr:"* => false",animation:[{type:6,styles:{opacity:0,transform:"translate(0, -25%)"},offset:null},{type:4,styles:null,timings:"0.2s ease-in-out"}],options:null},{type:1,expr:"false => *",animation:[{type:4,styles:{type:6,styles:{opacity:0,transform:"translate(0, -25%)"},offset:null},timings:"0.2s ease-in-out"}],options:null}],options:{}},{type:7,name:"fade",definitions:[{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:{type:6,styles:{opacity:.85},offset:null},timings:"0.2s ease-in-out"}],options:null},{type:1,expr:"* => void",animation:[{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"0.2s ease-in-out"}],options:null}],options:{}}]}});function uf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"button",[["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"clr-icon",[["shape","close"]],[[1,"title",0]],null,null,null,null)),i["\u0275did"](3,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.commonStrings.close)})}function cf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,32,"div",[["class","modal"],["clrFocusTrap",""]],null,[["document","focusin"]],function(e,t,n){var r=!0;return"document:focusin"===t&&(r=!1!==i["\u0275nov"](e,1).onFocusIn(n)&&r),r},null,null)),i["\u0275did"](1,4341760,[[1,4]],0,Mc,[i.ElementRef,i.Injector,Lc,i.Renderer2,i.PLATFORM_ID],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,25,"div",[["class","modal-dialog"],["role","dialog"]],[[24,"@fadeDown",0],[2,"modal-sm",null],[2,"modal-lg",null],[2,"modal-xl",null],[1,"aria-hidden",0],[1,"aria-labelledby",0]],[[null,"@fadeDown.done"]],function(e,t,n){var r=!0;return"@fadeDown.done"===t&&(r=!1!==e.component.fadeDone(n)&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](6,0,null,null,22,"div",[["class","modal-content-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](11,0,null,null,16,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,9,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,uf)),i["\u0275did"](16,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,3,"div",[["class","modal-title-wrapper"]],[[8,"id",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,2),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,3),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](31,0,null,null,0,"div",[["aria-hidden","true"],["class","modal-backdrop"]],[[24,"@fade",0]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==(i.staticBackdrop||i.close())&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,16,0,t.component.closable)},function(e,t){var n=t.component;e(t,4,0,n.skipAnimation,"sm"==n.size,"lg"==n.size,"xl"==n.size,!n._open,n.modalId),e(t,18,0,i["\u0275inlineInterpolate"](1,"",n.modalId,"")),e(t,31,0,void 0)})}function pf(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{focusTrap:0}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,cf)),i["\u0275did"](4,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"]))],function(e,t){e(t,4,0,t.component._open)},null)}var df=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function hf(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,0)],null,null)}var ff=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function gf(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}var vf=i["\u0275crt"]({encapsulation:2,styles:[],data:{animation:[{type:7,name:"leaveAnimation",definitions:[{type:1,expr:":leave",animation:[{type:6,styles:{left:"*",top:"*"},offset:null},{type:4,styles:{type:6,styles:{top:"{{top}}",left:"{{left}}"},offset:null},timings:"0.2s ease-in-out"}],options:null}],options:{}}]}});function mf(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,0)],null,null)}function yf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-draggable-ghost",[],[[40,"@leaveAnimation",0]],null,null,mf,vf)),i["\u0275did"](1,180224,null,0,Wp,[i.ElementRef,[2,qp],[2,zp],i.Renderer2,i.NgZone],null,null)],null,function(e,t){e(t,0,0,i["\u0275nov"](t,1).leaveAnimConfig)})}var bf=i["\u0275ccf"]("clr-draggable-ghost",Wp,yf,{},{},["*"]),Cf=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function wf(e){return i["\u0275vid"](0,[],null,null)}function _f(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"ng-component",[],null,null,null,wf,Cf)),i["\u0275did"](1,49152,null,0,fc,[],null,null)],null,null)}var Ef=i["\u0275ccf"]("ng-component",fc,_f,{},{},[]),Af=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Sf(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Df(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{template:0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,[[1,2]],null,0,null,Sf)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Tf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"ng-component",[],null,null,null,Df,Af)),i["\u0275did"](1,49152,null,0,pd,[],null,null)],null,null)}var xf=i["\u0275ccf"]("ng-component",pd,Tf,{},{},["*"]),Of=n("ZYjt"),Lf=function(){function e(e,t,n,r,i,o){var a=this;this.toastId=e,this.config=t,this.message=n,this.title=r,this.toastType=i,this.toastRef=o,this._onTap=new Sl.a,this._onAction=new Sl.a,this.toastRef.afterClosed().subscribe(function(){a._onAction.complete(),a._onTap.complete()})}return e.prototype.triggerTap=function(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()},e.prototype.onTap=function(){return this._onTap.asObservable()},e.prototype.triggerAction=function(e){this._onAction.next(e)},e.prototype.onAction=function(){return this._onAction.asObservable()},e}(),Mf={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"toast",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},If=new i.InjectionToken("ToastConfig"),Vf=function(){function e(e,t){this.component=e,this.injector=t}return e.prototype.attach=function(e,t){return this._attachedHost=e,e.attach(this,t)},e.prototype.detach=function(){var e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()},Object.defineProperty(e.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),e.prototype.setAttachedHost=function(e){this._attachedHost=e},e}(),kf=function(e){function t(t,n,r){var i=e.call(this)||this;return i._hostDomElement=t,i._componentFactoryResolver=n,i._appRef=r,i}return Object(gi.c)(t,e),t.prototype.attachComponentPortal=function(e,t){var n,r=this,i=this._componentFactoryResolver.resolveComponentFactory(e.component);return n=i.create(e.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(function(){r._appRef.detachView(n.hostView),n.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n},t.prototype._getComponentRootNode=function(e){return e.hostView.rootNodes[0]},t}(function(){function e(){}return e.prototype.attach=function(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)},e.prototype.detach=function(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)},e.prototype.setDisposeFn=function(e){this._disposeFn=e},e}()),Nf=function(){function e(e){this._document=e}return e.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},e.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},e.prototype._createContainer=function(){var e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(ul.DOCUMENT))},token:e,providedIn:"root"}),e}(),Ff=function(){function e(e){this._portalHost=e}return e.prototype.attach=function(e,t){return void 0===t&&(t=!0),this._portalHost.attach(e,t)},e.prototype.detach=function(){return this._portalHost.detach()},e}(),Hf=function(){function e(e,t,n,r){this._overlayContainer=e,this._componentFactoryResolver=t,this._appRef=n,this._document=r,this._paneElements=new Map}return e.prototype.create=function(e,t){return this._createOverlayRef(this.getPaneElement(e,t))},e.prototype.getPaneElement=function(e,t){return void 0===e&&(e=""),this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]},e.prototype._createPaneElement=function(e,t){var n=this._document.createElement("div");return n.id="toast-container",n.classList.add(e),n.classList.add("toast-container"),t?t.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n},e.prototype._createPortalHost=function(e){return new kf(e,this._componentFactoryResolver,this._appRef)},e.prototype._createOverlayRef=function(e){return new Ff(this._createPortalHost(e))},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(Nf),Object(i.inject)(i.ComponentFactoryResolver),Object(i.inject)(i.ApplicationRef),Object(i.inject)(ul.DOCUMENT))},token:e,providedIn:"root"}),e}(),jf=function(){function e(e){this._overlayRef=e,this._afterClosed=new Sl.a,this._activate=new Sl.a,this._manualClose=new Sl.a,this._resetTimeout=new Sl.a}return e.prototype.manualClose=function(){this._manualClose.next(),this._manualClose.complete()},e.prototype.manualClosed=function(){return this._manualClose.asObservable()},e.prototype.timeoutReset=function(){return this._resetTimeout.asObservable()},e.prototype.close=function(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete()},e.prototype.afterClosed=function(){return this._afterClosed.asObservable()},e.prototype.isInactive=function(){return this._activate.isStopped},e.prototype.activate=function(){this._activate.next(),this._activate.complete()},e.prototype.afterActivate=function(){return this._activate.asObservable()},e.prototype.resetTimeout=function(){this._resetTimeout.next()},e}(),Rf=function(){function e(e,t){this._toastPackage=e,this._parentInjector=t}return e.prototype.get=function(e,t,n){return e===Lf?this._toastPackage:this._parentInjector.get(e,t,n)},e}(),Pf=function(){function e(e,t,n,r,i){this.overlay=t,this._injector=n,this.sanitizer=r,this.ngZone=i,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object(gi.a)({},e.default,e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object(gi.a)({},e.default.iconClasses,e.config.iconClasses))}return e.prototype.show=function(e,t,n,r){return void 0===n&&(n={}),void 0===r&&(r=""),this._preBuildNotification(r,e,t,this.applyConfig(n))},e.prototype.success=function(e,t,n){return void 0===n&&(n={}),this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,t,this.applyConfig(n))},e.prototype.error=function(e,t,n){return void 0===n&&(n={}),this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,t,this.applyConfig(n))},e.prototype.info=function(e,t,n){return void 0===n&&(n={}),this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,t,this.applyConfig(n))},e.prototype.warning=function(e,t,n){return void 0===n&&(n={}),this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,t,this.applyConfig(n))},e.prototype.clear=function(e){var t,n;try{for(var r=Object(gi.h)(this.toasts),i=r.next();!i.done;i=r.next()){var o=i.value;if(void 0!==e){if(o.toastId===e)return void o.toastRef.manualClose()}else o.toastRef.manualClose()}}catch(a){t={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){var t=this._findToast(e);if(!t)return!1;if(t.activeToast.toastRef.close(),this.toasts.splice(t.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive=this.toastrConfig.maxOpened&&(l=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));var s=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;var u=t;t&&r.enableHtml&&(u=this.sanitizer.sanitize(i.SecurityContext.HTML,t));var c=new jf(s),p=new Lf(this.index,r,u,n,e,c),d=new Rf(p,this._injector),h=new Vf(r.toastComponent,d),f=s.attach(h,this.toastrConfig.newestOnTop);c.componentInstance=f._component;var g={toastId:this.index,message:t||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:p.onTap(),onAction:p.onAction(),portal:f};return l||setTimeout(function(){g.toastRef.activate(),o.currentlyActive=o.currentlyActive+1}),this.toasts.push(g),g},e.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new e(Object(i.inject)(If),Object(i.inject)(Hf),Object(i.inject)(i.INJECTOR),Object(i.inject)(Of.c),Object(i.inject)(i.NgZone))},token:e,providedIn:"root"}),e}(),Zf=function(){function e(e,t,n){var r=this;this.toastrService=e,this.toastPackage=t,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=t.toastType+" "+t.config.toastClass,this.sub=t.toastRef.afterActivate().subscribe(function(){r.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(function(){r.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(function(){r.resetTimeout()})}return e.prototype.ngOnDestroy=function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)},e.prototype.activateToast=function(){var e=this;this.state=Object(gi.a)({},this.state,{value:"active"}),!this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(function(){return e.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(function(){return e.updateProgress()},10))},e.prototype.updateProgress=function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}},e.prototype.resetTimeout=function(){var e=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object(gi.a)({},this.state,{value:"active"}),this.outsideTimeout(function(){return e.remove()},this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(function(){return e.updateProgress()},10)},e.prototype.remove=function(){var e=this;"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object(gi.a)({},this.state,{value:"removed"}),this.outsideTimeout(function(){return e.toastrService.remove(e.toastPackage.toastId)},+this.toastPackage.config.easeTime))},e.prototype.tapToast=function(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())},e.prototype.stickAround=function(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)},e.prototype.delayedHideToast=function(){var e=this;this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(function(){return e.remove()},this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(function(){return e.updateProgress()},10))},e.prototype.outsideTimeout=function(e,t){var n=this;this.ngZone?this.ngZone.runOutsideAngular(function(){return n.timeout=setTimeout(function(){return n.runInsideAngular(e)},t)}):this.timeout=setTimeout(function(){return e()},t)},e.prototype.outsideInterval=function(e,t){var n=this;this.ngZone?this.ngZone.runOutsideAngular(function(){return n.intervalId=setInterval(function(){return n.runInsideAngular(e)},t)}):this.intervalId=setInterval(function(){return e()},t)},e.prototype.runInsideAngular=function(e){this.ngZone?this.ngZone.run(function(){return e()}):e()},e}(),Bf=Object(gi.a)({},Mf,{toastComponent:Zf}),Uf=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:If,useValue:{default:Bf,config:t}}]}},e}(),Gf=i["\u0275crt"]({encapsulation:2,styles:[],data:{animation:[{type:7,name:"flyInOut",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{display:"none",opacity:0},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{},offset:null},options:void 0},{type:0,name:"removed",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"inactive => active",animation:{type:4,styles:null,timings:"{{ easeTime }}ms {{ easing }}"},options:null},{type:1,expr:"active => removed",animation:{type:4,styles:null,timings:"{{ easeTime }}ms {{ easing }}"},options:null}],options:{}}]}});function qf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"button",[["aria-label","Close"],["class","toast-close-button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.remove()&&r),r},null,null)),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\xd7"]))],null,null)}function zf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[],[[8,"className",0],[1,"aria-label",0]],null,null,null,null)),(e()(),i["\u0275ted"](1,null,[" "," "]))],null,function(e,t){var n=t.component;e(t,0,0,n.options.titleClass,n.title),e(t,1,0,n.title)})}function Wf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"div",[["aria-live","polite"],["role","alertdialog"]],[[8,"className",0],[8,"innerHTML",1]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.options.messageClass,n.message)})}function Kf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["aria-live","polite"],["role","alertdialog"]],[[8,"className",0],[1,"aria-label",0]],null,null,null,null)),(e()(),i["\u0275ted"](1,null,[" "," "]))],null,function(e,t){var n=t.component;e(t,0,0,n.options.messageClass,n.message),e(t,1,0,n.message)})}function Qf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),i["\u0275eld"](1,0,null,null,0,"div",[["class","toast-progress"]],[[4,"width",null]],null,null,null,null))],null,function(e,t){e(t,1,0,t.component.width+"%")})}function $f(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,qf)),i["\u0275did"](1,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275and"](16777216,null,null,1,null,zf)),i["\u0275did"](3,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275and"](16777216,null,null,1,null,Wf)),i["\u0275did"](5,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275and"](16777216,null,null,1,null,Kf)),i["\u0275did"](7,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275and"](16777216,null,null,1,null,Qf)),i["\u0275did"](9,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n.options.closeButton),e(t,3,0,n.title),e(t,5,0,n.message&&n.options.enableHtml),e(t,7,0,n.message&&!n.options.enableHtml),e(t,9,0,n.options.progressBar)},null)}function Yf(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["toast-component",""]],[[8,"className",0],[40,"@flyInOut",0]],[[null,"click"],[null,"mouseenter"],[null,"mouseleave"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==i["\u0275nov"](e,1).tapToast()&&r),"mouseenter"===t&&(r=!1!==i["\u0275nov"](e,1).stickAround()&&r),"mouseleave"===t&&(r=!1!==i["\u0275nov"](e,1).delayedHideToast()&&r),r},$f,Gf)),i["\u0275did"](1,180224,null,0,Zf,[Pf,Lf,i.NgZone],null,null)],null,function(e,t){e(t,0,0,i["\u0275nov"](t,1).toastClasses,i["\u0275nov"](t,1).state)})}var Xf=i["\u0275ccf"]("[toast-component]",Zf,Yf,{},{},[]),Jf=function(){function e(e){this.element=e,this.isSpecialBlock=!1}return e.prototype.ngAfterViewInit=function(){this.renderUIChanges()},e.prototype.ngOnInit=function(){this.isSpecialBlock=this.block&&"special"===this.block.type},e.prototype.renderUIChanges=function(){null!=this.block.caretOffset&&this.setCaretPosition(this.block.caretOffset),this.block.isFocused&&this.element.nativeElement.focus()},e.prototype.ngOnChanges=function(e){s.log("change",e)},e.prototype.setCaretPosition=function(e){var t=document.createRange(),n=window.getSelection();t.setStart(this.element.nativeElement.childNodes[0],e),t.collapse(!0),n.removeAllRanges(),n.addRange(t)},e.prototype.formatContent=function(e){return e.replace(/(^\s+|\s+$)/g,"\xa0")},e}(),eg=i["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function tg(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](0,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n.formatContent(n.block.content))})}var ng=function(){return function(e){void 0===e&&(e=window.getSelection()),this.selection=e,this.offset=null,this.offset=e.focusOffset}}(),rg=function(){return(rg=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt[0]&&e[0]t[0]&&e[1]1)},function(e,t){var n=t.component;e(t,2,0,!0,i["\u0275nov"](t,6).ifOpenService.open),e(t,8,0,n.httpVerb,i["\u0275nov"](t,9).isRootLevelToggle,!i["\u0275nov"](t,9).isRootLevelToggle,!i["\u0275nov"](t,9).isRootLevelToggle,i["\u0275nov"](t,9).active),e(t,10,0,n.httpVerb),e(t,23,0,i["\u0275nov"](t,28).ngClassUntouched,i["\u0275nov"](t,28).ngClassTouched,i["\u0275nov"](t,28).ngClassPristine,i["\u0275nov"](t,28).ngClassDirty,i["\u0275nov"](t,28).ngClassValid,i["\u0275nov"](t,28).ngClassInvalid,i["\u0275nov"](t,28).ngClassPending),e(t,32,0,!0,i["\u0275nov"](t,36).ifOpenService.open),e(t,38,0,i["\u0275nov"](t,39).isRootLevelToggle,!i["\u0275nov"](t,39).isRootLevelToggle,!i["\u0275nov"](t,39).isRootLevelToggle,i["\u0275nov"](t,39).active),e(t,60,0,i["\u0275unv"](t,60,0,i["\u0275nov"](t,61).transform("DOCS_TEXT")))})}function tv(e){return e?e.replace(/\r\n|\r/g,"\n"):e}var nv=function(){function e(e,t){this._differs=e,this._ngZone=t,this.className="",this.name="codemirror",this.autoFocus=!1,this.preserveScrollPosition=!1,this.cursorActivity=new i.EventEmitter,this.focusChange=new i.EventEmitter,this.scroll=new i.EventEmitter,this.value="",this.disabled=!1,this.isFocused=!1,this.onChange=function(e){},this.onTouched=function(){}}return Object.defineProperty(e.prototype,"options",{set:function(e){this._options=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;if(this.ref){var t=n("VrN/").fromTextArea;this._ngZone.runOutsideAngular(function(){e.codeMirror=t(e.ref.nativeElement,e._options),e.codeMirror.on("cursorActivity",function(t){return e._ngZone.run(function(){return e.cursorActive(t)})}),e.codeMirror.on("scroll",e.scrollChanged.bind(e)),e.codeMirror.on("blur",function(){return e._ngZone.run(function(){return e.focusChanged(!1)})}),e.codeMirror.on("focus",function(){return e._ngZone.run(function(){return e.focusChanged(!0)})}),e.codeMirror.on("change",function(t,n){return e._ngZone.run(function(){return e.codemirrorValueChanged(t,n)})}),e.codeMirror.setValue(e.value)})}},e.prototype.ngDoCheck=function(){var e=this;if(this._differ){var t=this._differ.diff(this._options);t&&(t.forEachChangedItem(function(t){return e.setOptionIfChanged(t.key,t.currentValue)}),t.forEachAddedItem(function(t){return e.setOptionIfChanged(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){return e.setOptionIfChanged(t.key,t.currentValue)}))}},e.prototype.ngOnDestroy=function(){this.codeMirror&&this.codeMirror.toTextArea()},e.prototype.codemirrorValueChanged=function(e,t){"setValue"!==t.origin&&(this.value=e.getValue(),this.onChange(this.value))},e.prototype.setOptionIfChanged=function(e,t){this.codeMirror&&this.codeMirror.setOption(e,t)},e.prototype.focusChanged=function(e){this.onTouched(),this.isFocused=e,this.focusChange.emit(e)},e.prototype.scrollChanged=function(e){this.scroll.emit(e.getScrollInfo())},e.prototype.cursorActive=function(e){this.cursorActivity.emit(e)},e.prototype.writeValue=function(e){if(null!=e)if(this.codeMirror){var t=this.codeMirror.getValue();if(e!==t&&tv(t)!==tv(e))if(this.value=e,this.preserveScrollPosition){var n=this.codeMirror.getScrollInfo();this.codeMirror.setValue(this.value),this.codeMirror.scrollTo(n.left,n.top)}else this.codeMirror.setValue(this.value)}else this.value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.setOptionIfChanged("readOnly",this.disabled)},e}(),rv=function(){return function(){}}(),iv=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ov(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{ref:0}),(e()(),i["\u0275eld"](1,0,[[1,0],["ref",1]],null,1,"textarea",[["autocomplete","off"]],[[8,"name",0],[8,"className",0],[2,"ngx-codemirror--focused",null],[8,"autofocus",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" "]))],null,function(e,t){var n=t.component;e(t,1,0,n.name,i["\u0275inlineInterpolate"](1,"ngx-codemirror ",n.className,""),n.isFocused,n.autoFocus)})}n("m3Q/"),n("iCJ0"),n("SJVZ"),n("y8iW"),n("rt3J"),n("jXCp"),n("9Low"),n("+dQi");var av=function(){function e(){this.variables="",this.variablesChange=new i.EventEmitter,this.variableEditorConfig={mode:"javascript",json:!0,lineWrapping:!0,lineNumbers:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,autoCloseBrackets:!0,theme:"default variable-editor mousetrap",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}return e.prototype.ngOnChanges=function(){this.editor.codeMirror&&this.editor.codeMirror.refresh()},e}(),lv=i["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function sv(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{editor:0}),(e()(),i["\u0275eld"](1,0,null,null,5,"ngx-codemirror",[["class","set-variable-textarea mousetrap"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==e.component.variablesChange.emit(n)&&r),r},ov,iv)),i["\u0275did"](2,4636672,[[1,4],["editor",4]],0,nv,[i.KeyValueDiffers,i.NgZone],{options:[0,"options"]},null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[nv]),i["\u0275did"](4,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](6,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.variableEditorConfig),e(t,4,0,n.variables)},function(e,t){e(t,1,0,i["\u0275nov"](t,6).ngClassUntouched,i["\u0275nov"](t,6).ngClassTouched,i["\u0275nov"](t,6).ngClassPristine,i["\u0275nov"](t,6).ngClassDirty,i["\u0275nov"](t,6).ngClassValid,i["\u0275nov"](t,6).ngClassInvalid,i["\u0275nov"](t,6).ngClassPending)})}var uv=n("AJqF"),cv=function(){function e(e,t,n){this.el=e,this.document=t,this.zone=n,this.resizeDirection="left",this.resizeChange=new i.EventEmitter,this.isRight=!1,this.draggingMode=!1,this.siblingGrowthFactor=2,this.throttleMs=100,this.documentMouseUp$=Ql(this.document,"mouseup"),this.documentMouseMove$=Ql(this.document,"mousemove").pipe(Object(uv.a)(this.throttleMs)),this.elMouseMove$=Ql(this.el.nativeElement,"mousemove").pipe(Object(uv.a)(this.throttleMs)),this.elMouseDown$=Ql(this.el.nativeElement,"mousedown"),this.resizeElement=this.el.nativeElement.parentElement,this.resizeContainer=this.getResizeContainer()}return e.prototype.ngOnInit=function(){var e=this;"right"===this.resizeDirection&&(this.isRight=!0),this.zone.runOutsideAngular(function(){e.documentMouseUp$.subscribe(function(t){return e.onMouseUp(t)}),e.documentMouseMove$.subscribe(function(t){return e.onResizerMove(t)}),e.elMouseMove$.subscribe(function(t){return e.onResizerMove(t)}),e.elMouseDown$.subscribe(function(t){return e.onResizerPress(t)})})},e.prototype.onResizerPress=function(e){var t=this;this.draggingMode=!0,this.originalWidth=this.resizeElement.clientWidth,this.originalX=e.clientX,this.siblingGrowthFactor=Array.from(this.resizeElement.parentElement.children).filter(function(e){return t.resizeElement!==e}).reduce(function(e,t){return+getComputedStyle(t).getPropertyValue("flex-grow")+e},0)},e.prototype.onResizerMove=function(e){var t=this;if(!this.draggingMode)return!0;e.stopPropagation(),e.preventDefault(),this.diffX=e.clientX-this.originalX;var n=this.isRight?this.originalWidth+this.diffX:this.originalWidth-this.diffX,r=n/this.resizeContainer.clientWidth,i=r*this.siblingGrowthFactor/(1-r);this.zone.run(function(){t.resizeChange.next(i),s.log("mouse moved resizer",n,i)})},e.prototype.onMouseUp=function(e){if(!this.draggingMode)return!0;this.draggingMode=!1,s.log("mouse up.",this.originalWidth,this.diffX)},e.prototype.getResizeContainer=function(){for(var e=this.resizeElement;e&&!e.hasAttribute("data-resize-container");)e=e.parentElement;return e},e}(),pv=i["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function dv(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"clr-icon",[["shape","drag-handle"]],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,ic,[],null,null)],null,null)}n("cokd"),n("jDMi"),n("ELLl"),n("Ku0u"),n("C2zF"),n("uTOq"),n("cV09"),n("GP5n"),n("nHt3"),n("O8+U"),n("HkoP"),n("HBFN"),n("Xkdu");var hv=n("VrN/"),fv=n("LN1l"),gv=["error","warning","information","hint"],vv={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};hv.registerHelper("lint","graphql",function(e,t){var n=t.schema;try{return Object(fv.getDiagnostics)(e,n).map(function(e){return{message:e.message,severity:gv[e.severity-1],type:vv[e.source],from:hv.Pos(e.range.start.line,e.range.start.character),to:hv.Pos(e.range.end.line,e.range.end.character)}})}catch(r){return s.log(r),[]}}),hv.registerHelper("hint","graphql",function(e,t){var n=t.schema;if(n){var r=e.getCursor(),i=e.getTokenAt(r),o=Object(fv.getAutocompleteSuggestions)(n,e.getValue(),r,i),a=null!==i.type&&/"|\w/.test(i.string[0])?i.start:i.end,l={list:o.map(function(e){return{text:e.label,type:e.detail&&n.getType(e.detail.replace(/[\[\]!]/g,"")),description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,render:t.render||void 0,typeDetail:e.detail}}),from:{line:r.line,column:a},to:{line:r.line,column:i.end}};return l&&l.list&&l.list.length>0&&(l.from=hv.Pos(l.from.line,l.from.column),l.to=hv.Pos(l.to.line,l.to.column),hv.signal(e,"hasCompletion",e,l,i)),l}});var mv=n("DlQD"),yv=function(e){return e instanceof Rr.e?yv(e.ofType)+"!":e instanceof Rr.d?"["+yv(e.ofType)+"]":''+e.name+""},bv=/^[a-zA-Z0-9_@(]$/,Cv=function(){function e(e,t,n){var r=this;this.gqlService=e,this.notifyService=t,this.zone=n,this.gqlSchema=null,this.tabSize=2,this.addQueryDepthLimit=2,this.variables=null,this.showVariableDialog=!1,this.sendRequest=new i.EventEmitter,this.queryChange=new i.EventEmitter,this.variablesChange=new i.EventEmitter,this.toggleVariableDialog=new i.EventEmitter,this.addFileVariableChange=new i.EventEmitter,this.fileVariableNameChange=new i.EventEmitter,this.fileVariableDataChange=new i.EventEmitter,this.deleteFileVariableChange=new i.EventEmitter,this.queryEditorStateChange=new i.EventEmitter,this.showTokenInDocsChange=new i.EventEmitter,this.editorConfig={mode:"graphql",lineWrapping:!0,lineNumbers:!0,foldGutter:!0,tabSize:this.tabSize,indentUnit:this.tabSize,extraKeys:{"Cmd-Space":function(e){return e.showHint({completeSingle:!0})},"Ctrl-Space":function(e){return e.showHint({completeSingle:!0})},"Alt-Space":function(e){return e.showHint({completeSingle:!0})},"Cmd-/":function(e){return e.execCommand("toggleComment")},"Ctrl-/":function(e){return e.execCommand("toggleComment")},"Alt-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-D":function(e){return r.onShowInDocsByToken(e)},"Shift-Ctrl-Enter":function(e){return r.zone.run(function(){return r.onFillFields(e)})}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],autoCloseBrackets:!0,matchBrackets:!0,autoRefresh:!0,dragDrop:!1,lint:{},hintOptions:{completeSingle:!1,render:function(e,t,n){e.classList.add("query-editor__autocomplete-item"),e.innerHTML=('\n '+n.text+'\n '+n.typeDetail+"\n ").trim().replace(/ +/g," ")}},info:{onClick:function(e){return r.onShowInDocsByReference(e)}},jump:{onClick:function(e){return r.onShowInDocsByReference(e)}}}}return e.prototype.ngOnInit=function(){this.gqlSchema&&(this.editorConfig.lint={},this.editorConfig.tabSize=this.tabSize||2,this.editorConfig.indentUnit=this.tabSize||2,this.updateEditorSchema(this.gqlSchema))},e.prototype.ngAfterViewInit=function(){var e=this;this.editor&&(this.editor.codeMirror.on("keyup",function(t,n){return e.onKeyUp(t,n)}),this.editor.codeMirror.on("focus",function(t,n){return e.onEditorStateChange(t,n)}),this.editor.codeMirror.on("blur",function(t,n){return e.onEditorStateChange(t,n)}),this.editor.codeMirror.on("cursorActivity",function(t,n){return e.onEditorStateChange(t,n)}),this.editor.codeMirror.on("hasCompletion",function(t,n){return e.onHasCompletion(t,n)}))},e.prototype.ngOnChanges=function(e){if(e&&e.gqlSchema&&e.gqlSchema.currentValue){this.updateEditorSchema(e.gqlSchema.currentValue);var t=this.gqlService.validateSchema(e.gqlSchema.currentValue);if(t.length){var n=t.map(function(e){return"

    "+e.message}).join("");this.notifyService.warning("\n The schema definition is invalid according to the GraphQL specs.\n Linting and other functionalities would be unavailable.\n "+n+"\n ","Altair",{disableTimeOut:!0})}}this.editor.codeMirror&&this.editor.codeMirror.refresh()},e.prototype.onKeyUp=function(e,t){bv.test(t.key)&&this.editor.codeMirror.execCommand("autocomplete")},e.prototype.onEditorStateChange=function(e,t){var n=e.getCursor(),r=e.indexFromPos(n),i=e.hasFocus();this.queryEditorStateChange.next({isFocused:i,cursorIndex:r})},e.prototype.onShowInDocsByToken=function(e){var t=e.getCursor(),n=e.getTokenAt(t),r=qr()(this.gqlSchema,n.state);r.fieldDef&&r.parentType?this.showTokenInDocsChange.next({view:"field",parentType:r.parentType.inspect(),name:r.fieldDef.name}):r.type&&this.showTokenInDocsChange.next({view:"type",name:r.type.inspect()}),this.editor.codeMirror.getInputField().blur()},e.prototype.onShowInDocsByReference=function(e){e.field&&e.type?this.showTokenInDocsChange.next({view:"field",parentType:e.type.inspect(),name:e.field.name}):e.type&&this.showTokenInDocsChange.next({view:"type",name:e.type.inspect()})},e.prototype.onFillFields=function(e){var t=e.getCursor(),n=e.getTokenAt(t),r=this.gqlSchema;if(r){var i=this.gqlService.fillAllFields(r,e.getValue(),t,n,{maxDepth:this.addQueryDepthLimit});this.queryChange.next(i.result),setTimeout(function(){e.setCursor(t)},1)}},e.prototype.onHasCompletion=function(e,t){var r,i,o,a,l,s,u,c,p,d,h=this;r=t,c=void 0===(u=(s=void 0===(i={onClickHintInformation:function(e){if(h.gqlSchema){var t=h.gqlSchema.getType(e);t&&h.showTokenInDocsChange.next({view:"type",name:t.inspect()})}}})?{}:i).onHintInformationRender)?null:u,d=void 0===(p=s.onClickHintInformation)?null:p,n("VrN/").on(r,"select",function(e,t){var n;if(d&&(n=function(){return d(e.type)}),!o){var r,i=t.parentNode;(o=document.createElement("div")).className="CodeMirror-hint-information",i.appendChild(o),(a=document.createElement("div")).className="CodeMirror-hint-deprecation",i.appendChild(a),(l=document.createElement("div")).className="CodeMirror-hint-fill-all-fields",l.innerHTML='\n Fill all fields\n Ctrl+Shift+Enter\n '.trim().replace(/ +/g," "),i.appendChild(l),i.addEventListener("DOMNodeRemoved",r=function(e){e.target===i&&(o&&n&&o.removeEventListener("click",n),i.removeEventListener("DOMNodeRemoved",r),o=null,a=null,l=null,r=null)})}var s=e.description?mv(e.description):e.type&&e.type.description?mv(e.type.description):"Self descriptive.",u=e.type?''+yv(e.type)+"":"";if(o.innerHTML='
    '+("

    "===s.slice(0,3)?"

    "+u+s.slice(3):u+s)+"

    ",e.isDeprecated){var p=e.deprecationReason?mv(e.deprecationReason):"";a.innerHTML='Deprecated'+p,a.style.display="block"}else a.style.display="none";n&&o.addEventListener("click",n),c&&c(o)})},e.prototype.updateEditorSchema=function(e){e&&(s.log("Updating schema...",e),this.editorConfig.lint.schema=e,this.editorConfig.hintOptions.schema=e,this.editorConfig.info.schema=e,this.editorConfig.jump.schema=e)},e.prototype.onResize=function(e){this.resizeFactor=e},e}(),wv=i["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function _v(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,20,"div",[["class","variables-file-item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,9,"div",[["class","variables-file-item-name-input-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,6,"input",[["class","variables-file-item-name-input"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i["\u0275nov"](e,5)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i["\u0275nov"](e,5).onTouched()&&r),"compositionstart"===t&&(r=!1!==i["\u0275nov"](e,5)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i["\u0275nov"](e,5)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==o.fileVariableNameChange.next({index:e.context.index,name:n})&&r),r},null,null)),i["\u0275did"](5,16384,null,0,sl.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,sl.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[sl.DefaultValueAccessor]),i["\u0275did"](7,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](9,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,3,"div",[["class","variables-file-item-input-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,[["fileEl",1]],null,0,"input",[["class","variables-file-item-input"],["type","file"]],null,[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.fileVariableDataChange.next({index:e.context.index,fileData:i["\u0275nov"](e,15).files[0]})&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"div",[["class","variables-file-item-input-delete"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.deleteFileVariableChange.next({index:e.context.index})&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\xd7"])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,7,0,t.context.$implicit.name)},function(e,t){e(t,4,0,i["\u0275inlineInterpolate"](1,"",i["\u0275unv"](t,4,0,i["\u0275nov"](t,10).transform("FILE_NAME_PLACEHOLDER")),""),i["\u0275nov"](t,9).ngClassUntouched,i["\u0275nov"](t,9).ngClassTouched,i["\u0275nov"](t,9).ngClassPristine,i["\u0275nov"](t,9).ngClassDirty,i["\u0275nov"](t,9).ngClassValid,i["\u0275nov"](t,9).ngClassInvalid,i["\u0275nov"](t,9).ngClassPending)})}function Ev(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{editor:0}),(e()(),i["\u0275eld"](1,0,null,null,8,"div",[["class","query-editor-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,5,"ngx-codemirror",[["class","query-editor__input"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.query=n)&&r),"ngModelChange"===t&&(r=!1!==i.queryChange.emit(n)&&r),r},ov,iv)),i["\u0275did"](4,4636672,[[1,4],["editor",4]],0,nv,[i.KeyValueDiffers,i.NgZone],{options:[0,"options"]},null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[nv]),i["\u0275did"](6,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](8,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](11,0,null,null,38,"div",[["class","variables-editor-container"]],null,null,null,null,null)),i["\u0275did"](12,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](13,{"show-variables":0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,2,"div",[["class","variables-editor--title"],["track-id","toggle_variables"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleVariableDialog.next(n)&&r),r},null,null)),(e()(),i["\u0275ted"](16,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,29,"div",[["class","variables-editor-inner"]],null,null,null,null,null)),i["\u0275did"](20,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](21,{hide:0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,4,"div",[["class","variables-editor-input-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"app-variables-editor",[],null,[[null,"variablesChange"]],function(e,t,n){var r=!0;return"variablesChange"===t&&(r=!1!==e.component.variablesChange.emit(n)&&r),r},sv,lv)),i["\u0275did"](26,573440,null,0,av,[],{variables:[0,"variables"]},{variablesChange:"variablesChange"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,18,"div",[["class","variables-files-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,2,"button",[["class","variables-add-files-button"],["track-id","add_file_variable"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addFileVariableChange.next()&&r),r},null,null)),(e()(),i["\u0275ted"](32,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](35,0,null,null,5,"a",[["href","https://sirmuel.design/working-with-file-uploads-using-altair-graphql-d2f86dc8261f"],["target","_blank"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](37,0,null,null,1,"clr-icon",[["shape","info-circle"]],null,null,null,null,null)),i["\u0275did"](38,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](39,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](42,0,null,null,4,"div",[["class","variables-files-list"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,_v)),i["\u0275did"](45,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](51,0,null,null,1,"app-flex-resizer",[],[[2,"is-right",null]],[[null,"resizeChange"]],function(e,t,n){var r=!0;return"resizeChange"===t&&(r=!1!==e.component.onResize(n)&&r),r},dv,pv)),i["\u0275did"](52,114688,null,0,cv,[i.ElementRef,ul.DOCUMENT,i.NgZone],{resizeDirection:[0,"resizeDirection"]},{resizeChange:"resizeChange"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.editorConfig),e(t,6,0,n.query);var r=e(t,13,0,n.showVariableDialog);e(t,12,0,"variables-editor-container",r);var i=e(t,21,0,!n.showVariableDialog);e(t,20,0,"variables-editor-inner",i),e(t,26,0,null==n.variables?null:n.variables.variables),e(t,45,0,null==n.variables?null:n.variables.files),e(t,52,0,"right")},function(e,t){e(t,3,0,i["\u0275nov"](t,8).ngClassUntouched,i["\u0275nov"](t,8).ngClassTouched,i["\u0275nov"](t,8).ngClassPristine,i["\u0275nov"](t,8).ngClassDirty,i["\u0275nov"](t,8).ngClassValid,i["\u0275nov"](t,8).ngClassInvalid,i["\u0275nov"](t,8).ngClassPending),e(t,16,0,i["\u0275unv"](t,16,0,i["\u0275nov"](t,17).transform("VARIABLES_TEXT"))),e(t,32,0,i["\u0275unv"](t,32,0,i["\u0275nov"](t,33).transform("ADD_FILES_TEXT"))),e(t,39,0,i["\u0275unv"](t,39,0,i["\u0275nov"](t,40).transform("LEARN_MORE_TEXT"))),e(t,51,0,i["\u0275nov"](t,52).isRight)})}var Av=function(){function e(){this.data={response:"",responseTime:0},this.isExpanded=!1}return e.prototype.toggleExpanded=function(){this.isExpanded=!this.isExpanded},e}(),Sv=i["\u0275crt"]({encapsulation:2,styles:[[""]],data:{}});function Dv(e){return i["\u0275vid"](0,[i["\u0275pid"](0,ul.DatePipe,[i.LOCALE_ID]),(e()(),i["\u0275eld"](1,0,null,null,10,"div",[["class","subscription-result__list-item"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleExpanded()&&r),r},null,null)),i["\u0275did"](2,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](3,{"subscription-result__list-item--expanded":0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"div",[["class","subscription-result__list-item-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](6,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,2,"div",[["class","subscription-result__list-item-time"]],null,null,null,null,null)),(e()(),i["\u0275ted"](9,null,["",""])),i["\u0275ppd"](10,2),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=e(t,3,0,t.component.isExpanded);e(t,2,0,"subscription-result__list-item",n)},function(e,t){var n=t.component;e(t,6,0,n.data.response);var r=i["\u0275unv"](t,9,0,e(t,10,0,i["\u0275nov"](t,0),n.data.responseTime,"mediumTime"));e(t,9,0,r)})}n("iMDj");var Tv=function(){function e(){this.queryResult="",this.responseTime=0,this.responseStatus=0,this.responseStatusText="",this.isSubscribed=!1,this.subscriptionResponses=[],this.subscriptionUrl="",this.downloadResultChange=new i.EventEmitter,this.stopSubscriptionChange=new i.EventEmitter,this.clearSubscriptionChange=new i.EventEmitter,this.resultEditorConfig={mode:"graphql-results",json:!0,lineWrapping:!0,lineNumbers:!0,foldGutter:!0,readOnly:!0,dragDrop:!1,autoRefresh:!0,theme:"default query-result",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Alt-F":"findPersistent","Ctrl-F":"findPersistent"}}}return e.prototype.ngOnChanges=function(){this.editor.codeMirror&&this.editor.codeMirror.refresh()},e}(),xv=i["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function Ov(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,27,"div",[["class","query-result__none"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,24,"div",[["class","query-result__none-inner"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,2,"div",[["class","query-result__none-subtext"]],null,null,null,null,null)),(e()(),i["\u0275ted"](5,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,17,"div",[["class","query-result__none-art"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,9,"div",[["class","left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,0,"div",[["class","query-result__none-art-button send"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"div",[["class","query-result__none-art-button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"div",[["class","query-result__none-art-button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,0,"div",[["class","query-result__none-art-button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,3,"div",[["class","right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,0,"div",[["class","query-result__none-art-button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,5,0,i["\u0275unv"](t,5,0,i["\u0275nov"](t,6).transform("QUERY_RESULT_NO_RESULT_TEXT")))})}function Lv(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"app-subscription-result-item",[],null,null,null,Dv,Sv)),i["\u0275did"](1,49152,null,0,Av,[],{data:[0,"data"]},null)],function(e,t){e(t,1,0,t.context.$implicit)},null)}function Mv(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{editor:0}),(e()(),i["\u0275eld"](1,0,null,null,84,"div",[["class","query-result-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,47,"div",[["class","query-result__normal-container"]],null,null,null,null,null)),i["\u0275did"](4,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](5,{hide:0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ov)),i["\u0275did"](8,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,38,"div",[["class","app-result"]],null,null,null,null,null)),i["\u0275did"](12,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](13,{hide:0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,15,"div",[["class","response-stats"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,9,"div",[["class","left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,1,"span",[["class","response-status-code response-stats__item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](20,null,[""," ",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,3,"span",[["class","response-time response-stats__item"]],null,null,null,null,null)),(e()(),i["\u0275eld"](23,0,null,null,1,"clr-icon",[["shape","clock"]],null,null,null,null,null)),i["\u0275did"](24,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](25,null,[" ","ms"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,1,"div",[["class","right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,8,"div",[["class","query-result__bottom-actions"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,null,null,5,"button",[["class","btn btn-link btn-sm"],["track-id","download_result"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.downloadResultChange.next()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,1,"clr-icon",[["shape","download"]],null,null,null,null,null)),i["\u0275did"](37,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](38,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,null,null,6,"ngx-codemirror",[["class","app-query-result-textarea"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,ov,iv)),i["\u0275did"](43,4636672,[[1,4],["editor",4]],0,nv,[i.KeyValueDiffers,i.NgZone],{options:[0,"options"]},null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[nv]),i["\u0275did"](45,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),i["\u0275pid"](0,ul.JsonPipe,[]),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](48,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](52,0,null,null,32,"div",[["class","query-result__subscription-container"]],null,null,null,null,null)),i["\u0275did"](53,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](54,{hide:0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,null,null,27,"div",[["class","subscription-result"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](58,0,null,null,18,"div",[["class","subscription-result__actions"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](60,0,null,null,4,"div",[["class","subscription-result__actions-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](62,0,null,null,1,"div",[["class","subscription-result__actions-url"]],null,null,null,null,null)),(e()(),i["\u0275ted"](63,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](66,0,null,null,9,"div",[["class","subscription-result__actions-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](68,0,null,null,2,"button",[["class","subscription-button"],["track-id","clear_subscription"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clearSubscriptionChange.next()&&r),r},null,null)),(e()(),i["\u0275ted"](69,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](72,0,null,null,2,"button",[["class","subscription-button subscription-button--stop"],["track-id","stop_subscription"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.stopSubscriptionChange.next()&&r),r},null,null)),(e()(),i["\u0275ted"](73,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](78,0,null,null,4,"div",[["class","subscription-result__list-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Lv)),i["\u0275did"](81,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,5,0,n.isSubscribed);e(t,4,0,"query-result__normal-container",r),e(t,8,0,!n.queryResult);var o=e(t,13,0,!n.queryResult);e(t,12,0,"app-result",o),e(t,43,0,n.resultEditorConfig),e(t,45,0,i["\u0275unv"](t,45,0,i["\u0275nov"](t,46).transform(n.queryResult)));var a=e(t,54,0,!n.isSubscribed);e(t,53,0,"query-result__subscription-container",a),e(t,81,0,n.subscriptionResponses)},function(e,t){var n=t.component;e(t,20,0,n.responseStatus,n.responseStatusText),e(t,25,0,n.responseTime),e(t,38,0,i["\u0275unv"](t,38,0,i["\u0275nov"](t,39).transform("QUERY_RESULT_DOWNLOAD_RESULT_BUTTON"))),e(t,42,0,i["\u0275nov"](t,48).ngClassUntouched,i["\u0275nov"](t,48).ngClassTouched,i["\u0275nov"](t,48).ngClassPristine,i["\u0275nov"](t,48).ngClassDirty,i["\u0275nov"](t,48).ngClassValid,i["\u0275nov"](t,48).ngClassInvalid,i["\u0275nov"](t,48).ngClassPending),e(t,63,0,n.subscriptionUrl),e(t,69,0,i["\u0275unv"](t,69,0,i["\u0275nov"](t,70).transform("SUBSCRIPTIONS_CLEAR_TEXT"))),e(t,73,0,i["\u0275unv"](t,73,0,i["\u0275nov"](t,74).transform("SUBSCRIPTIONS_STOP_TEXT")))})}var Iv=function(){return function(){}}(),Vv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(gi.c)(t,e),t}(mv.Renderer),kv=function(){function e(e,t,n,r){this.platform=e,this.http=t,this.domSanitizer=n,this.options=r}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=Object.assign({},{renderer:new Vv},this._options,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this.options.renderer},set:function(e){this.options.renderer=e},enumerable:!0,configurable:!0}),e.prototype.compile=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=this.options);var r=this.precompile(e),o=Object(mv.parse)(t?this.decodeHtml(r):r,n);return n.sanitize&&!n.sanitizer?this.domSanitizer.sanitize(i.SecurityContext.HTML,o):o},e.prototype.getSource=function(e){var t=this;if(!this.http)throw new Error("[ngx-markdown] When using the [src] attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(Object(gr.a)(function(n){return t.handleExtension(e,n)}))},e.prototype.highlight=function(e){Object(ul.isPlatformBrowser)(this.platform)&&"undefined"!=typeof Prism&&(e?Prism.highlightAllUnder(e):Prism.highlightAll(!1))},e.prototype.decodeHtml=function(e){if(Object(ul.isPlatformBrowser)(this.platform)){var t=document.createElement("textarea");return t.innerHTML=e,t.value}return e},e.prototype.handleExtension=function(e,t){var n=e?e.split("?")[0].split(".").splice(-1).join():null;return"md"!==n?"```"+n+"\n"+t+"\n```":t},e.prototype.precompile=function(e){return e?e.split("\n").map(function(e){var n=t;return e.length>0&&(n=isNaN(n)?e.search(/\S|$/):Math.min(e.search(/\S|$/),n)),isNaN(t)&&(t=n),n?e.substring(n):e}).join("\n"):"";var t},e}(),Nv=function(){function e(e,t){this.element=e,this.markdownService=t,this.error=new i.EventEmitter,this.load=new i.EventEmitter,this._lineHighlight=!1,this._lineNumbers=!1}return Object.defineProperty(e.prototype,"lineNumbers",{get:function(){return this._lineNumbers},set:function(e){this._lineNumbers=this.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineHighlight",{get:function(){return this._lineHighlight},set:function(e){this._lineHighlight=this.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.data?this.handleData():this.src&&this.handleSrc()},e.prototype.ngAfterViewInit=function(){this.data||this.src||this.handleTransclusion()},e.prototype.render=function(e,t){void 0===t&&(t=!1),this.element.nativeElement.innerHTML=this.markdownService.compile(e,t),this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement)},e.prototype.coerceBooleanProperty=function(e){return null!=e&&""+e!="false"},e.prototype.handleData=function(){this.render(this.data)},e.prototype.handleSrc=function(){var e=this;this.markdownService.getSource(this.src).subscribe(function(t){e.render(t),e.load.emit(t)},function(t){return e.error.emit(t)})},e.prototype.handleTransclusion=function(){this.render(this.element.nativeElement.innerHTML,!0)},e.prototype.handlePlugins=function(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,"line-highlight"),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,"line-numbers"),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))},e.prototype.setPluginClass=function(e,t){for(var n,r=e.querySelectorAll("pre"),i=0;i\n "+e.search+"\n "+e.cat+"\n "+(e.description||"")+"\n ")},this.translate.get("DOCS_SEARCH_INPUT_PLACEHOLDER_TEXT").subscribe(function(e){return n.searchInputPlaceholder=e})}return e.prototype.ngOnChanges=function(e){e.gqlSchema&&e.gqlSchema.currentValue&&(this.gqlSchema=e.gqlSchema.currentValue,this.updateDocs(e.gqlSchema.currentValue))},e.prototype.updateDocs=function(e){s.log(e),this.rootTypes=[e.getQueryType(),e.getMutationType(),e.getSubscriptionType()].filter(function(e){return!!e});try{this.generateIndex(e),this.hasSearchIndex=!0}catch(t){s.log("Error while generating index.",t),this.hasSearchIndex=!1}},e.prototype.generateIndex=function(e){var t,n=this,r=null;t=function(e,t,n,i){var o=[];return Object.keys(e).forEach(function(a){var l=e[a],s={search:l.name,name:l.name,description:l.description,args:l.args,cat:"field",type:t.name,isQuery:n,highlight:"field"};o=o.concat([s]),l.args&&l.args.length&&l.args.forEach(function(e){o=o.concat([Bm({},s,{search:e.name,highlight:"argument"})])}),l.type&&(o=o.concat(r(l.type,!1,i.concat(o)).filter(function(e){return!!e})))}),o},r=function(e,n,r){var i=null;if(!e.name)return[];if(r.some(function(t){return t.name===e.name&&"type"===t.cat}))return[];e.getFields&&(i=e.getFields());var o=[{search:e.name,name:e.name,cat:"type",description:e.description,isRoot:n,highlight:"type"}];return i?o.concat(t(i,e,n,r.concat(o)).filter(function(e){return!!e})):o},this.index=[],this.rootTypes.forEach(function(e){n.index=n.index.concat(r(e,!0,n.index))});var i=e.getTypeMap();Object.keys(i).forEach(function(e){/^__/.test(e)||(n.index=n.index.concat(r(i[e],!1,n.index)))}),s.log("Index: ",this.index)},e.prototype.searchInputKeyUp=function(e,t){t&&13!==t.keyCode||this.searchDocs(e)},e.prototype.searchDocs=function(e){if("string"!=typeof e&&(e=e.name),!this.hasSearchIndex)return!1;this.updateDocHistory(),this.setDocViewChange.next({view:"search"}),this.searchResult=this.index.filter(function(t){return new RegExp(e,"i").test(t.search)}),s.log(this.searchResult)},e.prototype.cleanName=function(e){return e.replace(/[\[\]!]/g,"")},e.prototype.goBack=function(){this.docHistory.length&&this.setDocViewChange.next(this.docHistory.pop())},e.prototype.goHome=function(){this.setDocViewChange.next({view:"root"}),this.docHistory=[]},e.prototype.updateDocHistory=function(){this.docView&&"search"!==this.docView.view&&this.docHistory.push(Bm({},this.docView))},e.prototype.goToType=function(e){this.updateDocHistory(),this.setDocViewChange.next({view:"type",name:e.replace(/[\[\]!]/g,"")})},e.prototype.goToField=function(e,t){this.updateDocHistory(),this.setDocViewChange.next({view:"field",name:e.replace(/[\[\]!]/g,""),parentType:t.replace(/[\[\]!]/g,"")})},e.prototype.generateQuery=function(e,t){var n="",r=!1;switch(t){case this.gqlSchema.getQueryType()&&this.gqlSchema.getQueryType().name:n+="query";break;case this.gqlSchema.getMutationType()&&this.gqlSchema.getMutationType().name:n+="mutation";break;case this.gqlSchema.getSubscriptionType()&&this.gqlSchema.getSubscriptionType().name:n+="subscription";break;default:n+="fragment _____ on "+t,r=!0}var i=this.generateFieldData(e,t,[],1);n+="{\n"+i.query+"\n}";var o=Bm({},i.meta);return o.hasArgs=r||o.hasArgs,{query:n,meta:o}},e.prototype.generateFieldData=function(e,t,n,r){var i=this,o=this.tabSize||2,a=this.gqlSchema.getType(t).getFields()[e],l={hasArgs:!1},s=" ".repeat(r*o)+a.name;a.args&&a.args.length&&(l.hasArgs=!0,s+="("+a.args.reduce(function(e,t){return e+", "+t.name+": ______"},"").substring(2)+")");var u=this.cleanName(a.type.inspect()),c=this.gqlSchema.getType(u);if(n.filter(function(e){return e.type===u}).length)return{query:"",meta:{}};if(r>=this.addQueryDepthLimit)return{query:"",meta:{}};var p=c.getFields&&c.getFields(),d=null;return p&&(d=Object.keys(p).reduce(function(t,o){if(n.filter(function(e){return e.name===o&&e.type===u}).length)return"";var a=i.generateFieldData(o,u,n.concat([{name:e,type:u}]),r+1),s=a.query;return l.hasArgs=l.hasArgs||a.meta.hasArgs,s?t+"\n"+s:t},"").substring(1)),d&&(s+="{\n"+d+"\n",s+=" ".repeat(r*o)+"}"),{query:s,meta:l}},e.prototype.addToEditor=function(e,t){if(!this.hasSearchIndex)return!1;this.addQueryToEditorChange.next(this.generateQuery(e,t))},e.prototype.exportSDL=function(){this.exportSDLChange.next()},e.prototype.onResize=function(e){this.resizeFactor=e},e}(),Gm=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function qm(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,8,"div",[["class","doc-viewer-navigation__option"],["track-id","go_back_docs"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goBack()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"clr-icon",[["dir","left"],["shape","arrow"]],null,null,null,null,null)),i["\u0275did"](3,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,2,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](6,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,6,0,i["\u0275unv"](t,6,0,i["\u0275nov"](t,7).transform("DOCS_GO_BACK_TEXT")))})}function zm(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"div",[["class","doc-viewer-navigation__option"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goHome()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"clr-icon",[["shape","home"]],null,null,null,null,null)),i["\u0275did"](3,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Wm(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"button",[["clrDropdownItem",""],["type","button"]],[[2,"dropdown-item",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.exportSDL()&&r),r},null,null)),i["\u0275did"](1,4210688,null,0,Xp,[Yp,i.ElementRef,Qp,i.Renderer2],null,null),(e()(),i["\u0275ted"](2,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef])],null,function(e,t){e(t,0,0,!0),e(t,2,0,i["\u0275unv"](t,2,0,i["\u0275nov"](t,3).transform("DOCS_EXPORT_SDL")))})}function Km(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,10,"clr-dropdown-menu",[["clrPosition","bottom-right"]],[[2,"dropdown-menu",null],[2,"is-off-screen",null]],null,null,gf,ff)),i["\u0275did"](1,8568832,null,0,Jp,[i.Injector,[2,Lp],[3,Jp]],{position:[0,"position"]},null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275and"](16777216,null,0,1,null,Wm)),i["\u0275did"](4,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](6,0,null,0,3,"button",[["clrDropdownItem",""],["type","button"]],[[2,"dropdown-item",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.loadSchemaChange.next()&&r),r},null,null)),i["\u0275did"](7,4210688,null,0,Xp,[Yp,i.ElementRef,Qp,i.Renderer2],null,null),(e()(),i["\u0275ted"](8,null,["","..."])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,0,["\n "]))],function(e,t){var n=t.component;e(t,1,0,"bottom-right"),e(t,4,0,n.gqlSchema)},function(e,t){e(t,0,0,!0,i["\u0275nov"](t,1).isOffScreen),e(t,6,0,!0),e(t,8,0,i["\u0275unv"](t,8,0,i["\u0275nov"](t,9).transform("DOCS_LOAD_SCHEMA")))})}function Qm(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"span",[["class","no-link-link"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goToType(e.parent.context.$implicit.name)&&r),r},null,null)),(e()(),i["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.name)})}function $m(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"div",[["class","doc-viewer-item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Qm)),i["\u0275did"](3,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Ym(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$m)),i["\u0275did"](3,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.rootTypes)},null)}function Xm(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"app-doc-viewer-type",[],null,[[null,"goToFieldChange"],[null,"goToTypeChange"],[null,"addToEditorChange"]],function(e,t,n){var r=!0,i=e.component;return"goToFieldChange"===t&&(r=!1!==i.goToField(n.name,n.parentType)&&r),"goToTypeChange"===t&&(r=!1!==i.goToType(n.name)&&r),"addToEditorChange"===t&&(r=!1!==i.addToEditor(n.name,n.parentType)&&r),r},mm,Kv)),i["\u0275did"](1,114688,null,0,Wv,[],{data:[0,"data"],gqlSchema:[1,"gqlSchema"]},{goToFieldChange:"goToFieldChange",goToTypeChange:"goToTypeChange",addToEditorChange:"addToEditorChange"})],function(e,t){var n=t.component;e(t,1,0,n.gqlSchema.getType(n.docView.name),n.gqlSchema)},null)}function Jm(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Xm)),i["\u0275did"](3,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.gqlSchema.getType(n.docView.name))},null)}function ey(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"app-doc-viewer-field",[],null,[[null,"goToFieldChange"],[null,"goToTypeChange"],[null,"addToEditorChange"]],function(e,t,n){var r=!0,i=e.component;return"goToFieldChange"===t&&(r=!1!==i.goToField(n.name,n.parentType)&&r),"goToTypeChange"===t&&(r=!1!==i.goToType(n.name)&&r),"addToEditorChange"===t&&(r=!1!==i.addToEditor(n.name,n.parentType)&&r),r},Tm,bm)),i["\u0275did"](3,114688,null,0,ym,[],{data:[0,"data"],gqlSchema:[1,"gqlSchema"],parentType:[2,"parentType"]},{goToFieldChange:"goToFieldChange",goToTypeChange:"goToTypeChange",addToEditorChange:"addToEditorChange"}),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.gqlSchema.getType(n.docView.parentType).getFields()[n.docView.name],n.gqlSchema,n.docView.parentType)},null)}function ty(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"app-doc-viewer-search-results",[],null,[[null,"goToFieldChange"],[null,"goToTypeChange"]],function(e,t,n){var r=!0,i=e.component;return"goToFieldChange"===t&&(r=!1!==i.goToField(n.name,n.parentType)&&r),"goToTypeChange"===t&&(r=!1!==i.goToType(n.name)&&r),r},Pm,Om)),i["\u0275did"](3,114688,null,0,xm,[],{results:[0,"results"]},{goToFieldChange:"goToFieldChange",goToTypeChange:"goToTypeChange"}),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.searchResult)},null)}function ny(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,ul.NgSwitch,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ym)),i["\u0275did"](4,278528,null,0,ul.NgSwitchCase,[i.ViewContainerRef,i.TemplateRef,ul.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Jm)),i["\u0275did"](7,278528,null,0,ul.NgSwitchCase,[i.ViewContainerRef,i.TemplateRef,ul.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ey)),i["\u0275did"](10,278528,null,0,ul.NgSwitchCase,[i.ViewContainerRef,i.TemplateRef,ul.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ty)),i["\u0275did"](13,278528,null,0,ul.NgSwitchCase,[i.ViewContainerRef,i.TemplateRef,ul.NgSwitch],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.docView.view),e(t,4,0,"root"),e(t,7,0,"type"),e(t,10,0,"field"),e(t,13,0,"search")},null)}function ry(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,70,"div",[["class","app-doc-viewer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,9,"div",[["class","app-doc-loader"]],null,null,null,null,null)),i["\u0275did"](3,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](4,{"show-loader":0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,4,"div",[["class","app-doc-loader-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"img",[["alt",""],["class","anim anim-rotate"],["src","assets/img/logo.svg"]],null,null,null,null,null)),(e()(),i["\u0275ted"](9,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,39,"div",[["class","doc-viewer-header"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,36,"div",[["class","doc-viewer-navigation"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,7,"div",[["class","doc-viewer-navigation--left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,qm)),i["\u0275did"](20,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,zm)),i["\u0275did"](23,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,24,"div",[["class","doc-viewer-navigation--right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,15,"clr-dropdown",[],[[2,"dropdown",null],[2,"open",null]],null,null,hf,df)),i["\u0275prd"](6144,null,Lp,null,[i.ElementRef]),i["\u0275prd"](512,null,Tc,Tc,[]),i["\u0275prd"](1024,null,Qp,$p,[[3,Qp]]),i["\u0275did"](32,180224,null,0,Yp,[[3,Yp],Tc,i.ChangeDetectorRef,Qp],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](34,0,null,0,5,"div",[["class","doc-viewer-navigation__option"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,2,"clr-icon",[["clrDropdownTrigger",""],["shape","ellipsis-horizontal"]],[[2,"dropdown-toggle",null],[2,"dropdown-item",null],[2,"expandable",null],[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==i["\u0275nov"](e,38).onDropdownTriggerClick(n)&&r),r},null,null)),i["\u0275did"](37,16384,null,0,ic,[],null,null),i["\u0275did"](38,16384,null,0,ed,[Yp,Tc],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275and"](16777216,null,0,1,null,Km)),i["\u0275did"](42,147456,null,0,xc,[Tc,i.TemplateRef,i.ViewContainerRef],{open:[0,"open"]},null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](45,0,null,null,4,"div",[["class","doc-viewer-navigation__option"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleDocsChange.next()&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](47,0,null,null,1,"clr-icon",[["shape","times"]],null,null,null,null,null)),i["\u0275did"](48,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](54,0,null,null,9,"div",[["class","doc-viewer-search-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,16777216,null,null,6,"input",[["class","doc-viewer-search-input"],["display-property-name","search"],["ngui-auto-complete",""],["value-property-name","search"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"valueChanged"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i["\u0275nov"](e,57)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i["\u0275nov"](e,57).onTouched()&&r),"compositionstart"===t&&(r=!1!==i["\u0275nov"](e,57)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i["\u0275nov"](e,57)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(o.searchTerm=n)&&r),"keyup"===t&&(r=!1!==o.searchInputKeyUp(o.searchTerm,n)&&r),"valueChanged"===t&&(r=!1!==(n&&o.searchDocs(n))&&r),r},null,null)),i["\u0275did"](57,16384,null,0,sl.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,sl.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[sl.DefaultValueAccessor]),i["\u0275did"](59,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](61,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),i["\u0275did"](62,4931584,null,0,Zm.NguiAutoCompleteDirective,[i.ComponentFactoryResolver,i.ViewContainerRef,[8,null]],{source:[0,"source"],minChars:[1,"minChars"],displayPropertyName:[2,"displayPropertyName"],listFormatter:[3,"listFormatter"],ngModel:[4,"ngModel"]},{ngModelChange:"ngModelChange",valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](65,0,null,null,4,"div",[["class","doc-viewer-items"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ny)),i["\u0275did"](68,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,4,0,n.isLoading);e(t,3,0,"app-doc-loader",r),e(t,20,0,"root"!==n.docView.view&&n.docHistory.length),e(t,23,0,"root"!==n.docView.view),e(t,42,0,null),e(t,59,0,n.searchTerm),e(t,62,0,n.autocompleteSource,2,"search",n.autocompleteListFormatter,n.searchTerm),e(t,68,0,n.gqlSchema)},function(e,t){var n=t.component;e(t,9,0,i["\u0275unv"](t,9,0,i["\u0275nov"](t,10).transform("LOADING_INDICATOR_TEXT"))),e(t,28,0,!0,i["\u0275nov"](t,32).ifOpenService.open),e(t,36,0,i["\u0275nov"](t,38).isRootLevelToggle,!i["\u0275nov"](t,38).isRootLevelToggle,!i["\u0275nov"](t,38).isRootLevelToggle,i["\u0275nov"](t,38).active),e(t,56,0,n.searchInputPlaceholder,i["\u0275nov"](t,61).ngClassUntouched,i["\u0275nov"](t,61).ngClassTouched,i["\u0275nov"](t,61).ngClassPristine,i["\u0275nov"](t,61).ngClassDirty,i["\u0275nov"](t,61).ngClassValid,i["\u0275nov"](t,61).ngClassInvalid,i["\u0275nov"](t,61).ngClassPending)})}function iy(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"div",[["class","app-doc-notice"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n"])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef])],null,function(e,t){e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform("SERVER_NO_INTROSPECTION_SUPPORT")))})}function oy(e){return i["\u0275vid"](2,[(e()(),i["\u0275and"](16777216,null,null,1,null,ry)),i["\u0275did"](1,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,iy)),i["\u0275did"](4,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](6,0,null,null,1,"app-flex-resizer",[],[[2,"is-right",null]],[[null,"resizeChange"]],function(e,t,n){var r=!0;return"resizeChange"===t&&(r=!1!==e.component.onResize(n)&&r),r},dv,pv)),i["\u0275did"](7,114688,null,0,cv,[i.ElementRef,ul.DOCUMENT,i.NgZone],null,{resizeChange:"resizeChange"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.allowIntrospection),e(t,4,0,!n.allowIntrospection),e(t,7,0)},function(e,t){e(t,6,0,i["\u0275nov"](t,7).isRight)})}var ay=function(){function e(){this.subscriptionUrl="",this.subscriptionConnectionParams="",this.showDialog=!1,this.toggleDialogChange=new i.EventEmitter,this.subscriptionUrlChange=new i.EventEmitter,this.subscriptionConnectionParamsChange=new i.EventEmitter,this.subscriptionConnectionParamsEditorConfig={mode:"javascript",json:!0,lineWrapping:!0,dragDrop:!1,autoRefresh:!0,theme:"default subscription-params",gutters:[],autoCloseBrackets:!0,matchBrackets:!0,lint:{},hintOptions:{completeSingle:!1},jump:{}}}return e.prototype.ngOnChanges=function(){this.editor.codeMirror&&this.editor.codeMirror.refresh()},e.prototype.subscriptionUrlInput=function(e){this.subscriptionUrlChange.next(e.target.value)},e}(),ly=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function sy(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{editor:0}),(e()(),i["\u0275eld"](1,0,null,null,53,"clr-modal",[],[[2,"open",null]],[[null,"clrModalOpenChange"],["body","keyup.escape"]],function(e,t,n){var r=!0,o=e.component;return"body:keyup.escape"===t&&(r=!1!==i["\u0275nov"](e,4).close()&&r),"clrModalOpenChange"===t&&(r=!1!==o.toggleDialogChange.next(n)&&r),r},pf,sf)),i["\u0275prd"](8704,null,vd,vd,[ul.DOCUMENT]),i["\u0275prd"](1024,null,Pp,Zp,[]),i["\u0275did"](4,704512,null,0,md,[vd,cc,Pp],{_open:[0,"_open"]},{_openChanged:"clrModalOpenChange"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,1,9,"h3",[["class","modal-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,6,"div",[["class","app-dialog-header"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,2,"div",[["class","app-dialog-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](11,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](13,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,2,26,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,23,"div",[["class","app-dialog-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,3,"div",[["class","app-dialog-section"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,0,"input",[["class","dialog-input"],["placeholder","ws://example.com/subscriptions"],["type","url"]],[[8,"value",0]],[[null,"input"]],function(e,t,n){var r=!0;return"input"===t&&(r=!1!==e.component.subscriptionUrlInput(n)&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,15,"div",[["class","subscription-params-section"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,2,"div",[["class","subscription-params-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](29,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,8,"div",[["class","subscription-params-editor-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,null,null,5,"ngx-codemirror",[["class","subscription-params__input"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==e.component.subscriptionConnectionParamsChange.emit(n)&&r),r},ov,iv)),i["\u0275did"](35,4636672,[[1,4],["editor",4]],0,nv,[i.KeyValueDiffers,i.NgZone],{options:[0,"options"]},null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[nv]),i["\u0275did"](37,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](39,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](45,0,null,3,8,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](47,0,null,null,5,"div",[["class","app-dialog-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](49,0,null,null,2,"button",[["class","app-button active-primary right"],["track-id","close_set_subscription_dialog"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleDialogChange.next(n)&&r),r},null,null)),(e()(),i["\u0275ted"](50,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.showDialog),e(t,35,0,n.subscriptionConnectionParamsEditorConfig),e(t,37,0,n.subscriptionConnectionParams)},function(e,t){var n=t.component;e(t,1,0,i["\u0275nov"](t,4)._open),e(t,11,0,i["\u0275unv"](t,11,0,i["\u0275nov"](t,12).transform("SUBSCRIPTION_URL_TEXT"))),e(t,13,0,i["\u0275unv"](t,13,0,i["\u0275nov"](t,14).transform("SET_SUBSCRIPTION_URL_TEXT"))),e(t,23,0,n.subscriptionUrl),e(t,29,0,i["\u0275unv"](t,29,0,i["\u0275nov"](t,30).transform("SUBSCRIPTION_CONNECTION_PARAMS_TEXT"))),e(t,34,0,i["\u0275nov"](t,39).ngClassUntouched,i["\u0275nov"](t,39).ngClassTouched,i["\u0275nov"](t,39).ngClassPristine,i["\u0275nov"](t,39).ngClassDirty,i["\u0275nov"](t,39).ngClassValid,i["\u0275nov"](t,39).ngClassInvalid,i["\u0275nov"](t,39).ngClassPending),e(t,50,0,i["\u0275unv"](t,50,0,i["\u0275nov"](t,51).transform("SAVE_BUTTON")))})}var uy=function(){function e(){this.historyList=[],this.showDialog=!1,this.toggleDialogChange=new i.EventEmitter,this.restoreHistoryChange=new i.EventEmitter,this.clearHistoryChange=new i.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.restoreHistory=function(e){this.restoreHistoryChange.next(e),this.toggleDialogChange.next()},e.prototype.clearHistory=function(){this.clearHistoryChange.next()},e}(),cy=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function py(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","history-item _track_me"],["track-id","use_history_item"],["track-label","."]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.restoreHistory(e.context.index)&&r),r},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.query)})}function dy(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,41,"clr-modal",[],[[2,"open",null]],[[null,"clrModalOpenChange"],["body","keyup.escape"]],function(e,t,n){var r=!0,o=e.component;return"body:keyup.escape"===t&&(r=!1!==i["\u0275nov"](e,3).close()&&r),"clrModalOpenChange"===t&&(r=!1!==o.toggleDialogChange.next(n)&&r),r},pf,sf)),i["\u0275prd"](8704,null,vd,vd,[ul.DOCUMENT]),i["\u0275prd"](1024,null,Pp,Zp,[]),i["\u0275did"](3,704512,null,0,md,[vd,cc,Pp],{_open:[0,"_open"]},{_openChanged:"clrModalOpenChange"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,1,9,"h3",[["class","modal-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,6,"div",[["class","app-dialog-header"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,2,"div",[["class","app-dialog-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](10,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](12,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,2,10,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,7,"div",[["class","app-dialog-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,4,"div",[["class","history-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,py)),i["\u0275did"](23,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,3,12,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,9,"div",[["class","app-dialog-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,2,"button",[["class","app-button active-primary right"],["track-id","close_history_dialog"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleDialogChange.next(n)&&r),r},null,null)),(e()(),i["\u0275ted"](33,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,2,"button",[["class","app-button active-secondary left"],["track-id","clear_history_items"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clearHistory()&&r),r},null,null)),(e()(),i["\u0275ted"](37,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.showDialog),e(t,23,0,n.historyList)},function(e,t){e(t,0,0,i["\u0275nov"](t,3)._open),e(t,10,0,i["\u0275unv"](t,10,0,i["\u0275nov"](t,11).transform("HISTORY_TEXT"))),e(t,12,0,i["\u0275unv"](t,12,0,i["\u0275nov"](t,13).transform("HISTORY_SUB_TEXT"))),e(t,33,0,i["\u0275unv"](t,33,0,i["\u0275nov"](t,34).transform("DONE_BUTTON"))),e(t,37,0,i["\u0275unv"](t,37,0,i["\u0275nov"](t,38).transform("HISTORY_CLEAR_TEXT")))})}var hy=function(){function e(){this.showDialog=!1,this.heading="[DIALOG_HEADING]",this.subheading="[DIALOG_SUBHEADING]",this.showFooter=!0,this.toggleDialog=new i.EventEmitter}return e.prototype.ngOnInit=function(){},e}(),fy=i["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function gy(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,8,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,5,"div",[["class","app-dialog-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,2,"button",[["class","app-button active-primary right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleDialog.next(n)&&r),r},null,null)),(e()(),i["\u0275ted"](5,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,5,0,i["\u0275unv"](t,5,0,i["\u0275nov"](t,6).transform("SAVE_BUTTON")))})}function vy(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,24,"clr-modal",[],[[2,"open",null]],[[null,"clrModalOpenChange"],["body","keyup.escape"]],function(e,t,n){var r=!0,o=e.component;return"body:keyup.escape"===t&&(r=!1!==i["\u0275nov"](e,3).close()&&r),"clrModalOpenChange"===t&&(r=!1!==o.toggleDialog.next(n)&&r),r},pf,sf)),i["\u0275prd"](8704,null,vd,vd,[ul.DOCUMENT]),i["\u0275prd"](1024,null,Pp,Zp,[]),i["\u0275did"](3,704512,null,0,md,[vd,cc,Pp],{_open:[0,"_open"]},{_openChanged:"clrModalOpenChange"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,1,7,"h3",[["class","modal-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,4,"div",[["class","app-dialog-header"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"div",[["class","app-dialog-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](10,null,["",""])),(e()(),i["\u0275ted"](11,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,2,6,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,3,"div",[["class","app-dialog-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,3,1,null,gy)),i["\u0275did"](23,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.showDialog),e(t,23,0,n.showFooter)},function(e,t){var n=t.component;e(t,0,0,i["\u0275nov"](t,3)._open),e(t,10,0,n.heading),e(t,11,0,n.subheading)})}var my=n("G5J1"),yy=function(){function e(e,t,n,r,i){this.queryService=e,this.gql=t,this.notifyService=n,this.store=r,this.vRef=i,this.apiUrl="",this.httpVerb="",this.initialQuery="",this.query="",this.windowTitle="",this.newCollectionTitle="",this.newCollectionQueryTitle="",this.showHeaderDialog=!1,this.showVariableDialog=!1,this.showSubscriptionUrlDialog=!1,this.showHistoryDialog=!1,this.showAddToCollectionDialog=!1,this.gqlSchema=null,this.subscriptionUrl="",this.subscriptionConnectionParams="",this.historyList=[]}return e.prototype.ngOnInit=function(){var e=this;this.addQueryDepthLimit$=this.store.pipe(Object(d.A)(function(e){return e.settings.addQueryDepthLimit})),this.tabSize$=this.store.pipe(Object(d.A)(function(e){return e.settings.tabSize})),this.collections$=this.store.pipe(Object(d.A)(function(e){return e.collection.list})),this.queryResult$=this.getWindowState().pipe(Object(d.A)(In)),this.showDocs$=this.getWindowState().pipe(Object(d.A)(Bn)),this.docView$=this.getWindowState().pipe(Object(d.A)(Un)),this.docsIsLoading$=this.getWindowState().pipe(Object(d.A)(Gn)),this.headers$=this.getWindowState().pipe(Object(d.A)(zn)),this.variables$=this.getWindowState().pipe(Object(d.A)(Wn)),this.isLoading$=this.getWindowState().pipe(Object(d.A)($n)),this.introspection$=this.getWindowState().pipe(Object(d.A)(Jn)),this.allowIntrospection$=this.getWindowState().pipe(Object(d.A)(er)),this.responseStatus$=this.getWindowState().pipe(Object(d.A)(Vn)),this.responseTime$=this.getWindowState().pipe(Object(d.A)(kn)),this.responseStatusText$=this.getWindowState().pipe(Object(d.A)(Nn)),this.isSubscribed$=this.getWindowState().pipe(Object(d.A)(Fn)),this.subscriptionResponses$=this.getWindowState().pipe(Object(d.A)(Hn)),this.selectedOperation$=this.getWindowState().pipe(Object(d.A)(jn)),this.queryOperations$=this.getWindowState().pipe(Object(d.A)(Rn)),this.streamState$=this.getWindowState().pipe(Object(gr.a)(function(e){return e&&e.stream.url?e.stream.isConnected&&e.stream.client instanceof EventSource?"connected":"uncertain":""})),this.currentCollection$=this.getWindowState().pipe(Object(Jl.a)(function(t){return t&&t.layout.collectionId?e.collections$.pipe(Object(gr.a)(function(e){return e.find(function(e){return e.id===t.layout.collectionId})})):Object(my.b)()})),this.store.pipe(Object(gr.a)(function(t){return t.windows[e.windowId]}),Object(il.a)()).subscribe(function(t){if(!t)return!1;if(e.apiUrl=t.query.url,e.query=t.query.query,e.httpVerb=t.query.httpVerb,e.showHeaderDialog=t.dialogs.showHeaderDialog,e.showVariableDialog=t.dialogs.showVariableDialog,e.showSubscriptionUrlDialog=t.dialogs.showSubscriptionUrlDialog,e.showHistoryDialog=t.dialogs.showHistoryDialog,e.showAddToCollectionDialog=t.dialogs.showAddToCollectionDialog,e.windowTitle=t.layout.title,e.subscriptionUrl=t.query.subscriptionUrl,e.subscriptionConnectionParams=t.query.subscriptionConnectionParams||"",e.historyList=t.history.list,e.gql.isSchema(t.schema.schema))e.gqlSchema=t.schema.schema;else{var n=e.gql.getIntrospectionSchema(t.schema.introspection);n&&e.store.dispatch(new Qe(e.windowId,n))}e.newCollectionQueryTitle=t.layout.title}),this.queryService.loadQuery(this.windowId),this.queryService.loadUrl(this.windowId),this.initSetup()},e.prototype.setApiUrl=function(e){e!==this.apiUrl&&(this.store.dispatch(new V({url:e},this.windowId)),this.store.dispatch(new H(this.windowId)))},e.prototype.setApiMethod=function(e){this.store.dispatch(new k({httpVerb:e},this.windowId))},e.prototype.sendRequest=function(){this.store.dispatch(new q(this.windowId))},e.prototype.cancelRequest=function(){this.store.dispatch(new te(this.windowId))},e.prototype.selectOperation=function(e){this.store.dispatch(new z(this.windowId,{selectedOperation:e})),this.sendRequest()},e.prototype.setQueryEditorState=function(e){this.store.dispatch(new ie(this.windowId,e))},e.prototype.startSubscription=function(){this.store.dispatch(new K(this.windowId))},e.prototype.stopSubscription=function(){this.store.dispatch(new Q(this.windowId))},e.prototype.clearSubscription=function(){this.store.dispatch(new J(this.windowId,{list:[]}))},e.prototype.updateQuery=function(e){this.store.dispatch(new j(e,this.windowId))},e.prototype.toggleHeader=function(e){this.showHeaderDialog!==e&&this.store.dispatch(new Fe(this.windowId))},e.prototype.toggleVariableDialog=function(e){void 0===e&&(e=void 0),this.showVariableDialog!==e&&this.store.dispatch(new He(this.windowId))},e.prototype.toggleSubscriptionUrlDialog=function(e){this.showSubscriptionUrlDialog!==e&&this.store.dispatch(new je(this.windowId))},e.prototype.toggleHistoryDialog=function(e){this.showHistoryDialog!==e&&this.store.dispatch(new Re(this.windowId))},e.prototype.toggleAddToCollectionDialog=function(e){this.showAddToCollectionDialog!==e&&this.store.dispatch(new Pe(this.windowId))},e.prototype.setDocView=function(e){this.store.dispatch(new rt(this.windowId,{docView:e}))},e.prototype.onShowTokenInDocs=function(e){var t=this;this.setDocView(e),this.showDocs$.pipe(Object(Tl.a)(1)).subscribe(function(e){e||t.toggleDocs()})},e.prototype.toggleDocs=function(){this.store.dispatch(new et(this.windowId))},e.prototype.reloadDocs=function(){this.store.dispatch(new H(this.windowId))},e.prototype.addHeader=function(){this.store.dispatch(new _e(this.windowId))},e.prototype.headerKeyChange=function(e,t){this.store.dispatch(new Ae({val:e,i:t},this.windowId))},e.prototype.headerValueChange=function(e,t){this.store.dispatch(new Se({val:e,i:t},this.windowId))},e.prototype.removeHeader=function(e){this.store.dispatch(new Ee(e,this.windowId))},e.prototype.updateVariables=function(e){this.store.dispatch(new xe(e,this.windowId))},e.prototype.addFileVariable=function(){this.store.dispatch(new Oe(this.windowId))},e.prototype.updateFileVariableName=function(e){this.store.dispatch(new Me(this.windowId,{index:e.index,name:e.name}))},e.prototype.updateFileVariableData=function(e){this.store.dispatch(new Ie(this.windowId,{index:e.index,fileData:e.fileData}))},e.prototype.deleteFileVariable=function(e){this.store.dispatch(new Le(this.windowId,{index:e.index}))},e.prototype.updateSubscriptionUrl=function(e){this.store.dispatch(new F({subscriptionUrl:e},this.windowId))},e.prototype.updateSubscriptionConnectionParams=function(e){this.store.dispatch(new $(this.windowId,{connectionParams:e}))},e.prototype.addQueryToEditor=function(e){this.store.dispatch(new j(this.query+"\n"+e.query,this.windowId)),e.meta.hasArgs&&this.notifyService.warning("Fill in the arguments for the query!")},e.prototype.downloadResult=function(){this.store.dispatch(new ee(this.windowId))},e.prototype.restoreHistory=function(e){this.historyList[e]&&this.store.dispatch(new j(this.historyList[e].query,this.windowId))},e.prototype.clearHistory=function(){this.store.dispatch(new yt(this.windowId,{}))},e.prototype.createCollectionAndSaveQueryToCollection=function(){this.store.dispatch(new $t({collectionTitle:this.newCollectionTitle,windowId:this.windowId,windowTitle:this.newCollectionQueryTitle})),this.onCloseAddToCollectionDialog()},e.prototype.saveQueryToCollection=function(e){this.store.dispatch(new Yt({windowId:this.windowId,collectionId:e,windowTitle:this.newCollectionQueryTitle})),this.onCloseAddToCollectionDialog()},e.prototype.updateQueryInCollection=function(){this.store.dispatch(new Xt({windowId:this.windowId}))},e.prototype.onCloseAddToCollectionDialog=function(){this.newCollectionTitle="",this.newCollectionQueryTitle=this.windowTitle,this.toggleAddToCollectionDialog(!1)},e.prototype.exportSDL=function(){this.store.dispatch(new Ye(this.windowId))},e.prototype.loadSchemaFromSDL=function(){this.store.dispatch(new Xe(this.windowId))},e.prototype.exportWindowData=function(){this.store.dispatch(new ht({windowId:this.windowId}))},e.prototype.trackByFn=function(e,t){return e},e.prototype.getWindowState=function(){return this.store.pipe(Object(d.A)((e=this.windowId,function(t){return t.windows[e]})));var e},e.prototype.initSetup=function(){this.store.dispatch(new J(this.windowId,{list:[]})),this.store.dispatch(new Q(this.windowId)),this.store.dispatch(new Sn(this.windowId)),this.store.dispatch(new An(this.windowId))},e}(),by=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Cy(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,24,"div",[["class","set-header-input-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,8,"div",[["class","set-header-input-column"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,5,"app-fancy-input",[["class","set-header-input"],["placeholder","Header key"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==e.component.headerKeyChange(n,e.context.index)&&r),r},gg,pg)),i["\u0275did"](5,114688,null,0,cg,[],{placeholder:[0,"placeholder"]},null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[cg]),i["\u0275did"](7,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](9,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"div",[["class","set-header-input-column"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,5,"app-fancy-input",[["class","set-header-input"],["placeholder","Header value"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==e.component.headerValueChange(n,e.context.index)&&r),r},gg,pg)),i["\u0275did"](15,114688,null,0,cg,[],{placeholder:[0,"placeholder"]},null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[cg]),i["\u0275did"](17,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](19,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,"button",[["class","header-input-remove-button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.removeHeader(e.context.index)&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\xd7"])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,5,0,"Header key"),e(t,7,0,t.context.$implicit.key),e(t,15,0,"Header value"),e(t,17,0,t.context.$implicit.value)},function(e,t){e(t,4,0,i["\u0275nov"](t,9).ngClassUntouched,i["\u0275nov"](t,9).ngClassTouched,i["\u0275nov"](t,9).ngClassPristine,i["\u0275nov"](t,9).ngClassDirty,i["\u0275nov"](t,9).ngClassValid,i["\u0275nov"](t,9).ngClassInvalid,i["\u0275nov"](t,9).ngClassPending),e(t,14,0,i["\u0275nov"](t,19).ngClassUntouched,i["\u0275nov"](t,19).ngClassTouched,i["\u0275nov"](t,19).ngClassPristine,i["\u0275nov"](t,19).ngClassDirty,i["\u0275nov"](t,19).ngClassValid,i["\u0275nov"](t,19).ngClassInvalid,i["\u0275nov"](t,19).ngClassPending)})}function wy(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","add-to-collection__list-item"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.saveQueryToCollection(e.context.$implicit.id)&&r),r},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.title)})}function _y(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,167,"div",[["class","content-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,164,"div",[["class","content-area app-content-area"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,17,"div",[["class","window-loader window-loader--show"]],null,null,null,null,null)),i["\u0275did"](5,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pod"](7,{"window-loader--show":0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,11,"div",[["class","window-loader__content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,0,"img",[["alt",""],["class","anim anim-rotate"],["src","assets/img/logo.svg"]],null,null,null,null,null)),(e()(),i["\u0275ted"](12,null,[" ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275eld"](14,0,null,null,5,"div",[["class","window-loader__actions"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,2,"button",[["class","app-button cancel-request-button"],["track-id","cancel_request"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.cancelRequest()&&r),r},null,null)),(e()(),i["\u0275ted"](17,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,8,"app-url-box",[],null,[[null,"urlChange"],[null,"httpVerbChange"],[null,"sendRequest"],[null,"toggleDocsChange"],[null,"reloadDocsChange"],[null,"addToCollectionChange"],[null,"selectedOperationChange"],[null,"exportWindowChange"],[null,"updateQueryInCollectionChange"]],function(e,t,n){var r=!0,i=e.component;return"urlChange"===t&&(r=!1!==i.setApiUrl(n)&&r),"httpVerbChange"===t&&(r=!1!==i.setApiMethod(n)&&r),"sendRequest"===t&&(r=!1!==i.sendRequest()&&r),"toggleDocsChange"===t&&(r=!1!==i.toggleDocs()&&r),"reloadDocsChange"===t&&(r=!1!==i.reloadDocs()&&r),"addToCollectionChange"===t&&(r=!1!==i.toggleAddToCollectionDialog(!0)&&r),"selectedOperationChange"===t&&(r=!1!==i.selectOperation(n)&&r),"exportWindowChange"===t&&(r=!1!==i.exportWindowData()&&r),"updateQueryInCollectionChange"===t&&(r=!1!==i.updateQueryInCollection()&&r),r},ev,Hg)),i["\u0275did"](24,49152,null,0,Fg,[],{apiUrl:[0,"apiUrl"],httpVerb:[1,"httpVerb"],isSubscribed:[2,"isSubscribed"],isLoading:[3,"isLoading"],showDocs:[4,"showDocs"],selectedOperation:[5,"selectedOperation"],queryOperations:[6,"queryOperations"],streamState:[7,"streamState"],currentCollection:[8,"currentCollection"]},{toggleDocsChange:"toggleDocsChange",reloadDocsChange:"reloadDocsChange",addToCollectionChange:"addToCollectionChange",sendRequest:"sendRequest",urlChange:"urlChange",httpVerbChange:"httpVerbChange",selectedOperationChange:"selectedOperationChange",exportWindowChange:"exportWindowChange",updateQueryInCollectionChange:"updateQueryInCollectionChange"}),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,30,"div",[["class","main-content-area"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](35,0,null,null,27,"div",[["class","row main-content-row"],["data-resize-container",""]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](37,0,null,null,4,"app-query-editor",[],[[4,"flex-grow",null]],[[null,"queryChange"],[null,"sendRequest"],[null,"variablesChange"],[null,"toggleVariableDialog"],[null,"addFileVariableChange"],[null,"fileVariableNameChange"],[null,"fileVariableDataChange"],[null,"deleteFileVariableChange"],[null,"queryEditorStateChange"],[null,"showTokenInDocsChange"]],function(e,t,n){var r=!0,i=e.component;return"queryChange"===t&&(r=!1!==i.updateQuery(n)&&r),"sendRequest"===t&&(r=!1!==i.sendRequest()&&r),"variablesChange"===t&&(r=!1!==i.updateVariables(n)&&r),"toggleVariableDialog"===t&&(r=!1!==i.toggleVariableDialog(n)&&r),"addFileVariableChange"===t&&(r=!1!==i.addFileVariable()&&r),"fileVariableNameChange"===t&&(r=!1!==i.updateFileVariableName(n)&&r),"fileVariableDataChange"===t&&(r=!1!==i.updateFileVariableData(n)&&r),"deleteFileVariableChange"===t&&(r=!1!==i.deleteFileVariable(n)&&r),"queryEditorStateChange"===t&&(r=!1!==i.setQueryEditorState(n)&&r),"showTokenInDocsChange"===t&&(r=!1!==i.onShowTokenInDocs(n)&&r),r},Ev,wv)),i["\u0275did"](38,4833280,[["queryEditor",4]],0,Cv,[Qr,Vr,i.NgZone],{query:[0,"query"],gqlSchema:[1,"gqlSchema"],tabSize:[2,"tabSize"],addQueryDepthLimit:[3,"addQueryDepthLimit"],variables:[4,"variables"],showVariableDialog:[5,"showVariableDialog"]},{sendRequest:"sendRequest",queryChange:"queryChange",variablesChange:"variablesChange",toggleVariableDialog:"toggleVariableDialog",addFileVariableChange:"addFileVariableChange",fileVariableNameChange:"fileVariableNameChange",fileVariableDataChange:"fileVariableDataChange",deleteFileVariableChange:"deleteFileVariableChange",queryEditorStateChange:"queryEditorStateChange",showTokenInDocsChange:"showTokenInDocsChange"}),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](43,0,null,null,7,"app-query-result",[],null,[[null,"downloadResultChange"],[null,"stopSubscriptionChange"],[null,"clearSubscriptionChange"]],function(e,t,n){var r=!0,i=e.component;return"downloadResultChange"===t&&(r=!1!==i.downloadResult()&&r),"stopSubscriptionChange"===t&&(r=!1!==i.stopSubscription()&&r),"clearSubscriptionChange"===t&&(r=!1!==i.clearSubscription()&&r),r},Mv,xv)),i["\u0275did"](44,573440,null,0,Tv,[],{queryResult:[0,"queryResult"],responseTime:[1,"responseTime"],responseStatus:[2,"responseStatus"],responseStatusText:[3,"responseStatusText"],isSubscribed:[4,"isSubscribed"],subscriptionResponses:[5,"subscriptionResponses"],subscriptionUrl:[6,"subscriptionUrl"]},{downloadResultChange:"downloadResultChange",stopSubscriptionChange:"stopSubscriptionChange",clearSubscriptionChange:"clearSubscriptionChange"}),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](52,0,null,null,9,"app-doc-viewer",[],[[4,"flex-grow",null]],[[null,"setDocViewChange"],[null,"toggleDocsChange"],[null,"addQueryToEditorChange"],[null,"exportSDLChange"],[null,"loadSchemaChange"]],function(e,t,n){var r=!0,i=e.component;return"setDocViewChange"===t&&(r=!1!==i.setDocView(n)&&r),"toggleDocsChange"===t&&(r=!1!==i.toggleDocs()&&r),"addQueryToEditorChange"===t&&(r=!1!==i.addQueryToEditor(n)&&r),"exportSDLChange"===t&&(r=!1!==i.exportSDL()&&r),"loadSchemaChange"===t&&(r=!1!==i.loadSchemaFromSDL()&&r),r},oy,Gm)),i["\u0275did"](53,278528,null,0,ul.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pod"](55,{"hide-doc":0}),i["\u0275did"](56,573440,null,0,Um,[Vg,Of.c],{gqlSchema:[0,"gqlSchema"],allowIntrospection:[1,"allowIntrospection"],isLoading:[2,"isLoading"],addQueryDepthLimit:[3,"addQueryDepthLimit"],tabSize:[4,"tabSize"],docView:[5,"docView"]},{toggleDocsChange:"toggleDocsChange",setDocViewChange:"setDocViewChange",addQueryToEditorChange:"addQueryToEditorChange",exportSDLChange:"exportSDLChange",loadSchemaChange:"loadSchemaChange"}),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](65,0,null,null,100,"div",[["class","dialogs"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](67,0,null,null,40,"clr-modal",[],[[2,"open",null]],[[null,"clrModalOpenChange"],["body","keyup.escape"]],function(e,t,n){var r=!0,o=e.component;return"body:keyup.escape"===t&&(r=!1!==i["\u0275nov"](e,70).close()&&r),"clrModalOpenChange"===t&&(r=!1!==o.toggleHeader(n)&&r),r},pf,sf)),i["\u0275prd"](8704,null,vd,vd,[ul.DOCUMENT]),i["\u0275prd"](1024,null,Pp,Zp,[]),i["\u0275did"](70,704512,null,0,md,[vd,cc,Pp],{_open:[0,"_open"]},{_openChanged:"clrModalOpenChange"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](72,0,null,1,9,"h3",[["class","modal-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](74,0,null,null,6,"div",[["class","app-dialog-header"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](76,0,null,null,2,"div",[["class","app-dialog-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](77,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](79,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](83,0,null,2,9,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](85,0,null,null,6,"div",[["class","app-dialog-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,3,null,Cy)),i["\u0275did"](88,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),i["\u0275did"](90,16384,null,0,Mp,[[2,Op]],{trackBy:[0,"trackBy"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](94,0,null,3,12,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](96,0,null,null,9,"div",[["class","app-dialog-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](98,0,null,null,2,"button",[["class","app-button active-grey left"],["track-id","add_header"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addHeader()&&r),r},null,null)),(e()(),i["\u0275ted"](99,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](102,0,null,null,2,"button",[["class","app-button active-primary right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHeader(n)&&r),r},null,null)),(e()(),i["\u0275ted"](103,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](110,0,null,null,1,"app-subscription-url-dialog",[],null,[[null,"toggleDialogChange"],[null,"subscriptionUrlChange"],[null,"subscriptionConnectionParamsChange"]],function(e,t,n){var r=!0,i=e.component;return"toggleDialogChange"===t&&(r=!1!==i.toggleSubscriptionUrlDialog(n)&&r),"subscriptionUrlChange"===t&&(r=!1!==i.updateSubscriptionUrl(n)&&r),"subscriptionConnectionParamsChange"===t&&(r=!1!==i.updateSubscriptionConnectionParams(n)&&r),r},sy,ly)),i["\u0275did"](111,573440,null,0,ay,[],{subscriptionUrl:[0,"subscriptionUrl"],subscriptionConnectionParams:[1,"subscriptionConnectionParams"],showDialog:[2,"showDialog"]},{toggleDialogChange:"toggleDialogChange",subscriptionUrlChange:"subscriptionUrlChange",subscriptionConnectionParamsChange:"subscriptionConnectionParamsChange"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](113,0,null,null,1,"app-history-dialog",[],null,[[null,"toggleDialogChange"],[null,"restoreHistoryChange"],[null,"clearHistoryChange"]],function(e,t,n){var r=!0,i=e.component;return"toggleDialogChange"===t&&(r=!1!==i.toggleHistoryDialog(n)&&r),"restoreHistoryChange"===t&&(r=!1!==i.restoreHistory(n)&&r),"clearHistoryChange"===t&&(r=!1!==i.clearHistory()&&r),r},dy,cy)),i["\u0275did"](114,114688,null,0,uy,[],{historyList:[0,"historyList"],showDialog:[1,"showDialog"]},{toggleDialogChange:"toggleDialogChange",restoreHistoryChange:"restoreHistoryChange",clearHistoryChange:"clearHistoryChange"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](116,0,null,null,48,"app-dialog",[],null,[[null,"toggleDialog"]],function(e,t,n){var r=!0;return"toggleDialog"===t&&(r=!1!==e.component.toggleAddToCollectionDialog(n)&&r),r},vy,fy)),i["\u0275did"](117,114688,null,0,hy,[],{showDialog:[0,"showDialog"],heading:[1,"heading"],subheading:[2,"subheading"],showFooter:[3,"showFooter"]},{toggleDialog:"toggleDialog"}),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](121,0,null,0,42,"div",[["class","add-to-collection-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](123,0,null,null,10,"div",[["class","app-dialog-section"]],null,null,null,null,null)),(e()(),i["\u0275ted"](124,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275eld"](126,0,null,null,6,"input",[["class","dialog-input"],["type","text"]],[[1,"aria-label",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i["\u0275nov"](e,127)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i["\u0275nov"](e,127).onTouched()&&r),"compositionstart"===t&&(r=!1!==i["\u0275nov"](e,127)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i["\u0275nov"](e,127)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(o.newCollectionQueryTitle=n)&&r),r},null,null)),i["\u0275did"](127,16384,null,0,sl.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,sl.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[sl.DefaultValueAccessor]),i["\u0275did"](129,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](131,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](135,0,null,null,8,"div",[["class","app-dialog-section"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](137,0,null,null,5,"div",[["class","add-to-collection__list"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,2,null,wy)),i["\u0275did"](140,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275pid"](131072,ul.AsyncPipe,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](145,0,null,null,17,"div",[["class","app-dialog-section"]],null,null,null,null,null)),(e()(),i["\u0275ted"](146,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275eld"](148,0,null,null,6,"input",[["class","dialog-input"],["type","text"]],[[1,"aria-label",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i["\u0275nov"](e,149)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i["\u0275nov"](e,149).onTouched()&&r),"compositionstart"===t&&(r=!1!==i["\u0275nov"](e,149)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i["\u0275nov"](e,149)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(o.newCollectionTitle=n)&&r),r},null,null)),i["\u0275did"](149,16384,null,0,sl.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,sl.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,sl.NG_VALUE_ACCESSOR,function(e){return[e]},[sl.DefaultValueAccessor]),i["\u0275did"](151,671744,null,0,sl.NgModel,[[8,null],[8,null],[8,null],[6,sl.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,sl.NgControl,null,[sl.NgModel]),i["\u0275did"](153,16384,null,0,sl.NgControlStatus,[[4,sl.NgControl]],null,null),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](156,0,null,null,5,"div",[["class","add-to-collection__actions clearfix"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](158,0,null,null,2,"button",[["class","app-button active-grey right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.createCollectionAndSaveQueryToCollection()&&r),r},null,null)),(e()(),i["\u0275ted"](159,null,["",""])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,7,0,i["\u0275unv"](t,5,1,i["\u0275nov"](t,6).transform(n.isLoading$)));e(t,5,0,"window-loader window-loader--show",r),e(t,24,0,n.apiUrl,n.httpVerb,i["\u0275unv"](t,24,2,i["\u0275nov"](t,25).transform(n.isSubscribed$)),i["\u0275unv"](t,24,3,i["\u0275nov"](t,26).transform(n.isLoading$)),i["\u0275unv"](t,24,4,i["\u0275nov"](t,27).transform(n.showDocs$)),i["\u0275unv"](t,24,5,i["\u0275nov"](t,28).transform(n.selectedOperation$)),i["\u0275unv"](t,24,6,i["\u0275nov"](t,29).transform(n.queryOperations$)),i["\u0275unv"](t,24,7,i["\u0275nov"](t,30).transform(n.streamState$)),i["\u0275unv"](t,24,8,i["\u0275nov"](t,31).transform(n.currentCollection$))),e(t,38,0,n.query,n.gqlSchema,i["\u0275unv"](t,38,2,i["\u0275nov"](t,39).transform(n.tabSize$)),i["\u0275unv"](t,38,3,i["\u0275nov"](t,40).transform(n.addQueryDepthLimit$)),i["\u0275unv"](t,38,4,i["\u0275nov"](t,41).transform(n.variables$)),n.showVariableDialog),e(t,44,0,i["\u0275unv"](t,44,0,i["\u0275nov"](t,45).transform(n.queryResult$)),i["\u0275unv"](t,44,1,i["\u0275nov"](t,46).transform(n.responseTime$)),i["\u0275unv"](t,44,2,i["\u0275nov"](t,47).transform(n.responseStatus$)),i["\u0275unv"](t,44,3,i["\u0275nov"](t,48).transform(n.responseStatusText$)),i["\u0275unv"](t,44,4,i["\u0275nov"](t,49).transform(n.isSubscribed$)),i["\u0275unv"](t,44,5,i["\u0275nov"](t,50).transform(n.subscriptionResponses$)),n.subscriptionUrl);var o=e(t,55,0,!i["\u0275unv"](t,53,0,i["\u0275nov"](t,54).transform(n.showDocs$)));e(t,53,0,o),e(t,56,0,n.gqlSchema,i["\u0275unv"](t,56,1,i["\u0275nov"](t,57).transform(n.allowIntrospection$)),i["\u0275unv"](t,56,2,i["\u0275nov"](t,58).transform(n.docsIsLoading$)),i["\u0275unv"](t,56,3,i["\u0275nov"](t,59).transform(n.addQueryDepthLimit$)),i["\u0275unv"](t,56,4,i["\u0275nov"](t,60).transform(n.tabSize$)),i["\u0275unv"](t,56,5,i["\u0275nov"](t,61).transform(n.docView$))),e(t,70,0,n.showHeaderDialog),e(t,88,0,i["\u0275unv"](t,88,0,i["\u0275nov"](t,89).transform(n.headers$)),n.trackByFn),e(t,90,0,n.trackByFn),e(t,111,0,n.subscriptionUrl,n.subscriptionConnectionParams,n.showSubscriptionUrlDialog),e(t,114,0,n.historyList,n.showHistoryDialog),e(t,117,0,n.showAddToCollectionDialog,i["\u0275unv"](t,117,1,i["\u0275nov"](t,118).transform("SAVE_TO_COLLECTION_HEADER")),i["\u0275unv"](t,117,2,i["\u0275nov"](t,119).transform("SAVE_TO_COLLCTION_SUBTEXT")),!1),e(t,129,0,n.newCollectionQueryTitle),e(t,140,0,i["\u0275unv"](t,140,0,i["\u0275nov"](t,141).transform(n.collections$))),e(t,151,0,n.newCollectionTitle)},function(e,t){e(t,12,0,i["\u0275unv"](t,12,0,i["\u0275nov"](t,13).transform("LOADING_INDICATOR_TEXT"))),e(t,17,0,i["\u0275unv"](t,17,0,i["\u0275nov"](t,18).transform("CANCEL_TEXT"))),e(t,37,0,i["\u0275nov"](t,38).resizeFactor),e(t,52,0,i["\u0275nov"](t,56).resizeFactor),e(t,67,0,i["\u0275nov"](t,70)._open),e(t,77,0,i["\u0275unv"](t,77,0,i["\u0275nov"](t,78).transform("HEADERS_TEXT"))),e(t,79,0,i["\u0275unv"](t,79,0,i["\u0275nov"](t,80).transform("SET_HEADERS_DIALOG_SUBTEXT"))),e(t,99,0,i["\u0275unv"](t,99,0,i["\u0275nov"](t,100).transform("ADD_HEADER_TEXT"))),e(t,103,0,i["\u0275unv"](t,103,0,i["\u0275nov"](t,104).transform("SAVE_BUTTON"))),e(t,124,0,i["\u0275unv"](t,124,0,i["\u0275nov"](t,125).transform("SAVE_TO_COLLECTION_NAME_OF_QUERY"))),e(t,126,0,i["\u0275inlineInterpolate"](1,"",i["\u0275unv"](t,126,0,i["\u0275nov"](t,132).transform("SAVE_TO_COLLECTION_NAME_OF_QUERY")),""),i["\u0275nov"](t,131).ngClassUntouched,i["\u0275nov"](t,131).ngClassTouched,i["\u0275nov"](t,131).ngClassPristine,i["\u0275nov"](t,131).ngClassDirty,i["\u0275nov"](t,131).ngClassValid,i["\u0275nov"](t,131).ngClassInvalid,i["\u0275nov"](t,131).ngClassPending),e(t,146,0,i["\u0275unv"](t,146,0,i["\u0275nov"](t,147).transform("SAVE_TO_COLLECTION_OR_CREATE_NEW_COLLECTION_LABEL"))),e(t,148,0,i["\u0275inlineInterpolate"](1,"",i["\u0275unv"](t,148,0,i["\u0275nov"](t,154).transform("SAVE_TO_COLLECTION_OR_CREATE_NEW_COLLECTION_LABEL")),""),i["\u0275nov"](t,153).ngClassUntouched,i["\u0275nov"](t,153).ngClassTouched,i["\u0275nov"](t,153).ngClassPristine,i["\u0275nov"](t,153).ngClassDirty,i["\u0275nov"](t,153).ngClassValid,i["\u0275nov"](t,153).ngClassInvalid,i["\u0275nov"](t,153).ngClassPending),e(t,159,0,i["\u0275unv"](t,159,0,i["\u0275nov"](t,160).transform("CREATE_COLLECTION_BUTTON")))})}function Ey(e){return null!=e}var Ay=function(){function e(e){this.name=e}return e.COPY=new e("copy"),e.LINK=new e("link"),e.MOVE=new e("move"),e.NONE=new e("none"),e}(),Sy=function(){return function(){this.onDragStartClass="dnd-drag-start",this.onDragEnterClass="dnd-drag-enter",this.onDragOverClass="dnd-drag-over",this.onSortableDragClass="dnd-sortable-drag",this.dragEffect=Ay.MOVE,this.dropEffect=Ay.MOVE,this.dragCursor="move",this.defaultCursor="pointer"}}();function Dy(){return new Ty}var Ty=function(){return function(){this.allowedDropZones=[]}}();function xy(e){return new Oy(e)}var Oy=function(){function e(e){this._config=e}return Object.defineProperty(e.prototype,"elem",{get:function(){return this._elem},enumerable:!0,configurable:!0}),e.prototype.markSortable=function(e){Ey(this._elem)&&this._elem.classList.remove(this._config.onSortableDragClass),Ey(e)&&(this._elem=e,this._elem.classList.add(this._config.onSortableDragClass))},e}(),Ly=function(e){function t(t,n,r,o){var a=e.call(this,t,n,r,o)||this;return a.onDropSuccess=new i.EventEmitter,a.onDragEnter=new i.EventEmitter,a.onDragOver=new i.EventEmitter,a.onDragLeave=new i.EventEmitter,a.dropEnabled=!0,a}return Object(gi.c)(t,e),Object.defineProperty(t.prototype,"droppable",{set:function(e){this.dropEnabled=!!e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowdrop",{set:function(e){this.allowDrop=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dropzones",{set:function(e){this.dropZones=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"effectallowed",{set:function(e){this.effectAllowed=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"effectcursor",{set:function(e){this.effectCursor=e},enumerable:!0,configurable:!0}),t.prototype._onDragEnterCallback=function(e){this._dragDropService.isDragged&&(this._elem.classList.add(this._config.onDragEnterClass),this.onDragEnter.emit({dragData:this._dragDropService.dragData,mouseEvent:e}))},t.prototype._onDragOverCallback=function(e){this._dragDropService.isDragged&&(this._elem.classList.add(this._config.onDragOverClass),this.onDragOver.emit({dragData:this._dragDropService.dragData,mouseEvent:e}))},t.prototype._onDragLeaveCallback=function(e){this._dragDropService.isDragged&&(this._elem.classList.remove(this._config.onDragOverClass),this._elem.classList.remove(this._config.onDragEnterClass),this.onDragLeave.emit({dragData:this._dragDropService.dragData,mouseEvent:e}))},t.prototype._onDropCallback=function(e){var t=e.dataTransfer;(this._dragDropService.isDragged||t&&t.files)&&(this.onDropSuccess.emit({dragData:this._dragDropService.dragData,mouseEvent:e}),this._dragDropService.onDragSuccessCallback&&this._dragDropService.onDragSuccessCallback.emit({dragData:this._dragDropService.dragData,mouseEvent:e}),this._elem.classList.remove(this._config.onDragOverClass),this._elem.classList.remove(this._config.onDragEnterClass))},t}(function(){function e(e,t,n,r){var i=this;this._dragDropService=t,this._config=n,this._cdr=r,this._dragEnabled=!1,this.dropEnabled=!1,this.dropZones=[],this.cloneItem=!1,this._defaultCursor=n.defaultCursor,this._elem=e.nativeElement,this._elem.style.cursor=this._defaultCursor,this._elem.ondragenter=function(e){i._onDragEnter(e)},this._elem.ondragover=function(e){return i._onDragOver(e),null!=e.dataTransfer&&(e.dataTransfer.dropEffect=i._config.dropEffect.name),!1},this._elem.ondragleave=function(e){i._onDragLeave(e)},this._elem.ondrop=function(e){i._onDrop(e)},this._elem.onmousedown=function(e){i._target=e.target},this._elem.ondragstart=function(e){if(!i._dragHandle||i._dragHandle.contains(i._target)){if(i._onDragStart(e),null!=e.dataTransfer){if(e.dataTransfer.setData("text",""),e.dataTransfer.effectAllowed=i.effectAllowed||i._config.dragEffect.name,Ey(i.dragImage))if("string"==typeof i.dragImage)e.dataTransfer.setDragImage(function(e){var t=new HTMLImageElement;return t.src=e,t}(i.dragImage));else if("function"==typeof i.dragImage)e.dataTransfer.setDragImage((0,i.dragImage)());else{var t=i.dragImage;e.dataTransfer.setDragImage(t.imageElement,t.x_offset,t.y_offset)}else if(Ey(i._config.dragImage)){var n=i._config.dragImage;e.dataTransfer.setDragImage(n.imageElement,n.x_offset,n.y_offset)}else i.cloneItem&&(i._dragHelper=i._elem.cloneNode(!0),i._dragHelper.classList.add("dnd-drag-item"),i._dragHelper.style.position="absolute",i._dragHelper.style.top="0px",i._dragHelper.style.left="-1000px",i._elem.parentElement.appendChild(i._dragHelper),e.dataTransfer.setDragImage(i._dragHelper,e.offsetX,e.offsetY));(i._dragHandle?i._dragHandle:i._elem).style.cursor=i._dragEnabled?i.effectCursor?i.effectCursor:i._config.dragCursor:i._defaultCursor}}else e.preventDefault()},this._elem.ondragend=function(e){i._elem.parentElement&&i._dragHelper&&i._elem.parentElement.removeChild(i._dragHelper),i._onDragEnd(e),(i._dragHandle?i._dragHandle:i._elem).style.cursor=i._defaultCursor}}return Object.defineProperty(e.prototype,"dragEnabled",{get:function(){return this._dragEnabled},set:function(e){this._dragEnabled=!!e,this._elem.draggable=this._dragEnabled},enumerable:!0,configurable:!0}),e.prototype.setDragHandle=function(e){this._dragHandle=e},e.prototype.detectChanges=function(){var e=this;setTimeout(function(){e._cdr&&!e._cdr.destroyed&&e._cdr.detectChanges()},250)},e.prototype._onDragEnter=function(e){this._isDropAllowed(e)&&this._onDragEnterCallback(e)},e.prototype._onDragOver=function(e){this._isDropAllowed(e)&&(e.preventDefault&&e.preventDefault(),this._onDragOverCallback(e))},e.prototype._onDragLeave=function(e){this._isDropAllowed(e)&&this._onDragLeaveCallback(e)},e.prototype._onDrop=function(e){this._isDropAllowed(e)&&(this._preventAndStop(e),this._onDropCallback(e),this.detectChanges())},e.prototype._isDropAllowed=function(e){if((this._dragDropService.isDragged||e.dataTransfer&&e.dataTransfer.files)&&this.dropEnabled){if(this.allowDrop)return this.allowDrop(this._dragDropService.dragData);if(0===this.dropZones.length&&0===this._dragDropService.allowedDropZones.length)return!0;for(var t=0;t=this.windowIds.length))return this.windowIds.filter(function(t,n){return n>e}).map(function(e){return t.closeWindow(e)})},e.prototype.closeOtherWindows=function(e){var t=this;return this.windowIds.filter(function(t){return t!==e}).map(function(e){return t.closeWindow(e)})},e.prototype.duplicateWindow=function(e){this.duplicateWindowChange.next(e)},e.prototype.log=function(e){s.log(e)},e}(),jy=i["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function Ry(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","window-switcher__close"],["track-id","close_window_tab"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.closeWindow(e.parent.context.$implicit)&&r),r},null,null)),(e()(),i["\u0275ted"](-1,null,["\xd7"]))],null,null)}function Py(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,9,"div",[["class","nav-link nav-text window-switcher _track_me"],["track-id","window_tab"]],[[2,"active",null]],[[null,"click"],[null,"dblclick"],[null,"contextmenu"]],function(e,t,n){var r=!0,o=e.component;return"contextmenu"===t&&(r=!1!==i["\u0275nov"](e,1).onContextMenu(n)&&r),"click"===t&&(r=!1!==o.activeWindowChange.next(e.context.$implicit)&&r),"dblclick"===t&&(r=!1!==o.editWindowNameInput(e.context.$implicit,i["\u0275nov"](e,4))&&r),r},null,null)),i["\u0275did"](1,16384,null,0,ql,[Ul],{contextMenuSubject:[0,"contextMenuSubject"],contextMenu:[1,"contextMenu"]},null),i["\u0275pod"](2,{windowId:0,wTitle:1,index:2}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,[["wTitle",1]],null,1,"div",[["class","window-switcher__input"]],[[1,"contenteditable",0]],[[null,"blur"],[null,"keydown.enter"]],function(e,t,n){var r=!0,o=e.component;return"blur"===t&&(r=!1!==o.saveWindowName(e.context.$implicit,i["\u0275nov"](e,4).innerText)&&r),"keydown.enter"===t&&(r=!1!==o.saveWindowName(e.context.$implicit,i["\u0275nov"](e,4).innerText)&&r),r},null,null)),(e()(),i["\u0275ted"](5,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ry)),i["\u0275did"](8,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component,r=e(t,2,0,t.context.$implicit,i["\u0275nov"](t,4),t.context.index);e(t,1,0,r,n.windowTabMenu),e(t,8,0,n.windowIds.length>1)},function(e,t){var n=t.component;e(t,0,0,t.context.$implicit===n.activeWindowId),e(t,4,0,t.context.$implicit===n.windowNameEditing),e(t,5,0,n.windows[t.context.$implicit].layout.title)})}function Zy(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"div",[["class","nav-link nav-text window-switcher window-switcher--new-window _track_me"],["track-id","new_window_tab"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.newWindowChange.next(n)&&r),r},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef])],null,function(e,t){e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform("ADD_NEW_WINDOW_TEXT")))})}function By(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,4,"span",[["class","menu-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"clr-icon",[["class","is-solid"],["shape","pencil"]],null,null,null,null,null)),i["\u0275did"](4,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,2,"span",[["class","menu-text"]],null,null,null,null,null)),(e()(),i["\u0275ted"](8,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,8,0,i["\u0275unv"](t,8,0,i["\u0275nov"](t,9).transform("EDIT_WINDOW_TEXT")))})}function Uy(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,4,"span",[["class","menu-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"clr-icon",[["class","is-solid"],["shape","clone"]],null,null,null,null,null)),i["\u0275did"](4,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,2,"span",[["class","menu-text"]],null,null,null,null,null)),(e()(),i["\u0275ted"](8,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,8,0,i["\u0275unv"](t,8,0,i["\u0275nov"](t,9).transform("DUPLICATE_WINDOW_TEXT")))})}function Gy(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](0,null,null,0))],null,null)}function qy(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,4,"span",[["class","menu-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"clr-icon",[["class","is-solid"],["shape","circle"]],null,null,null,null,null)),i["\u0275did"](4,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,2,"span",[["class","menu-text"]],null,null,null,null,null)),(e()(),i["\u0275ted"](8,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,8,0,i["\u0275unv"](t,8,0,i["\u0275nov"](t,9).transform("CLOSE_WINDOW_TEXT")))})}function zy(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,4,"span",[["class","menu-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"clr-icon",[["class","is-solid"],["shape","circle"]],null,null,null,null,null)),i["\u0275did"](4,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,2,"span",[["class","menu-text"]],null,null,null,null,null)),(e()(),i["\u0275ted"](8,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,8,0,i["\u0275unv"](t,8,0,i["\u0275nov"](t,9).transform("CLOSE_WINDOWS_TO_THE_RIGHT_TEXT")))})}function Wy(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,4,"span",[["class","menu-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"clr-icon",[["class","is-solid"],["shape","circle"]],null,null,null,null,null)),i["\u0275did"](4,16384,null,0,ic,[],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,2,"span",[["class","menu-text"]],null,null,null,null,null)),(e()(),i["\u0275ted"](8,null,["\n ","\n "])),i["\u0275pid"](131072,kg,[Vg,i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,8,0,i["\u0275unv"](t,8,0,i["\u0275nov"](t,9).transform("CLOSE_OTHER_WINDOWS_TEXT")))})}function Ky(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{windowTabMenu:0}),(e()(),i["\u0275eld"](1,0,null,null,8,"div",[["class","header-nav window-switcher__container"],["sortablejs",""]],null,null,null,null,null)),i["\u0275did"](2,737280,null,0,ky.SortablejsDirective,[[2,Ny.GLOBALS],Fy.SortablejsService,i.ElementRef,i.NgZone,i.Renderer2],{sortablejs:[0,"sortablejs"],inputOptions:[1,"inputOptions"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Py)),i["\u0275did"](5,278528,null,0,ul.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Zy)),i["\u0275did"](8,16384,null,0,ul.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](11,0,null,null,21,"context-menu",[],null,null,null,Vs,Is)),i["\u0275did"](12,180224,[[1,4]],1,Gl,[Ul,i.ChangeDetectorRef,i.ElementRef,[2,Zl]],null,null),i["\u0275qud"](603979776,2,{menuItems:1}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,null,null,1,function(e,t,n){var r=!0;return"execute"===t&&(r=!1!==e.component.editWindowNameInput(n.item.windowId,n.item.wTitle)&&r),r},By)),i["\u0275did"](16,16384,[[2,4]],0,Pl,[i.TemplateRef,i.ElementRef],null,{execute:"execute"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,null,null,1,function(e,t,n){var r=!0;return"execute"===t&&(r=!1!==e.component.duplicateWindow(n.item.windowId)&&r),r},Uy)),i["\u0275did"](19,16384,[[2,4]],0,Pl,[i.TemplateRef,i.ElementRef],null,{execute:"execute"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,null,null,1,null,Gy)),i["\u0275did"](22,16384,[[2,4]],0,Pl,[i.TemplateRef,i.ElementRef],{divider:[0,"divider"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,null,null,1,function(e,t,n){var r=!0;return"execute"===t&&(r=!1!==e.component.closeWindow(n.item.windowId)&&r),r},qy)),i["\u0275did"](25,16384,[[2,4]],0,Pl,[i.TemplateRef,i.ElementRef],null,{execute:"execute"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,null,null,1,function(e,t,n){var r=!0;return"execute"===t&&(r=!1!==e.component.closeWindowsToTheRight(n.item.index)&&r),r},zy)),i["\u0275did"](28,16384,[[2,4]],0,Pl,[i.TemplateRef,i.ElementRef],null,{execute:"execute"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,null,null,1,function(e,t,n){var r=!0;return"execute"===t&&(r=!1!==e.component.closeOtherWindows(n.item.windowId)&&r),r},Wy)),i["\u0275did"](31,16384,[[2,4]],0,Pl,[i.TemplateRef,i.ElementRef],null,{execute:"execute"}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,"",n.sortableOptions),e(t,5,0,n.windowIds),e(t,8,0,n.windowIds.lengthr?1:nr?-1:nr?-1:nr?1:n-1}),c={list:u.length?u:s,from:hv.Pos(i,r),to:hv.Pos(i,n.end)},p=null;return hv.on(c,"close",function(){Eb(p)}),hv.on(c,"update",function(){Eb(p)}),hv.on(c,"select",function(e,t){Eb(p);var n=e.description;n&&((p=function(e,t,n){var r=function(e,t){for(var n=[],r=2;r *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=i[1],a=i[2],l=i[3];t.push(ew(o,l)),"<"!=a[0]||o==YC&&l==YC||t.push(ew(l,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:aw(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return QC(n,e,t)}),options:aw(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=QC(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:aw(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return lw(VC(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=lw(0,0,"");return i.dynamic=!0,i.strValue=r,i}return lw((n=n||VC(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Ju({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,a=!1;if(!o){a=!0;var l={};r.easing&&(l.easing=r.easing),o=Ju(l)}t.currentTime+=r.duration+r.delay;var s=this.visitStyle(o,t);s.isEmptyStep=a,n=s}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Yu?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(ow(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,l,s,u=t.collectedStyles[t.currentQuerySelector],c=u[r],p=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),p=!1),o=c.startTime),p&&(u[r]={startTime:o,endTime:i}),t.options&&(a=t.errors,l=t.options.params||{},(s=BC(e[r])).length&&s.forEach(function(e){l.hasOwnProperty(e)||a.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,l=!1,s=0,u=e.steps.map(function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ow(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ow(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),l=l||c<0||c>1,a=a||c0&&i0?i==d?1:p*i:o[i],l=a*g;t.currentTime=h+f.delay+l,f.duration=l,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:QC(this,PC(e.animation),t),options:aw(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:aw(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:aw(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=Object(gi.f)(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(tw,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],a=i[1];t.currentQuerySelector=n.length?n+" "+o:o,hC(t.collectedStyles,t.currentQuerySelector,{});var l=QC(this,PC(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:l,originalSelector:e.selector,options:aw(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:VC(e.timings,t.errors,!0);return{type:12,animation:QC(this,PC(e.animation),t),timings:n,options:null}},e}(),iw=function(){return function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function ow(e){return!Array.isArray(e)&&"object"==typeof e}function aw(e){var t;return e?(e=kC(e)).params&&(e.params=(t=e.params)?kC(t):null):e={},e}function lw(e,t,n){return{duration:e,delay:t,easing:n}}function sw(e,t,n,r,i,o,a,l){return void 0===a&&(a=null),void 0===l&&(l=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:l}}var uw=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,Object(gi.g)(t))},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),cw=new RegExp(":enter","g"),pw=new RegExp(":leave","g");function dw(e,t,n,r,i,o,a,l,s,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new hw).buildKeyframes(e,t,n,r,i,o,a,l,s,u)}var hw=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,i,o,a,l,s,u){void 0===u&&(u=[]),s=s||new uw;var c=new gw(e,t,s,r,i,u,[]);c.options=l,c.currentTimeline.setStyles([o],null,c.errors,l),QC(this,n,c);var p=c.timelines.filter(function(e){return e.containsAnimation()});if(p.length&&Object.keys(a).length){var d=p[p.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,c.errors,l)}return p.length?p.map(function(e){return e.buildKeyframes()}):[sw(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?MC(n.duration):null,o=null!=n.delay?MC(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),QC(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=fw);var a=MC(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return QC(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?MC(e.options.delay):0;e.steps.forEach(function(a){var l=t.createSubContext(e.options);o&&l.delayNextStep(o),QC(n,a,l),i=Math.max(i,l.currentTimeline.currentTime),r.push(l.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return VC(t.params?UC(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?MC(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=fw);var a=r,l=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=l.length;var s=null;l.forEach(function(r,i){t.currentQueryIndex=i;var l=t.createSubContext(e.options,r);o&&l.delayNextStep(o),r===t.element&&(s=l.currentTimeline),QC(n,e.animation,l),l.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,l.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),s&&(t.currentTimeline.mergeTimelineCollectedStyles(s),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}var s=t.currentTimeline;l&&s.delayNextStep(l);var u=s.currentTime;QC(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},e}(),fw={},gw=function(){function e(e,t,n,r,i,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new vw(this._driver,t,0),a.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=MC(r.duration)),null!=r.delay&&(i.delay=MC(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=UC(o[e],a,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=fw,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new mw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,i,o){var a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(cw,"."+this._enterClassName)).replace(pw,"."+this._leaveClassName);var l=this._driver.query(this.element,e,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push.apply(a,Object(gi.g)(l))}return i||0!=a.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),a},e}(),vw=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Yu,t._currentKeyframe[e]=Yu}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},a=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Yu}):NC(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=UC(a[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Yu),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var l=NC(o,!0);Object.keys(l).forEach(function(e){var r=l[e];r==rc?t.add(e):r==Yu&&n.add(e)}),r||(l.offset=a/e.duration),i.push(l)});var o=t.size?GC(t.values()):[],a=n.size?GC(n.values()):[];if(r){var l=i[0],s=kC(l);l.offset=0,s.offset=1,i=[l,s]}return sw(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},e}(),mw=function(e){function t(t,n,r,i,o,a,l){void 0===l&&(l=!1);var s=e.call(this,t,n,a.delay)||this;return s.element=n,s.keyframes=r,s.preStyleProps=i,s.postStyleProps=o,s._stretchStartingKeyframe=l,s.timings={duration:a.duration,delay:a.delay,easing:a.easing},s}return Object(gi.c)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,l=n/a,s=NC(e[0],!1);s.offset=0,o.push(s);var u=NC(e[0],!1);u.offset=yw(l),o.push(u);for(var c=e.length-1,p=1;p<=c;p++){var d=NC(e[p],!1);d.offset=yw((n+d.offset*r)/a),o.push(d)}r=a,n=0,i="",e=o}return sw(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(vw);function yw(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var bw=function(){return function(){}}(),Cw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(gi.c)(t,e),t.prototype.normalizePropertyName=function(e,t){return zC(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(ww[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(bw),ww=_w("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".split(","));function _w(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}function Ew(e,t,n,r,i,o,a,l,s,u,c,p,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:l,queriedElements:s,preStyleProps:u,postStyleProps:c,totalTime:p,errors:d}}var Aw={},Sw=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},e.prototype.build=function(e,t,n,r,i,o,a,l,s,u){var c=[],p=this.ast.options&&this.ast.options.params||Aw,d=this.buildStyles(n,a&&a.params||Aw,c),h=l&&l.params||Aw,f=this.buildStyles(r,h,c),g=new Set,v=new Map,m=new Map,y="void"===r,b={params:Object(gi.a)({},p,h)},C=u?[]:dw(e,t,this.ast.animation,i,o,d,f,b,s,c),w=0;if(C.forEach(function(e){w=Math.max(e.duration+e.delay,w)}),c.length)return Ew(t,this._triggerName,n,r,y,d,f,[],[],v,m,w,c);C.forEach(function(e){var n=e.element,r=hC(v,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=hC(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&g.add(n)});var _=GC(g.values());return Ew(t,this._triggerName,n,r,y,d,f,C,_,v,m,w)},e}(),Dw=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=kC(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=UC(o,r,t)),n[e]=o})}}),n},e}(),Tw=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new Dw(e.style,e.options&&e.options.params||{})}),xw(this.states,"true","1"),xw(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new Sw(e,t,n.states))}),this.fallbackTransition=new Sw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function xw(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Ow=new uw,Lw=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=nw(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,i=uC(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[e],l=new Map;if(a?(i=dw(this._driver,t,a,"ng-enter","ng-leave",{},{},n,Ow,o)).forEach(function(e){var t=hC(l,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));l.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Yu)})});var s=sC(i.map(function(e){var t=l.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=s,s.onDestroy(function(){return r.destroy(e)}),this.players.push(s),s},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var i=dC(t,"","","");return cC(this._getPlayer(e),n,i,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),Mw=[],Iw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},kw="__ng_removed",Nw=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=kC(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Fw=new Nw("void"),Hw=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,qw(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var a=hC(this._elementListeners,e,[]),l={name:t,phase:n,callback:r};a.push(l);var s=hC(this._engine.statesByElement,e,{});return s.hasOwnProperty(t)||(qw(e,"ng-trigger"),qw(e,"ng-trigger-"+t),s[t]=Fw),function(){o._engine.afterFlush(function(){var e=a.indexOf(l);e>=0&&a.splice(e,1),o._triggers[t]||delete s[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),a=new Rw(this.id,t,e),l=this._engine.statesByElement.get(e);l||(qw(e,"ng-trigger"),qw(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,l={}));var s=l[t],u=new Nw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&s&&u.absorbOptions(s.options),l[t]=u,s||(s=Fw),"void"===u.value||s.value!==u.value){var c=hC(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var p=o.matchTransition(s.value,u.value,e,u.params),d=!1;if(!p){if(!r)return;p=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:s,toState:u,player:a,isFallbackTransition:d}),d||(qw(e,"ng-animate-queued"),a.onStart(function(){zw(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),qw(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),zw(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n){if(Pw(t)){var r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n)}else this._onRemovalComplete(t,n)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[kw]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,i){return Pw(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}},e.prototype._buildInstruction=function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return sC(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[kw];if(n&&n.setForRemoval){if(e[kw]=Iw,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(_.push(t),n.collectedEnterElements.length){var c=o[kw];if(c&&c.setForMove)return void t.destroy()}var d=!p||!n.driver.containsElement(p,o),h=C.get(o),g=f.get(o),v=n._buildInstruction(e,r,g,h,d);if(v.errors&&v.errors.length)E.push(v);else{if(d)return t.onStart(function(){return RC(o,v.fromStyles)}),t.onDestroy(function(){return jC(o,v.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return RC(o,v.fromStyles)}),t.onDestroy(function(){return jC(o,v.toStyles)}),void i.push(t);v.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,v.timelines),a.push({instruction:v,player:t,element:o}),v.queriedElements.forEach(function(e){return hC(l,e,[]).push(t)}),v.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=s.get(t);r||s.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),v.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(E.length){var S=[];E.forEach(function(e){S.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return S.push("- "+e+"\n")})}),_.forEach(function(e){return e.destroy()}),this.reportError(S)}var D=new Map,T=new Map;a.forEach(function(e){var t=e.element;r.has(t)&&(T.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){hC(D,t,[]).push(e),e.destroy()})});var x=v.filter(function(e){return Kw(e,s,u)}),O=new Map;Bw(O,this.driver,y,u,Yu).forEach(function(e){Kw(e,s,u)&&x.push(e)});var L=new Map;h.forEach(function(e,t){Bw(L,n.driver,new Set(e),s,rc)}),x.forEach(function(e){var t=O.get(e),n=L.get(e);O.set(e,Object(gi.a)({},t,n))});var M=[],I=[],V={};a.forEach(function(e){var t=e.element,a=e.player,l=e.instruction;if(r.has(t)){if(c.has(t))return a.onDestroy(function(){return jC(t,l.toStyles)}),a.disabled=!0,a.overrideTotalTime(l.totalTime),void i.push(a);var s=V;if(T.size>1){for(var u=t,p=[];u=u.parentNode;){var d=T.get(u);if(d){s=d;break}p.push(u)}p.forEach(function(e){return T.set(e,s)})}var h=n._buildAnimation(a.namespaceId,l,D,o,L,O);if(a.setRealPlayer(h),s===V)M.push(a);else{var f=n.playersByElement.get(s);f&&f.length&&(a.parentPlayer=sC(f)),i.push(a)}}else RC(t,l.fromStyles),a.onDestroy(function(){return jC(t,l.toStyles)}),I.push(a),c.has(t)&&i.push(a)}),I.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=sC(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var k=0;k0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new tc(e.duration,e.delay)},e}(),Rw=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new tc,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return cC(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.overrideTotalTime=function(e){this.totalTime=e},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){hC(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Pw(e){return e&&1===e.nodeType}function Zw(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Bw(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(Zw(e))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[kw]=Vw,a.push(r))}),e.set(r,o)});var l=0;return n.forEach(function(e){return Zw(e,o[l++])}),a}function Uw(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var a=t.parentNode;return o=n.has(a)?a:r.has(a)?1:e(a),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var Gw="$$classes";function qw(e,t){if(e.classList)e.classList.add(t);else{var n=e[Gw];n||(n=e[Gw]={}),n[t]=!0}}function zw(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Gw];n&&delete n[t]}}function Ww(e,t,n){sC(n).onDone(function(){return e.processLeaveNode(t)})}function Kw(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var Qw=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new jw(e,t,n),this._timelineEngine=new Lw(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,a=this._triggerCache[o];if(!a){var l=[],s=nw(this._driver,i,l);if(l.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+l.join("\n - "));a=function(e,t){return new Tw(e,t)}(r,s),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=Object(gi.f)(fC(n),2);this._timelineEngine.command(i[0],t,i[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=Object(gi.f)(fC(n),2);return this._timelineEngine.listen(o[0],t,o[1],i)}return this._transitionEngine.listen(e,t,n,r,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),$w="animation",Yw="animationend",Xw=function(){function e(e,t,n,r,i,o,a){var l=this;this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return e.prototype.apply=function(){var e,t,n;t=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=i_(e=this._element,"").trim()).length&&(function(e,t){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},e.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),n_(this._element,this._eventFn,!0))},e.prototype.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=t_(n=i_(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),r_(e,"",n.join(","))))},e}();function Jw(e,t,n){r_(e,"PlayState",n,e_(e,t))}function e_(e,t){var n=i_(e,"");return n.indexOf(",")>0?t_(n.split(","),t):t_([n],t)}function t_(e,t){for(var n=0;n=0)return n;return-1}function n_(e,t,n){n?e.removeEventListener(Yw,t):e.addEventListener(Yw,t)}function r_(e,t,n,r){var i=$w+t;if(null!=r){var o=e.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}e.style[i]=n}function i_(e,t){return e.style[$w+t]}var o_="linear",a_=function(){function e(e,t,n,r,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||o_,this.totalTime=r+i,this._buildStyler()}return e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},e.prototype._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},e.prototype.setPosition=function(e){this._styler.setPosition(e)},e.prototype.getPosition=function(){return this._styler.getPosition()},e.prototype.hasStarted=function(){return this._state>=2},e.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},e.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},e.prototype.pause=function(){this.init(),this._styler.pause()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},e.prototype._buildStyler=function(){var e=this;this._styler=new Xw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e.prototype.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:$C(e.element,r))})}this.currentSnapshot=t},e}(),l_=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r._startingStyles={},r.__initialized=!1,r._styles=TC(n),r}return Object(gi.c)(t,e),t.prototype.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},t.prototype.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},t.prototype.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(tc),s_=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return e.prototype.validateStyleProperty=function(e){return EC(e)},e.prototype.matchesElement=function(e,t){return AC(e,t)},e.prototype.containsElement=function(e,t){return SC(e,t)},e.prototype.query=function(e,t,n){return DC(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.buildKeyframeElement=function(e,t,n){n=n.map(function(e){return TC(e)});var r="@keyframes "+t+" {\n",i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+=""+i+100*t+"% {\n",i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+t+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},e.prototype.animate=function(e,t,n,r,i,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var l=o.filter(function(e){return e instanceof a_}),s={};WC(n,r)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=KC(e,t,s));if(0==n)return new l_(e,u);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(p);var d=new a_(e,t,c,n,r,i,u);return d.onDestroy(function(){var e;(e=p).parentNode.removeChild(e)}),d},e.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},e}(),u_=function(){function e(e,t,n){this.element=e,this.keyframes=t,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:$C(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),c_=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(p_().toString()),this._cssKeyframesDriver=new s_}return e.prototype.validateStyleProperty=function(e){return EC(e)},e.prototype.matchesElement=function(e,t){return AC(e,t)},e.prototype.containsElement=function(e,t){return SC(e,t)},e.prototype.query=function(e,t,n){return DC(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},e.prototype.animate=function(e,t,n,r,i,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var l={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(l.easing=i);var s={},u=o.filter(function(e){return e instanceof u_});return WC(n,r)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})}),t=KC(e,t=t.map(function(e){return NC(e,!1)}),s),new u_(e,t,l)},e}();function p_(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var d_=function(e){function t(t,n){var r=e.call(this)||this;return r._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}}),r}return Object(gi.c)(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Xu(e):e;return g_(this._renderer,null,t,"register",[n]),new h_(t,this._renderer)},t}(Qu),h_=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return Object(gi.c)(t,e),t.prototype.create=function(e,t){return new f_(this._id,e,t||{},this._renderer)},t}($u),f_=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n=0&&e0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Q_=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(l){i={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},X_=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}return Object(gi.c)(t,e),t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.ofType=function(){for(var e=[],t=0;t1){var l=e.data.query.queryEditorState&&e.data.query.queryEditorState.isFocused&&c.gqlService.getOperationNameAtIndex(t,e.data.query.queryEditorState.cursorIndex);if(s.log(l,e.data.query.queryEditorState),!(o&&-1!==a.map(function(e){return e.name&&e.name.value}).indexOf(o)||(o=l)))return c.notifyService.warning("You have more than one query operations.\n You need to select the one you want to run from the dropdown."),c.store.dispatch(new z(e.windowId,{selectedOperation:""})),Object(my.b)()}else c.store.dispatch(new z(e.windowId,{selectedOperation:""}));c.store.dispatch(new g(e.windowId));var u=(new Date).getTime(),p=0,d="";try{r&&JSON.parse(r)}catch(h){return c.notifyService.error("Looks like your variables is not a valid JSON string."),c.store.dispatch(new v(e.windowId)),Object(my.b)()}return c.electronAppService.setHeaders(i),s.log("Sending.."),c.gqlService.sendRequest(n,{query:t,variables:r,headers:i,method:e.data.query.httpVerb,selectedOperation:o,files:e.data.variables.files}).pipe(Object(gr.a)(function(e){return p=e.status,d=e.statusText,e.body}),Object(gr.a)(function(t){return new P(t,e.windowId)}),Object(vr.a)(function(t){var n="Server Error";return s.log(t),p=t.status,d=t.statusText,t.status&&(n=t.error),Object(Yr.a)(new P(n,e.windowId))}),Object(br.a)(function(){var t=(new Date).getTime();c.store.dispatch(new W(e.windowId,{responseStatus:p,responseTime:t-u,responseStatusText:d})),c.store.dispatch(new v(e.windowId))}))})),this.showUrlSetAlert$=this.actions$.ofType(C).pipe(Object(Jl.a)(function(e){var t=c.environmentService.hydrate(e.payload.url);return ce.isUri(t)?c.notifyService.success("URL has been set."):c.notifyService.error("The URL is invalid!"),Object(my.b)()})),this.getGqlSchema$=this.actions$.ofType(Ue,Ge).pipe(Object(Jl.a)(function(e){var t=c.gqlService.getIntrospectionSchema(e.payload);return t?Object(Yr.a)(new Qe(e.windowId,t)):Object(my.b)()})),this.loadSDLSchema$=this.actions$.ofType(ze).pipe(Object(Jl.a)(function(e){return ve({accept:".gql"}).then(function(t){try{var n=c.gqlService.sdlToSchema(t);if(n)return c.notifyService.success("Loaded schema successfully"),c.store.dispatch(new Qe(e.windowId,n))}catch(r){c.notifyService.error("There was a problem loading the schema"),s.error("Error while loading schema",r)}}),Object(my.b)()})),this.saveUrlToDb$=this.actions$.ofType(C).pipe(Object(gr.a)(function(e){return c.queryService.storeUrl(e.payload.url,e.windowId),new cE})),this.saveQueryToDb$=this.actions$.ofType(_).pipe(Object(uE.a)(function(){return Object(lE.a)(500)}),Object(gr.a)(function(e){return c.queryService.storeQuery(e.payload,e.windowId),new pE})),this.saveIntrospectionToDb$=this.actions$.ofType(Ue).pipe(Object(gr.a)(function(e){return c.queryService.storeIntrospection(e.payload,e.windowId),new dE})),this.getIntrospectionForUrl$=this.actions$.ofType(w).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){var t=c.environmentService.hydrate(e.data.query.url),n=c.environmentService.hydrateHeaders(e.data.headers);return t?(c.store.dispatch(new tt(e.windowId)),c.gqlService.setHeaders(n).setHTTPMethod(e.data.query.httpVerb).getIntrospectionRequest(t).pipe(Object(vr.a)(function(t){var n=t.error||t,r=!0;return n.errors&&n.errors.forEach(function(e){"GRAPHQL_VALIDATION_ERROR"===e.code&&(r=!1)}),r?c.notifyService.warning("\n Seems like something is broken. Please check that the URL is valid,\n and the server is up and running properly.\n "):c.store.dispatch(new $e(!1,e.windowId)),Object(Yr.a)(new nt(e.windowId))}),Object(gr.a)(function(t){var n=t.body&&t.body.data,r=t.headers&&t.headers.get("X-GraphQL-Event-Stream");return c.store.dispatch(new nt(e.windowId)),c.store.dispatch(new _n(e.windowId,{streamUrl:r})),r&&c.store.dispatch(new An(e.windowId)),n?(c.store.dispatch(new $e(!0,e.windowId)),new We(n,e.windowId)):new We(n,e.windowId)}))):Object(my.b)()})),this.showEditorSetAlert$=this.actions$.ofType(I).pipe(Object(Jl.a)(function(e){return Object(lE.a)(3e3).pipe(Object(Jl.a)(function(){return Object(Yr.a)(new ne(e.windowId))}))})),this.notifyExperimental$=this.actions$.ofType(f).pipe(Object(Jl.a)(function(){return c.dbService.getItem("exp_add_query_seen").subscribe(function(e){e||(c.notifyService.info("\n This feature is experimental, and still in beta.\n Click here to submit bugs, improvements, etc.\n ",null,{tapToDismiss:!0,data:{url:"https://github.com/imolorhe/altair/issues/new"}}),c.dbService.setItem("exp_add_query_seen",!0))}),Object(my.b)()})),this.downloadResult$=this.actions$.ofType(M).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){return fe(e.data.query.response,e.data.layout.title),Object(my.b)()})),this.startSubscription$=this.actions$.ofType(O).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){var t=void 0,n=c.environmentService.hydrate(e.data.query.subscriptionUrl),r=c.environmentService.hydrate(e.data.query.query),i=c.environmentService.hydrate(e.data.variables.variables),o=function(t,n){return Array.isArray(t)&&(t=t[0]),c.notifyService.error("\n An error occurred in subscription.
    \n Error: "+(n=n||t.message||t.stack)+"\n "),c.store.dispatch(new Q(e.windowId)),Object(my.b)()};try{c.gqlService.closeSubscriptionClient(e.data.query.subscriptionClient);try{var a=c.environmentService.hydrate(e.data.query.subscriptionConnectionParams);t=a?JSON.parse(a):void 0}catch(u){return c.store.dispatch(new je(e.windowId)),o(u,"Your connection parameters is not a valid JSON object.")}var l=c.gqlService.createSubscriptionClient(n,{connectionParams:t,connectionCallback:function(e){if(e)return s.log("Subscription connection error",e),o(e);s.log("Connected subscription.")}});return l.request({query:r,variables:JSON.parse(i)}).subscribe({next:function(t){var n="";try{n=JSON.stringify(t)}catch(u){s.error("Invalid subscription response format."),n="ERROR: Invalid subscription response format."}c.store.dispatch(new X(e.windowId,{response:n,responseTime:(new Date).getTime()})),c.notifyService.pushNotify(n,e.data.layout.title,{onclick:function(){c.store.dispatch(new wt({windowId:e.windowId}))}}),s.log(t)},error:function(e){return s.log("Err",e),o(e)},complete:function(){s.log("Subscription complete.")}}),Object(Yr.a)(new Y(e.windowId,{subscriptionClient:l}))}catch(u){return s.error("An error occurred starting the subscription.",u),o(u)}})),this.stopSubscription$=this.actions$.ofType(L).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){return c.gqlService.closeSubscriptionClient(e.data.query.subscriptionClient),Object(Yr.a)(new Y(e.windowId,{subscriptionClient:null}))})),this.prettifyQuery$=this.actions$.ofType(E).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){var t="";try{t=c.gqlService.prettify(e.data.query.query)}catch(n){s.log(n),c.notifyService.error("Your query does not appear to be valid. Please check it.")}return t?Object(Yr.a)(new j(t,e.windowId)):Object(my.b)()})),this.compressQuery$=this.actions$.ofType(A).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){var t="";try{s.log("We compress.."),t=c.gqlService.compress(e.data.query.query),s.log("Compressed..")}catch(n){s.log(n),c.notifyService.error("Your query does not appear to be valid. Please check it.")}return t?Object(Yr.a)(new j(t,e.windowId)):Object(my.b)()})),this.exportSDL$=this.actions$.ofType(qe).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){if(e.data.schema.schema){var t=c.gqlService.getSDL(e.data.schema.schema);t&&he(t,"sdl",{fileType:"gql"})}return Object(my.b)()})),this.copyAsCurl$=this.actions$.ofType(S).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){var t=c.environmentService.hydrate(e.data.query.url),n=c.environmentService.hydrate(e.data.query.query),r=c.environmentService.hydrate(e.data.variables.variables);try{var i=oi({url:t,method:e.data.query.httpVerb,headers:e.data.headers.reduce(function(e,t){return e[t.key]=c.environmentService.hydrate(t.value),e},{}),data:{query:n,variables:JSON.parse(r)}});s.log(i),be(i),c.notifyService.success("Copied cURL command to clipboard.")}catch(o){s.log("Error while copying as curl",o)}return Object(my.b)()})),this.convertToNamedQuery$=this.actions$.ofType(D).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){try{var t=c.gqlService.nameQuery(e.data.query.query);return Object(Yr.a)(new j(t,e.windowId))}catch(n){s.log(n),c.notifyService.error("Your query does not appear to be valid. Please check it.")}return Object(my.b)()})),this.showDonationAlert$=this.actions$.ofType(T).pipe(Object(Jl.a)(function(e){return c.donationService.trackAndCheckIfEligible().subscribe(function(e){e&&c.store.dispatch(new Ht)}),Object(my.b)()})),this.startStreamClient$=this.actions$.ofType(Cn).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){if(!e.data.stream.url)return Object(my.b)();var t=new URL(c.environmentService.hydrate(e.data.query.url)),n=new URL(c.environmentService.hydrate(e.data.stream.url),t);if(t.host!==n.host)return c.notifyService.error("\n The stream and endpoint domains do not match. Please check your server implementation.\n ["+t.host+" != "+n.host+"]\n "),Object(my.b)();try{c.gqlService.closeStreamClient(e.data.stream.client);var r=c.gqlService.createStreamClient(n),i=e.action.payload.backoff||200;return r.addEventListener("change",function(){c.store.dispatch(new H(e.windowId))},!1),r.addEventListener("open",function(){c.store.dispatch(new Dn(e.windowId,{failed:null})),c.store.dispatch(new Tn(e.windowId,{connected:!0})),i=200},!1),r.addEventListener("error",function(t){c.store.dispatch(new Dn(e.windowId,{failed:t})),setTimeout(function(){i=Math.min(1.7*i,3e4),c.store.dispatch(new An(e.windowId,{backoff:i}))},i)},!1),Object(Yr.a)(new En(e.windowId,{streamClient:r}))}catch(o){s.error("An error occurred starting the stream.",o)}})),this.stopStreamClient$=this.actions$.ofType(wn).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}}),Object(Jl.a)(function(e){return c.gqlService.closeStreamClient(e.data.stream.client),Object(Yr.a)(new En(e.windowId,{streamClient:null}))}))}return e.prototype.getVariablesObj=function(e){var t={};return e.forEach(function(e){e.key&&e.value&&(t[e.key]=JSON.parse(e.value))}),t},Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"sendQueryRequest$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"showUrlSetAlert$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"getGqlSchema$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"loadSDLSchema$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"saveUrlToDb$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"saveQueryToDb$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"saveIntrospectionToDb$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"getIntrospectionForUrl$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"showEditorSetAlert$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"notifyExperimental$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"downloadResult$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"startSubscription$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"stopSubscription$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"prettifyQuery$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"compressQuery$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"exportSDL$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"copyAsCurl$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"convertToNamedQuery$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"showDonationAlert$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"startStreamClient$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"stopStreamClient$",void 0),e}(),fE=function(){function e(e,t,n){var r=this;this.actions$=e,this.store=t,this.windowService=n,this.addWindowID$=this.actions$.ofType(at).pipe(Object(sE.a)(this.store,function(e,t){return{windows:t.windows,windowIds:t.windowsMeta.windowIds,action:e}}),Object(Jl.a)(function(e){var t=Object.keys(e.windows),n=e.windowIds,r=n.concat(t.filter(function(e){return!n.includes(e)}));return Object(Yr.a)(new _t({ids:r}))})),this.removeWindowID$=this.actions$.ofType(lt).pipe(Object(sE.a)(this.store,function(e,t){return{windows:t.windows,windowIds:t.windowsMeta.windowIds,action:e}}),Object(Jl.a)(function(e){var t=Object.keys(e.windows),n=e.windowIds.filter(function(e){return t.includes(e)});return Object(Yr.a)(new _t({ids:n}))})),this.exportWindow$=this.actions$.ofType(st).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e}}),Object(Jl.a)(function(e){return r.windowService.getWindowExportData(e.windowId).subscribe(function(t){fe(t,e.data.layout.title,{fileType:"agq"})}),Object(my.b)()})),this.importWindow$=this.actions$.ofType(ut).pipe(Object(Jl.a)(function(e){return ve({accept:".agq"}).then(function(e){r.windowService.importWindowDataFromJson(e)}),Object(my.b)()})),this.importWindowFromCurl$=this.actions$.ofType(ct).pipe(Object(Jl.a)(function(e){return r.windowService.importWindowDataFromCurl(e.payload.data),Object(my.b)()}))}return Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"addWindowID$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"removeWindowID$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"exportWindow$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"importWindow$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"importWindowFromCurl$",void 0),e}(),gE=function(){function e(e,t,n,r,i){var o=this;this.actions$=e,this.store=t,this.collectionService=n,this.windowService=r,this.notifyService=i,this.createCollectionAndSaveQueryToCollection$=this.actions$.ofType(Zt).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e}}),Object(Jl.a)(function(e){return o.windowService.getWindowExportData(e.windowId).subscribe(function(t){var n=t;e.action.payload.windowTitle&&(n.windowName=e.action.payload.windowTitle),o.collectionService.create({title:e.action.payload.collectionTitle,queries:[n]}).subscribe(function(){o.notifyService.success("Created collection."),o.store.dispatch(new on)})}),Object(my.b)()})),this.saveQueryToCollection$=this.actions$.ofType(Bt).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e}}),Object(Jl.a)(function(e){return o.windowService.getWindowExportData(e.windowId).subscribe(function(t){var n=t;e.action.payload.windowTitle&&(n.windowName=e.action.payload.windowTitle),o.collectionService.addQuery(e.action.payload.collectionId,n).subscribe(function(){o.notifyService.success("Added query to collection."),o.store.dispatch(new on)})}),Object(my.b)()})),this.updateQueryInCollection$=this.actions$.ofType(Ut).pipe(Object(sE.a)(this.store,function(e,t){return{data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e}}),Object(Jl.a)(function(e){return o.windowService.getWindowExportData(e.windowId).subscribe(function(t){o.collectionService.updateQuery(e.data.layout.collectionId,e.data.layout.windowIdInCollection,t).subscribe(function(){o.notifyService.success("Updated query in collection."),o.store.dispatch(new on)})}),Object(my.b)()})),this.loadCollections$=this.actions$.ofType(zt).pipe(Object(Jl.a)(function(e){return o.collectionService.getAll().pipe(Object(gr.a)(function(e){return new tn({collections:e})}))})),this.deleteQueryFromCollection$=this.actions$.ofType(Gt).pipe(Object(Jl.a)(function(e){return o.collectionService.deleteQuery(e.payload.collectionId,e.payload.query).pipe(Object(br.a)(function(){return o.notifyService.success("Deleted query from collection.")}),Object(gr.a)(function(){return new on}))})),this.updateCollection$=this.actions$.ofType(Wt).pipe(Object(Jl.a)(function(e){return o.collectionService.updateCollection(e.payload.collectionId,e.payload.collection).pipe(Object(br.a)(function(){return o.notifyService.success("Updated collection.")}),Object(gr.a)(function(){return new on}))})),this.deleteCollection$=this.actions$.ofType(qt).pipe(Object(Jl.a)(function(e){return o.collectionService.deleteCollection(e.payload.collectionId).pipe(Object(br.a)(function(){return o.notifyService.success("Deleted query from collection.")}),Object(gr.a)(function(){return new on}))})),this.exportCollection$=this.actions$.ofType(Qt).pipe(Object(Jl.a)(function(e){return o.collectionService.getExportCollectionData(e.payload.collectionId).subscribe(function(e){fe(e,e.title,{fileType:"agc"})}),Object(my.b)()})),this.importCollection$=this.actions$.ofType(Kt).pipe(Object(Jl.a)(function(){return ve({accept:".agc"}).then(function(e){return o.collectionService.importCollectionDataFromJson(e).subscribe(function(){o.notifyService.success("Successfully imported collection."),o.store.dispatch(new on)})}),Object(my.b)()}))}return Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"createCollectionAndSaveQueryToCollection$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"saveQueryToCollection$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"updateQueryInCollection$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"loadCollections$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"deleteQueryFromCollection$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"updateCollection$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"deleteCollection$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"exportCollection$",void 0),Object(gi.b)([q_(),Object(gi.d)("design:type",$r.a)],e.prototype,"importCollection$",void 0),e}(),vE=i["\u0275cmf"](rl,[ll],function(e){return i["\u0275mod"]([i["\u0275mpd"](512,i.ComponentFactoryResolver,i["\u0275CodegenComponentFactoryResolver"],[[8,[El,Bs,Wu,Ef,Rd,th,Oh,Rh,Gh,Xh,lf,xf,bf,Xf,aC]],[3,i.ComponentFactoryResolver],i.NgModuleRef]),i["\u0275mpd"](5120,i.LOCALE_ID,i["\u0275angular_packages_core_core_k"],[[3,i.LOCALE_ID]]),i["\u0275mpd"](4608,ul.NgLocalization,ul.NgLocaleLocalization,[i.LOCALE_ID,[2,ul["\u0275angular_packages_common_common_a"]]]),i["\u0275mpd"](4608,i.Compiler,i.Compiler,[]),i["\u0275mpd"](5120,i.APP_ID,i["\u0275angular_packages_core_core_f"],[]),i["\u0275mpd"](5120,i.IterableDiffers,i["\u0275angular_packages_core_core_i"],[]),i["\u0275mpd"](5120,i.KeyValueDiffers,i["\u0275angular_packages_core_core_j"],[]),i["\u0275mpd"](4608,Of.c,Of.l,[ul.DOCUMENT]),i["\u0275mpd"](6144,i.Sanitizer,null,[Of.c]),i["\u0275mpd"](4608,Of.f,Of.h,[]),i["\u0275mpd"](5120,Of.d,function(e,t,n,r,i,o,a,l){return[new Of.j(e,t,n),new Of.o(r),new Of.n(i,o,a,l)]},[ul.DOCUMENT,i.NgZone,i.PLATFORM_ID,ul.DOCUMENT,ul.DOCUMENT,Of.f,i["\u0275Console"],[2,Of.g]]),i["\u0275mpd"](4608,Of.e,Of.e,[Of.d,i.NgZone]),i["\u0275mpd"](135680,Of.m,Of.m,[ul.DOCUMENT]),i["\u0275mpd"](4608,Of.k,Of.k,[Of.e,Of.m]),i["\u0275mpd"](5120,OC,C_,[]),i["\u0275mpd"](5120,bw,w_,[]),i["\u0275mpd"](4608,Qw,b_,[ul.DOCUMENT,OC,bw]),i["\u0275mpd"](5120,i.RendererFactory2,__,[Of.k,Qw,i.NgZone]),i["\u0275mpd"](6144,Of.p,null,[Of.m]),i["\u0275mpd"](4608,i.Testability,i.Testability,[i.NgZone]),i["\u0275mpd"](4608,Qu,d_,[i.RendererFactory2,Of.b]),i["\u0275mpd"](4608,sl["\u0275angular_packages_forms_forms_j"],sl["\u0275angular_packages_forms_forms_j"],[]),i["\u0275mpd"](4608,mr.HttpXsrfTokenExtractor,mr["\u0275angular_packages_common_http_http_g"],[ul.DOCUMENT,i.PLATFORM_ID,mr["\u0275angular_packages_common_http_http_e"]]),i["\u0275mpd"](4608,mr["\u0275angular_packages_common_http_http_h"],mr["\u0275angular_packages_common_http_http_h"],[mr.HttpXsrfTokenExtractor,mr["\u0275angular_packages_common_http_http_f"]]),i["\u0275mpd"](5120,mr.HTTP_INTERCEPTORS,function(e){return[e]},[mr["\u0275angular_packages_common_http_http_h"]]),i["\u0275mpd"](4608,Fy.SortablejsService,Fy.SortablejsService,[]),i["\u0275mpd"](4608,Ss,Ss,[cs,ms,i.ComponentFactoryResolver,Es,vs,i.Injector,i.NgZone,ul.DOCUMENT,Ls,[2,ul.Location]]),i["\u0275mpd"](5120,Ds,Ts,[Ss]),i["\u0275mpd"](5120,bg,tl,[mr.HttpClient]),i["\u0275mpd"](4608,Eg,Ag,[]),i["\u0275mpd"](4608,xg,Og,[]),i["\u0275mpd"](4608,wg,_g,[]),i["\u0275mpd"](4608,Lg,Lg,[]),i["\u0275mpd"](4608,Vg,Vg,[Lg,bg,Eg,xg,wg,Ig,Mg]),i["\u0275mpd"](4608,Ul,Ul,[Ss,cs]),i["\u0275mpd"](4608,Sy,Sy,[]),i["\u0275mpd"](5120,Ty,Dy,[]),i["\u0275mpd"](5120,Oy,xy,[Sy]),i["\u0275mpd"](4608,kv,kv,[i.PLATFORM_ID,[2,mr.HttpClient],Of.c,Iv]),i["\u0275mpd"](135680,d.k,d.k,[d.a,d.i,d.j,d.d]),i["\u0275mpd"](5120,S_.c,S_.d,[S_.k,S_.i]),i["\u0275mpd"](4608,yr,yr,[mr.HttpClient]),i["\u0275mpd"](4608,fi,fi,[d.m,li,di,i.NgZone]),i["\u0275mpd"](1073742336,ul.CommonModule,ul.CommonModule,[]),i["\u0275mpd"](1024,i.ErrorHandler,Of.q,[]),i["\u0275mpd"](1024,i.APP_INITIALIZER,function(e){return[Of.r(e)]},[[2,i.NgProbeToken]]),i["\u0275mpd"](512,i.ApplicationInitStatus,i.ApplicationInitStatus,[[2,i.APP_INITIALIZER]]),i["\u0275mpd"](131584,i.ApplicationRef,i.ApplicationRef,[i.NgZone,i["\u0275Console"],i.Injector,i.ErrorHandler,i.ComponentFactoryResolver,i.ApplicationInitStatus]),i["\u0275mpd"](1073742336,i.ApplicationModule,i.ApplicationModule,[i.ApplicationRef]),i["\u0275mpd"](1073742336,Of.a,Of.a,[[3,Of.a]]),i["\u0275mpd"](1073742336,A_,A_,[]),i["\u0275mpd"](1073742336,sl["\u0275angular_packages_forms_forms_bc"],sl["\u0275angular_packages_forms_forms_bc"],[]),i["\u0275mpd"](1073742336,sl.FormsModule,sl.FormsModule,[]),i["\u0275mpd"](1073742336,mr.HttpClientXsrfModule,mr.HttpClientXsrfModule,[]),i["\u0275mpd"](1073742336,mr.HttpClientModule,mr.HttpClientModule,[]),i["\u0275mpd"](1073742336,Ng,Ng,[]),i["\u0275mpd"](1073742336,x_,x_,[]),i["\u0275mpd"](1073742336,O_.SortablejsModule,O_.SortablejsModule,[]),i["\u0275mpd"](1073742336,Pv,Pv,[]),i["\u0275mpd"](1073742336,Uv,Uv,[]),i["\u0275mpd"](1073742336,Gv,Gv,[]),i["\u0275mpd"](1073742336,qv,qv,[]),i["\u0275mpd"](1073742336,Bv,Bv,[]),i["\u0275mpd"](1073742336,zv,zv,[]),i["\u0275mpd"](1073742336,L_.NguiAutoCompleteModule,L_.NguiAutoCompleteModule,[]),i["\u0275mpd"](1073742336,Ms,Ms,[]),i["\u0275mpd"](1073742336,Rl,Rl,[]),i["\u0275mpd"](1073742336,Ll,Ll,[]),i["\u0275mpd"](1073742336,ts,ts,[]),i["\u0275mpd"](1073742336,xs,xs,[]),i["\u0275mpd"](1073742336,zl,zl,[]),i["\u0275mpd"](1073742336,Iy,Iy,[]),i["\u0275mpd"](1073742336,Zu,Zu,[]),i["\u0275mpd"](1073742336,Hv,Hv,[]),i["\u0275mpd"](1073742336,M_,M_,[]),i["\u0275mpd"](1073742336,oc,oc,[]),i["\u0275mpd"](1073742336,uc,uc,[]),i["\u0275mpd"](1073742336,Oc,Oc,[]),i["\u0275mpd"](1073742336,td,td,[]),i["\u0275mpd"](1073742336,ld,ld,[]),i["\u0275mpd"](1073742336,sd,sd,[]),i["\u0275mpd"](1073742336,Ac,Ac,[]),i["\u0275mpd"](1073742336,gc,gc,[]),i["\u0275mpd"](1073742336,Dc,Dc,[]),i["\u0275mpd"](1073742336,Ic,Ic,[]),i["\u0275mpd"](1073742336,dp,dp,[]),i["\u0275mpd"](1073742336,fp,fp,[]),i["\u0275mpd"](1073742336,yp,yp,[]),i["\u0275mpd"](1073742336,Cp,Cp,[]),i["\u0275mpd"](1073742336,_p,_p,[]),i["\u0275mpd"](1073742336,Ap,Ap,[]),i["\u0275mpd"](1073742336,Sp,Sp,[]),i["\u0275mpd"](1073742336,Tp,Tp,[]),i["\u0275mpd"](1073742336,xp,xp,[]),i["\u0275mpd"](1073742336,Dp,Dp,[]),i["\u0275mpd"](1073742336,Ip,Ip,[]),i["\u0275mpd"](1073742336,Fp,Fp,[]),i["\u0275mpd"](1073742336,Hp,Hp,[]),i["\u0275mpd"](1073742336,jp,jp,[]),i["\u0275mpd"](1073742336,Bp,Bp,[]),i["\u0275mpd"](1073742336,Up,Up,[]),i["\u0275mpd"](1073742336,yd,yd,[]),i["\u0275mpd"](1073742336,dc,dc,[]),i["\u0275mpd"](1073742336,pc,pc,[]),i["\u0275mpd"](1073742336,hc,hc,[]),i["\u0275mpd"](1073742336,ud,ud,[]),i["\u0275mpd"](1073742336,cd,cd,[]),i["\u0275mpd"](1073742336,dd,dd,[]),i["\u0275mpd"](1073742336,hd,hd,[]),i["\u0275mpd"](1073742336,fd,fd,[]),i["\u0275mpd"](1073742336,gd,gd,[]),i["\u0275mpd"](1073742336,bd,bd,[]),i["\u0275mpd"](1073742336,Cd,Cd,[]),i["\u0275mpd"](1073742336,wd,wd,[]),i["\u0275mpd"](1073742336,_d,_d,[]),i["\u0275mpd"](1073742336,Kp,Kp,[]),i["\u0275mpd"](1073742336,Ed,Ed,[]),i["\u0275mpd"](1073742336,rv,rv,[]),i["\u0275mpd"](1073742336,I_,I_,[]),i["\u0275mpd"](1073742336,V_,V_,[]),i["\u0275mpd"](1073742336,k_,k_,[]),i["\u0275mpd"](1073742336,N_,N_,[]),i["\u0275mpd"](1073742336,F_,F_,[]),i["\u0275mpd"](131584,d.a,d.a,[]),i["\u0275mpd"](131584,S_.h,S_.h,[]),i["\u0275mpd"](2048,d.h,null,[S_.h]),i["\u0275mpd"](256,d.r,void 0,[]),i["\u0275mpd"](1024,d.d,d.v,[d.r]),i["\u0275mpd"](256,d.q,hr,[]),i["\u0275mpd"](2048,d.t,null,[d.q]),i["\u0275mpd"](1024,d.c,d.u,[i.Injector,d.q,d.t]),i["\u0275mpd"](256,d.s,d.w,[]),i["\u0275mpd"](256,d.e,[sr,ar],[]),i["\u0275mpd"](1024,d.f,d.y,[d.s,d.e]),i["\u0275mpd"](131584,d.g,d.g,[d.h,d.d,d.c,d.f]),i["\u0275mpd"](2048,d.i,null,[d.g]),i["\u0275mpd"](131584,d.j,d.j,[]),i["\u0275mpd"](1024,S_.k,S_.e,[]),i["\u0275mpd"](256,S_.j,{},[]),i["\u0275mpd"](1024,S_.i,S_.g,[S_.j]),i["\u0275mpd"](512,S_.l,S_.l,[S_.k,S_.i]),i["\u0275mpd"](512,S_.a,S_.a,[S_.h,d.a,d.i,S_.l,d.j,i.ErrorHandler,d.d,S_.i]),i["\u0275mpd"](1024,d.l,S_.f,[S_.a]),i["\u0275mpd"](512,d.m,d.m,[d.l,d.a,d.g]),i["\u0275mpd"](1073742336,d.o,d.o,[d.a,d.i,d.j,d.m]),i["\u0275mpd"](512,eE,eE,[i.ErrorHandler]),i["\u0275mpd"](131584,nE,nE,[eE,d.m]),i["\u0275mpd"](512,X_,X_,[d.j]),i["\u0275mpd"](512,mr["\u0275angular_packages_common_http_http_d"],mr["\u0275angular_packages_common_http_http_d"],[]),i["\u0275mpd"](2048,mr.XhrFactory,null,[mr["\u0275angular_packages_common_http_http_d"]]),i["\u0275mpd"](512,mr.HttpXhrBackend,mr.HttpXhrBackend,[mr.XhrFactory]),i["\u0275mpd"](2048,mr.HttpBackend,null,[mr.HttpXhrBackend]),i["\u0275mpd"](512,mr.HttpHandler,mr["\u0275HttpInterceptingHandler"],[mr.HttpBackend,i.Injector]),i["\u0275mpd"](512,mr.HttpClient,mr.HttpClient,[mr.HttpHandler]),i["\u0275mpd"](512,Vr,Vr,[Pf]),i["\u0275mpd"](512,Qr,Qr,[mr.HttpClient,Vr]),i["\u0275mpd"](512,Xr,Xr,[]),i["\u0275mpd"](512,Jr,Jr,[Xr,d.m]),i["\u0275mpd"](512,pi,pi,[Xr]),i["\u0275mpd"](512,D_,T_,[]),i["\u0275mpd"](512,li,li,[Xr,d.m]),i["\u0275mpd"](512,di,di,[D_,d.m,li,Vr,i.NgZone]),i["\u0275mpd"](512,el,el,[d.m]),i["\u0275mpd"](512,hE,hE,[X_,Qr,Jr,Vr,Xr,pi,di,el,d.m]),i["\u0275mpd"](512,fE,fE,[X_,d.m,li]),i["\u0275mpd"](512,Qa,Qa,[]),i["\u0275mpd"](512,Xa,Xa,[Qa]),i["\u0275mpd"](512,gE,gE,[X_,d.m,Xa,li,Vr]),i["\u0275mpd"](1024,tE,oE,[hE,fE,gE]),i["\u0275mpd"](1073742336,iE,iE,[eE,nE,d.m,tE,[2,d.o],[2,d.n]]),i["\u0275mpd"](1073742336,S_.b,S_.b,[]),i["\u0275mpd"](1073742336,Uf,Uf,[]),i["\u0275mpd"](1073742336,rl,rl,[]),i["\u0275mpd"](256,i["\u0275APP_ROOT"],!0,[]),i["\u0275mpd"](256,E_,"BrowserAnimations",[]),i["\u0275mpd"](256,mr["\u0275angular_packages_common_http_http_e"],"XSRF-TOKEN",[]),i["\u0275mpd"](256,mr["\u0275angular_packages_common_http_http_f"],"X-XSRF-TOKEN",[]),i["\u0275mpd"](256,"popperDefaults",{applyClass:"tooltip-content",trigger:"hover"},[]),i["\u0275mpd"](256,Mg,void 0,[]),i["\u0275mpd"](256,Ig,void 0,[]),i["\u0275mpd"](256,Zl,void 0,[]),i["\u0275mpd"](256,Iv,{gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1},[]),i["\u0275mpd"](256,Ny.GLOBALS,{animation:150},[]),i["\u0275mpd"](256,If,{default:Bf,config:{newestOnTop:!1,closeButton:!0,positionClass:"toast-top-center",enableHtml:!0}},[]),i["\u0275mpd"](256,hr,dr,[])])});if(o.production&&Object(i.enableProdMode)(),a){var mE=window.require("electron");s.log("In electron app."),mE.webFrame.registerURLSchemeAsPrivileged("altair")}Of.i().bootstrapModuleFactory(vE,{preserveWhitespaces:!0}),aE=function(e){var t=this.href||"";if(t.replace(/#.*$/,""))if(e.preventDefault(),window.process&&window.process.versions.electron)window.require("electron").shell.openExternal(t);else{var n=window.open(t,"_blank");n&&n.focus()}},document.body.addEventListener("click",function(e){e.target&&e.target.matches("a")&&aE.apply(e.target,[e])})},zo3G:function(e,t,n){"use strict";var r=n("mrSG"),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.c(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n("h9Dq").a),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t}(n("CS9Q").a);n.d(t,"a",function(){return a});var a=new o(i)},zotm:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("rPjj"),i=n("Fxb1");function o(e,t,n,o,a){if(void 0===a&&(a=new r.a(e,n,o)),!a.closed)return Object(i.a)(t)(a)}}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+/fp":function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},"+Wds":function(e,t,n){"use strict";var i=String.prototype.indexOf;e.exports=function(e){return i.call(this,e,arguments[1])>-1}},"+XMV":function(e,t,n){"use strict";e.exports=n("GOzd")()?String.prototype.contains:n("+Wds")},"+dQi":function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var i,r,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,c=n.json||s,u=n.typescript,l=n.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),i=e("keyword c"),r=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:i,void:i,throw:i,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:i,export:e("export"),import:e("import"),extends:i,await:i}}(),h=/[+\-*&%=<>!?|~^@]/,d=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function f(e,t,n){return i=e,r=n,t}function g(e,t){var n,i=e.next();if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){var i,r=!1;if(s&&"@"==e.peek()&&e.match(d))return t.tokenize=g,f("jsonld-keyword","meta");for(;null!=(i=e.next())&&(i!=n||r);)r=!r&&"\\"==i;return r||(t.tokenize=g),f("string","string")}),t.tokenize(e,t);if("."==i&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return f("number","number");if("."==i&&e.match(".."))return f("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(i))return f(i);if("="==i&&e.eat(">"))return f("=>","operator");if("0"==i&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return f("number","number");if(/\d/.test(i))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),f("number","number");if("/"==i)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),f("comment","comment")):Ze(e,t,1)?(function(e){for(var t,n=!1,i=!1;null!=(t=e.next());){if(!n){if("/"==t&&!i)return;"["==t?i=!0:i&&"]"==t&&(i=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f("regexp","string-2")):(e.eat("="),f("operator","operator",e.current()));if("`"==i)return t.tokenize=m,m(e,t);if("#"==i&&"!"==e.peek())return e.skipToEnd(),f("meta","meta");if("#"==i&&e.eatWhile(l))return f("variable","property");if("<"==i&&e.match("!--")||"-"==i&&e.match("->"))return e.skipToEnd(),f("comment","comment");if(h.test(i))return">"==i&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=i&&"="!=i||e.eat("="):/[<>*+\-]/.test(i)&&(e.eat(i),">"==i&&e.eat(i))),"?"==i&&e.eat(".")?f("."):f("operator","operator",e.current());if(l.test(i)){e.eatWhile(l);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var o=p[r];return f(o.type,o.style,r)}if("async"==r&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return f("async","keyword",r)}return f("variable","variable",r)}}function b(e,t){for(var n,i=!1;n=e.next();){if("/"==n&&i){t.tokenize=g;break}i="*"==n}return f("comment","comment")}function m(e,t){for(var n,i=!1;null!=(n=e.next());){if(!i&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}i=!i&&"\\"==n}return f("quasi","string-2",e.current())}function v(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));i&&(n=i.index)}for(var r=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),c="([{}])".indexOf(s);if(c>=0&&c<3){if(!r){++a;break}if(0==--r){"("==s&&(o=!0);break}}else if(c>=3&&c<6)++r;else if(l.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!r){++a;break}}o&&!r&&(t.fatArrowAt=a)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(e,t,n,i,r,o){this.indented=e,this.column=t,this.type=n,this.prev=r,this.info=o,null!=i&&(this.align=i)}function O(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var i=e.context;i;i=i.prev)for(n=i.vars;n;n=n.next)if(n.name==t)return!0}var C={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function z(){return S.apply(null,arguments),!0}function T(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function _(e){var t=C.state;if(C.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var i=function e(t,n){if(n){if(n.block){var i=e(t,n.prev);return i?i==n.prev?n:new D(i,n.vars,!0):null}return T(t,n.vars)?n:new D(n.prev,new x(t,n.vars),!1)}return null}(e,t.context);if(null!=i)return void(t.context=i)}else if(!T(e,t.localVars))return void(t.localVars=new x(e,t.localVars));n.globalVars&&!T(e,t.globalVars)&&(t.globalVars=new x(e,t.globalVars))}function k(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function D(e,t,n){this.prev=e,this.vars=t,this.block=n}function x(e,t){this.name=e,this.next=t}var E=new x("this",new x("arguments",null));function N(){C.state.context=new D(C.state.context,C.state.localVars,!1),C.state.localVars=E}function j(){C.state.context=new D(C.state.context,C.state.localVars,!0),C.state.localVars=null}function I(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function A(e,t){var n=function(){var n=C.state,i=n.indented;if("stat"==n.lexical.type)i=n.lexical.indented;else for(var r=n.lexical;r&&")"==r.type&&r.align;r=r.prev)i=r.indented;n.lexical=new w(i,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function M(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function L(e){return function t(n){return n==e?z():";"==e||"}"==n||")"==n||"]"==n?S():z(t)}}function P(e,t){return"var"==e?z(A("vardef",t),ve,L(";"),M):"keyword a"==e?z(A("form"),B,P,M):"keyword b"==e?z(A("form"),P,M):"keyword d"==e?C.stream.match(/^\s*$/,!1)?z():z(A("stat"),U,L(";"),M):"debugger"==e?z(L(";")):"{"==e?z(A("}"),j,oe,M,I):";"==e?z():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==M&&C.state.cc.pop()(),z(A("form"),B,P,M,ze)):"function"==e?z(De):"for"==e?z(A("form"),Te,P,M):"class"==e||u&&"interface"==t?(C.marked="keyword",z(A("form","class"==e?e:t),Ie,M)):"variable"==e?u&&"declare"==t?(C.marked="keyword",z(P)):u&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?z(We):"type"==t?z(Ee,L("operator"),le,L(";")):z(A("form"),ye,L("{"),A("}"),oe,M,M)):u&&"namespace"==t?(C.marked="keyword",z(A("form"),R,P,M)):u&&"abstract"==t?(C.marked="keyword",z(P)):z(A("stat"),K):"switch"==e?z(A("form"),B,L("{"),A("}","switch"),j,oe,M,M,I):"case"==e?z(R,L(":")):"default"==e?z(L(":")):"catch"==e?z(A("form"),N,F,P,M,I):"export"==e?z(A("stat"),Pe,M):"import"==e?z(A("stat"),Re,M):"async"==e?z(P):"@"==t?z(R,P):S(A("stat"),R,L(";"),M)}function F(e){if("("==e)return z(Ne,L(")"))}function R(e,t){return Y(e,t,!1)}function V(e,t){return Y(e,t,!0)}function B(e){return"("!=e?S():z(A(")"),U,L(")"),M)}function Y(e,t,n){if(C.state.fatArrowAt==C.stream.start){var i=n?G:$;if("("==e)return z(N,A(")"),ie(Ne,")"),M,L("=>"),i,I);if("variable"==e)return S(N,ye,L("=>"),i,I)}var r=n?W:H;return y.hasOwnProperty(e)?z(r):"function"==e?z(De,r):"class"==e||u&&"interface"==t?(C.marked="keyword",z(A("form"),je,M)):"keyword c"==e||"async"==e?z(n?V:R):"("==e?z(A(")"),U,L(")"),M,r):"operator"==e||"spread"==e?z(n?V:R):"["==e?z(A("]"),He,M,r):"{"==e?re(ee,"}",null,r):"quasi"==e?S(q,r):"new"==e?z(function(e){return function(t){return"."==t?z(e?X:Q):"variable"==t&&u?z(ge,e?W:H):S(e?V:R)}}(n)):"import"==e?z(R):z()}function U(e){return e.match(/[;\}\)\],]/)?S():S(R)}function H(e,t){return","==e?z(U):W(e,t,!1)}function W(e,t,n){var i=0==n?H:W,r=0==n?R:V;return"=>"==e?z(N,n?G:$,I):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?z(i):u&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(A(">"),ie(le,">"),M,i):"?"==t?z(R,L(":"),r):z(r):"quasi"==e?S(q,i):";"!=e?"("==e?re(V,")","call",i):"."==e?z(J,i):"["==e?z(A("]"),U,L("]"),M,i):u&&"as"==t?(C.marked="keyword",z(le,i)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),z(r)):void 0:void 0}function q(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?z(q):z(R,Z)}function Z(e){if("}"==e)return C.marked="string-2",C.state.tokenize=m,z(q)}function $(e){return v(C.stream,C.state),S("{"==e?P:R)}function G(e){return v(C.stream,C.state),S("{"==e?P:V)}function Q(e,t){if("target"==t)return C.marked="keyword",z(H)}function X(e,t){if("target"==t)return C.marked="keyword",z(W)}function K(e){return":"==e?z(M,P):S(H,L(";"),M)}function J(e){if("variable"==e)return C.marked="property",z()}function ee(e,t){return"async"==e?(C.marked="property",z(ee)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?z(te):(u&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),z(ne))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",z(ne)):"jsonld-keyword"==e?z(ne):u&&k(t)?(C.marked="keyword",z(ee)):"["==e?z(R,ae,L("]"),ne):"spread"==e?z(V,ne):"*"==t?(C.marked="keyword",z(ee)):":"==e?S(ne):void 0;var n}function te(e){return"variable"!=e?S(ne):(C.marked="property",z(De))}function ne(e){return":"==e?z(V):"("==e?S(De):void 0}function ie(e,t,n){function i(r,o){if(n?n.indexOf(r)>-1:","==r){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),z((function(n,i){return n==t||i==t?S():S(e)}),i)}return r==t||o==t?z():n&&n.indexOf(";")>-1?S(e):z(L(t))}return function(n,r){return n==t||r==t?z():S(e,i)}}function re(e,t,n){for(var i=3;i"),le):void 0}function pe(e){if("=>"==e)return z(le)}function he(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",z(he)):"?"==t||"number"==e||"string"==e?z(he):":"==e?z(le):"["==e?z(L("variable"),se,L("]"),he):"("==e?S(xe,he):void 0}function de(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?z(de):":"==e?z(le):"spread"==e?z(de):S(le)}function fe(e,t){return"<"==t?z(A(">"),ie(le,">"),M,fe):"|"==t||"."==e||"&"==t?z(le):"["==e?z(le,L("]"),fe):"extends"==t||"implements"==t?(C.marked="keyword",z(le)):"?"==t?z(le,L(":"),le):void 0}function ge(e,t){if("<"==t)return z(A(">"),ie(le,">"),M,fe)}function be(){return S(le,me)}function me(e,t){if("="==t)return z(le)}function ve(e,t){return"enum"==t?(C.marked="keyword",z(We)):S(ye,ae,Ce,Se)}function ye(e,t){return u&&k(t)?(C.marked="keyword",z(ye)):"variable"==e?(_(t),z()):"spread"==e?z(ye):"["==e?re(Oe,"]"):"{"==e?re(we,"}"):void 0}function we(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?z(ye):"}"==e?S():"["==e?z(R,L("]"),L(":"),we):z(L(":"),ye,Ce)):(_(t),z(Ce))}function Oe(){return S(ye,Ce)}function Ce(e,t){if("="==t)return z(V)}function Se(e){if(","==e)return z(ve)}function ze(e,t){if("keyword b"==e&&"else"==t)return z(A("form","else"),P,M)}function Te(e,t){return"await"==t?z(Te):"("==e?z(A(")"),_e,M):void 0}function _e(e){return"var"==e?z(ve,ke):"variable"==e?z(ke):S(ke)}function ke(e,t){return")"==e?z():";"==e?z(ke):"in"==t||"of"==t?(C.marked="keyword",z(R,ke)):S(R,ke)}function De(e,t){return"*"==t?(C.marked="keyword",z(De)):"variable"==e?(_(t),z(De)):"("==e?z(N,A(")"),ie(Ne,")"),M,ce,P,I):u&&"<"==t?z(A(">"),ie(be,">"),M,De):void 0}function xe(e,t){return"*"==t?(C.marked="keyword",z(xe)):"variable"==e?(_(t),z(xe)):"("==e?z(N,A(")"),ie(Ne,")"),M,ce,I):u&&"<"==t?z(A(">"),ie(be,">"),M,xe):void 0}function Ee(e,t){return"keyword"==e||"variable"==e?(C.marked="type",z(Ee)):"<"==t?z(A(">"),ie(be,">"),M):void 0}function Ne(e,t){return"@"==t&&z(R,Ne),"spread"==e?z(Ne):u&&k(t)?(C.marked="keyword",z(Ne)):u&&"this"==e?z(ae,Ce):S(ye,ae,Ce)}function je(e,t){return"variable"==e?Ie(e,t):Ae(e,t)}function Ie(e,t){if("variable"==e)return _(t),z(Ae)}function Ae(e,t){return"<"==t?z(A(">"),ie(be,">"),M,Ae):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(C.marked="keyword"),z(u?le:R,Ae)):"{"==e?z(A("}"),Me,M):void 0}function Me(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&k(t))&&C.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",z(Me)):"variable"==e||"keyword"==C.style?(C.marked="property",z(Le,Me)):"number"==e||"string"==e?z(Le,Me):"["==e?z(R,ae,L("]"),Le,Me):"*"==t?(C.marked="keyword",z(Me)):u&&"("==e?S(xe,Me):";"==e||","==e?z(Me):"}"==e?z():"@"==t?z(R,Me):void 0}function Le(e,t){if("?"==t)return z(Le);if(":"==e)return z(le,Ce);if("="==t)return z(V);var n=C.state.lexical.prev;return S(n&&"interface"==n.info?xe:De)}function Pe(e,t){return"*"==t?(C.marked="keyword",z(Ue,L(";"))):"default"==t?(C.marked="keyword",z(R,L(";"))):"{"==e?z(ie(Fe,"}"),Ue,L(";")):S(P)}function Fe(e,t){return"as"==t?(C.marked="keyword",z(L("variable"))):"variable"==e?S(V,Fe):void 0}function Re(e){return"string"==e?z():"("==e?S(R):S(Ve,Be,Ue)}function Ve(e,t){return"{"==e?re(Ve,"}"):("variable"==e&&_(t),"*"==t&&(C.marked="keyword"),z(Ye))}function Be(e){if(","==e)return z(Ve,Be)}function Ye(e,t){if("as"==t)return C.marked="keyword",z(Ve)}function Ue(e,t){if("from"==t)return C.marked="keyword",z(R)}function He(e){return"]"==e?z():S(ie(V,"]"))}function We(){return S(A("form"),ye,L("{"),A("}"),ie(qe,"}"),M,M)}function qe(){return S(ye,Ce)}function Ze(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return I.lex=!0,M.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new D(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),v(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==i?n:(t.lastType="operator"!=i||"++"!=r&&"--"!=r?i:"incdec",function(e,t,n,i,r){var o=e.cc;for(C.state=e,C.stream=r,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():c?R:P)(n,i)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&O(e,i)?"variable-2":t}}(t,n,i,r,e))},indent:function(t,i){if(t.tokenize==b)return e.Pass;if(t.tokenize!=g)return 0;var r,s=i&&i.charAt(0),c=t.lexical;if(!/^\s*else\b/.test(i))for(var u=t.cc.length-1;u>=0;--u){var l=t.cc[u];if(l==M)c=c.prev;else if(l!=ze)break}for(;("stat"==c.type||"form"==c.type)&&("}"==s||(r=t.cc[t.cc.length-1])&&(r==H||r==W)&&!/^[,\.=+\-*:?[\(]/.test(i));)c=c.prev;a&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var p=c.type,d=s==p;return"vardef"==p?c.indented+("operator"==t.lastType||","==t.lastType?c.info.length+1:0):"form"==p&&"{"==s?c.indented:"form"==p?c.indented+o:"stat"==p?c.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,i)?a||o:0):"switch"!=c.info||d||0==n.doubleIndentSwitch?c.align?c.column+(d?0:1):c.indented+(d?0:o):c.indented+(/^(?:case|default)\b/.test(i)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:s,jsonMode:c,expressionAllowed:Ze,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=R&&t!=V||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("VrN/"))},"+jMV":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n("Valr"),r=n("mrSG"),o=n("349r"),a=n("ED2X"),s=n("zPI3"),c=n("TYT/"),u=function(){function e(e,t,n){this.element=e,this.renderer=t,this.animationType=n,this.nzNoAnimation=!1}return e.prototype.ngOnChanges=function(){this.updateClass()},e.prototype.ngAfterViewInit=function(){this.updateClass()},e.prototype.updateClass=function(){var e=Object(o.e)(this.element);e&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(e,"nz-animate-disabled"):this.renderer.removeClass(e,"nz-animate-disabled"))},Object(r.b)([Object(s.a)(),Object(r.d)("design:type",Boolean)],e.prototype,"nzNoAnimation",void 0),e.\u0275fac=function(t){return new(t||e)(c.Tb(c.l),c.Tb(c.E),c.Tb(a.a,8))},e.\u0275dir=c.Ob({type:e,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[c.Bb]}),e}(),l=function(){function e(){}return e.\u0275mod=c.Rb({type:e}),e.\u0275inj=c.Qb({factory:function(t){return new(t||e)},imports:[[i.c]]}),e}()},"+klR":function(e,t,n){"use strict";e.exports=2147483647},"+tJ4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e){return function(t){for(var n=0,i=e.length;n=0}},"/C/i":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("dWS+");function r(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new i.a(function(e){return'There can be only one argument named "'.concat(e,'".')}(r),[t[r],n.name])):t[r]=n.name,!1}}}},"/PH2":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("mrSG"),r=n("MGBS"),o=n("zotm");function a(){for(var e=[],t=0;t0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(r.a)},"/WYv":function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return i}))},"/jXB":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},"/kEc":function(e,t,n){"use strict";function i(e){return void 0===e||e!=e}n.d(t,"a",(function(){return i}))},0:function(e,t,n){e.exports=n("zUnb")},"0/uQ":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n("6blF"),r=n("Fxb1"),o=n("pugT"),a=n("xTla"),s=n("JF+6"),c=n("En8+"),u=n("/WYv"),l=n("2ePl");function p(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return new i.a((function(n){var i=new o.a;return i.add(t.schedule((function(){var r=e[a.a]();i.add(r.subscribe({next:function(e){i.add(t.schedule((function(){return n.next(e)})))},error:function(e){i.add(t.schedule((function(){return n.error(e)})))},complete:function(){i.add(t.schedule((function(){return n.complete()})))}}))}))),i}))}(e,t);if(Object(u.a)(e))return function(e,t){return new i.a((function(n){var i=new o.a;return i.add(t.schedule((function(){return e.then((function(e){i.add(t.schedule((function(){n.next(e),i.add(t.schedule((function(){return n.complete()})))})))}),(function(e){i.add(t.schedule((function(){return n.error(e)})))}))}))),i}))}(e,t);if(Object(l.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a((function(n){var i,r=new o.a;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(t.schedule((function(){i=e[c.a](),r.add(t.schedule((function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),r}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},"0ZyQ":function(e,t,n){"use strict";var i=n("TOvx"),r=/[\n\r\u2028\u2029]/g;e.exports=function(e){var t=i(e);return t.length>100&&(t=t.slice(0,99)+"\u2026"),t.replace(r,(function(e){return JSON.stringify(e).slice(1,-1)}))}},"0dpv":function(e,t,n){"use strict";var i=n("1TtK"),r=n("nC3q"),o=n("ZI+j");o.max=function(e,t,n){var a,s,c;(e=i(e))&&(s=r(e),t.on("set"+(a=n.async&&o.async||n.promise&&o.promise?"async":""),c=function(e){void 0!==(e=s.hit(e))&&t.delete(e)}),t.on("get"+a,c),t.on("delete"+a,s.delete),t.on("clear"+a,s.clear))}},"0mNj":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.total))},e}(),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.c(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(r.a)},"0t4y":function(e,t,n){!function(e){"use strict";e.registerHelper("lint","json",(function(t){var n=[];if(!window.jsonlint)return window.console&&window.console.error("Error: window.jsonlint not defined, CodeMirror JSON linting cannot run."),n;var i=window.jsonlint.parser||window.jsonlint;i.parseError=function(t,i){var r=i.loc;n.push({from:e.Pos(r.first_line-1,r.first_column),to:e.Pos(r.last_line-1,r.last_column),message:t})};try{i.parse(t)}catch(r){}return n}))}(n("VrN/"))},"0xor":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("dWS+"),r=n("dQau"),o=n("axIb"),a=n("umOc");function s(e){return{VariableDefinition:function(t){var n,s,c=Object(a.a)(e.getSchema(),t.type);c&&!Object(o.G)(c)&&e.reportError(new i.a((n=t.variable.name.value,s=Object(r.print)(t.type),'Variable "$'.concat(n,'" cannot be non-input type "').concat(s,'".')),t.type))}}}},"0zd0":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("T1DM"),r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),o=n("mrSG"),a=n("VGuC"),s=n("MGBS"),c=n("zotm"),u=function(){function e(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),l=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.absoluteTimeout=n,a.waitFor=i,a.withObservable=r,a.scheduler=o,a.action=null,a.scheduleTimeout(),a}return o.c(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(c.a)(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(s.a),p=n("XlPw");function h(e,t){return void 0===t&&(t=i.a),function(e,t,n){return void 0===n&&(n=i.a),function(i){var r=Object(a.a)(e),o=r?+e-n.now():Math.abs(e);return i.lift(new u(o,r,t,n))}}(e,Object(p.a)(new r),t)}},"1/U3":function(e,t,n){"use strict";t.a=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n2147483647||t<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(o.a)(e)));return t},parseValue:function(e){if(!r(e))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(o.a)(e)));if(e>2147483647||e<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind===s.a.INT){var t=parseInt(e.value,10);if(t<=2147483647&&t>=-2147483648)return t}}}),l=new c.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!i(t))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return t},parseValue:function(e){if(!i(e))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===s.a.FLOAT||e.kind===s.a.INT?parseFloat(e.value):void 0}});function p(e){if(Object(a.a)(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!Object(a.a)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var h=new c.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=p(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(i(t))return t.toString();throw new TypeError("String cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===s.a.STRING?e.value:void 0}}),d=new c.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if(i(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===s.a.BOOLEAN?e.value:void 0}}),f=new c.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=p(e);if("string"==typeof t)return t;if(r(t))return String(t);throw new TypeError("ID cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(r(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat(Object(o.a)(e)))},parseLiteral:function(e){return e.kind===s.a.STRING||e.kind===s.a.INT?e.value:void 0}}),g=Object.freeze([h,u,l,d,f]);function b(e){return Object(c.R)(e)&&g.some((function(t){return e.name===t.name}))}},"1QEH":function(e,t,n){"use strict";t.a=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))}},"1TtK":function(e,t,n){"use strict";var i=n("xfTp"),r=Math.max;e.exports=function(e){return r(0,i(e))}},"1UAX":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("AJqF"),r=n("TYT/"),o=n("bne5"),a=n("xyIE"),s=n("Valr"),c=n("VwhB"),u=n("pvWi"),l=function(){function e(e,t,n){this.el=e,this.document=t,this.zone=n,this.resizeDirection="left",this.resizeChange=new r.n,this.isRight=!1,this.draggingMode=!1,this.siblingGrowthFactor=2,this.throttleMs=100,this.documentMouseUp$=Object(o.a)(this.document,"mouseup"),this.documentMouseMove$=Object(o.a)(this.document,"mousemove").pipe(Object(i.a)(this.throttleMs)),this.elMouseMove$=Object(o.a)(this.el.nativeElement,"mousemove").pipe(Object(i.a)(this.throttleMs)),this.elMouseDown$=Object(o.a)(this.el.nativeElement,"mousedown"),this.resizeElement=this.el.nativeElement.parentElement,this.resizeContainer=this.getResizeContainer()}return e.prototype.ngOnInit=function(){var e=this;"right"===this.resizeDirection&&(this.isRight=!0),this.zone.runOutsideAngular((function(){e.documentMouseUp$.pipe(Object(c.a)(e)).subscribe((function(t){return e.onMouseUp(t)})),e.documentMouseMove$.pipe(Object(c.a)(e)).subscribe((function(t){return e.onResizerMove(t)})),e.elMouseMove$.pipe(Object(c.a)(e)).subscribe((function(t){return e.onResizerMove(t)})),e.elMouseDown$.pipe(Object(c.a)(e)).subscribe((function(t){return e.onResizerPress(t)}))}))},e.prototype.onResizerPress=function(e){var t=this;this.draggingMode=!0,this.originalWidth=this.resizeElement.clientWidth,this.originalX=e.clientX,this.resizeElement.parentElement&&(this.siblingGrowthFactor=Array.from(this.resizeElement.parentElement.children).filter((function(e){return t.resizeElement!==e})).reduce((function(e,t){return+getComputedStyle(t).getPropertyValue("flex-grow")+e}),0))},e.prototype.onResizerMove=function(e){var t=this;if(!this.draggingMode||!this.resizeContainer)return!0;e.stopPropagation(),e.preventDefault(),this.diffX=e.clientX-this.originalX;var n=this.isRight?this.originalWidth+this.diffX:this.originalWidth-this.diffX,i=n/this.resizeContainer.clientWidth,r=i*this.siblingGrowthFactor/(1-i);this.zone.run((function(){t.resizeChange.next(r),a.a.log("mouse moved resizer",n,r)}))},e.prototype.onMouseUp=function(e){if(!this.draggingMode)return!0;this.draggingMode=!1,a.a.log("mouse up.",this.originalWidth,this.diffX)},e.prototype.getResizeContainer=function(){for(var e=this.resizeElement;e&&!e.hasAttribute("data-resize-container");)e=e.parentElement;return e},e.prototype.ngOnDestroy=function(){},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.l),r.Tb(s.e),r.Tb(r.z))},e.\u0275cmp=r.Nb({type:e,selectors:[["app-flex-resizer"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("is-right",t.isRight)},inputs:{resizeDirection:"resizeDirection"},outputs:{resizeChange:"resizeChange"},decls:1,vars:0,consts:[["name","more-vertical"]],template:function(e,t){1&e&&r.Ub(0,"app-icon",0)},directives:[u.a],styles:[""]}),e}()},"2/d+":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("rWdj"),r=n("dWS+"),o=n("axIb");function a(e){return{Field:function(t){var n=e.getType(),a=t.selectionSet;n&&(Object(o.I)(Object(o.A)(n))?a&&e.reportError(new r.a(function(e,t){return'Field "'.concat(e,'" must not have a selection since type "').concat(t,'" has no subfields.')}(t.name.value,Object(i.a)(n)),a)):a||e.reportError(new r.a(function(e,t){return'Field "'.concat(e,'" of type "').concat(t,'" must have a selection of subfields. Did you mean "').concat(e,' { ... }"?')}(t.name.value,Object(i.a)(n)),t)))}}}},"26FU":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("mrSG"),r=n("K9Ia"),o=n("8g8A"),a=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i.c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r.a)},"2Bdj":function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",(function(){return i}))},"2C6G":function(e,t,n){"use strict";function i(e,t){if(!Boolean(e))throw new Error(t||"Unexpected invariant triggered")}n.d(t,"a",(function(){return i}))},"2J3F":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return u}));var i=n("mrSG"),r=n("TYT/"),o=n("Valr");function a(){throw Error("Host already has a portal attached")}var s=function(){function e(){}return e.prototype.attach=function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&a(),this._attachedHost=e,e.attach(this)},e.prototype.detach=function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())},Object.defineProperty(e.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),e.prototype.setAttachedHost=function(e){this._attachedHost=e},e}(),c=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.component=t,o.viewContainerRef=n,o.injector=i,o.componentFactoryResolver=r,o}return Object(i.c)(t,e),t}(s),u=function(e){function t(t,n,i){var r=e.call(this)||this;return r.templateRef=t,r.viewContainerRef=n,r.context=i,r}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),t.prototype.attach=function(t,n){return void 0===n&&(n=this.context),this.context=n,e.prototype.attach.call(this,t)},t.prototype.detach=function(){return this.context=void 0,e.prototype.detach.call(this)},t}(s),l=function(e){function t(t){var n=e.call(this)||this;return n.element=t instanceof r.l?t.nativeElement:t,n}return Object(i.c)(t,e),t}(s),p=function(){function e(){this._isDisposed=!1,this.attachDomPortal=null}return e.prototype.hasAttached=function(){return!!this._attachedPortal},e.prototype.attach=function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&a(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof c?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof u?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof l?(this._attachedPortal=e,this.attachDomPortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},e.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},e.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},e.prototype.setDisposeFn=function(e){this._disposeFn=e},e.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},e}(),h=function(e){function t(t,n,i,r,o){var a=e.call(this)||this;return a.outletElement=t,a._componentFactoryResolver=n,a._appRef=i,a._defaultInjector=r,a.attachDomPortal=function(t){if(!a._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=t.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=a._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),a.outletElement.appendChild(n),e.prototype.setDisposeFn.call(a,(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},a._document=o,a}return Object(i.c)(t,e),t.prototype.attachComponentPortal=function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){n._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t},t.prototype.attachTemplatePortal=function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.detectChanges(),i.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),this.setDisposeFn((function(){var e=n.indexOf(i);-1!==e&&n.remove(e)})),i},t.prototype.dispose=function(){e.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},t.prototype._getComponentRootNode=function(e){return e.hostView.rootNodes[0]},t}(p),d=function(e){function t(t,n,i){var o=e.call(this)||this;return o._componentFactoryResolver=t,o._viewContainerRef=n,o._isInitialized=!1,o.attached=new r.n,o.attachDomPortal=function(t){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=t.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=o._document.createComment("dom-portal");t.setAttachedHost(o),n.parentNode.insertBefore(i,n),o._getRootNode().appendChild(n),e.prototype.setDisposeFn.call(o,(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},o._document=i,o}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"portal",{get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&e.prototype.detach.call(this),t&&e.prototype.attach.call(this,t),this._attachedPortal=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0},t.prototype.ngOnDestroy=function(){e.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},t.prototype.attachComponentPortal=function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r=n.createComponent(i,n.length,t.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),e.prototype.setDisposeFn.call(this,(function(){return r.destroy()})),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r},t.prototype.attachTemplatePortal=function(t){var n=this;t.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return e.prototype.setDisposeFn.call(this,(function(){return n._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i},t.prototype._getRootNode=function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode},t.\u0275fac=function(e){return new(e||t)(r.Tb(r.j),r.Tb(r.Q),r.Tb(o.e))},t.\u0275dir=r.Ob({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.Ab]}),t}(p),f=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)}}),e}(),g=function(){function e(e,t){this._parentInjector=e,this._customTokens=t}return e.prototype.get=function(e,t){var n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)},e}()},"2Rkc":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("dWS+"),r=n("dQau"),o=n("axIb"),a=n("umOc");function s(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var s=Object(a.a)(e.getSchema(),n);s&&!Object(o.D)(s)&&e.reportError(new i.a(function(e){return'Fragment cannot condition on non composite type "'.concat(e,'".')}(Object(r.print)(n)),n))}},FragmentDefinition:function(t){var n=Object(a.a)(e.getSchema(),t.typeCondition);n&&!Object(o.D)(n)&&e.reportError(new i.a(function(e,t){return'Fragment "'.concat(e,'" cannot condition on non composite type "').concat(t,'".')}(t.name.value,Object(r.print)(t.typeCondition)),t.typeCondition))}}}},"2WDa":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return a})),n.d(t,"m",(function(){return b})),n.d(t,"n",(function(){return m}));var i=function(){return function(){}}(),r=function(){return function(){}}(),o="*";function a(e,t){return{type:7,name:e,definitions:t,options:{}}}function s(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function c(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function u(e){return{type:6,styles:e,offset:null}}function l(e,t,n){return{type:0,name:e,styles:t,options:n}}function p(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}function h(e,t,n){return void 0===n&&(n=null),{type:11,selector:e,animation:t,options:n}}function d(e,t){return{type:12,timings:e,animation:t}}function f(e){Promise.resolve(null).then(e)}var g=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;f((function(){return e._onFinish()}))},e.prototype._onStart=function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0},e}(),b=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,i=0,r=0,o=this.players.length;0==o?f((function(){return t._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++n==o&&t._onFinish()})),e.onDestroy((function(){++i==o&&t._onDestroy()})),e.onStart((function(){++r==o&&t._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach((function(e){return e.init()}))},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))},e.prototype.pause=function(){this.players.forEach((function(e){return e.pause()}))},e.prototype.restart=function(){this.players.forEach((function(e){return e.restart()}))},e.prototype.finish=function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))},e.prototype.getPosition=function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e},e.prototype.beforeDestroy=function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0},e}(),m="!"},"2WpN":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("mrSG"),r=n("FFOo"),o=n("pugT");function a(e){return function(t){return t.lift(new s(e))}}var s=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.callback))},e}(),c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.add(new o.a(n)),i}return i.c(t,e),t}(r.a)},"2ZJU":function(e,t,n){"use strict";var i=n("1TtK"),r=n("+klR");e.exports=function(e){if((e=i(e))>r)throw new TypeError(e+" exceeds maximum possible timeout");return e}},"2ePl":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},"306n":function(e,t,n){"use strict";e.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else{if(!e.user||!e.repo)throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");t=`https://github.com/${e.user}/${e.repo}`}const n=new URL(t+"/issues/new"),i=["body","title","labels","template","milestone","assignee","projects"];for(const r of i){let t=e[r];if(void 0!==t){if("labels"===r||"projects"===r){if(!Array.isArray(t))throw new TypeError(`The \`${r}\` option should be an array`);t=t.join(",")}n.searchParams.set(r,t)}}return n.toString()},e.exports.default=e.exports},"349r":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return o}));var i=n("TYT/");function r(e){return null!=e&&""+e!="false"}function o(e,t){return void 0===t&&(t=0),a(e)?Number(e):t}function a(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function s(e){return Array.isArray(e)?e:[e]}function c(e){return null==e?"":"string"==typeof e?e:e+"px"}function u(e){return e instanceof i.l?e.nativeElement:e}},"3HNt":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n("EkS5"),r=n("1QEH"),o=n("rWdj"),a=n("2C6G"),s=n("das/"),c=n("/kEc"),u=n("zpYP"),l=n("/jXB"),p=n("19Hc"),h=n("axIb");function d(e,t){if(Object(h.L)(t)){var n=d(e,t.ofType);return n&&n.kind===l.a.NULL?null:n}if(null===e)return{kind:l.a.NULL};if(Object(c.a)(e))return null;if(Object(h.J)(t)){var g=t.ofType;if(Object(i.e)(e)){var b=[];return Object(i.b)(e,(function(e){var t=d(e,g);t&&b.push(t)})),{kind:l.a.LIST,values:b}}return d(e,g)}if(Object(h.F)(t)){if(!Object(u.a)(e))return null;for(var m=[],v=0,y=Object(r.a)(t.getFields());vAn error occurred:

    "+p(o.message+"",!0)+"
    ";throw o}}g.options=g.setOptions=function(e){return u(g.defaults,e),d(g.defaults),g},g.getDefaults=h,g.defaults=f,g.Parser=r,g.parser=r.parse,g.Renderer=o,g.TextRenderer=a,g.Lexer=i,g.lexer=i.lex,g.InlineLexer=s,g.inlineLexer=s.output,g.Slugger=c,g.parse=g,e.exports=g},"4RMZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("1/U3"),r=n("/jXB"),o=n("axIb"),a=n("LViu"),s=n("umOc"),c=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t||u,n&&(Object(o.G)(n)&&this._inputTypeStack.push(n),Object(o.D)(n)&&this._parentTypeStack.push(n),Object(o.O)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case r.a.SELECTION_SET:var n=Object(o.A)(this.getType());this._parentTypeStack.push(Object(o.D)(n)?n:void 0);break;case r.a.FIELD:var a,c,u=this.getParentType();u&&(a=this._getFieldDef(t,u,e))&&(c=a.type),this._fieldDefStack.push(a),this._typeStack.push(Object(o.O)(c)?c:void 0);break;case r.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case r.a.OPERATION_DEFINITION:var l;"query"===e.operation?l=t.getQueryType():"mutation"===e.operation?l=t.getMutationType():"subscription"===e.operation&&(l=t.getSubscriptionType()),this._typeStack.push(Object(o.N)(l)?l:void 0);break;case r.a.INLINE_FRAGMENT:case r.a.FRAGMENT_DEFINITION:var p=e.typeCondition,h=p?Object(s.a)(t,p):Object(o.A)(this.getType());this._typeStack.push(Object(o.O)(h)?h:void 0);break;case r.a.VARIABLE_DEFINITION:var d=Object(s.a)(t,e.type);this._inputTypeStack.push(Object(o.G)(d)?d:void 0);break;case r.a.ARGUMENT:var f,g,b=this.getDirective()||this.getFieldDef();b&&(f=Object(i.a)(b.args,(function(t){return t.name===e.name.value})))&&(g=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(Object(o.G)(g)?g:void 0);break;case r.a.LIST:var m=Object(o.B)(this.getInputType()),v=Object(o.J)(m)?m.ofType:m;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(o.G)(v)?v:void 0);break;case r.a.OBJECT_FIELD:var y,w,O=Object(o.A)(this.getInputType());Object(o.F)(O)&&(w=O.getFields()[e.name.value])&&(y=w.type),this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push(Object(o.G)(y)?y:void 0);break;case r.a.ENUM:var C,S=Object(o.A)(this.getInputType());Object(o.E)(S)&&(C=S.getValue(e.value)),this._enumValue=C}},t.leave=function(e){switch(e.kind){case r.a.SELECTION_SET:this._parentTypeStack.pop();break;case r.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case r.a.DIRECTIVE:this._directive=null;break;case r.a.OPERATION_DEFINITION:case r.a.INLINE_FRAGMENT:case r.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case r.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case r.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.a.LIST:case r.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.a.ENUM:this._enumValue=null}},e}();function u(e,t,n){var i=n.name.value;return i===a.SchemaMetaFieldDef.name&&e.getQueryType()===t?a.SchemaMetaFieldDef:i===a.TypeMetaFieldDef.name&&e.getQueryType()===t?a.TypeMetaFieldDef:i===a.TypeNameMetaFieldDef.name&&Object(o.D)(t)?a.TypeNameMetaFieldDef:Object(o.N)(t)||Object(o.H)(t)?t.getFields()[i]:void 0}},"4fRq":function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);e.exports=function(){return n(i),i}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},"4suF":function(e,t,n){"use strict";n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"i",(function(){return O})),n.d(t,"h",(function(){return C}));var i=n("Y/la"),r=n("rWdj"),o=n("E9SJ"),a=n("t3R0"),s=n("Mw0p"),c=n("vJkw"),u=n("zpYP"),l=n("ZZnB"),p=n("F8X2"),h=n("19Hc"),d=n("axIb");function f(e){return Object(s.a)(e,b)}function g(e){if(!f(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL directive."));return e}var b=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=e.isRepeatable&&e.isRepeatable,this.extensions=e.extensions&&Object(o.a)(e.extensions),this.astNode=e.astNode,e.name||Object(a.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(a.a)(0,"@".concat(e.name," locations must be an Array."));var t=e.args||{};Object(u.a)(t)&&!Array.isArray(t)||Object(a.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(i.a)(t).map((function(e){var t=e[1];return{name:e[0],description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(o.a)(t.extensions),astNode:t.astNode}}))}var t=e.prototype;return t.toString=function(){return"@"+this.name},t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Object(d.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e}();Object(l.a)(b),Object(c.a)(b);var m=new b({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[p.a.FIELD,p.a.FRAGMENT_SPREAD,p.a.INLINE_FRAGMENT],args:{if:{type:Object(d.e)(h.a),description:"Included when true."}}}),v=new b({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[p.a.FIELD,p.a.FRAGMENT_SPREAD,p.a.INLINE_FRAGMENT],args:{if:{type:Object(d.e)(h.a),description:"Skipped when true."}}}),y="No longer supported",w=new b({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[p.a.FIELD_DEFINITION,p.a.ENUM_VALUE],args:{reason:{type:h.e,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:y}}}),O=Object.freeze([m,v,w]);function C(e){return f(e)&&O.some((function(t){return t.name===e.name}))}},"51nL":function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b}));var i=n("1/U3"),r=n("1QEH"),o=n("rWdj"),a=n("E9SJ"),s=n("t3R0"),c=n("Mw0p"),u=n("zpYP"),l=n("ZZnB"),p=n("LViu"),h=n("4suF"),d=n("axIb");function f(e){return Object(c.a)(e,b)}function g(e){if(!f(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL schema."));return e}var b=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,Object(u.a)(e)||Object(s.a)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(s.a)(0,'"types" must be Array if provided but got: '.concat(Object(o.a)(e.types),".")),!e.directives||Array.isArray(e.directives)||Object(s.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(o.a)(e.directives),".")),!e.allowedLegacyNames||Array.isArray(e.allowedLegacyNames)||Object(s.a)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat(Object(o.a)(e.allowedLegacyNames),"."))),this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||h.i;var t=[this._queryType,this._mutationType,this._subscriptionType,p.__Schema].concat(e.types),n=Object.create(null);n=t.reduce(m,n),n=this._directives.reduce(v,n),this._typeMap=n,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);for(var i=0,c=Object(r.a)(this._typeMap);i1&&"_"===e[0]&&"_"===e[1]?new r.a('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'),t):o.test(e)?void 0:new r.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),t)}},"5XwX":function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return b}));var i=n("1/U3"),r=n("kBjl"),o=n("rWdj"),a=n("tzQD"),s=n("dWS+"),c=n("/jXB"),u=n("dQau"),l=n("axIb"),p=n("umOc"),h=n("Mbdf"),d=n("67eP");function f(e,t,n,i){var r=i&&i.maxErrors,c=[];try{var f=function(e,t,n,i){for(var r={},c=function(c){var f=t[c],g=f.variable.name.value,b=Object(p.a)(e,f.type);if(!Object(l.G)(b)){var v=Object(u.print)(f.type);return i(new s.a('Variable "$'.concat(g,'" expected value of type "').concat(v,'" which cannot be used as an input type.'),f.type)),"continue"}if(!m(n,g)){if(f.defaultValue)r[g]=Object(h.a)(f.defaultValue,b);else if(Object(l.L)(b)){var y=Object(o.a)(b);i(new s.a('Variable "$'.concat(g,'" of required type "').concat(y,'" was not provided.'),f))}return"continue"}var w=n[g];if(null===w&&Object(l.L)(b)){var O=Object(o.a)(b);return i(new s.a('Variable "$'.concat(g,'" of non-null type "').concat(O,'" must not be null.'),f)),"continue"}r[g]=Object(d.a)(w,b,(function(e,t,n){var r='Variable "$'.concat(g,'" got invalid value ')+Object(o.a)(t);e.length>0&&(r+=' at "'.concat(g).concat(Object(a.a)(e),'"')),i(new s.a(r+"; "+n.message,f,void 0,void 0,void 0,n.originalError))}))},f=0;f=r)throw new s.a("Too many errors processing variables, error limit reached. Execution aborted.");c.push(e)}));if(0===c.length)return{coerced:f}}catch(g){c.push(g)}return{errors:c}}function g(e,t,n){for(var i={},a=Object(r.a)(t.arguments||[],(function(e){return e.name.value})),p=0,d=e.args;p2&&void 0!==arguments[2]?arguments[2]:g;return b(e,t,n)}function g(e,t,n){var i="Invalid value "+Object(o.a)(t);throw e.length>0&&(i+=' at "value'.concat(Object(l.a)(e),'": ')),n.message=i+": "+n.message,n}function b(e,t,n,l){if(Object(d.L)(t))return null!=e?b(e,t.ofType,n,l):void n(Object(p.b)(l),e,new h.a("Expected non-nullable type ".concat(Object(o.a)(t)," not to be null.")));if(null==e)return null;if(Object(d.J)(t)){var f=t.ofType;if(Object(i.e)(e)){var g=[];return Object(i.b)(e,(function(e,t){g.push(b(e,f,n,Object(p.a)(l,t)))})),g}return[b(e,f,n,l)]}if(Object(d.F)(t)){if(!Object(c.a)(e))return void n(Object(p.b)(l),e,new h.a("Expected type ".concat(t.name," to be an object.")));for(var m={},v=t.getFields(),y=0,w=Object(r.a)(v);y0&&(e=B.apply(null,Object(i.g)(t,[e]))),function(t,n){var i=e(t);return function(e,t){return i(e=void 0===e?n:e,t)}}}var U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t}(a.a),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t}(v),W="@ngrx/store/update-reducers",q=function(e){function t(t,n,i,r){var o=e.call(this,r(i,n))||this;return o.dispatcher=t,o.initialState=n,o.reducers=i,o.reducerFactory=r,o}return Object(i.c)(t,e),t.prototype.addFeature=function(e){this.addFeatures([e])},t.prototype.addFeatures=function(e){var t=e.reduce((function(e,t){var n=t.reducers,r=t.reducerFactory,o=t.metaReducers,a=t.initialState,s=t.key,c="function"==typeof n?function(e){var t=Array.isArray(e)&&e.length>0?B.apply(void 0,Object(i.g)(e)):function(e){return e};return function(e,n){return e=t(e),function(t,i){return e(t=void 0===t?n:t,i)}}}(o)(n,a):Y(r,o)(n,a);return e[s]=c,e}),{});this.addReducers(t)},t.prototype.removeFeature=function(e){this.removeFeatures([e])},t.prototype.removeFeatures=function(e){this.removeReducers(e.map((function(e){return e.key})))},t.prototype.addReducer=function(e,t){var n;this.addReducers(((n={})[e]=t,n))},t.prototype.addReducers=function(e){this.reducers=Object(i.a)(Object(i.a)({},this.reducers),e),this.updateReducers(Object.keys(e))},t.prototype.removeReducer=function(e){this.removeReducers([e])},t.prototype.removeReducers=function(e){var t=this;e.forEach((function(e){var n,i;t.reducers=(n=t.reducers,i=e,Object.keys(n).filter((function(e){return e!==i})).reduce((function(e,t){var i;return Object.assign(e,((i={})[t]=n[t],i))}),{}))})),this.updateReducers(e)},t.prototype.updateReducers=function(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:W,features:e})},t.prototype.ngOnDestroy=function(){this.complete()},t.\u0275fac=function(e){return new(e||t)(r.dc(H),r.dc(C),r.dc(T),r.dc(S))},t.\u0275prov=r.Pb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(o.a),Z=[q,{provide:U,useExisting:q},{provide:H,useExisting:v}],$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(i.c)(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t.\u0275fac=function(e){return n(e||t)},t.\u0275prov=r.Pb({token:t,factory:function(e){return t.\u0275fac(e)}});var n=r.bc(t);return t}(s.a),G=[$],Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t}(a.a),X=function(e){function t(t,n,i,r){var o=e.call(this,r)||this,a={state:r},s=t.pipe(Object(u.b)(c.a)).pipe(Object(l.a)(n)).pipe(Object(p.a)(K,a));return o.stateSubscription=s.subscribe((function(e){var t=e.action;o.next(e.state),i.next(t)})),o}return Object(i.c)(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t.INIT=m,t.\u0275fac=function(e){return new(e||t)(r.dc(v),r.dc(U),r.dc($),r.dc(C))},t.\u0275prov=r.Pb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(o.a);function K(e,t){void 0===e&&(e={state:void 0});var n=Object(i.e)(t,2),r=n[0];return{state:(0,n[1])(e.state,r),action:r}}var J=[X,{provide:Q,useExisting:X}],ee=function(e){function t(t,n,i){var r=e.call(this)||this;return r.actionsObserver=n,r.reducerManager=i,r.source=t,r}var n;return Object(i.c)(t,e),n=t,t.prototype.select=function(e){for(var t,n=[],r=1;r0?1:-1}},"7CWi":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h}));var i,r=n("TYT/"),o=n("Valr");try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(g){i=!1}var a,s,c,u=function(){function e(e){this._platformId=e,this.isBrowser=this._platformId?Object(o.L)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!i)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return e.\u0275prov=Object(r.Pb)({factory:function(){return new e(Object(r.dc)(r.B,8))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(r.dc(r.B,8))},e}(),l=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)}}),e}();function p(e){return function(){if(null==a&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return a=!0}}))}finally{a=a||!1}return a}()?e:!!e.capture}function h(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function d(){if("object"!=typeof document||!document)return 0;if(null==s){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),s=0,0===e.scrollLeft&&(e.scrollLeft=1,s=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return s}function f(e){if(function(){if(null==c){var e="undefined"!=typeof document?document.head:null;c=!(!e||!e.createShadowRoot&&!e.attachShadow)}return c}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}},"7PmA":function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},"86bp":function(e,t,n){"use strict";var i=n("YsTz"),r=Array.prototype.forEach,o=Object.create,a=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=o(null);return r.call(arguments,(function(e){i(e)&&a(Object(e),t)})),t}},"8O83":function(e,t,n){"use strict";function i(e){const t=/^.+\.([^.]+)$/.exec(e);return t&&t.length>1?t[1]:null}function r(e,t){let n=e;return t&&(n=e.substr(0,e.length-(t.length+1))),n}function o(e){if(e)throw Error(`cannot import() module with extension '${e}'`)}n.r(t),n.d(t,"getFileExtension",(function(){return i})),n.d(t,"getPathWithoutExtension",(function(){return r})),n.d(t,"resolveFile",(function(){return l})),n.d(t,"requireFile",(function(){return p}));const a=e=>n("Lxz9").resolve(e+".js"),s=e=>n("FBZJ").resolve(e+".json"),c=e=>n("6VjI")(e+".js"),u=e=>n("3PdN")(e+".json");function l(e){const t=i(e),n=r(e,t);switch(t){case"js":return a(n);case"json":return s(n);default:try{return a(e)}catch(o){return s(e)}}}function p(e){const t=i(e),n=r(e,t);switch(t){case"js":return l(n+".js")?c(n):null;case"json":return l(n+".json")?u(n):null;default:try{if(l(e+".js"))return c(e)}catch(a){o(t)}if(l(e+".json"))return u(e);o(t)}}},"8Ur0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue,type:(0,i.getNamedType)(e.inputType)}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}};var i=n("Tzvz");function r(e){return"__"===e.name.slice(0,2)}},"8g8A":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},"8j7D":function(e,t,n){"use strict";var i=n("9Qh4"),r=n("ZI+j"),o=Object.create,a=Object.defineProperties;r.refCounter=function(e,t,n){var s,c;s=o(null),t.on("set"+(c=n.async&&r.async||n.promise&&r.promise?"async":""),(function(e,t){s[e]=t||1})),t.on("get"+c,(function(e){++s[e]})),t.on("delete"+c,(function(e){delete s[e]})),t.on("clear"+c,(function(){s={}})),a(t.memoized,{deleteRef:i((function(){var e=t.get(arguments);return null===e?null:s[e]?!--s[e]&&(t.delete(e),!0):null})),getRefCount:i((function(){var e=t.get(arguments);return null===e?0:s[e]?s[e]:0}))})}},"93gR":function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b}));var i=n("1/U3"),r=n("PXbX"),o=n("1QEH"),a=n("Y/la"),s=n("rWdj"),c=n("dWS+"),u=n("5PMP"),l=n("sJV+"),p=n("4suF"),h=n("LViu"),d=n("51nL"),f=n("axIb");function g(e){if(Object(d.b)(e),e.__validationErrors)return e.__validationErrors;var t=new m(e);!function(e){var t=e.schema,n=t.getQueryType();n?Object(f.N)(n)||e.reportError("Query root type must be Object type, it cannot be ".concat(Object(s.a)(n),"."),v(t,n,"query")):e.reportError("Query root type must be provided.",t.astNode);var i=t.getMutationType();i&&!Object(f.N)(i)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(Object(s.a)(i),"."),v(t,i,"mutation"));var r=t.getSubscriptionType();r&&!Object(f.N)(r)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(Object(s.a)(r),"."),v(t,r,"subscription"))}(t),function(e){for(var t=0,n=e.schema.getDirectives();t0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]\n "+e.search+"\n "+e.cat+"\n "+e.description+"\n ")},this.translate.get("DOCS_SEARCH_INPUT_PLACEHOLDER_TEXT").pipe(Object(s.a)(this)).subscribe((function(e){return a.searchInputPlaceholder=e})),this.setDocViewChange.subscribe((function(){a.docViewerRef.nativeElement.scrollTop=0}))}return e.prototype.ngOnChanges=function(e){e.gqlSchema&&e.gqlSchema.currentValue&&(this.gqlSchema=e.gqlSchema.currentValue,this.updateDocs(e.gqlSchema.currentValue))},e.prototype.updateDocs=function(e){return _(this,void 0,void 0,(function(){var t,n,i,r;return k(this,(function(o){switch(o.label){case 0:a.a.log(e),this.rootTypes=Object(p.a)(e),o.label=1;case 1:return o.trys.push([1,6,,7]),[4,this.getDocUtilsWorker()];case 2:return t=o.sent(),[4,this.gqlService.getSDL(e)];case 3:return n=o.sent(),[4,t.updateSchema(n)];case 4:return o.sent(),i=this,[4,this.docUtilWorker.generateSearchIndex()];case 5:return i.index=o.sent(),a.a.log("Worker index:",this.index),this.hasSearchIndex=!0,[3,7];case 6:return r=o.sent(),a.a.log("Error while generating index.",r),this.hasSearchIndex=!1,[3,7];case 7:return[2]}}))}))},e.prototype.searchInputKeyUp=function(e,t){t&&13!==t.keyCode||this.searchDocs(e)},e.prototype.searchDocs=function(e){return _(this,void 0,void 0,(function(){var t,n;return k(this,(function(i){switch(i.label){case 0:return"string"!=typeof e&&(e=e.name),this.hasSearchIndex?(this.updateDocHistory(),this.setDocViewChange.next({view:"search"}),[4,this.getDocUtilsWorker()]):[2,!1];case 1:return t=i.sent(),n=this,[4,t.searchDocs(e)];case 2:return n.searchResult=i.sent(),a.a.log(this.searchResult),[2]}}))}))},e.prototype.cleanName=function(e){return e.replace(/[\[\]!]/g,"")},e.prototype.goBack=function(){this.docHistory.length&&this.setDocViewChange.next(this.docHistory.pop())},e.prototype.goHome=function(){this.setDocViewChange.next({view:"root"}),this.docHistory=[]},e.prototype.updateDocHistory=function(){this.docView&&"search"!==this.docView.view&&this.docHistory.push(T({},this.docView))},e.prototype.goToType=function(e){this.updateDocHistory(),this.setDocViewChange.next({view:"type",name:e.replace(/[\[\]!]/g,"")})},e.prototype.goToField=function(e,t){this.updateDocHistory(),this.setDocViewChange.next({view:"field",name:e.replace(/[\[\]!]/g,""),parentType:t.replace(/[\[\]!]/g,"")})},e.prototype.addToEditor=function(e,t){return _(this,void 0,void 0,(function(){var n;return k(this,(function(i){switch(i.label){case 0:return this.hasSearchIndex?[4,this.getDocUtilsWorker()]:[2,!1];case 1:return[4,i.sent().generateQuery(e,t,{tabSize:this.tabSize,addQueryDepthLimit:this.addQueryDepthLimit})];case 2:return(n=i.sent())&&this.addQueryToEditorChange.next(n),[2]}}))}))},e.prototype.exportSDL=function(){this.exportSDLChange.next()},e.prototype.getDocUtilsWorker=function(){return _(this,void 0,void 0,(function(){var e,t;return k(this,(function(i){switch(i.label){case 0:return this.docUtilWorker?[3,4]:W?(e=this,[4,new W]):[3,2];case 1:return e.docUtilWorker=i.sent(),[3,4];case 2:return[4,n.e(6).then(n.bind(null,"U3tN"))];case 3:t=i.sent().DocUtils,this.docUtilWorker=new t,i.label=4;case 4:return[2,this.docUtilWorker]}}))}))},e.prototype.onResize=function(e){this.resizeFactor=e},e.prototype.rootTypeTrackBy=function(e,t){return t.name},e.prototype.ngOnDestroy=function(){},e.\u0275fac=function(t){return new(t||e)(i.Tb(h.e),i.Tb(l.GqlService),i.Tb(d.b),i.Tb(o.a))},e.\u0275cmp=i.Nb({type:e,selectors:[["app-doc-viewer"]],viewQuery:function(e,t){var n;1&e&&i.Sc(D,!0),2&e&&i.zc(n=i.ic())&&(t.docViewerRef=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&i.Kc("flex-grow",t.resizeFactor)},inputs:{gqlSchema:"gqlSchema",allowIntrospection:"allowIntrospection",isLoading:"isLoading",addQueryDepthLimit:"addQueryDepthLimit",tabSize:"tabSize",docView:"docView",lastUpdatedAt:"lastUpdatedAt"},outputs:{toggleDocsChange:"toggleDocsChange",setDocViewChange:"setDocViewChange",addQueryToEditorChange:"addQueryToEditorChange",exportSDLChange:"exportSDLChange",loadSchemaChange:"loadSchemaChange"},features:[i.Bb],decls:8,vars:3,consts:[["class","app-doc-viewer",4,"ngIf"],["class","doc-viewer__last-updated",4,"ngIf"],["class","app-doc-notice",4,"ngIf"],[3,"resizeChange"],[1,"app-doc-viewer"],["docViewer",""],["class","app-doc-loader",4,"ngIf"],[1,"doc-viewer-header"],[1,"doc-viewer-navigation"],[1,"doc-viewer-navigation--left"],["class","doc-viewer-navigation__option","track-id","go_back_docs",3,"click",4,"ngIf"],["class","doc-viewer-navigation__option",3,"click",4,"ngIf"],[1,"doc-viewer-navigation--right"],["nz-dropdown","","nzTrigger","click",1,"doc-viewer-navigation__option",3,"nzDropdownMenu"],["name","more-horizontal"],["docViewerMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click",4,"ngIf"],["nz-menu-item","",3,"click"],[1,"doc-viewer-navigation__option",3,"click"],["name","x"],[1,"doc-viewer-search-wrapper"],["ngui-auto-complete","","value-property-name","search","display-property-name","search",1,"doc-viewer-search-input",3,"ngModel","source","min-chars","list-formatter","placeholder","ngModelChange","keyup","valueChanged"],[1,"doc-viewer-items"],[3,"ngSwitch",4,"ngIf"],[1,"app-doc-loader"],[1,"app-doc-loader-content"],["src","assets/img/logo.svg","alt","",1,"anim",3,"ngClass"],["track-id","go_back_docs",1,"doc-viewer-navigation__option",3,"click"],["name","arrow-left"],["name","home"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","doc-viewer-item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"doc-viewer-item"],["class","no-link-link",3,"click",4,"ngIf"],[1,"no-link-link",3,"click"],[3,"data","gqlSchema","goToFieldChange","goToTypeChange","addToEditorChange",4,"ngIf"],[3,"data","gqlSchema","goToFieldChange","goToTypeChange","addToEditorChange"],[3,"data","gqlSchema","parentType","goToFieldChange","goToTypeChange","addToEditorChange"],[3,"results","goToFieldChange","goToTypeChange"],[1,"doc-viewer__last-updated"],[1,"app-doc-notice"]],template:function(e,t){1&e&&(i.Lc(0,Y,54,14,"div",0),i.Nc(1,"\n"),i.Lc(2,U,4,7,"div",1),i.Nc(3,"\n"),i.Lc(4,H,3,3,"div",2),i.Nc(5,"\n"),i.Zb(6,"app-flex-resizer",3),i.hc("resizeChange",(function(e){return t.onResize(e)})),i.Yb(),i.Nc(7,"\n")),2&e&&(i.sc("ngIf",t.allowIntrospection),i.Db(2),i.sc("ngIf",t.gqlSchema&&t.lastUpdatedAt),i.Db(2),i.sc("ngIf",!t.allowIntrospection))},directives:[f.t,g.a,b.b,m.a,b.e,v.c,y.a,v.f,w.e,O.b,w.o,w.r,f.q,f.x,f.y,f.s,C.a,S.a,z.a],pipes:[h.d,f.f],encapsulation:2,data:{animation:[c.a]},changeDetection:0}),e}()}).call(this,n("DBmV"))},"9g66":function(e,t,n){"use strict";var i=n("e989"),r=n("lq5y"),o=Math.max;e.exports=function(e,t){var n,a,s,c=o(arguments.length,2);for(e=Object(r(e)),s=function(i){try{e[i]=t[i]}catch(r){n||(n=r)}},a=1;a=0;u--)if(l[u]!==p[u])return!1;for(u=l.length-1;u>=0;u--)if(!y(e[s=l[u]],t[s],n,i))return!1;return!0}(e,t,n,i))}return n?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function O(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function C(e,t,n,i){var r;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(i=n,n=null),r=function(e){var t;try{e()}catch(n){t=n}return t}(t),i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!r&&m(r,n,"Missing expected exception"+i);var o="string"==typeof i,s=!e&&r&&!n;if((!e&&a.isError(r)&&o&&O(r,n)||s)&&m(r,n,"Got unwanted exception"+i),e&&r&&n&&!O(r,n)||!e&&r)throw r}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return g(b(e.actual),128)+" "+e.operator+" "+g(b(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var i=n.stack,r=f(t),o=i.indexOf("\n"+r);if(o>=0){var a=i.indexOf("\n",o+1);i=i.substring(a+1)}this.stack=i}}},a.inherits(h.AssertionError,Error),h.fail=m,h.ok=v,h.equal=function(e,t,n){e!=t&&m(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&m(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){y(e,t,!1)||m(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){y(e,t,!0)||m(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){y(e,t,!1)&&m(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,n,i){y(t,n,!0)&&m(t,n,i,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,n){e!==t&&m(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&m(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){C(!0,e,t,n)},h.doesNotThrow=function(e,t,n){C(!1,e,t,n)},h.ifError=function(e){if(e)throw e},h.strict=i((function e(t,n){t||m(t,!0,n,"==",e)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var S=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}},A67W:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("dWS+");function r(e,t){return t?'Variable "$'.concat(e,'" is never used in operation "').concat(t,'".'):'Variable "$'.concat(e,'" is never used.')}function o(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var o=Object.create(null),a=e.getRecursiveVariableUsages(n),s=n.name?n.name.value:null,c=0;c0&&e.reportError(new i.a("Must provide only one schema definition.",t)),++r)}}}},AJqF:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("mrSG"),r=n("FFOo"),o=n("T1DM"),a=(n("MGBS"),n("zotm"),{leading:!0,trailing:!1});function s(e,t,n){return void 0===t&&(t=o.a),void 0===n&&(n=a),function(i){return i.lift(new c(e,t,n.leading,n.trailing))}}var c=function(){function e(e,t,n,i){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=i}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),u=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.duration=n,a.scheduler=i,a.leading=r,a.trailing=o,a._hasTrailingValue=!1,a._trailingValue=null,a}return i.c(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(l,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(r.a);function l(e){e.subscriber.clearThrottle()}},"AW/X":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n("1QEH"),r=n("kBjl"),o=n("rWdj"),a=n("/kEc"),s=n("pv/G"),c=n("T95z"),u=n("dWS+"),l=n("dQau"),p=n("axIb");function h(e,t,n){return"Expected type ".concat(e,", found ").concat(t)+(n?"; ".concat(n):".")}function d(e,t,n){return"Expected type ".concat(e,", found ").concat(t,".")+Object(s.a)("the enum value",n)}function f(e){return{NullValue:function(t){var n=e.getInputType();Object(p.L)(n)&&e.reportError(new u.a(h(Object(o.a)(n),Object(l.print)(t)),t))},ListValue:function(t){var n=Object(p.B)(e.getParentInputType());if(!Object(p.J)(n))return g(e,t),!1},ObjectValue:function(t){var n=Object(p.A)(e.getInputType());if(!Object(p.F)(n))return g(e,t),!1;for(var a,s,c=Object(r.a)(t.fields,(function(e){return e.name.value})),l=0,h=Object(i.a)(n.getFields());l0&&a(t[0]);)t.shift();for(;t.length>0&&a(t[t.length-1]);)t.pop();return t.join("\n")}function r(e){for(var t=null,n=1;n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!i||o||n,s="";return!a||i&&r||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s}))},C2QD:function(e,t){function n(e){this.ms=(e=e||{}).min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},C2zF:function(e,t,n){!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function r(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function o(e,t,n,i,r){e.openDialog?e.openDialog(t,r,{value:i,selectValueOnOpen:!0}):r(prompt(n,i))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(n){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function c(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,i(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,i(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,i(t.query)))}function u(t,i,r,a){var s=n(t);if(s.query)return l(t,i);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),r&&t.openDialog){var d=null,f=function(n,i){e.e_stop(i),n&&(n!=s.queryText&&(c(t,s,n),s.posFrom=s.posTo=t.getCursor()),d&&(d.style.opacity=1),l(t,i.shiftKey,(function(e,n){var i;n.line<3&&document.querySelector&&(i=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&i.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=i).style.opacity=.4)})))};!function(e,t,n,i,r){e.openDialog(t,i,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:r})}(t,h(t),u,f,(function(i,r){var o=e.keyName(i),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(i),c(t,n(t),r),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(i),f(r,i))})),a&&u&&(c(t,s,u),l(t,i))}else o(t,h(t),"Search for:",u,(function(e){e&&!s.query&&t.operation((function(){c(t,s,e),s.posFrom=s.posTo=t.getCursor(),l(t,i)}))}))}function l(t,i,o){t.operation((function(){var a=n(t),s=r(t,a.query,i?a.posFrom:a.posTo);(s.find(i)||(s=r(t,a.query,i?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(i))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function p(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function h(e){return''+e.phrase("Search:")+' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function d(e,t,n){e.operation((function(){for(var i=r(e,t);i.findNext();)if("string"!=typeof t){var o=e.getRange(i.from(),i.to()).match(t);i.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else i.replace(n)}))}function f(e,t){if(!e.getOption("readOnly")){var i=e.getSelection()||n(e).lastQuery,c=''+e.phrase(t?"Replace all:":"Replace:")+"";o(e,c+function(e){return' '+e.phrase("(Use /re/ syntax for regexp search)")+""}(e),c,i,(function(n){n&&(n=s(n),o(e,function(e){return''+e.phrase("With:")+' '}(e),e.phrase("Replace with:"),"",(function(i){if(i=a(i),t)d(e,n,i);else{p(e);var o=r(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=r(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,i){e.openConfirm?e.openConfirm(t,i):confirm(n)&&i[0]()}(e,function(e){return''+e.phrase("Replace?")+" "}(e),e.phrase("Replace?"),[function(){c(t)},s,function(){d(e,n,i)}]))},c=function(e){o.replace("string"==typeof n?i:i.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.commands.find=function(e){p(e),u(e)},e.commands.findPersistent=function(e){p(e),u(e,!1,!0)},e.commands.findPersistentNext=function(e){u(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){u(e,!0,!0,!0)},e.commands.findNext=u,e.commands.findPrev=function(e){u(e,!0)},e.commands.clearSearch=p,e.commands.replace=f,e.commands.replaceAll=function(e){f(e,!0)}}(n("VrN/"),n("uTOq"),n("Ku0u"))},"CCO+":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n("TYT/"),r=n("Valr"),o=new i.q("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.W)(r.e)}}),a=function(){function e(e){if(this.value="ltr",this.change=new i.n,e){var t=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===t||"rtl"===t?t:"ltr"}}return e.prototype.ngOnDestroy=function(){this.change.complete()},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(o,8))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(o,8))},e}(),s=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}()},CRiN:function(e,t,n){"use strict";var i,r=(i=n("VrN/"))&&i.__esModule?i:{default:i};function o(e,t){const n=e.state.info,i=t.target||t.srcElement;if("SPAN"!==i.nodeName||void 0!==n.hoverTimeout)return;const o=i.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(c,u)},s=function(){r.default.off(document,"mousemove",a),r.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},c=function(){r.default.off(document,"mousemove",a),r.default.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,function(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info.options,o=i.render||e.getHelper(n,"info");if(o){const a=e.getTokenAt(n,!0);if(a){const s=o(a,i,e,n);s&&function(e,t,n){const i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);const o=i.getBoundingClientRect(),a=i.currentStyle||window.getComputedStyle(i),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),c=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom);let u=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(u=t.top-c),u<0&&(u=t.bottom);let l,p=Math.max(0,window.innerWidth-s-15);p>t.left&&(p=t.left),i.style.opacity=1,i.style.top=u+"px",i.style.left=p+"px";const h=function(){clearTimeout(l)},d=function(){clearTimeout(l),l=setTimeout(f,200)},f=function(){r.default.off(i,"mouseover",h),r.default.off(i,"mouseout",d),r.default.off(e.getWrapperElement(),"mouseout",d),i.style.opacity?(i.style.opacity=0,setTimeout(()=>{i.parentNode&&i.parentNode.removeChild(i)},600)):i.parentNode&&i.parentNode.removeChild(i)};r.default.on(i,"mouseover",h),r.default.on(i,"mouseout",d),r.default.on(e.getWrapperElement(),"mouseout",d)}(e,t,s)}}}(e,o)},u=function(e){const t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(c,u),r.default.on(document,"mousemove",a),r.default.on(e.getWrapperElement(),"mouseout",s)}r.default.defineOption("info",!1,(e,t,n)=>{if(n&&n!==r.default.Init){const t=e.state.info.onMouseOver;r.default.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);n.onMouseOver=o.bind(null,e),r.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})},CS9Q:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("mrSG"),r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),o=function(e){function t(n,i){void 0===i&&(i=r.now);var o=e.call(this,n,(function(){return t.delegate&&t.delegate!==o?t.delegate.now():i()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return i.c(t,e),t.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,i,r):e.prototype.schedule.call(this,n,i,r)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(r)},CbW8:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var i=n("vJkw"),r=n("oycr"),o=n("BLR7"),a=n("JvOi");function s(e,t){var n=new p(a.a.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:c,lookahead:u}}function c(){return this.lastToken=this.token,this.token=this.lookahead()}function u(){var e=this.token;if(e.kind!==a.a.EOF)do{e=e.next||(e.next=d(this,e))}while(e.kind===a.a.COMMENT);return e}function l(e){var t=e.kind;return t===a.a.BANG||t===a.a.DOLLAR||t===a.a.AMP||t===a.a.PAREN_L||t===a.a.PAREN_R||t===a.a.SPREAD||t===a.a.COLON||t===a.a.EQUALS||t===a.a.AT||t===a.a.BRACKET_L||t===a.a.BRACKET_R||t===a.a.BRACE_L||t===a.a.PIPE||t===a.a.BRACE_R}function p(e,t,n,i,r,o,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}function h(e){return isNaN(e)?a.a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function d(e,t){var n=e.source,i=n.body,s=i.length,c=function(e,t,n){for(var i=e.length,r=t;r=s)return new p(a.a.EOF,s,s,u,l,t);var d=i.charCodeAt(c);switch(d){case 33:return new p(a.a.BANG,c,c+1,u,l,t);case 35:return function(e,t,n,i,r){var o,s=e.body,c=t;do{o=s.charCodeAt(++c)}while(!isNaN(o)&&(o>31||9===o));return new p(a.a.COMMENT,t,c,n,i,r,s.slice(t+1,c))}(n,c,u,l,t);case 36:return new p(a.a.DOLLAR,c,c+1,u,l,t);case 38:return new p(a.a.AMP,c,c+1,u,l,t);case 40:return new p(a.a.PAREN_L,c,c+1,u,l,t);case 41:return new p(a.a.PAREN_R,c,c+1,u,l,t);case 46:if(46===i.charCodeAt(c+1)&&46===i.charCodeAt(c+2))return new p(a.a.SPREAD,c,c+3,u,l,t);break;case 58:return new p(a.a.COLON,c,c+1,u,l,t);case 61:return new p(a.a.EQUALS,c,c+1,u,l,t);case 64:return new p(a.a.AT,c,c+1,u,l,t);case 91:return new p(a.a.BRACKET_L,c,c+1,u,l,t);case 93:return new p(a.a.BRACKET_R,c,c+1,u,l,t);case 123:return new p(a.a.BRACE_L,c,c+1,u,l,t);case 124:return new p(a.a.PIPE,c,c+1,u,l,t);case 125:return new p(a.a.BRACE_R,c,c+1,u,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,i,r){for(var o=e.body,s=o.length,c=t+1,u=0;c!==s&&!isNaN(u=o.charCodeAt(c))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++c;return new p(a.a.NAME,t,c,n,i,r,o.slice(t,c))}(n,c,u,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,i,o,s){var c=e.body,u=n,l=t,d=!1;if(45===u&&(u=c.charCodeAt(++l)),48===u){if((u=c.charCodeAt(++l))>=48&&u<=57)throw Object(r.a)(e,l,"Invalid number, unexpected digit after 0: ".concat(h(u),"."))}else l=f(e,l,u),u=c.charCodeAt(l);if(46===u&&(d=!0,u=c.charCodeAt(++l),l=f(e,l,u),u=c.charCodeAt(l)),69!==u&&101!==u||(d=!0,43!==(u=c.charCodeAt(++l))&&45!==u||(u=c.charCodeAt(++l)),l=f(e,l,u),u=c.charCodeAt(l)),46===u||69===u||101===u)throw Object(r.a)(e,l,"Invalid number, expected digit but got: ".concat(h(u),"."));return new p(d?a.a.FLOAT:a.a.INT,t,l,i,o,s,c.slice(t,l))}(n,c,d,u,l,t);case 34:return 34===i.charCodeAt(c+1)&&34===i.charCodeAt(c+2)?function(e,t,n,i,s,c){for(var u=e.body,l=t+3,d=l,f=0,g="";l=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw Object(r.a)(e,o,"Invalid number, expected digit but got: ".concat(h(a),"."))}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Object(i.a)(p,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}))},DAag:function(e,t,n){"use strict";var i=n("IDEf"),r=n("IWB/"),o=n("YsTz"),a=Error.captureStackTrace;e.exports=function(t){var n=new Error(t),s=arguments[1],c=arguments[2];return o(c)||r(s)&&(c=s,s=null),o(c)&&i(n,c),o(s)&&(n.code=s),a&&a(n,e.exports),n}},DBmV:function(e,t,n){e.exports=n.p+"0.worker.js"},DKTb:function(e,t,n){"use strict";function i(e){setTimeout((function(){throw e}),0)}n.d(t,"a",(function(){return i}))},DOSD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=[];let i=e;for(;i&&i.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}},DUip:function(e,t,n){"use strict";n.d(t,"a",(function(){return He})),n.d(t,"b",(function(){return Y})),n.d(t,"c",(function(){return ie})),n.d(t,"d",(function(){return Kt})),n.d(t,"e",(function(){return Jt})),n.d(t,"f",(function(){return en}));var i=n("mrSG"),r=n("Valr"),o=n("TYT/"),a=n("F/XL"),s=n("0/uQ"),c=n("26FU"),u=n("6blF"),l=n("3fWJ"),p=n("dzgT"),h=n("lYZG"),d=n("K9Ia"),f=n("G5J1"),g=n("67Y/"),b=n("Txjg"),m=n("VnD/"),v=n("FFOo"),y=n("b7mW");function w(e){return function(t){return 0===e?Object(f.b)():t.lift(new O(e))}}var O=function(){function e(e){if(this.total=e,this.total<0)throw new y.a}return e.prototype.call=function(e,t){return t.subscribe(new C(e,this.total))},e}(),C=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.c(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r=2;return function(i){return i.pipe(e?Object(m.a)((function(t,n){return e(t,n,i)})):T.a,w(1),n?Object(z.a)(t):Object(S.a)((function(){return new l.a})))}}var k=n("9Z1F"),D=n("P6uZ"),x=n("psW0"),E=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new N(e,this.predicate,this.thisArg,this.source))},e}(),N=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i.c(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v.a),j=n("15JJ"),I=n("t9fZ"),A=n("p0Sj"),M=n("dC0D"),L=n("Phjn"),P=n("y3By"),F=n("xMyE"),R=n("2WpN"),V=(n("Zn8D"),function(){return function(e,t){this.id=e,this.url=t}}()),B=function(e){function t(t,n,i,r){void 0===i&&(i="imperative"),void 0===r&&(r=null);var o=e.call(this,t,n)||this;return o.navigationTrigger=i,o.restoredState=r,o}return Object(i.c)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(V),Y=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r}return Object(i.c)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(V),U=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.reason=i,r}return Object(i.c)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(V),H=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.error=i,r}return Object(i.c)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(V),W=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return Object(i.c)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(V),q=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return Object(i.c)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(V),Z=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n)||this;return a.urlAfterRedirects=i,a.state=r,a.shouldActivate=o,a}return Object(i.c)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(V),$=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return Object(i.c)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(V),G=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return Object(i.c)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(V),Q=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),X=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),K=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),J=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),ee=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),te=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),ne=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Nb({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&o.Ub(0,"router-outlet")},directives:function(){return[on]},encapsulation:2}),e}(),ie="primary",re=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function oe(e){return new re(e)}function ae(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function se(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length-1})):e===t}function ge(e){return e.length>0?e[e.length-1]:null}function be(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function me(e){return Object(o.tb)(e)?e:Object(o.ub)(e)?Object(s.a)(Promise.resolve(e)):Object(a.a)(e)}function ve(e,t,n){return n?function(e,t){return de(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Ce(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return fe(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,r){if(n.segments.length>r.length)return!!Ce(a=n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!Ce(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!e(n.children[o],i.children[o]))return!1}return!0}var a=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!Ce(n.segments,a)&&!!n.children[ie]&&t(n.children[ie],i,s)}(t,n,n.segments)}(e.root,t.root)}var ye=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ze.serialize(this)},e}(),we=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,be(t,(function(e,t){return e.parent=n}))}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Te(this)},e}(),Oe=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=oe(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Ne(this)},e}();function Ce(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function Se(e,t){var n=[];return be(e.children,(function(e,i){i===ie&&(n=n.concat(t(e,i)))})),be(e.children,(function(e,i){i!==ie&&(n=n.concat(t(e,i)))})),n}var ze=new(function(){function e(){}return e.prototype.parse=function(e){var t=new Le(e);return new ye(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return Te(t);if(n){var i=t.children[ie]?e(t.children[ie],!1):"",r=[];return be(t.children,(function(t,n){n!==ie&&r.push(n+":"+e(t,!1))})),r.length>0?i+"("+r.join("//")+")":i}var o=Se(t,(function(n,i){return i===ie?[e(t.children[ie],!1)]:[i+":"+e(n,!1)]}));return Te(t)+"/("+o.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map((function(e){var n=t[e];return Array.isArray(n)?n.map((function(t){return ke(e)+"="+ke(t)})).join("&"):ke(e)+"="+ke(n)}))).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}());function Te(e){return e.segments.map((function(e){return Ne(e)})).join("/")}function _e(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ke(e){return _e(e).replace(/%3B/gi,";")}function De(e){return _e(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xe(e){return decodeURIComponent(e)}function Ee(e){return xe(e.replace(/\+/g,"%20"))}function Ne(e){return""+De(e.path)+(t=e.parameters,Object.keys(t).map((function(e){return";"+De(e)+"="+De(t[e])})).join(""));var t}var je=/^[^\/()?;=#]+/;function Ie(e){var t=e.match(je);return t?t[0]:""}var Ae=/^[^=?&#]+/,Me=/^[^?&#]+/,Le=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new we([],{}):new we([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[ie]=new we(e,t)),n},e.prototype.parseSegment=function(){var e=Ie(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new Oe(xe(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=Ie(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Ie(this.remaining);i&&this.capture(n=i)}e[xe(t)]=xe(n)}},e.prototype.parseQueryParam=function(e){var t=function(e){var t=e.match(Ae);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Me);return t?t[0]:""}(this.remaining);i&&this.capture(n=i)}var r=Ee(t),o=Ee(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(e[r]=a=[a]),a.push(o)}else e[r]=o}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ie(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=ie);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o[ie]:new we([],o),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Pe=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Fe(e,this._root);return t?t.children.map((function(e){return e.value})):[]},e.prototype.firstChild=function(e){var t=Fe(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Re(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))},e.prototype.pathFromRoot=function(e){return Re(e,this._root).map((function(e){return e.value}))},e}();function Fe(e,t){var n,r;if(e===t.value)return t;try{for(var o=Object(i.h)(t.children),a=o.next();!a.done;a=o.next()){var s=Fe(e,a.value);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function Re(e,t){var n,r;if(e===t.value)return[t];try{for(var o=Object(i.h)(t.children),a=o.next();!a.done;a=o.next()){var s=Re(e,a.value);if(s.length)return s.unshift(t),s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var Ve=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function Be(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var Ye=function(e){function t(t,n){var i=e.call(this,t)||this;return i.snapshot=n,$e(i,t),i}return Object(i.c)(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Pe);function Ue(e,t){var n=function(e,t){var n=new qe([],{},{},"",{},ie,t,null,e.root,-1,{});return new Ze("",new Ve(n,[]))}(e,t),i=new c.a([new Oe("",{})]),r=new c.a({}),o=new c.a({}),a=new c.a({}),s=new c.a(""),u=new He(i,r,a,s,o,ie,t,n.root);return u.snapshot=n.root,new Ye(new Ve(u,[]),n)}var He=function(){function e(e,t,n,i,r,o,a,s){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(g.a)((function(e){return oe(e)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(g.a)((function(e){return oe(e)})))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function We(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var o=n[r],a=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(a.component)break;r--}}return function(e){return e.reduce((function(e,t){return{params:Object(i.a)(Object(i.a)({},e.params),t.params),data:Object(i.a)(Object(i.a)({},e.data),t.data),resolve:Object(i.a)(Object(i.a)({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var qe=function(){function e(e,t,n,i,r,o,a,s,c,u,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=oe(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map((function(e){return e.toString()})).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),Ze=function(e){function t(t,n){var i=e.call(this,n)||this;return i.url=t,$e(i,n),i}return Object(i.c)(t,e),t.prototype.toString=function(){return Ge(this._root)},t}(Pe);function $e(e,t){t.value._routerState=e,t.children.forEach((function(t){return $e(e,t)}))}function Ge(e){var t=e.children.length>0?" { "+e.children.map(Ge).join(", ")+" } ":"";return""+e.value+t}function Qe(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,de(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),de(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&Ke(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(i&&i!==ge(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),tt=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function nt(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[ie]:""+e}function it(e,t,n){if(e||(e=new we([],{})),0===e.segments.length&&e.hasChildren())return rt(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=nt(n[i]),c=i0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!ct(s,c,a))return o;i+=2}else{if(!ct(s,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new we([],((i={})[ie]=e,i)):e;return new ye(r,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(g.a)((function(e){return new we([],e)}))):this.expandSegment(e,n,t,n.segments,i,!0)},e.prototype.expandChildren=function(e,t,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Object(a.a)({});var o=[],s=[],c={};return be(n,(function(n,r){var a,u,l=(a=r,u=n,i.expandSegmentGroup(e,t,u,a)).pipe(Object(g.a)((function(e){return c[r]=e})));r===ie?o.push(l):s.push(l)})),a.a.apply(null,o.concat(s)).pipe(Object(b.a)(),_(),Object(g.a)((function(){return c})))}(n.children)},e.prototype.expandSegment=function(e,t,n,r,o,s){var c=this;return a.a.apply(void 0,Object(i.g)(n)).pipe(Object(g.a)((function(i){return c.expandSegmentAgainstRoute(e,t,n,i,r,o,s).pipe(Object(k.a)((function(e){if(e instanceof dt)return Object(a.a)(null);throw e})))})),Object(b.a)(),Object(D.a)((function(e){return!!e})),Object(k.a)((function(e,n){if(e instanceof l.a||"EmptyError"===e.name){if(c.noLeftoversInUrl(t,r,o))return Object(a.a)(new we([],{}));throw new dt(t)}throw e})))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,i,r,o,a){return Ct(i)!==o?gt(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):gt(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?bt(o):this.lineralizeSegments(n,o).pipe(Object(x.a)((function(n){var o=new we(n,{});return r.expandSegment(e,o,t,n,i,!1)})))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,i,r,o){var a=this,s=yt(t,i,r),c=s.consumedSegments,u=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return gt(t);var p=this.applyRedirectCommands(c,i.redirectTo,l);return i.redirectTo.startsWith("/")?bt(p):this.lineralizeSegments(i,p).pipe(Object(x.a)((function(i){return a.expandSegment(e,t,n,i.concat(r.slice(u)),o,!1)})))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(g.a)((function(e){return n._loadedConfig=e,new we(r,{})}))):Object(a.a)(new we(r,{}));var s=yt(t,n,r),c=s.consumedSegments,u=s.lastChild;if(!s.matched)return gt(t);var l=r.slice(u);return this.getChildConfig(e,n,r).pipe(Object(x.a)((function(e){var n=e.module,r=e.routes,s=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some((function(n){return Ot(e,t,n)&&Ct(n)!==ie}))}(e,n,r)?{segmentGroup:wt(new we(t,function(e,t){var n,r,o={};o[ie]=t;try{for(var a=Object(i.h)(e),s=a.next();!s.done;s=a.next()){var c=s.value;""===c.path&&Ct(c)!==ie&&(o[Ct(c)]=new we([],{}))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}(r,new we(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return Ot(e,t,n)}))}(e,n,r)?{segmentGroup:wt(new we(e.segments,function(e,t,n,r){var o,a,s={};try{for(var c=Object(i.h)(n),u=c.next();!u.done;u=c.next()){var l=u.value;Ot(e,t,l)&&!r[Ct(l)]&&(s[Ct(l)]=new we([],{}))}}catch(p){o={error:p}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return Object(i.a)(Object(i.a)({},r),s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,c,l,r),u=s.segmentGroup,p=s.slicedSegments;return 0===p.length&&u.hasChildren()?o.expandChildren(n,r,u).pipe(Object(g.a)((function(e){return new we(c,e)}))):0===r.length&&0===p.length?Object(a.a)(new we(c,{})):o.expandSegment(n,u,r,p,ie,!0).pipe(Object(g.a)((function(e){return new we(c.concat(e.segments),e.children)})))})))},e.prototype.getChildConfig=function(e,t,n){var i=this;return t.children?Object(a.a)(new ce(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(a.a)(t._loadedConfig):function(e,t,n){var i,r=t.canLoad;return r&&0!==r.length?Object(s.a)(r).pipe(Object(g.a)((function(i){var r,o=e.get(i);if(function(e){return e&&pt(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!pt(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return me(r)}))).pipe(Object(b.a)(),(i=function(e){return!0===e},function(e){return e.lift(new E(i,void 0,e))})):Object(a.a)(!0)}(e.injector,t,n).pipe(Object(x.a)((function(n){return n?i.configLoader.load(e.injector,t).pipe(Object(g.a)((function(e){return t._loadedConfig=e,e}))):function(e){return new u.a((function(t){return t.error(ae("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))}))}(t)}))):Object(a.a)(new ce([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(a.a)(n);if(i.numberOfChildren>1||!i.children[ie])return mt(e.redirectTo);i=i.children[ie]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new ye(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return be(e,(function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e})),n},e.prototype.createSegmentGroup=function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return be(t.children,(function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)})),new we(o,a)},e.prototype.createSegments=function(e,t,n,i){var r=this;return t.map((function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)}))},e.prototype.findPosParam=function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return i},e.prototype.findOrReturn=function(e,t){var n,r,o=0;try{for(var a=Object(i.h)(t),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.path===e.path)return t.splice(o),c;o++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return e},e}();function yt(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||se)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function wt(e){if(1===e.numberOfChildren&&e.children[ie]){var t=e.children[ie];return new we(e.segments.concat(t.segments),t.children)}return e}function Ot(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ct(e){return e.outlet||ie}var St=function(){return function(e){this.path=e,this.route=this.path[this.path.length-1]}}(),zt=function(){return function(e,t){this.component=e,this.route=t}}();function Tt(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function _t(e,t,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=Be(t);return e.children.forEach((function(e){!function(e,t,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ce(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ce(e.url,t.url)||!de(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xe(e,t)||!de(e.queryParams,t.queryParams);case"paramsChange":default:return!Xe(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new St(i)):(o.data=a.data,o._resolvedData=a._resolvedData),_t(e,t,o.component?s?s.children:null:n,i,r),c&&r.canDeactivateChecks.push(new zt(s&&s.outlet&&s.outlet.component||null,a))}else a&&kt(t,s,r),r.canActivateChecks.push(new St(i)),_t(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]})),be(o,(function(e,t){return kt(e,n.getContext(t),r)})),r}function kt(e,t,n){var i=Be(e),r=e.value;be(i,(function(e,i){kt(e,r.component?t?t.children.getContext(i):null:t,n)})),n.canDeactivateChecks.push(new zt(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var Dt=Symbol("INITIAL_VALUE");function xt(){return Object(j.a)((function(e){return p.a.apply(void 0,Object(i.g)(e.map((function(e){return e.pipe(Object(I.a)(1),Object(A.a)(Dt))})))).pipe(Object(M.a)((function(e,t){var n=!1;return t.reduce((function(e,i,r){if(e!==Dt)return e;if(i===Dt&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||ht(i))return i}return e}),e)}),Dt),Object(m.a)((function(e){return e!==Dt})),Object(g.a)((function(e){return ht(e)?e:!0===e})),Object(I.a)(1))}))}function Et(e,t){return null!==e&&t&&t(new ee(e)),Object(a.a)(!0)}function Nt(e,t){return null!==e&&t&&t(new K(e)),Object(a.a)(!0)}function jt(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object(a.a)(!0);var r=i.map((function(i){return Object(h.a)((function(){var r,o=Tt(i,t,n);if(function(e){return e&&pt(e.canActivate)}(o))r=me(o.canActivate(t,e));else{if(!pt(o))throw new Error("Invalid CanActivate guard");r=me(o(t,e))}return r.pipe(Object(D.a)())}))}));return Object(a.a)(r).pipe(xt())}function It(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return Object(h.a)((function(){var r=t.guards.map((function(r){var o,a=Tt(r,t.node,n);if(function(e){return e&&pt(e.canActivateChild)}(a))o=me(a.canActivateChild(i,e));else{if(!pt(a))throw new Error("Invalid CanActivateChild guard");o=me(a(i,e))}return o.pipe(Object(D.a)())}));return Object(a.a)(r).pipe(xt())}))}));return Object(a.a)(r).pipe(xt())}var At=function(){return function(){}}(),Mt=function(){function e(e,t,n,i,r,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return e.prototype.recognize=function(){try{var e=Ft(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,ie),n=new qe([],Object.freeze({}),Object.freeze(Object(i.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},ie,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ve(n,t),o=new Ze(this.url,r);return this.inheritParamsAndData(o._root),Object(a.a)(o)}catch(s){return new u.a((function(e){return e.error(s)}))}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,i=We(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,i=this,r=Se(t,(function(t,n){return i.processSegmentGroup(e,t,n)}));return n={},r.forEach((function(e){var t=n[e.value.outlet];if(t){var i=t.url.map((function(e){return e.toString()})).join("/"),r=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+i+"' and '"+r+"'.")}n[e.value.outlet]=e.value})),function(e){e.sort((function(e,t){return e.value.outlet===ie?-1:t.value.outlet===ie?1:e.value.outlet.localeCompare(t.value.outlet)}))}(r),r},e.prototype.processSegment=function(e,t,n,r){var o,a;try{for(var s=Object(i.h)(e),c=s.next();!c.done;c=s.next()){var u=c.value;try{return this.processSegmentAgainstRoute(u,t,n,r)}catch(l){if(!(l instanceof At))throw l}}}catch(p){o={error:p}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(t,n,r))return[];throw new At},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,r){if(e.redirectTo)throw new At;if((e.outlet||ie)!==r)throw new At;var o,a=[],s=[];if("**"===e.path){var c=n.length>0?ge(n).parameters:{};o=new qe(n,c,Object.freeze(Object(i.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Bt(e),r,e.component,e,Lt(t),Pt(t)+n.length,Yt(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new At;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||se)(n,e,t);if(!r)throw new At;var o={};be(r.posParams,(function(e,t){o[t]=e.path}));var a=r.consumed.length>0?Object(i.a)(Object(i.a)({},o),r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(t,e,n);a=u.consumedSegments,s=n.slice(u.lastChild),o=new qe(a,u.parameters,Object.freeze(Object(i.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Bt(e),r,e.component,e,Lt(t),Pt(t)+a.length,Yt(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),p=Ft(t,a,s,l,this.relativeLinkResolution),h=p.segmentGroup,d=p.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(l,h);return[new Ve(o,f)]}if(0===l.length&&0===d.length)return[new Ve(o,[])];var g=this.processSegment(l,h,d,ie);return[new Ve(o,g)]},e}();function Lt(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Pt(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Ft(e,t,n,r,o){if(n.length>0&&function(e,t,n){return n.some((function(n){return Rt(e,t,n)&&Vt(n)!==ie}))}(e,n,r)){var a=new we(t,function(e,t,n,r){var o,a,s={};s[ie]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;try{for(var c=Object(i.h)(n),u=c.next();!u.done;u=c.next()){var l=u.value;if(""===l.path&&Vt(l)!==ie){var p=new we([],{});p._sourceSegment=e,p._segmentIndexShift=t.length,s[Vt(l)]=p}}}catch(h){o={error:h}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return s}(e,t,r,new we(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return Rt(e,t,n)}))}(e,n,r)){var s=new we(e.segments,function(e,t,n,r,o,a){var s,c,u={};try{for(var l=Object(i.h)(r),p=l.next();!p.done;p=l.next()){var h=p.value;if(Rt(e,n,h)&&!o[Vt(h)]){var d=new we([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===a?e.segments.length:t.length,u[Vt(h)]=d}}}catch(f){s={error:f}}finally{try{p&&!p.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}return Object(i.a)(Object(i.a)({},o),u)}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var c=new we(e.segments,e.children);return c._sourceSegment=e,c._segmentIndexShift=t.length,{segmentGroup:c,slicedSegments:n}}function Rt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Vt(e){return e.outlet||ie}function Bt(e){return e.data||{}}function Yt(e){return e.resolve||{}}function Ut(e,t,n,i){var r=Tt(e,t,i);return me(r.resolve?r.resolve(t,n):r(t,n))}function Ht(e){return function(t){return t.pipe(Object(j.a)((function(t){var n=e(t);return n?Object(s.a)(n).pipe(Object(g.a)((function(){return t}))):Object(s.a)([t])})))}}var Wt=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),qt=new o.q("ROUTES"),Zt=function(){function e(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(g.a)((function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r,o=i.create(e);return new ce((r=o.injector.get(qt),Array.prototype.concat.apply([],r)).map(he),o)})))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(s.a)(this.loader.load(e)):me(e()).pipe(Object(x.a)((function(e){return e instanceof o.v?Object(a.a)(e):Object(s.a)(t.compiler.compileModuleAsync(e))})))},e}(),$t=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function Gt(e){throw e}function Qt(e,t,n){return t.parse("/")}function Xt(e,t){return Object(a.a)(null)}var Kt=function(){function e(e,t,n,i,r,a,s,u){var l=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new d.a,this.errorHandler=Gt,this.malformedUriErrorHandler=Qt,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Xt,afterPreactivation:Xt},this.urlHandlingStrategy=new $t,this.routeReuseStrategy=new Wt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(o.x),this.console=r.get(o.ab);var p=r.get(o.z);this.isNgZoneEnabled=p instanceof o.z,this.resetConfig(u),this.currentUrlTree=new ye(new we([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Zt(a,s,(function(e){return l.triggerEvent(new Q(e))}),(function(e){return l.triggerEvent(new X(e))})),this.routerState=Ue(this.currentUrlTree,this.rootComponentType),this.transitions=new c.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return e.prototype.setupNavigations=function(e){var t=this,n=this.events;return e.pipe(Object(m.a)((function(e){return 0!==e.id})),Object(g.a)((function(e){return Object(i.a)(Object(i.a)({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),Object(j.a)((function(e){var r,o,u,l=!1,p=!1;return Object(a.a)(e).pipe(Object(F.a)((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object(i.a)(Object(i.a)({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Object(j.a)((function(e){var r,o,s,c,u=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||u)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(a.a)(e).pipe(Object(j.a)((function(e){var i=t.transitions.getValue();return n.next(new B(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?f.a:[e]})),Object(j.a)((function(e){return Promise.resolve(e)})),(r=t.ngModule.injector,o=t.configLoader,s=t.urlSerializer,c=t.config,function(e){return e.pipe(Object(j.a)((function(e){return function(e,t,n,i,r){return new vt(e,t,n,i,r).apply()}(r,o,s,e.extractedUrl,c).pipe(Object(g.a)((function(t){return Object(i.a)(Object(i.a)({},e),{urlAfterRedirects:t})})))})))}),Object(F.a)((function(e){t.currentNavigation=Object(i.a)(Object(i.a)({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,n,r,o,a){return function(r){return r.pipe(Object(x.a)((function(r){return function(e,t,n,i,r,o){return void 0===r&&(r="emptyOnly"),void 0===o&&(o="legacy"),new Mt(e,t,n,i,r,o).recognize()}(e,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,t.serializeUrl(s)),o,a).pipe(Object(g.a)((function(e){return Object(i.a)(Object(i.a)({},r),{targetSnapshot:e})})));var s})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Object(F.a)((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Object(F.a)((function(e){var i=new W(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)})));if(u&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.extractedUrl,p=e.source,h=e.restoredState,d=e.extras,b=new B(e.id,t.serializeUrl(l),p,h);n.next(b);var m=Ue(l,t.rootComponentType).snapshot;return Object(a.a)(Object(i.a)(Object(i.a)({},e),{targetSnapshot:m,urlAfterRedirects:l,extras:Object(i.a)(Object(i.a)({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),f.a})),Ht((function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Object(F.a)((function(e){var n=new q(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),Object(g.a)((function(e){return Object(i.a)(Object(i.a)({},e),{guards:(n=e.targetSnapshot,r=e.currentSnapshot,o=t.rootContexts,a=n._root,_t(a,r?r._root:null,o,[a.value]))});var n,r,o,a})),function(e,t){return function(n){return n.pipe(Object(x.a)((function(n){var r=n.targetSnapshot,o=n.currentSnapshot,c=n.guards,u=c.canActivateChecks,l=c.canDeactivateChecks;return 0===l.length&&0===u.length?Object(a.a)(Object(i.a)(Object(i.a)({},n),{guardsResult:!0})):function(e,t,n,i){return Object(s.a)(e).pipe(Object(x.a)((function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(a.a)(!0);var s=o.map((function(o){var a,s=Tt(o,t,r);if(function(e){return e&&pt(e.canDeactivate)}(s))a=me(s.canDeactivate(e,t,n,i));else{if(!pt(s))throw new Error("Invalid CanDeactivate guard");a=me(s(e,t,n,i))}return a.pipe(Object(D.a)())}));return Object(a.a)(s).pipe(xt())}(e.component,e.route,n,t,i)})),Object(D.a)((function(e){return!0!==e}),!0))}(l,r,o,e).pipe(Object(x.a)((function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return Object(s.a)(t).pipe(Object(L.a)((function(t){return Object(s.a)([Nt(t.route.parent,i),Et(t.route,i),It(e,t.path,n),jt(e,t.route,n)]).pipe(Object(b.a)(),Object(D.a)((function(e){return!0!==e}),!0))})),Object(D.a)((function(e){return!0!==e}),!0))}(r,u,e,t):Object(a.a)(n)})),Object(g.a)((function(e){return Object(i.a)(Object(i.a)({},n),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Object(F.a)((function(e){if(ht(e.guardsResult)){var n=ae('Redirecting to "'+t.serializeUrl(e.guardsResult)+'"');throw n.url=e.guardsResult,n}})),Object(F.a)((function(e){var n=new Z(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),Object(m.a)((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new U(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0})),Ht((function(e){if(e.guards.canActivateChecks.length)return Object(a.a)(e).pipe(Object(F.a)((function(e){var n=new $(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),(n=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(Object(x.a)((function(e){var t=e.targetSnapshot,o=e.guards.canActivateChecks;return o.length?Object(s.a)(o).pipe(Object(L.a)((function(e){return function(e,t,n,r){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Object(a.a)({});if(1===r.length){var o=r[0];return Ut(e[o],t,n,i).pipe(Object(g.a)((function(e){var t;return(t={})[o]=e,t})))}var c={};return Object(s.a)(r).pipe(Object(x.a)((function(r){return Ut(e[r],t,n,i).pipe(Object(g.a)((function(e){return c[r]=e,e})))}))).pipe(_(),Object(g.a)((function(){return c})))}(e._resolve,e,t,r).pipe(Object(g.a)((function(t){return e._resolvedData=t,e.data=Object(i.a)(Object(i.a)({},e.data),We(e,n).resolve),null})))}(e.route,t,n,r)})),function(e,t){return arguments.length>=2?function(n){return Object(P.a)(Object(M.a)(e,t),w(1),Object(z.a)(t))(n)}:function(t){return Object(P.a)(Object(M.a)((function(t,n,i){return e(t,n,i+1)})),w(1))(t)}}((function(e,t){return e})),Object(g.a)((function(t){return e}))):Object(a.a)(e)})))}),Object(F.a)((function(e){var n=new G(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})));var n,r})),Ht((function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Object(g.a)((function(e){var n,r,o,a=(o=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){(l=r.value)._futureSnapshot=n.value;var o=function(t,n,r){return n.children.map((function(n){var o,a;try{for(var s=Object(i.h)(r.children),c=s.next();!c.done;c=s.next()){var u=c.value;if(t.shouldReuseRoute(u.value.snapshot,n.value))return e(t,n,u)}}catch(l){o={error:l}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return e(t,n)}))}(t,n,r);return new Ve(l,o)}var a=t.retrieve(n.value);if(a){var s=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var i=0;ir;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new tt(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,t,e),c=s.processChildren?rt(s.segmentGroup,s.index,a.commands):it(s.segmentGroup,s.index,a.commands);return Je(s.segmentGroup,c,t,r,o)}(l,this.currentUrlTree,e,h,p)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1}),Object(o.X)()&&this.isNgZoneEnabled&&!o.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=ht(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t-1&&(t.splice(n,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a},t.getEventFullKey=function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&D.hasOwnProperty(t)&&(t=D[t]))}return k[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),_.forEach((function(i){i!=n&&(0,x[i])(e)&&(t+=i+".")})),t+=n},t.eventCallback=function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded((function(){return t(r)}))}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t.\u0275fac=function(e){return new(e||t)(a.dc(o.e))},t.\u0275prov=a.Pb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(f),N=function(){function e(){}return e.\u0275prov=Object(a.Pb)({factory:function(){return Object(a.dc)(I)},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)},e}();function j(e){return new I(e.get(o.e))}var I=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.c)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case a.I.NONE:return t;case a.I.HTML:return Object(a.gb)(t,"HTML")?Object(a.zb)(t):Object(a.db)(this._doc,String(t));case a.I.STYLE:return Object(a.gb)(t,"Style")?Object(a.zb)(t):Object(a.eb)(t);case a.I.SCRIPT:if(Object(a.gb)(t,"Script"))return Object(a.zb)(t);throw new Error("unsafe value used in a script context");case a.I.URL:return Object(a.qb)(t),Object(a.gb)(t,"URL")?Object(a.zb)(t):Object(a.fb)(String(t));case a.I.RESOURCE_URL:if(Object(a.gb)(t,"ResourceURL"))return Object(a.zb)(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.bypassSecurityTrustHtml=function(e){return Object(a.hb)(e)},t.prototype.bypassSecurityTrustStyle=function(e){return Object(a.kb)(e)},t.prototype.bypassSecurityTrustScript=function(e){return Object(a.jb)(e)},t.prototype.bypassSecurityTrustUrl=function(e){return Object(a.lb)(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return Object(a.ib)(e)},t.\u0275prov=Object(a.Pb)({factory:function(){return j(Object(a.dc)(a.o))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(a.dc(o.e))},t}(N),A=[{provide:a.B,useValue:o.O},{provide:a.C,useValue:function(){s.makeCurrent(),p.init()},multi:!0},{provide:o.e,useFactory:function(){return Object(a.xb)(document),document},deps:[]}],M=Object(a.T)(a.Y,"browser",A),L=[[],{provide:a.bb,useValue:"root"},{provide:a.m,useFactory:function(){return new a.m},deps:[]},{provide:h,useClass:T,multi:!0,deps:[o.e,a.z,a.B]},{provide:h,useClass:E,multi:!0,deps:[o.e]},[],{provide:O,useClass:O,deps:[d,b,a.c]},{provide:a.F,useExisting:O},{provide:g,useExisting:b},{provide:b,useClass:b,deps:[o.e]},{provide:a.N,useClass:a.N,deps:[a.z]},{provide:d,useClass:d,deps:[h,a.z]},[]],P=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;return t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:a.c,useValue:e.appId},{provide:u,useExisting:a.c},l]}},e.\u0275mod=a.Rb({type:e}),e.\u0275inj=a.Qb({factory:function(n){return new(n||e)(a.dc(t,12))},providers:L,imports:[o.c,a.f]}),e}(),F="undefined"!=typeof window&&window||{},R=function(){return function(e,t){this.msPerTick=e,this.numTicks=t}}(),V=function(){function e(e){this.appRef=e.injector.get(a.g)}return e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=null!=F.console.profile;t&&n&&F.console.profile("Change Detection");for(var i=Object(o.P)().performanceNow(),r=0;r<5||Object(o.P)().performanceNow()-i<500;)this.appRef.tick(),r++;var a=Object(o.P)().performanceNow();t&&n&&F.console.profileEnd("Change Detection");var s=(a-i)/r;return F.console.log("ran "+r+" change detection cycles"),F.console.log(s.toFixed(2)+" ms per check"),new R(s,r)},e}();function B(e){return t=new V(e),"undefined"!=typeof COMPILED&&COMPILED||((a.rb.ng=a.rb.ng||{}).profiler=t),e;var t}},E9SJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Y/la");function r(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=Object(i.a)(e);n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=r[1],a=r[2],s=r[3];t.push(Q(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(Q(s,o))}(e,r,i)})):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:ne(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return q(n,e,t)})),options:ne(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map((function(e){t.currentTime=i;var o=q(n,e,t);return r=Math.max(r,t.currentTime),o}));return t.currentTime=r,{type:3,steps:o,options:ne(e.options)}},e.prototype.visitAnimate=function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ie(E(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var r=ie(0,0,"");return r.dynamic=!0,r.strValue=i,r}return ie((n=n||E(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Object(a.j)({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,s=!1;if(!o){s=!0;var c={};i.easing&&(c.easing=i.easing),o=Object(a.j)(c)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=s,n=u}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?e==a.a?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)})):n.push(e.styles);var i=!1,r=null;return n.forEach((function(e){if(te(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(i){if(n._driver.validateStyleProperty(i)){var a,s,c,u=t.collectedStyles[t.currentQuerySelector],l=u[i],p=!0;l&&(o!=r&&o>=l.startTime&&r<=l.endTime&&(t.errors.push('The CSS property "'+i+'" that exists between the times of "'+l.startTime+'ms" and "'+l.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),p=!1),o=l.startTime),p&&(u[i]={startTime:o,endTime:r}),t.options&&(a=t.errors,s=t.options.params||{},(c=R(e[i])).length&&c.forEach((function(e){s.hasOwnProperty(e)||a.push("Unable to resolve the local animation param "+e+" in the given list of values")})))}else t.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')}))}))},e.prototype.visitKeyframes=function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,c=0,u=e.steps.map((function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(te(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(te(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=u&&(r++,l=i.offset=u),s=s||l<0||l>1,a=a||l0&&r0?r==h?1:p*r:o[r],s=a*g;t.currentTime=d+f.delay+s,f.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)})),i},e.prototype.visitReference=function(e,t){return{type:8,animation:q(this,P(e.animation),t),options:ne(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:ne(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ne(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var o=Object(i.e)(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(X,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=o[0],s=o[1];t.currentQuerySelector=n.length?n+" "+a:a,d(t.collectedStyles,t.currentQuerySelector,{});var c=q(this,P(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:c,originalSelector:e.selector,options:ne(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:E(e.timings,t.errors,!0);return{type:12,animation:q(this,P(e.animation),t),timings:n,options:null}},e}(),ee=function(){return function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function te(e){return!Array.isArray(e)&&"object"==typeof e}function ne(e){var t;return e?(e=N(e)).params&&(e.params=(t=e.params)?N(t):null):e={},e}function ie(e,t,n){return{duration:e,delay:t,easing:n}}function re(e,t,n,i,r,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var oe=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,Object(i.g)(t))},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),ae=new RegExp(":enter","g"),se=new RegExp(":leave","g");function ce(e,t,n,i,r,o,a,s,c,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new ue).buildKeyframes(e,t,n,i,r,o,a,s,c,u)}var ue=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,i,r,o,a,s,c,u){void 0===u&&(u=[]),c=c||new oe;var l=new pe(e,t,c,i,r,u,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),q(this,n,l);var p=l.timelines.filter((function(e){return e.containsAnimation()}));if(p.length&&Object.keys(a).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,l.errors,s)}return p.length?p.map((function(e){return e.buildKeyframes()})):[re(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?D(n.duration):null,o=null!=n.delay?D(n.delay):null;return 0!==r&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)})),i},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),q(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=le);var a=D(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach((function(e){return q(n,e,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?D(e.options.delay):0;e.steps.forEach((function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),q(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(r),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return E(t.params?V(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?D(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=le);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach((function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(c=s.currentTimeline),q(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;q(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)},e}(),le={},pe=function(){function e(e,t,n,i,r,o,a,s){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=le,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new he(this._driver,t,0),a.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=D(i.duration)),null!=i.delay&&(r.delay=D(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(e){t&&a.hasOwnProperty(e)||(a[e]=V(o[e],a,n.errors))}))}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach((function(e){n[e]=t[e]}))}}return e},e.prototype.createSubContext=function(t,n,i){void 0===t&&(t=null);var r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=le,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new de(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,o,a){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(ae,"."+this._enterClassName)).replace(se,"."+this._leaveClassName);var c=this._driver.query(this.element,e,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),s.push.apply(s,Object(i.g)(c))}return o||0!=s.length||a.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},e}(),he=function(){function e(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||a.a,t._currentKeyframe[e]=a.a})),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},s=function(e,t){var n,i={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){i[e]=a.a})):j(e,!1,i)})),i}(e,this._globalTimelineStyles);Object.keys(s).forEach((function(e){var t=V(s[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:a.a),r._updateStyle(e,t)}))},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){e._currentKeyframe[n]=t[n]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)}))},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,s){var c=j(o,!0);Object.keys(c).forEach((function(e){var i=c[e];i==a.n?t.add(e):i==a.a&&n.add(e)})),i||(c.offset=s/e.duration),r.push(c)}));var o=t.size?B(t.values()):[],s=n.size?B(n.values()):[];if(i){var c=r[0],u=N(c);c.offset=0,u.offset=1,r=[c,u]}return re(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)},e}(),de=function(e){function t(t,n,i,r,o,a,s){void 0===s&&(s=!1);var c=e.call(this,t,n,a.delay)||this;return c.element=n,c.keyframes=i,c.preStyleProps=r,c.postStyleProps=o,c._stretchStartingKeyframe=s,c.timings={duration:a.duration,delay:a.delay,easing:a.easing},c}return Object(i.c)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,c=j(e[0],!1);c.offset=0,o.push(c);var u=j(e[0],!1);u.offset=fe(s),o.push(u);for(var l=e.length-1,p=1;p<=l;p++){var h=j(e[p],!1);h.offset=fe((n+h.offset*i)/a),o.push(h)}i=a,n=0,r="",e=o}return re(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)},t}(he);function fe(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var ge=function(){return function(){}}(),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype.normalizePropertyName=function(e,t){return U(e)},t.prototype.normalizeStyleValue=function(e,t,n,i){var r="",o=n.toString().trim();if(me[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for "+e+":"+n)}return o+r},t}(ge),me=function(){return e="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".split(","),t={},e.forEach((function(e){return t[e]=!0})),t;var e,t}();function ve(e,t,n,i,r,o,a,s,c,u,l,p,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:p,errors:h}}var ye={},we=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t,n,i){return function(e,t,n,i,r){return e.some((function(e){return e(t,n,i,r)}))}(this.ast.matchers,e,t,n,i)},e.prototype.buildStyles=function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o},e.prototype.build=function(e,t,n,r,o,a,s,c,u,l){var p=[],h=this.ast.options&&this.ast.options.params||ye,f=this.buildStyles(n,s&&s.params||ye,p),g=c&&c.params||ye,b=this.buildStyles(r,g,p),m=new Set,v=new Map,y=new Map,w="void"===r,O={params:Object(i.a)(Object(i.a)({},h),g)},C=l?[]:ce(e,t,this.ast.animation,o,a,f,b,O,u,p),S=0;if(C.forEach((function(e){S=Math.max(e.duration+e.delay,S)})),p.length)return ve(t,this._triggerName,n,r,w,f,b,[],[],v,y,S,p);C.forEach((function(e){var n=e.element,i=d(v,n,{});e.preStyleProps.forEach((function(e){return i[e]=!0}));var r=d(y,n,{});e.postStyleProps.forEach((function(e){return r[e]=!0})),n!==t&&m.add(n)}));var z=B(m.values());return ve(t,this._triggerName,n,r,w,f,b,C,z,v,y,S)},e}(),Oe=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},i=N(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(i[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach((function(e){var o=r[e];o.length>1&&(o=V(o,i,t)),n[e]=o}))}})),n},e}(),Ce=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach((function(e){n.states[e.name]=new Oe(e.style,e.options&&e.options.params||{})})),Se(this.states,"true","1"),Se(this.states,"false","0"),t.transitions.forEach((function(t){n.transitionFactories.push(new we(e,t,n.states))})),this.fallbackTransition=new we(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t,n,i){return this.transitionFactories.find((function(r){return r.match(e,t,n,i)}))||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Se(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var ze=new oe,Te=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],i=K(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i},e.prototype._buildPlayer=function(e,t,n){var i=e.element,r=u(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)},e.prototype.create=function(e,t,n){var i=this;void 0===n&&(n={});var r,o=[],s=this._animations[e],u=new Map;if(s?(r=ce(this._driver,t,s,"ng-enter","ng-leave",{},{},n,ze,o)).forEach((function(e){var t=d(u,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),r=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));u.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=i._driver.computeStyle(t,n,a.a)}))}));var l=c(r.map((function(e){var t=u.get(e.element);return i._buildPlayer(e,{},t)})));return this._playersById[e]=l,l.onDestroy((function(){return i.destroy(e)})),this.players.push(l),l},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,i){var r=h(t,"","","");return l(this._getPlayer(e),n,r,i),function(){}},e.prototype.command=function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])},e}(),_e=[],ke={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},De={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xe=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n,i=e&&e.hasOwnProperty("value");if(this.value=null!=(n=i?e.value:e)?n:null,i){var r=N(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach((function(e){null==n[e]&&(n[e]=t[e])}))}},e}(),Ee=new xe("void"),Ne=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Fe(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var a=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var c=d(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Fe(e,"ng-trigger"),Fe(e,"ng-trigger-"+t),c[t]=Ee),function(){o._engine.afterFlush((function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete c[t]}))}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,i){var r=this;void 0===i&&(i=!0);var o=this._getTrigger(t),a=new Ie(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Fe(e,"ng-trigger"),Fe(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],u=new xe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[t]=u,c||(c=Ee),"void"===u.value||c.value!==u.value){var l=d(this._engine.playersByElement,e,[]);l.forEach((function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()}));var p=o.matchTransition(c.value,u.value,e,u.params),h=!1;if(!p){if(!i)return;p=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:c,toState:u,player:a,isFallbackTransition:h}),h||(Fe(e,"ng-animate-queued"),a.onStart((function(){Re(e,"ng-animate-queued")}))),a.onDone((function(){var t=r.players.indexOf(a);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),l.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(t)}))}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Fe(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Re(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n,i){if(Ae(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)},e.prototype.markElementAsRemoved=function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,i,r){return Ae(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}},e.prototype._buildInstruction=function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))},e.prototype.whenRenderingDone=function(){var e=this;return new Promise((function(t){if(e.players.length)return c(e.players).onDone((function(){return t()}));t()}))},e.prototype.processLeaveNode=function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=ke,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,n){return t._balanceNamespaceList(e,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;D--)this._namespaceList[D].drainQueuedTransitions(t).forEach((function(e){var t=e.player,i=e.element;if(_.push(t),n.collectedEnterElements.length){var a=i.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var s=!g||!n.driver.containsElement(g,i),c=z.get(i),f=v.get(i),b=n._buildInstruction(e,r,f,c,s);if(b.errors&&b.errors.length)k.push(b);else{if(s)return t.onStart((function(){return L(i,b.fromStyles)})),t.onDestroy((function(){return M(i,b.toStyles)})),void o.push(t);if(e.isFallbackTransition)return t.onStart((function(){return L(i,b.fromStyles)})),t.onDestroy((function(){return M(i,b.toStyles)})),void o.push(t);b.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),r.append(i,b.timelines),u.push({instruction:b,player:t,element:i}),b.queriedElements.forEach((function(e){return d(l,e,[]).push(t)})),b.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var i=p.get(t);i||p.set(t,i=new Set),n.forEach((function(e){return i.add(e)}))}})),b.postStyleProps.forEach((function(e,t){var n=Object.keys(e),i=h.get(t);i||h.set(t,i=new Set),n.forEach((function(e){return i.add(e)}))}))}}));if(k.length){var x=[];k.forEach((function(e){x.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach((function(e){return x.push("- "+e+"\n")}))})),_.forEach((function(e){return e.destroy()})),this.reportError(x)}var E=new Map,N=new Map;u.forEach((function(e){var t=e.element;r.has(t)&&(N.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,E))})),o.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){d(E,t,[]).push(e),e.destroy()}))}));var j=w.filter((function(e){return Be(e,p,h)})),I=new Map;Le(I,this.driver,C,h,a.a).forEach((function(e){Be(e,p,h)&&j.push(e)}));var A=new Map;m.forEach((function(e,t){Le(A,n.driver,new Set(e),p,a.n)})),j.forEach((function(e){var t=I.get(e),n=A.get(e);I.set(e,Object(i.a)(Object(i.a)({},t),n))}));var P=[],F=[],R={};u.forEach((function(e){var t=e.element,i=e.player,a=e.instruction;if(r.has(t)){if(f.has(t))return i.onDestroy((function(){return M(t,a.toStyles)})),i.disabled=!0,i.overrideTotalTime(a.totalTime),void o.push(i);var u=R;if(N.size>1){for(var l=t,p=[];l=l.parentNode;){var h=N.get(l);if(h){u=h;break}p.push(l)}p.forEach((function(e){return N.set(e,u)}))}var d=n._buildAnimation(i.namespaceId,a,E,s,A,I);if(i.setRealPlayer(d),u===R)P.push(i);else{var g=n.playersByElement.get(u);g&&g.length&&(i.parentPlayer=c(g)),o.push(i)}}else L(t,a.fromStyles),i.onDestroy((function(){return M(t,a.toStyles)})),F.push(i),f.has(t)&&o.push(i)})),F.forEach((function(e){var t=s.get(e.element);if(t&&t.length){var n=c(t);e.setRealPlayer(n)}})),o.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var V=0;V0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new a.d(e.duration,e.delay)},e}(),Ie=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new a.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return l(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.overrideTotalTime=function(e){this.totalTime=e},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart((function(){return n.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))},e.prototype._queueEvent=function(e,t){d(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Ae(e){return e&&1===e.nodeType}function Me(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Le(e,t,n,i,r){var o=[];n.forEach((function(e){return o.push(Me(e))}));var a=[];i.forEach((function(n,i){var o={};n.forEach((function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=De,a.push(i))})),e.set(i,o)}));var s=0;return n.forEach((function(e){return Me(e,o[s++])})),a}function Pe(e,t){var n=new Map;if(e.forEach((function(e){return n.set(e,[])})),0==t.length)return n;var i=new Set(t),r=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=r.get(t);if(o)return o;var a=t.parentNode;return o=n.has(a)?a:i.has(a)?1:e(a),r.set(t,o),o}(e);1!==t&&n.get(t).push(e)})),n}function Fe(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Re(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Ve(e,t,n){c(n).onDone((function(){return e.processLeaveNode(t)}))}function Be(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach((function(e){return r.add(e)})):t.set(e,i),n.delete(e),!0}var Ye=function(){function e(e,t,n){var i=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new je(e,t,n),this._timelineEngine=new Te(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],c=K(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(e,t){return new Ce(e,t)}(i,c),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)},e.prototype.onRemove=function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var o=Object(i.e)(f(n),2);this._timelineEngine.command(o[0],t,o[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,o){if("@"==n.charAt(0)){var a=Object(i.e)(f(n),2);return this._timelineEngine.listen(a[0],t,a[1],o)}return this._transitionEngine.listen(e,t,n,r,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}();function Ue(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=We(t[0]),t.length>1&&(i=We(t[t.length-1]))):t&&(n=We(t)),n||i?new He(e,n,i):null}var He=function(){function e(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return e.prototype.start=function(){this._state<1&&(this._startStyles&&M(this._element,this._startStyles,this._initialStyles),this._state=1)},e.prototype.finish=function(){this.start(),this._state<2&&(M(this._element,this._initialStyles),this._endStyles&&(M(this._element,this._endStyles),this._endStyles=null),this._state=1)},e.prototype.destroy=function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(L(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),M(this._element,this._initialStyles),this._state=3)},e.initialStylesByElement=new WeakMap,e}();function We(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()},e.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Xe(this._element,this._eventFn,!0))},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=Je(e,"").split(","),i=Qe(n,t);i>=0&&(n.splice(i,1),Ke(e,"",n.join(",")))}(this._element,this._name))},e}();function $e(e,t,n){Ke(e,"PlayState",n,Ge(e,t))}function Ge(e,t){var n=Je(e,"");return n.indexOf(",")>0?Qe(n.split(","),t):Qe([n],t)}function Qe(e,t){for(var n=0;n=0)return n;return-1}function Xe(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Ke(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Je(e,t){return e.style["animation"+t]}var et=function(){function e(e,t,n,i,r,o,a,s){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}return e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])},e.prototype._flushDoneFns=function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]},e.prototype._flushStartFns=function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]},e.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},e.prototype.setPosition=function(e){this._styler.setPosition(e)},e.prototype.getPosition=function(){return this._styler.getPosition()},e.prototype.hasStarted=function(){return this._state>=2},e.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},e.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},e.prototype.pause=function(){this.init(),this._styler.pause()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},e.prototype._buildStyler=function(){var e=this;this._styler=new Ze(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0},e.prototype.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Z(e.element,i))}))}this.currentSnapshot=t},e}(),tt=function(e){function t(t,n){var i=e.call(this)||this;return i.element=t,i._startingStyles={},i.__initialized=!1,i._styles=T(n),i}return Object(i.c)(t,e),t.prototype.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),e.prototype.init.call(this))},t.prototype.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),e.prototype.play.call(this))},t.prototype.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)})),this._startingStyles=null,e.prototype.destroy.call(this))},t}(a.d),nt=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return e.prototype.validateStyleProperty=function(e){return O(e)},e.prototype.matchesElement=function(e,t){return C(e,t)},e.prototype.containsElement=function(e,t){return S(e,t)},e.prototype.query=function(e,t,n){return z(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.buildKeyframeElement=function(e,t,n){n=n.map((function(e){return T(e)}));var i="@keyframes "+t+" {\n",r="";n.forEach((function(e){r=" ";var t=parseFloat(e.offset);i+=""+r+100*t+"% {\n",r+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=r+"animation-timing-function: "+n+";\n"));default:return void(i+=""+r+t+": "+n+";\n")}})),i+=r+"}\n"})),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o},e.prototype.animate=function(e,t,n,i,r,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter((function(e){return e instanceof et})),c={};H(n,i)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return c[e]=t[e]}))}));var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])}))})),t}(t=W(e,t,c));if(0==n)return new tt(e,u);var l="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(e,l,t);document.querySelector("head").appendChild(p);var h=Ue(e,t),d=new et(e,t,l,n,i,r,u,h);return d.onDestroy((function(){var e;(e=p).parentNode.removeChild(e)})),d},e.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},e}(),it=function(){function e(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Z(e.element,n))})),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0},e}(),rt=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ot().toString()),this._cssKeyframesDriver=new nt}return e.prototype.validateStyleProperty=function(e){return O(e)},e.prototype.matchesElement=function(e,t){return C(e,t)},e.prototype.containsElement=function(e,t){return S(e,t)},e.prototype.query=function(e,t,n){return z(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},e.prototype.animate=function(e,t,n,i,r,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var c={},u=o.filter((function(e){return e instanceof it}));H(n,i)&&u.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return c[e]=t[e]}))}));var l=Ue(e,t=W(e,t=t.map((function(e){return j(e,!1)})),c));return new it(e,t,s,l)},e}();function ot(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var at=n("Valr"),st=function(e){function t(t,n){var i=e.call(this)||this;return i._nextAnimationId=0,i._renderer=t.createRenderer(n.body,{id:"0",encapsulation:r.R.None,styles:[],data:{animation:[]}}),i}return Object(i.c)(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Object(a.g)(e):e;return lt(this._renderer,null,t,"register",[n]),new ct(t,this._renderer)},t.\u0275fac=function(e){return new(e||t)(r.dc(r.F),r.dc(at.e))},t.\u0275prov=r.Pb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(a.b),ct=function(e){function t(t,n){var i=e.call(this)||this;return i._id=t,i._renderer=n,i}return Object(i.c)(t,e),t.prototype.create=function(e,t){return new ut(this._id,e,t||{},this._renderer)},t}(a.c),ut=function(){function e(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n=0&&e",triples:"",explode:"[]{}"},n=e.Pos;function i(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(r),t.state.closeBrackets=null),n&&(o(i(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(r))}));var r={Backspace:function(t){var r=s(t);if(!r||t.getOption("disableInput"))return e.Pass;for(var o=i(r,"pairs"),a=t.listSelections(),u=0;u=0;u--){var p=a[u].head;t.replaceRange("",n(p.line,p.ch-1),n(p.line,p.ch+1),"+delete")}},Enter:function(t){var n=s(t),r=n&&i(n,"explode");if(!r||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&h.indexOf(r)>=0&&t.getRange(n(y.line,y.ch-2),y)==r+r){if(y.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(y.line,y.ch-2))))return e.Pass;m="addFour"}else if(d){var O=0==y.ch?" ":t.getRange(n(y.line,y.ch-1),y);if(e.isWordChar(w)||O==r||e.isWordChar(O))return e.Pass;m="both"}else{if(!g||!(0===w.length||/\s/.test(w)||p.indexOf(w)>-1))return e.Pass;m="both"}else m=d&&u(t,y)?"both":h.indexOf(r)>=0&&t.getRange(y,n(y.line,y.ch+3))==r+r+r?"skipThree":"skip";if(l){if(l!=m)return e.Pass}else l=m}var C=c%2?a.charAt(c-1):r,S=c%2?r:a.charAt(c+1);t.operation((function(){if("skip"==l)t.execCommand("goCharRight");else if("skipThree"==l)for(var i=0;i<3;i++)t.execCommand("goCharRight");else if("surround"==l){var r=t.getSelections();for(i=0;i0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});t.setSelections(r)}else"both"==l?(t.replaceSelection(C+S,null),t.triggerElectric(C+S),t.execCommand("goCharLeft")):"addFour"==l&&(t.replaceSelection(C+C+C+C,"before"),t.execCommand("goCharRight"));var o,a}))}(r,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function c(e,t){var i=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==i.length?i:null}function u(e,t){var i=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(i.type)&&i.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n("VrN/"))},EMzn:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f}));var i=n("rWdj"),r=n("t3R0"),o=n("vJkw"),a=n("oycr"),s=n("/jXB"),c=n("neE4"),u=n("CbW8"),l=n("F8X2"),p=n("JvOi");function h(e,t){return new g(e,t).parseDocument()}function d(e,t){var n=new g(e,t);n.expectToken(p.a.SOF);var i=n.parseValueLiteral(!1);return n.expectToken(p.a.EOF),i}function f(e,t){var n=new g(e,t);n.expectToken(p.a.SOF);var i=n.parseTypeReference();return n.expectToken(p.a.EOF),i}var g=function(){function e(e,t){var n="string"==typeof e?new c.a(e):e;n instanceof c.a||Object(r.a)(0,"Must provide Source. Received: ".concat(Object(i.a)(n))),this._lexer=Object(u.a)(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(p.a.NAME);return{kind:s.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:s.a.DOCUMENT,definitions:this.many(p.a.SOF,this.parseDefinition,p.a.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(p.a.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(p.a.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(p.a.BRACE_L))return{kind:s.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(p.a.NAME)&&(t=this.parseName()),{kind:s.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(p.a.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(p.a.PAREN_L,this.parseVariableDefinition,p.a.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:s.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(p.a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(p.a.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(p.a.DOLLAR),{kind:s.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:s.a.SELECTION_SET,selections:this.many(p.a.BRACE_L,this.parseSelection,p.a.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(p.a.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(p.a.COLON)?(e=i,t=this.parseName()):t=i,{kind:s.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(p.a.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){return this.optionalMany(p.a.PAREN_L,e?this.parseConstArgument:this.parseArgument,p.a.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(p.a.COLON),{kind:s.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:s.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(p.a.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(p.a.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(p.a.NAME)?{kind:s.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:s.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:s.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:s.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case p.a.BRACKET_L:return this.parseList(e);case p.a.BRACE_L:return this.parseObject(e);case p.a.INT:return this._lexer.advance(),{kind:s.a.INT,value:t.value,loc:this.loc(t)};case p.a.FLOAT:return this._lexer.advance(),{kind:s.a.FLOAT,value:t.value,loc:this.loc(t)};case p.a.STRING:case p.a.BLOCK_STRING:return this.parseStringLiteral();case p.a.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:s.a.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:s.a.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:s.a.ENUM,value:t.value,loc:this.loc(t)});case p.a.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:s.a.STRING,value:e.value,block:e.kind===p.a.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:s.a.LIST,values:this.any(p.a.BRACKET_L,(function(){return t.parseValueLiteral(e)}),p.a.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:s.a.OBJECT,fields:this.any(p.a.BRACE_L,(function(){return t.parseObjectField(e)}),p.a.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(p.a.COLON),{kind:s.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(p.a.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(p.a.AT),{kind:s.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(p.a.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(p.a.BRACKET_R),e={kind:s.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(p.a.BANG)?{kind:s.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:s.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===p.a.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(p.a.STRING)||this.peek(p.a.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.many(p.a.BRACE_L,this.parseOperationTypeDefinition,p.a.BRACE_R);return{kind:s.a.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(p.a.COLON);var n=this.parseNamedType();return{kind:s.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:s.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:s.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(p.a.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(p.a.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(p.a.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(p.a.BRACE_L)&&this._lexer.lookahead().kind===p.a.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(p.a.BRACE_L,this.parseFieldDefinition,p.a.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(p.a.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:s.a.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(p.a.PAREN_L,this.parseInputValueDef,p.a.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(p.a.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(p.a.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:s.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();return{kind:s.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:s.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(p.a.EQUALS)){this.expectOptionalToken(p.a.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(p.a.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:s.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(p.a.BRACE_L,this.parseEnumValueDefinition,p.a.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:s.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:s.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(p.a.BRACE_L,this.parseInputValueDef,p.a.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===p.a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(p.a.BRACE_L,this.parseOperationTypeDefinition,p.a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:s.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:s.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:s.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:s.a.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:s.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:s.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:s.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(p.a.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:s.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(p.a.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(p.a.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==l.a[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new b(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Object(a.a)(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(m(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==p.a.NAME||t.value!==e)throw Object(a.a)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(m(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===p.a.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return Object(a.a)(this._lexer.source,t.start,"Unexpected ".concat(m(t)))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},e}();function b(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function m(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}Object(o.a)(b,(function(){return{start:this.start,end:this.end}}))},ESbf:function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},EkME:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var i=n("t3R0"),r=n("dWS+"),o=n("L2ys"),a=n("93gR"),s=n("4RMZ"),c=n("FQ53"),u=n("jOXf");function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new s.a(e),p=arguments.length>4?arguments[4]:void 0;t||Object(i.a)(0,"Must provide document"),Object(a.a)(e);var h=Object.freeze({}),d=[],f=p&&p.maxErrors,g=new u.b(e,t,l,(function(e){if(null!=f&&d.length>=f)throw d.push(new r.a("Too many validation errors, error limit reached. Validation aborted.")),h;d.push(e)})),b=Object(o.d)(n.map((function(e){return e(g)})));try{Object(o.c)(t,Object(o.e)(l,b))}catch(m){if(m!==h)throw m}return d}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.b,i=[],r=new u.a(e,t,(function(e){i.push(e)})),a=n.map((function(e){return e(r)}));return Object(o.c)(e,Object(o.d)(a)),i}function h(e){var t=p(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}function d(e,t){var n=p(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}Object.freeze({})},EkS5:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return d}));var i="function"==typeof Symbol?Symbol:void 0,r=i&&i.iterator;function o(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function a(e){return Object(e)===e&&(o(e)||function(e){return!!s(e)}(e))}function s(e){if(null!=e){var t=r&&e[r]||e["@@iterator"];if("function"==typeof t)return t}}function c(e){this._o=e,this._i=0}function u(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var i=0,r=function(e){var t=s(e);if(t)return t.call(e)}(e);if(r){for(var a;!(a=r.next()).done;)if(t.call(n,a.value,i++,e),i>9999999)throw new TypeError("Near-infinite iteration.")}else if(o(e))for(;i=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var l=i&&i.asyncIterator,p=l||"@@asyncIterator";function h(e){return!!f(e)}function d(e){var t=f(e);if(t)return t.call(e)}function f(e){if(null!=e){var t=l&&e[l]||e["@@asyncIterator"];if("function"==typeof t)return t}}function g(e){this._i=e}function b(e,t,n){var i;return new Promise((function(r){r((i=e[t](n)).value)})).then((function(e){return{value:e,done:i.done}}))}g.prototype[p]=function(){return this},g.prototype.next=function(e){return b(this._i,"next",e)},g.prototype.return=function(e){return this._i.return?b(this._i,"return",e):Promise.resolve({value:e,done:!0})},g.prototype.throw=function(e){return this._i.throw?b(this._i,"throw",e):Promise.reject(e)}},"En8+":function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return r}));var r=i()},"F/XL":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("nkY7"),r=n("IUTb"),o=n("JF+6");function a(){for(var e=[],t=0;t tag not found.")}var _=function(){function e(e,t,n,i){this._rendererFactory=e,this._handler=t,this._document=n,this.sanitizer=i,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new u.a,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new c.c(this._handler))}return Object.defineProperty(e.prototype,"twoToneColor",{get:function(){return Object(o.a)({},this._twoToneColorPalette)},set:function(e){var t=e.primaryColor,n=e.secondaryColor;this._twoToneColorPalette.primaryColor=t,this._twoToneColorPalette.secondaryColor=n||O(t)},enumerable:!0,configurable:!0}),e.prototype.useJsonpLoading=function(){var e=this;this._enableJsonpLoading?w("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=function(t){e._jsonpIconLoad$.next(t)})},e.prototype.changeAssetsSource=function(e){this._assetsUrlRoot=e.endsWith("/")?e:e+"/"},e.prototype.addIcon=function(){for(var e=this,t=[],n=0;n=0;n--){var i=t[n];"svg"===i.tagName.toLowerCase()&&this._renderer.removeChild(e,i)}},e.\u0275fac=function(t){return new(t||e)(r.Tb(_),r.Tb(r.l),r.Tb(r.E))},e.\u0275dir=r.Ob({type:e,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[r.Bb]}),e}(),D=n("zPI3"),x=n("rpki"),E=n("ryCu"),N={name:"star",theme:"fill",icon:''},j=[{name:"bars",theme:"outline",icon:''},{name:"calendar",theme:"outline",icon:''},{name:"caret-up",theme:"fill",icon:''},{name:"caret-up",theme:"outline",icon:''},{name:"caret-down",theme:"fill",icon:''},{name:"caret-down",theme:"outline",icon:''},{name:"check-circle",theme:"fill",icon:''},{name:"check-circle",theme:"outline",icon:''},{name:"check",theme:"outline",icon:''},{name:"clock-circle",theme:"outline",icon:''},{name:"close-circle",theme:"outline",icon:''},{name:"close-circle",theme:"fill",icon:''},{name:"close",theme:"outline",icon:''},{name:"copy",theme:"outline",icon:''},{name:"double-left",theme:"outline",icon:''},{name:"double-right",theme:"outline",icon:''},{name:"down",theme:"outline",icon:''},{name:"edit",theme:"outline",icon:''},{name:"ellipsis",theme:"outline",icon:''},{name:"exclamation-circle",theme:"fill",icon:''},{name:"exclamation-circle",theme:"outline",icon:''},{name:"eye",theme:"outline",icon:''},{name:"file",theme:"fill",icon:''},{name:"file",theme:"outline",icon:''},{name:"filter",theme:"fill",icon:''},{name:"info-circle",theme:"fill",icon:''},{name:"info-circle",theme:"outline",icon:''},{name:"left",theme:"outline",icon:''},{name:"loading",theme:"outline",icon:''},{name:"paper-clip",theme:"outline",icon:''},{name:"question-circle",theme:"outline",icon:''},{name:"right",theme:"outline",icon:''},N,{name:"search",theme:"outline",icon:''},N,{name:"upload",theme:"outline",icon:''},{name:"up",theme:"outline",icon:''},{name:"swap-right",theme:"outline",icon:''}],I=new r.q("nz_icons"),A=function(e){function t(t,n,i,r,a,s){var c=e.call(this,t,r,a,n)||this;return c.nzConfigService=i,c.configUpdated$=new u.a,c.iconfontCache=new Set,c.onConfigChange(),c.addIcon.apply(c,Object(o.g)(j,s||[])),c.configDefaultTwotoneColor(),c.configDefaultTheme(),c}return Object(o.c)(t,e),t.prototype.normalizeSvgElement=function(e){e.getAttribute("viewBox")||this._renderer.setAttribute(e,"viewBox","0 0 1024 1024"),e.getAttribute("width")&&e.getAttribute("height")||(this._renderer.setAttribute(e,"width","1em"),this._renderer.setAttribute(e,"height","1em")),e.getAttribute("fill")||this._renderer.setAttribute(e,"fill","currentColor")},t.prototype.fetchFromIconfont=function(e){var t=e.scriptUrl;if(this._document&&!this.iconfontCache.has(t)){var n=this._renderer.createElement("script");this._renderer.setAttribute(n,"src",t),this._renderer.setAttribute(n,"data-namespace",t.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,n),this.iconfontCache.add(t)}},t.prototype.createIconfontIcon=function(e){return this._createSVGElementFromString('')},t.prototype.onConfigChange=function(){var e=this;this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe((function(){e.configDefaultTwotoneColor(),e.configDefaultTheme(),e.configUpdated$.next()}))},t.prototype.configDefaultTheme=function(){var e=this.getConfig();this.defaultTheme=e.nzTheme||"outline"},t.prototype.configDefaultTwotoneColor=function(){var e=this.getConfig().nzTwotoneColor||"#1890ff",t="#1890ff";e&&(e.startsWith("#")?t=e:Object(E.b)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:t}},t.prototype.getConfig=function(){return this.nzConfigService.getConfigForComponent("icon")||{}},t.\u0275prov=Object(r.Pb)({factory:function(){return new t(Object(r.dc)(r.F),Object(r.dc)(y.b),Object(r.dc)(x.a),Object(r.dc)(c.b,8),Object(r.dc)(a.e,8),Object(r.dc)(I,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(r.dc(r.F),r.dc(y.b),r.dc(x.a),r.dc(c.b,8),r.dc(a.e,8),r.dc(I,8))},t}(_),M=new r.q("nz_icons_patch"),L=function(){function e(e,t){this.extraIcons=e,this.rootIconService=t,this.patched=!1}return e.prototype.doPatch=function(){var e=this;this.patched||(this.extraIcons.forEach((function(t){return e.rootIconService.addIcon(t)})),this.patched=!0)},e.\u0275fac=function(t){return new(t||e)(r.dc(M,2),r.dc(A))},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),P=function(e){function t(t,n,i,r){var o=e.call(this,n,t,i)||this;return o.iconService=n,o.renderer=i,o.cacheClassName=null,o.nzRotate=0,o.spin=!1,r&&r.doPatch(),o.el=t.nativeElement,o}return Object(o.c)(t,e),Object.defineProperty(t.prototype,"nzSpin",{set:function(e){this.spin=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nzType",{set:function(e){this.type=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nzTheme",{set:function(e){this.theme=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nzTwotoneColor",{set:function(e){this.twoToneColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nzIconfont",{set:function(e){this.iconfont=e},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){var t=e.nzRotate;e.nzType||e.nzTwotoneColor||e.nzSpin||e.nzTheme?this.changeIcon2():t?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon("#"+this.iconfont))},t.prototype.ngOnInit=function(){this.renderer.setAttribute(this.el,"class",("anticon "+this.el.className).trim())},t.prototype.ngAfterContentChecked=function(){if(!this.type){var e=this.el.children,t=e.length;if(!this.type&&e.length)for(;t--;){var n=e[t];"svg"===n.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(n)}}},t.prototype.changeIcon2=function(){var e=this;this.setClassName(),this._changeIcon().then((function(t){t&&(e.setSVGData(t),e.handleSpin(t),e.handleRotate(t))}))},t.prototype.handleSpin=function(e){this.spin||"loading"===this.type?this.renderer.addClass(e,"anticon-spin"):this.renderer.removeClass(e,"anticon-spin")},t.prototype.handleRotate=function(e){this.nzRotate?this.renderer.setAttribute(e,"style","transform: rotate("+this.nzRotate+"deg)"):this.renderer.removeAttribute(e,"style")},t.prototype.setClassName=function(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName="anticon-"+this.type,this.renderer.addClass(this.el,this.cacheClassName)},t.prototype.setSVGData=function(e){this.renderer.setAttribute(e,"data-icon",this.type),this.renderer.setAttribute(e,"aria-hidden","true")},Object(o.b)([Object(D.a)(),Object(o.d)("design:type",Boolean),Object(o.d)("design:paramtypes",[Boolean])],t.prototype,"nzSpin",null),t.\u0275fac=function(e){return new(e||t)(r.Tb(r.l),r.Tb(A),r.Tb(r.E),r.Tb(L,8))},t.\u0275dir=r.Ob({type:t,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("anticon",!0)},inputs:{nzSpin:"nzSpin",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont",nzRotate:"nzRotate"},exportAs:["nzIcon"],features:[r.Ab,r.Bb]}),t}(k),F=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:I,useValue:t}]}},e.forChild=function(t){return{ngModule:e,providers:[L,{provide:M,useValue:t}]}},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)},imports:[[i.b]]}),e}()},GFHA:function(e,t,n){"use strict";n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"j",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"i",(function(){return p})),n.d(t,"h",(function(){return h}));var i="UPDATE_VARIABLES",r="ADD_FILE_VARIABLE",o="DELETE_FILE_VARIABLE",a="UPDATE_FILE_VARIABLE_NAME",s="UPDATE_FILE_VARIABLE_DATA",c=function(){return function(e,t){this.payload=e,this.windowId=t,this.type=i}}(),u=function(){return function(e,t){this.windowId=e,this.payload=t,this.type=r}}(),l=function(){return function(e,t){this.windowId=e,this.payload=t,this.type=o}}(),p=function(){return function(e,t){this.windowId=e,this.payload=t,this.type=a}}(),h=function(){return function(e,t){this.windowId=e,this.payload=t,this.type=s}}()},GOzd:function(e,t,n){"use strict";var i="razdwatrzy";e.exports=function(){return"function"==typeof i.contains&&!0===i.contains("dwa")&&!1===i.contains("foo")}},GP5n:function(e,t,n){!function(e){"use strict";function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,i,r){e.openDialog?e.openDialog(t,r,{value:i,selectValueOnOpen:!0}):r(prompt(n,i))}(e,function(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(i){var r;if(i)if(r=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(i))e.setCursor(t(e,r[1]),Number(r[2]));else if(r=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(i)){var o=Math.round(e.lineCount()*Number(r[1])/100);/^[-+]/.test(r[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(r=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(i))&&e.setCursor(t(e,r[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n("VrN/"),n("Ku0u"))},Gb2T:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return v})),n.d(t,"j",(function(){return m})),n.d(t,"k",(function(){return b}));var i=n("2WDa"),r=function(){function e(){}return e.SLOW="0.3s",e.BASE="0.2s",e.FAST="0.1s",e}(),o=function(){function e(){}return e.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",e.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",e.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",e.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",e.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",e.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",e.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",e.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",e.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",e.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",e.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",e.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",e.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",e.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",e}(),a=Object(i.l)("collapseMotion",[Object(i.i)("expanded",Object(i.j)({height:"*"})),Object(i.i)("collapsed",Object(i.j)({height:0,overflow:"hidden"})),Object(i.i)("hidden",Object(i.j)({height:0,overflow:"hidden",borderTopWidth:"0"})),Object(i.k)("expanded => collapsed",Object(i.e)("150ms "+o.EASE_IN_OUT)),Object(i.k)("expanded => hidden",Object(i.e)("150ms "+o.EASE_IN_OUT)),Object(i.k)("collapsed => expanded",Object(i.e)("150ms "+o.EASE_IN_OUT)),Object(i.k)("hidden => expanded",Object(i.e)("150ms "+o.EASE_IN_OUT))]),s=Object(i.l)("treeCollapseMotion",[Object(i.k)("* => *",[Object(i.f)("nz-tree-node:leave",[Object(i.j)({overflow:"hidden"}),Object(i.h)(0,[Object(i.e)("150ms "+o.EASE_IN_OUT,Object(i.j)({height:0}))])],{optional:!0}),Object(i.f)("nz-tree-node:enter",[Object(i.j)({overflow:"hidden",height:0}),Object(i.h)(0,[Object(i.e)("150ms "+o.EASE_IN_OUT,Object(i.j)({overflow:"hidden",height:"*"}))])],{optional:!0})])]),c=Object(i.l)("fadeMotion",[Object(i.k)(":enter",[Object(i.j)({opacity:0}),Object(i.e)(""+r.BASE,Object(i.j)({opacity:1}))]),Object(i.k)(":leave",[Object(i.j)({opacity:1}),Object(i.e)(""+r.BASE,Object(i.j)({opacity:0}))])]),u=Object(i.l)("helpMotion",[Object(i.k)(":enter",[Object(i.j)({opacity:0,transform:"translateY(-5px)"}),Object(i.e)(r.SLOW+" "+o.EASE_IN_OUT,Object(i.j)({opacity:1,transform:"translateY(0)"}))]),Object(i.k)(":leave",[Object(i.j)({opacity:1,transform:"translateY(0)"}),Object(i.e)(r.SLOW+" "+o.EASE_IN_OUT,Object(i.j)({opacity:0,transform:"translateY(-5px)"}))])]),l=Object(i.l)("moveUpMotion",[Object(i.k)("* => enter",[Object(i.j)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),Object(i.e)(""+r.BASE,Object(i.j)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),Object(i.k)("* => leave",[Object(i.j)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),Object(i.e)(""+r.BASE,Object(i.j)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),p=Object(i.l)("notificationMotion",[Object(i.i)("enterRight",Object(i.j)({opacity:1,transform:"translateX(0)"})),Object(i.k)("* => enterRight",[Object(i.j)({opacity:0,transform:"translateX(5%)"}),Object(i.e)("100ms linear")]),Object(i.i)("enterLeft",Object(i.j)({opacity:1,transform:"translateX(0)"})),Object(i.k)("* => enterLeft",[Object(i.j)({opacity:0,transform:"translateX(-5%)"}),Object(i.e)("100ms linear")]),Object(i.i)("leave",Object(i.j)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),Object(i.k)("* => leave",[Object(i.j)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),Object(i.e)("100ms linear")])]),h=r.BASE+" "+o.EASE_OUT_QUINT,d=r.BASE+" "+o.EASE_IN_QUINT,f=Object(i.l)("slideMotion",[Object(i.i)("bottom",Object(i.j)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"})),Object(i.i)("top",Object(i.j)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 100%"})),Object(i.k)("void => bottom",[Object(i.j)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}),Object(i.e)(h)]),Object(i.k)("bottom => void",[Object(i.e)(d,Object(i.j)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}))]),Object(i.k)("void => top",[Object(i.j)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}),Object(i.e)(h)]),Object(i.k)("top => void",[Object(i.e)(d,Object(i.j)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}))])]),g=Object(i.l)("slideAlertMotion",[Object(i.k)(":leave",[Object(i.j)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),Object(i.e)(r.SLOW+" "+o.EASE_IN_OUT_CIRC,Object(i.j)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),b=Object(i.l)("zoomMotion",[Object(i.k)(":enter",[Object(i.j)({opacity:0,transform:"scale(0.2)"}),Object(i.e)(r.BASE+" "+o.EASE_OUT_CIRC,Object(i.j)({opacity:1,transform:"scale(1)"}))]),Object(i.k)(":leave",[Object(i.j)({opacity:1,transform:"scale(1)"}),Object(i.e)(r.BASE+" "+o.EASE_IN_OUT_CIRC,Object(i.j)({opacity:0,transform:"scale(0.2)"}))])]),m=Object(i.l)("zoomBigMotion",[Object(i.k)("void => active",[Object(i.j)({opacity:0,transform:"scale(0.8)"}),Object(i.e)(r.BASE+" "+o.EASE_OUT_CIRC,Object(i.j)({opacity:1,transform:"scale(1)"}))]),Object(i.k)("active => void",[Object(i.j)({opacity:1,transform:"scale(1)"}),Object(i.e)(r.BASE+" "+o.EASE_IN_OUT_CIRC,Object(i.j)({opacity:0,transform:"scale(0.8)"}))])]),v=Object(i.l)("zoomBadgeMotion",[Object(i.k)(":enter",[Object(i.j)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),Object(i.e)(r.SLOW+" "+o.EASE_OUT_BACK,Object(i.j)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),Object(i.k)(":leave",[Object(i.j)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),Object(i.e)(r.SLOW+" "+o.EASE_IN_BACK,Object(i.j)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},Gi3i:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("mrSG"),r=n("FFOo"),o=n("T1DM");function a(e,t){return void 0===t&&(t=o.a),function(n){return n.lift(new s(e,t))}}var s=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.dueTime,this.scheduler))},e}(),c=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i.c(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(r.a);function u(e){e.debouncedNext()}},GpRL:function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},H6OF:function(e,t,n){"use strict";var i=n("GpRL"),r=n("aFjk"),o=n("ZI+j"),a=n("e0LD"),s=n("Zq5j");e.exports=function e(t){var n,c,u;if(i(t),(n=Object(arguments[1])).async&&n.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!n.force?t:(c=s(n.length,t.length,n.async&&o.async),u=a(t,c,n),r(o,(function(e,t){n[t]&&e(n[t],u,n)})),e.__profiler__&&e.__profiler__(u),u.updateEnv(),u.memoized)}},HBFN:function(e,t,n){"use strict";var i=n("Tzvz"),r=s(n("VrN/")),o=s(n("i1zs")),a=n("8Ur0");function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){const i=t.fieldDef.name;"__"!==i.slice(0,2)&&(p(e,t,n,t.parentType),d(e,".")),d(e,i,"field-name",n,(0,a.getFieldReference)(t))}function u(e,t,n){d(e,"@"+t.directiveDef.name,"directive-name",n,(0,a.getDirectiveReference)(t))}function l(e,t,n,i){d(e,": "),p(e,t,n,i)}function p(e,t,n,r){r instanceof i.GraphQLNonNull?(p(e,t,n,r.ofType),d(e,"!")):r instanceof i.GraphQLList?(d(e,"["),p(e,t,n,r.ofType),d(e,"]")):d(e,r.name,"type-name",n,(0,a.getTypeReference)(t,r))}function h(e,t,n){const i=n.description;if(i){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(i):n.appendChild(document.createTextNode(i)),e.appendChild(n)}!function(e,t,n){const i=n.deprecationReason;if(i){const n=document.createElement("div");n.className="info-deprecation",t.renderDescription?n.innerHTML=t.renderDescription(i):n.appendChild(document.createTextNode(i));const r=document.createElement("span");r.className="info-deprecation-label",r.appendChild(document.createTextNode("Deprecated: ")),n.insertBefore(r,n.firstChild),e.appendChild(n)}}(e,t,n)}function d(e,t,n,i={onClick:null},r){if(n){const o=i.onClick;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",e=>{o(r,e)})):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n("CRiN"),r.default.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const n=e.state,i=n.kind,r=n.step,s=(0,o.default)(t.schema,e.state);if("Field"===i&&0===r&&s.fieldDef||"AliasedField"===i&&2===r&&s.fieldDef){const e=document.createElement("div");return function(e,t,n){c(e,t,n),l(e,t,n,t.type)}(e,s,t),h(e,t,s.fieldDef),e}if("Directive"===i&&1===r&&s.directiveDef){const e=document.createElement("div");return u(e,s,t),h(e,t,s.directiveDef),e}if("Argument"===i&&0===r&&s.argDef){const e=document.createElement("div");return function(e,t,n){t.directiveDef?u(e,t,n):t.fieldDef&&c(e,t,n);const i=t.argDef.name;d(e,"("),d(e,i,"arg-name",n,(0,a.getArgumentReference)(t)),l(e,t,n,t.inputType),d(e,")")}(e,s,t),h(e,t,s.argDef),e}if("EnumValue"===i&&s.enumValue&&s.enumValue.description){const e=document.createElement("div");return function(e,t,n){const i=t.enumValue.name;p(e,t,n,t.inputType),d(e,"."),d(e,i,"enum-value",n,(0,a.getEnumValueReference)(t))}(e,s,t),h(e,t,s.enumValue),e}if("NamedType"===i&&s.type&&s.type.description){const e=document.createElement("div");return p(e,s,t,s.type),h(e,t,s.type),e}})},HEoz:function(e,t,n){"use strict";e.exports=n("umFS")()?n("fEpb").Symbol:n("lO5s")},HJBe:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(e){return void 0===e&&(e=null),function(t){return t.lift(new a(e))}}var a=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.defaultValue))},e}(),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.c(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(r.a)},HXN9:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n("d0bx"));t.generate=r.default;var o={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"};t.presetPrimaryColors=o;var a={};t.presetPalettes=a,Object.keys(o).forEach((function(e){a[e]=r.default(o[e]),a[e].primary=a[e][5]})),t.red=a.red,t.volcano=a.volcano,t.gold=a.gold,t.orange=a.orange,t.yellow=a.yellow,t.lime=a.lime,t.green=a.green,t.cyan=a.cyan,t.blue=a.blue,t.geekblue=a.geekblue,t.purple=a.purple,t.magenta=a.magenta,t.grey=a.grey},HkoP:function(e,t,n){"use strict";var i,r=(i=n("VrN/"))&&i.__esModule?i:{default:i},o=n("JCIs");function a(e,t){const n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}r.default.defineMode("graphql",e=>{const t=(0,o.onlineParser)({eatWhitespace:e=>e.eatWhile(o.isIgnored),lexRules:o.LexRules,parseRules:o.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},HmyC:function(e,t,n){"use strict";n.r(t);var i=n("gI7C");n.d(t,"getASTNodeAtPosition",(function(){return i.getASTNodeAtPosition})),n.d(t,"pointToOffset",(function(){return i.pointToOffset}));var r=n("VWUu");n.d(t,"Position",(function(){return r.Position})),n.d(t,"Range",(function(){return r.Range})),n.d(t,"locToRange",(function(){return r.locToRange})),n.d(t,"offsetToPosition",(function(){return r.offsetToPosition}));var o=n("qvY7");n.d(t,"validateWithCustomRules",(function(){return o.validateWithCustomRules}));var a=n("8O83");n.d(t,"requireFile",(function(){return a.requireFile})),n.d(t,"resolveFile",(function(){return a.resolveFile}))},HsqM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"==typeof e}},I2ZF:function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},IDEf:function(e,t,n){"use strict";e.exports=n("FKvE")()?Object.assign:n("9g66")},IQOa:function(e,t,n){"use strict";n.r(t),n.d(t,"getDefinitionState",(function(){return o})),n.d(t,"getFieldDef",(function(){return a})),n.d(t,"forEachState",(function(){return s})),n.d(t,"objectValues",(function(){return c})),n.d(t,"hintList",(function(){return u})),n.d(t,"getAutocompleteSuggestions",(function(){return b})),n.d(t,"LANGUAGE",(function(){return S})),n.d(t,"getDefinitionQueryResultForFragmentSpread",(function(){return _})),n.d(t,"getDefinitionQueryResultForDefinitionNode",(function(){return k})),n.d(t,"getDiagnostics",(function(){return N})),n.d(t,"validateQuery",(function(){return j})),n.d(t,"getOutline",(function(){return V})),n.d(t,"getHoverInformation",(function(){return Y})),n.d(t,"GraphQLLanguageService",(function(){return de}));var i=n("axIb"),r=n("LViu");function o(e){let t;return s(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}function a(e,t,n){return n===r.SchemaMetaFieldDef.name&&e.getQueryType()===t?r.SchemaMetaFieldDef:n===r.TypeMetaFieldDef.name&&e.getQueryType()===t?r.TypeMetaFieldDef:n===r.TypeNameMetaFieldDef.name&&Object(i.D)(t)?r.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function s(e,t){const n=[];let i=e;for(;i&&i.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}function c(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r({proximity:h(p(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):l(e,e=>!e.isDeprecated)}(t,p(e.string))}function l(e,t){const n=e.filter(t);return 0===n.length?e:n}function p(e){return e.toLowerCase().replace(/\W/g,"")}function h(e,t){let n=function(e,t){let n,i;const r=[],o=e.length,a=t.length;for(n=0;n<=o;n++)r[n]=[n];for(i=1;i<=a;i++)r[0][i]=i;for(n=1;n<=o;n++)for(i=1;i<=a;i++){const o=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+o),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+o))}return r[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var d=n("19Hc"),f=n("sJV+"),g=n("JCIs");function b(e,t,n,a){const s=a||m(t,n),l="Invalid"===s.state.kind?s.state.prevState:s.state;if(!l)return[];const p=l.kind,h=l.step,g=y(e,s.state);if("Document"===p)return u(s,[{label:"query"},{label:"mutation"},{label:"subscription"},{label:"fragment"},{label:"{"}]);if("SelectionSet"===p||"Field"===p||"AliasedField"===p)return function(e,t,n){if(t.parentType){const o=t.parentType,a="getFields"in o?c(o.getFields()):[];return Object(i.D)(o)&&a.push(r.TypeNameMetaFieldDef),o===n.getQueryType()&&a.push(r.SchemaMetaFieldDef,r.TypeMetaFieldDef),u(e,a.map((e,t)=>({sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason})))}return[]}(s,g,e);if("Arguments"===p||"Argument"===p&&0===h){const e=g.argDefs;if(e)return u(s,e.map(e=>({label:e.name,detail:String(e.type),documentation:e.description})))}return("ObjectValue"===p||"ObjectField"===p&&0===h)&&g.objectFieldDefs?u(s,c(g.objectFieldDefs).map(e=>({label:e.name,detail:String(e.type),documentation:e.description}))):"EnumValue"===p||"ListValue"===p&&1===h||"ObjectField"===p&&2===h||"Argument"===p&&2===h?function(e,t){const n=Object(i.A)(t.inputType);return n instanceof i.a?u(e,n.getValues().map(e=>({label:e.name,detail:String(n),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}))):n===d.a?u(e,[{label:"true",detail:String(d.a),documentation:"Not false."},{label:"false",detail:String(d.a),documentation:"Not true."}]):[]}(s,g):"TypeCondition"===p&&1===h||"NamedType"===p&&null!=l.prevState&&"TypeCondition"===l.prevState.kind?function(e,t,n){let r;if(t.parentType)if(Object(i.C)(t.parentType)){const e=Object(i.j)(t.parentType),o=n.getPossibleTypes(e),a=Object.create(null);o.forEach(e=>{e.getInterfaces().forEach(e=>{a[e.name]=e})}),r=o.concat(c(a))}else r=[t.parentType];else r=c(n.getTypeMap()).filter(i.D);return u(e,r.map(e=>{const t=Object(i.A)(e);return{label:String(e),documentation:t&&t.description||""}}))}(s,g,e):"FragmentSpread"===p&&1===h?function(e,t,n,r){const a=n.getTypeMap(),s=o(e.state);return u(e,function(e){const t=[];return v(e,(e,n)=>{"FragmentDefinition"===n.kind&&n.name&&n.type&&t.push({kind:"FragmentDefinition",name:{kind:"Name",value:n.name},selectionSet:{kind:"SelectionSet",selections:[]},typeCondition:{kind:"NamedType",name:{kind:"Name",value:n.type}}})}),t}(r).filter(e=>a[e.typeCondition.name.value]&&!(s&&"FragmentDefinition"===s.kind&&s.name===e.name.value)&&Object(i.D)(t.parentType)&&Object(i.D)(a[e.typeCondition.name.value])&&Object(f.a)(n,t.parentType,a[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(a[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`})))}(s,g,e,t):"VariableDefinition"===p&&2===h||"ListType"===p&&1===h||"NamedType"===p&&l.prevState&&("VariableDefinition"===l.prevState.kind||"ListType"===l.prevState.kind)?function(e,t){return u(e,c(t.getTypeMap()).filter(i.G).map(e=>({label:e.name,documentation:e.description})))}(s,e):"Directive"===p?function(e,t,n){return t.prevState&&t.prevState.kind?u(e,n.getDirectives().filter(e=>function(e,t){if(!e||!e.kind)return!1;const n=t.locations;switch(e.kind){case"Query":return-1!==n.indexOf("QUERY");case"Mutation":return-1!==n.indexOf("MUTATION");case"Subscription":return-1!==n.indexOf("SUBSCRIPTION");case"Field":case"AliasedField":return-1!==n.indexOf("FIELD");case"FragmentDefinition":return-1!==n.indexOf("FRAGMENT_DEFINITION");case"FragmentSpread":return-1!==n.indexOf("FRAGMENT_SPREAD");case"InlineFragment":return-1!==n.indexOf("INLINE_FRAGMENT");case"SchemaDef":return-1!==n.indexOf("SCHEMA");case"ScalarDef":return-1!==n.indexOf("SCALAR");case"ObjectTypeDef":return-1!==n.indexOf("OBJECT");case"FieldDef":return-1!==n.indexOf("FIELD_DEFINITION");case"InterfaceDef":return-1!==n.indexOf("INTERFACE");case"UnionDef":return-1!==n.indexOf("UNION");case"EnumDef":return-1!==n.indexOf("ENUM");case"EnumValue":return-1!==n.indexOf("ENUM_VALUE");case"InputDef":return-1!==n.indexOf("INPUT_OBJECT");case"InputValueDef":switch(e.prevState&&e.prevState.kind){case"ArgumentsDef":return-1!==n.indexOf("ARGUMENT_DEFINITION");case"InputDef":return-1!==n.indexOf("INPUT_FIELD_DEFINITION")}}return!1}(t.prevState,e)).map(e=>({label:e.name,documentation:e.description||""}))):[]}(s,l,e):[]}function m(e,t){let n=null,i=null,r=null;const o=v(e,(e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,i={...o},r=e.current(),"BREAK"});return{start:o.start,end:o.end,string:r||o.string,state:i||o.state,style:n||o.style}}function v(e,t){const n=e.split("\n"),i=Object(g.onlineParser)();let r=i.startState(),o="",a=new g.CharacterStream("");for(let s=0;s{switch(t.kind){case"Query":case"ShortQuery":d=e.getQueryType();break;case"Mutation":d=e.getMutationType();break;case"Subscription":d=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(d=e.getType(t.type));break;case"Field":case"AliasedField":d&&t.name?(u=h?a(e,h,t.name):null,d=u?u.type:null):u=null;break;case"SelectionSet":h=Object(i.A)(d);break;case"Directive":o=t.name?e.getDirective(t.name):null;break;case"Arguments":if(t.prevState)switch(t.prevState.kind){case"Field":r=u&&u.args;break;case"Directive":r=o&&o.args;break;case"AliasedField":const n=t.prevState&&t.prevState.name;if(!n){r=null;break}const i=h?a(e,h,n):null;if(!i){r=null;break}r=i.args;break;default:r=null}else r=null;break;case"Argument":if(r)for(let e=0;ee.name.value===i);if(0===r.length)return process.stderr.write("Definition not found for GraphQL fragment "+i),{queryRange:[],definitions:[]};const o=r.map(({filePath:e,content:t,definition:n})=>D(e||"",t,n));return{definitions:o,queryRange:o.map(n=>z(e,t))}}function k(e,t,n){return{definitions:[D(e,t,n)],queryRange:n.name?[z(t,n.name)]:[]}}function D(e,t,n){const i=n.name;return C()(i,"Expected ASTNode to have a Name."),{path:e,position:T(t,n),range:z(t,n),name:i.value||"",language:S,projectRoot:e}}var x=n("EMzn"),E=n("hliF");function N(e,t=null,n,i){let r=null;try{r=Object(x.a)(e)}catch(o){const t=M(o.locations[0],e);return[{severity:1,message:o.message,source:"GraphQL: Syntax",range:t}]}return j(r,t,n,i)}function j(e,t=null,n,i){if(!t)return[];const r=I(Object(w.validateWithCustomRules)(t,e,n,i),e=>A(e,1,"Validation")),o=E.a?I(Object(E.a)(t,e),e=>A(e,2,"Deprecation")):[];return r.concat(o)}function I(e,t){return Array.prototype.concat.apply([],e.map(t))}function A(e,t,n){return e.nodes?e.nodes.map(i=>{const r="Variable"!==i.kind&&"name"in i?i.name:"variable"in i?i.variable:i;C()(e.locations,"GraphQL validation error requires locations.");const o=e.locations[0],a=function(e){const t=e.loc;return C()(t,"Expected ASTNode to have a location."),t}(r),s=o.column+(a.end-a.start);return{source:"GraphQL: "+n,message:e.message,severity:t,range:new w.Range(new w.Position(o.line-1,o.column-1),new w.Position(o.line-1,s))}}):[]}function M(e,t){const n=Object(g.onlineParser)(),i=n.startState(),r=t.split("\n");C()(r.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let u=0;u({representativeName:t.name,startPosition:Object(w.offsetToPosition)(e,t.loc.start),endPosition:Object(w.offsetToPosition)(e,t.loc.end),children:t.selectionSet||[]});return{Field:e=>{const n=e.alias?[B("plain",e.alias),B("plain",": ")]:[];return n.push(B("plain",e.name)),{tokenizedText:n,...t(e)}},OperationDefinition:e=>({tokenizedText:[B("keyword",e.operation),B("whitespace"," "),B("class-name",e.name)],...t(e)}),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let r=0;re.value,FragmentDefinition:e=>({tokenizedText:[B("keyword","fragment"),B("whitespace"," "),B("class-name",e.name)],...t(e)}),FragmentSpread:e=>({tokenizedText:[B("plain","..."),B("class-name",e.name)],...t(e)}),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:Object(P.c)(t,{leave:e=>R.hasOwnProperty(e.kind)&&n[e.kind]?n[e.kind](e):null})}}function B(e,t){return{kind:e,value:t}}function Y(e,t,n,i){const r=i||m(t,n);if(!e||!r||!r.state)return"";const o=r.state,a=o.kind,s=o.step,c=y(e,r.state),u={schema:e};if("Field"===a&&0===s&&c.fieldDef||"AliasedField"===a&&2===s&&c.fieldDef){const e=[];return function(e,t,n){U(e,t,n),W(e,t,n,t.type)}(e,c,u),Z(e,0,c.fieldDef),e.join("").trim()}if("Directive"===a&&1===s&&c.directiveDef){const e=[];return H(e,c),Z(e,0,c.directiveDef),e.join("").trim()}if("Argument"===a&&0===s&&c.argDef){const e=[];return function(e,t,n){if(t.directiveDef?H(e,t):t.fieldDef&&U(e,t,n),!t.argDef)return;const i=t.argDef.name;$(e,"("),$(e,i),W(e,t,n,t.inputType),$(e,")")}(e,c,u),Z(e,0,c.argDef),e.join("").trim()}if("EnumValue"===a&&c.enumValue&&"description"in c.enumValue){const e=[];return function(e,t,n){if(!t.enumValue)return;const i=t.enumValue.name;q(e,t,n,t.inputType),$(e,"."),$(e,i)}(e,c,u),Z(e,0,c.enumValue),e.join("").trim()}if("NamedType"===a&&c.type&&"description"in c.type){const e=[];return q(e,c,u,c.type),Z(e,0,c.type),e.join("").trim()}return""}function U(e,t,n){if(!t.fieldDef)return;const i=t.fieldDef.name;"__"!==i.slice(0,2)&&(q(e,t,n,t.parentType),$(e,".")),$(e,i)}function H(e,t,n){t.directiveDef&&$(e,"@"+t.directiveDef.name)}function W(e,t,n,i){$(e,": "),q(e,t,n,i)}function q(e,t,n,r){r&&(r instanceof i.e?(q(e,t,n,r.ofType),$(e,"!")):r instanceof i.d?($(e,"["),q(e,t,n,r.ofType),$(e,"]")):$(e,r.name))}function Z(e,t,n){if(!n)return;const i="string"==typeof n.description?n.description:null;i&&($(e,"\n\n"),$(e,i)),function(e,t,n){if(!n)return;const i=n.deprecationReason?n.deprecationReason:null;i&&($(e,"\n\n"),$(e,"Deprecated: "),$(e,i))}(e,0,n)}function $(e,t){e.push(t)}var G=n("dQau");const{FRAGMENT_DEFINITION:Q,OBJECT_TYPE_DEFINITION:X,INTERFACE_TYPE_DEFINITION:K,ENUM_TYPE_DEFINITION:J,UNION_TYPE_DEFINITION:ee,SCALAR_TYPE_DEFINITION:te,INPUT_OBJECT_TYPE_DEFINITION:ne,SCALAR_TYPE_EXTENSION:ie,OBJECT_TYPE_EXTENSION:re,INTERFACE_TYPE_EXTENSION:oe,UNION_TYPE_EXTENSION:ae,ENUM_TYPE_EXTENSION:se,INPUT_OBJECT_TYPE_EXTENSION:ce,DIRECTIVE_DEFINITION:ue,FRAGMENT_SPREAD:le,OPERATION_DEFINITION:pe,NAMED_TYPE:he}=L.a;class de{constructor(e){this._graphQLCache=e,this._graphQLConfig=e.getGraphQLConfig()}getConfigForURI(e){const t=this._graphQLConfig.getConfigForFile(e);if(t)return t;throw Error("No config found for uri: "+e)}async getDiagnostics(e,t,n){let i=!1;const r=this.getConfigForURI(t),{schemaPath:o,projectName:a,extensions:s}=r;try{const n=Object(x.a)(e);o&&t===o||(i=n.definitions.some(e=>{switch(e.kind){case X:case K:case J:case ee:case te:case ne:case ie:case re:case oe:case ae:case se:case ce:case ue:return!0}return!1}))}catch(f){const t=M(f.locations[0],e);return[{severity:1,message:f.message,source:"GraphQL: Syntax",range:t}]}let c=e;const u=await this._graphQLCache.getFragmentDefinitions(r);c=`${c} ${(await this._graphQLCache.getFragmentDependencies(e,u)).reduce((e,t)=>`${e} ${Object(G.print)(t.definition)}`,"")}`;let l,p=null;try{p=Object(x.a)(c)}catch(f){return[]}const h=s.customValidationRules;if(h){const e=Object(w.resolveFile)(h);if(e){const t=await Object(w.requireFile)(e);t&&(l=t(this._graphQLConfig))}}const d=await this._graphQLCache.getSchema(a,i).catch(()=>null);return d?j(p,d,l,n):[]}async getAutocompleteSuggestions(e,t,n){const i=this.getConfigForURI(n),r=await this._graphQLCache.getSchema(i.projectName).catch(()=>null);return r?b(r,e,t):[]}async getHoverInformation(e,t,n){const i=this.getConfigForURI(n),r=await this._graphQLCache.getSchema(i.projectName).catch(()=>null);return r?Y(r,e,t):""}async getDefinition(e,t,n){const i=this.getConfigForURI(n);let r;try{r=Object(x.a)(e)}catch(a){return null}const o=Object(w.getASTNodeAtPosition)(e,r,t);if(o)switch(o.kind){case le:return this._getDefinitionForFragmentSpread(e,r,o,n,i);case Q:case pe:return k(n,e,o);case he:return this._getDefinitionForNamedType(e,r,o,n,i)}return null}async _getDefinitionForNamedType(e,t,n,i,r){const o=await this._graphQLCache.getObjectTypeDefinitions(r),a=await this._graphQLCache.getObjectTypeDependenciesForAST(t,o),s=t.definitions.filter(e=>e.kind===X||e.kind===ne||e.kind===J).map(t=>({filePath:i,content:e,definition:t}));return await async function(e,t,n){const i=t.name.value,r=n.filter(({definition:e})=>e.name&&e.name.value===i);if(0===r.length)return process.stderr.write("Definition not found for GraphQL type "+i),{queryRange:[],definitions:[]};const o=r.map(({filePath:e,content:t,definition:n})=>function(e,t,n){const i=n.name;return C()(i,"Expected ASTNode to have a Name."),{path:e,position:T(t,n),range:z(t,n),name:i.value||"",language:S,projectRoot:e}}(e||"",t,n));return{definitions:o,queryRange:o.map(n=>z(e,t))}}(e,n,a.concat(s))}async _getDefinitionForFragmentSpread(e,t,n,i,r){const o=await this._graphQLCache.getFragmentDefinitions(r),a=await this._graphQLCache.getFragmentDependenciesForAST(t,o),s=t.definitions.filter(e=>e.kind===Q).map(t=>({filePath:i,content:e,definition:t}));return await _(e,n,a.concat(s))}}},IUTb:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("6blF"),r=n("+tJ4"),o=n("JF+6");function a(e,t){return t?Object(o.a)(e,t):new i.a(Object(r.a)(e))}},"IWB/":function(e,t,n){"use strict";var i=n("YsTz"),r={function:!0,object:!0};e.exports=function(e){return i(e)&&r[typeof e]||!1}},Iab2:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){o(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(e,o,a){var s=r.URL||r.webkitURL,c=document.createElement("a");c.download=o=o||e.name||"download",c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?i(c):n(c.href)?t(e,o,a):i(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){i(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),r);else if(n(e))t(e,r,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}}:function(e,n,i,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var a="application/octet-stream"===e.type,s=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&s)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var l=r.URL||r.webkitURL,p=l.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout((function(){l.revokeObjectURL(p)}),4e4)}});r.saveAs=o.saveAs=o,e.exports=o})?i.apply(t,[]):i)||(e.exports=r)},J1Ni:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("2WDa"),r=Object(i.l)("fadeInOutAnimation",[Object(i.k)(":enter",[Object(i.j)({opacity:0}),Object(i.e)(".3s ease",Object(i.j)({opacity:1}))]),Object(i.k)(":leave",[Object(i.j)({opacity:1}),Object(i.e)(".3s ease",Object(i.j)({opacity:0}))])])},J7Ao:function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},JCIs:function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterStream",(function(){return i})),n.d(t,"LexRules",(function(){return l})),n.d(t,"ParseRules",(function(){return p})),n.d(t,"isIgnored",(function(){return u})),n.d(t,"butNot",(function(){return a})),n.d(t,"list",(function(){return o})),n.d(t,"opt",(function(){return r})),n.d(t,"p",(function(){return c})),n.d(t,"t",(function(){return s})),n.d(t,"onlineParser",(function(){return f}));class i{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let i=null,r=null;return"string"==typeof e?(r=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),i=e):e instanceof RegExp&&(r=this._sourceText.slice(this._pos).match(e),i=r&&r[0]),!(null==r||!("string"==typeof e||r instanceof Array&&this._sourceText.startsWith(r[0],this._pos)))&&(t&&(this._start=this._pos,i&&i.length&&(this._pos+=i.length)),r)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0===e.length){const n=e[0];let i=0;for(;n.length>i;)9===n.charCodeAt(i)?t+=2:t++,i++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function r(e){return{ofRule:e}}function o(e,t){return{ofRule:e,isList:!0,separator:t}}function a(e,t){const n=e.match;return e.match=e=>{let i=!1;return n&&(i=n(e)),i&&t.every(t=>t.match&&!t.match(e))},e}function s(e,t){return{style:t,match:t=>t.kind===e}}function c(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const u=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e,l={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},p={Document:[o("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[h("query"),r(d("def")),r("VariableDefinitions"),o("Directive"),"SelectionSet"],Mutation:[h("mutation"),r(d("def")),r("VariableDefinitions"),o("Directive"),"SelectionSet"],Subscription:[h("subscription"),r(d("def")),r("VariableDefinitions"),o("Directive"),"SelectionSet"],VariableDefinitions:[c("("),o("VariableDefinition"),c(")")],VariableDefinition:["Variable",c(":"),"Type",r("DefaultValue")],Variable:[c("$","variable"),d("variable")],DefaultValue:[c("="),"Value"],SelectionSet:[c("{"),o("Selection"),c("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[d("property"),c(":"),d("qualifier"),r("Arguments"),o("Directive"),r("SelectionSet")],Field:[d("property"),r("Arguments"),o("Directive"),r("SelectionSet")],Arguments:[c("("),o("Argument"),c(")")],Argument:[d("attribute"),c(":"),"Value"],FragmentSpread:[c("..."),d("def"),o("Directive")],InlineFragment:[c("..."),r("TypeCondition"),o("Directive"),"SelectionSet"],FragmentDefinition:[h("fragment"),r(a(d("def"),[h("on")])),"TypeCondition",o("Directive"),"SelectionSet"],TypeCondition:[h("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[s("Number","number")],StringValue:[s("String","string")],BooleanValue:[s("Name","builtin")],NullValue:[s("Name","keyword")],EnumValue:[d("string-2")],ListValue:[c("["),o("Value"),c("]")],ObjectValue:[c("{"),o("ObjectField"),c("}")],ObjectField:[d("attribute"),c(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[c("["),"Type",c("]"),r(c("!"))],NonNullType:["NamedType",r(c("!"))],NamedType:[{style:"atom",match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}}],Directive:[c("@","meta"),d("meta"),r("Arguments")],SchemaDef:[h("schema"),o("Directive"),c("{"),o("OperationTypeDef"),c("}")],OperationTypeDef:[d("keyword"),c(":"),d("atom")],ScalarDef:[h("scalar"),d("atom"),o("Directive")],ObjectTypeDef:[h("type"),d("atom"),r("Implements"),o("Directive"),c("{"),o("FieldDef"),c("}")],Implements:[h("implements"),o("NamedType")],FieldDef:[d("property"),r("ArgumentsDef"),c(":"),"Type",o("Directive")],ArgumentsDef:[c("("),o("InputValueDef"),c(")")],InputValueDef:[d("attribute"),c(":"),"Type",r("DefaultValue"),o("Directive")],InterfaceDef:[h("interface"),d("atom"),o("Directive"),c("{"),o("FieldDef"),c("}")],UnionDef:[h("union"),d("atom"),o("Directive"),c("="),o("UnionMember",c("|"))],UnionMember:["NamedType"],EnumDef:[h("enum"),d("atom"),o("Directive"),c("{"),o("EnumValueDef"),c("}")],EnumValueDef:[d("string-2"),o("Directive")],InputDef:[h("input"),d("atom"),o("Directive"),c("{"),o("InputValueDef"),c("}")],ExtendDef:[h("extend"),"ObjectTypeDef"],DirectiveDef:[h("directive"),c("@","meta"),d("meta"),r("ArgumentsDef"),h("on"),o("DirectiveLocation",c("|"))],DirectiveLocation:[d("string-2")]};function h(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function d(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function f(e={eatWhitespace:e=>e.eatWhile(u),lexRules:l,parseRules:p,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return m(e.parseRules,t,"Document"),t},token:(t,n)=>function(e,t,n){const{lexRules:i,parseRules:r,eatWhitespace:o,editorConfig:a}=n;if(t.rule&&0===t.rule.length?v(t):t.needsAdvance&&(t.needsAdvance=!1,y(t,!0)),e.sol()){const n=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return"ws";const s=function(e,t){const n=Object.keys(e);for(let i=0;i0&&e[e.length-1]=r)){var c=s&&s.getFields();return{kind:"SelectionSet",selections:Object.keys(c).map((function(e){var t=c[e];return{kind:"Field",name:{kind:"Name",value:e},selectionSet:M(t?t.type:null,{maxDepth:r,currentDepth:a+1})}}))}}}},L=function(e,t){if(0===t.length)return e;var n="",i=0;return t.forEach((function(t){var r=t.index,o=t.string;n+=e.slice(i,r)+o,i=r})),n+=e.slice(i)},P=n("YMfE"),F=(n("hkyM"),n("/jXB")),R=n("ADFt"),V=function(){return(V=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=t)}))},e.prototype.getOperationNameAtIndex=function(e,t){var n=this.getOperationAtIndex(e,t);return n&&n.name&&n.name.value?n.name.value:""},e.prototype.getSelectedOperationData=function(e){var t=e.query,n=void 0===t?"":t,i=e.queryCursorIndex,r=e.selectedOperation,o=void 0===r?"":r,a=e.selectIfOneOperation,s=void 0!==a&&a,c=null,u=this.getOperations(n),l=!1;if(u){var p=u.map((function(e){return e.name&&"Name"===e.name.kind&&e.name.value})).filter(Boolean);if(p.length>1){var h="";void 0!==i&&(h=this.getOperationNameAtIndex(n,i)),o&&!p.includes(o)||!o?h?c=h:(c=null,l=!0):c=o}else c=s&&p[0]||null}else c=null;return{selectedOperation:c,operations:u,requestSelectedOperationFromUser:l}},e.prototype.prettify=function(e,t){return void 0===t&&(t=2),G(this,void 0,void 0,(function(){var i,r;return Q(this,(function(o){switch(o.label){case 0:return[4,n.e(8).then(n.t.bind(null,"MlsZ",7))];case 1:return i=o.sent(),[4,n.e(7).then(n.t.bind(null,"azY9",7))];case 2:return r=o.sent(),[2,i.format(e,{parser:"graphql",plugins:[r],tabWidth:t})]}}))}))},e.prototype.compress=function(e){return G(this,void 0,void 0,(function(){var t;return Q(this,(function(n){switch(n.label){case 0:return t=y.a,[4,this.prettify(e)];case 1:return[2,t.apply(void 0,[n.sent()])]}}))}))},e.prototype.nameQuery=function(e){if(e){var t=this.parseQuery(e),n=Object(d.c)(t,{OperationDefinition:function(t){E.a.log(t);var n=t.name||{kind:"Name",value:Y(e)};return $($({},t),{name:n})}});return Object(f.print)(n)}},e.prototype.refactorQuery=function(e,t){if(e&&t){var n=this.parseQuery(e),i=function(e){var t={};return Object.values(e.map).forEach((function(e){e.count>=2&&e.fields.length&&e.fields[0].forEach((function(n){e.fields.slice(1).every((function(e){return e.includes(n)}))&&(t[e.name]=t[e.name]||[],t[e.name].push(n))}))})),t}(function(e,t){var n=new N.a(t),i={name:"root",count:0,fields:[],children:{}},r={root:i};function o(e){var t=Object(_.A)(e),n=t.toString();return r[n]=r[n]||{name:n,count:0,type:t,fields:[],children:{}},r[n]}var a={enter:function(e){n.enter(e);var t=n.getType();if(e.type=t,t&&!Object(_.I)(Object(_.A)(t))){var r=o(t);if(r.count++,e.selectionSet&&e.selectionSet.selections){var a=e.selectionSet.selections.filter((function(e){return!e.selectionSet||!e.selectionSet.selections})).filter((function(e){return e.kind===F.a.FIELD})).filter((function(e){return e.name&&e.name.value})).map((function(e){return e.name&&e.name.value})).filter(Boolean);r.fields.push(a)}var s=n.getParentType();s?o(s).children[r.name]=r:i.children[r.name]=r}return e},leave:function(e){n.leave(e)}},s={OperationDefinition:a,Field:a};return Object(d.c)(e,Object(d.e)(n,s)),{map:r,tree:i}}(n,t)),r=function(e,t,n){var i={},r=[],o=new N.a(t);return{document:Object(d.c)(e,{enter:function(e){switch(o.enter(e),e.kind){case F.a.ARGUMENT:var t=o.getFieldDef();if(e.value.kind!==F.a.VARIABLE&&t&&t.args){var n=t.args.find((function(t){return t.name===e.name.value}));if(n){var a=Y(n.name),s={name:a,value:q(e,void 0),type:n.type.inspect()};return i[a]=s,r.push(s),V(V({},e),{value:{kind:F.a.VARIABLE,name:{kind:F.a.NAME,value:a}}})}}}},leave:function(e){switch(o.leave(e),e.kind){case F.a.OPERATION_DEFINITION:var t=V(V({},e),{variableDefinitions:(e.variableDefinitions||[]).concat(r.map((function(e){return{kind:F.a.VARIABLE_DEFINITION,variable:{kind:F.a.VARIABLE,name:{kind:F.a.NAME,value:e.name}},type:{kind:F.a.NAMED_TYPE,name:{kind:F.a.NAME,value:e.type}}}})))}),n=e.name||{kind:F.a.NAME,value:Y("refactored")};return t.name=n,r=[],t}}}),variables:Object.keys(i).reduce((function(e,t){return e[t]=i[t].value,e}),{})}}(function(e,t,n){return Object(d.c)(e,{Document:function(e){return V(V({},e),{definitions:e.definitions.concat(W(t,n))})}})}(function(e,t,n){var i=new N.a(n);return Object(d.c)(e,Object(d.e)(i,{Field:{enter:function(e){i.enter(e);var n=i.getType();if(n){var r=function(e){return Object(_.A)(e).toString()}(n),o=t[r];if(o&&e.selectionSet&&o.every((function(t){return!!e.selectionSet.selections.find((function(e){return e.name.value===t}))})))return V(V({},e),{selectionSet:V(V({},e.selectionSet),{selections:B(e.selectionSet.selections.filter((function(e){return!o.includes(e.name.value)})),[H(U(r))])})})}},leave:function(e){i.leave(e)}}}))}(n,i,t),i,t),t);return{query:Object(f.print)(r.document),variables:r.variables}}},e.prototype.getSDLSync=function(e){return this.isSchema(e)?Object(g.b)(e):""},e.prototype.getSDL=function(e){return G(this,void 0,void 0,(function(){return Q(this,(function(t){return this.isSchema(e)?[2,this.prettify(Object(g.b)(e))]:[2,""]}))}))},e.prototype.sdlToSchema=function(e){return Object(b.c)(e)},e.prototype.validateSchema=function(e){return Object(m.b)(e)},e.prototype.createStreamClient=function(e){return new EventSource(e)},e.prototype.closeStreamClient=function(e){e&&e.close&&e.close()},e.prototype._send=function(e){var t,n,o=e.variables,c=e.selectedOperation,u=e.files,l=e.withCredentials,p={query:e.query,variables:{},operationName:null},h=this.headers;if(c&&(p.operationName=c),o)try{p.variables=JSON.parse(o)}catch(g){return E.a.error(g),Object(i.a)(g)}if(this.isGETRequest())n=this.getParamsFromData(p);else if(u&&u.length){var d={};p.variables=p.variables||{},u.forEach((function(e,t){Object(P.i)(p.variables,e.name,null),d[t]=["variables."+e.name]}));var f=new FormData;f.append("operations",JSON.stringify(p)),f.append("map",JSON.stringify(d)),u.forEach((function(e,t){f.append(""+t,e.data||"")})),t=f}else t=JSON.stringify(p);if(!this.api_url)throw new Error("You need to have a URL for the request!");return this.http.request(this.method,this.api_url,$($({},!this.isGETRequest()&&{body:t}),{params:n,headers:h,observe:"response",withCredentials:l})).pipe(Object(a.a)((function(e){if(E.a.error(e),e.error instanceof ErrorEvent)E.a.error("An error occurred:",e.error.message);else{if(!(e.error instanceof ProgressEvent))return E.a.error(e.error),E.a.error("Backend returned code "+e.status+", body was: "+e.error),Object(r.a)(new s.j({body:e.error||e.message,headers:e.headers,status:e.status,statusText:e.statusText,url:e.url||void 0}));E.a.error("Progress event error",e.error)}return Object(i.a)(e)})))},e.\u0275fac=function(t){return new(t||e)(Z.dc(s.c),Z.dc(w.a))},e.\u0275prov=Z.Pb({token:e,factory:e.\u0275fac}),e}()},Jb7g:function(e,t,n){"use strict";var i=n("9Qh4"),r=n("s4AO"),o=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:i((function(t){return o[t]?o[t]:o[t]=e(String(t))})),keyFor:i((function(e){var t;for(t in r(e),o)if(o[t]===e)return t}))})}},JlUD:function(e,t){function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=n,e.exports.default=n},JvOi:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},K9Ia:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p}));var i=n("mrSG"),r=n("6blF"),o=n("FFOo"),a=n("pugT"),s=n("8g8A"),c=n("uMaO"),u=n("L/V9"),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i.c(t,e),t}(o.a),p=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.c(t,e),t.prototype[u.a]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.a;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r2&&void 0!==arguments[2]?arguments[2]:r,a=void 0,c=Array.isArray(e),u=[e],p=-1,h=[],d=void 0,f=void 0,g=void 0,b=[],m=[],v=e;do{var y=++p===u.length,w=y&&0!==h.length;if(y){if(f=0===m.length?void 0:b[b.length-1],d=g,g=m.pop(),w){if(c)d=d.slice();else{for(var O={},C=0,S=Object.keys(d);C=0?u(l):r(this.length)-u(c(l));t(0,o.getDiagnostics)(e,t.schema).map(e=>({message:e.message,severity:a[e.severity-1],type:s[e.source],from:r.default.Pos(e.range.start.line,e.range.start.character),to:r.default.Pos(e.range.end.line,e.range.end.character)})))},OO9G:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i,r=n("pv/G"),o=n("T95z"),a=n("dWS+"),s=n("/jXB"),c=n("Xizt"),u=n("axIb");function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return"Cannot extend non-".concat(t,' type "').concat(e,'".')}function h(e){for(var t=e.getSchema(),n=Object.create(null),i=0,l=e.getDocument().definitions;ie.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var i=function(e,t){return function(e){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}}(t={exports:{}}),t.exports}(),r=/[&<>"']/,o=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(e){return c[e]},l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(l,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g,d=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},b=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var i=t[t.length-1];if(i&&"paragraph"===i.type)return{raw:n[0],text:n[0].trimRight()};var r=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:z(r,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:T(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){for(var n,i,r,o,a,s,c,u=t[0],l=t[2],p=l.length>1,h={type:"list",raw:u,ordered:p,start:p?+l:"",loose:!1,items:[]},d=t[0].match(this.rules.block.item),f=!1,g=d.length,b=0;b1?1===r.length:r.length>1||this.options.smartLists&&r!==l)&&(o=d.slice(b+1).join("\n"),h.raw=h.raw.substring(0,h.raw.length-o.length),b=g-1)),a=f||/\n\n(?!\s*$)/.test(n),b!==g-1&&(f="\n"===n.charAt(n.length-1),a||(a=f)),a&&(h.loose=!0),c=void 0,(s=/^\[[ xX]\] /.test(n))&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),h.items.push({type:"list_item",raw:u,task:s,checked:c,loose:a,text:n});return h}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):_(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:T(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r=n.align.length;for(i=0;i/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):_(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+n;t[2]=t[2].substring(0,n),t[0]=t[0].substring(0,i).trim(),t[3]=""}var r=t[2],o="";if(this.options.pedantic){var a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);a?(r=a[1],o=a[3]):o=""}else o=t[3]?t[3].slice(1,-1):"";return k(t,{href:(r=r.trim().replace(/^<([\s\S]*)>$/,"$1"))?r.replace(this.rules.inline._escapes,"$1"):r,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return k(n,i,n[0])}},t.strong=function(e){var t=this.rules.inline.strong.exec(e);if(t)return{type:"strong",raw:t[0],text:t[4]||t[3]||t[2]||t[1]}},t.em=function(e){var t=this.rules.inline.em.exec(e);if(t)return{type:"em",raw:t[0],text:t[6]||t[5]||t[4]||t[3]||t[2]||t[1]}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=n.startsWith(" ")&&n.endsWith(" ");return i&&r&&(n=n.substring(1,n.length-1)),n=_(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[1]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=_(this.options.mangle?t(r[1]):r[1])):n=_(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=_(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=_(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):_(r[0]):r[0]:_(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),x={exec:function(){}},E=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(h,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n},N=C,j={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:x,table:x,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};j.def=E(j.def).replace("label",j._label).replace("title",j._title).getRegex(),j.bullet=/(?:[*+-]|\d{1,9}\.)/,j.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,j.item=E(j.item,"gm").replace(/bull/g,j.bullet).getRegex(),j.list=E(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex(),j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j._comment=//,j.html=E(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j.paragraph=E(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.blockquote=E(j.blockquote).replace("paragraph",j.paragraph).getRegex(),j.normal=N({},j),j.gfm=N({},j.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),j.gfm.nptable=E(j.gfm.nptable).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.gfm.table=E(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.pedantic=N({},j.normal,{html:E("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:x,paragraph:E(j.normal._paragraph).replace("hr",j.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var I={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:x,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^_([^\s_<][\s\S]*?[^\s_])_(?!_|[^\s,punctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\s,punctuation])|^\*([^\s*<\[])\*(?!\*)|^\*([^\s<"][\s\S]*?[^\s\[\*])\*(?![\]`punctuation])|^\*([^\s*"<\[][\s\S]*[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:x,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~"};I.em=E(I.em).replace(/punctuation/g,I._punctuation).getRegex(),I._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,I._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,I._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,I.autolink=E(I.autolink).replace("scheme",I._scheme).replace("email",I._email).getRegex(),I._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,I.tag=E(I.tag).replace("comment",j._comment).replace("attribute",I._attribute).getRegex(),I._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,I._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,I._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,I.link=E(I.link).replace("label",I._label).replace("href",I._href).replace("title",I._title).getRegex(),I.reflink=E(I.reflink).replace("label",I._label).getRegex(),I.normal=N({},I),I.pedantic=N({},I.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:E(/^!?\[(label)\]\((.*?)\)/).replace("label",I._label).getRegex(),reflink:E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",I._label).getRegex()}),I.gfm=N({},I.normal,{escape:E(I.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var V=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||M,this.options.tokenizer=this.options.tokenizer||new D,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:L.normal,inline:P.normal};this.options.pedantic?(t.block=L.pedantic,t.inline=P.pedantic):this.options.gfm&&(t.block=L.gfm,t.inline=this.options.breaks?P.breaks:P.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)};var n,i,r=t.prototype;return r.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},r.blockTokens=function(e,t,n){var i,r,o,a;for(void 0===t&&(t=[]),void 0===n&&(n=!0),e=e.replace(/^ +$/gm,"");e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e,t))e=e.substring(i.raw.length),i.type?t.push(i):((a=t[t.length-1]).raw+="\n"+i.raw,a.text+="\n"+i.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),o=i.items.length,r=0;r'+(n?e:U(e,!0))+"\n":"
    "+(n?e:U(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;var i='"+n+""},t.image=function(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;var i=''+n+'":">")},t.text=function(e){return e},e}(),W=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),q=function(){function e(){this.seen={}}return e.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},e}(),Z=i.defaults,$=O,G=function(){function e(e){this.options=e||Z,this.options.renderer=this.options.renderer||new H,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new q}e.parse=function(t,n){return new e(n).parse(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,o,a,s,c,u,l,p,h,d,f,g,b,m,v,y,w="",O=e.length;for(n=0;n0&&"text"===b.tokens[0].type?(b.tokens[0].text=y+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&"text"===b.tokens[0].tokens[0].type&&(b.tokens[0].tokens[0].text=y+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:y}):g+=y),g+=this.parse(b.tokens,f),l+=this.renderer.listitem(g,v,m);w+=this.renderer.list(l,h,d);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(l=p.tokens?this.parseInline(p.tokens):p.text;n+1An error occurred:

    "+X(c.message+"",!0)+"
    ";throw c}}return te.options=te.setOptions=function(e){return Q(te.defaults,e),J(te.defaults),te},te.getDefaults=K,te.defaults=ee,te.use=function(e){var t=Q({},e);if(e.renderer&&function(){var n=te.defaults.renderer||new H,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),a=0;a{a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&l(e),r.default.off(document,"keyup",n),r.default.off(document,"click",i),e.off("mousedown",o))},i=t=>{const n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},o=(t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)};r.default.on(document,"keyup",n),r.default.on(document,"click",i),e.on("mousedown",o)}r.default.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==r.default.Init){const t=e.state.jump.onMouseOver;r.default.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;r.default.off(e.getWrapperElement(),"mouseout",n),r.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:a.bind(null,e),onKeyDown:s.bind(null,e)};r.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver),r.default.on(e.getWrapperElement(),"mouseout",n.onMouseOut),r.default.on(document,"keydown",n.onKeyDown)}});const c="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function u(e){if(e.state.jump.marker)return;const t=e.coordsChar(e.state.jump.cursor),n=e.getTokenAt(t,!0),i=e.state.jump.options,r=i.getDestination||e.getHelper(t,"jump");if(r){const o=r(n,i,e);if(o){const i=e.markText({line:t.line,ch:n.start},{line:t.line,ch:n.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=i,e.state.jump.destination=o}}}function l(e){const t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},P6uZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("3fWJ"),r=n("VnD/"),o=n("t9fZ"),a=n("HJBe"),s=n("tNVB"),c=n("mChF");function u(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?Object(r.a)((function(t,n){return e(t,n,u)})):c.a,Object(o.a)(1),n?Object(a.a)(t):Object(s.a)((function(){return new i.a})))}}},PDj5:function(e,t,n){"use strict";function i(e){var t=!(e&&!1===e.descriptions);return"\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ".concat(t?"description":"","\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(t?"description":"","\n fields(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(t?"description":"","\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var r=i()},PJhV:function(e,t,n){!function(e){var t=e.Pos;function n(e,t){for(var n=0,i=e.length;na.ch&&(s.end=a.ch,s.string=s.string.slice(0,a.ch-s.start)):s={start:a.ch,end:a.ch,string:"",state:s.state,type:"."==s.string?"property":null};for(var u=s;"property"==u.type;){if("."!=(u=r(n,t(a.line,u.start))).string)return;if(u=r(n,t(a.line,u.start)),!p)var p=[];p.push(u)}return{list:l(s,p,i,o),from:t(a.line,s.start),to:t(a.line,s.end)}}}}function r(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}e.registerHelper("hint","javascript",(function(e,t){return i(e,c,(function(e,t){return e.getTokenAt(t)}),t)})),e.registerHelper("hint","coffeescript",(function(e,t){return i(e,u,r,t)}));var o="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),a="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),s="prototype apply call bind".split(" "),c="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),u="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function l(e,t,i,r){var c=[],u=e.string,l=r&&r.globalScope||window;function p(e){0!=e.lastIndexOf(u,0)||function(e,t){if(!Array.prototype.indexOf){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1}return-1!=e.indexOf(t)}(c,e)||c.push(e)}function h(e){"string"==typeof e?n(o,p):e instanceof Array?n(a,p):e instanceof Function&&n(s,p),function(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var i in e)t(i)}(e,p)}if(t&&t.length){var d,f=t.pop();for(f.type&&0===f.type.indexOf("variable")?(r&&r.additionalContext&&(d=r.additionalContext[f.string]),r&&!1===r.useGlobalScope||(d=d||l[f.string])):"string"==f.type?d="":"atom"==f.type?d=1:"function"==f.type&&(null==l.jQuery||"$"!=f.string&&"jQuery"!=f.string||"function"!=typeof l.jQuery?null!=l._&&"_"==f.string&&"function"==typeof l._&&(d=l._()):d=l.jQuery());null!=d&&t.length;)d=d[t.pop().string];null!=d&&h(d)}else{for(var g=e.state.localVars;g;g=g.next)p(g.name);for(var b=e.state.context;b;b=b.prev)for(g=b.vars;g;g=g.next)p(g.name);for(g=e.state.globalVars;g;g=g.next)p(g.name);if(r&&null!=r.additionalContext)for(var m in r.additionalContext)p(m);r&&!1===r.useGlobalScope||h(l),n(i,p)}return c}}(n("VrN/"))},PRU4:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));const i=Symbol("Comlink.proxy"),r=Symbol("Comlink.endpoint"),o=Symbol("Comlink.releaseProxy"),a=Symbol("Comlink.thrown"),s=e=>"object"==typeof e&&null!==e||"function"==typeof e,c=new Map([["proxy",{canHandle:e=>s(e)&&e[i],serialize(e){const{port1:t,port2:n}=new MessageChannel;return function e(t,n=self){n.addEventListener("message",(function r(o){if(!o||!o.data)return;const{id:s,type:c,path:l}=Object.assign({path:[]},o.data),p=(o.data.argumentList||[]).map(g);let h;try{const n=l.slice(0,-1).reduce((e,t)=>e[t],t),r=l.reduce((e,t)=>e[t],t);switch(c){case 0:h=r;break;case 1:n[l.slice(-1)[0]]=g(o.data.value),h=!0;break;case 2:h=r.apply(n,p);break;case 3:h=function(e){return Object.assign(e,{[i]:!0})}(new r(...p));break;case 4:{const{port1:n,port2:i}=new MessageChannel;e(t,i),h=function(e,t){return d.set(e,t),e}(n,[n])}break;case 5:h=void 0}}catch(b){h={value:b,[a]:0}}Promise.resolve(h).catch(e=>({value:e,[a]:0})).then(e=>{const[t,i]=f(e);n.postMessage(Object.assign(Object.assign({},t),{id:s}),i),5===c&&(n.removeEventListener("message",r),u(n))})})),n.start&&n.start()}(e,t),[n,[n]]},deserialize:e=>(e.start(),l(e))}],["throw",{canHandle:e=>s(e)&&a in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function u(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function l(e,t){return function e(t,n=[],i=function(){}){let a=!1;const s=new Proxy(i,{get(i,r){if(p(a),r===o)return()=>b(t,{type:5,path:n.map(e=>e.toString())}).then(()=>{u(t),a=!0});if("then"===r){if(0===n.length)return{then:()=>s};const e=b(t,{type:0,path:n.map(e=>e.toString())}).then(g);return e.then.bind(e)}return e(t,[...n,r])},set(e,i,r){p(a);const[o,s]=f(r);return b(t,{type:1,path:[...n,i].map(e=>e.toString()),value:o},s).then(g)},apply(i,o,s){p(a);const c=n[n.length-1];if(c===r)return b(t,{type:4}).then(g);if("bind"===c)return e(t,n.slice(0,-1));const[u,l]=h(s);return b(t,{type:2,path:n.map(e=>e.toString()),argumentList:u},l).then(g)},construct(e,i){p(a);const[r,o]=h(i);return b(t,{type:3,path:n.map(e=>e.toString()),argumentList:r},o).then(g)}});return s}(e,[],t)}function p(e){if(e)throw new Error("Proxy has been released and is not useable")}function h(e){const t=e.map(f);return[t.map(e=>e[0]),(n=t.map(e=>e[1]),Array.prototype.concat.apply([],n))];var n}const d=new WeakMap;function f(e){for(const[t,n]of c)if(n.canHandle(e)){const[i,r]=n.serialize(e);return[{type:3,name:t,value:i},r]}return[{type:0,value:e},d.get(e)||[]]}function g(e){switch(e.type){case 3:return c.get(e.name).deserialize(e.value);case 0:return e.value}}function b(e,t,n){return new Promise(i=>{const r=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===r&&(e.removeEventListener("message",t),i(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:r},t),n)})}},"PU/P":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"i",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"k",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"f",(function(){return d})),n.d(t,"l",(function(){return f}));var i="ADD_HEADER",r="REMOVE_HEADER",o="EDIT_HEADER_KEY",a="EDIT_HEADER_VALUE",s="EDIT_HEADER_ENABLED",c="SET_HEADERS",u=function(){return function(e){this.windowId=e,this.type=i}}(),l=function(){return function(e,t){this.payload=e,this.windowId=t,this.type=r}}(),p=function(){return function(e,t){this.payload=e,this.windowId=t,this.type=o}}(),h=function(){return function(e,t){this.payload=e,this.windowId=t,this.type=a}}(),d=function(){return function(e,t){this.payload=e,this.windowId=t,this.type=s}}(),f=function(){return function(e,t){this.payload=e,this.windowId=t,this.type=c}}()},PXbX:function(e,t,n){"use strict";var i=Array.prototype.flatMap;t.a=i?function(e,t){return i.call(e,t)}:function(e,t){for(var n=[],i=0;ie?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return C(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return C(e.value)||T.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(C(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(C(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(k);return 0==t.length?null:function(e){return x(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(k);return 0==t.length?null:function(e){var n=function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(D);return Object(a.a)(n).pipe(Object(c.a)(x))}},e}();function k(e){return null!=e}function D(e){var t=Object(r.ub)(e)?Object(s.a)(e):e;if(!Object(r.tb)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function x(e){var t={};return e.forEach((function(e){t=null!=e?Object(i.a)(Object(i.a)({},t),e):t})),0===Object.keys(t).length?null:t}function E(e){return e.validate?function(t){return e.validate(t)}:e}function N(e){return e.validate?function(t){return e.validate(t)}:e}var j={provide:u,useExisting:Object(r.V)((function(){return I})),multi:!0},I=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.E),r.Tb(r.l))},e.\u0275dir=r.Ob({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r.hc("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[r.Cb([j])]}),e}(),A={provide:u,useExisting:Object(r.V)((function(){return L})),multi:!0},M=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),L=function(){function e(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(v),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.E),r.Tb(r.l),r.Tb(M),r.Tb(r.r))},e.\u0275dir=r.Ob({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&r.hc("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Cb([A])]}),e}(),P={provide:u,useExisting:Object(r.V)((function(){return F})),multi:!0},F=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.E),r.Tb(r.l))},e.\u0275dir=r.Ob({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&r.hc("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[r.Cb([P])]}),e}(),R='\n
    \n \n
    \n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',V='\n
    \n
    \n \n
    \n
    \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',B='\n
    \n
    \n \n
    \n
    ',Y=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+R)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+V+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+B)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+R)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+V)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}(),U={provide:u,useExisting:Object(r.V)((function(){return W})),multi:!0};function H(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var W=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r.vb}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=H(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var r=Object(i.h)(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var a=o.value;if(this._compareWith(this._optionMap.get(a),e))return a}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.E),r.Tb(r.l))},e.\u0275dir=r.Ob({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&r.hc("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Cb([U])]}),e}(),q=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(H(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.l),r.Tb(r.E),r.Tb(W,9))},e.\u0275dir=r.Ob({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e}(),Z={provide:u,useExisting:Object(r.V)((function(){return G})),multi:!0};function $(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var G=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r.vb}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function ie(e){return null!=e?_.compose(e.map(E)):null}function re(e){return null!=e?_.composeAsync(e.map(N)):null}function oe(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(r.vb)(t,n.currentValue)}var ae=[p,F,I,W,G,L];function se(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function ce(e,t){if(!t)return null;Array.isArray(t)||ne(e,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return t.forEach((function(t){var o;t.constructor===f?n=t:(o=t,ae.some((function(e){return o.constructor===e}))?(i&&ne(e,"More than one built-in value accessor matches form control with"),i=t):(r&&ne(e,"More than one custom value accessor matches form control with"),r=t))})),r||i||n||(ne(e,"No valid value accessor for form control with"),null)}function ue(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function le(e,t,n,i){Object(r.X)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(Y.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function pe(e){var t=de(e)?e.validators:e;return Array.isArray(t)?ie(t):t||null}function he(e,t){var n=de(t)?t.asyncValidators:e;return Array.isArray(n)?re(n):n||null}function de(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var fe=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=pe(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=he(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object(i.a)(Object(i.a)({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(i.a)(Object(i.a)({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))},e.prototype.enable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object(i.a)(Object(i.a)({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object(i.a)(Object(i.a)({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=D(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach((function(e){i=i instanceof be?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof me&&i.at(e)||null})),i}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new r.n,this.statusChanges=new r.n},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls((function(t){return t.status===e}))},e.prototype._anyControlsDirty=function(){return this._anyControls((function(e){return e.dirty}))},e.prototype._anyControlsTouched=function(){return this._anyControls((function(e){return e.touched}))},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){de(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e.prototype._parentMarkedDirty=function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},e}(),ge=function(e){function t(t,n,i){void 0===t&&(t=null);var r=e.call(this,pe(n),he(i,n))||this;return r._onChange=[],r._applyFormState(t),r._setUpdateStrategy(n),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r._initObservables(),r}return Object(i.c)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach((function(e){return e(n.value,!1!==t.emitViewToModelChange)})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(fe),be=function(e){function t(t,n,i){var r=e.call(this,pe(n),he(i,n))||this;return r.controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return Object(i.c)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach((function(i){n._throwIfControlMissing(i),n.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach((function(i){n.controls[i]&&n.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof ge?t.value:t.getRawValue(),e}))},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild((function(i,r){n=n||t.contains(r)&&e(i)})),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},(function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t}))},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild((function(e,i){n=t(n,e,i)})),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.h)(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},t}(fe),me=function(e){function t(t,n,i){var r=e.call(this,pe(n),he(i,n))||this;return r.controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return Object(i.c)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach((function(e,i){n._throwIfControlMissing(i),n.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach((function(e,i){n.at(i)&&n.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this.controls.map((function(e){return e instanceof ge?e.value:e.getRawValue()}))},t.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},t.prototype._syncPendingControls=function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach((function(t,n){e(t,n)}))},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))},t.prototype._anyControls=function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.h)(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(fe),ve={provide:b,useExisting:Object(r.V)((function(){return we}))},ye=function(){return Promise.resolve(null)}(),we=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new r.n,i.form=new be({},ie(t),re(n)),i}return Object(i.c)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;ye.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),K(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;ye.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ue(t._directives,e)}))},t.prototype.addFormGroup=function(e){var t=this;ye.then((function(){var n=t._findContainer(e.path),i=new be({});ee(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))},t.prototype.removeFormGroup=function(e){var t=this;ye.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;ye.then((function(){n.form.get(e.path).setValue(t)}))},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,se(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t.\u0275fac=function(e){return new(e||t)(r.Tb(S,10),r.Tb(z,10))},t.\u0275dir=r.Ob({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&r.hc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Cb([ve]),r.Ab]}),t}(b),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(i.c)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return X(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return ie(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return re(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t.\u0275fac=function(e){return n(e||t)},t.\u0275dir=r.Ob({type:t,features:[r.Ab]});var n=r.bc(t);return t}(b),Ce=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+R+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
    \n \n \n
    \n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+V+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+B)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+V+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+B)},e}(),Se={provide:b,useExisting:Object(r.V)((function(){return ze}))},ze=function(e){function t(t,n,i){var r=e.call(this)||this;return r._parent=t,r._validators=n,r._asyncValidators=i,r}var n;return Object(i.c)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof we||Ce.modelGroupParentException()},t.\u0275fac=function(e){return new(e||t)(r.Tb(b,5),r.Tb(S,10),r.Tb(z,10))},t.\u0275dir=r.Ob({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.Cb([Se]),r.Ab]}),t}(Oe),Te={provide:v,useExisting:Object(r.V)((function(){return ke}))},_e=function(){return Promise.resolve(null)}(),ke=function(e){function t(t,n,i,o){var a=e.call(this)||this;return a.control=new ge,a._registered=!1,a.update=new r.n,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=ce(a,o),a}return Object(i.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),oe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?X(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return ie(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return re(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){K(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof ze)&&this._parent instanceof Oe?Ce.formGroupNameException():this._parent instanceof ze||this._parent instanceof we||Ce.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ce.missingNameException()},t.prototype._updateValue=function(e){var t=this;_e.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;_e.then((function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()}))},t.\u0275fac=function(e){return new(e||t)(r.Tb(b,9),r.Tb(S,10),r.Tb(z,10),r.Tb(u,10))},t.\u0275dir=r.Ob({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Cb([Te]),r.Ab,r.Bb]}),t}(v),De=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Ob({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),xe=new r.q("NgModelWithFormControlWarning"),Ee={provide:v,useExisting:Object(r.V)((function(){return Ne}))},Ne=function(e){function t(t,n,i,o){var a=e.call(this)||this;return a._ngModelWarningConfig=o,a.update=new r.n,a._ngModelWarningSent=!1,a._rawValidators=t||[],a._rawAsyncValidators=n||[],a.valueAccessor=ce(a,i),a}var n;return Object(i.c)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Y.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(K(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),oe(e,this.viewModel)&&(le("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return ie(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return re(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(r.Tb(S,10),r.Tb(z,10),r.Tb(u,10),r.Tb(xe,8))},t.\u0275dir=r.Ob({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r.Cb([Ee]),r.Ab,r.Bb]}),t}(v),je={provide:b,useExisting:Object(r.V)((function(){return Ie}))},Ie=function(e){function t(t,n){var i=e.call(this)||this;return i._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new r.n,i}return Object(i.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return K(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ue(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);ee(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);ee(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,se(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange((function(){return te(t)})),t.valueAccessor.registerOnTouched((function(){return te(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&K(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=ie(this._validators);this.form.validator=_.compose([this.form.validator,e]);var t=re(this._asyncValidators);this.form.asyncValidator=_.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Y.missingFormException()},t.\u0275fac=function(e){return new(e||t)(r.Tb(S,10),r.Tb(z,10))},t.\u0275dir=r.Ob({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r.hc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Cb([je]),r.Ab,r.Bb]}),t}(b),Ae={provide:b,useExisting:Object(r.V)((function(){return Me}))},Me=function(e){function t(t,n,i){var r=e.call(this)||this;return r._parent=t,r._validators=n,r._asyncValidators=i,r}return Object(i.c)(t,e),t.prototype._checkParentType=function(){Fe(this._parent)&&Y.groupParentException()},t.\u0275fac=function(e){return new(e||t)(r.Tb(b,13),r.Tb(S,10),r.Tb(z,10))},t.\u0275dir=r.Ob({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r.Cb([Ae]),r.Ab]}),t}(Oe),Le={provide:b,useExisting:Object(r.V)((function(){return Pe}))},Pe=function(e){function t(t,n,i){var r=e.call(this)||this;return r._parent=t,r._validators=n,r._asyncValidators=i,r}return Object(i.c)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return X(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return ie(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return re(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){Fe(this._parent)&&Y.arrayParentException()},t.\u0275fac=function(e){return new(e||t)(r.Tb(b,13),r.Tb(S,10),r.Tb(z,10))},t.\u0275dir=r.Ob({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r.Cb([Le]),r.Ab]}),t}(b);function Fe(e){return!(e instanceof Me||e instanceof Ie||e instanceof Pe)}var Re={provide:v,useExisting:Object(r.V)((function(){return Ve}))},Ve=function(e){function t(t,n,i,o,a){var s=e.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new r.n,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=ce(s,o),s}var n;return Object(i.c)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Y.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),oe(e,this.viewModel)&&(le("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return X(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return ie(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return re(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Me)&&this._parent instanceof Oe?Y.ngModelGroupException():this._parent instanceof Me||this._parent instanceof Ie||this._parent instanceof Pe||Y.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(r.Tb(b,13),r.Tb(S,10),r.Tb(z,10),r.Tb(u,10),r.Tb(xe,8))},t.\u0275dir=r.Ob({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.Cb([Re]),r.Ab,r.Bb]}),t}(v),Be={provide:S,useExisting:Object(r.V)((function(){return Ue})),multi:!0},Ye={provide:S,useExisting:Object(r.V)((function(){return He})),multi:!0},Ue=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?_.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Ob({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&r.Eb("required",t.required?"":null)},inputs:{required:"required"},features:[r.Cb([Be])]}),e}(),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(i.c)(t,e),t.prototype.validate=function(e){return this.required?_.requiredTrue(e):null},t.\u0275fac=function(e){return n(e||t)},t.\u0275dir=r.Ob({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r.Eb("required",t.required?"":null)},features:[r.Cb([Ye]),r.Ab]});var n=r.bc(t);return t}(Ue),We={provide:S,useExisting:Object(r.V)((function(){return qe})),multi:!0},qe=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?_.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Ob({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r.Cb([We])]}),e}(),Ze={provide:S,useExisting:Object(r.V)((function(){return $e})),multi:!0},$e=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=_.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Ob({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r.Eb("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[r.Cb([Ze]),r.Bb]}),e}(),Ge={provide:S,useExisting:Object(r.V)((function(){return Qe})),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=_.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Ob({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r.Eb("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r.Cb([Ge]),r.Bb]}),e}(),Xe={provide:S,useExisting:Object(r.V)((function(){return Ke})),multi:!0},Ke=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=_.pattern(this.pattern)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Ob({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r.Eb("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[r.Cb([Xe]),r.Bb]}),e}(),Je=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)}}),e}(),et=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)},providers:[M],imports:[Je]}),e}()},QaEO:function(e,t,n){"use strict";var i=n("nA++");e.exports=function(e){try{return e&&i(e.toString)?e.toString():String(e)}catch(t){throw new TypeError("Passed argument cannot be stringifed")}}},Qcyp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},QvHX:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var i=n("6blF"),r=n("P6uZ"),o=n("xMyE"),a=n("67Y/"),s=n("xk4V"),c=n("fH2+"),u=n("sia0"),l=n("PU/P"),p=n("GFHA"),h=n("6a34"),d=n("Rp7s"),f=n("RXUe"),g=n("fBw0"),b=n("ytA7"),m=n("xKU2"),v=n("YMfE"),y=n("FGPJ"),w=n("xyIE"),O=n("JXuU"),C=n("TYT/"),S=n("6onV"),z=function(){return(z=Object.assign||function(e){for(var t,n=1,i=arguments.length;n1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(a.a),p=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.c(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e},t.prototype.refCount=function(){return c()(this)},t}(o.a),h=function(){var e=p.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),d=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.c(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(r.b);function f(){return new r.a}function g(){return function(e){return c()((t=f,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,h);return i.source=e,i.subjectFactory=n,i})(e));var t}}},S5bw:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("mrSG"),r=n("K9Ia"),o=n("zo3G"),a=n("pugT"),s=n("mZXl"),c=n("8g8A"),u=n("uMaO"),l=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=t<1?1:t,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i.c(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new p(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new c.a;if(this.isStopped||this.hasError?t=a.a.EMPTY:(this.observers.push(e),t=new u.a(this,e)),r&&e.add(e=new s.a(e,r)),n)for(var l=0;lt&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i},t}(r.a),p=function(){return function(e,t){this.time=e,this.value=t}}()},SJVZ:function(e,t,n){!function(e){"use strict";function t(t,n,r,o){if(r&&r.call){var a=r;r=null}else a=i(t,r,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=i(t,r,"minFoldSize");function c(e){var i=a(t,n);if(!i||i.to.line-i.from.linet.firstLine();)n=e.Pos(n.line-1,0),u=c(!1);if(u&&!u.cleared&&"unfold"!==o){var l=function(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);(r=document.createElement("span")).appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}(t,r,u);e.on(l,"mousedown",(function(t){p.clear(),e.e_preventDefault(t)}));var p=t.markText(u.from,u.to,{replacedWith:l,clearOnEnter:i(t,r,"clearOnEnter"),__isFold:!0});p.on("clear",(function(n,i){e.signal(t,"unfold",t,n,i)})),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(i,r){t(i,r,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,i){t(this,e,n,i)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n'+(n?e:o(e,!0))+"\n":"
    "+(n?e:o(e,!0))+"
    "}blockquote(e){return"
    \n"+e+"
    \n"}html(e){return e}heading(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(e,t,n){const i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • "+e+"
  • \n"}checkbox(e){return" "}paragraph(e){return"

    "+e+"

    \n"}table(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n"+e+"\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+""}br(){return this.options.xhtml?"
    ":"
    "}del(e){return""+e+""}link(e,t,n){if(null===(e=r(this.options.sanitize,this.options.baseUrl,e)))return n;let i='",i}image(e,t,n){if(null===(e=r(this.options.sanitize,this.options.baseUrl,e)))return n;let i=''+n+'":">",i}text(e){return e}}},Sh7c:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n("7CWi"),r=n("TYT/"),o=n("ED2X"),a=function(){function e(e,t,n){var r=this;this.triggerElement=e,this.ngZone=t,this.insertExtraNode=n,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.platform=new i.a,this.onClick=function(e){!r.triggerElement||!r.triggerElement.getAttribute||r.triggerElement.getAttribute("disabled")||"INPUT"===e.target.tagName||r.triggerElement.className.indexOf("disabled")>=0||r.fadeOutWave()},this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}return Object.defineProperty(e.prototype,"waveAttributeName",{get:function(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"},enumerable:!0,configurable:!0}),e.prototype.bindTriggerEvent=function(){var e=this;this.platform.isBrowser&&this.ngZone.runOutsideAngular((function(){e.removeTriggerEvent(),e.triggerElement&&e.triggerElement.addEventListener("click",e.clickHandler,!0)}))},e.prototype.removeTriggerEvent=function(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)},e.prototype.removeStyleAndExtraNode=function(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)},e.prototype.destroy=function(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()},e.prototype.fadeOutWave=function(){var e=this,t=this.triggerElement,n=this.getWaveColor(t);t.setAttribute(this.waveAttributeName,"true"),Date.now()1&&l>1&&i[u-1]===r[l-2]&&i[u-2]===r[l-1]&&(n[u][l]=Math.min(n[u][l],n[u-2][l-2]+p))}return n[o][a]}n.d(t,"a",(function(){return i}))},T9Ld:function(e,t,n){const{defaults:i}=n("vbtb"),{block:r}=n("e56X"),{rtrim:o,splitCells:a,escape:s}=n("rUJ1");e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.rules=r.normal,this.options.pedantic?this.rules=r.pedantic:this.options.gfm&&(this.rules=r.gfm)}static get rules(){return r}static lex(t,n){return new e(n).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.token(e,!0)}token(e,t){let n,i,c,u,l,p,h,d,f,g,b,m,v,y,w,O;for(e=e.replace(/^ +$/gm,"");e;)if((c=this.rules.newline.exec(e))&&(e=e.substring(c[0].length),c[0].length>1&&this.tokens.push({type:"space"})),c=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(c[0].length),t&&"paragraph"===t.type?t.text+="\n"+c[0].trimRight():(c=c[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?c:o(c,"\n")}))}else if(c=this.rules.fences.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"code",lang:c[2]?c[2].trim():c[2],text:c[3]||""});else if(c=this.rules.heading.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"heading",depth:c[1].length,text:c[2]});else if((c=this.rules.nptable.exec(e))&&(p={type:"table",header:a(c[1].replace(/^ *| *\| *$/g,"")),align:c[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:c[3]?c[3].replace(/\n$/,"").split("\n"):[]},p.header.length===p.align.length)){for(e=e.substring(c[0].length),b=0;b ?/gm,""),this.token(c,t),this.tokens.push({type:"blockquote_end"});else if(c=this.rules.list.exec(e)){for(e=e.substring(c[0].length),u=c[2],y=u.length>1,h={type:"list_start",ordered:y,start:y?+u:"",loose:!1},this.tokens.push(h),c=c[0].match(this.rules.item),d=[],n=!1,v=c.length,b=0;b1?1===l.length:l.length>1||this.options.smartLists&&l!==u)&&(e=c.slice(b+1).join("\n")+e,b=v-1)),i=n||/\n\n(?!\s*$)/.test(p),b!==v-1&&(n="\n"===p.charAt(p.length-1),i||(i=n)),i&&(h.loose=!0),w=/^\[[ xX]\] /.test(p),O=void 0,w&&(O=" "!==p[1],p=p.replace(/^\[[ xX]\] +/,"")),f={type:"list_item_start",task:w,checked:O,loose:i},d.push(f),this.tokens.push(f),this.token(p,!1),this.tokens.push({type:"list_item_end"});if(h.loose)for(v=d.length,b=0;b"}}},"TYT/":function(e,t,n){"use strict";n.d(t,"a",(function(){return Io})),n.d(t,"b",(function(){return uu})),n.d(t,"c",(function(){return ru})),n.d(t,"d",(function(){return nu})),n.d(t,"e",(function(){return iu})),n.d(t,"f",(function(){return el})),n.d(t,"g",(function(){return Hu})),n.d(t,"h",(function(){return go})),n.d(t,"i",(function(){return wu})),n.d(t,"j",(function(){return Cs})),n.d(t,"k",(function(){return hu})),n.d(t,"l",(function(){return Ss})),n.d(t,"m",(function(){return Tn})),n.d(t,"n",(function(){return jc})),n.d(t,"o",(function(){return G})),n.d(t,"p",(function(){return h})),n.d(t,"q",(function(){return $})),n.d(t,"r",(function(){return jo})),n.d(t,"s",(function(){return Ys})),n.d(t,"t",(function(){return Us})),n.d(t,"u",(function(){return pu})),n.d(t,"v",(function(){return ue})),n.d(t,"w",(function(){return qu})),n.d(t,"x",(function(){return ce})),n.d(t,"y",(function(){return Ru})),n.d(t,"z",(function(){return zu})),n.d(t,"A",(function(){return d})),n.d(t,"B",(function(){return cu})),n.d(t,"C",(function(){return su})),n.d(t,"D",(function(){return Ac})),n.d(t,"E",(function(){return ks})),n.d(t,"F",(function(){return Ts})),n.d(t,"G",(function(){return _s})),n.d(t,"H",(function(){return xs})),n.d(t,"I",(function(){return hi})),n.d(t,"J",(function(){return f})),n.d(t,"K",(function(){return g})),n.d(t,"L",(function(){return Gu})),n.d(t,"M",(function(){return Zs})),n.d(t,"N",(function(){return ju})),n.d(t,"O",(function(){return mo})),n.d(t,"P",(function(){return Es})),n.d(t,"Q",(function(){return Gs})),n.d(t,"R",(function(){return ve})),n.d(t,"S",(function(){return Bo})),n.d(t,"T",(function(){return Vu})),n.d(t,"U",(function(){return Un})),n.d(t,"V",(function(){return j})),n.d(t,"W",(function(){return re})),n.d(t,"X",(function(){return Yn})),n.d(t,"Y",(function(){return Ku})),n.d(t,"Z",(function(){return Au})),n.d(t,"ab",(function(){return lu})),n.d(t,"bb",(function(){return vo})),n.d(t,"cb",(function(){return pc})),n.d(t,"db",(function(){return li})),n.d(t,"eb",(function(){return gi})),n.d(t,"fb",(function(){return Zn})),n.d(t,"gb",(function(){return In})),n.d(t,"hb",(function(){return Mn})),n.d(t,"ib",(function(){return Rn})),n.d(t,"jb",(function(){return Pn})),n.d(t,"kb",(function(){return Ln})),n.d(t,"lb",(function(){return Fn})),n.d(t,"mb",(function(){return sc})),n.d(t,"nb",(function(){return Xu})),n.d(t,"ob",(function(){return cc})),n.d(t,"pb",(function(){return uc})),n.d(t,"qb",(function(){return An})),n.d(t,"rb",(function(){return V})),n.d(t,"sb",(function(){return Yo})),n.d(t,"tb",(function(){return da})),n.d(t,"ub",(function(){return ha})),n.d(t,"vb",(function(){return Vo})),n.d(t,"wb",(function(){return ac})),n.d(t,"xb",(function(){return Ue})),n.d(t,"yb",(function(){return x})),n.d(t,"zb",(function(){return jn})),n.d(t,"Ab",(function(){return ns})),n.d(t,"Bb",(function(){return cs})),n.d(t,"Cb",(function(){return vs})),n.d(t,"Db",(function(){return Vi})),n.d(t,"Eb",(function(){return Go})),n.d(t,"Fb",(function(){return Aa})),n.d(t,"Gb",(function(){return Qa})),n.d(t,"Hb",(function(){return Xa})),n.d(t,"Ib",(function(){return Ka})),n.d(t,"Jb",(function(){return Ia})),n.d(t,"Kb",(function(){return ga})),n.d(t,"Lb",(function(){return Zc})),n.d(t,"Mb",(function(){return yi})),n.d(t,"Nb",(function(){return Ce})),n.d(t,"Ob",(function(){return Ee})),n.d(t,"Pb",(function(){return y})),n.d(t,"Qb",(function(){return w})),n.d(t,"Rb",(function(){return ke})),n.d(t,"Sb",(function(){return Ne})),n.d(t,"Tb",(function(){return ea})),n.d(t,"Ub",(function(){return sa})),n.d(t,"Vb",(function(){return la})),n.d(t,"Wb",(function(){return ua})),n.d(t,"Xb",(function(){return ca})),n.d(t,"Yb",(function(){return aa})),n.d(t,"Zb",(function(){return oa})),n.d(t,"ac",(function(){return pa})),n.d(t,"bc",(function(){return On})),n.d(t,"cc",(function(){return Ja})),n.d(t,"dc",(function(){return ie})),n.d(t,"ec",(function(){return ta})),n.d(t,"fc",(function(){return tu})),n.d(t,"gc",(function(){return na})),n.d(t,"hc",(function(){return fa})),n.d(t,"ic",(function(){return Qc})),n.d(t,"jc",(function(){return Mt})),n.d(t,"kc",(function(){return ya})),n.d(t,"lc",(function(){return Tc})),n.d(t,"mc",(function(){return _c})),n.d(t,"nc",(function(){return kc})),n.d(t,"oc",(function(){return Dc})),n.d(t,"pc",(function(){return xc})),n.d(t,"qc",(function(){return Ca})),n.d(t,"rc",(function(){return Oa})),n.d(t,"sc",(function(){return ia})),n.d(t,"tc",(function(){return Sa})),n.d(t,"uc",(function(){return bc})),n.d(t,"vc",(function(){return mc})),n.d(t,"wc",(function(){return vc})),n.d(t,"xc",(function(){return yc})),n.d(t,"yc",(function(){return wc})),n.d(t,"zc",(function(){return Uc})),n.d(t,"Ac",(function(){return Jo})),n.d(t,"Bc",(function(){return nn})),n.d(t,"Cc",(function(){return tn})),n.d(t,"Dc",(function(){return ut})),n.d(t,"Ec",(function(){return bi})),n.d(t,"Fc",(function(){return vi})),n.d(t,"Gc",(function(){return Se})),n.d(t,"Hc",(function(){return De})),n.d(t,"Ic",(function(){return $c})),n.d(t,"Jc",(function(){return Hc})),n.d(t,"Kc",(function(){return ja})),n.d(t,"Lc",(function(){return Ko})),n.d(t,"Mc",(function(){return eu})),n.d(t,"Nc",(function(){return qa})),n.d(t,"Oc",(function(){return Za})),n.d(t,"Pc",(function(){return $a})),n.d(t,"Qc",(function(){return Ga})),n.d(t,"Rc",(function(){return es})),n.d(t,"Sc",(function(){return Wc}));var i=n("mrSG"),r=n("pugT"),o=n("K9Ia"),a=n("6blF"),s=n("p0ib"),c=n("S1nX");function u(e){return{toString:e}.toString()}var l="__parameters__";function p(e,t,n){return u((function(){var r=function(e){return function(){for(var t=[],n=0;n=e.length?e.push(n):e.splice(t,0,n)}function he(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function de(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function ge(e,t){var n=be(e,t);if(n>=0)return e[1|n]}function be(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var me=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),ve=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),ye={},we=[],Oe=0;function Ce(e){return u((function(){var t=e.type,n=t.prototype,i={},r={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===me.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||we,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ve.Emulated,id:"c",styles:e.styles||we,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,s=e.pipes;return r.id+=Oe++,r.inputs=xe(e.inputs,i),r.outputs=xe(e.outputs),a&&a.forEach((function(e){return e(r)})),r.directiveDefs=o?function(){return("function"==typeof o?o():o).map(ze)}:null,r.pipeDefs=s?function(){return("function"==typeof s?s():s).map(Te)}:null,r}))}function Se(e,t,n){var i=e.\u0275cmp;i.directiveDefs=function(){return t.map(ze)},i.pipeDefs=function(){return n.map(Te)}}function ze(e){return je(e)||function(e){return e[Y]||null}(e)}function Te(e){return function(e){return e[U]||null}(e)}var _e={};function ke(e){var t={type:e.type,bootstrap:e.bootstrap||we,declarations:e.declarations||we,imports:e.imports||we,exports:e.exports||we,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&u((function(){_e[e.id]=e.type})),t}function De(e,t){return u((function(){var n=Ae(e,!0);n.declarations=t.declarations||we,n.imports=t.imports||we,n.exports=t.exports||we}))}function xe(e,t){if(null==e)return ye;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var Ee=Ce;function Ne(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function je(e){return e[B]||null}function Ie(e,t){return e.hasOwnProperty(q)?e[q]:null}function Ae(e,t){var n=e[H]||null;if(!n&&!0===t)throw new Error("Type "+x(e)+" does not have '\u0275mod' property.");return n}function Me(e){return Array.isArray(e)&&"object"==typeof e[1]}function Le(e){return Array.isArray(e)&&!0===e[1]}function Pe(e){return 0!=(8&e.flags)}function Fe(e){return 2==(2&e.flags)}function Re(e){return 1==(1&e.flags)}function Ve(e){return null!==e.template}function Be(e){return 0!=(512&e[2])}var Ye=void 0;function Ue(e){Ye=e}function He(){return void 0!==Ye?Ye:"undefined"!=typeof document?document:void 0}function We(e){return!!e.listen}var qe={createRenderer:function(e,t){return He()}};function Ze(e){for(;Array.isArray(e);)e=e[0];return e}function $e(e,t){return Ze(t[e+20])}function Ge(e,t){return Ze(t[e.index])}function Qe(e,t){return e.data[t+20]}function Xe(e,t){return e[t+20]}function Ke(e,t){var n=t[e];return Me(n)?n:n[0]}function Je(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function et(e){return 4==(4&e[2])}function tt(e){return 128==(128&e[2])}function nt(e,t){return null===e||null==t?null:e[t]}function it(e){e[18]=0}function rt(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var ot={lFrame:Dt(null),bindingsEnabled:!0,checkNoChangesMode:!1};function at(){return ot.bindingsEnabled}function st(){return ot.lFrame.lView}function ct(){return ot.lFrame.tView}function ut(e){ot.lFrame.contextLView=e}function lt(){return ot.lFrame.previousOrParentTNode}function pt(e,t){ot.lFrame.previousOrParentTNode=e,ot.lFrame.isParent=t}function ht(){return ot.lFrame.isParent}function dt(){ot.lFrame.isParent=!1}function ft(){return ot.checkNoChangesMode}function gt(e){ot.checkNoChangesMode=e}function bt(){var e=ot.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function mt(){return ot.lFrame.bindingIndex}function vt(){return ot.lFrame.bindingIndex++}function yt(e){var t=ot.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function wt(e,t){var n=ot.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ot(t)}function Ot(e){ot.lFrame.currentDirectiveIndex=e}function Ct(e){var t=ot.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function St(){return ot.lFrame.currentQueryIndex}function zt(e){ot.lFrame.currentQueryIndex=e}function Tt(e,t){var n=kt();ot.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function _t(e,t){var n=kt(),i=e[1];ot.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=i,n.contextLView=e,n.bindingIndex=i.bindingStartIndex}function kt(){var e=ot.lFrame,t=null===e?null:e.child;return null===t?Dt(e):t}function Dt(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function xt(){var e=ot.lFrame;return ot.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var Et=xt;function Nt(){var e=xt();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function jt(){return ot.lFrame.selectedIndex}function It(e){ot.lFrame.selectedIndex=e}function At(){var e=ot.lFrame;return Qe(e.tView,e.selectedIndex)}function Mt(){ot.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Lt(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Yt=function(){return function(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}();function Ut(e,t,n){for(var i=We(e),r=0;rt){a=o-1;break}}}for(;o>16}function Xt(e,t){for(var n=Qt(e),i=t;n>0;)i=i[15],n--;return i}function Kt(e){return"string"==typeof e?e:null==e?"":""+e}function Jt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Kt(e)}var en=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V)}();function tn(e){return{name:"window",target:e.ownerDocument.defaultView}}function nn(e){return{name:"document",target:e.ownerDocument}}function rn(e){return e instanceof Function?e():e}var on=!0;function an(e){var t=on;return on=e,t}var sn=0;function cn(e,t){var n=ln(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,un(i.data,e),un(t,null),un(i.blueprint,null));var r=pn(e,t),o=e.injectorIndex;if($t(r))for(var a=Gt(r),s=Xt(r,t),c=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|c[a+u];return t[o+8]=r,o}function un(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ln(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function pn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],i=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function hn(e,t,n){!function(e,t,n){var i="string"!=typeof n?n[Z]:n.charCodeAt(0)||0;null==i&&(i=n[Z]=sn++);var r=255&i,o=1<0?255&t:t}(n);if("function"==typeof o){Tt(t,e);try{var a=o();if(null!=a||i&b.Optional)return a;throw new Error("No provider for "+Jt(n)+"!")}finally{Et()}}else if("number"==typeof o){if(-1===o)return new wn(e,t);var s=null,c=ln(e,t),u=-1,l=i&b.Host?t[16][6]:null;for((-1===c||i&b.SkipSelf)&&(u=-1===c?pn(e,t):t[c+8],yn(i,!1)?(s=t[1],c=Gt(u),t=Xt(u,t)):c=-1);-1!==c;){u=t[c+8];var p=t[1];if(vn(o,c,p.data)){var h=gn(c,t,n,s,i,l);if(h!==fn)return h}yn(i,t[1].data[c+8]===l)&&vn(o,c,t)?(s=p,c=Gt(u),t=Xt(u,t)):c=-1}}}if(i&b.Optional&&void 0===r&&(r=null),0==(i&(b.Self|b.Host))){var d=t[9],f=te(void 0);try{return d?d.get(n,r,i&b.Optional):oe(n,r,i&b.Optional)}finally{te(f)}}if(i&b.Optional)return r;throw new Error("NodeInjector: NOT_FOUND ["+Jt(n)+"]")}var fn={};function gn(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],c=bn(s,a,n,null==i?Fe(s)&&on:i!=a&&3===s.type,r&b.Host&&o===s);return null!==c?mn(t,a,c,s):fn}function bn(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=65535&o,c=e.directiveStart,u=o>>16,l=r?s+u:e.directiveEnd,p=i?s:s+u;p=c&&h.type===n)return p}if(r){var d=a[c];if(d&&Ve(d)&&d.type===n)return c}return null}function mn(e,t,n,i){var r=e[n],o=t.data;if(r instanceof Yt){var a=r;if(a.resolving)throw new Error("Circular dep for "+Jt(o[n]));var s=an(a.canSeeViewProviders);a.resolving=!0;var c=void 0;a.injectImpl&&(c=te(a.injectImpl)),Tt(e,i);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.onChanges,r=t.onInit,o=t.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{a.injectImpl&&te(c),an(s),a.resolving=!1,Et()}}return r}function vn(e,t,n){var i=64&e,r=32&e;return!!((128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t])&1<',!t.querySelector||t.querySelector("svg")?(t.innerHTML='

    ',this.getInertBodyElement=t.querySelector&&t.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(i){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();ti.hasOwnProperty(t)&&!Xn.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(ui(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),si=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/([^\#-~ |!])/g;function ui(e){return e.replace(/&/g,"&").replace(si,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(ci,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function li(e,t){var n=null;try{Qn=Qn||new Hn(e);var i=t?String(t):"";n=Qn.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Qn.getInertBodyElement(i)}while(i!==o);var a=new ai,s=a.sanitizeChildren(pi(n)||n);return Yn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var c=pi(n)||n;c.firstChild;)c.removeChild(c.firstChild)}}function pi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var hi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),di=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),fi=/^url\(([^)]+)\)$/;function gi(e){if(!(e=String(e).trim()))return"";var t=e.match(fi);return t&&Zn(t[1])===t[1]||e.match(di)&&function(e){for(var t=!0,n=!0,i=0;io?"":r[l+1].toLowerCase();var h=8&i?p:null;if(h&&-1!==zi(h,u,0)||2&i&&u!==p){if(xi(i))return!1;a=!0}}}}else{if(!a&&!xi(i)&&!xi(c))return!1;if(a&&xi(c))continue;a=!1,i=c|1&i}}return xi(i)||a}function xi(e){return 0==(1&e)}function Ei(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||xi(a)||(t+=Ii(o,r),r=""),i=a,o=o||!xi(i);n++}return""!==r&&(t+=Ii(o,r)),t}var Mi={};function Li(e){var t=e[3];return Le(t)?t[3]:t}function Pi(e){return Ri(e[13])}function Fi(e){return Ri(e[4])}function Ri(e){for(;null!==e&&!Le(e);)e=e[4];return e}function Vi(e){Bi(ct(),st(),jt()+e,ft())}function Bi(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Pt(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Ft(t,o,0,n)}It(n)}function Yi(e,t){return e<<17|t<<2}function Ui(e){return e>>17&32767}function Hi(e){return 2|e}function Wi(e){return(131068&e)>>2}function qi(e,t){return-131069&e|t<<2}function Zi(e){return 1|e}function $i(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&Bi(e,t,0,ft()),n(i,r)}finally{It(o)}}function nr(e,t,n){if(Pe(t))for(var i=t.directiveEnd,r=t.directiveStart;r0&&function e(t){for(var n=Pi(t);null!==n;n=Fi(n))for(var i=10;i0&&e(r)}var a=t[1].components;if(null!==a)for(i=0;i0&&e(s)}}(n)}}function zr(e,t){var n=Ke(t,e),i=n[1];!function(e,t){for(var n=t.length;n0&&(e[n-1][4]=i[4]);var o=he(e,10+t);Vr(i[1],i,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Ur(e,t){if(!(256&t[2])){var n=t[11];We(n)&&n.destroyNode&&to(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Wr(e[1],e);for(;t;){var n=null;if(Me(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Me(t)&&Wr(t[1],t),t=Hr(t,e);null===t&&(t=e),Me(t)&&Wr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Hr(e,t){var n;return Me(e)&&(n=e[6])&&2===n.type?Pr(n,e):e[3]===t?null:e[3]}function Wr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&We(t[11])&&t[11].destroy();var i=t[17];if(null!==i&&Le(t[3])){i!==t[3]&&Br(i,t);var r=t[19];null!==r&&r.detachView(e)}}}function qr(e,t,n){for(var i=t.parent;null!=i&&(4===i.type||5===i.type);)i=(t=i).parent;if(null==i){var r=n[6];return 2===r.type?Fr(r,n):n[0]}if(t&&5===t.type&&4&t.flags)return Ge(t,n).parentNode;if(2&i.flags){var o=e.data,a=o[o[i.index].directiveStart].encapsulation;if(a!==ve.ShadowDom&&a!==ve.Native)return null}return Ge(i,n)}function Zr(e,t,n,i){We(e)?e.insertBefore(t,n,i):t.insertBefore(n,i,!0)}function $r(e,t,n){We(e)?e.appendChild(t,n):t.appendChild(n)}function Gr(e,t,n,i){null!==i?Zr(e,t,n,i):$r(e,t,n)}function Qr(e,t){return We(e)?e.parentNode(t):t.parentNode}function Xr(e,t){if(2===e.type){var n=Pr(e,t);return null===n?null:Jr(n.indexOf(t,10)-10,n)}return 4===e.type||5===e.type?Ge(e,t):null}function Kr(e,t,n,i){var r=qr(e,i,t);if(null!=r){var o=t[11],a=Xr(i.parent||t[6],t);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ur(this._lView[1],this._lView)},e.prototype.onDestroy=function(e){var t,n,i;t=this._lView[1],i=e,Nr(n=this._lView).push(i),t.firstCreatePass&&jr(t).push(n[7].length-1,null)},e.prototype.markForCheck=function(){_r(this._cdRefInjectingView||this._lView)},e.prototype.detach=function(){this._lView[2]&=-129},e.prototype.reattach=function(){this._lView[2]|=128},e.prototype.detectChanges=function(){kr(this._lView[1],this._lView,this.context)},e.prototype.checkNoChanges=function(){!function(e,t,n){gt(!0);try{kr(e,t,n)}finally{gt(!1)}}(this._lView[1],this._lView,this.context)},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e.prototype.detachFromAppRef=function(){var e;this._appRef=null,to(this._lView[1],e=this._lView,e[11],2,null,null)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e}(),uo=function(e){function t(t){var n=e.call(this,t)||this;return n._view=t,n}return Object(i.c)(t,e),t.prototype.detectChanges=function(){Dr(this._view)},t.prototype.checkNoChanges=function(){!function(e){gt(!0);try{Dr(e)}finally{gt(!1)}}(this._view)},Object.defineProperty(t.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),t}(co);function lo(e,t,n){return oo||(oo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t}(e)),new oo(Ge(t,n))}function po(e,t,n,r){return ao||(ao=function(e){function t(t,n,i){var r=e.call(this)||this;return r._declarationView=t,r._declarationTContainer=n,r.elementRef=i,r}return Object(i.c)(t,e),t.prototype.createEmbeddedView=function(e){var t=this._declarationTContainer.tViews,n=Qi(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Ki(t,n,e),new co(n)},t}(e)),0===n.type?new ao(r,n,lo(t,n,r)):null}function ho(e,t,n,r){var o;so||(so=function(e){function n(t,n,i){var r=e.call(this)||this;return r._lContainer=t,r._hostTNode=n,r._hostView=i,r}return Object(i.c)(n,e),Object.defineProperty(n.prototype,"element",{get:function(){return lo(t,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new wn(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var e=pn(this._hostTNode,this._hostView),t=Xt(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var o=Qt(e),a=t,s=t[6];o>1;)s=(a=a[15])[6],o--;return s}(e,this._hostView,this._hostTNode);return $t(e)&&null!=n?new wn(n,t):new wn(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this.length>0;)this.remove(this.length-1)},n.prototype.get=function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer.length-10},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i},n.prototype.createComponent=function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(ce,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s},n.prototype.insert=function(e,t){var n=e._lView,i=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Le(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=n[3],a=new so(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t);return function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):x(s)))}r="{"+o.join(", ")+"}"}return n+(i?"("+i+")":"")+"["+r+"]: "+e.replace(X,"\n ")}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{ee(r)}},e.prototype._resolveInjectorDefTypes=function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))},e.prototype.toString=function(){var e=[];return this.records.forEach((function(t,n){return e.push(x(n))})),"R3Injector["+e.join(", ")+"]"},e.prototype.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},e.prototype.processInjectorType=function(e,t,n){var i=this;if(!(e=I(e)))return!1;var r=S(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=S(o)),null==r)return!1;if(null!=r.imports&&!s){var c;n.push(a);try{le(r.imports,(function(e){i.processInjectorType(e,t,n)&&(void 0===c&&(c=[]),c.push(e))}))}finally{}if(void 0!==c)for(var u=function(e){var t=c[e],n=t.ngModule,r=t.providers;le(r,(function(e){return i.processProvider(e,n,r||Oo)}))},l=0;l0){var n=de(t,"?");throw new Error("Can't resolve all parameters for "+x(e)+": ("+n.join(", ")+").")}var i=function(e){var t=e&&(e[z]||e[k]||e[_]&&e[_]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+n+'" class.'),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ko(e,t,n){var r,o=void 0;if(Eo(e)){var a=I(e);return Ie(a)||_o(a)}if(xo(e))o=function(){return I(e.useValue)};else if((r=e)&&r.useFactory)o=function(){return e.useFactory.apply(e,Object(i.g)(ae(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return ie(I(e.useExisting))};else{var s=I(e&&(e.useClass||e.provide));if(s||function(e,t,n){var i="";throw e&&t&&(i=" - only instances of Provider and Type are allowed, got: ["+t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+x(e)+"'"+i)}(t,n,e),!function(e){return!!e.deps}(e))return Ie(s)||_o(s);o=function(){return new(s.bind.apply(s,Object(i.g)([void 0],ae(e.deps))))}}return o}function Do(e,t,n){return void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function xo(e){return null!==e&&"object"==typeof e&&K in e}function Eo(e){return"function"==typeof e}var No=function(e,t,n){return function(e,t,n,i){void 0===t&&(t=null),void 0===n&&(n=null);var r=zo(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},jo=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?No(e,t,""):No(e.providers,e.parent,e.name||"")},e.THROW_IF_NOT_FOUND=Q,e.NULL=new se,e.\u0275prov=y({token:e,providedIn:"any",factory:function(){return ie(G)}}),e.__NG_ELEMENT_ID__=-1,e}(),Io=new $("AnalyzeForEntryComponents"),Ao=new Map,Mo=new Set;function Lo(e){return"string"==typeof e?e:e.text()}function Po(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;ac?s[c]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,p=!1;else{o=va(i,t,o,!1);var v=n.listen(d.name||f,r,o);l.push(o,v),u&&u.push(r,b,g,g+1)}}else o=va(i,t,o,!0),f.addEventListener(r,o,a),l.push(o),u&&u.push(r,b,g,a)}var y,w=i.outputs;if(p&&null!==w&&(y=w[r])){var O=y.length;if(O)for(var C=0;C0;)t=t[15],e--;return t}(e,ot.lFrame.contextLView))[8]}(e)}function wa(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r=0}var Da={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xa(e){return e.substring(Da.key,Da.keyEnd)}function Ea(e,t){var n=Da.textEnd;return n===t?-1:(t=Da.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Da.key=t,n),Na(e,t,n))}function Na(e,t,n){for(;t=0;n=Ea(t,n))fe(e,xa(t),!0)}function La(e,t,n,i){var r,o=st(),a=ct(),s=yt(2);if(a.firstUpdatePass&&Ra(a,e,s,i),t!==Mi&&qo(o,s,t)){var c=void 0;null==n&&(c=null===(r=ot.lFrame)?null:r.currentSanitizer)&&(n=c),Ya(a,a.data[jt()+20],o,o[11],e,o[s+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=x(jn(e)))),e}(t,n),i,s)}}function Pa(e,t,n,i){var r=ct(),o=yt(2);r.firstUpdatePass&&Ra(r,null,o,i);var a=st();if(n!==Mi&&qo(a,o,n)){var s=r.data[jt()+20];if(Wa(s,i)&&!Fa(r,o)){var c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(n=E(c,n||"")),ra(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===Mi&&(r=Ta);for(var c=0,u=0,l=0=e.expandoStartIndex}function Ra(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[jt()+20],a=Fa(e,n);Wa(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=Ct(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Ba(n=Va(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Va(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Wi(i))return e[Ui(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Ui(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Ba(s=Va(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(l=!0):u=n,r)if(0!==c){var p=Ui(e[s+1]);e[i+1]=Yi(p,s),0!==p&&(e[p+1]=qi(e[p+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Yi(s,0),0!==s&&(e[s+1]=qi(e[s+1],i)),s=i;else e[i+1]=Yi(c,0),0===s?s=i:e[c+1]=qi(e[c+1],i),c=i;l&&(e[i+1]=Hi(e[i+1])),_a(e,u,i,!0),_a(e,u,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&be(o,t)>=0&&(n[i+1]=Zi(n[i+1]))}(t,u,e,i,o),a=Yi(s,c),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Va(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var c=e[r],u=Array.isArray(c),l=u?c[1]:c,p=null===l,h=n[r+1];h===Mi&&(h=p?Ta:void 0);var d=p?ge(h,i):l===i?h:void 0;if(u&&!Ha(d)&&(d=ge(c,i)),Ha(d)&&(s=d,a))return s;var f=e[r+1];r=a?Ui(f):Wi(f)}if(null!==t){var g=o?t.residualClasses:t.residualStyles;null!=g&&(s=ge(g,i))}return s}function Ha(e){return void 0!==e}function Wa(e,t){return 0!=(e.flags&(t?16:32))}function qa(e,t){void 0===t&&(t="");var n=st(),i=ct(),r=e+20,o=i.firstCreatePass?Xi(i,n[6],e,3,null,null):i.data[r],a=n[r]=function(e,t){return We(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Kr(i,n,a,o),pt(o,!1)}function Za(e){return $a("",e,""),Za}function $a(e,t,n){var i=st(),r=Qo(i,e,t,n);return r!==Mi&&Lr(i,jt(),r),$a}function Ga(e,t,n,i,r){var o=st(),a=Xo(o,e,t,n,i,r);return a!==Mi&&Lr(o,jt(),a),Ga}function Qa(e,t,n){Pa(fe,Ma,Qo(st(),e,t,n),!0)}function Xa(e,t,n,i,r){Pa(fe,Ma,Xo(st(),e,t,n,i,r),!0)}function Ka(e,t,n,i,r,o,a,s,c){Pa(fe,Ma,function(e,t,n,i,r,o,a,s,c,u){var l=$o(e,mt(),n,r,a,c);return yt(4),l?t+Kt(n)+i+Kt(r)+o+Kt(a)+s+Kt(c)+u:Mi}(st(),e,t,n,i,r,o,a,s,c),!0)}function Ja(e,t,n){var i=st();return qo(i,vt(),t)&&ur(ct(),At(),i,e,t,i[11],n,!0),Ja}function es(e,t,n){var i=st();if(qo(i,vt(),t)){var r=ct(),o=At();ur(r,o,i,e,t,Ir(Ct(r.data),o,i),n,!0)}return es}function ts(e,t){var n=Je(e)[1],i=n.data.length-1;Lt(n,{directiveStart:i,directiveEnd:i+1})}function ns(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Ve(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=is(e.inputs),o.declaredInputs=is(e.declaredInputs),o.outputs=is(e.outputs);var a=r.hostBindings;a&&as(e,a);var s=r.viewQuery,c=r.contentQueries;if(s&&rs(e,s),c&&os(e,c),v(e.inputs,r.inputs),v(e.declaredInputs,r.declaredInputs),v(e.outputs,r.outputs),Ve(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}o.afterContentChecked=o.afterContentChecked||r.afterContentChecked,o.afterContentInit=e.afterContentInit||r.afterContentInit,o.afterViewChecked=e.afterViewChecked||r.afterViewChecked,o.afterViewInit=e.afterViewInit||r.afterViewInit,o.doCheck=e.doCheck||r.doCheck,o.onDestroy=e.onDestroy||r.onDestroy,o.onInit=e.onInit||r.onInit}var l=r.features;if(l)for(var p=0;p=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=qt(r.hostAttrs,n=qt(n,r.hostAttrs))}}(i)}function is(e){return e===ye?{}:e===we?[]:e}function rs(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function os(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function as(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var ss=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function cs(e){e.type.prototype.ngOnChanges&&(e.setInput=us,e.onChanges=function(){var e=ls(this),t=e&&e.current;if(t){var n=e.previous;if(n===ye)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}})}function us(e,t,n,i){var r=ls(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ye,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],c=a[s];o[s]=new ss(c&&c.currentValue,t,a===ye),e[i]=t}function ls(e){return e.__ngSimpleChanges__||null}function ps(e,t,n,i,r){if(e=I(e),Array.isArray(e))for(var o=0;o>16;if(Eo(e)||!e.multi){var f=new Yt(u,r,ea),g=fs(c,t,r?p:p+d,h);-1===g?(hn(cn(l,s),a,c),hs(a,e,t.length),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=65536),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{var b=fs(c,t,p+d,h),m=fs(c,t,p,p+d),v=m>=0&&n[m];r&&!v||!r&&!(b>=0&&n[b])?(hn(cn(l,s),a,c),f=function(e,t,n,i,r){var o=new Yt(e,n,ea);return o.multi=[],o.index=t,o.componentProviders=0,ds(o,r,i&&!n),o}(r?bs:gs,n.length,r,i,u),!r&&v&&(n[m].providerFactory=f),hs(a,e,t.length,0),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=65536),n.push(f),s.push(f)):hs(a,e,b>-1?b:m,ds(n[r?m:b],u,!r&&i)),!r&&i&&v&&n[m].componentProviders++}}}function hs(e,t,n,i){var r=Eo(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ds(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function fs(e,t,n,i){for(var r=n;r0&&ro(u,p,w.join(" "))}if(o=Qe(g,0),void 0!==t)for(var O=o.projection=[],C=0;C null != "+t+" <=Actual]")}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var dc=new Map,fc=function(e){function t(t,n){var i=e.call(this)||this;i._parent=n,i._bootstrapComponents=[],i.injector=i,i.destroyCbs=[],i.componentFactoryResolver=new Ks(i);var r=Ae(t),o=t[W]||null;return o&&hc(o),i._bootstrapComponents=rn(r.bootstrap),i._r3Injector=zo(t,n,[{provide:ce,useValue:i},{provide:Cs,useValue:i.componentFactoryResolver}],x(t)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(t),i}return Object(i.c)(t,e),t.prototype.get=function(e,t,n){return void 0===t&&(t=jo.THROW_IF_NOT_FOUND),void 0===n&&(n=b.Default),e===jo||e===ce||e===G?this:this._r3Injector.get(e,t,n)},t.prototype.destroy=function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(ce),gc=function(e){function t(t){var n=e.call(this)||this;return n.moduleType=t,null!==Ae(t)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for "+e+" - "+x(t)+" vs "+x(t.name))})(n,dc.get(n),t),dc.set(n,t)}var i=t.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(t){return e(t)}))}(t),n}return Object(i.c)(t,e),t.prototype.create=function(e){return new fc(this.moduleType,e)},t}(ue);function bc(e,t,n){var i=bt()+e,r=st();return r[i]===Mi?Ho(r,i,n?t.call(n):t()):Wo(r,i)}function mc(e,t,n,i){return Cc(st(),bt(),e,t,n,i)}function vc(e,t,n,i,r){return Sc(st(),bt(),e,t,n,i,r)}function yc(e,t,n,i,r,o){return zc(st(),bt(),e,t,n,i,r,o)}function wc(e,t,n,i,r,o,a,s,c){var u=bt()+e,l=st(),p=$o(l,u,n,i,r,o);return Zo(l,u+4,a,s)||p?Ho(l,u+6,c?t.call(c,n,i,r,o,a,s):t(n,i,r,o,a,s)):Wo(l,u+6)}function Oc(e,t){var n=e[t];return n===Mi?void 0:n}function Cc(e,t,n,i,r,o){var a=t+n;return qo(e,a,r)?Ho(e,a+1,o?i.call(o,r):i(r)):Oc(e,a+1)}function Sc(e,t,n,i,r,o,a){var s=t+n;return Zo(e,s,r,o)?Ho(e,s+2,a?i.call(a,r,o):i(r,o)):Oc(e,s+2)}function zc(e,t,n,i,r,o,a,s){var c=t+n;return function(e,t,n,i,r){var o=Zo(e,t,n,i);return qo(e,t+2,r)||o}(e,c,r,o,a)?Ho(e,c+3,s?i.call(s,r,o,a):i(r,o,a)):Oc(e,c+3)}function Tc(e,t){var n,i=ct(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Error("The pipe '"+e+"' could not be found!")}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Ie(n.type)),a=te(ea),s=an(!1),c=o();return an(s),te(a),function(e,t,n,i){var r=n+20;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=i}(i,st(),e,c),c}function _c(e,t,n){var i=st(),r=Xe(i,e);return Nc(i,Ec(i,e)?Cc(i,bt(),t,r.transform,n,r):r.transform(n))}function kc(e,t,n,i){var r=st(),o=Xe(r,e);return Nc(r,Ec(r,e)?Sc(r,bt(),t,o.transform,n,i,o):o.transform(n,i))}function Dc(e,t,n,i,r){var o=st(),a=Xe(o,e);return Nc(o,Ec(o,e)?zc(o,bt(),t,a.transform,n,i,r,a):a.transform(n,i,r))}function xc(e,t,n,i,r,o){var a=st(),s=Xe(a,e);return Nc(a,Ec(a,e)?function(e,t,n,i,r,o,a,s,c){var u=t+n;return $o(e,u,r,o,a,s)?Ho(e,u+4,c?i.call(c,r,o,a,s):i(r,o,a,s)):Oc(e,u+4)}(a,bt(),t,s.transform,n,i,r,o,s):s.transform(n,i,r,o))}function Ec(e,t){return e[1].data[t+20].pure}function Nc(e,t){return Bo.isWrapped(t)&&(t=Bo.unwrap(t),e[mt()]=Mi),t}var jc=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return Object(i.c)(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,i){var o,a=function(e){return null},s=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(a=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},n&&(a=this.__isAsync?function(e){setTimeout((function(){return n(e)}))}:function(e){n(e)}),i&&(s=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var c=e.prototype.subscribe.call(this,o,a,s);return t instanceof r.a&&t.add(c),c},t}(o.a);function Ic(){return this._results[Ro()]()}var Ac=function(){function e(){this.dirty=!0,this._results=[],this.changes=new jc,this.length=0;var t=Ro(),n=e.prototype;n[t]||(n[t]=Ic)}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var i=0;i0)r.push(s[c/2]);else{for(var l=a[c+1],p=n[-u],h=10;h0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(e){return e.timeoutId!==r})),e(i._didWork,i.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e.\u0275fac=function(t){return new(t||e)(ie(zu))},e.\u0275prov=y({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),Iu=function(){function e(){this._applications=new Map,Lu.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),Lu.findTestabilityInTree(this,e,t)},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=y({token:e,factory:function(t){return e.\u0275fac(t)}}),e}();function Au(e){Lu=e}var Mu,Lu=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Pu=function(e,t,n){var r=e.get(Ou,[]).concat(t),o=new gc(n);if(0===Ao.size)return Promise.resolve(o);var a,s,c=(a=r.map((function(e){return e.providers})),s=[],a.forEach((function(e){return e&&s.push.apply(s,Object(i.g)(e))})),s);if(0===c.length)return Promise.resolve(o);var u=function(){var e=V.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),l=jo.create({providers:c}).get(u.ResourceLoader);return function(e){var t=[],n=new Map;function i(e){var t=n.get(e);if(!t){var i=function(e){return Promise.resolve(l.get(e))}(e);n.set(e,t=i.then(Lo))}return t}return Ao.forEach((function(e,n){var r=[];e.templateUrl&&r.push(i(e.templateUrl).then((function(t){e.template=t})));var o=e.styleUrls,a=e.styles||(e.styles=[]),s=e.styles.length;o&&o.forEach((function(t,n){a.push(""),r.push(i(t).then((function(i){a[s+n]=i,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)})))}));var c=Promise.all(r).then((function(){return function(e){Mo.delete(e)}(n)}));t.push(c)})),Ao=new Map,Promise.all(t).then((function(){}))}().then((function(){return o}))},Fu=new $("AllowMultipleToken"),Ru=function(){return function(e,t){this.name=e,this.token=t}}();function Vu(e,t,n){void 0===n&&(n=[]);var i="Platform: "+t,r=new $(i);return function(t){void 0===t&&(t=[]);var o=Bu();if(!o||o.injector.get(Fu,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:vo,useValue:"platform"});!function(e){if(Mu&&!Mu.destroyed&&!Mu.injector.get(Fu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Mu=e.get(Yu);var t=e.get(su,null);t&&t.forEach((function(e){return e()}))}(jo.create({providers:a,name:i}))}return function(e){var t=Bu();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Bu(){return Mu&&!Mu.destroyed?Mu:null}var Yu=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,i,r=this,o=(i=t&&t.ngZoneEventCoalescing||!1,"noop"===(n=t?t.ngZone:void 0)?new Nu:("zone.js"===n?void 0:n)||new zu({enableLongStackTrace:Yn(),shouldCoalesceEventChangeDetection:i})),a=[{provide:zu,useValue:o}];return o.run((function(){var t=jo.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Tn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Wu(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){i.handleError(e)}})})),function(e,t,i){try{var o=((a=n.injector.get(iu)).runInitializers(),a.donePromise.then((function(){return hc(n.injector.get(pu,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return ha(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(i,o)}))},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var i=Uu({},t);return Pu(this.injector,i,e).then((function(e){return n.bootstrapModuleFactory(e,i)}))},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Hu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+x(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(ie(jo))},e.\u0275prov=y({token:e,factory:function(t){return e.\u0275fac(t)}}),e}();function Uu(e,t){return Array.isArray(t)?t.reduce(Uu,e):Object(i.a)(Object(i.a)({},e),t)}var Hu=function(){function e(e,t,n,i,r,o){var u=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Yn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run((function(){u.tick()}))}});var l=new a.a((function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular((function(){e.next(u._stable),e.complete()}))})),p=new a.a((function(e){var t;u._zone.runOutsideAngular((function(){t=u._zone.onStable.subscribe((function(){zu.assertNotInAngularZone(),Su((function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))}))}))}));var n=u._zone.onUnstable.subscribe((function(){zu.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(s.a)(l,p.pipe(Object(c.a)()))}return e.prototype.bootstrap=function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ws?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(ce),o=n.create(jo.NULL,[],t||n.selector,r);o.onDestroy((function(){i._unloadComponent(o)}));var a=o.injector.get(ju,null);return a&&o.injector.get(Iu).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Yn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var e,t,n,r,o=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;try{for(var a=Object(i.h)(this._views),s=a.next();!s.done;s=a.next())s.value.detectChanges()}catch(l){e={error:l}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}if(this._enforceNoNewChanges)try{for(var c=Object(i.h)(this._views),u=c.next();!u.done;u=c.next())u.value.checkNoChanges()}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}catch(h){this._zone.runOutsideAngular((function(){return o._exceptionHandler.handleError(h)}))}finally{this._runningTick=!1}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Wu(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(uu,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Wu(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach((function(e){return e.destroy()}))},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(ie(zu),ie(lu),ie(jo),ie(Tn),ie(Cs),ie(iu))},e.\u0275prov=y({token:e,factory:function(t){return e.\u0275fac(t)}}),e}();function Wu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var qu=function(){return function(){}}(),Zu=function(){return function(){}}(),$u={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Gu=function(){function e(e,t){this._compiler=e,this._config=t||$u}return e.prototype.load=function(e){return this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=Object(i.e)(e.split("#"),2),o=r[0],a=r[1];return void 0===a&&(a="default"),n("crnd")(o).then((function(e){return e[a]})).then((function(e){return Qu(e,o,a)})).then((function(e){return t._compiler.compileModuleAsync(e)}))},e.prototype.loadFactory=function(e){var t=Object(i.e)(e.split("#"),2),r=t[0],o=t[1],a="NgFactory";return void 0===o&&(o="default",a=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(e){return e[o+a]})).then((function(e){return Qu(e,r,o)}))},e.\u0275fac=function(t){return new(t||e)(ie(wu),ie(Zu,8))},e.\u0275prov=y({token:e,factory:function(t){return e.\u0275fac(t)}}),e}();function Qu(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Xu=function(e){return null},Ku=Vu(null,"core",[{provide:cu,useValue:"unknown"},{provide:Yu,deps:[jo]},{provide:Iu,deps:[]},{provide:lu,deps:[]}]),Ju=[{provide:Hu,useClass:Hu,deps:[zu,lu,jo,Tn,Cs,iu]},{provide:ec,deps:[zu],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:iu,useClass:iu,deps:[[new d,nu]]},{provide:wu,useClass:wu,deps:[]},ou,{provide:Ys,useFactory:function(){return Ws},deps:[]},{provide:Us,useFactory:function(){return qs},deps:[]},{provide:pu,useFactory:function(e){return hc(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new h(pu),new d,new g]]},{provide:hu,useValue:"USD"}],el=function(){function e(e){}return e.\u0275mod=ke({type:e}),e.\u0275inj=w({factory:function(t){return new(t||e)(ie(Hu))},providers:Ju}),e}()},TirB:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i=n("1QEH"),r=n("rWdj"),o=n("t3R0"),a=n("WXJZ"),s=n("zpYP"),c=n("EMzn"),u=n("4suF"),l=n("19Hc"),p=n("LViu"),h=n("51nL"),d=n("axIb"),f=n("Mbdf");function g(e,t){Object(s.a)(e)&&Object(s.a)(e.__schema)||Object(o.a)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '+Object(r.a)(e));for(var n=e.__schema,g=Object(a.a)(n.types,(function(e){return e.name}),(function(e){return function(e){if(e&&e.name&&e.kind)switch(e.kind){case p.TypeKind.SCALAR:return new d.g({name:(n=e).name,description:n.description});case p.TypeKind.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+Object(r.a)(e));return new d.f({name:e.name,description:e.description,interfaces:function(){return e.interfaces.map(_)},fields:function(){return k(e)}})}(e);case p.TypeKind.INTERFACE:return new d.c({name:(t=e).name,description:t.description,fields:function(){return k(t)}});case p.TypeKind.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+Object(r.a)(e));return new d.h({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(T)}})}(e);case p.TypeKind.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+Object(r.a)(e));return new d.a({name:e.name,description:e.description,values:Object(a.a)(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case p.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+Object(r.a)(e));return new d.b({name:e.name,description:e.description,fields:function(){return D(e.inputFields)}})}(e)}var t,n;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+Object(r.a)(e))}(e)})),b=0,m=[].concat(l.g,p.introspectionTypes);b0)return{errors:d};try{t=Object(a.a)(i)}catch(Ke){return{errors:[Ke]}}var f=Object(s.c)(n,t);return f.length>0?{errors:f}:_({schema:n,document:t,rootValue:r,contextValue:o,variableValues:u,operationName:l,fieldResolver:p,typeResolver:h})}var ee=n("51nL"),te=n("19Hc"),ne=n("neE4"),ie=n("y4cC"),re=n("zsKT"),oe=n("CbW8"),ae=n("JvOi"),se=n("dQau"),ce=n("L2ys"),ue=n("F8X2"),le=n("Xizt");function pe(e,t){return new Promise((function(n){return n(t(e))}))}function he(e){return{value:e,done:!1}}function de(e,t,n,i,r,o,a,s){return ge(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:i,variableValues:r,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function fe(e){if(e instanceof m.a)return{errors:[e]};throw e}function ge(e){var t=e.schema,n=e.document,i=e.contextValue,r=e.variableValues,o=e.operationName,a=e.fieldResolver,s=be(t,n,e.rootValue,i,r,o,e.subscribeFieldResolver),c=function(e){return _(t,n,e,i,r,o,a)};return s.then((function(e){return Object(u.d)(e)?function(e,t,n){var i,r,o,a,s,c,l=Object(u.c)(e);function p(e){return e.done?e:pe(e.value,t).then(he,r)}if("function"==typeof l.return&&(i=l.return,r=function(e){var t=function(){return Promise.reject(e)};return i.call(l).then(t,t)}),n){var h=n;o=function(e){return pe(e,h).then(he,r)}}return c=function(){return this},(s=u.a)in(a={next:function(){return l.next().then(p,o)},return:function(){return i?i.call(l).then(p,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof l.throw?l.throw(e).then(p,o):Promise.reject(e).catch(r)}})?Object.defineProperty(a,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[s]=c,a}(e,c,fe):e}))}function be(e,t,n,i,r,o,a){D(e,t,r);try{var s=x(e,t,n,i,r,o,a);if(Array.isArray(s))return Promise.resolve({errors:s});var c=z(e,s.operation),p=N(s,c,s.operation.selectionSet,Object.create(null),Object.create(null)),h=Object.keys(p)[0],d=p[h],f=d[0].name.value,g=Q(e,c,f);if(!g)throw new m.a('The subscription field "'.concat(f,'" is not defined.'),d);var y=g.subscribe||s.fieldResolver,w=Object(b.a)(void 0,h),O=M(s,g,d,c,w),C=L(s,g,d,y,n,O);return Promise.resolve(C).then((function(e){if(e instanceof Error)return{errors:[v(e,d,Object(b.b)(w))]};if(Object(u.d)(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+Object(l.a)(e))}))}catch(S){return S instanceof m.a?Promise.resolve({errors:[S]}):Promise.reject(S)}}var me=n("jOXf"),ve=n("FQ53"),ye=n("ZfCc"),we=n("sdW/"),Oe=n("2Rkc"),Ce=n("y8IY"),Se=n("VlWk"),ze=n("E++1"),Te=n("10sW"),_e=n("g4S7"),ke=n("AeAO"),De=n("PmNC"),xe=n("ZBm+"),Ee=n("A67W"),Ne=n("r60r"),je=n("FduV"),Ie=n("Vuqn"),Ae=n("2/d+"),Me=n("gggk"),Le=n("/C/i"),Pe=n("sA7U"),Fe=n("lORA"),Re=n("dwPZ"),Ve=n("v96Q"),Be=n("U4FY"),Ye=n("AW/X"),Ue=n("0xor"),He=n("cfc+"),We=n("AF4T"),qe=n("+zUi"),Ze=n("pLY/"),$e=n("wpgB"),Ge=n("iyJ7"),Qe=n("herJ"),Xe=n("OO9G"),Ke=n("oycr");function Je(e){e||Object(h.a)(0,"Received null or undefined error.");var t=e.message||"An unknown error occurred.",n=e.locations,i=e.path,r=e.extensions;return r?{message:t,locations:n,path:i,extensions:r}:{message:t,locations:n,path:i}}var et=n("PDj5"),tt=n("SYjR");function nt(e,t){var n=_(e,Object(a.a)(Object(et.a)(t)));return!o(n)&&!n.errors&&n.data||Object(p.a)(0),n.data}var it=n("TirB"),rt=n("Yen0"),ot=n("PXbX"),at=n("1QEH"),st=n("Wzjs"),ct=n("WXJZ");function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lt(e){for(var t=1;t0&&(a+=' at "value'.concat(Object(_t.a)(s),'"')),r.push(new m.a(a+": "+o.message,n,void 0,void 0,void 0,o.originalError))}));return r.length>0?{errors:r,value:void 0}:{errors:void 0,value:o}}function Dt(e,t){var n=kt(e,t).errors;return n?n.map((function(e){return e.message})):[]}function xt(e,t){var n=new ee.a({}),i={kind:y.a.DOCUMENT,definitions:[]},r=new zt.a(n,void 0,e),o=new me.b(n,i,r),a=Object(Ye.a)(o);return Object(ce.c)(t,Object(ce.e)(r,a)),o.getErrors()}function Et(e){return{kind:"Document",definitions:Object(ot.a)(e,(function(e){return e.definitions}))}}function Nt(e){var t,n=[],i=Object.create(null),r=new Map,o=Object.create(null),a=0;Object(ce.c)(e,{OperationDefinition:function(e){t=jt(e),n.push(e),r.set(e,a++)},FragmentDefinition:function(e){i[t=e.name.value]=e,r.set(e,a++)},FragmentSpread:function(e){var n=e.name.value;(o[t]||(o[t]=Object.create(null)))[n]=!0}});for(var s=Object.create(null),c=0;c0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}var Pt=n("sJV+"),Ft=n("5PMP"),Rt=n("kBjl");function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yt=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",INTERFACE_REMOVED_FROM_OBJECT:"INTERFACE_REMOVED_FROM_OBJECT",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),Ut=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",INTERFACE_ADDED_TO_OBJECT:"INTERFACE_ADDED_TO_OBJECT",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Ht(e,t){return qt(e,t).filter((function(e){return e.type in Yt}))}function Wt(e,t){return qt(e,t).filter((function(e){return e.type in Ut}))}function qt(e,t){return[].concat(function(e,t){for(var n=[],i=rn(Object(at.a)(e.getTypeMap()),Object(at.a)(t.getTypeMap())),r=0,o=i.removed;rthis.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new r(e,t)}setEnd(e,t){this.end=new r(e,t)}}class r{constructor(e,t){this.lessThanOrEqualTo=e=>this.line0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=b(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)},t.prototype.replaceState=function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t.\u0275fac=function(e){return new(e||t)(r.dc(l),r.dc(O,8))},t.\u0275prov=r.Pb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(y),z=function(){function e(e,t){var n=this;this._subject=new r.n,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(_(i)),this._platformStrategy.onPopState((function(e){n._subject.emit({url:n.path(!0),pop:!0,state:e.state,type:e.type})}))}var t;return t=e,e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.getState=function(){return this._platformLocation.getState()},e.prototype.isCurrentPathEqualTo=function(e,t){return void 0===t&&(t=""),this.path()==this.normalize(e+v(t))},e.prototype.normalize=function(e){return t.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,_(e)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)},e.prototype.replaceState=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.onUrlChange=function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))},e.prototype._notifyUrlChangeListeners=function(e,t){void 0===e&&(e=""),this._urlChangeListeners.forEach((function(n){return n(e,t)}))},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=v,e.joinWithSlash=b,e.stripTrailingSlash=m,e.\u0275prov=Object(r.Pb)({factory:T,token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(r.dc(y),r.dc(l))},e}();function T(){return new z(Object(r.dc)(y),Object(r.dc)(l))}function _(e){return e.replace(/\/index.html$/,"")}var k={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},D=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),x=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),E=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),N=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),j=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),I=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function A(e,t){return B(Object(r.mb)(e)[r.cb.DateFormat],t)}function M(e,t){return B(Object(r.mb)(e)[r.cb.TimeFormat],t)}function L(e,t){return B(Object(r.mb)(e)[r.cb.DateTimeFormat],t)}function P(e,t){var n=Object(r.mb)(e),i=n[r.cb.NumberSymbols][t];if(void 0===i){if(t===I.CurrencyDecimal)return n[r.cb.NumberSymbols][I.Decimal];if(t===I.CurrencyGroup)return n[r.cb.NumberSymbols][I.Group]}return i}function F(e,t){return Object(r.mb)(e)[r.cb.NumberFormats][t]}var R=r.pb;function V(e){if(!e[r.cb.ExtraData])throw new Error('Missing extra locale data for the locale "'+e[r.cb.LocaleId]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function B(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function Y(e){var t=Object(i.e)(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,H={},W=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{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]*)/,q=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Z=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),$=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function G(e,t,n,o){var a=function(e){if(re(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var r=Object(i.e)(e.split("-").map((function(e){return+e})),3);return new Date(r[0],r[1]-1,r[2])}if(t=e.match(U))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-i,c=Number(e[6]||0),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,c,u),t}(t)}var o=new Date(e);if(!re(o))throw new Error('Unable to convert "'+e+'" into a date');return o}(e);t=function e(t,n){var i=function(e){return Object(r.mb)(e)[r.cb.LocaleId]}(t);if(H[i]=H[i]||{},H[i][n])return H[i][n];var o="";switch(n){case"shortDate":o=A(t,j.Short);break;case"mediumDate":o=A(t,j.Medium);break;case"longDate":o=A(t,j.Long);break;case"fullDate":o=A(t,j.Full);break;case"shortTime":o=M(t,j.Short);break;case"mediumTime":o=M(t,j.Medium);break;case"longTime":o=M(t,j.Long);break;case"fullTime":o=M(t,j.Full);break;case"short":var a=e(t,"shortTime"),s=e(t,"shortDate");o=Q(L(t,j.Short),[a,s]);break;case"medium":var c=e(t,"mediumTime"),u=e(t,"mediumDate");o=Q(L(t,j.Medium),[c,u]);break;case"long":var l=e(t,"longTime"),p=e(t,"longDate");o=Q(L(t,j.Long),[l,p]);break;case"full":var h=e(t,"fullTime"),d=e(t,"fullDate");o=Q(L(t,j.Full),[h,d])}return o&&(H[i][n]=o),o}(n,t)||t;for(var s,c=[];t;){if(!(s=W.exec(t))){c.push(t);break}var u=(c=c.concat(s.slice(1))).pop();if(!u)break;t=u}var l=a.getTimezoneOffset();o&&(l=ie(o,l),a=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ie(t,i)-i))}(a,o));var p="";return c.forEach((function(e){var t=function(e){if(ne[e])return ne[e];var t;switch(e){case"G":case"GG":case"GGG":t=J($.Eras,N.Abbreviated);break;case"GGGG":t=J($.Eras,N.Wide);break;case"GGGGG":t=J($.Eras,N.Narrow);break;case"y":t=K(Z.FullYear,1,0,!1,!0);break;case"yy":t=K(Z.FullYear,2,0,!0,!0);break;case"yyy":t=K(Z.FullYear,3,0,!1,!0);break;case"yyyy":t=K(Z.FullYear,4,0,!1,!0);break;case"M":case"L":t=K(Z.Month,1,1);break;case"MM":case"LL":t=K(Z.Month,2,1);break;case"MMM":t=J($.Months,N.Abbreviated);break;case"MMMM":t=J($.Months,N.Wide);break;case"MMMMM":t=J($.Months,N.Narrow);break;case"LLL":t=J($.Months,N.Abbreviated,E.Standalone);break;case"LLLL":t=J($.Months,N.Wide,E.Standalone);break;case"LLLLL":t=J($.Months,N.Narrow,E.Standalone);break;case"w":t=te(1);break;case"ww":t=te(2);break;case"W":t=te(1,!0);break;case"d":t=K(Z.Date,1);break;case"dd":t=K(Z.Date,2);break;case"E":case"EE":case"EEE":t=J($.Days,N.Abbreviated);break;case"EEEE":t=J($.Days,N.Wide);break;case"EEEEE":t=J($.Days,N.Narrow);break;case"EEEEEE":t=J($.Days,N.Short);break;case"a":case"aa":case"aaa":t=J($.DayPeriods,N.Abbreviated);break;case"aaaa":t=J($.DayPeriods,N.Wide);break;case"aaaaa":t=J($.DayPeriods,N.Narrow);break;case"b":case"bb":case"bbb":t=J($.DayPeriods,N.Abbreviated,E.Standalone,!0);break;case"bbbb":t=J($.DayPeriods,N.Wide,E.Standalone,!0);break;case"bbbbb":t=J($.DayPeriods,N.Narrow,E.Standalone,!0);break;case"B":case"BB":case"BBB":t=J($.DayPeriods,N.Abbreviated,E.Format,!0);break;case"BBBB":t=J($.DayPeriods,N.Wide,E.Format,!0);break;case"BBBBB":t=J($.DayPeriods,N.Narrow,E.Format,!0);break;case"h":t=K(Z.Hours,1,-12);break;case"hh":t=K(Z.Hours,2,-12);break;case"H":t=K(Z.Hours,1);break;case"HH":t=K(Z.Hours,2);break;case"m":t=K(Z.Minutes,1);break;case"mm":t=K(Z.Minutes,2);break;case"s":t=K(Z.Seconds,1);break;case"ss":t=K(Z.Seconds,2);break;case"S":t=K(Z.FractionalSeconds,1);break;case"SS":t=K(Z.FractionalSeconds,2);break;case"SSS":t=K(Z.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ee(q.Short);break;case"ZZZZZ":t=ee(q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ee(q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ee(q.Long);break;default:return null}return ne[e]=t,t}(e);p+=t?t(a,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),p}function Q(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function X(e,t,n,i,r){void 0===n&&(n="-");var o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));for(var a=String(e);a.length0||c>-n)&&(c+=n),e===Z.Hours)0===c&&-12===n&&(c=12);else if(e===Z.FractionalSeconds)return s=t,X(c,3).substr(0,s);var u=P(a,I.MinusSign);return X(c,t,u,i,r)}}function J(e,t,n,i){return void 0===n&&(n=E.Format),void 0===i&&(i=!1),function(o,a){return function(e,t,n,i,o,a){switch(n){case $.Months:return function(e,t,n){var i=Object(r.mb)(e),o=B([i[r.cb.MonthsFormat],i[r.cb.MonthsStandalone]],t);return B(o,n)}(t,o,i)[e.getMonth()];case $.Days:return function(e,t,n){var i=Object(r.mb)(e),o=B([i[r.cb.DaysFormat],i[r.cb.DaysStandalone]],t);return B(o,n)}(t,o,i)[e.getDay()];case $.DayPeriods:var s=e.getHours(),c=e.getMinutes();if(a){var u,l=function(e){var t=Object(r.mb)(e);return V(t),(t[r.cb.ExtraData][2]||[]).map((function(e){return"string"==typeof e?Y(e):[Y(e[0]),Y(e[1])]}))}(t),p=function(e,t,n){var i=Object(r.mb)(e);V(i);var o=B([i[r.cb.ExtraData][0],i[r.cb.ExtraData][1]],t)||[];return B(o,n)||[]}(t,o,i);if(l.forEach((function(e,t){if(Array.isArray(e)){var n=e[0],i=e[1],r=i.hours;s>=n.hours&&c>=n.minutes&&(s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case q.Short:return(r>=0?"+":"")+X(a,2,o)+X(Math.abs(r%60),2,o);case q.ShortGMT:return"GMT"+(r>=0?"+":"")+X(a,1,o);case q.Long:return"GMT"+(r>=0?"+":"")+X(a,2,o)+":"+X(Math.abs(r%60),2,o);case q.Extended:return 0===i?"Z":(r>=0?"+":"")+X(a,2,o)+":"+X(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'+e+'"')}}}function te(e,t){return void 0===t&&(t=!1),function(n,i){var r,o,a,s;if(t){var c=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,u=n.getDate();r=1+Math.floor((u+c)/7)}else{var l=(a=n.getFullYear(),s=new Date(a,0,1).getDay(),new Date(a,0,1+(s<=4?4:11)-s)),p=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))).getTime()-l.getTime();r=1+Math.round(p/6048e5)}return X(r,e,P(i,I.MinusSign))}}var ne={};function ie(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function re(e){return e instanceof Date&&!isNaN(e.valueOf())}var oe=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ae(e,t,n,i,r,o,a){void 0===a&&(a=!1);var s="",c=!1;if(isFinite(e)){var u=function(e){var t,n,i,r,o,a=Math.abs(e)+"",s=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(i=a.search(/e/i))>0?(n<0&&(n=i),n+=+a.slice(i+1),a=a.substring(0,i)):n<0&&(n=a.length),i=0;"0"===a.charAt(i);i++);if(i===(o=a.length))t=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=i,t=[],r=0;i<=o;i++,r++)t[r]=Number(a.charAt(i))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}(e);a&&(u=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(u));var l=t.minInt,p=t.minFrac,h=t.maxFrac;if(o){var d=o.match(oe);if(null===d)throw new Error(o+" is not a valid digit info");var f=d[1],g=d[3],b=d[5];null!=f&&(l=ce(f)),null!=g&&(p=ce(g)),null!=b?h=ce(b):null!=g&&p>h&&(h=p)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction ("+t+") is higher than the maximum ("+n+").");var i=e.digits,r=i.length-e.integerLen,o=Math.min(Math.max(t,r),n),a=o+e.integerLen,s=i[a];if(a>0){i.splice(Math.max(e.integerLen,a));for(var c=a;c=5)if(a-1<0){for(var l=0;l>a;l--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[a-1]++;for(;r=h?i.pop():p=!1),t>=10?1:0}),0);d&&(i.unshift(d),e.integerLen++)}(u,p,h);var m=u.digits,v=u.integerLen,y=u.exponent,w=[];for(c=m.every((function(e){return!e}));v0?w=m.splice(v,m.length):(w=m,m=[0]);var O=[];for(m.length>=t.lgSize&&O.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)O.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&O.unshift(m.join("")),s=O.join(P(n,i)),w.length&&(s+=P(n,r)+w.join("")),y&&(s+=P(n,I.Exponential)+"+"+y)}else s=P(n,I.Infinity);return e<0&&!c?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}function se(e,t){void 0===t&&(t="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],o=i[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=a[0],c=a[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u-1)return r;if(r=n.getPluralCategory(e,i),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}var pe=function(e){function t(t){var n=e.call(this)||this;return n.locale=t,n}return Object(i.c)(t,e),t.prototype.getPluralCategory=function(e,t){switch(R(t||this.locale)(e)){case x.Zero:return"zero";case x.One:return"one";case x.Two:return"two";case x.Few:return"few";case x.Many:return"many";default:return"other"}},t.\u0275fac=function(e){return new(e||t)(r.dc(r.u))},t.\u0275prov=r.Pb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(ue);function he(e,t,n){return Object(r.wb)(e,t,n)}function de(e,t){var n,r;t=encodeURIComponent(t);try{for(var o=Object(i.h)(e.split(";")),a=o.next();!a.done;a=o.next()){var s=a.value,c=s.indexOf("="),u=Object(i.e)(-1==c?[s,""]:[s.slice(0,c),s.slice(c+1)],2),l=u[1];if(u[0].trim()===t)return decodeURIComponent(l)}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var fe=function(){function e(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.sb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.yb)(e.item));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.s),r.Tb(r.t),r.Tb(r.l),r.Tb(r.E))},e.\u0275dir=r.Ob({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),ge=function(){function e(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return e.prototype.ngOnChanges=function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(r.x);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.j)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}},e.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.Q))},e.\u0275dir=r.Ob({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r.Bb]}),e}(),be=function(){function e(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),me=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(r.X)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation((function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new be(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new ve(e,o);n.push(a)}else null==r?t._viewContainer.remove(null===i?void 0:i):null!==i&&(o=t._viewContainer.get(i),t._viewContainer.move(o,r),a=new ve(e,o),n.push(a))}));for(var i=0;i=15&&(p=!1,c=!0);var C=v&&(u||p&&(null==O||O<12.11)),S=n||a&&s>=9;function z(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,_=function(e,t){var n=e.className,i=z(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function k(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function D(e,t){return k(e).appendChild(t)}function x(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?M=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(M=function(e){try{e.select()}catch(t){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=L(this.onTimeout,this)};function V(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=t)return i}}var q=[""];function Z(e){for(;q.length<=e;)q.push($(q)+" ");return q[e]}function $(e){return e[e.length-1]}function G(e,t){for(var n=[],i=0;i"\x80"&&(e.toUpperCase()!=e.toLowerCase()||K.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&J(e))||t.test(e):J(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&ne.test(e)}function re(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var r=(t+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+i}}var ae=null;function se(e,t,n){var i;ae=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:ae=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:ae=r)}return null!=i?i:ae}var ce=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,i=/[Lb1n]/,r=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var c="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u,l=a.length,p=[],h=0;h-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function fe(e,t){var n=he(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function ve(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function ye(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function we(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Oe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){ye(e),we(e)}function Se(e){return e.target||e.srcElement}function ze(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var Te,_e,ke=function(){if(a&&s<9)return!1;var e=x("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Te){var t=x("span","\u200b");D(e,x("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Te=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Te?x("span","\u200b"):x("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function xe(e){if(null!=_e)return _e;var t=D(e,document.createTextNode("A\u062eA")),n=T(t,0,1).getBoundingClientRect(),i=T(t,1,2).getBoundingClientRect();return k(e),!(!n||n.left==n.right)&&(_e=i.right-n.right<3)}var Ee,Ne=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var o=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(Ee){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(Ee){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Ee=x("div"))||(Ee.setAttribute("oncopy","return;"),"function"==typeof Ee.oncopy),Ae=null,Me={},Le={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Me[e]=t}function Fe(e){if("string"==typeof e&&Le.hasOwnProperty(e))e=Le[e];else if(e&&"string"==typeof e.name&&Le.hasOwnProperty(e.name)){var t=Le[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Fe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Fe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Re(e,t){t=Fe(t);var n=Me[t.name];if(!n)return Re(e,"text/plain");var i=n(e,t);if(Ve.hasOwnProperty(t.name)){var r=Ve[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}var Ve={};function Be(e,t){P(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Ue(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function He(e,t,n){return!e.startState||e.startState(t,n)}var We=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?et(n,qe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,qe(e,t.line).text.length)}function ct(e,t){for(var n=[],i=0;i=this.string.length},We.prototype.sol=function(){return this.pos==this.lineStart},We.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},We.prototype.next=function(){if(this.post},We.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},We.prototype.skipToEnd=function(){this.pos=this.string.length},We.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},We.prototype.backUp=function(e){this.pos-=e},We.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},We.prototype.current=function(){return this.string.slice(this.start,this.pos)},We.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},We.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},We.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ut=function(e,t){this.state=e,this.lookAhead=t},lt=function(e,t,n,i){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function pt(e,t,n,i){var r=[e.state.modeGen],o={};wt(e,t.text,e.doc.mode,n,(function(e,t){return r.push(e,t)}),o,i);for(var a=n.state,s=function(i){n.baseTokens=r;var s=e.state.overlays[i],c=1,u=0;n.state=!0,wt(e,t.text,s.mode,n,(function(e,t){for(var n=c;ue&&r.splice(c,1,e,r[c+1],i),c+=2,u=Math.min(e,i)}if(t)if(s.opaque)r.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;ne.options.maxHighlightLength&&Ye(e.doc.mode,i.state),o=pt(e,t,i);r&&(i.state=r),t.stateAfter=i.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return new lt(i,!0,t);var o=function(e,t,n){for(var i,r,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var c=qe(o,s-1),u=c.stateAfter;if(u&&(!n||s+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return s;var l=F(c.text,null,e.options.tabSize);(null==r||i>l)&&(r=s-1,i=l)}return r}(e,t,n),a=o>i.first&&qe(i,o-1).stateAfter,s=a?lt.fromSaved(i,a,o):new lt(i,He(i.mode),o);return i.iter(o,t,(function(n){ft(e,n.text,s);var i=s.line;n.stateAfter=i==t-1||i%5==0||i>=r.viewFrom&&it.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}lt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},lt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},lt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},lt.fromSaved=function(e,t,n){return t instanceof ut?new lt(e,Ye(e.mode,t.state),n,t.lookAhead):new lt(e,Ye(e.mode,t),n)},lt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ut(t,this.maxLookAhead):t};var mt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function vt(e,t,n,i){var r,o,a=e.doc,s=a.mode,c=qe(a,(t=st(a,t)).line),u=dt(e,t.line,n),l=new We(c.text,e.options.tabSize,u);for(i&&(o=[]);(i||l.pose.options.maxHighlightLength?(s=!1,a&&ft(e,t,i,p.pos),p.pos=t.length,c=null):c=yt(bt(n,p,i.state,h),o),h){var d=h[0].name;d&&(c="m-"+(c?d+" "+c:d))}if(!s||l!=c){for(;u=t:o.to>t)?null:o.to))}return i}(n,r,a),c=function(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft))&&(i||(i=[])).push(new St(a,null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var y=0;yt)&&(!n||jt(n,o.marker)<0)&&(n=o.marker)}return n}function Pt(e,t,n,i,r){var o=qe(e,t),a=Ct&&o.markedSpans;if(a)for(var s=0;s=0&&p<=0||l<=0&&p>=0)&&(l<=0&&(c.marker.inclusiveRight&&r.inclusiveLeft?tt(u.to,n)>=0:tt(u.to,n)>0)||l>=0&&(c.marker.inclusiveRight&&r.inclusiveLeft?tt(u.from,i)<=0:tt(u.from,i)<0)))return!0}}}function Ft(e){for(var t;t=At(e);)e=t.find(-1,!0).line;return e}function Rt(e,t){var n=qe(e,t),i=Ft(n);return n==i?t:Qe(i)}function Vt(e,t){if(t>e.lastLine())return t;var n,i=qe(e,t);if(!Bt(e,i))return t;for(;n=Mt(i);)i=n.find(1,!0).line;return Qe(i)+1}function Bt(e,t){var n=Ct&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var qt=function(e,t,n){this.text=e,xt(this,t),this.height=n?n(this):1};function Zt(e){e.parent=null,Dt(e)}qt.prototype.lineNo=function(){return Qe(this)},ve(qt);var $t={},Gt={};function Qt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Gt:$t;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Xt(e,t){var n=E("span",null,null,c?"padding-right: .1px":null),i={pre:E("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,a=void 0;i.pos=0,i.addToken=Jt,xe(e.display.measure)&&(a=ue(o,e.doc.direction))&&(i.addToken=en(i.addToken,a)),i.map=[],nn(o,i,ht(e,o,t!=e.display.externalMeasured&&Qe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=A(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=A(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(De(e.display.measure))),0==r?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=i.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return fe(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=A(i.pre.className,i.textClass||"")),i}function Kt(e){var t=x("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Jt(e,t,n,i,r,o,c){if(t){var u,l=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;ru&&p.from<=u);h++);if(p.to>=l)return e(n,i,r,o,a,s,c);e(n,i.slice(0,p.to-u),r,o,null,s,c),o=null,i=i.slice(p.to-u),u=p.to}}}function tn(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,s,c,u,l,p,h,d=r.length,f=0,g=1,b="",m=0;;){if(m==f){c=u=l=s="",h=null,p=null,m=1/0;for(var v=[],y=void 0,w=0;wf||C.collapsed&&O.to==f&&O.from==f)){if(null!=O.to&&O.to!=f&&m>O.to&&(m=O.to,u=""),C.className&&(c+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&O.from==f&&(l+=" "+C.startStyle),C.endStyle&&O.to==m&&(y||(y=[])).push(C.endStyle,O.to),C.title&&((h||(h={})).title=C.title),C.attributes)for(var S in C.attributes)(h||(h={}))[S]=C.attributes[S];C.collapsed&&(!p||jt(p.marker,C)<0)&&(p=O)}else O.from>f&&m>O.from&&(m=O.from)}if(y)for(var z=0;z=d)break;for(var _=Math.min(d,m);;){if(b){var k=f+b.length;if(!p){var D=k>_?b.slice(0,_-f):b;t.addToken(t,D,a?a+c:c,l,f+D.length==m?u:"",s,h)}if(k>=_){b=b.slice(_-f),f=_;break}f=k,l=""}b=r.slice(o,o=n[g++]),a=Qt(n[g++],t.cm.options)}}else for(var x=1;xn)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function En(e,t,n,i){return In(e,jn(e,t),n,i)}function Nn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((c.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,i){var r,o=Ln(t.map,n,i),c=o.node,u=o.start,l=o.end,p=o.collapse;if(3==c.nodeType){for(var h=0;h<4;h++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+l1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*i,bottom:t.bottom*i}}(e.display.measure,r))}else{var d;u>0&&(p=i="right"),r=e.options.lineWrapping&&(d=c.getClientRects()).length>1?d["right"==i?d.length-1:0]:c.getBoundingClientRect()}if(a&&s<9&&!u&&(!r||!r.left&&!r.right)){var f=c.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+ri(e.display),top:f.top,bottom:f.bottom}:Mn}for(var g=r.top-t.rect.top,b=r.bottom-t.rect.top,m=(g+b)/2,v=t.view.measure.heights,y=0;yt)&&(r=(o=c-s)-1,t>=c&&(a="right")),null!=r){if(i=e[u+2],s==c&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)i=e[2+(u-=3)],a="left";if("right"==n&&r==c-s)for(;u=0&&(n=e[r]).left==n.right;r--);return n}function Fn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=i.text.length?(c=i.text.length,u="before"):c<=0&&(c=0,u="after"),!s)return a("before"==u?c-1:c,"before"==u);function l(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=se(s,c,u),h=ae,d=l(c,p,"before"==u);return null!=h&&(d.other=l(c,h,"before"!=u)),d}function $n(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ri(e.display)*t.ch);var i=qe(e.doc,t.line),r=Ut(i)+Sn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Gn(e,t,n,i,r){var o=et(e,t,n);return o.xRel=r,i&&(o.outside=i),o}function Qn(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return Gn(i.first,0,null,-1,-1);var r=Xe(i,n),o=i.first+i.size-1;if(r>o)return Gn(i.first+i.size-1,qe(i,o).text.length,null,1,1);t<0&&(t=0);for(var a=qe(i,r);;){var s=ei(e,a,r,t,n),c=Lt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var u=c.find(1);if(u.line==r)return u;a=qe(i,r=u.line)}}function Xn(e,t,n,i){i-=Un(t);var r=t.text.length,o=oe((function(t){return In(e,n,t-1).bottom<=i}),r,0);return{begin:o,end:r=oe((function(t){return In(e,n,t).top>i}),o,r)}}function Kn(e,t,n,i){return n||(n=jn(e,t)),Xn(e,t,n,Hn(e,t,In(e,n,i),"line").top)}function Jn(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function ei(e,t,n,i,r){r-=Ut(t);var o=jn(e,t),a=Un(t),s=0,c=t.text.length,u=!0,l=ue(t,e.doc.direction);if(l){var p=(e.options.lineWrapping?ni:ti)(e,t,n,o,l,i,r);s=(u=1!=p.level)?p.from:p.to-1,c=u?p.to:p.from-1}var h,d,f=null,g=null,b=oe((function(t){var n=In(e,o,t);return n.top+=a,n.bottom+=a,!!Jn(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=t,g=n),!0)}),s,c),m=!1;if(g){var v=i-g.left=w.bottom?1:0}return Gn(n,b=re(t.text,b,1),d,m,i-h)}function ti(e,t,n,i,r,o,a){var s=oe((function(s){var c=r[s],u=1!=c.level;return Jn(Zn(e,et(n,u?c.to:c.from,u?"before":"after"),"line",t,i),o,a,!0)}),0,r.length-1),c=r[s];if(s>0){var u=1!=c.level,l=Zn(e,et(n,u?c.from:c.to,u?"after":"before"),"line",t,i);Jn(l,o,a,!0)&&l.top>a&&(c=r[s-1])}return c}function ni(e,t,n,i,r,o,a){var s=Xn(e,t,i,a),c=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var l=null,p=null,h=0;h=u||d.to<=c)){var f=In(e,i,1!=d.level?Math.min(u,d.to)-1:Math.max(c,d.from)).right,g=fg)&&(l=d,p=g)}}return l||(l=r[r.length-1]),l.fromu&&(l={from:l.from,to:u,level:l.level}),l}function ii(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==An){An=x("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)An.appendChild(document.createTextNode("x")),An.appendChild(x("br"));An.appendChild(document.createTextNode("x"))}D(e.measure,An);var n=An.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),k(e.measure),n||1}function ri(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=x("span","xxxxxxxxxx"),n=x("pre",[t],"CodeMirror-line-like");D(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function oi(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+r,i[s]=o.clientWidth}return{fixedPos:ai(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function ai(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function si(e){var t=ii(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/ri(e.display)-3);return function(r){if(Bt(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a0&&(c=qe(e.doc,u.line).text).length==u.ch){var l=F(c,c.length,e.options.tabSize)-c.length;u=et(u.line,Math.max(0,Math.round((o-Tn(e.display).left)/ri(e.display))-l))}return u}function li(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;it)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Ct&&Rt(e.doc,t)r.viewFrom?di(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)di(e);else if(t<=r.viewFrom){var o=fi(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):di(e)}else if(n>=r.viewTo){var a=fi(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):di(e)}else{var s=fi(e,t,t,-1),c=fi(e,n,n+i,1);s&&c?(r.view=r.view.slice(0,s.index).concat(on(e,s.lineN,c.lineN)).concat(r.view.slice(c.index)),r.viewTo+=i):di(e)}var u=r.externalMeasured;u&&(n=r.lineN&&t=i.viewTo)){var o=i.view[li(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==V(a,n)&&a.push(n)}}}function di(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function fi(e,t,n,i){var r,o=li(e,t),a=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,c=0;c0){if(o==a.length-1)return null;r=s+a[o].size-t,o++}else r=s-t;t+=r,n+=r}for(;Rt(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function gi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo||s.to().linet||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(t,n,"ltr")}(g,n||0,null==i?h:i,(function(e,t,r,p){var b="ltr"==r,m=d(e,b?"left":"right"),v=d(t-1,b?"right":"left"),y=null==n&&0==e,w=null==i&&t==h,O=0==p,C=!g||p==g.length-1;if(v.top-m.top<=3){var S=(u?y:w)&&O?s:(b?m:v).left;l(S,m.top,((u?w:y)&&C?c:(b?v:m).right)-S,m.bottom)}else{var z,T,_,k;b?(z=u&&y&&O?s:m.left,T=u?c:f(e,r,"before"),_=u?s:f(t,r,"after"),k=u&&w&&C?c:v.right):(z=u?f(e,r,"before"):s,T=!u&&y&&O?c:m.right,_=!u&&w&&C?s:v.left,k=u?f(t,r,"after"):c),l(z,m.top,T-z,m.bottom),m.bottom0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ci(e){e.state.focused||(e.display.input.focus(),zi(e))}function Si(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ti(e))}),100)}function zi(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(fe(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Oi(e))}function Ti(e,t){e.state.delayingBlurEvent||(e.state.focused&&(fe(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function _i(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i.005||h<-.005)&&(Ge(r.line,c),ki(r.line),r.rest))for(var d=0;de.display.sizerWidth){var f=Math.ceil(u/ri(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}}function ki(e){if(e.widgets)for(var t=0;t=a&&(o=Xe(t,Ut(qe(t,c))-e.wrapper.clientHeight),a=c)}return{from:o,to:Math.max(a,o+1)}}function xi(e,t){var n=e.display,i=ii(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Dn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+zn(n),c=t.bottom>s-i;if(t.topr+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=r&&(a.scrollTop=u)}var l=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=kn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+l-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Ei(e,t){null!=t&&(Ii(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ni(e){Ii(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ji(e,t,n){null==t&&null==n||Ii(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ii(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Ai(e,$n(e,t.from),$n(e,t.to),t.margin))}function Ai(e,t,n,i){var r=xi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});ji(e,r.scrollLeft,r.scrollTop)}function Mi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||cr(e,{top:t}),Li(e,t,!0),n&&cr(e),ir(e,100))}function Li(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Pi(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,pr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fi(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+zn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+_n(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ri=function(e,t,n){this.cm=n;var i=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,e(i),e(r),pe(i,"scroll",(function(){i.clientHeight&&t(i.scrollTop,"vertical")})),pe(r,"scroll",(function(){r.clientWidth&&t(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ri.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;return n?(this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0",this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+(e.viewHeight-(t?i:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),t?(this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+(e.viewWidth-e.barLeft-(n?i:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},Ri.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ri.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ri.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=v&&!d?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Ri.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)}))},Ri.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Vi=function(){};function Bi(e,t){t||(t=Fi(e));var n=e.display.barWidth,i=e.display.barHeight;Yi(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&_i(e),Yi(e,Fi(e)),n=e.display.barWidth,i=e.display.barHeight}function Yi(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Vi.prototype.update=function(){return{bottom:0,right:0}},Vi.prototype.setScrollLeft=function(){},Vi.prototype.setScrollTop=function(){},Vi.prototype.clear=function(){};var Ui={native:Ri,null:Vi};function Hi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ui[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Pi(e,t):Mi(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Wi=0;function qi(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wi},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Zi(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new or(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Gi(e){e.updatedDisplay=e.mustUpdate&&ar(e.cm,e.update)}function Qi(e){var t=e.cm,n=t.display;e.updatedDisplay&&_i(t),e.barMeasure=Fi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=En(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+_n(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-kn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var o=x("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Sn(e.display))+"px;\n height: "+(t.bottom-t.top+_n(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,i){var r;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Zn(e,t),c=n&&n!=t?Zn(e,n):s,u=xi(e,r={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-i,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+i}),l=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=u.scrollTop&&(Mi(e,u.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(a=!0)),null!=u.scrollLeft&&(Pi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return r}(t,st(i,e.scrollToPos.from),st(i,e.scrollToPos.to),e.scrollToPos.margin));var r=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(r)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,i=dt(e,t.highlightFrontier),r=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(i.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ye(t.mode,i.state):null,c=pt(e,o,i,!0);s&&(i.state=s),o.styles=c.styles;var u=o.styleClasses,l=c.classes;l?o.styleClasses=l:u&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||u!=l&&(!u||!l||u.bgClass!=l.bgClass||u.textClass!=l.textClass),h=0;!p&&hn)return ir(e,e.options.workDelay),!0})),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),r.length&&Ji(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==gi(e))return!1;hr(e)&&(di(e),t.dims=oi(e));var r=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),Ct&&(o=Rt(e.doc,o),a=Vt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=on(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=on(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,li(e,n)))),i.viewTo=n}(e,o,a),n.viewOffset=Ut(qe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=gi(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=function(e){if(e.hasFocus())return null;var t=j();if(!t||!N(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&N(e.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var i=e.display,r=e.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return c&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=i.view,l=i.viewFrom,p=0;p-1&&(d=!1),ln(e,h,l,n)),d&&(k(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Je(e.options,l)))),a=h.node.nextSibling}else{var f=mn(e,h,l,n);o.insertBefore(f,a)}l+=h.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=j()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&N(document.body,e.anchorNode)&&N(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(l),k(n.cursorDiv),k(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ir(e,400)),n.updateLineNumbers=null,!0}function sr(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=kn(e))i&&(t.visible=Di(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+zn(e.display)-Dn(e),n.top)}),t.visible=Di(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ar(e,t))break;_i(e);var r=Fi(e);bi(e),Bi(e,r),lr(e,r),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function cr(e,t){var n=new or(e,t);if(ar(e,n)){_i(e),sr(e,n);var i=Fi(e);bi(e),Bi(e,i),lr(e,i),n.finish()}}function ur(e){e.sizer.style.marginLeft=e.gutters.offsetWidth+"px"}function lr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+_n(e)+"px"}function pr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=ai(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;as.clientHeight;if(r&&s.scrollWidth>s.clientWidth||o&&u){if(o&&v&&c)e:for(var l=t.target,h=a.view;l!=s;l=l.parentNode)for(var d=0;d=0&&tt(e,i.to())<=0)return n}return-1};var Sr=function(e,t){this.anchor=e,this.head=t};function zr(e,t,n){var i=e&&e.options.selectionsMayTouch,r=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=V(t,r);for(var o=1;o0:c>=0){var u=ot(s.from(),a.from()),l=rt(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Sr(p?l:u,p?u:l))}}return new Cr(t,n)}function Tr(e,t){return new Cr([new Sr(e,t||e)],0)}function _r(e){return e.text?et(e.from.line+e.text.length-1,$(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function kr(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return _r(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=_r(t).ch-t.to.ch),et(n,i)}function Dr(e,t){for(var n=[],i=0;i1&&e.remove(s.line+1,f-1),e.insert(s.line+1,m)}cn(e,"change",e,t)}function Ar(e,t,n){!function e(i,r,o){if(i.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Rr(e.done),$(e.done)):e.done.length&&!$(e.done).ranges?$(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),$(e.done)):void 0}(r,r.lastOp==i)))a=$(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=_r(t):o.changes.push(Fr(e,t));else{var c=$(r.done);for(c&&c.ranges||Br(e.sel,r.done),o={changes:[Fr(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||fe(e,"historyAdded")}function Br(e,t){var n=$(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Yr(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),(function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ur(e){if(!e)return null;for(var t,n=0;n-1&&($(s)[p]=u[p],delete u[p])}}}return i}function qr(e,t,n,i){if(i){var r=e.anchor;if(n){var o=tt(t,r)<0;o!=tt(n,r)<0?(r=t,t=n):o!=tt(t,n)<0&&(t=n)}return new Sr(r,t)}return new Sr(n||t,t)}function Zr(e,t,n,i,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),Kr(e,new Cr([qr(e.sel.primary(),t,n,r)],0),i)}function $r(e,t,n){for(var i=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(r&&(fe(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!c.atomic)continue;if(n){var p=c.find(i<0?1:-1),h=void 0;if((i<0?l:u)&&(p=oo(e,p,-i,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(h=tt(p,n))&&(i<0?h<0:h>0))return io(e,p,t,i,r)}var d=c.find(i<0?-1:1);return(i<0?u:l)&&(d=oo(e,d,i,d.line==t.line?o:null)),d?io(e,d,t,i,r):null}}return t}function ro(e,t,n,i,r){var o=i||1;return io(e,t,n,o,r)||!r&&io(e,t,n,o,!0)||io(e,t,n,-o,r)||!r&&io(e,t,n,-o,!0)||(e.cantEdit=!0,et(e.first,0))}function oo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(i||qe(e,t.line)).text.length?t.line0)){var l=[c,1],p=tt(u.from,s.from),h=tt(u.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&l.push({from:u.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&l.push({from:s.to,to:u.to}),r.splice.apply(r,l),c+=l.length-3}}return r}(e,t.from,t.to);if(i)for(var r=i.length-1;r>=0;--r)uo(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else uo(e,t)}}function uo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Dr(e,t);Vr(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,_t(e,t));var i=[];Ar(e,(function(e,n){n||-1!=V(i,e.history)||(mo(e.history,t),i.push(e.history)),ho(e,t,null,_t(e,t))}))}}function lo(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var r,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,c="undo"==t?o.undone:o.done,u=0;u=0;--d){var f=h(d);if(f)return f.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new Cr(G(e.sel.ranges,(function(e){return new Sr(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){pi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=Dr(e,t)),e.cm?function(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,s=!1,c=o.line;e.options.lineWrapping||(c=Qe(Ft(qe(i,o.line))),i.iter(c,a.line+1,(function(e){if(e==r.maxLine)return s=!0,!0}))),i.sel.contains(t.from,t.to)>-1&&be(e),Ir(i,t,n,si(e)),e.options.lineWrapping||(i.iter(c,o.line+t.text.length,(function(e){var t=Ht(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;i--){var r=qe(e,i).stateAfter;if(r&&(!(r instanceof ut)||i+r.lookAhead1||!(this.children[0]instanceof yo))){var s=[];this.collapse(s),this.children=[new yo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=r.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=E("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Pt(e,t.line,t,n,o)||t.line!=n.line&&Pt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&Vr(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,u=e.cm;if(e.iter(c,n.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&Ft(e)==u.display.maxLine&&(s=!0),o.collapsed&&c!=t.line&&Ge(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new St(o,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Bt(e,t)&&Ge(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ot=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++So,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)pi(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var l=t.line;l<=n.line;l++)hi(u,l,"text");o.atomic&&to(u.doc),cn(u,"markerAdded",u,o)}return o}zo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&qi(e),me(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=l,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&pi(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&to(e.doc)),e&&cn(e,"markerCleared",e,this,i,r),t&&Zi(e),this.parent&&this.parent.clear()}},zo.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r=0;c--)co(this,i[c]);s?Xr(this,s):this.cm&&Ni(this.cm)})),undo:nr((function(){lo(this,"undo")})),redo:nr((function(){lo(this,"redo")})),undoSelection:nr((function(){lo(this,"undo",!0)})),redoSelection:nr((function(){lo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=c.to||null==c.from&&r!=e.line||null!=c.from&&r==t.line&&c.from>=t.ch||n&&!n(c.marker)||i.push(c.marker.parent||c.marker)}++r})),i},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var i=0;ie)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Jr(t.doc,Tr(n,n)),h)for(var d=0;d=0;t--)fo(e.doc,"",i[t].from,i[t].to,"+delete");Ni(e)}))}function Qo(e,t,n){var i=re(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Xo(e,t,n){var i=Qo(e,t.ch,n);return null==i?null:new et(t.line,i,n<0?"after":"before")}function Ko(e,t,n,i,r){if(e){"rtl"==t.doc.direction&&(r=-r);var o=ue(n,t.doc.direction);if(o){var a,s=r<0?$(o):o[0],c=r<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=jn(t,n),l=In(t,u,a=r<0?n.text.length-1:0).top;a=oe((function(e){return In(t,u,e).top==l}),r<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Qo(n,a,1))}else a=r<0?s.to:s.from;return new et(i,a,c)}}return new et(i,r<0?n.text.length:0,r<0?"before":"after")}Bo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Bo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bo.default=v?Bo.macDefault:Bo.pcDefault;var Jo={selectAll:ao,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Y)},killLine:function(e){return Go(e,(function(t){if(t.empty()){var n=qe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)r=new et(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),et(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=qe(e.doc,r.line-1).text;a&&(r=new et(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(r.line-1,a.length-1),r,"+transpose"))}n.push(new Sr(r,r))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ji(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i-1&&(tt((r=u.ranges[r]).from(),t)<0||t.xRel>0)&&(tt(r.to(),t)>0||t.xRel<0)?function(e,t,n,i){var r=e.display,o=!1,u=er(e,(function(t){c&&(r.scroller.draggable=!1),e.state.draggingText=!1,de(r.wrapper.ownerDocument,"mouseup",u),de(r.wrapper.ownerDocument,"mousemove",l),de(r.scroller,"dragstart",p),de(r.scroller,"drop",u),o||(ye(t),i.addNew||Zr(e.doc,n,null,null,i.extend),c&&!h||a&&9==s?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};c&&(r.scroller.draggable=!0),e.state.draggingText=u,u.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),pe(r.wrapper.ownerDocument,"mouseup",u),pe(r.wrapper.ownerDocument,"mousemove",l),pe(r.scroller,"dragstart",p),pe(r.scroller,"drop",u),Si(e),setTimeout((function(){return r.input.focus()}),20)}(e,i,t,o):function(e,t,n,i){var r=e.display,o=e.doc;ye(t);var a,s,c=o.sel,u=c.ranges;if(i.addNew&&!i.extend?(s=o.sel.contains(n),a=s>-1?u[s]:new Sr(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(a=new Sr(n,n)),n=ui(e,t,!0,!0),s=-1;else{var l=ga(e,n,i.unit);a=i.extend?qr(a,l.anchor,l.head,i.extend):l}i.addNew?-1==s?(s=u.length,Kr(o,zr(e,u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==i.unit&&!i.extend?(Kr(o,zr(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Gr(o,s,a,U):(s=0,Kr(o,new Cr([a],0),U),c=o.sel);var p=n,h=r.wrapper.getBoundingClientRect(),d=0;function f(t){e.state.selectingText=!1,d=1/0,t&&(ye(t),r.input.focus()),de(r.wrapper.ownerDocument,"mousemove",g),de(r.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=er(e,(function(t){0!==t.buttons&&ze(t)?function t(u){var l=++d,f=ui(e,u,!0,"rectangle"==i.unit);if(f)if(0!=tt(f,p)){e.curOp.focus=j(),function(t){if(0!=tt(p,t))if(p=t,"rectangle"==i.unit){for(var r=[],u=e.options.tabSize,l=F(qe(o,n.line).text,n.ch,u),h=F(qe(o,t.line).text,t.ch,u),d=Math.min(l,h),f=Math.max(l,h),g=Math.min(n.line,t.line),b=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=b;g++){var m=qe(o,g).text,v=W(m,d,u);d==f?r.push(new Sr(et(g,v),et(g,v))):m.length>v&&r.push(new Sr(et(g,v),et(g,W(m,f,u))))}r.length||r.push(new Sr(n,n)),Kr(o,zr(e,c.ranges.slice(0,s).concat(r),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,w=a,O=ga(e,t,i.unit),C=w.anchor;tt(O.anchor,C)>0?(y=O.head,C=ot(w.from(),O.anchor)):(y=O.anchor,C=rt(w.to(),O.head));var S=c.ranges.slice(0);S[s]=function(e,t){var n=t.anchor,i=t.head,r=qe(e.doc,n.line);if(0==tt(n,i)&&n.sticky==i.sticky)return t;var o=ue(r);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var c,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(i.line!=n.line)c=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var l=se(o,i.ch,i.sticky),p=l-a||(i.ch-n.ch)*(1==s.level?-1:1);c=l==u-1||l==u?p<0:p>0}var h=o[u+(c?-1:0)],d=c==(1==h.level),f=d?h.from:h.to,g=d?"after":"before";return n.ch==f&&n.sticky==g?t:new Sr(new et(n.line,f,g),i)}(e,new Sr(st(o,C),y)),Kr(o,zr(e,S,s),U)}}(f);var g=Di(r,o);(f.line>=g.to||f.lineh.bottom?20:0;b&&setTimeout(er(e,(function(){d==l&&(r.scroller.scrollTop+=b,t(u))})),50)}}(t):f(t)})),b=er(e,f);e.state.selectingText=b,pe(r.wrapper.ownerDocument,"mousemove",g),pe(r.wrapper.ownerDocument,"mouseup",b)}(e,i,t,o)}(t,i,o,e):Se(e)==n.scroller&&ye(e):2==r?(i&&Zr(t.doc,i),setTimeout((function(){return n.input.focus()}),20)):3==r&&(S?t.display.input.onContextMenu(e):Si(t)))}}function ga(e,t,n){if("char"==n)return new Sr(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Sr(et(t.line,0),st(e.doc,et(t.line+1,0)));var i=n(e,t);return new Sr(i.from,i.to)}function ba(e,t,n,i){var r,o;if(t.touches)r=t.touches[0].clientX,o=t.touches[0].clientY;else try{r=t.clientX,o=t.clientY}catch(t){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&ye(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!me(e,n))return Oe(t);o-=s.top-a.viewOffset;for(var c=0;c=r)return fe(e,n,e,Xe(e.doc,o),e.display.gutterSpecs[c].className,t),Oe(t)}}function ma(e,t){return ba(e,t,"gutterClick",!0)}function va(e,t){Cn(e.display,t)||function(e,t){return!!me(e,"gutterContextMenu")&&ba(e,t,"gutterContextMenu",!1)}(e,t)||ge(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function ya(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Vn(e)}da.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var wa={toString:function(){return"CodeMirror.Init"}},Oa={},Ca={};function Sa(e,t,n){if(!t!=!(n&&n!=wa)){var i=e.display.dragFunctions,r=t?pe:de;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function za(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),Wt(e)),ci(e),pi(e),Vn(e),setTimeout((function(){return Bi(e)}),100)}function Ta(e,t){var n=this;if(!(this instanceof Ta))return new Ta(e,t);this.options=t=t?P(t):{},P(Oa,t,!1);var i=t.value;"string"==typeof i?i=new Eo(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var r=new Ta.inputStyles[t.inputStyle](this),o=this.display=new br(e,i,r,t);for(var u in o.wrapper.CodeMirror=this,ya(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Hi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!m&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;pe(t.scroller,"mousedown",er(e,fa)),pe(t.scroller,"dblclick",a&&s<11?er(e,(function(t){if(!ge(e,t)){var n=ui(e,t);if(n&&!ma(e,t)&&!Cn(e.display,t)){ye(t);var i=e.findWordAt(n);Zr(e.doc,i.anchor,i.head)}}})):function(t){return ge(e,t)||ye(t)}),pe(t.scroller,"contextmenu",(function(t){return va(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||va(e,n)}));var n,i={end:0};function r(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(i=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,i=t.top-e.top;return n*n+i*i>400}pe(t.scroller,"touchstart",(function(r){if(!ge(e,r)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(r)&&!ma(e,r)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var i=t.activeTouch;if(i&&!Cn(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!i.prev||o(i,i.prev)?new Sr(s,s):!i.prev.prev||o(i,i.prev.prev)?e.findWordAt(s):new Sr(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ye(n)}r()})),pe(t.scroller,"touchcancel",r),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Mi(e,t.scroller.scrollTop),Pi(e,t.scroller.scrollLeft,!0),fe(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return Or(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return Or(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ge(e,t)||Ce(t)},over:function(t){ge(e,t)||(function(e,t){var n=ui(e,t);if(n){var i=document.createDocumentFragment();vi(e,n,i),e.display.dragCursor||(e.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),D(e.display.dragCursor,i)}}(e,t),Ce(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-No<100))Ce(t);else if(!ge(e,t)&&!Cn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=x("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:er(e,jo),leave:function(t){ge(e,t)||Io(e)}};var c=t.input.getField();pe(c,"keyup",(function(t){return ua.call(e,t)})),pe(c,"keydown",er(e,ca)),pe(c,"keypress",er(e,la)),pe(c,"focus",(function(t){return zi(e,t)})),pe(c,"blur",(function(t){return Ti(e,t)}))}(this),function(){var e;Mo||(pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ao(Lo)}),100))})),pe(window,"blur",(function(){return Ao(Ti)})),Mo=!0)}(),qi(this),this.curOp.forceUpdate=!0,Mr(this,i),t.autofocus&&!m||this.hasFocus()?setTimeout(L(zi,this),20):Ti(this),Ca)Ca.hasOwnProperty(u)&&Ca[u](this,t[u],wa);hr(this),t.finishInit&&t.finishInit(this);for(var l=0;l<_a.length;++l)_a[l](this);Zi(this),c&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ta.defaults=Oa,Ta.optionHandlers=Ca;var _a=[];function ka(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=dt(e,t).state:n="prev");var a=e.options.tabSize,s=qe(o,t),c=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,l=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(r,s.text.slice(l.length),s.text))==B||u>150)){if(!i)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?F(qe(o,t-1).text,null,a):0:"add"==n?u=c+e.options.indentUnit:"subtract"==n?u=c-e.options.indentUnit:"number"==typeof n&&(u=c+n),u=Math.max(0,u);var p="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/a);d;--d)h+=a,p+="\t";if(ha,c=Ne(t),u=null;if(s&&i.ranges.length>1)if(Da&&Da.text.join("\n")==t){if(i.ranges.length%Da.text.length==0){u=[];for(var l=0;l=0;h--){var d=i.ranges[h],f=d.from(),g=d.to();d.empty()&&(n&&n>0?f=et(f.line,f.ch-n):e.state.overwrite&&!s?g=et(g.line,Math.min(qe(o,g.line).text.length,g.ch+$(c).length)):s&&Da&&Da.lineWise&&Da.text.join("\n")==t&&(f=g=et(f.line,0)));var b={from:f,to:g,text:u?u[h%u.length]:c,origin:r||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};co(e.doc,b),cn(e,"inputRead",e,b)}t&&!s&&ja(e,t),Ni(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Na(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ji(t,(function(){return Ea(t,n,0,null,"paste")})),!0}function ja(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=ka(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(qe(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=ka(e,r.head.line,"smart"));a&&cn(e,"electricInput",e,r.head.line)}}}function Ia(e){for(var t=[],n=[],i=0;i=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&h>=l.begin))return new et(n.line,h,p?"before":"after")}var d=function(e,t,i){for(var o=function(e,t){return t?new et(n.line,c(e,1),"before"):new et(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?i.begin:c(i.end,-1);if(a.from<=u&&u0?l.end:c(l.begin,-1);return null==g||i>0&&g==t.text.length||!(f=d(i>0?0:r.length-1,i,u(g)))?null:f}(e.cm,s,t,n):Xo(s,t,n))){if(i||(a=t.line+c)=e.first+e.size||(t=new et(a,t.ch,t.sticky),!(s=qe(e,a))))return!1;t=Ko(r,e.cm,s,t.line,c)}else t=o;return!0}if("char"==i)u();else if("column"==i)u(!0);else if("word"==i||"group"==i)for(var l=null,p="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||u(!d);d=!1){var f=s.text.charAt(t.ch)||"\n",g=ee(f,h)?"w":p&&"\n"==f?"n":!p||/\s/.test(f)?null:"p";if(!p||d||g||(g="s"),l&&l!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(l=g),n>0&&!u(!d))break}var b=ro(e,t,o,a,!0);return nt(o,b)&&(b.hitSide=!0),b}function Pa(e,t,n,i){var r,o,a=e.doc,s=t.left;if("page"==i){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(c-.5*ii(e.display),3);r=(n>0?t.bottom:t.top)+n*u}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(;(o=Qn(e,s,r)).outside;){if(n<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*n}return o}var Fa=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ra(e,t){var n=Nn(e,t.line);if(!n||n.hidden)return null;var i=qe(e.doc,t.line),r=xn(n,i,t.line),o=ue(i,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Ln(r.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Va(e,t){return t&&(e.bad=!0),e}function Ba(e,t,n){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[n]))return Va(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var r=0;r=t.display.viewTo||o.line=t.display.viewFrom&&Ra(t,r)||{node:c[0].measure.map[2],offset:0},l=o.linei.firstLine()&&(a=et(a.line-1,qe(i.doc,a.line-1).length)),s.ch==qe(i.doc,s.line).text.length&&s.liner.viewTo-1)return!1;a.line==r.viewFrom||0==(e=li(i,a.line))?(t=Qe(r.view[0].line),n=r.view[0].node):(t=Qe(r.view[e].line),n=r.view[e-1].node.nextSibling);var c,u,l=li(i,s.line);if(l==r.view.length-1?(c=r.viewTo-1,u=r.lineDiv.lastChild):(c=Qe(r.view[l+1].line)-1,u=r.view[l+1].node.previousSibling),!n)return!1;for(var p=i.doc.splitLines(function(e,t,n,i,r){var o="",a=!1,s=e.doc.lineSeparator(),c=!1;function u(){a&&(o+=s,c&&(o+=s),a=c=!1)}function l(e){e&&(u(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void l(n);var o,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(et(i,0),et(r+1,0),(b=+h,function(e){return e.id==b}));return void(d.length&&(o=d[0].find(0))&&l(Ze(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;f&&u();for(var g=0;g1&&h.length>1;)if($(p)==$(h))p.pop(),h.pop(),c--;else{if(p[0]!=h[0])break;p.shift(),h.shift(),t++}for(var d=0,f=0,g=p[0],b=h[0],m=Math.min(g.length,b.length);da.ch&&v.charCodeAt(v.length-f-1)==y.charCodeAt(y.length-f-1);)d--,f++;p[p.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var O=et(t,d),C=et(c,h.length?$(h).length-f:0);return p.length>1||p[0]||tt(O,C)?(fo(i.doc,p,O,C,"+input"),!0):void 0},Fa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fa.prototype.reset=function(){this.forceCompositionEnd()},Fa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fa.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Fa.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ji(this.cm,(function(){return pi(e.cm)}))},Fa.prototype.setUneditable=function(e){e.contentEditable="false"},Fa.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||er(this.cm,Ea)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Fa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Fa.prototype.onContextMenu=function(){},Fa.prototype.resetPosition=function(){},Fa.prototype.needsContentAttribute=!0;var Ua=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};Ua.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var r=this.textarea;function o(e){if(!ge(i,e)){if(i.somethingSelected())xa({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Ia(i);xa({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Y):(n.prevInput="",r.value=t.text.join("\n"),M(r))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(r.style.width="0px"),pe(r,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(r,"paste",(function(e){ge(i,e)||Na(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),pe(r,"cut",o),pe(r,"copy",o),pe(e.scroller,"paste",(function(t){if(!Cn(e,t)&&!ge(i,t)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,r.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){Cn(e,t)||ye(t)})),pe(r,"compositionstart",(function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(r,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ua.prototype.createField=function(e){this.wrapper=Ma(),this.textarea=this.wrapper.firstChild},Ua.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=mi(e);if(e.options.moveInputWithCursor){var r=Zn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},Ua.prototype.showSelection=function(e){var t=this.cm.display;D(t.cursorDiv,e.cursors),D(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ua.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&M(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ua.prototype.getField=function(){return this.textarea},Ua.prototype.supportsTouch=function(){return!1},Ua.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||j()!=this.textarea))try{this.textarea.focus()}catch(Ee){}},Ua.prototype.blur=function(){this.textarea.blur()},Ua.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ua.prototype.receivedFocus=function(){this.slowPoll()},Ua.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ua.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ua.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===r||v&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var c=0,u=Math.min(i.length,r.length);c1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ua.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ua.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ua.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ui(n,e),u=i.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&er(n,Kr)(n.doc,Tr(o),Y);var l,h=r.style.cssText,d=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(l=window.scrollY),i.input.focus(),c&&window.scrollTo(null,l),i.input.reset(),n.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=m,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&s>=9&&b(),S){Ce(e);var g=function(){de(window,"mouseup",g),setTimeout(m,20)};pe(window,"mouseup",g)}else setTimeout(m,50)}function b(){if(null!=r.selectionStart){var e=n.somethingSelected(),o="\u200b"+(e?r.value:"");r.value="\u21da",r.value=o,t.prevInput=e?"":"\u200b",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,r.style.cssText=h,a&&s<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=r.selectionStart)){(!a||a&&s<9)&&b();var e=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"\u200b"==t.prevInput?er(n,ao)(n):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},Ua.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ua.prototype.setUneditable=function(){},Ua.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,i,r,o){e.defaults[n]=i,r&&(t[n]=o?function(e,t,n){n!=wa&&r(e,t,n)}:r)}e.defineOption=n,e.Init=wa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Er(e)}),!0),n("indentUnit",2,Er,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Nr(e),Vn(e),pi(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter((function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(et(i,o))}i++}));for(var r=n.length-1;r>=0;r--)fo(e.doc,t,n[r],et(n[r].line,n[r].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=wa&&e.refresh()})),n("specialCharPlaceholder",Kt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){ya(e),gr(e)}),!0),n("keyMap","default",(function(e,t,n){var i=$o(t),r=n!=wa&&$o(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,za,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=dr(t,e.options.lineNumbers),gr(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ai(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Bi(e)}),!0),n("scrollbarStyle","native",(function(e){Hi(e),Bi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=dr(e.options.gutters,t),gr(e)}),!0),n("firstLineNumber",1,gr,!0),n("lineNumberFormatter",(function(e){return e}),gr,!0),n("showCursorWhenSelecting",!1,bi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Ti(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){e.display.input.screenReaderLabelChanged(t=""===t?null:t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Sa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,bi,!0),n("singleCursorHeightPerLine",!0,bi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Nr,!0),n("addModeClass",!1,Nr,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Nr,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ta),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var i=this.options,r=i[e];i[e]==n&&"mode"!=e||(i[e]=n,t.hasOwnProperty(e)&&er(this,t[e])(this,n,r),fe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"]($o(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(ka(this,r.head.line,e,!0),n=r.head.line,i==this.doc.sel.primIndex&&Ni(this));else{var o=r.from(),a=r.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var c=s;c0&&Gr(this.doc,i,new Sr(o,u[i].to()),Y)}}})),getTokenAt:function(e,t){return vt(this,e,t)},getLineTokens:function(e,t){return vt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=ht(this,qe(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),i=qe(this.doc,e)}else i=e;return Hn(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-Ut(i):0)},defaultTextHeight:function(){return ii(this.display)},defaultCharWidth:function(){return ri(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o,a=this.display,s=(e=Zn(this,st(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==i)s=e.top;else if("above"==i||"near"==i){var u=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(s=e.bottom),c+t.offsetWidth>l&&(c=l-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==r?(c=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?c=0:"middle"==r&&(c=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(null!=(o=xi(this,{left:c,top:s,right:c+t.offsetWidth,bottom:s+t.offsetHeight})).scrollTop&&Mi(this,o.scrollTop),null!=o.scrollLeft&&Pi(this,o.scrollLeft))},triggerOnKeyDown:tr(ca),triggerOnKeyPress:tr(la),triggerOnKeyUp:ua,triggerOnMouseDown:tr(fa),execCommand:function(e){if(Jo.hasOwnProperty(e))return Jo[e].call(null,this)},triggerElectric:tr((function(e){ja(this,e)})),findPosH:function(e,t,n,i){var r=1;t<0&&(r=-1,t=-t);for(var o=st(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;i.5||this.options.lineWrapping)&&ci(this),fe(this,"refresh",this)})),swapDoc:tr((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Mr(this,e),Vn(this),this.display.input.reset(),ji(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ve(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}(Ta);var Ha="iter insert remove copy getEditor constructor".split(" ");for(var Wa in Eo.prototype)Eo.prototype.hasOwnProperty(Wa)&&V(Ha,Wa)<0&&(Ta.prototype[Wa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Eo.prototype[Wa]));return ve(Eo),Ta.inputStyles={textarea:Ua,contenteditable:Fa},Ta.defineMode=function(e){Ta.defaults.mode||"null"==e||(Ta.defaults.mode=e),Pe.apply(this,arguments)},Ta.defineMIME=function(e,t){Le[e]=t},Ta.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ta.defineMIME("text/plain","null"),Ta.defineExtension=function(e,t){Ta.prototype[e]=t},Ta.defineDocExtension=function(e,t){Eo.prototype[e]=t},Ta.fromTextArea=function(e,t){if((t=t?P(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=j();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=s.getValue()}var r;if(e.form&&(pe(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(Ee){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var s=Ta((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=pe,e.wheelEventPixels=wr,e.Doc=Eo,e.splitLines=Ne,e.countColumn=F,e.findColumn=W,e.isWordChar=J,e.Pass=B,e.signal=fe,e.Line=qt,e.changeEnd=_r,e.scrollbarModel=Ui,e.Pos=et,e.cmpPos=tt,e.modes=Me,e.mimeModes=Le,e.resolveMode=Fe,e.getMode=Re,e.modeExtensions=Ve,e.extendMode=Be,e.copyState=Ye,e.startState=He,e.innerMode=Ue,e.commands=Jo,e.keyMap=Bo,e.keyName=Zo,e.isModifierKey=Wo,e.lookupKey=Ho,e.normalizeKeyMap=Uo,e.StringStream=We,e.SharedTextMarker=_o,e.TextMarker=zo,e.LineWidget=Oo,e.e_preventDefault=ye,e.e_stopPropagation=we,e.e_stop=Ce,e.addClass=I,e.contains=N,e.rmClass=_,e.keyNames=Po}(Ta),Ta.version="5.54.0",Ta}()},VsQa:function(e,t,n){"use strict";e.exports=function(e){return e!=e}},Vuqn:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var i=n("rWdj"),r=n("kBjl"),o=n("dWS+"),a=n("/jXB"),s=n("dQau"),c=n("4suF"),u=n("axIb");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n){return'Directive "@'.concat(e,'" argument "').concat(t,'" of type "').concat(n,'" is required, but it was not provided.')}function d(e){return function(e){for(var t=1;ti+t.offsetHeight)&&(t.scrollTop=r)},e.prototype.trackByIndex=function(e,t){return e},Object.defineProperty(e.prototype,"emptyList",{get:function(){return!(this.isLoading||this.minCharsEntered&&!this.isLoading&&!this.filteredList.length||this.filteredList.length)},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(y))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngui-auto-complete"]],viewQuery:function(e,t){var n;1&e&&(i.Sc(c,!0),i.Sc(u,!0)),2&e&&(i.zc(n=i.ic())&&(t.autoCompleteInput=n.first),i.zc(n=i.ic())&&(t.autoCompleteContainer=n.first))},inputs:{autocomplete:"autocomplete",minChars:["min-chars","minChars"],acceptUserInput:["accept-user-input","acceptUserInput"],loadingText:["loading-text","loadingText"],loadingTemplate:["loading-template","loadingTemplate"],showInputTag:["show-input-tag","showInputTag"],showDropdownOnInit:["show-dropdown-on-init","showDropdownOnInit"],tabToSelect:["tab-to-select","tabToSelect"],matchFormatted:["match-formatted","matchFormatted"],autoSelectFirstItem:["auto-select-first-item","autoSelectFirstItem"],selectOnBlur:["select-on-blur","selectOnBlur"],reFocusAfterSelect:["re-focus-after-select","reFocusAfterSelect"],headerItemTemplate:["header-item-template","headerItemTemplate"],ignoreAccents:["ignore-accents","ignoreAccents"],listFormatter:["list-formatter","listFormatter"],source:"source",pathToData:["path-to-data","pathToData"],placeholder:"placeholder",blankOptionText:["blank-option-text","blankOptionText"],noMatchFoundText:["no-match-found-text","noMatchFoundText"],maxNumList:["max-num-list","maxNumList"]},outputs:{valueSelected:"valueSelected",customSelected:"customSelected",textEntered:"textEntered"},decls:11,vars:2,consts:[[1,"ngui-auto-complete"],["autoCompleteContainer",""],["class","keyword",3,"placeholder","ngModel","focus","blur","keydown","input","ngModelChange",4,"ngIf"],[3,"empty",4,"ngIf"],[1,"keyword",3,"placeholder","ngModel","focus","blur","keydown","input","ngModelChange"],["autoCompleteInput",""],["class","loading",3,"innerHTML",4,"ngIf"],["class","loading",4,"ngIf"],["class","no-match-found",3,"mousedown",4,"ngIf"],["class","header-item",3,"innerHTML",4,"ngIf"],["class","blank-item",3,"mousedown",4,"ngIf"],["class","item",3,"ngClass","innerHtml","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[1,"loading",3,"innerHTML"],[1,"loading"],[1,"no-match-found",3,"mousedown"],[1,"header-item",3,"innerHTML"],[1,"blank-item",3,"mousedown"],[1,"item",3,"ngClass","innerHtml","mousedown"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0,1),i.Nc(3,"\n "),i.Nc(4,"\n "),i.Lc(5,l,2,3,"input",2),i.Nc(6,"\n\n "),i.Nc(7,"\n "),i.Lc(8,v,14,9,"ul",3),i.Nc(9,"\n\n "),i.Yb(),i.Nc(10,"\n ")),2&e&&(i.Db(5),i.sc("ngIf",t.showInputTag),i.Db(3),i.sc("ngIf",t.dropdownVisible))},directives:[s.t,a.e,a.o,a.r,s.s,s.q],styles:["\n @keyframes slideDown {\n 0% {\n transform: translateY(-10px);\n }\n 100% {\n transform: translateY(0px);\n }\n }\n\n .ngui-auto-complete {\n background-color: transparent;\n }\n\n .ngui-auto-complete > input {\n outline: none;\n border: 0;\n padding: 2px;\n box-sizing: border-box;\n background-clip: content-box;\n }\n\n .ngui-auto-complete > ul {\n background-color: #fff;\n margin: 0;\n width: 100%;\n overflow-y: auto;\n list-style-type: none;\n padding: 0;\n border: 1px solid #ccc;\n box-sizing: border-box;\n animation: slideDown 0.1s;\n }\n\n .ngui-auto-complete > ul.empty {\n display: none;\n }\n\n .ngui-auto-complete > ul li {\n padding: 2px 5px;\n border-bottom: 1px solid #eee;\n }\n\n .ngui-auto-complete > ul li.selected {\n background-color: #ccc;\n }\n\n .ngui-auto-complete > ul li:last-child {\n border-bottom: none;\n }\n\n .ngui-auto-complete > ul li:not(.header-item):hover {\n background-color: #ccc;\n }"],encapsulation:2}),e}(),O=function(){function e(e,t,n){var r=this;this.resolver=e,this.viewContainerRef=t,this.parentForm=n,this.autocomplete=!1,this.acceptUserInput=!0,this.loadingTemplate=null,this.loadingText="Loading",this.tabToSelect=!0,this.selectOnBlur=!1,this.matchFormatted=!1,this.autoSelectFirstItem=!1,this.openOnFocus=!0,this.closeOnFocusOut=!0,this.reFocusAfterSelect=!0,this.headerItemTemplate=null,this.ignoreAccents=!0,this.zIndex="1",this.isRtl=!1,this.ngModelChange=new i.n,this.valueChanged=new i.n,this.customSelected=new i.n,this.showAutoCompleteDropdown=function(e){if(!r.dropdownJustHidden){r.hideAutoCompleteDropdown(),r.scheduledBlurHandler=null;var t=r.resolver.resolveComponentFactory(w);r.componentRef=r.viewContainerRef.createComponent(t);var n=r.componentRef.instance;n.keyword=r.inputEl.value,n.showInputTag=!1,n.pathToData=r.pathToData,n.minChars=r.minChars,n.source=r.source,n.placeholder=r.autoCompletePlaceholder,n.acceptUserInput=r.acceptUserInput,n.maxNumList=parseInt(r.maxNumList,10),n.loadingText=r.loadingText,n.loadingTemplate=r.loadingTemplate,n.listFormatter=r.listFormatter,n.blankOptionText=r.blankOptionText,n.noMatchFoundText=r.noMatchFoundText,n.tabToSelect=r.tabToSelect,n.selectOnBlur=r.selectOnBlur,n.matchFormatted=r.matchFormatted,n.autoSelectFirstItem=r.autoSelectFirstItem,n.headerItemTemplate=r.headerItemTemplate,n.ignoreAccents=r.ignoreAccents,n.valueSelected.subscribe(r.selectNewValue),n.textEntered.subscribe(r.enterNewText),n.customSelected.subscribe(r.selectCustomValue),r.acDropdownEl=r.componentRef.location.nativeElement,r.acDropdownEl.style.display="none",r.inputEl.parentElement.insertBefore(r.acDropdownEl,r.inputEl.nextSibling),r.revertValue=void 0!==r.ngModel?r.ngModel:r.inputEl.value,setTimeout((function(){n.reloadList(r.inputEl.value),r.styleAutoCompleteDropdown(),n.dropdownVisible=!0}))}},this.hideAutoCompleteDropdown=function(e){if(r.componentRef){var t=void 0,n=void 0!==r.revertValue;r.inputEl&&n&&!1===r.acceptUserInput&&(t=r.componentRef.instance.findItemFromSelectValue(r.inputEl.value)),r.componentRef.destroy(),r.componentRef=void 0,r.inputEl&&n&&!1===r.acceptUserInput&&null===t?r.selectNewValue(r.revertValue):r.inputEl&&!0===r.acceptUserInput&&void 0===t&&e&&e.target.value&&r.enterNewText(e.target.value)}r.dropdownJustHidden=!0,setTimeout((function(){return r.dropdownJustHidden=!1}),100)},this.styleAutoCompleteDropdown=function(){if(r.componentRef){r.el.getBoundingClientRect();var e=r.inputEl.getBoundingClientRect(),t=e.bottom+100>window.innerHeight,n=r.isRtl?"right":"left";r.acDropdownEl.style.width=e.width+"px",r.acDropdownEl.style.position="absolute",r.acDropdownEl.style.zIndex=r.zIndex,r.acDropdownEl.style[n]="0",r.acDropdownEl.style.display="inline-block",t?r.acDropdownEl.style.bottom=e.height+"px":r.acDropdownEl.style.top=e.height+"px"}},this.selectNewValue=function(e){e&&"object"==typeof e&&(e=r.setToStringFunction(e)),r.renderValue(e);var t=e;r.selectValueOf&&e[r.selectValueOf]&&(t=e[r.selectValueOf]),(r.parentForm&&r.formControlName||r.extFormControl)&&t&&r.formControl.patchValue(t),t!==r.ngModel&&r.ngModelChange.emit(t),r.valueChanged.emit(t),r.hideAutoCompleteDropdown(),setTimeout((function(){return r.reFocusAfterSelect&&r.inputEl.focus(),r.inputEl}))},this.selectCustomValue=function(e){r.customSelected.emit(e),r.hideAutoCompleteDropdown(),setTimeout((function(){return r.reFocusAfterSelect&&r.inputEl.focus(),r.inputEl}))},this.enterNewText=function(e){r.renderValue(e),r.ngModelChange.emit(e),r.valueChanged.emit(e),r.hideAutoCompleteDropdown()},this.keydownEventHandler=function(e){r.componentRef&&r.componentRef.instance.inputElKeyHandler(e)},this.inputEventHandler=function(e){if(r.componentRef){var t=r.componentRef.instance;t.dropdownVisible=!0,t.keyword=e.target.value,t.reloadListInDelay(e)}else r.showAutoCompleteDropdown()},this.el=this.viewContainerRef.element.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.documentClickListener=function(t){e.scheduledBlurHandler&&(e.scheduledBlurHandler(),e.scheduledBlurHandler=null)},document.addEventListener("click",this.documentClickListener),this.wrapperEl=document.createElement("div"),this.wrapperEl.className="ngui-auto-complete-wrapper",this.wrapperEl.style.position="relative",this.el.parentElement.insertBefore(this.wrapperEl,this.el.nextSibling),this.wrapperEl.appendChild(this.el),this.parentForm&&this.formControlName?this.parentForm.form?this.formControl=this.parentForm.form.get(this.formControlName):this.parentForm instanceof a.i&&(this.formControl=this.parentForm.control.controls[this.formControlName]):this.extFormControl&&(this.formControl=this.extFormControl),this.ngModel?this.selectNewValue(this.ngModel):this.formControl&&this.formControl.value&&this.selectNewValue(this.formControl.value)},e.prototype.ngAfterViewInit=function(){var e=this;this.inputEl="INPUT"===this.el.tagName?this.el:this.el.querySelector("input"),this.openOnFocus&&this.inputEl.addEventListener("focus",(function(t){return e.showAutoCompleteDropdown(t)})),this.closeOnFocusOut&&this.inputEl.addEventListener("focusout",(function(t){return e.hideAutoCompleteDropdown(t)})),this.autocomplete||this.inputEl.setAttribute("autocomplete","off"),this.inputEl.addEventListener("blur",(function(t){e.scheduledBlurHandler=function(){return e.blurHandler(t)}})),this.inputEl.addEventListener("keydown",(function(t){return e.keydownEventHandler(t)})),this.inputEl.addEventListener("input",(function(t){return e.inputEventHandler(t)}))},e.prototype.ngOnDestroy=function(){this.componentRef&&(this.componentRef.instance.valueSelected.unsubscribe(),this.componentRef.instance.textEntered.unsubscribe()),this.documentClickListener&&document.removeEventListener("click",this.documentClickListener)},e.prototype.ngOnChanges=function(e){e.ngModel&&(this.ngModel=this.setToStringFunction(e.ngModel.currentValue),this.renderValue(this.ngModel))},e.prototype.blurHandler=function(e){if(this.componentRef){var t=this.componentRef.instance;this.selectOnBlur&&t.selectOne(t.filteredList[t.itemIndex]),this.closeOnFocusOut&&this.hideAutoCompleteDropdown(e)}},e.prototype.setToStringFunction=function(e){if(e&&"object"==typeof e){var t;if("string"==typeof this.valueFormatter){var n=this.valueFormatter.match(/[a-zA-Z0-9_\$]+/g),i=this.valueFormatter;n&&"string"!=typeof e&&n.forEach((function(t){i=i.replace(t,e[t])})),t=i}else t="function"==typeof this.valueFormatter?this.valueFormatter(e):this.displayPropertyName?e[this.displayPropertyName]:"string"==typeof this.listFormatter&&this.listFormatter.match(/^\w+$/)?e[this.listFormatter]:e.value;e.toString=function(){return t}}return e},e.prototype.renderValue=function(e){this.inputEl&&(this.inputEl.value=""+e)},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.j),i.Tb(i.Q),i.Tb(a.d,13))},e.\u0275dir=i.Ob({type:e,selectors:[["","auto-complete",""],["","ngui-auto-complete",""]],inputs:{autocomplete:"autocomplete",acceptUserInput:["accept-user-input","acceptUserInput"],loadingTemplate:["loading-template","loadingTemplate"],loadingText:["loading-text","loadingText"],tabToSelect:["tab-to-select","tabToSelect"],selectOnBlur:["select-on-blur","selectOnBlur"],matchFormatted:["match-formatted","matchFormatted"],autoSelectFirstItem:["auto-select-first-item","autoSelectFirstItem"],openOnFocus:["open-on-focus","openOnFocus"],closeOnFocusOut:["close-on-focusout","closeOnFocusOut"],reFocusAfterSelect:["re-focus-after-select","reFocusAfterSelect"],headerItemTemplate:["header-item-template","headerItemTemplate"],ignoreAccents:["ignore-accents","ignoreAccents"],zIndex:["z-index","zIndex"],isRtl:["is-rtl","isRtl"],ngModel:"ngModel",autoCompletePlaceholder:["auto-complete-placeholder","autoCompletePlaceholder"],source:"source",pathToData:["path-to-data","pathToData"],minChars:["min-chars","minChars"],displayPropertyName:["display-property-name","displayPropertyName"],maxNumList:["max-num-list","maxNumList"],selectValueOf:["select-value-of","selectValueOf"],listFormatter:["list-formatter","listFormatter"],blankOptionText:["blank-option-text","blankOptionText"],noMatchFoundText:["no-match-found-text","noMatchFoundText"],valueFormatter:["value-formatter","valueFormatter"],formControlName:"formControlName",extFormControl:["formControl","extFormControl"]},outputs:{ngModelChange:"ngModelChange",valueChanged:"valueChanged",customSelected:"customSelected"},features:[i.Bb]}),e}(),C=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[s.c,a.j]]}),e}()},WXJZ:function(e,t,n){"use strict";function i(e,t,n){return e.reduce((function(e,i){return e[t(i)]=n(i),e}),Object.create(null))}n.d(t,"a",(function(){return i}))},Wbsq:function(e,t,n){"use strict";var i=n("86bp"),r=n("Zq5j"),o=n("H6OF");e.exports=function(e){var t,a=i(arguments[1]);return a.normalizer||0!==(t=a.length=r(a.length,e.length,a.async))&&(a.primitive?!1===t?a.normalizer=n("xeyX"):t>1&&(a.normalizer=n("YTm4")(t)):a.normalizer=!1===t?n("zdgv")():1===t?n("Q5MM")():n("ftEH")(t)),a.async&&n("SbUo"),a.promise&&n("96uS"),a.dispose&&n("Rk3w"),a.maxAge&&n("qhZs"),a.max&&n("0dpv"),a.refCounter&&n("8j7D"),o(e,a)}},Wlyd:function(e,t,n){"use strict";var i=Array.prototype.forEach,r=Object.create;e.exports=function(e){var t=r(null);return i.call(arguments,(function(e){t[e]=!0})),t}},Wzjs:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Y/la");function r(e,t){for(var n=Object.create(null),r=0,o=Object(i.a)(e);r2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(S).join(", ")+")":"(\n"+t.map((function(t,i){return T(e,t," "+n,!i)+" "+n+S(t)})).join("\n")+"\n"+n+")"}function S(e){var t=Object(d.a)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Object(s.print)(t))),n}function z(e){if(!e.isDeprecated)return"";var t=e.deprecationReason,n=Object(d.a)(t,l.e);return n&&""!==t&&t!==p.a?" @deprecated(reason: "+Object(s.print)(n)+")":" @deprecated"}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.description)return"";var r=k(t.description,120-n.length);if(e&&e.commentDescriptions)return _(r,n,i);var o=r.join("\n"),a=o.length>70,s=Object(c.c)(o,"",a),u=n&&!i?"\n"+n:n;return u+s.replace(/\n/g,"\n"+n)+"\n"}function _(e,t,n){for(var i=t&&!n?"\n":"",r=0;r{if(!t.schema||!t.onClick||!e.state)return;const n=e.state,i=n.kind,a=n.step,s=(0,r.default)(t.schema,n);return"Field"===i&&0===a&&s.fieldDef||"AliasedField"===i&&2===a&&s.fieldDef?(0,o.getFieldReference)(s):"Directive"===i&&1===a&&s.directiveDef?(0,o.getDirectiveReference)(s):"Argument"===i&&0===a&&s.argDef?(0,o.getArgumentReference)(s):"EnumValue"===i&&s.enumValue?(0,o.getEnumValueReference)(s):"NamedType"===i&&s.type?(0,o.getTypeReference)(s):void 0})},XlPw:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("6blF");function r(e,t){return new i.a(t?function(n){return t.schedule(o,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function o(e){e.subscriber.error(e.error)}},Xt1Y:function(e,t,n){"use strict";var i=n("k2qM"),r={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!i(e)&&hasOwnProperty.call(r,typeof e)}},"Y/la":function(e,t,n){"use strict";t.a=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))}},YMfE:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return m})),n.d(t,"i",(function(){return y}));var i=n("Iab2"),r=(n("FDZY"),n("xyIE")),o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0)&&n.getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),i&&n&&(n.removeAllRanges(),n.addRange(i))},m=function(e){return e?c.isUri(e)?e:"*"===e.trim()?location.href:("/"===e.substr(0,1)&&(e=e.substr(1)),location.origin+"/"+e):e};function v(e){var t=parseInt(e,10);return t.toString()===e?t:e}function y(e,t,n){if("number"==typeof t&&(t=[t]),t&&0!==t.length){if("string"==typeof t)return y(e,t.split(".").map(v),n);var i=t[0],r=e[i];return 1===t.length?(e[i]=n,r):(void 0===r&&(e[i]="number"==typeof t[1]?[]:{}),y(e[i],t.slice(1),n))}}},YTm4:function(e,t,n){"use strict";e.exports=function(e){return e?function(t){for(var n=String(t[0]),i=0,r=e;--r;)n+="\x01"+t[++i];return n}:function(){return""}}},Yen0:function(e,t,n){"use strict";n.d(t,"b",(function(){return C})),n.d(t,"a",(function(){return z})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return D}));var i=n("1QEH"),r=n("kBjl"),o=n("rWdj"),a=n("2C6G"),s=n("t3R0"),c=n("WXJZ"),u=n("/jXB"),l=n("JvOi"),p=n("EMzn"),h=n("Xizt"),d=n("BLR7"),f=n("EkME"),g=n("5XwX"),b=n("19Hc"),m=n("LViu"),v=n("51nL"),y=n("4suF"),w=n("axIb"),O=n("Mbdf");function C(e,t){var n;e&&e.kind===u.a.DOCUMENT||Object(s.a)(0,"Must provide valid Document AST"),t&&(t.assumeValid||t.assumeValidSDL)||Object(f.a)(e);for(var r=[],o=[],a=0,c=e.definitions;a0?function(){return n.map((function(e){return t.getNamedType(e)}))}:[],o=i&&i.length>0?function(){return T(i,(function(e){return t.buildField(e)}))}:Object.create(null);return new w.f({name:e.name.value,description:k(e,this._options),interfaces:r,fields:o,astNode:e})},t._makeInterfaceDef=function(e){var t=this,n=e.fields,i=n&&n.length>0?function(){return T(n,(function(e){return t.buildField(e)}))}:Object.create(null);return new w.c({name:e.name.value,description:k(e,this._options),fields:i,astNode:e})},t._makeEnumDef=function(e){var t=this,n=e.values||[];return new w.a({name:e.name.value,description:k(e,this._options),values:T(n,(function(e){return t.buildEnumValue(e)})),astNode:e})},t._makeUnionDef=function(e){var t=this,n=e.types,i=n&&n.length>0?function(){return n.map((function(e){return t.getNamedType(e)}))}:[];return new w.h({name:e.name.value,description:k(e,this._options),types:i,astNode:e})},t._makeScalarDef=function(e){return new w.g({name:e.name.value,description:k(e,this._options),astNode:e})},t._makeInputObjectDef=function(e){var t=this,n=e.fields;return new w.b({name:e.name.value,description:k(e,this._options),fields:n?function(){return T(n,(function(e){return t.buildInputField(e)}))}:Object.create(null),astNode:e})},e}();function T(e,t){return Object(c.a)(e,(function(e){return e.name.value}),t)}function _(e){var t=Object(g.b)(y.b,e);return t&&t.reason}function k(e,t){if(e.description)return e.description.value;if(t&&t.commentDescriptions){var n=function(e){var t=e.loc;if(t){for(var n=[],i=t.startToken.prev;i&&i.kind===l.a.COMMENT&&i.next&&i.prev&&i.line+1===i.next.line&&i.line!==i.prev.line;){var r=String(i.value);n.push(r),i=i.prev}return n.reverse().join("\n")}}(e);if(void 0!==n)return Object(d.a)("\n"+n)}}function D(e,t){return C(Object(p.a)(e,t),t)}},YsTz:function(e,t,n){"use strict";var i=n("52x2")();e.exports=function(e){return e!==i&&null!==e}},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},YyF0:function(e,t,n){"use strict";var i=n("kBPl");e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!i(e)}},Yzoe:function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0){var s=r.shift();s&&s.applyMiddleware.apply(o,[e,a])}else n(e)})()}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,n){if("function"==typeof e)try{return t(e.call(null))}catch(i){return n(i)}t(e)}))}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var i=this.generateOperationId();return this.operations[i]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){n.checkOperationOptions(e,t),n.operations[i]&&(n.operations[i]={options:e,handler:t},n.sendMessage(i,m.default.GQL_START,e))})).catch((function(e){n.unsubscribe(i),t(n.formatErrors(e))})),i},e.prototype.getObserver=function(e,t,n){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){return new c({min:1e3,max:this.wsTimeout,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,i=e.variables,r=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!l.default(n)&&!d.getOperationAST(n,r)||r&&!l.default(r)||i&&!p.default(i))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?i({},n,{query:"string"==typeof n.query?n.query:h.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,m.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e=this;this.client=new this.wsImpl(this.url,this.wsProtocols),this.checkMaxConnectTimeout(),this.client.onopen=function(){return r(e,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,m.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,m.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(t){e.eventEmitter.emit("error",t)},this.client.onmessage=function(t){e.processReceivedData(t.data)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(a){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[m.default.GQL_DATA,m.default.GQL_COMPLETE,m.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case m.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case m.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected"),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case m.default.GQL_COMPLETE:this.operations[n].handler(null,null),delete this.operations[n];break;case m.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case m.default.GQL_DATA:var r=t.payload.errors?i({},t.payload,{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,r);break;case m.default.GQL_CONNECTION_KEEP_ALIVE:var o=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,o&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,m.default.GQL_STOP,void 0))},e}()},"ZBm+":function(e,t,n){"use strict";n.r(t),n.d(t,"unusedFragMessage",(function(){return r})),n.d(t,"NoUnusedFragments",(function(){return o}));var i=n("dWS+");function r(e){return'Fragment "'.concat(e,'" is never used.')}function o(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var o=Object.create(null),a=0;a=0?n&&r?r-1:r:1:!1!==e&&i(e)}},Zss7:function(e,t,n){var i;!function(r){var o=/^\s+/,a=/\s+$/,s=0,c=r.round,u=r.min,l=r.max,p=r.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t,n,i={r:0,g:0,b:0},s=1,c=null,p=null,h=null,d=!1,f=!1;return"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(E[e])e=E[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=U.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=U.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=U.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=U.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=U.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=U.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=U.hex8.exec(e))?{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:R(t[4]),format:n?"name":"hex8"}:(t=U.hex6.exec(e))?{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"}:(t=U.hex4.exec(e))?{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:R(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=U.hex3.exec(e))&&{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(H(e.r)&&H(e.g)&&H(e.b)?(t=e.g,n=e.b,i={r:255*I(e.r,255),g:255*I(t,255),b:255*I(n,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(c=P(e.s),p=P(e.v),i=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var i=r.floor(e),o=e-i,a=n*(1-t),s=n*(1-o*t),c=n*(1-(1-o)*t),u=i%6;return{r:255*[n,s,a,a,c,n][u],g:255*[c,n,n,s,a,a][u],b:255*[a,a,c,n,n,s][u]}}(e.h,c,p),d=!0,f="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(c=P(e.s),h=P(e.l),i=function(e,t,n){var i,r,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)i=r=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;i=a(c,s,e+1/3),r=a(c,s,e),o=a(c,s,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,c,h),d=!0,f="hsl"),e.hasOwnProperty("a")&&(s=e.a)),s=j(s),{ok:d,format:e.format||f,r:u(255,l(i.r,0)),g:u(255,l(i.g,0)),b:u(255,l(i.b,0)),a:s}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function d(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var i,r,o=l(e,t,n),a=u(e,t,n),s=(o+a)/2;if(o==a)i=r=0;else{var c=o-a;switch(r=s>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(h(i));return o}function x(e,t){t=t||6;for(var n=h(e).toHsv(),i=n.h,r=n.s,o=n.v,a=[],s=1/t;t--;)a.push(h({h:i,s:r,v:o})),o=(o+s)%1;return a}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return t=i.g/255,n=i.b/255,.2126*((e=i.r/255)<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=j(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),i=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),i=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,r){var o=[L(c(e).toString(16)),L(c(t).toString(16)),L(c(n).toString(16)),L(F(i))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*I(this._r,255))+"%",g:c(100*I(this._g,255))+"%",b:c(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%)":"rgba("+c(100*I(this._r,255))+"%, "+c(100*I(this._g,255))+"%, "+c(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=h(e);n="#"+b(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1;return t||!(this._a<1&&this._a>=0)||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(z,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:P(e[i]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:p(),g:p(),b:p()})},h.mix=function(e,t,n){n=0===n?0:n||50;var i=h(e).toRgb(),r=h(t).toRgb(),o=n/100;return h({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},h.readability=function(e,t){var n=h(e),i=h(t);return(r.max(n.getLuminance(),i.getLuminance())+.05)/(r.min(n.getLuminance(),i.getLuminance())+.05)},h.isReadable=function(e,t,n){var i,r,o,a,s,c=h.readability(e,t);switch(r=!1,(o=n,"AA"!==(a=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==a&&(a="AA"),"small"!==(s=(o.size||"small").toLowerCase())&&"large"!==s&&(s="small"),i={level:a,size:s}).level+i.size){case"AAsmall":case"AAAlarge":r=c>=4.5;break;case"AAlarge":r=c>=3;break;case"AAAsmall":r=c>=7}return r},h.mostReadable=function(e,t,n){var i,r,o,a,s=null,c=0;r=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;uc&&(c=i,s=h(t[u]));return h.isReadable(e,s,{level:o,size:a})||!r?s:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var E=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(E);function j(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function F(e){return r.round(255*parseFloat(e)).toString(16)}function R(e){return M(e)/255}var V,B,Y,U=(B="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",Y="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+Y),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+Y),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+Y),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(i=(function(){return h}).call(t,n,t,e))||(e.exports=i)}(Math)},a88y:function(e,t,n){"use strict";var i=n("lq5y"),r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;e.exports=function(e,t){var n,c=Object(i(t));if(e=Object(i(e)),a(c).forEach((function(i){try{r(e,i,o(t,i))}catch(a){n=a}})),"function"==typeof s&&s(c).forEach((function(i){try{r(e,i,o(t,i))}catch(a){n=a}})),void 0!==n)throw n;return e}},aFjk:function(e,t,n){"use strict";e.exports=n("zs8F")("forEach")},aGNc:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.value))},e}(),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.value=n,i}return i.c(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(r.a)},aSse:function(e,t,n){"use strict";var i=Object.prototype.toString,r=i.call("");e.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||i.call(e)===r)||!1}},ad02:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.compare,this.keySelector))},e}(),s=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i.c(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))},t}(r.a)},axIb:function(e,t,n){"use strict";n.d(t,"S",(function(){return w})),n.d(t,"x",(function(){return O})),n.d(t,"R",(function(){return C})),n.d(t,"w",(function(){return S})),n.d(t,"N",(function(){return z})),n.d(t,"u",(function(){return T})),n.d(t,"H",(function(){return _})),n.d(t,"o",(function(){return k})),n.d(t,"T",(function(){return D})),n.d(t,"y",(function(){return x})),n.d(t,"E",(function(){return E})),n.d(t,"l",(function(){return N})),n.d(t,"F",(function(){return j})),n.d(t,"m",(function(){return I})),n.d(t,"J",(function(){return A})),n.d(t,"q",(function(){return M})),n.d(t,"L",(function(){return L})),n.d(t,"s",(function(){return P})),n.d(t,"G",(function(){return F})),n.d(t,"n",(function(){return R})),n.d(t,"O",(function(){return V})),n.d(t,"v",(function(){return B})),n.d(t,"I",(function(){return Y})),n.d(t,"p",(function(){return U})),n.d(t,"D",(function(){return H})),n.d(t,"k",(function(){return W})),n.d(t,"C",(function(){return q})),n.d(t,"j",(function(){return Z})),n.d(t,"d",(function(){return $})),n.d(t,"e",(function(){return G})),n.d(t,"U",(function(){return Q})),n.d(t,"z",(function(){return X})),n.d(t,"M",(function(){return K})),n.d(t,"t",(function(){return J})),n.d(t,"B",(function(){return ee})),n.d(t,"K",(function(){return te})),n.d(t,"r",(function(){return ne})),n.d(t,"A",(function(){return ie})),n.d(t,"g",(function(){return ae})),n.d(t,"f",(function(){return se})),n.d(t,"i",(function(){return he})),n.d(t,"P",(function(){return de})),n.d(t,"c",(function(){return fe})),n.d(t,"h",(function(){return ge})),n.d(t,"a",(function(){return me})),n.d(t,"b",(function(){return ve})),n.d(t,"Q",(function(){return we}));var i=n("Y/la"),r=n("rWdj"),o=n("kBjl"),a=n("Wzjs"),s=n("E9SJ"),c=n("t3R0"),u=n("WXJZ"),l=n("Mw0p"),p=n("zpYP");function h(e){return e}var d=n("vJkw"),f=n("ZZnB"),g=n("/jXB"),b=n("ADFt");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t0?e:void 0}$.prototype.toString=function(){return"["+String(this.ofType)+"]"},Object(f.a)($),Object(d.a)($),G.prototype.toString=function(){return String(this.ofType)+"!"},Object(f.a)(G),Object(d.a)(G);var ae=function(){function e(e){var t=e.parseValue||h;this.name=e.name,this.description=e.description,this.serialize=e.serialize||h,this.parseValue=t,this.parseLiteral=e.parseLiteral||function(e){return t(Object(b.a)(e))},this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.serialize||"function"==typeof e.serialize||Object(c.a)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||Object(c.a)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){return{name:this.name,description:this.description,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(f.a)(ae),Object(d.a)(ae);var se=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=ue.bind(void 0,e),this._interfaces=ce.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||Object(c.a)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(r.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:pe(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function ce(e){var t=re(e.interfaces)||[];return Array.isArray(t)||Object(c.a)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function ue(e){var t=re(e.fields)||{};return le(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(a.a)(t,(function(t,n){le(t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field config must be an object")),!("isDeprecated"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||Object(c.a)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(r.a)(t.resolve),"."));var o=t.args||{};le(o)||Object(c.a)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var a=Object(i.a)(o).map((function(e){var t=e[1];return{name:e[0],description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(s.a)(t.extensions),astNode:t.astNode}}));return v({},t,{name:n,description:t.description,type:t.type,args:a,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(s.a)(t.extensions),astNode:t.astNode})}))}function le(e){return Object(p.a)(e)&&!Array.isArray(e)}function pe(e){return Object(a.a)(e,(function(e){return{description:e.description,type:e.type,args:he(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function he(e){return Object(u.a)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}function de(e){return L(e.type)&&void 0===e.defaultValue}Object(f.a)(se),Object(d.a)(se);var fe=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=ue.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(r.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){return{name:this.name,description:this.description,fields:pe(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(f.a)(fe),Object(d.a)(fe);var ge=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._types=be.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(r.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function be(e){var t=re(e.types)||[];return Array.isArray(t)||Object(c.a)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(f.a)(ge),Object(d.a)(ge);var me=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._values=(t=this.name,le(n=e.values)||Object(c.a)(0,"".concat(t," values must be an object with value names as keys.")),Object(i.a)(n).map((function(e){var n=e[0],i=e[1];return le(i)||Object(c.a)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(r.a)(i),".")),!("isDeprecated"in i)||Object(c.a)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:i.description,value:"value"in i?i.value:n,isDeprecated:Boolean(i.deprecationReason),deprecationReason:i.deprecationReason,extensions:i.extensions&&Object(s.a)(i.extensions),astNode:i.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=Object(o.a)(this._values,(function(e){return e.name})),"string"==typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(t)return t.name},t.parseValue=function(e){if("string"==typeof e){var t=this.getValue(e);if(t)return t.value}},t.parseLiteral=function(e,t){if(e.kind===g.a.ENUM){var n=this.getValue(e.value);if(n)return n.value}},t.toConfig=function(){var e=Object(u.a)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(f.a)(me),Object(d.a)(me);var ve=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=ye.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e=Object(a.a)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function ye(e){var t=re(e.fields)||{};return le(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(a.a)(t,(function(t,n){return!("resolve"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),v({},t,{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(s.a)(t.extensions),astNode:t.astNode})}))}function we(e){return L(e.type)&&void 0===e.defaultValue}Object(f.a)(ve),Object(d.a)(ve)},b7mW:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},bCCX:function(e,t,n){"use strict";n.r(t),(function(e){var i,r=n("SLVX");i="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e;var o=Object(r.a)(i);t.default=o}).call(this,n("3UD+")(e))},bYjt:function(e,t,n){"use strict";n.d(t,"a",(function(){return q})),n.d(t,"b",(function(){return W})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return G})),n.d(t,"e",(function(){return Y})),n.d(t,"f",(function(){return T})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return $})),n.d(t,"j",(function(){return I})),n.d(t,"k",(function(){return z}));var i=n("mrSG"),r=n("pdUi"),o=n("TYT/"),a=n("7CWi"),s=n("CCO+"),c=n("Valr"),u=n("349r"),l=n("2J3F"),p=n("K9Ia"),h=n("pugT"),d=n("p0ib"),f=n("t9fZ"),g=n("ny24"),b=n("qjWv"),m=function(){function e(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return e.prototype.attach=function(){},e.prototype.enable=function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Object(u.d)(-this._previousScrollPosition.left),e.style.top=Object(u.d)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},e.prototype.disable=function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=i,n.scrollBehavior=r}},e.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width},e}();function v(){return Error("Scroll strategy has already been attached.")}var y=function(){function e(e,t,n,i){var r=this;this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return e.prototype.attach=function(e){if(this._overlayRef)throw v();this._overlayRef=e},e.prototype.enable=function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e.prototype.detach=function(){this.disable(),this._overlayRef=null},e}(),w=function(){function e(){}return e.prototype.enable=function(){},e.prototype.disable=function(){},e.prototype.attach=function(){},e}();function O(e,t){return t.some((function(t){return e.bottomt.bottom||e.rightt.right}))}function C(e,t){return t.some((function(t){return e.topt.bottom||e.leftt.right}))}var S=function(){function e(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}return e.prototype.attach=function(e){if(this._overlayRef)throw v();this._overlayRef=e},e.prototype.enable=function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;O(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e.prototype.detach=function(){this.disable(),this._overlayRef=null},e}(),z=function(){function e(e,t,n,i){var r=this;this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=function(){return new w},this.close=function(e){return new y(r._scrollDispatcher,r._ngZone,r._viewportRuler,e)},this.block=function(){return new m(r._viewportRuler,r._document)},this.reposition=function(e){return new S(r._scrollDispatcher,r._viewportRuler,r._ngZone,e)},this._document=i}return e.\u0275prov=Object(o.Pb)({factory:function(){return new e(Object(o.dc)(r.d),Object(o.dc)(r.f),Object(o.dc)(o.z),Object(o.dc)(c.e))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(o.dc(r.d),o.dc(r.f),o.dc(o.z),o.dc(c.e))},e}(),T=function(){return function(e){var t,n;if(this.scrollStrategy=new w,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){var r=Object.keys(e);try{for(var o=Object(i.h)(r),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==e[s]&&(this[s]=e[s])}}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}}}(),_=function(){return function(e,t,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}(),k=function(){return function(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}();function D(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "top", "bottom" or "center".')}function x(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "start", "end" or "center".')}var E=function(){function e(e){var t=this;this._attachedOverlays=[],this._keydownListener=function(e){for(var n=t._attachedOverlays,i=n.length-1;i>-1;i--)if(n[i]._keydownEvents.observers.length>0){n[i]._keydownEvents.next(e);break}},this._document=e}return e.prototype.ngOnDestroy=function(){this._detach()},e.prototype.add=function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)},e.prototype.remove=function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()},e.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)},e.\u0275prov=Object(o.Pb)({factory:function(){return new e(Object(o.dc)(c.e))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(o.dc(c.e))},e}(),N=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),j=function(){function e(e,t){this._platform=t,this._document=e}return e.prototype.ngOnDestroy=function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},e.prototype._createContainer=function(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(e||N)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;nm&&(m=O,b=w)}}catch(S){n={error:S}}finally{try{y&&!y.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}return this._isPushed=!1,void this._applyPosition(b.position,b.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}},e.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},e.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&L(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},e.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}},e.prototype.withScrollableContainers=function(e){return this._scrollables=e,this},e.prototype.withPositions=function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},e.prototype.withViewportMargin=function(e){return this._viewportMargin=e,this},e.prototype.withFlexibleDimensions=function(e){return void 0===e&&(e=!0),this._hasFlexibleDimensions=e,this},e.prototype.withGrowAfterOpen=function(e){return void 0===e&&(e=!0),this._growAfterOpen=e,this},e.prototype.withPush=function(e){return void 0===e&&(e=!0),this._canPush=e,this},e.prototype.withLockedPosition=function(e){return void 0===e&&(e=!0),this._positionLocked=e,this},e.prototype.setOrigin=function(e){return this._origin=e,this},e.prototype.withDefaultOffsetX=function(e){return this._offsetX=e,this},e.prototype.withDefaultOffsetY=function(e){return this._offsetY=e,this},e.prototype.withTransformOriginOn=function(e){return this._transformOriginSelector=e,this},e.prototype._getOriginPoint=function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}},e.prototype._getOverlayPoint=function(e,t,n){var i;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+i,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}},e.prototype._getOverlayFit=function(e,t,n,i){var r=e.x,o=e.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var c=0-o,u=o+t.height-n.height,l=this._subtractOverflows(t.width,0-r,r+t.width-n.width),p=this._subtractOverflows(t.height,c,u),h=l*p;return{visibleArea:h,isCompletelyWithinViewport:t.width*t.height===h,fitsInViewportVertically:p===t.height,fitsInViewportHorizontally:l==t.width}},e.prototype._canFitWithFlexibleDimensions=function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=P(this._overlayRef.getConfig().minHeight),a=P(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=i)&&(e.fitsInViewportHorizontally||null!=a&&a<=r)}return!1},e.prototype._pushOverlayOnScreen=function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(e.x+t.width-o.right,0),s=Math.max(e.y+t.height-o.bottom,0),c=Math.max(o.top-n.top-e.y,0),u=Math.max(o.left-n.left-e.x,0);return this._previousPushAmount={x:i=t.width<=o.width?u||-a:e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-p/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=c.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=c.right-e.x;else{l=Math.min(c.right-e.x+c.left,e.x);var h=this._lastBoundingBoxSize.width;a=e.x-l,(o=2*l)>h&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-h/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}},e.prototype._setBoundingBoxStyles=function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=Object(u.d)(n.height),i.top=Object(u.d)(n.top),i.bottom=Object(u.d)(n.bottom),i.width=Object(u.d)(n.width),i.left=Object(u.d)(n.left),i.right=Object(u.d)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Object(u.d)(r)),o&&(i.maxWidth=Object(u.d)(o))}this._lastBoundingBoxSize=n,L(this._boundingBox.style,i)},e.prototype._resetBoundingBoxStyles=function(){L(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},e.prototype._resetOverlayElementStyles=function(){L(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},e.prototype._setOverlayElementStyles=function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();L(n,this._getExactOverlayY(t,e,a)),L(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",c=this._getOffset(t,"x"),l=this._getOffset(t,"y");c&&(s+="translateX("+c+"px) "),l&&(s+="translateY("+l+"px)"),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=Object(u.d)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Object(u.d)(o.maxWidth):r&&(n.maxWidth="")),L(this._pane.style,n)},e.prototype._getExactOverlayY=function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Object(u.d)(r.y),i},e.prototype._getExactOverlayX=function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Object(u.d)(r.x),i},e.prototype._getScrollVisibility=function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:C(e,n),isOriginOutsideView:O(e,n),isOverlayClipped:C(t,n),isOverlayOutsideView:O(t,n)}},e.prototype._subtractOverflows=function(e){for(var t=[],n=1;n1?Array.prototype.slice.call(arguments):e)}),i,n)}))}},c3ME:function(e,t,n){"use strict";var i=n("YsTz"),r=Object.keys;e.exports=function(e){return r(i(e)?Object(e):e)}},c52N:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var i=n("fYDj"),r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0){var i=e.slice(0,n),r=i.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(i,r),t.headers.has(r)?t.headers.get(r).push(o):t.headers.set(r,[o])}}))}:function(){t.headers=new Map,Object.keys(e).forEach((function(n){var i=e[n],r=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(t.headers.set(r,i),t.maybeSetNormalizedName(n,r))}))}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))}))},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,Object(i.g)(n)),this.headers.set(t,r);break;case"d":var o=e.value;if(o){var a=this.headers.get(t);if(!a)return;0===(a=a.filter((function(e){return-1===o.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return e(t.normalizedNames.get(n),t.headers.get(n))}))},e}(),f=function(){function e(){}return e.prototype.encodeKey=function(e){return g(e)},e.prototype.encodeValue=function(e){return g(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function g(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var b=function(){function e(e){var t,n,r,o=this;if(void 0===e&&(e={}),this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new f,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach((function(e){var t=e.indexOf("="),o=Object(i.e)(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),a=o[0],s=o[1],c=r.get(a)||[];c.push(s),r.set(a,c)})),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach((function(t){var n=e.fromObject[t];o.map.set(t,Array.isArray(n)?n:[n])}))):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map((function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return n+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)},e}();function m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function v(e){return"undefined"!=typeof Blob&&e instanceof Blob}function y(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w=function(){function e(e,t,n,i){var r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a=200&&this.status<300}}(),S=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=O.ResponseHeader,n}return Object(i.c)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(C),z=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=O.Response,n.body=void 0!==t.body?t.body:null,n}return Object(i.c)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(C),T=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return Object(i.c)(t,e),t}(C);function _(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var k=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var i,r=this;if(void 0===n&&(n={}),e instanceof w)i=e;else{var a;a=n.headers instanceof d?n.headers:new d(n.headers);var l=void 0;n.params&&(l=n.params instanceof b?n.params:new b({fromObject:n.params})),i=new w(e,t,void 0!==n.body?n.body:null,{headers:a,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var p=Object(o.a)(i).pipe(Object(s.a)((function(e){return r.handler.handle(e)})));if(e instanceof w||"events"===n.observe)return p;var h=p.pipe(Object(c.a)((function(e){return e instanceof z})));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return h.pipe(Object(u.a)((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return h.pipe(Object(u.a)((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return h.pipe(Object(u.a)((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return h.pipe(Object(u.a)((function(e){return e.body})))}case"response":return h;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new b).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,_(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,_(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,_(n,t))},e.\u0275fac=function(t){return new(t||e)(r.dc(p))},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),D=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),x=new r.q("HTTP_INTERCEPTORS"),E=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),N=/^\)\]\}',?\n/,j=function(){return function(){}}(),I=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),A=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a((function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((function(e,t){return i.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new d(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new S({headers:r,status:t,statusText:n,url:o})},u=function(){var t=c(),r=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var p=u;u=u.replace(N,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=p,l&&(l=!1,u={error:h,text:u})}}l?(n.next(new z({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new T({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=c().url,r=new T({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},p=!1,h=function(t){p||(n.next(c()),p=!0);var r={type:O.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:O.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",l),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:O.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("load",u),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.abort()}}))},e.\u0275fac=function(t){return new(t||e)(r.dc(j))},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),M=new r.q("XSRF_COOKIE_NAME"),L=new r.q("XSRF_HEADER_NAME"),P=function(){return function(){}}(),F=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.Q)(e,this.cookieName),this.lastCookieString=e),this.lastToken},e.\u0275fac=function(t){return new(t||e)(r.dc(l.e),r.dc(r.B),r.dc(M))},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),R=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)},e.\u0275fac=function(t){return new(t||e)(r.dc(P),r.dc(L))},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),V=function(){function e(e,t){this.backend=e,this.injector=t,this.chain=null}return e.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(x,[]);this.chain=t.reduceRight((function(e,t){return new D(e,t)}),this.backend)}return this.chain.handle(e)},e.\u0275fac=function(t){return new(t||e)(r.dc(h),r.dc(r.r))},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),B=function(){function e(){}var t;return t=e,e.disable=function(){return{ngModule:t,providers:[{provide:R,useClass:E}]}},e.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:L,useValue:e.headerName}:[]]}},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)},providers:[R,{provide:x,useExisting:R,multi:!0},{provide:P,useClass:F},{provide:M,useValue:"XSRF-TOKEN"},{provide:L,useValue:"X-XSRF-TOKEN"}]}),e}(),Y=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)},providers:[k,{provide:p,useClass:V},A,{provide:h,useExisting:A},I,{provide:j,useExisting:I}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},cV09:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){this.cm=e,this.options=i;var r={listenForChanges:!1};for(var o in i)r[o]=i[o];r.className||(r.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(r),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}function n(e,t,n){return e<=t?e:Math.max(t,e+n)}e.defineExtension("showMatchesOnScrollbar",(function(e,n,i){return"string"==typeof i&&(i={className:i}),i||(i={}),new t(this,e,n,i)})),t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to);t++)r.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var n=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||1e3;n.findNext();){var r;if((r={from:n.from(),to:n.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,r),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var i=t.from.line,r=e.changeEnd(t).line,o=r-t.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,i,o),t.from.line),this.gap.to=Math.max(n(this.gap.to,i,o),t.from.line)):this.gap={from:t.from.line,to:r+1},o)for(var a=0;a=0;a--){var s=r[a].from(),c=r[a].to();s.line>=n||(c.line>=n&&(c=i(n,0)),n=s.line,null==o?this.uncomment(s,c,e)?o="un":(this.lineComment(s,c,e),o="line"):"un"==o?this.uncomment(s,c,e):this.lineComment(s,c,e))}})),e.defineExtension("lineComment",(function(e,a,s){s||(s=t);var c=this,u=o(c,e),l=c.getLine(e.line);if(null!=l&&(p=l,!/\bstring\b/.test(c.getTokenTypeAt(i(e.line,0)))||/^[\'\"\`]/.test(p))){var p,h=s.lineComment||u.lineComment;if(h){var d=Math.min(0!=a.ch||a.line==e.line?a.line+1:a.line,c.lastLine()+1),f=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==a.line;c.operation((function(){if(s.indent){for(var t=null,o=e.line;oa.length)&&(t=a)}for(o=e.line;op||s.operation((function(){if(0!=a.fullLines){var t=n.test(s.getLine(p));s.replaceRange(h+l,i(p)),s.replaceRange(u+h,i(e.line,0));var o=a.blockCommentLead||c.blockCommentLead;if(null!=o)for(var d=e.line+1;d<=p;++d)(d!=p||t)&&s.replaceRange(o+h,i(d,0))}else s.replaceRange(l,r),s.replaceRange(u,e)}))}}else(a.lineComment||c.lineComment)&&0!=a.fullLines&&s.lineComment(e,r,a)})),e.defineExtension("uncomment",(function(e,r,a){a||(a=t);var s,c=this,u=o(c,e),l=Math.min(0!=r.ch||r.line==e.line?r.line:r.line-1,c.lastLine()),p=Math.min(e.line,l),h=a.lineComment||u.lineComment,d=[],f=null==a.padding?" ":a.padding;e:if(h){for(var g=p;g<=l;++g){var b=c.getLine(g),m=b.indexOf(h);if(m>-1&&!/comment/.test(c.getTokenTypeAt(i(g,m+1)))&&(m=-1),-1==m&&n.test(b))break e;if(m>-1&&n.test(b.slice(0,m)))break e;d.push(b)}if(c.operation((function(){for(var e=p;e<=l;++e){var t=d[e-p],n=t.indexOf(h),r=n+h.length;n<0||(t.slice(r,r+f.length)==f&&(r+=f.length),s=!0,c.replaceRange("",i(e,n),i(e,r)))}})),s)return!0}var v=a.blockCommentStart||u.blockCommentStart,y=a.blockCommentEnd||u.blockCommentEnd;if(!v||!y)return!1;var w=a.blockCommentLead||u.blockCommentLead,O=c.getLine(p),C=O.indexOf(v);if(-1==C)return!1;var S=l==p?O:c.getLine(l),z=S.indexOf(y,l==p?C+v.length:0),T=i(p,C+1),_=i(l,z+1);if(-1==z||!/comment/.test(c.getTokenTypeAt(T))||!/comment/.test(c.getTokenTypeAt(_))||c.getRange(T,_,"\n").indexOf(y)>-1)return!1;var k=O.lastIndexOf(v,e.ch),D=-1==k?-1:O.slice(0,e.ch).indexOf(y,k+v.length);if(-1!=k&&-1!=D&&D+y.length!=e.ch)return!1;D=S.indexOf(y,r.ch);var x=S.slice(r.ch).lastIndexOf(v,D-r.ch);return k=-1==D||-1==x?-1:r.ch+x,(-1==D||-1==k||k==r.ch)&&(c.operation((function(){c.replaceRange("",i(l,z-(f&&S.slice(z-f.length,z)==f?f.length:0)),i(l,z+y.length));var e=C+v.length;if(f&&O.slice(e,e+f.length)==f&&(e+=f.length),c.replaceRange("",i(p,C),i(p,e)),w)for(var t=p+1;t<=l;++t){var r=c.getLine(t),o=r.indexOf(w);if(-1!=o&&!n.test(r.slice(0,o))){var a=o+w.length;f&&r.slice(a,a+f.length)==f&&(a+=f.length),c.replaceRange("",i(t,o),i(t,a))}}})),!0)}))}(n("VrN/"))},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},d0bx:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n("Zss7"));function o(e,t,n){var i;return(i=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?i+=360:i>=360&&(i-=360),i}function a(e,t,n){return 0===e.h&&0===e.s?e.s:((i=n?Math.round(100*e.s)-16*t:4===t?Math.round(100*e.s)+16:Math.round(100*e.s)+5*t)>100&&(i=100),n&&5===t&&i>10&&(i=10),i<6&&(i=6),i);var i}function s(e,t,n){return n?Math.round(100*e.v)+5*t:Math.round(100*e.v)-15*t}t.default=function(e){for(var t=[],n=r.default(e),i=5;i>0;i-=1){var c=n.toHsv(),u=r.default({h:o(c,i,!0),s:a(c,i,!0),v:s(c,i,!0)}).toHexString();t.push(u)}for(t.push(n.toHexString()),i=1;i<=4;i+=1)c=n.toHsv(),u=r.default({h:o(c,i),s:a(c,i),v:s(c,i)}).toHexString(),t.push(u);return t}},dC0D:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("mrSG"),r=n("FFOo");function o(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new a(e,t,n))}}var a=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.accumulator,this.seed,this.hasSeed))},e}(),s=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i.c(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)},t}(r.a)},dEwP:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("F/XL"),r=n("Txjg");function o(){for(var e=[],t=0;t=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),c=r[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),d(n)?i.showHidden=n:n&&t._extend(i,n),m(i.showHidden)&&(i.showHidden=!1),m(i.depth)&&(i.depth=2),m(i.colors)&&(i.colors=!1),m(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),u(i,e,i.depth)}function s(e,t){var n=a.styles[t];return n?"\x1b["+a.colors[n][0]+"m"+e+"\x1b["+a.colors[n][1]+"m":e}function c(e,t){return e}function u(e,n,i){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return b(r)||(r=u(e,r,i)),r}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):d(t)?e.stylize(""+t,"boolean"):f(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),O(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(C(n))return e.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(v(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return l(n)}var c,y="",S=!1,z=["{","}"];return h(n)&&(S=!0,z=["[","]"]),C(n)&&(y=" [Function"+(n.name?": "+n.name:"")+"]"),v(n)&&(y=" "+RegExp.prototype.toString.call(n)),w(n)&&(y=" "+Date.prototype.toUTCString.call(n)),O(n)&&(y=" "+l(n)),0!==a.length||S&&0!=n.length?i<0?v(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=S?function(e,t,n,i,r){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,y,z)):z[0]+y+z[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,i,r,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=e.stylize(c.set?"[Getter/Setter]":"[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(i,r)||(a="["+r+"]"),s||(e.seen.indexOf(c.value)<0?(s=f(n)?u(e,c.value,null):u(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function f(e){return null===e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function m(e){return void 0===e}function v(e){return y(e)&&"[object RegExp]"===S(e)}function y(e){return"object"==typeof e&&null!==e}function w(e){return y(e)&&"[object Date]"===S(e)}function O(e){return y(e)&&("[object Error]"===S(e)||e instanceof Error)}function C(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function z(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(r)&&(r=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(r)){var n=process.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else o[e]=function(){};return o[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=d,t.isNull=f,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=v,t.isObject=y,t.isDate=w,t.isError=O,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n("VNB6");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(){var e=new Date,t=[z(e.getHours()),z(e.getMinutes()),z(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",_(),t.format.apply(t,arguments))},t.inherits=n("5wz/"),t._extend=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},"das/":function(e,t,n){"use strict";function i(e){return null==e||e!=e}n.d(t,"a",(function(){return i}))},dwPZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("dWS+");function r(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;n[r]?e.reportError(new i.a(function(e){return'There can be only one input field named "'.concat(e,'".')}(r),[n[r],t.name])):n[r]=t.name}}}},dzgT:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("mrSG"),r=n("nkY7"),o=n("isby"),a=n("MGBS"),s=n("zotm"),c=n("IUTb"),u={};function l(){for(var e=[],t=0;t ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:i,table:i,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};a.def=r(a.def).replace("label",a._label).replace("title",a._title).getRegex(),a.bullet=/(?:[*+-]|\d{1,9}\.)/,a.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,a.item=r(a.item,"gm").replace(/bull/g,a.bullet).getRegex(),a.list=r(a.list).replace(/bull/g,a.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+a.def.source+")").getRegex(),a._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",a._comment=//,a.html=r(a.html,"i").replace("comment",a._comment).replace("tag",a._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),a.paragraph=r(a._paragraph).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.blockquote=r(a.blockquote).replace("paragraph",a.paragraph).getRegex(),a.normal=o({},a),a.gfm=o({},a.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),a.gfm.nptable=r(a.gfm.nptable).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.gfm.table=r(a.gfm.table).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.pedantic=o({},a.normal,{html:r("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",a._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:i,paragraph:r(a.normal._paragraph).replace("hr",a.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",a.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const s={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:i,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:i,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~"};s.em=r(s.em).replace(/punctuation/g,s._punctuation).getRegex(),s._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,s._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,s._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,s.autolink=r(s.autolink).replace("scheme",s._scheme).replace("email",s._email).getRegex(),s._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,s.tag=r(s.tag).replace("comment",a._comment).replace("attribute",s._attribute).getRegex(),s._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,s._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,s._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,s.link=r(s.link).replace("label",s._label).replace("href",s._href).replace("title",s._title).getRegex(),s.reflink=r(s.reflink).replace("label",s._label).getRegex(),s.normal=o({},s),s.pedantic=o({},s.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:r(/^!?\[(label)\]\((.*?)\)/).replace("label",s._label).getRegex(),reflink:r(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",s._label).getRegex()}),s.gfm=o({},s.normal,{escape:r(s.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\1&&e.reportError(new i.a("This anonymous operation must be the only defined operation.",n))}}}},gI7C:function(e,t,n){"use strict";n.r(t),n.d(t,"getASTNodeAtPosition",(function(){return r})),n.d(t,"pointToOffset",(function(){return o}));var i=n("L2ys");function r(e,t,n){const r=o(e,n);let a;return Object(i.c)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=r&&r<=e.loc.end))return!1;a=e},leave(e){if(e.loc&&e.loc.start<=r&&r<=e.loc.end)return!1}}),a}function o(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map(e=>e.length+1).reduce((e,t)=>e+t,0)}},gQ7D:function(e,t,n){"use strict";e.exports=n("tgdo")},gQXd:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={isTestMode:!1}},gV3x:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n("TYT/"),r=n("2WDa"),o=n("Valr"),a=n("o8Qb");function s(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"span",12),i.Nc(3),i.lc(4,"translate"),i.Yb(),i.Nc(5,"\n "),i.Wb()),2&e&&(i.Db(3),i.Oc(i.mc(4,1,"DOCS_TYPE_TEXT")))}function c(e,t){if(1&e&&(i.Zb(0,"span",15),i.Nc(1),i.Yb()),2&e){var n=i.kc(2).$implicit,r=i.kc();i.Db(1),i.Oc(r.getProperName(n.type))}}function u(e,t){1&e&&(i.Zb(0,"span",16),i.Nc(1),i.lc(2,"translate"),i.Yb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"DOCS_FIELD_TEXT")))}function l(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,c,2,1,"span",13),i.Nc(3,"\n "),i.Lc(4,u,3,3,"span",14),i.Nc(5,"\n "),i.Wb()),2&e){var n=i.kc().$implicit;i.Db(2),i.sc("ngIf",n.isQuery),i.Db(2),i.sc("ngIf",!n.isQuery)}}function p(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"span",12),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc().$implicit,r=i.kc();i.Db(3),i.Oc(r.getProperName(n.cat))}}function h(e,t){if(1&e){var n=i.ac();i.Zb(0,"span",17),i.hc("click",(function(){i.Dc(n);var e=i.kc().$implicit;return i.kc().goToItem(e.type,null,"type")})),i.Nc(1),i.Yb()}if(2&e){var r=i.kc().$implicit;i.Db(1),i.Pc("",r.type,".")}}function d(e,t){1&e&&(i.Zb(0,"span"),i.Nc(1,","),i.Yb())}var f=function(e){return{"doc-viewer-search-result-highlight":e}};function g(e,t){if(1&e&&(i.Zb(0,"span",9),i.Nc(1,"\n "),i.Zb(2,"span"),i.Nc(3),i.Yb(),i.Lc(4,d,2,0,"span",10),i.Nc(5,"\n "),i.Yb()),2&e){var n=t.$implicit,r=t.last,o=i.kc(2).$implicit;i.sc("ngClass",i.vc(3,f,"argument"===o.highlight)),i.Db(3),i.Oc(n.name),i.Db(1),i.sc("ngIf",!r)}}function b(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n (\n "),i.Lc(2,g,6,5,"span",18),i.Nc(3,"\n )\n "),i.Wb()),2&e){var n=i.kc().$implicit,r=i.kc();i.Db(2),i.sc("ngForOf",n.args)("ngForTrackBy",r.resultArgTrackBy)}}function m(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",3),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc().goToItem(e.name,e.type,e.cat)})),i.Nc(1,"\n "),i.Xb(2,4),i.Nc(3,"\n "),i.Lc(4,s,6,3,"ng-container",5),i.Nc(5,"\n "),i.Lc(6,l,6,2,"ng-container",5),i.Nc(7,"\n "),i.Lc(8,p,5,1,"ng-container",6),i.Nc(9,"\n "),i.Wb(),i.Nc(10,"\n "),i.Zb(11,"div",7),i.Nc(12,"\n "),i.Lc(13,h,2,1,"span",8),i.Zb(14,"span",9),i.Nc(15),i.Yb(),i.Nc(16,"\n "),i.Lc(17,b,4,2,"ng-container",10),i.Nc(18,"\n "),i.Yb(),i.Nc(19,"\n "),i.Zb(20,"div",11),i.Nc(21),i.Yb(),i.Nc(22,"\n "),i.Yb()}if(2&e){var r=t.$implicit;i.sc("@showResultItem",void 0),i.Db(2),i.sc("ngSwitch",r.cat),i.Db(2),i.sc("ngSwitchCase","type"),i.Db(2),i.sc("ngSwitchCase","field"),i.Db(7),i.sc("ngIf",!r.isQuery&&r.type),i.Db(1),i.sc("ngClass",i.vc(9,f,"argument"!==r.highlight)),i.Db(1),i.Oc(r.name),i.Db(2),i.sc("ngIf",r.args&&r.args.length),i.Db(4),i.Oc(r.description)}}var v=function(){function e(){this.results=null,this.goToFieldChange=new i.n,this.goToTypeChange=new i.n}return e.prototype.ngOnInit=function(){},e.prototype.goToItem=function(e,t,n){switch(n){case"field":this.goToField(e,t);break;case"type":this.goToType(e)}},e.prototype.goToField=function(e,t){this.goToFieldChange.next({name:e,parentType:t})},e.prototype.goToType=function(e){this.goToTypeChange.next({name:e})},e.prototype.getProperName=function(e){return/mutation/i.test(e)?"Mutation":/query/i.test(e)?"Query":/subscription/i.test(e)?"Subscription":e},e.prototype.resultTrackBy=function(e,t){return t.name+"."+t.type+"."+t.cat},e.prototype.resultArgTrackBy=function(e,t){return t.name},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-doc-viewer-search-results"]],inputs:{results:"results"},outputs:{goToFieldChange:"goToFieldChange",goToTypeChange:"goToTypeChange"},decls:9,vars:5,consts:[[1,"doc-viewer-search-results"],[1,"doc-viewer-search-results-title"],["class","doc-viewer-search-result-item",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"doc-viewer-search-result-item",3,"click"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"doc-viewer-search-result-item-inner"],["class","doc-viewer-search-result-parent-type",3,"click",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],[1,"doc-viewer-search-result-description"],[1,"doc-viewer-search-result-cat","cat-type"],["class","doc-viewer-search-result-cat cat-query",4,"ngIf"],["class","doc-viewer-search-result-cat cat-field",4,"ngIf"],[1,"doc-viewer-search-result-cat","cat-query"],[1,"doc-viewer-search-result-cat","cat-field"],[1,"doc-viewer-search-result-parent-type",3,"click"],[3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Nc(1,"\n "),i.Zb(2,"div",1),i.Nc(3),i.lc(4,"translate"),i.Yb(),i.Nc(5,"\n\n "),i.Lc(6,m,23,11,"div",2),i.Nc(7,"\n\n"),i.Yb(),i.Nc(8,"\n")),2&e&&(i.Db(3),i.Pc("\n ",i.mc(4,3,"DOCS_SEARCH_RESULTS_TEXT"),"\n "),i.Db(3),i.sc("ngForOf",t.results)("ngForTrackBy",t.resultTrackBy))},directives:[o.s,o.x,o.y,o.z,o.t,o.q],pipes:[a.d],styles:[""],data:{animation:[Object(r.l)("showResultItem",[Object(r.k)(":enter",[Object(r.j)({opacity:0,transform:"translateY(50%)"}),Object(r.e)(200,Object(r.j)({opacity:1,transform:"translateY(0)"}))]),Object(r.k)(":leave",[Object(r.j)({height:"*"}),Object(r.e)(200,Object(r.j)({transform:"translateY(150%)",opacity:0,height:0}))])])]}}),e}()},gggk:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("dWS+");function r(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new i.a(function(e){return e?'Subscription "'.concat(e,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field."}(t.name&&t.name.value),t.selectionSet.selections.slice(1)))}}}},h9Dq:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("mrSG"),r=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return i.c(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return i.c(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n("pugT").a))},hYGK:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return StoreDevtoolsModule}));var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("mrSG"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("TYT/"),_ngrx_store__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("6onV"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("G5J1"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("6blF"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("F/XL"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("p0ib"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("zo3G"),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("S5bw"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("S1nX"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("VnD/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("67Y/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("Phjn"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("0zd0"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Gi3i"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("9Z1F"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("t9fZ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("ny24"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("15JJ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("0mNj"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("mZXl"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("/PH2"),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("dC0D"),StoreDevtoolsConfig=function(){return function(){this.maxAge=!1}}(),STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("@ngrx/devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("@ngrx/devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(e){var t={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},n="function"==typeof e?e():e,i=Object.assign({},t,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||t.features},n);if(i.maxAge&&i.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+i.maxAge);return i}var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=function(){return function(e,t){if(this.action=e,this.timestamp=t,this.type=PERFORM_ACTION,void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}(),Refresh=function(){return function(){this.type=REFRESH}}(),Reset=function(){return function(e){this.timestamp=e,this.type=RESET}}(),Rollback=function(){return function(e){this.timestamp=e,this.type=ROLLBACK}}(),Commit=function(){return function(e){this.timestamp=e,this.type=COMMIT}}(),Sweep=function(){return function(){this.type=SWEEP}}(),ToggleAction=function(){return function(e){this.id=e,this.type=TOGGLE_ACTION}}(),SetActionsActive=function(){return function(e,t,n){void 0===n&&(n=!0),this.start=e,this.end=t,this.active=n,this.type=SET_ACTIONS_ACTIVE}}(),JumpToState=function(){return function(e){this.index=e,this.type=JUMP_TO_STATE}}(),JumpToAction=function(){return function(e){this.actionId=e,this.type=JUMP_TO_ACTION}}(),ImportState=function(){return function(e){this.nextLiftedState=e,this.type=IMPORT_STATE}}(),LockChanges=function(){return function(e){this.status=e,this.type=LOCK_CHANGES}}(),PauseRecording=function(){return function(e){this.status=e,this.type=PAUSE_RECORDING}}(),DevtoolsDispatcher=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(t,e),t.\u0275fac=function(e){return n(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Pb({token:t,factory:function(e){return t.\u0275fac(e)}});var n=_angular_core__WEBPACK_IMPORTED_MODULE_1__.bc(t);return t}(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.a);function difference(e,t){return e.filter((function(e){return t.indexOf(e)<0}))}function unliftState(e){var t=e.computedStates,n=e.currentStateIndex;return n>=t.length?t[t.length-1].state:t[n].state}function unliftAction(e){return e.actionsById[e.nextActionId-1]}function liftAction(e){return new PerformAction(e,+Date.now())}function sanitizeActions(e,t){return Object.keys(t).reduce((function(n,i){var r=Number(i);return n[r]=sanitizeAction(e,t[r],r),n}),{})}function sanitizeAction(e,t,n){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},t),{action:e(t.action,n)})}function sanitizeStates(e,t){return t.map((function(t,n){return{state:sanitizeState(e,t.state,n),error:t.error}}))}function sanitizeState(e,t,n){return e(t,n)}function shouldFilterActions(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function filterLiftedState(e,t,n,i){var r=[],o={},a=[];return e.stagedActionIds.forEach((function(s,c){var u=e.actionsById[s];u&&(c&&isActionFiltered(e.computedStates[c],u,t,n,i)||(o[s]=u,r.push(s),a.push(e.computedStates[c])))})),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),{stagedActionIds:r,actionsById:o,computedStates:a})}function isActionFiltered(e,t,n,i,r){var o=n&&!n(e,t.action),a=i&&!t.action.type.match(i.map((function(e){return escapeRegExp(e)})).join("|")),s=r&&t.action.type.match(r.map((function(e){return escapeRegExp(e)})).join("|"));return o||a||s}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("Redux Devtools Extension"),DevtoolsExtension=function(){function DevtoolsExtension(e,t,n){this.config=t,this.dispatcher=n,this.devtoolsExtension=e,this.createActionStreams()}return DevtoolsExtension.prototype.notify=function(e,t){var n=this;if(this.devtoolsExtension)if(e.type===PERFORM_ACTION){if(t.isLocked||t.isPaused)return;var i=unliftState(t);if(shouldFilterActions(this.config)&&isActionFiltered(i,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;var r=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,i,t.currentStateIndex):i,o=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,e,t.nextActionId):e;this.sendToReduxDevtools((function(){return n.extensionConnection.send(o,r)}))}else{var a=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},t),{stagedActionIds:t.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,t.actionsById):t.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,t.computedStates):t.computedStates});this.sendToReduxDevtools((function(){return n.devtoolsExtension.send(null,a,n.getExtensionConfig(n.config))}))}},DevtoolsExtension.prototype.createChangesObservable=function(){var e=this;return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_4__.a((function(t){var n=e.devtoolsExtension.connect(e.getExtensionConfig(e.config));return e.extensionConnection=n,n.init(),n.subscribe((function(e){return t.next(e)})),n.unsubscribe})):Object(rxjs__WEBPACK_IMPORTED_MODULE_3__.b)()},DevtoolsExtension.prototype.createActionStreams=function(){var e=this,t=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)()),n=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(e){return e.type===ExtensionActionTypes.START}))),i=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(e){return e.type===ExtensionActionTypes.STOP}))),r=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(e){return e.type===ExtensionActionTypes.DISPATCH})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)((function(t){return e.unwrapAction(t.payload)})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)((function(t){return t.type===IMPORT_STATE?e.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(e){return e.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.l})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)((function(){return t})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)((function(){return Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t)})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t)}))),o=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)((function(e){return e.type===ExtensionActionTypes.ACTION})),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)((function(t){return e.unwrapAction(t.payload)}))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(i)),a=r.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(i));this.start$=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(i)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)((function(){return o}))),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)((function(){return a})))},DevtoolsExtension.prototype.unwrapAction=function(action){return"string"==typeof action?eval("("+action+")"):action},DevtoolsExtension.prototype.getExtensionConfig=function(e){var t={name:e.name,features:e.features,serialize:e.serialize};return!1!==e.maxAge&&(t.maxAge=e.maxAge),t},DevtoolsExtension.prototype.sendToReduxDevtools=function(e){try{e()}catch(t){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",t)}},DevtoolsExtension.\u0275fac=function(e){return new(e||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Pb({token:DevtoolsExtension,factory:function(e){return DevtoolsExtension.\u0275fac(e)}}),DevtoolsExtension}(),INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.b},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(e,t,n,i,r){if(i)return{state:n,error:"Interrupted by an error up the chain"};var o,a=n;try{a=e(n,t)}catch(s){o=s.toString(),r.handleError(s.stack||s)}return{state:a,error:o}}function recomputeStates(e,t,n,i,r,o,a,s,c){if(t>=e.length&&e.length===o.length)return e;for(var u=e.slice(0,t),l=o.length-(c?1:0),p=t;p-1?f:computeNextEntry(n,d,g,b,s);u.push(m)}return c&&u.push(e[e.length-1]),u}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(e,t,n,i,r){return void 0===r&&(r={}),function(o){return function(a,s){var c,u=a||t,l=u.monitorState,p=u.actionsById,h=u.nextActionId,d=u.stagedActionIds,f=u.skippedActionIds,g=u.committedState,b=u.currentStateIndex,m=u.computedStates,v=u.isLocked,y=u.isPaused;function w(e){for(var t=e,n=d.slice(1,t+1),i=0;it?b-t:0}function O(){p={0:liftAction(INIT_ACTION)},h=1,d=[0],f=[],g=m[b].state,b=0,m=[]}a||(p=Object.create(p));var C=0;switch(s.type){case LOCK_CHANGES:v=s.status,C=1/0;break;case PAUSE_RECORDING:(y=s.status)?(d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(d,[h]),p[h]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),h++,C=d.length-1,m=m.concat(m[m.length-1]),b===d.length-2&&b++,C=1/0):O();break;case RESET:p={0:liftAction(INIT_ACTION)},h=1,d=[0],f=[],g=e,b=0,m=[];break;case COMMIT:O();break;case ROLLBACK:p={0:liftAction(INIT_ACTION)},h=1,d=[0],f=[],b=0,m=[];break;case TOGGLE_ACTION:var S=s.id,z=f.indexOf(S);f=-1===z?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)([S],f):f.filter((function(e){return e!==S})),C=d.indexOf(S);break;case SET_ACTIONS_ACTIVE:for(var T=s.start,_=s.end,k=s.active,D=[],x=T;x<_;x++)D.push(x);f=k?difference(f,D):Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(f,D),C=d.indexOf(T);break;case JUMP_TO_STATE:b=s.index,C=1/0;break;case JUMP_TO_ACTION:-1!==(z=d.indexOf(s.actionId))&&(b=z),C=1/0;break;case SWEEP:d=difference(d,f),f=[],b=Math.min(b,d.length-1);break;case PERFORM_ACTION:if(v)return a||t;if(y||a&&isActionFiltered(a.computedStates[b],s,r.predicate,r.actionsSafelist,r.actionsBlocklist)){var E=m[m.length-1];m=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(m.slice(0,-1),[computeNextEntry(o,s.action,E.state,E.error,n)]),C=1/0;break}r.maxAge&&d.length===r.maxAge&&w(1),b===d.length-1&&b++;var N=h++;p[N]=s,C=(d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(d,[N])).length-1;break;case IMPORT_STATE:l=(c=s.nextLiftedState).monitorState,p=c.actionsById,h=c.nextActionId,d=c.stagedActionIds,f=c.skippedActionIds,g=c.committedState,b=c.currentStateIndex,m=c.computedStates,v=c.isLocked,y=c.isPaused;break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_2__.b:C=0,r.maxAge&&d.length>r.maxAge&&(m=recomputeStates(m,C,o,g,p,d,f,n,y),w(d.length-r.maxAge),C=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_2__.l:m.filter((function(e){return e.error})).length>0?(C=0,r.maxAge&&d.length>r.maxAge&&(m=recomputeStates(m,C,o,g,p,d,f,n,y),w(d.length-r.maxAge),C=1/0)):(y||v||(b===d.length-1&&b++,N=h++,p[N]=new PerformAction(s,+Date.now()),d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(d,[N]),m=recomputeStates(m,C=d.length-1,o,g,p,d,f,n,y)),m=m.map((function(e){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e),{state:o(e.state,RECOMPUTE_ACTION)})})),b=d.length-1,r.maxAge&&d.length>r.maxAge&&w(d.length-r.maxAge),C=1/0);break;default:C=1/0}return m=recomputeStates(m,C,o,g,p,d,f,n,y),{monitorState:l=i(l,s),actionsById:p,nextActionId:h,stagedActionIds:d,skippedActionIds:f,committedState:g,currentStateIndex:b,computedStates:m,isLocked:v,isPaused:y}}}}var StoreDevtools=function(){function e(e,t,n,i,r,o,a,s){var c=this,u=liftInitialState(a,s.monitor),l=liftReducerWith(a,u,o,s.monitor,s),p=Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(t.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a)(1)),i.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(liftAction)),e,i.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.b)(rxjs__WEBPACK_IMPORTED_MODULE_7__.a)),h=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(l)),d=new rxjs__WEBPACK_IMPORTED_MODULE_8__.a(1),f=p.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(h),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a)((function(e,t){var n=e.state,r=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.e)(t,2),o=r[0],a=(0,r[1])(n,o);return o.type!==PERFORM_ACTION&&shouldFilterActions(s)&&(a=filterLiftedState(a,s.predicate,s.actionsSafelist,s.actionsBlocklist)),i.notify(o,a),{state:a,action:o}}),{state:u,action:null})).subscribe((function(e){var t=e.action;d.next(e.state),t.type===PERFORM_ACTION&&r.next(t.action)})),g=i.start$.subscribe((function(){c.refresh()})),b=d.asObservable(),m=b.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(unliftState));this.extensionStartSubscription=g,this.stateSubscription=f,this.dispatcher=e,this.liftedState=b,this.state=m}return e.prototype.dispatch=function(e){this.dispatcher.next(e)},e.prototype.next=function(e){this.dispatcher.next(e)},e.prototype.error=function(e){},e.prototype.complete=function(){},e.prototype.performAction=function(e){this.dispatch(new PerformAction(e,+Date.now()))},e.prototype.refresh=function(){this.dispatch(new Refresh)},e.prototype.reset=function(){this.dispatch(new Reset(+Date.now()))},e.prototype.rollback=function(){this.dispatch(new Rollback(+Date.now()))},e.prototype.commit=function(){this.dispatch(new Commit(+Date.now()))},e.prototype.sweep=function(){this.dispatch(new Sweep)},e.prototype.toggleAction=function(e){this.dispatch(new ToggleAction(e))},e.prototype.jumpToAction=function(e){this.dispatch(new JumpToAction(e))},e.prototype.jumpToState=function(e){this.dispatch(new JumpToState(e))},e.prototype.importState=function(e){this.dispatch(new ImportState(e))},e.prototype.lockChanges=function(e){this.dispatch(new LockChanges(e))},e.prototype.pauseRecording=function(e){this.dispatch(new PauseRecording(e))},e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.a),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.e),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.f),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(_angular_core__WEBPACK_IMPORTED_MODULE_1__.m),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.c),_angular_core__WEBPACK_IMPORTED_MODULE_1__.dc(STORE_DEVTOOLS_CONFIG))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}var StoreDevtoolsModule=function(){function e(){}var t;return t=e,e.instrument=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.g,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.d,useExisting:DevtoolsDispatcher}]}},e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Rb({type:e}),e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Qb({factory:function(t){return new(t||e)}}),e}()},herJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("dWS+");function r(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var o=r.name.value;if(!n||!n.getDirective(o))return t[o]?e.reportError(new i.a(function(e){return'There can be only one directive named "'.concat(e,'".')}(o),[t[o],r.name])):t[o]=r.name,!1;e.reportError(new i.a(function(e){return'Directive "'.concat(e,'" already exists in the schema. It cannot be redefined.')}(o),r.name))}}}},hkyM:function(e,t){},hliF:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("dWS+"),r=n("L2ys"),o=n("axIb"),a=n("4RMZ");function s(e,t){var n=[],s=new a.a(e);return Object(r.c)(t,Object(r.e)(s,{Field:function(e){var t=s.getFieldDef();if(t&&t.isDeprecated){var r=s.getParentType();if(r){var o=t.deprecationReason;n.push(new i.a("The field ".concat(r.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),e))}}},EnumValue:function(e){var t=s.getEnumValue();if(t&&t.isDeprecated){var r=Object(o.A)(s.getInputType());if(r){var a=t.deprecationReason;n.push(new i.a("The enum value ".concat(r.name,".").concat(t.name," is deprecated.")+(a?" "+a:""),e))}}}})),n}},hyX7:function(e,t,n){const i=n("SbYC"),{defaults:r}=n("vbtb"),{inline:o}=n("e56X"),{findClosingBracket:a,escape:s}=n("rUJ1");e.exports=class e{constructor(e,t){if(this.options=t||r,this.links=e,this.rules=o.normal,this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=o.pedantic:this.options.gfm&&(this.rules=this.options.breaks?o.breaks:o.gfm)}static get rules(){return o}static output(t,n,i){return new e(n,i).output(t)}output(t){let n,i,r,o,c,u,l="";for(;t;)if(c=this.rules.escape.exec(t))t=t.substring(c[0].length),l+=s(c[1]);else if(c=this.rules.tag.exec(t))!this.inLink&&/^/i.test(c[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(c[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(c[0])&&(this.inRawBlock=!1),t=t.substring(c[0].length),l+=this.renderer.html(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):s(c[0]):c[0]);else if(c=this.rules.link.exec(t)){const i=a(c[2],"()");if(i>-1){const e=(0===c[0].indexOf("!")?5:4)+c[1].length+i;c[2]=c[2].substring(0,i),c[0]=c[0].substring(0,e).trim(),c[3]=""}t=t.substring(c[0].length),this.inLink=!0,r=c[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r),n?(r=n[1],o=n[3]):o=""):o=c[3]?c[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(c,{href:e.escapes(r),title:e.escapes(o)}),this.inLink=!1}else if((c=this.rules.reflink.exec(t))||(c=this.rules.nolink.exec(t))){if(t=t.substring(c[0].length),n=(c[2]||c[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){l+=c[0].charAt(0),t=c[0].substring(1)+t;continue}this.inLink=!0,l+=this.outputLink(c,n),this.inLink=!1}else if(c=this.rules.strong.exec(t))t=t.substring(c[0].length),l+=this.renderer.strong(this.output(c[4]||c[3]||c[2]||c[1]));else if(c=this.rules.em.exec(t))t=t.substring(c[0].length),l+=this.renderer.em(this.output(c[6]||c[5]||c[4]||c[3]||c[2]||c[1]));else if(c=this.rules.code.exec(t))t=t.substring(c[0].length),l+=this.renderer.codespan(s(c[2].trim(),!0));else if(c=this.rules.br.exec(t))t=t.substring(c[0].length),l+=this.renderer.br();else if(c=this.rules.del.exec(t))t=t.substring(c[0].length),l+=this.renderer.del(this.output(c[1]));else if(c=this.rules.autolink.exec(t))t=t.substring(c[0].length),"@"===c[2]?(i=s(this.mangle(c[1])),r="mailto:"+i):(i=s(c[1]),r=i),l+=this.renderer.link(r,null,i);else if(this.inLink||!(c=this.rules.url.exec(t))){if(c=this.rules.text.exec(t))t=t.substring(c[0].length),l+=this.renderer.text(this.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):s(c[0]):c[0]:s(this.smartypants(c[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===c[2])i=s(c[0]),r="mailto:"+i;else{do{u=c[0],c[0]=this.rules._backpedal.exec(c[0])[0]}while(u!==c[0]);i=s(c[0]),r="www."===c[1]?"http://"+i:i}t=t.substring(c[0].length),l+=this.renderer.link(r,null,i)}return l}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const n=t.href,i=t.title?s(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,s(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let n,i="",r=0;for(;r.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}}},i1zs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,a.default)(t,t=>{switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?s(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,r.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":const i="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null;n.argDefs=i&&i.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e1,r.options.tooltips))}}c.onUpdateLinting&&c.onUpdateLinting(n,u,e)}function l(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){c(e)}),t.options.delay||500))}e.defineOption("lint",!1,(function(n,i,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",l),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),i){for(var s=n.getOption("gutters"),u=!1,p=0;p{const t=(0,o.onlineParser)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,o.p)("{"),(0,o.list)("Entry",(0,o.p)(",")),(0,o.p)("}")],Entry:[(0,o.t)("String","def"),(0,o.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.list)("Value",(0,o.p)(",")),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.list)("ObjectField",(0,o.p)(",")),(0,o.p)("}")],ObjectField:[(0,o.t)("String","property"),(0,o.p)(":"),"Value"]}},imBb:function(e,t,n){var i;!function(r,o,a){if(r){for(var s,c={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},l={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},p={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1;h<20;++h)c[111+h]="f"+h;for(h=0;h<=9;++h)c[h+96]=h.toString();v.prototype.bind=function(e,t,n){return this._bindMultiple.call(this,e=e instanceof Array?e:[e],t,n),this},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==o&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(c[t]=e[t]);s=null},v.init=function(){var e=v(o);for(var t in e)"_"!==t.charAt(0)&&(v[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},v.init(),r.Mousetrap=v,e.exports&&(e.exports=v),void 0===(i=(function(){return v}).call(t,n,t,e))||(e.exports=i)}function d(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return c[e.which]?c[e.which]:u[e.which]?u[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function b(e,t,n){return n||(n=function(){if(!s)for(var e in s={},c)e>95&&e<112||c.hasOwnProperty(e)&&(s[c[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,i,r,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r1?function(e,t,o,a){function u(t){return function(){s=t,++i[e],clearTimeout(n),n=setTimeout(c,1e3)}}function p(t){l(o,t,e),"keyup"!==a&&(r=f(t)),setTimeout(c,10)}i[e]=0;for(var d=0;d=55296&&v<=56319&&(C+=e[++n]),C=S?h.call(S,z,C,g):C,t?(d.value=C,f(b,g,d)):b[g]=C,++g;m=g}if(void 0===m)for(m=a(e.length),t&&(b=new t(m)),n=0;n",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function r(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),c=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var l=r(o),p=!u&&c>=0&&l.test(s.text.charAt(c))&&i[s.text.charAt(c)]||l.test(s.text.charAt(c+1))&&i[s.text.charAt(++c)];if(!p)return null;var h=">"==p.charAt(1)?1:-1;if(o&&o.strict&&h>0!=(c==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,c+1)),f=a(e,n(t.line,c+(h>0?1:0)),h,d||null,o);return null==f?null:{from:n(t.line,c),to:f&&f.pos,match:f&&f.ch==p.charAt(0),forward:h>0}}function a(e,t,o,a,s){for(var c=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,l=[],p=r(s),h=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),d=t.line;d!=h;d+=o){var f=e.getLine(d);if(f){var g=o>0?0:f.length-1,b=o>0?f.length:-1;if(!(f.length>c))for(d==t.line&&(g=t.ch-(o<0?1:0));g!=b;g+=o){var m=f.charAt(g);if(p.test(m)&&(void 0===a||e.getTokenTypeAt(n(d,g+1))==a)){var v=i[m];if(v&&">"==v.charAt(1)==o>0)l.push(m);else{if(!l.length)return{pos:n(d,g),ch:m};l.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,i,r){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],c=e.listSelections(),u=0;ur))break;o=a}}return o?{from:e.Pos(i.line,n.getLine(i.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}}))}(n("VrN/"))},jZto:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WS_TIMEOUT=3e4},jqYt:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return h}));var i=n("bYjt"),r=n("TYT/"),o=function(){function e(e){this.cdkConnectedOverlay=e,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop"}return e.\u0275fac=function(t){return new(t||e)(r.Tb(i.a))},e.\u0275dir=r.Ob({type:e,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],exportAs:["nzConnectedOverlay"]}),e}(),a=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)}}),e}(),s={top:new i.c({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new i.c({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new i.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new i.c({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new i.c({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new i.c({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new i.c({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new i.c({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new i.c({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new i.c({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new i.c({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new i.c({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new i.c({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new i.c({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},c=[s.top,s.right,s.bottom,s.left],u=[s.bottomLeft,s.bottomRight,s.topLeft,s.topRight],l=[new i.c({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new i.c({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],p=[s.bottomLeft,new i.c({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function h(e){for(var t in s)if(e.connectionPair.originX===s[t].originX&&e.connectionPair.originY===s[t].originY&&e.connectionPair.overlayX===s[t].overlayX&&e.connectionPair.overlayY===s[t].overlayY)return t}},k2qM:function(e,t,n){"use strict";e.exports=function(e){return null!=e}},kBPl:function(e,t,n){"use strict";var i=n("Xt1Y");e.exports=function(e){if(!i(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}},kBjl:function(e,t,n){"use strict";function i(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}n.d(t,"a",(function(){return i}))},kJOp:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("TYT/"),r=n("Valr"),o=function(){function e(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=Object(r.L)(this.platformId)}return e.prototype.check=function(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))},e.prototype.get=function(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);var t=this.getCookieRegExp(e).exec(this.document.cookie);return decodeURIComponent(t[1])}return""},e.prototype.getAll=function(){if(!this.documentIsAccessible)return{};var e={},t=this.document;if(t.cookie&&""!==t.cookie)for(var n=t.cookie.split(";"),i=0;i (https://sirmuel.design/)","homepage":"https://imolorhe.github.io/altair/","scripts":{"ng":"ng","start":"ng serve","build":"npm run generate-settings-schema-validator && node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --prod --aot --stats-json","test-single-run":"ng test --watch=false --code-coverage","test":"jest && ng lint","test:watch":"jest --watch","prepare":"npm run generate-settings-schema-validator && node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --outputHashing=none --prod --aot --stats-json","test-build":"ng lint && npm run build && npm run test-single-run","postinstall":"npm run generate-settings-schema-validator","lint":"ng lint","e2e":"ng e2e","e2e:ci":"ng e2e --webdriver-update=false","generate-settings-schema":"typescript-json-schema --ignoreErrors src/app/store/settings/settings.reducer.ts State > src/app/utils/settings.schema.json","compile-settings-schema-validator":"ajv compile -s src/app/utils/settings.schema.json -o src/app/utils/validate_settings_schema.js","generate-settings-schema-validator":"npm run generate-settings-schema && npm run compile-settings-schema-validator","analyze":"ng build --stats-json && npx webpack-bundle-analyzer dist/stats.json","webdriver-update-ci":"webdriver-manager update --standalone false --gecko false --versions.chrome=83.0.4103.61"},"dependencies":{"@angular/animations":"^9.1.9","@angular/cdk":"^9.2.4","@angular/cli":"^9.1.6","@angular/common":"^9.1.9","@angular/core":"^9.1.9","@angular/forms":"^9.1.9","@angular/platform-browser":"^9.1.9","@angular/platform-browser-dynamic":"^9.1.9","@angular/platform-server":"^9.1.9","@angular/router":"^9.1.9","@briebug/jest-schematic":"^2.1.1","@ctrl/ngx-codemirror":"^3.1.3","@ngrx/effects":"^9.1.2","@ngrx/store":"^9.1.2","@ngrx/store-devtools":"^9.1.2","@ngui/auto-complete":"^3.0.0","@ngx-translate/core":"^12.1.2","@ngx-translate/http-loader":"^4.0.0","@webcomponents/custom-elements":"^1.4.1","angular-feather":"^6.0.10","codemirror":"^5.48.0","codemirror-graphql":"^0.11.1","comlink":"^4.2.0","comment-regex":"^1.0.1","cookie-parser":"^1.4.4","core-js":"^3.1.4","curlup":"^1.0.0","dexie":"^2.0.4","express":"^4.17.1","file-dialog":"^0.0.8","file-saver":"^2.0.2","graphql":"^14.4.2","graphql-query-compress":"^1.2.2","marked":"^0.8.0","memoizee":"^0.4.14","mousetrap":"^1.6.3","mousetrap-global-bind":"^1.1.0","new-github-issue-url":"^0.2.1","ng-zorro-antd":"9.1.2","ngrx-store-localstorage":"^9.0.0","ngx-contextmenu":"^5.4.0","ngx-cookie-service":"^2.2.0","ngx-electron":"^2.1.1","ngx-markdown":"^9.1.1","ngx-pipes":"^2.7.3","ngx-popper":"^7.0.0","ngx-sortablejs":"^3.1.4","ngx-take-until-destroy":"^5.4.0","ngx-toastr":"^12.0.1","popper.js":"^1.15.0","prettier":"^1.18.2","rxjs":"^6.5.5","sortablejs":"^1.10.2","subscriptions-transport-ws":"^0.9.16","sval":"^0.4.6","to-snake-case":"^1.0.0","tslib":"^1.10.0","uuid":"^3.3.2","valid-url":"^1.0.9","zone.js":"~0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"~0.901.6","@angular/compiler":"^9.1.9","@angular/compiler-cli":"^9.1.9","@jest/globals":"^26.0.1","@types/chrome":"^0.0.90","@types/electron":"^1.6.10","@types/file-saver":"^2.0.1","@types/graphql":"^14.5.0","@types/jasmine":"3.5.0","@types/jest":"26.0.0","@types/memoizee":"^0.4.3","@types/mousetrap":"^1.6.3","@types/node":"^12.11.1","@types/prettier":"^1.19.0","@types/to-snake-case":"^1.0.0","@types/uuid":"^3.4.6","ajv":"^6.10.2","ajv-cli":"^3.0.0","babel-plugin-transform-async-to-generator":"^6.24.1","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1","chai":"^4.2.0","chai-as-promised":"^7.1.1","codelyzer":"^5.1.2","jasmine-core":"^3.4.0","jasmine-spec-reporter":"~4.2.1","jest":"26.0.1","jest-preset-angular":"8.2.1","karma-cli":"^2.0.0","ncp":"^2.0.0","ngrx-store-freeze":"^0.2.0","protractor":"^5.4.2","rxjs-tslint-rules":"^4.32.0","start-server-and-test":"^1.10.6","ts-jest":"^26.1.0","ts-mocks":"^2.6.1","ts-node":"^8.3.0","tslint":"^6.1.2","typescript":"3.8.3","typescript-json-schema":"^0.42.0"},"private":true}')},klSw:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("S5bw");function r(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,a=e.windowTime,s=void 0===a?Number.POSITIVE_INFINITY:a,c=e.refCount,u=e.scheduler,l=0,p=!1,h=!1;return function(e){l++,t&&!p||(p=!1,t=new i.a(o,s,u),n=e.subscribe({next:function(e){t.next(e)},error:function(e){p=!0,t.error(e)},complete:function(){h=!0,n=void 0,t.complete()}}));var r=t.subscribe(this);this.add((function(){l--,r.unsubscribe(),n&&!h&&c&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}},lLG3:function(e,t,n){"use strict";var i=n("GpRL");e.exports=function(e){var t;return"function"==typeof e?{set:e,get:e}:(t={get:i(e.get)},void 0!==e.set?(t.set=i(e.set),e.delete&&(t.delete=i(e.delete)),e.clear&&(t.clear=i(e.clear)),t):(t.set=t.get,t))}},lO5s:function(e,t,n){"use strict";var i,r,o,a=n("9Qh4"),s=n("s4AO"),c=n("fEpb").Symbol,u=n("lk0t"),l=n("4D8k"),p=n("Jb7g"),h=Object.create,d=Object.defineProperties,f=Object.defineProperty;if("function"==typeof c)try{String(c()),o=!0}catch(g){}else c=null;r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return i(e)},e.exports=i=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return o?c(t):(n=h(r.prototype),t=void 0===t?"":String(t),d(n,{__description__:a("",t),__name__:a("",u(t))}))},l(i),p(i),d(r.prototype,{constructor:a(i),toString:a("",(function(){return this.__name__}))}),d(i.prototype,{toString:a((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:a((function(){return s(this)}))}),f(i.prototype,i.toPrimitive,a("",(function(){var e=s(this);return"symbol"==typeof e?e:e.toString()}))),f(i.prototype,i.toStringTag,a("c","Symbol")),f(r.prototype,i.toStringTag,a("c",i.prototype[i.toStringTag])),f(r.prototype,i.toPrimitive,a("c",i.prototype[i.toPrimitive]))},lORA:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("dWS+");function r(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new i.a('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}},lWBa:function(e,t,n){"use strict";var i=n("sYVv"),r=Array.isArray;e.exports=function(e){return r(e)?e:i(e)}},lYZG:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("6blF"),r=n("0/uQ"),o=n("G5J1");function a(e){return new i.a((function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(r.a)(n):Object(o.b)()).subscribe(t)}))}},lk0t:function(e,t,n){"use strict";var i=n("9Qh4"),r=Object.defineProperty,o=Object.prototype,a=(0,Object.create)(null);e.exports=function(e){for(var t,n,s=0;a[e+(s||"")];)++s;return a[e+=s||""]=!0,r(o,t="@@"+e,i.gs(null,(function(e){n||(n=!0,r(this,t,i(e)),n=!1)}))),t}},lq5y:function(e,t,n){"use strict";var i=n("YsTz");e.exports=function(e){if(!i(e))throw new TypeError("Cannot use null or undefined");return e}},lup4:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"l",(function(){return l})),n.d(t,"k",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"g",(function(){return d})),n.d(t,"j",(function(){return f}));var i="TOGGLE_HEADER_DIALOG",r="TOGGLE_VARIABLE_DIALOG",o="TOGGLE_SUBSCRIPTION_URL_DIALOG",a="TOGGLE_HISTORY_DIALOG",s="TOGGLE_ADD_TO_COLLECTION_DIALOG",c="TOGGLE_PRE_REQUEST_DIALOG",u=function(){return function(e){this.windowId=e,this.type=i}}(),l=function(){return function(e){this.windowId=e,this.type=r}}(),p=function(){return function(e){this.windowId=e,this.type=o}}(),h=function(){return function(e){this.windowId=e,this.type=a}}(),d=function(){return function(e){this.windowId=e,this.type=s}}(),f=function(){return function(e){this.windowId=e,this.type=c}}()},"m3Q/":function(e,t,n){!function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var i={hint:t};if(n)for(var r in n)i[r]=n[r];return e.showHint(i)},e.defineExtension("showHint",(function(n){n=function(e,t,n){var i=e.options.hintOptions,r={};for(var o in c)r[o]=c[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(e,t)),r}(this,this.getCursor("start"),n);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var r=0;ru.clientHeight+1,E=a.getScrollInfo();if(D>0){var N=k.bottom-k.top;if(b.top-(b.bottom-k.top)-N>0)u.style.top=(v=b.top-N-O)+"px",y=!1;else if(N>_){u.style.height=_-5+"px",u.style.top=(v=b.bottom-k.top-O)+"px";var j=a.getCursor();n.from.ch!=j.ch&&(b=a.cursorCoords(j),u.style.left=(m=b.left-w)+"px",k=u.getBoundingClientRect())}}var I,A=k.right-T;if(A>0&&(k.right-k.left>T&&(u.style.width=T-5+"px",A-=k.right-k.left-T),u.style.left=(m=b.left-A-w)+"px"),x)for(var M=u.firstChild;M;M=M.nextSibling)M.style.paddingRight=a.display.nativeBarWidth+"px";return a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,r=i?{}:n;function o(e,i){var o;o="string"!=typeof i?function(e){return i(e,t)}:n.hasOwnProperty(i)?n[i]:i,r[e]=o}if(i)for(var a in i)i.hasOwnProperty(a)&&o(a,i[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return r}(t,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:l.length,close:function(){t.close()},pick:function(){i.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){I=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(I)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),i=v+E.top-e.top,r=i-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(y||(r+=u.offsetHeight),r<=n.top||r>=n.bottom)return t.close();u.style.top=i+"px",u.style.left=m+E.left-e.left+"px"}),e.on(u,"dblclick",(function(e){var t=o(u,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())})),e.on(u,"click",(function(e){var n=o(u,e.target||e.srcElement);n&&null!=n.hintId&&(i.changeActive(n.hintId),t.options.completeOnSingleClick&&i.pick())})),e.on(u,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),this.scrollToActive(),e.signal(n,"select",l[this.selectedHint],u.childNodes[this.selectedHint]),!0}function s(e,t,n,i){if(e.async)e(t,i,n);else{var r=e(t,n);r&&r.then?r.then(i):i(r)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n],o=this;this.cm.operation((function(){i.hint?i.hint(o.cm,t,i):o.cm.replaceRange(r(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),o.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" CodeMirror-hint-active","")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.hints.childNodes[this.selectedHint],t=this.hints.firstChild;e.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=e.offsetTop+e.offsetHeight-this.hints.clientHeight+t.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var i,r=t.getHelpers(n,"hint");if(r.length){var o=function(e,t,n){var i=function(e,t){if(!e.somethingSelected())return t;for(var n=[],i=0;i0?t(e):r(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var i,r=t.getCursor(),o=t.getTokenAt(r),a=e.Pos(r.line,o.start),s=r;o.start,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n("VrN/"))},m8Fq:function(e,t,n){(function(e){!function(e){"use strict";e.exports.is_uri=n,e.exports.is_http_uri=i,e.exports.is_https_uri=r,e.exports.is_web_uri=o,e.exports.isUri=n,e.exports.isHttpUri=i,e.exports.isHttpsUri=r,e.exports.isWebUri=o;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,i,r,o,a,s="",c="";if(i=(n=t(e))[2],r=n[3],o=n[4],a=n[5],(s=n[1])&&s.length&&r.length>=0){if(i&&i.length){if(0!==r.length&&!/^\//.test(r))return}else if(/^\/\//.test(r))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(s.toLowerCase()))return c+=s+":",i&&i.length&&(c+="//"+i),c+=r,o&&o.length&&(c+="?"+o),a&&a.length&&(c+="#"+a),c}}}function i(e,i){if(n(e)){var r,o,a,s,c="",u="",l="",p="";if(u=(r=t(e))[2],o=r[3],a=r[4],s=r[5],c=r[1]){if(i){if("https"!=c.toLowerCase())return}else if("http"!=c.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(l=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),p+=c+":",p+="//"+u,l&&(p+=l),p+=o,a&&a.length&&(p+="?"+a),s&&s.length&&(p+="#"+s),p}}}function r(e){return i(e,!0)}function o(e){return i(e)||r(e)}}(e)}).call(this,n("YuTi")(e))},mChF:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",(function(){return i}))},mZXl:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var i=n("mrSG"),r=n("FFOo"),o=n("60iU");function a(e,t){return void 0===t&&(t=0),function(n){return n.lift(new s(e,t))}}var s=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.scheduler,this.delay))},e}(),c=function(e){function t(t,n,i){void 0===i&&(i=0);var r=e.call(this,t)||this;return r.scheduler=n,r.delay=i,r}return i.c(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new u(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(o.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(o.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},t}(r.a),u=function(){return function(e,t){this.notification=e,this.destination=t}}()},mki7:function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function i(t,i){t.extendSelectionsBy((function(r){return t.display.shift||t.doc.extend||r.empty()?function(t,i,r){if(r<0&&0==i.ch)return t.clipPos(n(i.line-1));var o=t.getLine(i.line);if(r>0&&i.ch>=o.length)return t.clipPos(n(i.line+1,0));for(var a,s="start",c=i.ch,u=c,l=r<0?0:o.length,p=0;u!=l;u+=r,p++){var h=o.charAt(r<0?u-1:u),d="_"!=h&&e.isWordChar(h)?"w":"o";if("w"==d&&h.toUpperCase()==h&&(d="W"),"start"==s)"o"!=d?(s="in",a=d):c=u+r;else if("in"==s&&a!=d){if("w"==a&&"W"==d&&r<0&&u--,"W"==a&&"w"==d&&r>0){if(u==c+1){a="w";continue}u--}break}}return n(i.line,u)}(t.doc,r.head,i):i<0?r.from():r.to()}))}function r(t,i){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,r=[],o=-1,a=0;a=0;s--){var u=i[r[s]];if(!(c&&e.cmpPos(u.head,c)>0)){var l=o(t,u.head);c=l.from,t.replaceRange(n(l.word),l.from,l.to)}}}))}function p(t){var n=t.getCursor("from"),i=t.getCursor("to");if(0==e.cmpPos(n,i)){var r=o(t,n);if(!r.word)return;n=r.from,i=r.to}return{from:n,to:i,query:t.getRange(n,i),word:r}}function h(e,t){var i=p(e);if(i){var r=i.query,o=e.getSearchCursor(r,t?i.to:i.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(r,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):i.word&&e.setSelection(i.from,i.to))}}t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),i=[],r=0;ro.line&&s==a.line&&0==a.ch||i.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(i,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),i=[],r=0;ro?r.push(u,l):r.length&&(r[r.length-1]=l),o=l}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var i=t.listSelections(),r=[],o=t.lastLine()+1,a=i.length-1;a>=0;a--){var s=i[a],c=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||c--,c=0;e-=2){var i=r[e],o=r[e+1],a=t.getLine(i);i==t.lastLine()?t.replaceRange("",n(i-1),n(i),"+swapLine"):t.replaceRange("",n(i,0),n(i+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),i=[],r=0;r=0;o--){var a=i[o].head,s=t.getRange({line:a.line,ch:0},a),c=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&c%r==0){var l=new n(a.line,e.findColumn(s,c-r,r));l.ch!=a.ch&&(u=l)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange("",t[i].anchor,n(t[i].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){l(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){l(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var i=t.getCursor(),r=n;if(e.cmpPos(i,r)>0){var o=r;r=i,i=o}t.state.sublimeKilled=t.getRange(i,r),t.replaceRange("",i,r)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){h(e,!0)},t.findUnderPrevious=function(e){h(e,!1)},t.findAllUnder=function(e){var t=p(e);if(t){for(var n=e.getSearchCursor(t.query),i=[],r=-1;n.findNext();)i.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&r++;e.setSelections(i,r)}};var d=e.keyMap;d.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(d.macSublime),d.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(d.pcSublime),d.sublime=d.default==d.macDefault?d.macSublime:d.pcSublime}(n("VrN/"),n("uTOq"),n("jDMi"))},mrSG:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"g",(function(){return p}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function p(){for(var e=[],t=0;ta?t.charCoords(e,"local")[n?"top":"bottom"]:t.heightAtLine(c,"local")+(n?0:c.height)}var l=t.lastLine();if(t.display.barWidth)for(var p,h=0;hl)){for(var f=p||u(d.from,!0)*n,g=u(d.to,!1)*n;hl)&&!((p=u(r[h+1].from,!0)*n)>g+.9);)g=u((d=r[++h]).to,!1)*n;if(g!=f){var b=Math.max(g-f,3),m=i.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(f+this.buttonHeight)+"px; height: "+b+"px",m.className=this.options.className,d.id&&m.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(n("VrN/"))},neE4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("t3R0"),r=n("ZZnB"),o=function(e,t,n){this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||Object(i.a)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Object(i.a)(0,"column in locationOffset is 1-indexed and must be positive")};Object(r.a)(o)},nkY7:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return i}))},ny24:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("mrSG"),r=n("MGBS"),o=n("zotm");function a(e){return function(t){return t.lift(new s(e))}}var s=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new c(e),i=Object(o.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n},e}(),c=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return i.c(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(r.a)},o0su:function(e,t,n){"use strict";n.r(t),n.d(t,"ApiService",(function(){return u})),n.d(t,"GqlService",(function(){return l.a})),n.d(t,"DbService",(function(){return d})),n.d(t,"QueryService",(function(){return m})),n.d(t,"WindowService",(function(){return v.a})),n.d(t,"NotifyService",(function(){return y.a})),n.d(t,"DonationService",(function(){return S})),n.d(t,"ElectronAppService",(function(){return x})),n.d(t,"KeybinderService",(function(){return j})),n.d(t,"StorageService",(function(){return pn})),n.d(t,"QueryCollectionService",(function(){return bn})),n.d(t,"EnvironmentService",(function(){return vn})),n.d(t,"PluginRegistryService",(function(){return zn})),n.d(t,"PluginEventService",(function(){return Tn.a})),n.d(t,"PreRequestService",(function(){return kn}));var i=n("XlPw"),r=n("67Y/"),o=n("9Z1F"),a=n("cUzu"),s=n("xyIE"),c=n("TYT/"),u=function(){function e(e){this.http=e,this.headers=new a.g({"Content-Type":"application/json",Accept:"application/json"}),this.api_url=""}return e.prototype.get=function(e){return this.http.get(""+this.api_url+e,{headers:this.headers}).pipe(Object(r.a)(this.checkForError),Object(o.a)((function(e){return Object(i.a)(e)})))},e.prototype.post=function(e,t){return this.http.post(""+this.api_url+e,JSON.stringify(t),{headers:this.headers}).pipe(Object(r.a)(this.checkForError),Object(o.a)((function(e){return Object(i.a)(e)})))},e.prototype.delete=function(e){return this.http.delete(""+this.api_url+e,{headers:this.headers}).pipe(Object(r.a)(this.checkForError),Object(o.a)((function(e){return Object(i.a)(e)})))},e.prototype.setHeaders=function(e){var t=this;Object.keys(e).forEach((function(n){return t.headers.set(n,e[n])}))},e.prototype.setUrl=function(e){this.api_url=e},e.prototype.checkForError=function(e){if(e.status>=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,s.a.error(t),t},e.\u0275fac=function(t){return new(t||e)(c.dc(a.c))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac}),e}(),l=n("JXuU"),p=n("6blF"),h=n("F/XL"),d=function(){function e(){this.storagePrefix="altair:",this.servicePrefix="db:"}return e.prototype.getItemByExactKey=function(e){var t=localStorage.getItem(e);return p.a.create((function(e){if(t)try{var n=JSON.parse(t);e.next(n.value)}catch(i){e.next(t)}else e.next(null)}))},e.prototype.getItem=function(e){return this.getItemByExactKey(this.getItemName(e))},e.prototype.setItem=function(e,t){var n={value:null};return e&&t&&(n.value=t),localStorage.setItem(this.getItemName(e),JSON.stringify(n)),new p.a((function(e){return e.next(null)}))},e.prototype.removeItemByExactKey=function(e){return localStorage.removeItem(e),new p.a((function(e){return e.next(null)}))},e.prototype.removeItem=function(e){return this.removeItemByExactKey(this.getItemName(e))},e.prototype.getAllKeys=function(){var e=this,t=Object.keys(localStorage).filter((function(t){return t.includes(e.storagePrefix)}));return Object(h.a)(t)},e.prototype.getItemName=function(e){return""+this.storagePrefix+this.servicePrefix+e},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),f=n("sia0"),g=n("xKU2"),b=n("6onV"),m=function(){function e(e,t){this.db=e,this.store=t}return e.prototype.loadUrl=function(e){var t=this;return this.db.getItem(e+":url").subscribe((function(n){n&&t.store.dispatch(new f.X({url:n},e))}))},e.prototype.loadQuery=function(e){var t=this;return this.db.getItem(e+":query").subscribe((function(n){n&&t.store.dispatch(new f.N(n,e))}))},e.prototype.loadIntrospection=function(e){var t=this;return this.db.getItem(e+":introspection").subscribe((function(n){n&&t.store.dispatch(new g.m(n,e))}))},e.prototype.storeUrl=function(e,t){return this.db.setItem(t+":url",e)},e.prototype.storeQuery=function(e,t){return this.db.setItem(t+":query",e)},e.prototype.storeIntrospection=function(e,t){return this.db.setItem(t+":introspection",e)},e.\u0275fac=function(t){return new(t||e)(c.dc(d),c.dc(b.h))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac}),e}(),v=n("QvHX"),y=n("x/P+"),w=n("dzgT"),O=n("Vx+w");function C(e){return function(e){var t,n,i=1,r=0;if(e)for(i=0,t=e.length-1;t>=0;t--)i=0!=(r=266338304&(i=(i<<6&268435455)+(n=e.charCodeAt(t))+(n<<14)))?i^r>>21:i;return String(i)}(navigator.userAgent+":"+e)}var S=function(){function e(e,t){this.dbService=e,this.altairConfig=t,this.actionCountKey="dac",this.seedKey="ds",this.hashKey="dh",this.seedBuff=1e5}return e.prototype.donated=function(){var e=Math.random()*this.seedBuff;this.dbService.setItem(this.seedKey,e),this.dbService.setItem(this.hashKey,C(e.toString())),this.dbService.setItem(this.actionCountKey,0)},e.prototype.trackAndCheckIfEligible=function(){var e=this,t=this.dbService.getItem(this.actionCountKey),n=this.dbService.getItem(this.seedKey),i=this.dbService.getItem(this.hashKey);return p.a.create((function(r){Object(w.a)(t,n,i).subscribe((function(t){var n=t[0],i=t[1],o=t[2];return n&&n>=e.altairConfig.donation.action_count_threshold?(e.dbService.setItem(e.actionCountKey,0),i&&C(i)===o?r.next(!1):r.next(!0)):(e.dbService.setItem(e.actionCountKey,n+1),r.next(!1))}))}))},e.\u0275fac=function(t){return new(t||e)(c.dc(d),c.dc(O.a))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac}),e}(),z=n("P6uZ"),T=n("fYDj"),_=n("Rp7s"),k=n("6a34"),D=n("F6OF"),x=function(){function e(e,t,n,i,r){var o=this;this.electron=e,this.store=t,this.windowService=n,this.notifyService=i,this.zone=r,this.activeWindowId="",this.ipc=window.ipc,this.store.subscribe((function(e){o.windowIds=Object.keys(e.windows),o.activeWindowId=e.windowsMeta.activeWindowId}))}return e.prototype.connect=function(){var e=this;this.electron.isElectronApp&&(this.ipc.on("file-opened",(function(t,n){e.zone.run((function(){return e.windowService.importStringData(n)}))})),this.ipc.on("certificate-error",(function(t,n){e.zone.run((function(){return e.notifyService.warning("\n Your request has an invalid certificate.\n You should check that your request is coming from a trusted source.\n ",void 0,{tapToDismiss:!0})}))})),this.ipc.on("create-tab",(function(){e.zone.run((function(){return e.windowService.newWindow().pipe(Object(z.a)()).subscribe()}))})),this.ipc.on("close-tab",(function(){e.zone.run((function(){e.windowIds.length>1&&e.windowService.removeWindow(e.activeWindowId)}))})),this.ipc.on("next-tab",(function(){e.zone.run((function(){return e.store.dispatch(new _.m)}))})),this.ipc.on("previous-tab",(function(){e.zone.run((function(){return e.store.dispatch(new _.n)}))})),this.ipc.on("reopen-closed-tab",(function(){e.zone.run((function(){return e.store.dispatch(new k.l)}))})),this.ipc.on("send-request",(function(){e.zone.run((function(){return e.store.dispatch(new f.J(e.activeWindowId))}))})),this.ipc.on("reload-docs",(function(){e.zone.run((function(){return e.store.dispatch(new f.I(e.activeWindowId))}))})),this.ipc.on("show-docs",(function(){e.zone.run((function(){return e.store.dispatch(new T.h(e.activeWindowId))}))})),this.ipc.on("show-settings",(function(){e.zone.run((function(){return e.store.dispatch(new _.t({value:!0}))}))})),s.a.log("Electron app connected."),this.ipc.send("get-file-opened"))},e.prototype.setHeaders=function(e){this.electron.isElectronApp&&this.ipc.sendSync("set-headers-sync",e)},e.prototype.isElectronApp=function(){return this.electron.isElectronApp},e.\u0275fac=function(t){return new(t||e)(c.dc(D.a),c.dc(b.h),c.dc(v.a),c.dc(y.a),c.dc(c.z))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac}),e}(),E=n("imBb"),N=(n("XcA1"),n("lup4")),j=function(){function e(e,t,n,i){var r=this;this.store=e,this.windowService=t,this.electronService=n,this.zone=i,this.activeWindowId="",this.shortcuts=[],this.store.subscribe((function(e){r.windowIds=Object.keys(e.windows),r.activeWindowId=e.windowsMeta.activeWindowId}))}return e.prototype.connect=function(){var e=this;this.bindShortcut(["Ctrl+Shift+V"],(function(){return e.store.dispatch(new N.l(e.activeWindowId))}),"Toggle Variable Pane"),this.bindShortcut(["Ctrl+Shift+H"],(function(){return e.store.dispatch(new N.h(e.activeWindowId))}),"Toggle Header Pane"),this.bindShortcut(["Ctrl+Shift+R"],(function(){return e.store.dispatch(new f.I(e.activeWindowId))}),"Reload Docs"),this.bindShortcut(["Ctrl+Shift+D"],(function(){return e.store.dispatch(new T.h(e.activeWindowId))}),"Toggle Docs"),this.bindShortcut(["Ctrl+Shift+P"],(function(){return e.store.dispatch(new f.n(e.activeWindowId))}),"Prettify Query"),this.bindShortcut(["Command+Enter","Ctrl+Enter"],(function(){return e.store.dispatch(new f.J(e.activeWindowId))}),"Send Request")},e.prototype.bindShortcut=function(e,t,n){var i=this;return void 0===n&&(n=""),this.shortcuts.push({keys:e,description:n}),E.bindGlobal(e.map((function(e){return e.toLowerCase()})),(function(){return i.zone.run(t)}))},e.prototype.getShortcuts=function(){var e=[{title:"General",shortcuts:this.shortcuts},{title:"Editor",shortcuts:[{keys:["Ctrl+D"],description:"Jump to docs"},{keys:["Ctrl+F","Alt+F"],description:"Search in context"},{keys:["Ctrl+/","Command+/"],description:"Toggle comment"},{keys:["Ctrl+Shift+Enter"],description:"Fill all fields"}]}];return this.electronService.isElectronApp()&&e.push({title:"Electron Shortcuts",shortcuts:[]}),e},e.\u0275fac=function(t){return new(t||e)(c.dc(b.h),c.dc(v.a),c.dc(x),c.dc(c.z))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac}),e}(),I=Object.keys,A=Array.isArray,M="undefined"!=typeof self?self:"undefined"!=typeof window?window:global;function L(e,t){return"object"!=typeof t||I(t).forEach((function(n){e[n]=t[n]})),e}var P=Object.getPrototypeOf,F={}.hasOwnProperty;function R(e,t){return F.call(e,t)}function V(e,t){"function"==typeof t&&(t=t(P(e))),I(t).forEach((function(n){Y(e,n,t[n])}))}var B=Object.defineProperty;function Y(e,t,n,i){B(e,t,L(n&&R(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},i))}function U(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Y(e.prototype,"constructor",e),{extend:V.bind(null,e.prototype)}}}}var H=Object.getOwnPropertyDescriptor,W=[].slice;function q(e,t,n){return W.call(e,t,n)}function Z(e,t){return t(e)}function $(e){if(!e)throw new Error("Assertion Failed")}function G(e){M.setImmediate?setImmediate(e):setTimeout(e,0)}function Q(e,t){return e.reduce((function(e,n,i){var r=t(n,i);return r&&(e[r[0]]=r[1]),e}),{})}function X(e,t,n){try{e.apply(null,n)}catch(i){t&&t(i)}}function K(e,t){if(R(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],i=0,r=t.length;i=0)t=e;else for(var r in t=e.constructor?Object.create(e.constructor.prototype):{},e)R(e,r)&&(t[r]=re(e[r]));return t}function oe(e,t,n,i){return n=n||{},i=i||"",I(e).forEach((function(r){if(R(t,r)){var o=e[r],a=t[r];"object"==typeof o&&"object"==typeof a&&o&&a&&""+o.constructor==""+a.constructor?oe(o,a,n,i+r+"."):o!==a&&(n[i+r]=t[r])}else n[i+r]=void 0})),I(t).forEach((function(r){R(e,r)||(n[i+r]=t[r])})),n}var ae="undefined"!=typeof Symbol&&Symbol.iterator,se=ae?function(e){var t;return null!=e&&(t=e[ae])&&t.apply(e)}:function(){return null},ce={};function ue(e){var t,n,i,r;if(1===arguments.length){if(A(e))return e.slice();if(this===ce&&"string"==typeof e)return[e];if(r=se(e)){for(n=[];!(i=r.next()).done;)n.push(i.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var le="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function pe(e,t){le=e,he=t}var he=function(){return!0},de=!new Error("").stack;function fe(){if(de)try{throw new Error}catch(e){return e}return new Error}function ge(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(he).map((function(e){return"\n"+e})).join("")):""}var be=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],me=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(be),ve={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function ye(e,t){this._e=fe(),this.name=e,this.message=t}function we(e,t,n,i){this._e=fe(),this.failures=t,this.failedKeys=i,this.successCount=n}function Oe(e,t){this._e=fe(),this.name="BulkError",this.failures=t,this.message=function(e,t){return e+". Errors: "+t.map((function(e){return e.toString()})).filter((function(e,t,n){return n.indexOf(e)===t})).join("\n")}(e,t)}U(ye).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+ge(this._e,2))}},toString:function(){return this.name+": "+this.message}}),U(we).from(ye),U(Oe).from(ye);var Ce=me.reduce((function(e,t){return e[t]=t+"Error",e}),{}),Se=ye,ze=me.reduce((function(e,t){var n=t+"Error";function i(e,i){this._e=fe(),this.name=n,e?"string"==typeof e?(this.message=e,this.inner=i||null):"object"==typeof e&&(this.message=e.name+" "+e.message,this.inner=e):(this.message=ve[t]||n,this.inner=null)}return U(i).from(Se),e[t]=i,e}),{});ze.Syntax=SyntaxError,ze.Type=TypeError,ze.Range=RangeError;var Te=be.reduce((function(e,t){return e[t+"Error"]=ze[t],e}),{}),_e=me.reduce((function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ze[t]),e}),{});function ke(){}function De(e){return e}function xe(e,t){return null==e||e===De?t:function(n){return t(e(n))}}function Ee(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Ne(e,t){return e===ke?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var i=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?Ee(i,this.onsuccess):i),r&&(this.onerror=this.onerror?Ee(r,this.onerror):r),void 0!==o?o:n}}function je(e,t){return e===ke?t:function(){e.apply(this,arguments);var n=this.onsuccess,i=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?Ee(n,this.onsuccess):n),i&&(this.onerror=this.onerror?Ee(i,this.onerror):i)}}function Ie(e,t){return e===ke?t:function(n){var i=e.apply(this,arguments);L(n,i);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?Ee(r,this.onsuccess):r),o&&(this.onerror=this.onerror?Ee(o,this.onerror):o),void 0===i?void 0===a?void 0:a:L(i,a)}}function Ae(e,t){return e===ke?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function Me(e,t){return e===ke?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var i=this,r=arguments.length,o=new Array(r);r--;)o[r]=arguments[r];return n.then((function(){return t.apply(i,o)}))}return t.apply(this,arguments)}}_e.ModifyError=we,_e.DexieError=ye,_e.BulkError=Oe;var Le={},Pe=function(){try{return new Function("let F=async ()=>{},p=F();return [p,Object.getPrototypeOf(p),Promise.resolve(),F.constructor];")()}catch(t){var e=M.Promise;return e?[e.resolve(),e.prototype,e.resolve()]:[]}}(),Fe=Pe[0],Re=Pe[1],Ve=Pe[2],Be=Re&&Re.then,Ye=Fe&&Fe.constructor,Ue=Pe[3],He=!!Ve,We=!1,qe=Ve?function(){Ve.then(ft)}:M.setImmediate?setImmediate.bind(null,ft):M.MutationObserver?function(){var e=document.createElement("div");new MutationObserver((function(){ft(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(ft,0)},Ze=function(e,t){nt.push([e,t]),Ge&&(qe(),Ge=!1)},$e=!0,Ge=!0,Qe=[],Xe=[],Ke=null,Je=De,et={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Pt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(e){try{Pt(e[0],e[1])}catch(t){}}))}},tt=et,nt=[],it=0,rt=[];function ot(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ke,this._lib=!1;var t=this._PSD=tt;if(le&&(this._stackHolder=fe(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==Le)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&ut(this,this._value))}this._state=null,this._value=null,++t.ref,ct(this,e)}var at={get:function(){var e=tt,t=zt;function n(n,i){var r=this,o=!e.global&&(e!==tt||t!==zt);o&&Dt();var a=new ot((function(t,a){pt(r,new st(Mt(n,e,o),Mt(i,e,o),t,a,e))}));return le&&dt(a,this),a}return n.prototype=Le,n},set:function(e){Y(this,"then",e&&e.prototype===Le?at:{get:function(){return e},set:at.set})}};function st(e,t,n,i,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=i,this.psd=r}function ct(e,t){try{t((function(t){if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&>();t&&"function"==typeof t.then?ct(e,(function(e,n){t instanceof ot?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,lt(e)),n&&bt()}}),ut.bind(null,e))}catch(n){ut(e,n)}}function ut(e,t){if(Xe.push(t),null===e._state){var n=e._lib&>();t=Je(t),e._state=!1,e._value=t,le&&null!==t&&"object"==typeof t&&!t._promise&&X((function(){var n=function e(t,n){var i;return H(t,n)||(i=P(t))&&e(i,n)}(t,"stack");t._promise=e,Y(t,"stack",{get:function(){return We?n&&(n.get?n.get.apply(t):n.value):e.stack}})})),function(e){Qe.some((function(t){return t._value===e._value}))||Qe.push(e)}(e),lt(e),n&&bt()}}function lt(e){var t=e._listeners;e._listeners=[];for(var n=0,i=t.length;n0;)for(e=nt,nt=[],n=e.length,t=0;t0);$e=!0,Ge=!0}function mt(){var e=Qe;Qe=[],e.forEach((function(e){e._PSD.onunhandled.call(null,e._value,e)}));for(var t=rt.slice(0),n=t.length;n;)t[--n]()}function vt(e){return new ot(Le,!1,e)}function yt(e,t){var n=tt;return function(){var i=gt(),r=tt;try{return jt(n,!0),e.apply(this,arguments)}catch(o){t&&t(o)}finally{jt(r,!1),i&&bt()}}}V(ot.prototype,{then:at,_then:function(e,t){pt(this,new st(null,null,e,t,tt))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return this.then(null,"function"==typeof t?function(e){return e instanceof t?n(e):vt(e)}:function(e){return e&&e.name===t?n(e):vt(e)})},finally:function(e){return this.then((function(t){return e(),t}),(function(t){return e(),vt(t)}))},stack:{get:function(){if(this._stack)return this._stack;try{We=!0;var e=function e(t,n,i){if(n.length===i)return n;var r="";if(!1===t._state){var o,a,s=t._value;null!=s?(o=s.name||"Error",a=s.message||s,r=ge(s,0)):(o=s,a=""),n.push(o+(a?": "+a:"")+r)}return le&&((r=ge(t._stackHolder,2))&&-1===n.indexOf(r)&&n.push(r),t._prev&&e(t._prev,n,i)),n}(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{We=!1}}},timeout:function(e,t){var n=this;return e<1/0?new ot((function(i,r){var o=setTimeout((function(){return r(new ze.Timeout(t))}),e);n.then(i,r).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&Y(ot.prototype,Symbol.toStringTag,"Promise"),et.env=It(),V(ot,{all:function(){var e=ue.apply(null,arguments).map(xt);return new ot((function(t,n){0===e.length&&t([]);var i=e.length;e.forEach((function(r,o){return ot.resolve(r).then((function(n){e[o]=n,--i||t(e)}),n)}))}))},resolve:function(e){if(e instanceof ot)return e;if(e&&"function"==typeof e.then)return new ot((function(t,n){e.then(t,n)}));var t=new ot(Le,!0,e);return dt(t,Ke),t},reject:vt,race:function(){var e=ue.apply(null,arguments).map(xt);return new ot((function(t,n){e.map((function(e){return ot.resolve(e).then(t,n)}))}))},PSD:{get:function(){return tt},set:function(e){return tt=e}},newPSD:_t,usePSD:At,scheduler:{get:function(){return Ze},set:function(e){Ze=e}},rejectionMapper:{get:function(){return Je},set:function(e){Je=e}},follow:function(e,t){return new ot((function(n,i){return _t((function(t,n){var i=tt;i.unhandleds=[],i.onunhandled=n,i.finalize=Ee((function(){var e=this;rt.push((function i(){0===e.unhandleds.length?t():n(e.unhandleds[0]),rt.splice(rt.indexOf(i),1)})),++it,Ze((function(){0==--it&&mt()}),[])}),i.finalize),e()}),t,n,i)}))}});var wt={awaits:0,echoes:0,id:0},Ot=0,Ct=[],St=0,zt=0,Tt=0;function _t(e,t,n,i){var r=tt,o=Object.create(r);o.parent=r,o.ref=0,o.global=!1,o.id=++Tt;var a=et.env;o.env=He?{Promise:ot,PromiseProp:{value:ot,configurable:!0,writable:!0},all:ot.all,race:ot.race,resolve:ot.resolve,reject:ot.reject,nthen:Lt(a.nthen,o),gthen:Lt(a.gthen,o)}:{},t&&L(o,t),++r.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=At(o,e,n,i);return 0===o.ref&&o.finalize(),s}function kt(){return wt.id||(wt.id=++Ot),++wt.awaits,wt.echoes+=7,wt.id}function Dt(e){!wt.awaits||e&&e!==wt.id||(0==--wt.awaits&&(wt.id=0),wt.echoes=7*wt.awaits)}function xt(e){return wt.echoes&&e&&e.constructor===Ye?(kt(),e.then((function(e){return Dt(),e}),(function(e){return Dt(),Ft(e)}))):e}function Et(e){++zt,wt.echoes&&0!=--wt.echoes||(wt.echoes=wt.id=0),Ct.push(tt),jt(e,!0)}function Nt(){var e=Ct[Ct.length-1];Ct.pop(),jt(e,!1)}function jt(e,t){var n,i=tt;if((t?!wt.echoes||St++&&e===tt:!St||--St&&e===tt)||(n=t?Et.bind(null,e):Nt,Be.call(Fe,n)),e!==tt&&(tt=e,i===et&&(et.env=It()),He)){var r=et.env.Promise,o=e.env;Re.then=o.nthen,r.prototype.then=o.gthen,(i.global||e.global)&&(Object.defineProperty(M,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject)}}function It(){var e=M.Promise;return He?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(M,"Promise"),all:e.all,race:e.race,resolve:e.resolve,reject:e.reject,nthen:Re.then,gthen:e.prototype.then}:{}}function At(e,t,n,i,r){var o=tt;try{return jt(e,!0),t(n,i,r)}finally{jt(o,!1)}}function Mt(e,t,n){return"function"!=typeof e?e:function(){var i=tt;n&&kt(),jt(t,!0);try{return e.apply(this,arguments)}finally{jt(i,!1)}}}function Lt(e,t){return function(n,i){return e.call(this,Mt(n,t,!1),Mt(i,t,!1))}}function Pt(e,t){var n;try{n=t.onuncatched(e)}catch(o){}if(!1!==n)try{var i,r={promise:t,reason:e};if(M.document&&document.createEvent?((i=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),L(i,r)):M.CustomEvent&&L(i=new CustomEvent("unhandledrejection",{detail:r}),r),i&&M.dispatchEvent&&(dispatchEvent(i),!M.PromiseRejectionEvent&&M.onunhandledrejection))try{M.onunhandledrejection(i)}catch(a){}i.defaultPrevented||console.warn("Unhandled rejection: "+(e.stack||e))}catch(o){}}var Ft=ot.reject;function Rt(e){var t={},n=function(n,i){if(i){for(var r=arguments.length,o=new Array(r-1);--r;)o[r-1]=arguments[r];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=o;for(var i=1,r=arguments.length;i0?e:t}function pe(e,t){return p.cmp(e,t)}function he(e,t){return p.cmp(t,e)}function de(e,t){return et?-1:e===t?0:1}function me(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}function ve(e,t){for(var n=t.db.objectStoreNames,i=0;ie})).forEach((function(e){i.push((function(){var i=d,r=e._cfg.dbschema;ve(i,n),ve(r,n),d=S._dbSchema=r;var a=function(e,t){var n={del:[],add:[],change:[]};for(var i in e)t[i]||n.del.push(i);for(i in t){var r=e[i],o=t[i];if(r){var a={name:i,def:o,recreate:!1,del:[],add:[],change:[]};if(r.primKey.src!==o.primKey.src)a.recreate=!0,n.change.push(a);else{var s=r.idxByName,c=o.idxByName;for(var u in s)c[u]||a.del.push(u);for(u in c){var l=s[u],p=c[u];l?l.src!==p.src&&a.change.push(p):a.add.push(p)}(a.del.length>0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}else n.add.push([i,o])}return n}(i,r);if(a.add.forEach((function(e){x(n,e[0],e[1].primKey,e[1].indexes)})),a.change.forEach((function(e){if(e.recreate)throw new ze.Upgrade("Not yet support for changing primary key");var t=n.objectStore(e.name);e.add.forEach((function(e){E(t,e)})),e.change.forEach((function(e){t.deleteIndex(e.name),E(t,e)})),e.del.forEach((function(e){t.deleteIndex(e)}))})),e._cfg.contentUpgrade)return o=!0,ot.follow((function(){e._cfg.contentUpgrade(t)}))})),i.push((function(t){o&&qt||function(e,t){for(var n=0;nMath.pow(2,62)?0:t.oldVersion)/10,i,n)}),n),r.onsuccess=yt((function(){if(i=null,m=r.result,Ht.push(S),_)!function(){if(S.verno=m.version/10,S._dbSchema=d={},0!==(g=q(m.objectStoreNames,0)).length){var e=m.transaction(an(g),"readonly");g.forEach((function(t){for(var n=e.objectStore(t),i=n.keyPath,r=i&&"string"==typeof i&&-1!==i.indexOf("."),o=new rn(i,i||"",!1,!1,!!n.autoIncrement,i&&"string"!=typeof i,r),a=[],s=0;s0)try{ve(d,m.transaction(an(m.objectStoreNames),"readonly"))}catch(n){}m.onversionchange=yt((function(e){S._vcFired=!0,S.on("versionchange").fire(e)})),k||"__dbnames"===e||Vt.dbnames.put({name:e}).catch(ke),t()}),n)}))]).then((function(){return w=[],ot.resolve(Gt.vip(S.on.ready.fire)).then((function e(){if(w.length>0){var t=w.reduce(Me,ke);return w=[],ot.resolve(Gt.vip(t)).then(e)}}))})).finally((function(){w=null})).then((function(){return y=!1,S})).catch((function(e){try{i&&i.abort()}catch(t){}return y=!1,S.close(),Ft(v=e)})).finally((function(){O=!0,t()}))},this.close=function(){var e=Ht.indexOf(S);if(e>=0&&Ht.splice(e,1),m){try{m.close()}catch(t){}m=null}l=!1,v=new ze.DatabaseClosed,y&&i(v),z=new ot((function(e){n=e})),T=new ot((function(e,t){i=t}))},this.delete=function(){var t=arguments.length>0;return new ot((function(n,i){if(t)throw new ze.InvalidArgument("Arguments not allowed in db.delete()");function r(){S.close();var t=p.deleteDatabase(e);t.onsuccess=yt((function(){k||Vt.dbnames.delete(e).catch(ke),n()})),t.onerror=Kt(i),t.onblocked=ye}y?z.then(r):r()}))},this.backendDB=function(){return m},this.isOpen=function(){return null!==m},this.hasBeenClosed=function(){return v&&v instanceof ze.DatabaseClosed},this.hasFailed=function(){return null!==v},this.dynamicallyOpened=function(){return _},this.name=e,V(this,{tables:{get:function(){return I(b).map((function(e){return b[e]}))}}}),this.on=Rt(this,"populate","blocked","versionchange",{ready:[Me,ke]}),this.on.ready.subscribe=Z(this.on.ready.subscribe,(function(e){return function(t,n){Gt.vip((function(){O?(v||ot.resolve().then(t),n&&e(t)):w?(w.push(t),n&&e(t)):(e(t),n||e((function e(){S.on.ready.unsubscribe(t),S.on.ready.unsubscribe(e)})))}))}})),this.transaction=function(){var e=N.apply(this,arguments);return this._transaction.apply(this,e)},this._transaction=function(e,t,n){var i=tt.trans;i&&i.db===S&&-1===e.indexOf("!")||(i=null);var r=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{var o=t.map((function(e){var t=e instanceof j?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}));if("r"==e||"readonly"==e)e="readonly";else{if("rw"!=e&&e!=C)throw new ze.InvalidArgument("Invalid transaction mode: "+e);e=C}if(i){if("readonly"===i.mode&&e===C){if(!r)throw new ze.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i=null}i&&o.forEach((function(e){if(i&&-1===i.storeNames.indexOf(e)){if(!r)throw new ze.SubTransaction("Table "+e+" not included in parent transaction.");i=null}})),r&&i&&!i.active&&(i=null)}}catch(s){return i?i._promise(null,(function(e,t){t(s)})):Ft(s)}return i?i._promise(e,a,"lock"):tt.trans?At(tt.transless,(function(){return S._whenReady(a)})):S._whenReady(a);function a(){return ot.resolve().then((function(){var t,r=tt.transless||tt,a=S._createTransaction(e,o,d,i),s={trans:a,transless:r};i?a.idbtrans=i.idbtrans:a.create(),n.constructor===Ue&&kt();var c=ot.follow((function(){if(t=n.call(a,a))if(t.constructor===Ye){var e=Dt.bind(null,null);t.then(e,e)}else"function"==typeof t.next&&"function"==typeof t.throw&&(t=nn(t))}),s);return(t&&"function"==typeof t.then?ot.resolve(t).then((function(e){return a.active?e:Ft(new ze.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):c.then((function(){return t}))).then((function(e){return i&&a._resolve(),a._completion.then((function(){return e}))})).catch((function(e){return a._reject(e),Ft(e)}))}))}},this.table=function(e){if(!R(b,e))throw new ze.InvalidTable("Table "+e+" does not exist");return b[e]},V(j.prototype,{_trans:function(e,t,n){var i=this._tx||tt.trans;return i&&i.db===S?i===tt.trans?i._promise(e,t,n):_t((function(){return i._promise(e,t,n)}),{trans:i,transless:tt.transless||tt}):function e(t,n,i){if(O||tt.letThrough){var r=S._createTransaction(t,n,d);try{r.create()}catch(o){return Ft(o)}return r._promise(t,(function(e,t){return _t((function(){return tt.trans=r,i(e,t,r)}))})).then((function(e){return r._completion.then((function(){return e}))}))}if(!y){if(!l)return Ft(new ze.DatabaseClosed);S.open().catch(ke)}return z.then((function(){return e(t,n,i)}))}(e,[this.name],t)},_idbstore:function(e,t,n){var i=this.name;return this._trans(e,(function(e,n,r){if(-1===r.storeNames.indexOf(i))throw new ze.NotFound("Table"+i+" not part of transaction");return t(e,n,r.idbtrans.objectStore(i),r)}),n)},get:function(e,t){if(e&&e.constructor===Object)return this.where(e).first(t);var n=this;return this._idbstore("readonly",(function(t,i,r){var o=r.get(e);o.onerror=Kt(i),o.onsuccess=yt((function(){t(n.hook.reading.fire(o.result))}),i)})).then(t)},where:function(e){if("string"==typeof e)return new U(this,e);if(A(e))return new U(this,"["+e.join("+")+"]");var t=I(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(e){return e.compound&&t.every((function(t){return e.keyPath.indexOf(t)>=0}))&&e.keyPath.every((function(e){return t.indexOf(e)>=0}))}))[0];if(n&&Yt!==Bt)return this.where(n.name).equals(n.keyPath.map((function(t){return e[t]})));n||console.warn("The query "+JSON.stringify(e)+" on "+this.name+" would benefit of a compound index ["+t.join("+")+"]");var i=this.schema.idxByName,r=t.reduce((function(t,n){return[t[0]||i[n],t[0]||!i[n]?me(t[1],(function(t){return""+K(t,n)==""+e[n]})):t[1]]}),[null,null]),o=r[0];return o?this.where(o.name).equals(e[o.keyPath]).filter(r[1]):n?this.filter(r[1]):this.where(t).equals("")},count:function(e){return this.toCollection().count(e)},offset:function(e){return this.toCollection().offset(e)},limit:function(e){return this.toCollection().limit(e)},reverse:function(){return this.toCollection().reverse()},filter:function(e){return this.toCollection().and(e)},each:function(e){return this.toCollection().each(e)},toArray:function(e){return this.toCollection().toArray(e)},orderBy:function(e){return new H(new U(this,A(e)?"["+e.join("+")+"]":e))},toCollection:function(){return new H(new U(this))},mapToClass:function(e,t){this.schema.mappedClass=e;var n=Object.create(e.prototype);t&&Qt(n,t),this.schema.instanceTemplate=n;var i=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var i in t)if(R(t,i))try{n[i]=t[i]}catch(r){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=i,this.hook("reading",i),e},defineClass:function(e){return this.mapToClass(Gt.defineClass(e),e)},bulkDelete:function(e){return this.hook.deleting.fire===ke?this._idbstore(C,(function(t,n,i,r){t(F(i,r,e,!1,ke))})):this.where(":id").anyOf(e).delete().then((function(){}))},bulkPut:function(e,t){var n=this;return this._idbstore(C,(function(i,r,o){if(!o.keyPath&&!n.schema.primKey.auto&&!t)throw new ze.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument");if(o.keyPath&&t)throw new ze.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(t&&t.length!==e.length)throw new ze.InvalidArgument("Arguments objects and keys must have the same length");if(0===e.length)return i();var a,s,c=function(e){0===u.length?i(e):r(new Oe(n.name+".bulkPut(): "+u.length+" of "+l+" operations failed",u))},u=[],l=e.length,p=n;if(n.hook.creating.fire===ke&&n.hook.updating.fire===ke){s=P(u);for(var h=0,d=e.length;h=0;--r){var o=f[r];(null==o||g[o])&&(n.push(e[r]),t&&i.push(o),null!=o&&(g[o]=null))}return n.reverse(),t&&i.reverse(),p.bulkAdd(n,i)})).then((function(e){var t=f[f.length-1];return null!=t?t:e})):p.bulkAdd(e)).then(c).catch(Oe,(function(e){u=u.concat(e.failures),c()})).catch(r)}}),"locked")},bulkAdd:function(e,t){var n=this,i=this.hook.creating.fire;return this._idbstore(C,(function(r,o,a,s){if(!a.keyPath&&!n.schema.primKey.auto&&!t)throw new ze.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument");if(a.keyPath&&t)throw new ze.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(t&&t.length!==e.length)throw new ze.InvalidArgument("Arguments objects and keys must have the same length");if(0===e.length)return r();function c(e){0===h.length?r(e):o(new Oe(n.name+".bulkAdd(): "+h.length+" of "+d+" operations failed",h))}var u,l,p,h=[],d=e.length;if(i!==ke){var f,g=a.keyPath;l=P(h,null,!0),p=Xt(null),X((function(){for(var n=0,r=e.length;n0&&!this._locked();){var e=this._blockedFuncs.shift();try{At(e[1],e[0])}catch(t){}}return this},_locked:function(){return this._reculock&&tt.lockOwnerFor!==this},create:function(e){var t=this;if(!this.mode)return this;if($(!this.idbtrans),!e&&!m)switch(v&&v.name){case"DatabaseClosedError":throw new ze.DatabaseClosed(v);case"MissingAPIError":throw new ze.MissingAPI(v.message,v);default:throw new ze.OpenFailed(v)}if(!this.active)throw new ze.TransactionInactive;return $(null===this._completion._state),(e=this.idbtrans=e||m.transaction(an(this.storeNames),this.mode)).onerror=yt((function(n){tn(n),t._reject(e.error)})),e.onabort=yt((function(n){tn(n),t.active&&t._reject(new ze.Abort(e.error)),t.active=!1,t.on("abort").fire(n)})),e.oncomplete=yt((function(){t.active=!1,t._resolve()})),this},_promise:function(e,t,n){var i=this;if(e===C&&this.mode!==C)return Ft(new ze.ReadOnly("Transaction is readonly"));if(!this.active)return Ft(new ze.TransactionInactive);if(this._locked())return new ot((function(r,o){i._blockedFuncs.push([function(){i._promise(e,t,n).then(r,o)},tt])}));if(n)return _t((function(){var e=new ot((function(e,n){i._lock();var r=t(e,n,i);r&&r.then&&r.then(e,n)}));return e.finally((function(){return i._unlock()})),e._lib=!0,e}));var r=new ot((function(e,n){var r=t(e,n,i);r&&r.then&&r.then(e,n)}));return r._lib=!0,r},_root:function(){return this.parent?this.parent._root():this},waitFor:function(e){var t=this._root();if(e=ot.resolve(e),t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return e}));else{t._waitingFor=e,t._waitingQueue=[];var n=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(n.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new ot((function(n,r){e.then((function(e){return t._waitingQueue.push(yt(n.bind(null,e)))}),(function(e){return t._waitingQueue.push(yt(r.bind(null,e)))})).finally((function(){t._waitingFor===i&&(t._waitingFor=null)}))}))},abort:function(){this.active&&this._reject(new ze.Abort),this.active=!1},tables:{get:(o="Transaction.tables",a=function(){return b},function(){return console.warn(o+" is deprecated. See https://github.com/dfahlander/Dexie.js/wiki/Deprecations. "+ge(fe(),1)),a.apply(this,arguments)})},table:function(e){return new j(e,S.table(e).schema,this)}}),V(U.prototype,(function(){function e(e,t,n){var i=e instanceof U?new H(e):e;return i._ctx.error=n?new n(t):new TypeError(t),i}function t(e){return new H(e,(function(){return h.only("")})).limit(0)}function n(e,t,n,i,r,o){for(var a=Math.min(e.length,i.length),s=-1,c=0;c=0?e.substr(0,s)+t[s]+n.substr(s+1):null;r(e[c],u)<0&&(s=c)}return a0)&&(h=b)}return t(null!==h?function(){e.continue(h+d)}:r),!1})),b}return{between:function(n,i,r,o){r=!1!==r,o=!0===o;try{return ae(n,i)>0||0===ae(n,i)&&(r||o)&&(!r||!o)?t(this):new H(this,(function(){return h.bound(n,i,!r,!o)}))}catch(a){return e(this,Ut)}},equals:function(e){return new H(this,(function(){return h.only(e)}))},above:function(e){return new H(this,(function(){return h.lowerBound(e,!0)}))},aboveOrEqual:function(e){return new H(this,(function(){return h.lowerBound(e)}))},below:function(e){return new H(this,(function(){return h.upperBound(e,!0)}))},belowOrEqual:function(e){return new H(this,(function(){return h.upperBound(e)}))},startsWith:function(t){return"string"!=typeof t?e(this,"String expected."):this.between(t,t+Bt,!0,!0)},startsWithIgnoreCase:function(e){return""===e?this.startsWith(e):i(this,(function(e,t){return 0===e.indexOf(t[0])}),[e],Bt)},equalsIgnoreCase:function(e){return i(this,(function(e,t){return e===t[0]}),[e],"")},anyOfIgnoreCase:function(){var e=ue.apply(ce,arguments);return 0===e.length?t(this):i(this,(function(e,t){return-1!==t.indexOf(e)}),e,"")},startsWithAnyOfIgnoreCase:function(){var e=ue.apply(ce,arguments);return 0===e.length?t(this):i(this,(function(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}),e,Bt)},anyOf:function(){var n=ue.apply(ce,arguments),i=pe;try{n.sort(i)}catch(a){return e(this,Ut)}if(0===n.length)return t(this);var r=new H(this,(function(){return h.bound(n[0],n[n.length-1])}));r._ondirectionchange=function(e){n.sort(i="next"===e?pe:he)};var o=0;return r._addAlgorithm((function(e,t,r){for(var a=e.key;i(a,n[o])>0;)if(++o===n.length)return t(r),!1;return 0===i(a,n[o])||(t((function(){e.continue(n[o])})),!1)})),r},notEqual:function(e){return this.inAnyRange([[-1/0,e],[e,Yt]],{includeLowers:!1,includeUppers:!1})},noneOf:function(){var t=ue.apply(ce,arguments);if(0===t.length)return new H(this);try{t.sort(pe)}catch(i){return e(this,Ut)}var n=t.reduce((function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]}),null);return n.push([t[t.length-1],Yt]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},inAnyRange:function(n,i){if(0===n.length)return t(this);if(!n.every((function(e){return void 0!==e[0]&&void 0!==e[1]&&pe(e[0],e[1])<=0})))return e(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ze.InvalidArgument);var r,o=!i||!1!==i.includeLowers,a=i&&!0===i.includeUppers,s=pe;function c(e,t){return s(e[0],t[0])}try{(r=n.reduce((function(e,t){for(var n=0,i=e.length;n0){r[0]=ae(o=r[0],a=t[0])<0?o:a,r[1]=se(r[1],t[1]);break}}var o,a;return n===i&&e.push(t),e}),[])).sort(c)}catch(g){return e(this,Ut)}var u=0,l=a?function(e){return pe(e,r[u][1])>0}:function(e){return pe(e,r[u][1])>=0},p=o?function(e){return he(e,r[u][0])>0}:function(e){return he(e,r[u][0])>=0},d=l,f=new H(this,(function(){return h.bound(r[0][0],r[r.length-1][1],!o,!a)}));return f._ondirectionchange=function(e){"next"===e?(d=l,s=pe):(d=p,s=he),r.sort(c)},f._addAlgorithm((function(e,t,n){for(var i=e.key;d(i);)if(++u===r.length)return t(n),!1;return!!function(e){return!l(e)&&!p(e)}(i)||(0===ae(i,r[u][1])||0===ae(i,r[u][0])||t((function(){e.continue(s===pe?r[u][0]:r[u][1])})),!1)})),f},startsWithAnyOf:function(){var n=ue.apply(ce,arguments);return n.every((function(e){return"string"==typeof e}))?0===n.length?t(this):this.inAnyRange(n.map((function(e){return[e,e+Bt]}))):e(this,"startsWithAnyOf() only works with strings")}}})),V(H.prototype,(function(){function e(e,t){e.filter=me(e.filter,t)}function t(e,t,n){var i=e.replayFilter;e.replayFilter=i?function(){return me(i(),t())}:t,e.justLimit=n&&!i}function n(e,t){if(e.isPrimKey)return t;var n=e.table.schema.idxByName[e.index];if(!n)throw new ze.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return t.index(n.name)}function i(e,t){var i=n(e,t);return e.keysOnly&&"openKeyCursor"in i?i.openKeyCursor(e.range||null,e.dir+e.unique):i.openCursor(e.range||null,e.dir+e.unique)}function o(e,t,n,r,o){var a=e.replayFilter?me(e.filter,e.replayFilter()):e.filter;e.or?function(){var s={},c=0;function u(){2==++c&&n()}function l(e,n,i){if(!a||a(n,i,u,r)){var o=n.primaryKey,c=""+o;"[object ArrayBuffer]"===c&&(c=""+new Uint8Array(o)),R(s,c)||(s[c]=!0,t(e,n,i))}}e.or._iterate(l,u,r,o),ie(i(e,o),e.algorithm,l,u,r,!e.keysOnly&&e.valueMapper)}():ie(i(e,o),me(e.algorithm,a),t,n,r,!e.keysOnly&&e.valueMapper)}return{_read:function(e,t){var n=this._ctx;return n.error?n.table._trans(null,Ft.bind(null,n.error)):n.table._idbstore("readonly",e).then(t)},_write:function(e){var t=this._ctx;return t.error?t.table._trans(null,Ft.bind(null,t.error)):t.table._idbstore(C,e,"locked")},_addAlgorithm:function(e){var t=this._ctx;t.algorithm=me(t.algorithm,e)},_iterate:function(e,t,n,i){return o(this._ctx,e,t,n,i)},clone:function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&L(n,e),t._ctx=n,t},raw:function(){return this._ctx.valueMapper=null,this},each:function(e){var t=this._ctx;return this._read((function(n,i,r){o(t,e,n,i,r)}))},count:function(e){var t=this._ctx;if(W(t,!0))return this._read((function(e,i,r){var o=n(t,r),a=t.range?o.count(t.range):o.count();a.onerror=Kt(i),a.onsuccess=function(n){e(Math.min(n.target.result,t.limit))}}),e);var i=0;return this._read((function(e,n,r){o(t,(function(){return++i,!1}),(function(){e(i)}),n,r)}),e)},sortBy:function(e,t){var n=e.split(".").reverse(),i=n[0],r=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[i]}var a="next"===this._ctx.dir?1:-1;function s(e,t){var n=o(e,r),i=o(t,r);return ni?a:0}return this.toArray((function(e){return e.sort(s)})).then(t)},toArray:function(e){var t=this._ctx;return this._read((function(e,i,a){if(r&&"next"===t.dir&&W(t,!0)&&t.limit>0){var s=t.table.hook.reading.fire,c=n(t,a),u=t.limit<1/0?c.getAll(t.range,t.limit):c.getAll(t.range);u.onerror=Kt(i),u.onsuccess=Jt(s===De?e:function(t){try{e(t.map(s))}catch(n){i(n)}})}else{var l=[];o(t,(function(e){l.push(e)}),(function(){e(l)}),i,a)}}),e)},offset:function(e){var n=this._ctx;return e<=0||(n.offset+=e,W(n)?t(n,(function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n((function(){e.advance(t),t=0})),!1))}})):t(n,(function(){var t=e;return function(){return--t<0}}))),this},limit:function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),t(this._ctx,(function(){var t=e;return function(e,n,i){return--t<=0&&n(i),t>=0}}),!0),this},until:function(t,n){return e(this._ctx,(function(e,i,r){return!t(e.value)||(i(r),n)})),this},first:function(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)},last:function(e){return this.reverse().first(e)},filter:function(t){return e(this._ctx,(function(e){return t(e.value)})),function(e,t){e.isMatch=me(e.isMatch,t)}(this._ctx,t),this},and:function(e){return this.filter(e)},or:function(e){return new U(this._ctx.table,e,this)},reverse:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},desc:function(){return this.reverse()},eachKey:function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))},eachUniqueKey:function(e){return this._ctx.unique="unique",this.eachKey(e)},eachPrimaryKey:function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))},keys:function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)},primaryKeys:function(e){var t=this._ctx;if(r&&"next"===t.dir&&W(t,!0)&&t.limit>0)return this._read((function(e,i,r){var o=n(t,r),a=t.limit<1/0?o.getAllKeys(t.range,t.limit):o.getAllKeys(t.range);a.onerror=Kt(i),a.onsuccess=Jt(e)})).then(e);t.keysOnly=!t.isMatch;var i=[];return this.each((function(e,t){i.push(t.primaryKey)})).then((function(){return i})).then(e)},uniqueKeys:function(e){return this._ctx.unique="unique",this.keys(e)},firstKey:function(e){return this.limit(1).keys((function(e){return e[0]})).then(e)},lastKey:function(e){return this.reverse().firstKey(e)},distinct:function(){var t=this._ctx,n=t.index&&t.table.schema.idxByName[t.index];if(!n||!n.multi)return this;var i={};return e(this._ctx,(function(e){var t=e.primaryKey.toString(),n=R(i,t);return i[t]=!0,!n})),this},modify:function(e){var t=this,n=this._ctx.table.hook,i=n.updating.fire,r=n.deleting.fire;return this._write((function(n,o,a,s){var c;if("function"==typeof e)c=i===ke&&r===ke?e:function(t){var n=re(t);if(!1===e.call(this,t,this))return!1;if(R(this,"value")){var o=oe(n,this.value),a=i.call(this,o,this.primKey,n,s);a&&(t=this.value,I(a).forEach((function(e){J(t,e,a[e])})))}else r.call(this,this.primKey,t,s)};else if(i===ke){var u=I(e),l=u.length;c=function(t){for(var n=!1,i=0;i0?v():n(d))}t.clone().raw()._iterate((function(e,t){m=t.primaryKey;var n={primKey:t.primaryKey,value:e,onsuccess:null,onerror:null};function i(e){return g.push(e),b.push(n.primKey),y(),!0}if(!1!==c.call(n,e,n)){var r=!R(n,"value");++h,X((function(){var e=r?t.delete():t.update(n.value);e._hookCtx=n,e.onerror=en(i),e.onsuccess=Xt((function(){++d,y()}))}),i)}else n.onsuccess&&n.onsuccess(n.value)}),(function(){f=!0,y()}),v,a)}))},delete:function(){var e=this,t=this._ctx,n=t.range,i=t.table.hook.deleting.fire,r=i!==ke;if(!r&&W(t)&&(t.isPrimKey&&!Zt||!n))return this._write((function(e,t,i){var r=Kt(t),o=n?i.count(n):i.count();o.onerror=r,o.onsuccess=function(){var a=o.result;X((function(){var t=n?i.delete(n):i.clear();t.onerror=r,t.onsuccess=function(){return e(a)}}),(function(e){return t(e)}))}}));var o=r?2e3:1e4;return this._write((function(n,a,s,c){var u=0,l=e.clone({keysOnly:!t.isMatch&&!r}).distinct().limit(o).raw(),p=[],h=function(){return l.each(r?function(e,t){p.push([t.primaryKey,t.value])}:function(e,t){p.push(t.primaryKey)}).then((function(){return p.sort(r?function(e,t){return pe(e[0],t[0])}:pe),F(s,c,p,r,i)})).then((function(){var e=p.length;return u+=e,p=[],e0?console.warn("Another connection wants to upgrade database '"+S.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+S.name+"'. Closing db now to resume the delete request."),S.close()})),S.on("blocked",(function(e){!e.newVersion||e.newVersion\[(.*)\])?/);if(n&&n.length){var i=n[2],r=void 0===i?wn.b.NPM:i,o=n[3],a=n[5],s=void 0===a?"latest":a,c=n[7],u=n[8];if(o&&s){if(!o.startsWith("altair-graphql-plugin-"))throw new Error("Plugin name must start with altair-graphql-plugin-");return Sn({name:o,version:s,pluginSource:r},c&&u&&((t={})[c]=u,t))}}return null},e.prototype.pluginsReady=function(){return Promise.all(this.fetchedPlugins)},e.prototype.fetchPluginAssets=function(e,t){void 0===t&&(t={});var n,i,r,o=t.pluginSource,a=void 0===o?wn.b.NPM:o,c=t.version,u=void 0===c?"latest":c,l=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1] {\n "+e+";\n return altair.data;\n };\n exports.end = program();\n "),[2,o.exports.end.then((function(e){return s.a.log("interpreter result:",e)})).then((function(){return t}))]}}))},new((r=void 0)||(r=Promise))((function(e,t){function n(e){try{s(o.next(e))}catch(n){t(n)}}function a(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r((function(e){e(i)}))).then(n,a)}s((o=o.apply(i,[])).next())}));var i,r,o},e.\u0275fac=function(t){return new(t||e)(c.dc(_n.a),c.dc(a.c))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},o8Qb:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return N}));var i=n("TYT/"),r=n("mrSG"),o=n("F/XL"),a=n("zrt+"),s=n("VNr4"),c=n("dEwP"),u=n("lYZG"),l=n("t9fZ"),p=n("klSw"),h=n("67Y/"),d=n("Phjn"),f=n("15JJ"),g=function(){return function(){}}(),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(r.c)(t,e),t.prototype.getTranslation=function(e){return Object(o.a)({})},t.\u0275fac=function(e){return n(e||t)},t.\u0275prov=i.Pb({token:t,factory:function(e){return t.\u0275fac(e)}});var n=i.bc(t);return t}(g),m=function(){return function(){}}(),v=function(){function e(){}return e.prototype.handle=function(e){return e.key},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}();function y(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,i,r,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!y(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof c&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof i.a?e[0]:Object(o.a)(n)(Object(a.a)(e,s))}},"pLY/":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("dWS+");function r(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var o=r.name.value;if(!n||!n.getType(o))return t[o]?e.reportError(new i.a(function(e){return'There can be only one type named "'.concat(e,'".')}(o),[t[o],r.name])):t[o]=r.name,!1;e.reportError(new i.a(function(e){return'Type "'.concat(e,'" already exists in the schema. It cannot also be defined in this type definition.')}(o),r.name))}}},pdUi:function(e,t,n){"use strict";n.d(t,"a",(function(){return Y})),n.d(t,"b",(function(){return G})),n.d(t,"c",(function(){return Z})),n.d(t,"d",(function(){return U})),n.d(t,"e",(function(){return X})),n.d(t,"f",(function(){return W}));var i=n("349r"),r=n("TYT/"),o=n("K9Ia"),a=n("F/XL"),s=n("6blF"),c=n("bne5"),u=n("p0ib"),l=n("mrSG"),p=n("h9Dq"),h=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return l.c(t,e),t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(p.a),d=n("CS9Q"),f=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.c(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=(r=t.flush.bind(t,null),o=g++,m[o]=!0,b.then((function(){return v(o)&&r()})),o)));var r,o},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(v(n),t.scheduled=void 0)},t}(p.a),w=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.c(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i0&&(i.end=Math.min(o,i.end+u),i.start=Math.max(0,Math.floor(t-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(i),this._viewport.setRenderedContentOffset(this._itemSize*i.start),this._scrolledIndexChange.next(Math.floor(t))}},e}();function B(e){return e._scrollStrategy}var Y=function(){function e(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new V(this.itemSize,this.minBufferPx,this.maxBufferPx)}return Object.defineProperty(e.prototype,"itemSize",{get:function(){return this._itemSize},set:function(e){this._itemSize=Object(i.f)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minBufferPx",{get:function(){return this._minBufferPx},set:function(e){this._minBufferPx=Object(i.f)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxBufferPx",{get:function(){return this._maxBufferPx},set:function(e){this._maxBufferPx=Object(i.f)(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Ob({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[r.Cb([{provide:R,useFactory:B,deps:[Object(r.V)((function(){return e}))]}]),r.Bb]}),e}(),U=function(){function e(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new o.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return e.prototype.register=function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))},e.prototype.deregister=function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))},e.prototype.scrolled=function(e){var t=this;return void 0===e&&(e=20),this._platform.isBrowser?new s.a((function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(Object(z.a)(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Object(a.a)()},e.prototype.ngOnDestroy=function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,n){return e.deregister(n)})),this._scrolled.complete()},e.prototype.ancestorScrolled=function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(T.a)((function(e){return!e||n.indexOf(e)>-1})))},e.prototype.getAncestorScrollContainers=function(e){var t=this,n=[];return this.scrollContainers.forEach((function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)})),n},e.prototype._getDocument=function(){return this._document||document},e.prototype._getWindow=function(){return this._getDocument().defaultView||window},e.prototype._scrollableContainsElement=function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1},e.prototype._addGlobalListener=function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){var t=e._getWindow();return Object(c.a)(t.document,"scroll").subscribe((function(){return e._scrolled.next()}))}))},e.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},e.\u0275prov=Object(r.Pb)({factory:function(){return new e(Object(r.dc)(r.z),Object(r.dc)(I.a),Object(r.dc)(A.e,8))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(r.dc(r.z),r.dc(I.a),r.dc(A.e,8))},e}(),H=function(){function e(e,t,n,i){var r=this;this.elementRef=e,this.scrollDispatcher=t,this.ngZone=n,this.dir=i,this._destroyed=new o.a,this._elementScrolled=new s.a((function(e){return r.ngZone.runOutsideAngular((function(){return Object(c.a)(r.elementRef.nativeElement,"scroll").pipe(Object(_.a)(r._destroyed)).subscribe(e)}))}))}return e.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)},e.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()},e.prototype.elementScrolled=function(){return this._elementScrolled},e.prototype.getElementRef=function(){return this.elementRef},e.prototype.scrollTo=function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=Object(I.d)()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Object(I.d)()?e.left=e.right:1==Object(I.d)()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)},e.prototype._applyScrollToOptions=function(e){var t=this.elementRef.nativeElement;Object(I.f)()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))},e.prototype.measureScrollOffset=function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==Object(I.d)()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==Object(I.d)()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.l),r.Tb(U),r.Tb(r.z),r.Tb(M.b,8))},e.\u0275dir=r.Ob({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),W=function(){function e(e,t,n){var i=this;this._platform=e,this._document=n,t.runOutsideAngular((function(){var t=i._getWindow();i._change=e.isBrowser?Object(u.a)(Object(c.a)(t,"resize"),Object(c.a)(t,"orientationchange")):Object(a.a)(),i._invalidateCache=i.change().subscribe((function(){return i._updateViewportSize()}))}))}return e.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},e.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e},e.prototype.getViewportRect=function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}},e.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._getDocument(),t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}},e.prototype.change=function(e){return void 0===e&&(e=20),e>0?this._change.pipe(Object(z.a)(e)):this._change},e.prototype._getDocument=function(){return this._document||document},e.prototype._getWindow=function(){return this._getDocument().defaultView||window},e.prototype._updateViewportSize=function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}},e.\u0275prov=Object(r.Pb)({factory:function(){return new e(Object(r.dc)(I.a),Object(r.dc)(r.z),Object(r.dc)(A.e,8))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(r.dc(I.a),r.dc(r.z),r.dc(A.e,8))},e}(),q="undefined"!=typeof requestAnimationFrame?f:w,Z=function(e){function t(t,n,i,r,a,c,u){var l=e.call(this,t,c,i,a)||this;if(l.elementRef=t,l._changeDetectorRef=n,l._scrollStrategy=r,l._detachedSubject=new o.a,l._renderedRangeSubject=new o.a,l._orientation="vertical",l.scrolledIndexChange=new s.a((function(e){return l._scrollStrategy.scrolledIndexChange.subscribe((function(t){return Promise.resolve().then((function(){return l.ngZone.run((function(){return e.next(t)}))}))}))})),l.renderedRangeStream=l._renderedRangeSubject.asObservable(),l._totalContentSize=0,l._totalContentWidth="",l._totalContentHeight="",l._renderedRange={start:0,end:0},l._dataLength=0,l._viewportSize=0,l._renderedContentOffset=0,l._renderedContentOffsetNeedsRewrite=!1,l._isChangeDetectionPending=!1,l._runAfterChangeDetection=[],l._viewportChanges=O.a.EMPTY,!r)throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');return u&&(l._viewportChanges=u.change().subscribe((function(){l.checkViewportSize()}))),l}return Object(l.c)(t,e),Object.defineProperty(t.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.ngZone.runOutsideAngular((function(){return Promise.resolve().then((function(){t._measureViewportSize(),t._scrollStrategy.attach(t),t.elementScrolled().pipe(Object(k.a)(null),Object(z.a)(0,q)).subscribe((function(){return t._scrollStrategy.onContentScrolled()})),t._markChangeDetectionNeeded()}))}))},t.prototype.ngOnDestroy=function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),e.prototype.ngOnDestroy.call(this)},t.prototype.attach=function(e){var t=this;if(this._forOf)throw Error("CdkVirtualScrollViewport is already attached.");this.ngZone.runOutsideAngular((function(){t._forOf=e,t._forOf.dataStream.pipe(Object(_.a)(t._detachedSubject)).subscribe((function(e){var n=e.length;n!==t._dataLength&&(t._dataLength=n,t._scrollStrategy.onDataLengthChanged()),t._doChangeDetection()}))}))},t.prototype.detach=function(){this._forOf=null,this._detachedSubject.next()},t.prototype.getDataLength=function(){return this._dataLength},t.prototype.getViewportSize=function(){return this._viewportSize},t.prototype.getRenderedRange=function(){return this._renderedRange},t.prototype.setTotalContentSize=function(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())},t.prototype.setRenderedRange=function(e){var t,n,i=this;((t=this._renderedRange).start!=(n=e).start||t.end!=n.end)&&(this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded((function(){return i._scrollStrategy.onContentRendered()})))},t.prototype.getOffsetToRenderedContentStart=function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset},t.prototype.setRenderedContentOffset=function(e,t){var n=this;void 0===t&&(t="to-start");var i="horizontal"==this.orientation,r=i?"X":"Y",o="translate"+r+"("+Number((i&&this.dir&&"rtl"==this.dir.value?-1:1)*e)+"px)";this._renderedContentOffset=e,"to-end"===t&&(o+=" translate"+r+"(-100%)",this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded((function(){n._renderedContentOffsetNeedsRewrite?(n._renderedContentOffset-=n.measureRenderedContentSize(),n._renderedContentOffsetNeedsRewrite=!1,n.setRenderedContentOffset(n._renderedContentOffset)):n._scrollStrategy.onRenderedOffsetChanged()})))},t.prototype.scrollToOffset=function(e,t){void 0===t&&(t="auto");var n={behavior:t};"horizontal"===this.orientation?n.start=e:n.top=e,this.scrollTo(n)},t.prototype.scrollToIndex=function(e,t){void 0===t&&(t="auto"),this._scrollStrategy.scrollToIndex(e,t)},t.prototype.measureScrollOffset=function(t){return e.prototype.measureScrollOffset.call(this,t||("horizontal"===this.orientation?"start":"top"))},t.prototype.measureRenderedContentSize=function(){var e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight},t.prototype.measureRangeSize=function(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0},t.prototype.checkViewportSize=function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()},t.prototype._measureViewportSize=function(){var e=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?e.clientWidth:e.clientHeight},t.prototype._markChangeDetectionNeeded=function(e){var t=this;e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular((function(){return Promise.resolve().then((function(){t._doChangeDetection()}))})))},t.prototype._doChangeDetection=function(){var e,t,n=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run((function(){return n._changeDetectorRef.markForCheck()}));var i=this._runAfterChangeDetection;this._runAfterChangeDetection=[];try{for(var r=Object(l.h)(i),o=r.next();!o.done;o=r.next())(0,o.value)()}catch(a){e={error:a}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype._calculateSpacerSize=function(){this._totalContentHeight="horizontal"===this.orientation?"":this._totalContentSize+"px",this._totalContentWidth="horizontal"===this.orientation?this._totalContentSize+"px":""},t.\u0275fac=function(e){return new(e||t)(r.Tb(r.l),r.Tb(r.h),r.Tb(r.z),r.Tb(R,8),r.Tb(M.b,8),r.Tb(U),r.Tb(W,8))},t.\u0275cmp=r.Nb({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){var n;1&e&&r.Jc(P,!0),2&e&&r.zc(n=r.ic())&&(t._contentWrapper=n.first)},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&r.Jb("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[r.Cb([{provide:H,useExisting:t}]),r.Ab],ngContentSelectors:F,decls:10,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(r.rc(),r.Nc(0,"\n"),r.Zb(1,"div",0,1),r.Nc(3,"\n "),r.qc(4),r.Nc(5,"\n"),r.Yb(),r.Nc(6,"\n"),r.Nc(7,"\n"),r.Ub(8,"div",2),r.Nc(9,"\n")),2&e&&(r.Db(8),r.Kc("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t}(H);function $(e,t){if(!t.getBoundingClientRect)return 0;var n=t.getBoundingClientRect();return"horizontal"==e?n.width:n.height}var G=function(){function e(e,t,n,i,r){var a=this;this._viewContainerRef=e,this._template=t,this._differs=n,this._viewport=i,this.viewChange=new o.a,this._dataSourceChanges=new o.a,this.cdkVirtualForTemplateCacheSize=20,this.dataStream=this._dataSourceChanges.pipe(Object(k.a)(null),(function(e){return e.lift(new x)}),Object(N.a)((function(e){var t=Object(l.e)(e,2);return a._changeDataSource(t[0],t[1])})),Object(j.a)(1)),this._differ=null,this._templateCache=[],this._needsUpdate=!1,this._destroyed=new o.a,this.dataStream.subscribe((function(e){a._data=e,a._onRenderedDataChange()})),this._viewport.renderedRangeStream.pipe(Object(_.a)(this._destroyed)).subscribe((function(e){a._renderedRange=e,r.run((function(){return a.viewChange.next(a._renderedRange)})),a._onRenderedDataChange()})),this._viewport.attach(this)}return Object.defineProperty(e.prototype,"cdkVirtualForOf",{get:function(){return this._cdkVirtualForOf},set:function(e){this._cdkVirtualForOf=e,function(e){return e&&"function"==typeof e.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new L(Object(C.a)(e)?e:Array.prototype.slice.call(e||[])))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cdkVirtualForTrackBy",{get:function(){return this._cdkVirtualForTrackBy},set:function(e){var t=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?function(n,i){return e(n+(t._renderedRange?t._renderedRange.start:0),i)}:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cdkVirtualForTemplate",{set:function(e){e&&(this._needsUpdate=!0,this._template=e)},enumerable:!0,configurable:!0}),e.prototype.measureRangeSize=function(e,t){if(e.start>=e.end)return 0;if(e.startthis._renderedRange.end)throw Error("Error: attempted to measure an item that isn't rendered.");for(var n=e.start-this._renderedRange.start,i=0,r=e.end-e.start;r--;)for(var o=this._viewContainerRef.get(r+n),a=o?o.rootNodes.length:0;a--;)i+=$(t,o.rootNodes[a]);return i},e.prototype.ngDoCheck=function(){if(this._differ&&this._needsUpdate){var e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}},e.prototype.ngOnDestroy=function(){var e,t;this._viewport.detach(),this._dataSourceChanges.next(),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete();try{for(var n=Object(l.h)(this._templateCache),i=n.next();!i.done;i=n.next())i.value.destroy()}catch(r){e={error:r}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.prototype._onRenderedDataChange=function(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(this.cdkVirtualForTrackBy)),this._needsUpdate=!0)},e.prototype._changeDataSource=function(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):Object(a.a)()},e.prototype._updateContext=function(){for(var e=this._data.length,t=this._viewContainerRef.length;t--;){var n=this._viewContainerRef.get(t);n.context.index=this._renderedRange.start+t,n.context.count=e,this._updateComputedContextProperties(n.context),n.detectChanges()}},e.prototype._applyChanges=function(e){var t=this;e.forEachOperation((function(e,n,i){if(null==e.previousIndex)(r=t._insertViewForNewItem(i)).context.$implicit=e.item;else if(null==i)t._cacheView(t._detachView(n));else{var r=t._viewContainerRef.get(n);t._viewContainerRef.move(r,i),r.context.$implicit=e.item}})),e.forEachIdentityChange((function(e){t._viewContainerRef.get(e.currentIndex).context.$implicit=e.item}));for(var n=this._data.length,i=this._viewContainerRef.length;i--;){var r=this._viewContainerRef.get(i);r.context.index=this._renderedRange.start+i,r.context.count=n,this._updateComputedContextProperties(r.context)}},e.prototype._cacheView=function(e){if(this._templateCache.length0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.a)},pugT:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("isby"),r=n("McSo"),o=n("2Bdj"),a=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),s=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,u=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var l=0;l0,this.toastrConfig.countDuplicates);if(t&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=t;var a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));var s=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;var c=t;t&&i.enableHtml&&(c=this.sanitizer.sanitize(r.I.HTML,t));var u=new E(s),l=new C(this.index,i,c,n,e,u),p=new N(l,this._injector),h=new T(i.toastComponent,p),d=s.attach(h,this.toastrConfig.newestOnTop);u.componentInstance=d.instance;var f={toastId:this.index,message:t||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:l.onTap(),onAction:l.onAction(),portal:d};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout((function(){f.toastRef.activate()}))),this.toasts.push(f),f},e.\u0275prov=Object(r.Pb)({factory:function(){return new e(Object(r.dc)(z),Object(r.dc)(x),Object(r.dc)(r.o),Object(r.dc)(s.b),Object(r.dc)(r.z))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(r.dc(z),r.dc(x),r.dc(r.r),r.dc(s.b),r.dc(r.z))},e}(),I=function(){function e(e,t,n){var i=this;this.toastrService=e,this.toastPackage=t,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=t.toastType+" "+t.config.toastClass,this.sub=t.toastRef.afterActivate().subscribe((function(){i.activateToast()})),this.sub1=t.toastRef.manualClosed().subscribe((function(){i.remove()})),this.sub2=t.toastRef.timeoutReset().subscribe((function(){i.resetTimeout()})),this.sub3=t.toastRef.countDuplicate().subscribe((function(e){i.duplicatesCount=e}))}return Object.defineProperty(e.prototype,"displayStyle",{get:function(){if("inactive"===this.state.value)return"none"},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)},e.prototype.activateToast=function(){var e=this;this.state=Object(i.a)(Object(i.a)({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout((function(){return e.remove()}),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval((function(){return e.updateProgress()}),10))},e.prototype.updateProgress=function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}},e.prototype.resetTimeout=function(){var e=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object(i.a)(Object(i.a)({},this.state),{value:"active"}),this.outsideTimeout((function(){return e.remove()}),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval((function(){return e.updateProgress()}),10)},e.prototype.remove=function(){var e=this;"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object(i.a)(Object(i.a)({},this.state),{value:"removed"}),this.outsideTimeout((function(){return e.toastrService.remove(e.toastPackage.toastId)}),+this.toastPackage.config.easeTime))},e.prototype.tapToast=function(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())},e.prototype.stickAround=function(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)},e.prototype.delayedHideToast=function(){var e=this;!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout((function(){return e.remove()}),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval((function(){return e.updateProgress()}),10))},e.prototype.outsideTimeout=function(e,t){var n=this;this.ngZone?this.ngZone.runOutsideAngular((function(){return n.timeout=setTimeout((function(){return n.runInsideAngular(e)}),t)})):this.timeout=setTimeout((function(){return e()}),t)},e.prototype.outsideInterval=function(e,t){var n=this;this.ngZone?this.ngZone.runOutsideAngular((function(){return n.intervalId=setInterval((function(){return n.runInsideAngular(e)}),t)})):this.intervalId=setInterval((function(){return e()}),t)},e.prototype.runInsideAngular=function(e){this.ngZone?this.ngZone.run((function(){return e()})):e()},e.\u0275fac=function(t){return new(t||e)(r.Tb(j),r.Tb(C),r.Tb(r.z))},e.\u0275cmp=r.Nb({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&r.hc("click",(function(){return t.tapToast()}))("mouseenter",(function(){return t.stickAround()}))("mouseleave",(function(){return t.delayedHideToast()})),2&e&&(r.Rc("@flyInOut",t.state),r.Fb(t.toastClasses),r.Kc("display",t.displayStyle))},attrs:u,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(r.Lc(0,l,3,0,"button",0),r.Lc(1,h,3,5,"div",1),r.Lc(2,d,1,3,"div",2),r.Lc(3,f,2,4,"div",3),r.Lc(4,g,2,2,"div",4)),2&e&&(r.sc("ngIf",t.options.closeButton),r.Db(1),r.sc("ngIf",t.title),r.Db(1),r.sc("ngIf",t.message&&t.options.enableHtml),r.Db(1),r.sc("ngIf",t.message&&!t.options.enableHtml),r.Db(1),r.sc("ngIf",t.options.progressBar))},directives:[c.t],encapsulation:2,data:{animation:[Object(o.l)("flyInOut",[Object(o.i)("inactive",Object(o.j)({opacity:0})),Object(o.i)("active",Object(o.j)({opacity:1})),Object(o.i)("removed",Object(o.j)({opacity:0})),Object(o.k)("inactive => active",Object(o.e)("{{ easeTime }}ms {{ easing }}")),Object(o.k)("active => removed",Object(o.e)("{{ easeTime }}ms {{ easing }}"))])]}}),e}(),A=Object(i.a)(Object(i.a)({},S),{toastComponent:I}),M=function(){function e(){}var t;return t=e,e.forRoot=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[{provide:z,useValue:{default:A,config:e}}]}},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)},imports:[[c.c]]}),e}(),L=function(){function e(e,t,n){var i=this;this.toastrService=e,this.toastPackage=t,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=t.toastType+" "+t.config.toastClass,this.sub=t.toastRef.afterActivate().subscribe((function(){i.activateToast()})),this.sub1=t.toastRef.manualClosed().subscribe((function(){i.remove()})),this.sub2=t.toastRef.timeoutReset().subscribe((function(){i.resetTimeout()})),this.sub3=t.toastRef.countDuplicate().subscribe((function(e){i.duplicatesCount=e}))}return Object.defineProperty(e.prototype,"displayStyle",{get:function(){if("inactive"===this.state)return"none"},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)},e.prototype.activateToast=function(){var e=this;this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout((function(){e.remove()}),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval((function(){return e.updateProgress()}),10))),this.options.onActivateTick&&this.appRef.tick()},e.prototype.updateProgress=function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}},e.prototype.resetTimeout=function(){var e=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout((function(){return e.remove()}),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval((function(){return e.updateProgress()}),10))},e.prototype.remove=function(){var e=this;"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout((function(){return e.toastrService.remove(e.toastPackage.toastId)})))},e.prototype.tapToast=function(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())},e.prototype.stickAround=function(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)},e.prototype.delayedHideToast=function(){var e=this;!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout((function(){return e.remove()}),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval((function(){return e.updateProgress()}),10)))},e.\u0275fac=function(t){return new(t||e)(r.Tb(j),r.Tb(C),r.Tb(r.g))},e.\u0275cmp=r.Nb({type:e,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,t){1&e&&r.hc("click",(function(){return t.tapToast()}))("mouseenter",(function(){return t.stickAround()}))("mouseleave",(function(){return t.delayedHideToast()})),2&e&&(r.Fb(t.toastClasses),r.Kc("display",t.displayStyle))},attrs:u,decls:11,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(r.Nc(0,"\n "),r.Lc(1,b,5,0,"button",0),r.Nc(2,"\n "),r.Lc(3,v,4,5,"div",1),r.Nc(4,"\n "),r.Lc(5,y,2,3,"div",2),r.Nc(6,"\n "),r.Lc(7,w,2,4,"div",3),r.Nc(8,"\n "),r.Lc(9,O,4,2,"div",4),r.Nc(10,"\n ")),2&e&&(r.Db(1),r.sc("ngIf",t.options.closeButton),r.Db(2),r.sc("ngIf",t.title),r.Db(2),r.sc("ngIf",t.message&&t.options.enableHtml),r.Db(2),r.sc("ngIf",t.message&&!t.options.enableHtml),r.Db(2),r.sc("ngIf",t.options.progressBar))},directives:[c.t],encapsulation:2}),e}();Object(i.a)(Object(i.a)({},S),{toastComponent:L})},qhZs:function(e,t,n){"use strict";var i=n("sYVv"),r=n("aFjk"),o=n("n/l8"),a=n("JlUD"),s=n("2ZJU"),c=n("ZI+j"),u=Function.prototype,l=Math.max,p=Math.min,h=Object.create;c.maxAge=function(e,t,n){var d,f,g,b;(e=s(e))&&(d=h(null),t.on("set"+(f=n.async&&c.async||n.promise&&c.promise?"async":""),(function(n){d[n]=setTimeout((function(){t.delete(n)}),e),"function"==typeof d[n].unref&&d[n].unref(),b&&(b[n]&&"nextTick"!==b[n]&&clearTimeout(b[n]),b[n]=setTimeout((function(){delete b[n]}),g),"function"==typeof b[n].unref&&b[n].unref())})),t.on("delete"+f,(function(e){clearTimeout(d[e]),delete d[e],b&&("nextTick"!==b[e]&&clearTimeout(b[e]),delete b[e])})),n.preFetch&&(g=!0===n.preFetch||isNaN(n.preFetch)?.333:l(p(Number(n.preFetch),1),0))&&(b={},g=(1-g)*e,t.on("get"+f,(function(e,r,s){b[e]||(b[e]="nextTick",o((function(){var o;"nextTick"===b[e]&&(delete b[e],t.delete(e),n.async&&(r=i(r)).push(u),o=t.memoized.apply(s,r),n.promise&&a(o)&&("function"==typeof o.done?o.done(u,u):o.then(u,u)))})))}))),t.on("clear"+f,(function(){r(d,(function(e){clearTimeout(e)})),d={},b&&(r(b,(function(e){"nextTick"!==e&&clearTimeout(e)})),b={})})))}},qjWv:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"j",(function(){return r})),n.d(t,"k",(function(){return u})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return h})),n.d(t,"n",(function(){return b}));var i=8,r=9,o=13,a=27,s=32,c=37,u=38,l=39,p=40,h=48,d=57,f=65,g=90;function b(e){for(var t=[],n=1;n!l.some(t=>t===e)),h=new r.a(e);a&&Array.prototype.push.apply(p,a);const d=Object(o.c)(e,t,p,h);return d.length>0?d.filter(e=>{if(-1===e.message.indexOf("Unknown directive"))return!0;if(e.nodes&&e.nodes[0]){const t=e.nodes[0];return!(t.name&&"arguments"===t.name.value||"argumentDefinitions"===t.name.value)}}):[]}},qyF0:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i=n("TYT/"),r=n("Valr"),o=n("tokB"),a=n("Olon"),s=n("o8Qb");function c(e,t){1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"translate"),i.Wb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"DOCS_ADD_QUERY_TEXT")))}function u(e,t){1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"translate"),i.Wb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"DOCS_ADD_FRAGMENT_TEXT")))}function l(e,t){if(1&e&&(i.Zb(0,"span",14),i.Nc(1),i.Yb()),2&e){var n=i.kc().$implicit;i.Db(1),i.Pc("= ",n.defaultValue,"")}}function p(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",10),i.Nc(1,"\n "),i.Zb(2,"div",4),i.Nc(3,"\n "),i.Zb(4,"span",11),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc(3).goToType(e.type.inspect())})),i.Nc(5),i.Lc(6,l,2,1,"span",12),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Zb(9,"span",13),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc(3).goToType(e.type.inspect())})),i.Nc(10),i.Yb(),i.Nc(11,"\n "),i.Yb(),i.Nc(12,"\n "),i.Zb(13,"div",5),i.Nc(14,"\n "),i.Yb(),i.Nc(15,"\n "),i.Yb()}if(2&e){var r=t.$implicit;i.Db(5),i.Pc("\n ",r.name,"\n "),i.Db(1),i.sc("ngIf",r.defaultValue&&r.defaultValue.toString),i.Db(4),i.Pc("\n ",r.type.inspect(),"\n "),i.Db(3),i.sc("data",r.description)}}function h(e,t){if(1&e&&(i.Zb(0,"div",8),i.Nc(1,"\n "),i.Zb(2,"div",1),i.Nc(3),i.lc(4,"translate"),i.Yb(),i.Nc(5,"\n "),i.Lc(6,p,16,4,"div",9),i.Nc(7,"\n "),i.Yb()),2&e){var n=i.kc(2);i.Db(3),i.Oc(i.mc(4,3,"DOCS_ARGUMENTS_TEXT")),i.Db(3),i.sc("ngForOf",n.data.args)("ngForTrackBy",n.argTrackBy)}}function d(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div",2),i.Nc(3,"\n "),i.Nc(4,"\n "),i.Zb(5,"div",3),i.Nc(6,"\n "),i.Zb(7,"div",4),i.Nc(8),i.Yb(),i.Nc(9,"\n "),i.Zb(10,"div",5),i.Nc(11,"\n "),i.Yb(),i.Nc(12,"\n "),i.Zb(13,"div",4),i.Nc(14,"\n "),i.Zb(15,"button",6),i.hc("click",(function(){i.Dc(n);var e=i.kc();return e.addToEditor({name:e.data.name,parentType:e.parentType})})),i.Nc(16,"\n "),i.Lc(17,c,3,3,"ng-container",0),i.Nc(18,"\n "),i.Lc(19,u,3,3,"ng-container",0),i.Nc(20,"\n "),i.Yb(),i.Nc(21,"\n "),i.Yb(),i.Nc(22,"\n "),i.Yb(),i.Nc(23,"\n "),i.Yb(),i.Nc(24,"\n "),i.Nc(25,"\n "),i.Lc(26,h,8,5,"div",7),i.Nc(27,"\n"),i.Wb()}if(2&e){var r=i.kc();i.Db(8),i.Pc("\n ",r.data.name,"\n "),i.Db(2),i.sc("data",r.data.description),i.Db(7),i.sc("ngIf",r.isRootType(r.parentType)),i.Db(2),i.sc("ngIf",!r.isRootType(r.parentType)),i.Db(7),i.sc("ngIf",r.data.args&&r.data.args.length)}}function f(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"app-doc-viewer-type",15),i.hc("goToFieldChange",(function(e){return i.Dc(n),i.kc().goToField(e.name,e.parentType)}))("goToTypeChange",(function(e){return i.Dc(n),i.kc().goToType(e.name)}))("addToEditorChange",(function(e){return i.Dc(n),i.kc().addToEditor(e)})),i.Yb(),i.Nc(3,"\n"),i.Wb()}if(2&e){var r=i.kc();i.Db(2),i.sc("data",r.gqlSchema.getType(r.cleanName(r.data.type.inspect())))("gqlSchema",r.gqlSchema)}}var g=function(){function e(){this.data={},this.parentType="",this.goToFieldChange=new i.n,this.goToTypeChange=new i.n,this.addToEditorChange=new i.n}return e.prototype.ngOnInit=function(){},e.prototype.cleanName=function(e){return e.replace(/[\[\]!]/g,"")},e.prototype.isRootType=function(e){if(!e||!this.gqlSchema)return!1;switch(e){case this.gqlSchema.getQueryType()&&this.gqlSchema.getQueryType().name:case this.gqlSchema.getMutationType()&&this.gqlSchema.getMutationType().name:case this.gqlSchema.getSubscriptionType()&&this.gqlSchema.getSubscriptionType().name:return!0}return!1},e.prototype.goToField=function(e,t){this.goToFieldChange.next({name:e,parentType:t})},e.prototype.goToType=function(e){this.goToTypeChange.next({name:e})},e.prototype.addToEditor=function(e){this.addToEditorChange.next(e)},e.prototype.argTrackBy=function(e,t){return t.name},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-doc-viewer-field"]],inputs:{data:"data",gqlSchema:"gqlSchema",parentType:"parentType"},outputs:{goToFieldChange:"goToFieldChange",goToTypeChange:"goToTypeChange",addToEditorChange:"addToEditorChange"},decls:9,vars:5,consts:[[4,"ngIf"],[1,"doc-viewer-section-title"],[1,"doc-viewer-section"],[1,"doc-viewer-item","doc-viewer-item-field"],[1,"doc-viewer-item-query-inner"],["markdown","",1,"doc-viewer-item-query-description",3,"data"],["track-id","add_query",1,"doc-viewer-item-query-add-btn",3,"click"],["class","doc-viewer-section doc-viewer-arguments",4,"ngIf"],[1,"doc-viewer-section","doc-viewer-arguments"],["class","doc-viewer-item doc-viewer-item-query",4,"ngFor","ngForOf","ngForTrackBy"],[1,"doc-viewer-item","doc-viewer-item-query"],[1,"no-link-link",3,"click"],["class","doc-viewer-item-value",4,"ngIf"],[1,"doc-viewer-item-type","doc-viewer-item-query-type","no-link-link",3,"click"],[1,"doc-viewer-item-value"],[3,"data","gqlSchema","goToFieldChange","goToTypeChange","addToEditorChange"]],template:function(e,t){1&e&&(i.Lc(0,d,28,5,"ng-container",0),i.Nc(1,"\n\n"),i.Nc(2,"\n"),i.Zb(3,"div",1),i.Nc(4),i.lc(5,"translate"),i.Yb(),i.Nc(6,"\n"),i.Lc(7,f,4,2,"ng-container",0),i.Nc(8,"\n")),2&e&&(i.sc("ngIf",t.data),i.Db(4),i.Oc(i.mc(5,3,"DOCS_TYPE_TEXT")),i.Db(3),i.sc("ngIf",t.gqlSchema&&t.data&&t.gqlSchema.getType(t.cleanName(t.data.type.inspect()))))},directives:[r.t,o.b,r.s,a.a],pipes:[s.d],styles:[""],changeDetection:0}),e}()},r60r:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n("1/U3"),r=n("Y/la"),o=n("rWdj"),a=n("dWS+"),s=n("/jXB"),c=n("dQau"),u=n("axIb"),l=n("umOc");function p(e){var t=new v,n=new Map;return{SelectionSet:function(i){for(var o=function(e,t,n,i,o){var a=[],s=b(e,t,i,o),c=s[0],u=s[1];if(function(e,t,n,i,o){for(var a=0,s=Object(r.a)(o);a1)for(var p=0;p0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){return e.concat(t[1])}),[n]),e.reduce((function(e,t){return e.concat(t[2])}),[i])]}(function(e,t,n,i,r,o,a,s){var c=[],u=b(e,t,r,o),l=u[0],p=u[1],g=b(e,t,a,s),m=g[0],v=g[1];if(f(e,c,t,n,i,l,m),0!==v.length)for(var y=Object.create(null),w=0;we.trim().replace(/^('|")\s*/,"").replace(/\s*('|")$/,"");e.exports={parseCurl:e=>{let t=e.trim();const r=[],o={url:"",method:"GET",headers:{},auth:{}};for(;t;)n.some(e=>{if(e.regex.test(t))return r.push({name:e.name,value:t.match(e.regex)}),t=t.replace(e.regex,"").trim(),!0});if(r.length){if("curl"!==r.shift().name)throw new Error("Not a curl command.");let e="";r.forEach(t=>{if(e){switch(e){case"header-state":{const e=i(t.value[0]).split(/\s*:\s*/);o.headers[e[0]]=e[1];break}case"data-state":o.data=i(t.value[0]).trim();break;case"custom-method-state":o.method=i(t.value[0]).trim()}e=""}else switch(t.name){case"header-state":e="header-state";break;case"data-state":e="data-state";break;case"custom-method-state":e="custom-method-state";break;case"user-state":e="user-state";break;case"string":{const e=i(t.value[0]);(e=>/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/.test(e))(e)&&(o.url=e);break}}})}return o}}},rPjj:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("mrSG"),r=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.c(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n("FFOo").a)},rUJ1:function(e,t){const n=/[&<>"']/,i=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,a={"&":"&","<":"<",">":">",'"':""","'":"'"},s=e=>a[e],c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(e){return e.replace(c,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const l=/(^|[^\[])\^/g,p=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,d={},f=/^[^:]+:\/*[^/]*$/,g=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function m(e,t){d[" "+e]||(d[" "+e]=f.test(e)?e+"/":v(e,"/",!0));const n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(g,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}function v(e,t,n){const i=e.length;if(0===i)return"";let r=0;for(;r(i=(i=i.source||i).replace(l,"$1"),e=e.replace(t,i),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(u(n)).replace(p,"").toLowerCase()}catch(i){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!h.test(n)&&(n=m(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n},resolveUrl:m,noopTest:{exec:function(){}},merge:function(e){let t,n,i=1;for(;i{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/);let i=0;if(n.length>t)n.splice(t);else for(;n.length2)return"[Array]";for(var i=Math.min(10,t.length),r=t.length-i,o=[],a=0;a1&&o.push("... ".concat(r," more items")),"["+o.join(", ")+"]"}(t,r);return function(t,n){var i=Object.keys(t);return 0===i.length?"{}":n.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(t)+"]":"{ "+i.map((function(i){return i+": "+e(t[i],n)})).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}},rpki:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return p}));var i=n("mrSG"),r=n("TYT/"),o=n("K9Ia"),a=n("VnD/"),s=n("aGNc"),c=new r.q("nz-config"),u=function(e){return void 0!==e},l=function(){function e(e){this.configUpdated$=new o.a,this.config=e||{}}return e.prototype.getConfigForComponent=function(e){return this.config[e]},e.prototype.getConfigChangeEventForComponent=function(e){return this.configUpdated$.pipe(Object(a.a)((function(t){return t===e})),Object(s.a)(void 0))},e.prototype.set=function(e,t){this.config[e]=Object(i.a)(Object(i.a)({},this.config[e]),t),this.configUpdated$.next(e)},e.\u0275prov=Object(r.Pb)({factory:function(){return new e(Object(r.dc)(c,8))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(r.dc(c,8))},e}();function p(e){return function(t,n,i){var r="$$__assignedValue__"+n;return Object.defineProperty(t,r,{configurable:!0,writable:!0,enumerable:!1}),{get:function(){var t=(null==i?void 0:i.get)?i.get.bind(this)():this[r];if((this.assignmentCount[n]||0)>1&&u(t))return t;var o=(this.nzConfigService.getConfigForComponent(e)||{})[n];return u(o)?o:t},set:function(e){this.assignmentCount=this.assignmentCount||{},this.assignmentCount[n]=(this.assignmentCount[n]||0)+1,(null==i?void 0:i.set)?i.set.bind(this)(e):this[r]=e},configurable:!0,enumerable:!0}}}},rt3J:function(e,t,n){!function(e){"use strict";e.registerHelper("fold","brace",(function(t,n){var i,r=n.line,o=t.getLine(r);function a(a){for(var s=n.ch,c=0;;){var u=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=u){if(1==c&&ut.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));if(/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"keyword"!=i.type||"import"!=i.string)return null;for(var r=n,o=Math.min(t.lastLine(),n+10);r<=o;++r){var a=t.getLine(r).indexOf(";");if(-1!=a)return{startCh:i.end,end:e.Pos(r,a)}}}var r,o=n.line,a=i(o);if(!a||i(o-1)||(r=i(o-2))&&r.end.line==o-1)return null;for(var s=a.end;;){var c=i(s.line+1);if(null==c)break;s=c.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function i(n){if(nt.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));return/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"meta"==i.type&&"#include"==i.string.slice(0,8)?i.start+8:void 0}var r=n.line,o=i(r);if(null==o||null!=i(r-1))return null;for(var a=r;null!=i(a+1);)++a;return{from:e.Pos(r,o+1),to:t.clipPos(e.Pos(a))}}))}(n("VrN/"))},ryCu:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return p}));var i=n("mrSG"),r=n("TYT/"),o=n("gQXd"),a={},s="[NG-ZORRO]:";function c(){for(var e=[],t=0;t0&&(n=isNaN(n)?e.search(/\S|$/):Math.min(e.search(/\S|$/),n)),isNaN(t)&&(t=n),n?e.substring(n):e})).join("\n"):"";var t},e.\u0275fac=function(t){return new(t||e)(r.dc(r.B),r.dc(f),r.dc(s.c,8),r.dc(d,8),r.dc(c.b))},e.\u0275prov=r.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),b=function(e){return e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}({}),m=function(){function e(e,t){this.element=e,this.markdownService=t,this.error=new r.n,this.load=new r.n,this.ready=new r.n,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}return Object.defineProperty(e.prototype,"emoji",{get:function(){return this._emoji},set:function(e){this._emoji=this.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"katex",{get:function(){return this._katex},set:function(e){this._katex=this.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineHighlight",{get:function(){return this._lineHighlight},set:function(e){this._lineHighlight=this.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineNumbers",{get:function(){return this._lineNumbers},set:function(e){this._lineNumbers=this.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){null==this.data?null==this.src||this.handleSrc():this.handleData()},e.prototype.ngAfterViewInit=function(){this.data||this.src||this.handleTransclusion()},e.prototype.render=function(e,t){void 0===t&&(t=!1);var n=this.markdownService.compile(e,t,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()},e.prototype.coerceBooleanProperty=function(e){return null!=e&&""+e!="false"},e.prototype.handleData=function(){this.render(this.data)},e.prototype.handleSrc=function(){var e=this;this.markdownService.getSource(this.src).subscribe((function(t){e.render(t),e.load.emit(t)}),(function(t){return e.error.emit(t)}))},e.prototype.handleTransclusion=function(){this.render(this.element.nativeElement.innerHTML,!0)},e.prototype.handlePlugins=function(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,b.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,b.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))},e.prototype.setPluginClass=function(e,t){for(var n,r=e.querySelectorAll("pre"),o=0;ol);p++){var h=e.getLine(u++);s=null==s?h:s+"\n"+h}c*=2,t.lastIndex=n.ch;var d=t.exec(s);if(d){var f=s.slice(0,d.index).split("\n"),g=d[0].split("\n"),b=n.line+f.length-1,m=f[f.length-1].length;return{from:i(b,m),to:i(b+g.length-1,1==g.length?m+g[0].length:g[g.length-1].length),match:d}}}}function c(e,t,n){for(var i,r=0;r<=e.length;){t.lastIndex=r;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!i||a>i.index+i[0].length)&&(i=o),r=o.index+1}return i}function u(e,t,n){t=r(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),l=c(u,t,a<0?0:u.length-a);if(l)return{from:i(o,l.index),to:i(o,l.index+l[0].length),match:l}}}function l(e,t,n){if(!o(t))return u(e,t,n);t=r(t,"gm");for(var a,s=1,l=e.getLine(n.line).length-n.ch,p=n.line,h=e.firstLine();p>=h;){for(var d=0;d=h;d++){var f=e.getLine(p--);a=null==a?f:f+"\n"+a}s*=2;var g=c(a,t,l);if(g){var b=a.slice(0,g.index).split("\n"),m=g[0].split("\n"),v=p+b.length,y=b[b.length-1].length;return{from:i(v,y),to:i(v+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:g}}}}function p(e,t,n,i){if(e.length==t.length)return n;for(var r=0,o=n+Math.max(0,e.length-t.length);;){if(r==o)return r;var a=r+o>>1,s=i(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:r=a+1}}function h(e,r,o,a){if(!r.length)return null;var s=a?t:n,c=s(r).split(/\r|\n\r?/);e:for(var u=o.line,l=o.ch,h=e.lastLine()+1-c.length;u<=h;u++,l=0){var d=e.getLine(u).slice(l),f=s(d);if(1==c.length){var g=f.indexOf(c[0]);if(-1==g)continue e;return o=p(d,f,g,s)+l,{from:i(u,p(d,f,g,s)+l),to:i(u,p(d,f,g+c[0].length,s)+l)}}var b=f.length-c[0].length;if(f.slice(b)==c[0]){for(var m=1;m=h;u--,l=-1){var d=e.getLine(u);l>-1&&(d=d.slice(0,l));var f=s(d);if(1==c.length){var g=f.lastIndexOf(c[0]);if(-1==g)continue e;return{from:i(u,p(d,f,g,s)),to:i(u,p(d,f,g+c[0].length,s))}}var b=c[c.length-1];if(f.slice(0,b.length)==b){var m=1;for(o=u-c.length+1;m0);)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)}))}(n("VrN/"))},uWOL:function(e,t,n){var i=n("NtLt");e.exports=function(e){return i(e).replace(/\s/g,"_")}},ufY2:function(e,t,n){"use strict";n.d(t,"a",(function(){return Q})),n.d(t,"b",(function(){return De})),n.d(t,"c",(function(){return se})),n.d(t,"d",(function(){return _e})),n.d(t,"e",(function(){return F})),n.d(t,"f",(function(){return ke})),n.d(t,"g",(function(){return $})),n.d(t,"h",(function(){return o})),n.d(t,"i",(function(){return D})),n.d(t,"j",(function(){return M})),n.d(t,"k",(function(){return j})),n.d(t,"l",(function(){return s})),n.d(t,"m",(function(){return Ce})),n.d(t,"n",(function(){return R})),n.d(t,"o",(function(){return A})),n.d(t,"p",(function(){return N})),n.d(t,"q",(function(){return a})),n.d(t,"r",(function(){return c})),n.d(t,"s",(function(){return Z})),n.d(t,"t",(function(){return q})),n.d(t,"u",(function(){return Pe})),n.d(t,"v",(function(){return Ne})),n.d(t,"w",(function(){return Ye})),n.d(t,"x",(function(){return Me})),n.d(t,"y",(function(){return Re})),n.d(t,"z",(function(){return Ve})),n.d(t,"A",(function(){return He})),n.d(t,"B",(function(){return Be})),n.d(t,"C",(function(){return qe})),n.d(t,"D",(function(){return Ue})),n.d(t,"E",(function(){return We})),n.d(t,"F",(function(){return je})),n.d(t,"G",(function(){return Le})),n.d(t,"H",(function(){return Fe})),n.d(t,"I",(function(){return Ae})),n.d(t,"J",(function(){return Ie})),n.d(t,"K",(function(){return B})),n.d(t,"L",(function(){return ce})),n.d(t,"M",(function(){return de})),n.d(t,"N",(function(){return K})),n.d(t,"O",(function(){return ue})),n.d(t,"P",(function(){return ge})),n.d(t,"Q",(function(){return pe})),n.d(t,"R",(function(){return ve})),n.d(t,"S",(function(){return ye})),n.d(t,"T",(function(){return Qe})),n.d(t,"U",(function(){return W})),n.d(t,"V",(function(){return L})),n.d(t,"W",(function(){return I})),n.d(t,"X",(function(){return U})),n.d(t,"Y",(function(){return we})),n.d(t,"Z",(function(){return H})),n.d(t,"ab",(function(){return _})),n.d(t,"bb",(function(){return Te})),n.d(t,"cb",(function(){return xe})),n.d(t,"db",(function(){return P})),n.d(t,"eb",(function(){return J})),n.d(t,"fb",(function(){return w})),n.d(t,"gb",(function(){return fe})),n.d(t,"hb",(function(){return ee})),n.d(t,"ib",(function(){return Se})),n.d(t,"jb",(function(){return E})),n.d(t,"kb",(function(){return te})),n.d(t,"lb",(function(){return ne})),n.d(t,"mb",(function(){return k})),n.d(t,"nb",(function(){return ae})),n.d(t,"ob",(function(){return x})),n.d(t,"pb",(function(){return ze})),n.d(t,"qb",(function(){return ie})),n.d(t,"rb",(function(){return Oe})),n.d(t,"sb",(function(){return O})),n.d(t,"tb",(function(){return he})),n.d(t,"ub",(function(){return $e})),n.d(t,"vb",(function(){return re})),n.d(t,"wb",(function(){return C})),n.d(t,"xb",(function(){return oe})),n.d(t,"yb",(function(){return X})),n.d(t,"zb",(function(){return le})),n.d(t,"Ab",(function(){return S})),n.d(t,"Bb",(function(){return z})),n.d(t,"Cb",(function(){return Y})),n.d(t,"Db",(function(){return T})),n.d(t,"Eb",(function(){return be}));var i=n("mrSG"),r=n("TYT/"),o=function(){function e(){}return e.prototype.transform=function(e){for(var t=[],n=1;n-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)})).join("");return Object(i.g)([o],r).join(" ")}function m(e,t){if(t<=0)return Math.round(e);var n=Math.pow(10,t);return Math.round(e*n)/n}function v(e,t){var n=t.split("."),i=n.shift();return n.reduce((function(e,t){return u(e)||null===e||u(e[t])?void 0:e[t]}),e[i||""])}function y(e,t){return Object(i.g)(Object.keys(e),Object.keys(t)).filter((function(e,t,n){return n.indexOf(e)===t}))}var w=function(){function e(){}return e.prototype.transform=function(e){return h(e)?e.split("").reverse().join(""):Array.isArray(e)?e.slice().reverse():e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"reverse",type:e,pure:!0}),e}(),O=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t=0),Array.isArray(e)?e.slice(t):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"tail",type:e,pure:!0}),e}(),C=function(){function e(){}return e.prototype.transform=function(e){return Array.isArray(e)?e.filter((function(e){return!!e})):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"truthify",type:e,pure:!0}),e}(),S=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t=[]),Array.isArray(e)&&Array.isArray(t)?t.reduce((function(e,t){return e.concat(t.reduce((function(t,n){return~t.indexOf(n)||~e.indexOf(n)?t:t.concat([n])}),[]))}),e):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"union",type:e,pure:!0}),e}(),z=function(){function e(){}return e.prototype.transform=function(e,t){var n=[];return Array.isArray(e)?u(t)?e.filter((function(t,n){return e.indexOf(t)===n})):e.filter((function(e,i){var r=v(e,t);return!u(r=d(r)?JSON.stringify(r):r)&&!n[r]&&(n[r]=!0,!0)})):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"unique",type:e,pure:!0}),e}(),T=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t=[]),Array.isArray(e)?e.filter((function(e){return!~t.indexOf(e)})):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"without",type:e,pure:!0}),e}(),_=function(){function e(){}return e.prototype.transform=function(e,t){return Array.isArray(e)?e.map((function(e){return v(e,t)})):d(e)?v(e,t):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"pluck",type:e,pure:!1}),e}(),k=function(){function e(){}return e.prototype.transform=function(e){var t;if(!Array.isArray(e))return e;for(var n=Object(i.g)(e),r=e.length-1,o=0;ot){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"shorten",type:e,pure:!0}),e}(),ie=function(){function e(){}return e.prototype.transform=function(e){for(var t=[],n=1;n0?new RegExp("<(?!/?("+t.join("|")+")s*/?)[^>]+>","g"):/<(?:.|\s)*?>/g,"")},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"stripTags",type:e,pure:!0}),e}(),re=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="\\s"),h(e)?e.replace(new RegExp("^["+t+"]+|["+t+"]+$","g"),""):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"trim",type:e,pure:!0}),e}(),oe=function(){function e(){}return e.prototype.transform=function(e){return h(e)?b(e):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"ucfirst",type:e,pure:!0}),e}(),ae=function(){function e(){}return e.prototype.transform=function(e){return h(e)?e.toLowerCase().trim().replace(/[^\w\-]+/g," ").replace(/\s+/g,"-"):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"slugify",type:e,pure:!0}),e}(),se=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="\\s"),h(e)?e.toLowerCase().split(/[-_\s]/g).filter((function(e){return!!e})).map((function(e,t){return t?e.slice(0,1).toUpperCase()+e.slice(1):e})).join(""):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"camelize",type:e,pure:!0}),e}(),ce=function(){function e(){this.latinMap={"\xc1":"A","\u0102":"A","\u1eae":"A","\u1eb6":"A","\u1eb0":"A","\u1eb2":"A","\u1eb4":"A","\u01cd":"A","\xc2":"A","\u1ea4":"A","\u1eac":"A","\u1ea6":"A","\u1ea8":"A","\u1eaa":"A","\xc4":"A","\u01de":"A","\u0226":"A","\u01e0":"A","\u1ea0":"A","\u0200":"A","\xc0":"A","\u1ea2":"A","\u0202":"A","\u0100":"A","\u0104":"A","\xc5":"A","\u01fa":"A","\u1e00":"A","\u023a":"A","\xc3":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u1e02":"B","\u1e04":"B","\u0181":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0106":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0108":"C","\u010a":"C","\u0187":"C","\u023b":"C","\u010e":"D","\u1e10":"D","\u1e12":"D","\u1e0a":"D","\u1e0c":"D","\u018a":"D","\u1e0e":"D","\u01f2":"D","\u01c5":"D","\u0110":"D","\u018b":"D","\u01f1":"DZ","\u01c4":"DZ","\xc9":"E","\u0114":"E","\u011a":"E","\u0228":"E","\u1e1c":"E","\xca":"E","\u1ebe":"E","\u1ec6":"E","\u1ec0":"E","\u1ec2":"E","\u1ec4":"E","\u1e18":"E","\xcb":"E","\u0116":"E","\u1eb8":"E","\u0204":"E","\xc8":"E","\u1eba":"E","\u0206":"E","\u0112":"E","\u1e16":"E","\u1e14":"E","\u0118":"E","\u0246":"E","\u1ebc":"E","\u1e1a":"E","\ua76a":"ET","\u1e1e":"F","\u0191":"F","\u01f4":"G","\u011e":"G","\u01e6":"G","\u0122":"G","\u011c":"G","\u0120":"G","\u0193":"G","\u1e20":"G","\u01e4":"G","\u1e2a":"H","\u021e":"H","\u1e28":"H","\u0124":"H","\u2c67":"H","\u1e26":"H","\u1e22":"H","\u1e24":"H","\u0126":"H","\xcd":"I","\u012c":"I","\u01cf":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u0130":"I","\u1eca":"I","\u0208":"I","\xcc":"I","\u1ec8":"I","\u020a":"I","\u012a":"I","\u012e":"I","\u0197":"I","\u0128":"I","\u1e2c":"I","\ua779":"D","\ua77b":"F","\ua77d":"G","\ua782":"R","\ua784":"S","\ua786":"T","\ua76c":"IS","\u0134":"J","\u0248":"J","\u1e30":"K","\u01e8":"K","\u0136":"K","\u2c69":"K","\ua742":"K","\u1e32":"K","\u0198":"K","\u1e34":"K","\ua740":"K","\ua744":"K","\u0139":"L","\u023d":"L","\u013d":"L","\u013b":"L","\u1e3c":"L","\u1e36":"L","\u1e38":"L","\u2c60":"L","\ua748":"L","\u1e3a":"L","\u013f":"L","\u2c62":"L","\u01c8":"L","\u0141":"L","\u01c7":"LJ","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u0143":"N","\u0147":"N","\u0145":"N","\u1e4a":"N","\u1e44":"N","\u1e46":"N","\u01f8":"N","\u019d":"N","\u1e48":"N","\u0220":"N","\u01cb":"N","\xd1":"N","\u01ca":"NJ","\xd3":"O","\u014e":"O","\u01d1":"O","\xd4":"O","\u1ed0":"O","\u1ed8":"O","\u1ed2":"O","\u1ed4":"O","\u1ed6":"O","\xd6":"O","\u022a":"O","\u022e":"O","\u0230":"O","\u1ecc":"O","\u0150":"O","\u020c":"O","\xd2":"O","\u1ece":"O","\u01a0":"O","\u1eda":"O","\u1ee2":"O","\u1edc":"O","\u1ede":"O","\u1ee0":"O","\u020e":"O","\ua74a":"O","\ua74c":"O","\u014c":"O","\u1e52":"O","\u1e50":"O","\u019f":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\xd5":"O","\u1e4c":"O","\u1e4e":"O","\u022c":"O","\u01a2":"OI","\ua74e":"OO","\u0190":"E","\u0186":"O","\u0222":"OU","\u1e54":"P","\u1e56":"P","\ua752":"P","\u01a4":"P","\ua754":"P","\u2c63":"P","\ua750":"P","\ua758":"Q","\ua756":"Q","\u0154":"R","\u0158":"R","\u0156":"R","\u1e58":"R","\u1e5a":"R","\u1e5c":"R","\u0210":"R","\u0212":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua73e":"C","\u018e":"E","\u015a":"S","\u1e64":"S","\u0160":"S","\u1e66":"S","\u015e":"S","\u015c":"S","\u0218":"S","\u1e60":"S","\u1e62":"S","\u1e68":"S","\u1e9e":"SS","\u0164":"T","\u0162":"T","\u1e70":"T","\u021a":"T","\u023e":"T","\u1e6a":"T","\u1e6c":"T","\u01ac":"T","\u1e6e":"T","\u01ae":"T","\u0166":"T","\u2c6f":"A","\ua780":"L","\u019c":"M","\u0245":"V","\ua728":"TZ","\xda":"U","\u016c":"U","\u01d3":"U","\xdb":"U","\u1e76":"U","\xdc":"U","\u01d7":"U","\u01d9":"U","\u01db":"U","\u01d5":"U","\u1e72":"U","\u1ee4":"U","\u0170":"U","\u0214":"U","\xd9":"U","\u1ee6":"U","\u01af":"U","\u1ee8":"U","\u1ef0":"U","\u1eea":"U","\u1eec":"U","\u1eee":"U","\u0216":"U","\u016a":"U","\u1e7a":"U","\u0172":"U","\u016e":"U","\u0168":"U","\u1e78":"U","\u1e74":"U","\ua75e":"V","\u1e7e":"V","\u01b2":"V","\u1e7c":"V","\ua760":"VY","\u1e82":"W","\u0174":"W","\u1e84":"W","\u1e86":"W","\u1e88":"W","\u1e80":"W","\u2c72":"W","\u1e8c":"X","\u1e8a":"X","\xdd":"Y","\u0176":"Y","\u0178":"Y","\u1e8e":"Y","\u1ef4":"Y","\u1ef2":"Y","\u01b3":"Y","\u1ef6":"Y","\u1efe":"Y","\u0232":"Y","\u024e":"Y","\u1ef8":"Y","\u0179":"Z","\u017d":"Z","\u1e90":"Z","\u2c6b":"Z","\u017b":"Z","\u1e92":"Z","\u0224":"Z","\u1e94":"Z","\u01b5":"Z","\u0132":"IJ","\u0152":"OE","\u1d00":"A","\u1d01":"AE","\u0299":"B","\u1d03":"B","\u1d04":"C","\u1d05":"D","\u1d07":"E","\ua730":"F","\u0262":"G","\u029b":"G","\u029c":"H","\u026a":"I","\u0281":"R","\u1d0a":"J","\u1d0b":"K","\u029f":"L","\u1d0c":"L","\u1d0d":"M","\u0274":"N","\u1d0f":"O","\u0276":"OE","\u1d10":"O","\u1d15":"OU","\u1d18":"P","\u0280":"R","\u1d0e":"N","\u1d19":"R","\ua731":"S","\u1d1b":"T","\u2c7b":"E","\u1d1a":"R","\u1d1c":"U","\u1d20":"V","\u1d21":"W","\u028f":"Y","\u1d22":"Z","\xe1":"a","\u0103":"a","\u1eaf":"a","\u1eb7":"a","\u1eb1":"a","\u1eb3":"a","\u1eb5":"a","\u01ce":"a","\xe2":"a","\u1ea5":"a","\u1ead":"a","\u1ea7":"a","\u1ea9":"a","\u1eab":"a","\xe4":"a","\u01df":"a","\u0227":"a","\u01e1":"a","\u1ea1":"a","\u0201":"a","\xe0":"a","\u1ea3":"a","\u0203":"a","\u0101":"a","\u0105":"a","\u1d8f":"a","\u1e9a":"a","\xe5":"a","\u01fb":"a","\u1e01":"a","\u2c65":"a","\xe3":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u1e03":"b","\u1e05":"b","\u0253":"b","\u1e07":"b","\u1d6c":"b","\u1d80":"b","\u0180":"b","\u0183":"b","\u0275":"o","\u0107":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0109":"c","\u0255":"c","\u010b":"c","\u0188":"c","\u023c":"c","\u010f":"d","\u1e11":"d","\u1e13":"d","\u0221":"d","\u1e0b":"d","\u1e0d":"d","\u0257":"d","\u1d91":"d","\u1e0f":"d","\u1d6d":"d","\u1d81":"d","\u0111":"d","\u0256":"d","\u018c":"d","\u0131":"i","\u0237":"j","\u025f":"j","\u0284":"j","\u01f3":"dz","\u01c6":"dz","\xe9":"e","\u0115":"e","\u011b":"e","\u0229":"e","\u1e1d":"e","\xea":"e","\u1ebf":"e","\u1ec7":"e","\u1ec1":"e","\u1ec3":"e","\u1ec5":"e","\u1e19":"e","\xeb":"e","\u0117":"e","\u1eb9":"e","\u0205":"e","\xe8":"e","\u1ebb":"e","\u0207":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u2c78":"e","\u0119":"e","\u1d92":"e","\u0247":"e","\u1ebd":"e","\u1e1b":"e","\ua76b":"et","\u1e1f":"f","\u0192":"f","\u1d6e":"f","\u1d82":"f","\u01f5":"g","\u011f":"g","\u01e7":"g","\u0123":"g","\u011d":"g","\u0121":"g","\u0260":"g","\u1e21":"g","\u1d83":"g","\u01e5":"g","\u1e2b":"h","\u021f":"h","\u1e29":"h","\u0125":"h","\u2c68":"h","\u1e27":"h","\u1e23":"h","\u1e25":"h","\u0266":"h","\u1e96":"h","\u0127":"h","\u0195":"hv","\xed":"i","\u012d":"i","\u01d0":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u1ecb":"i","\u0209":"i","\xec":"i","\u1ec9":"i","\u020b":"i","\u012b":"i","\u012f":"i","\u1d96":"i","\u0268":"i","\u0129":"i","\u1e2d":"i","\ua77a":"d","\ua77c":"f","\u1d79":"g","\ua783":"r","\ua785":"s","\ua787":"t","\ua76d":"is","\u01f0":"j","\u0135":"j","\u029d":"j","\u0249":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\u2c6a":"k","\ua743":"k","\u1e33":"k","\u0199":"k","\u1e35":"k","\u1d84":"k","\ua741":"k","\ua745":"k","\u013a":"l","\u019a":"l","\u026c":"l","\u013e":"l","\u013c":"l","\u1e3d":"l","\u0234":"l","\u1e37":"l","\u1e39":"l","\u2c61":"l","\ua749":"l","\u1e3b":"l","\u0140":"l","\u026b":"l","\u1d85":"l","\u026d":"l","\u0142":"l","\u01c9":"lj","\u017f":"s","\u1e9c":"s","\u1e9b":"s","\u1e9d":"s","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u1d6f":"m","\u1d86":"m","\u0144":"n","\u0148":"n","\u0146":"n","\u1e4b":"n","\u0235":"n","\u1e45":"n","\u1e47":"n","\u01f9":"n","\u0272":"n","\u1e49":"n","\u019e":"n","\u1d70":"n","\u1d87":"n","\u0273":"n","\xf1":"n","\u01cc":"nj","\xf3":"o","\u014f":"o","\u01d2":"o","\xf4":"o","\u1ed1":"o","\u1ed9":"o","\u1ed3":"o","\u1ed5":"o","\u1ed7":"o","\xf6":"o","\u022b":"o","\u022f":"o","\u0231":"o","\u1ecd":"o","\u0151":"o","\u020d":"o","\xf2":"o","\u1ecf":"o","\u01a1":"o","\u1edb":"o","\u1ee3":"o","\u1edd":"o","\u1edf":"o","\u1ee1":"o","\u020f":"o","\ua74b":"o","\ua74d":"o","\u2c7a":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\xf5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u01a3":"oi","\ua74f":"oo","\u025b":"e","\u1d93":"e","\u0254":"o","\u1d97":"o","\u0223":"ou","\u1e55":"p","\u1e57":"p","\ua753":"p","\u01a5":"p","\u1d71":"p","\u1d88":"p","\ua755":"p","\u1d7d":"p","\ua751":"p","\ua759":"q","\u02a0":"q","\u024b":"q","\ua757":"q","\u0155":"r","\u0159":"r","\u0157":"r","\u1e59":"r","\u1e5b":"r","\u1e5d":"r","\u0211":"r","\u027e":"r","\u1d73":"r","\u0213":"r","\u1e5f":"r","\u027c":"r","\u1d72":"r","\u1d89":"r","\u024d":"r","\u027d":"r","\u2184":"c","\ua73f":"c","\u0258":"e","\u027f":"r","\u015b":"s","\u1e65":"s","\u0161":"s","\u1e67":"s","\u015f":"s","\u015d":"s","\u0219":"s","\u1e61":"s","\u1e63":"s","\u1e69":"s","\u0282":"s","\u1d74":"s","\u1d8a":"s","\u023f":"s","\u0261":"g","\xdf":"ss","\u1d11":"o","\u1d13":"o","\u1d1d":"u","\u0165":"t","\u0163":"t","\u1e71":"t","\u021b":"t","\u0236":"t","\u1e97":"t","\u2c66":"t","\u1e6b":"t","\u1e6d":"t","\u01ad":"t","\u1e6f":"t","\u1d75":"t","\u01ab":"t","\u0288":"t","\u0167":"t","\u1d7a":"th","\u0250":"a","\u1d02":"ae","\u01dd":"e","\u1d77":"g","\u0265":"h","\u02ae":"h","\u02af":"h","\u1d09":"i","\u029e":"k","\ua781":"l","\u026f":"m","\u0270":"m","\u1d14":"oe","\u0279":"r","\u027b":"r","\u027a":"r","\u2c79":"r","\u0287":"t","\u028c":"v","\u028d":"w","\u028e":"y","\ua729":"tz","\xfa":"u","\u016d":"u","\u01d4":"u","\xfb":"u","\u1e77":"u","\xfc":"u","\u01d8":"u","\u01da":"u","\u01dc":"u","\u01d6":"u","\u1e73":"u","\u1ee5":"u","\u0171":"u","\u0215":"u","\xf9":"u","\u1ee7":"u","\u01b0":"u","\u1ee9":"u","\u1ef1":"u","\u1eeb":"u","\u1eed":"u","\u1eef":"u","\u0217":"u","\u016b":"u","\u1e7b":"u","\u0173":"u","\u1d99":"u","\u016f":"u","\u0169":"u","\u1e79":"u","\u1e75":"u","\u1d6b":"ue","\ua778":"um","\u2c74":"v","\ua75f":"v","\u1e7f":"v","\u028b":"v","\u1d8c":"v","\u2c71":"v","\u1e7d":"v","\ua761":"vy","\u1e83":"w","\u0175":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e81":"w","\u2c73":"w","\u1e98":"w","\u1e8d":"x","\u1e8b":"x","\u1d8d":"x","\xfd":"y","\u0177":"y","\xff":"y","\u1e8f":"y","\u1ef5":"y","\u1ef3":"y","\u01b4":"y","\u1ef7":"y","\u1eff":"y","\u0233":"y","\u1e99":"y","\u024f":"y","\u1ef9":"y","\u017a":"z","\u017e":"z","\u1e91":"z","\u0291":"z","\u2c6c":"z","\u017c":"z","\u1e93":"z","\u0225":"z","\u1e95":"z","\u1d76":"z","\u1d8e":"z","\u0290":"z","\u01b6":"z","\u0240":"z","\ufb00":"ff","\ufb03":"ffi","\ufb04":"ffl","\ufb01":"fi","\ufb02":"fl","\u0133":"ij","\u0153":"oe","\ufb06":"st","\u2090":"a","\u2091":"e","\u1d62":"i","\u2c7c":"j","\u2092":"o","\u1d63":"r","\u1d64":"u","\u1d65":"v","\u2093":"x"}}return e.prototype.transform=function(e,t){var n=this;return void 0===t&&(t="\\s"),h(e)?e.replace(/[^A-Za-z0-9]/g,(function(e){return n.latinMap[e]||e})):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"latinise",type:e,pure:!0}),e}(),ue=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="\\s"),h(e)?e.replace(/\r\n/g,"\n").split("\n"):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"lines",type:e,pure:!0}),e}(),le=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="\\s"),h(e)?e.trim().replace(/\s+/g,"").replace(/[A-Z]/g,(function(e,t){return t?"_"+e.toLowerCase():e.toLowerCase()})):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"underscore",type:e,pure:!0}),e}(),pe=function(){function e(){}return e.prototype.transform=function(e,t,n){return h(e)?e.match(new RegExp(t,n)):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"match",type:e,pure:!0}),e}(),he=function(){function e(){}return e.prototype.transform=function(e,t,n){return h(e)?new RegExp(t,n).test(e):e},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"test",type:e,pure:!0}),e}(),de=function(){function e(){}return e.prototype.transform=function(e,t,n){if(void 0===n&&(n=" "),!h(e)||e.length>=t)return e;for(;e.length=t)return e;for(;e.length=t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"isGreaterEqualThan",type:e,pure:!0}),e}(),Ve=function(){function e(){}return e.prototype.transform=function(e,t){return e>t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"isGreaterThan",type:e,pure:!0}),e}(),Be=function(){function e(){}return e.prototype.transform=function(e,t){return e<=t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"isLessEqualThan",type:e,pure:!0}),e}(),Ye=function(){function e(){}return e.prototype.transform=function(e,t){return e==t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"isEqualTo",type:e,pure:!0}),e}(),Ue=function(){function e(){}return e.prototype.transform=function(e,t){return e!=t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"isNotEqualTo",type:e,pure:!0}),e}(),He=function(){function e(){}return e.prototype.transform=function(e,t){return e===t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"isIdenticalTo",type:e,pure:!0}),e}(),We=function(){function e(){}return e.prototype.transform=function(e,t){return e!==t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"isNotIdenticalTo",type:e,pure:!0}),e}(),qe=function(){function e(){}return e.prototype.transform=function(e,t){return ei)return"in the future";for(var r=0,o=t.MAPPER.length,a=i-n,s=t.YEAR_MS;r=1)return 1===u?c.single:u+" "+c.many+" ago"}return"just now"},e.YEAR_MS=290304e5,e.MAPPER=[{single:"last year",many:"years",div:1},{single:"last month",many:"months",div:12},{single:"last week",many:"weeks",div:4},{single:"yesterday",many:"days",div:7},{single:"an hour ago",many:"hours",div:24},{single:"just now",many:"minutes",div:60}],e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Sb({name:"timeAgo",type:e,pure:!0}),e}(),Ge=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)},imports:[[]]}),e}(),Qe=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)},imports:[V,me,Ee,Ze,G,Ge]}),e}()},uhBA:function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty,r="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,i,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)i.call(e,t)&&n.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=this._events[r?r+e:e];if(!t)return[];if(t.fn)return[t.fn];for(var n=0,i=t.length,o=new Array(i);n1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},vbtb:function(e,t){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}},w6bI:function(e,t,n){"use strict";var i,r=n("lWBa"),o=n("YsTz"),a=n("GpRL"),s=Array.prototype.slice;i=function(e){return this.map((function(t,n){return t?t(e[n]):e[n]})).concat(s.call(e,this.length))},e.exports=function(e){return(e=r(e)).forEach((function(e){o(e)&&a(e)})),i.bind(e)}},wmq6:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return a}));var i=n("Valr"),r=n("TYT/"),o=n("mrSG"),a=function(){function e(e,t){this.viewContainer=e,this.templateRef=t,this.embeddedViewRef=null,this.context=new s,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}return e.ngTemplateContextGuard=function(e,t){return!0},e.prototype.recreateView=function(){this.viewContainer.clear();var e=this.nzStringTemplateOutlet instanceof r.M;this.embeddedViewRef=this.viewContainer.createEmbeddedView(e?this.nzStringTemplateOutlet:this.templateRef,e?this.nzStringTemplateOutletContext:this.context)},e.prototype.updateContext=function(){var e,t,n=this.nzStringTemplateOutlet instanceof r.M?this.nzStringTemplateOutletContext:this.context,i=this.embeddedViewRef.context;if(n)try{for(var a=Object(o.h)(Object.keys(n)),s=a.next();!s.done;s=a.next()){var c=s.value;i[c]=n[c]}}catch(u){e={error:u}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},e.prototype.ngOnChanges=function(e){var t,n=e.nzStringTemplateOutletContext,i=e.nzStringTemplateOutlet;i&&(this.context.$implicit=i.currentValue),t=!1,i&&(t=!!i.firstChange||i.previousValue instanceof r.M||i.currentValue instanceof r.M),n&&function(e){var t,n,i=Object.keys(e.previousValue||{}),r=Object.keys(e.currentValue||{});if(i.length===r.length){try{for(var a=Object(o.h)(r),s=a.next();!s.done;s=a.next())if(-1===i.indexOf(s.value))return!0}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return!1}return!0}(n)||t?this.recreateView():this.updateContext()},e.\u0275fac=function(t){return new(t||e)(r.Tb(r.Q),r.Tb(r.M))},e.\u0275dir=r.Ob({type:e,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[r.Bb]}),e}(),s=function(){return function(){}}(),c=function(){function e(){}return e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({factory:function(t){return new(t||e)},imports:[[i.c]]}),e}()},wpgB:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("dWS+"),r=n("axIb");function o(e,t){return'Enum value "'.concat(e,".").concat(t,'" can only be defined once.')}function a(e,t){return'Enum value "'.concat(e,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.')}function s(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);return{EnumTypeDefinition:c,EnumTypeExtension:c};function c(t){var c=t.name.value;if(s[c]||(s[c]=Object.create(null)),t.values)for(var u=s[c],l=0,p=t.values;l=u){if(h&&a&&h.test(a.className))return;o=r(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var i=t.line;i>=n.from&&in&&(r=n);var o=function(e){return e.charCodeAt(0).toString(16).toUpperCase()},a=function(e,t,n){return e.substr(t,n).replace(/\\/g,"\\\\").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+o(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+o(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+o(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+o(e)}))};return{prologTrunc:i>0,prologText:a(e,i,t-i),tokenText:a(e,t,1),epilogText:a(e,t+1,r-(t+1)),epilogTrunc:r3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;c(this,e),this.type=t,this.value=n,this.text=i,this.pos=r,this.line=o,this.column=a}return l(e,[{key:"toString",value:function(){return"")}},{key:"isA",value:function(e,t){return e===this.type&&(2!==arguments.length||t===this.value)}}]),e}(),d=function(e){function t(e,n,i,o,a){var u;return c(this,t),(u=r(this,s(t).call(this,e))).name="ParsingError",u.message=e,u.pos=n,u.line=i,u.column=o,u.input=a,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(t,o(Error)),l(t,[{key:"toString",value:function(){for(var e=p(this.input,this.pos),t="line ".concat(this.line," (column ").concat(this.column,"): "),n="",i=0;i0?((t=this._tokenizr).state.apply(t,arguments),this):(e=this._tokenizr).state.apply(e,arguments)}},{key:"tag",value:function(){var e;return(e=this._tokenizr).tag.apply(e,arguments),this}},{key:"tagged",value:function(){var e;return(e=this._tokenizr).tagged.apply(e,arguments)}},{key:"untag",value:function(){var e;return(e=this._tokenizr).untag.apply(e,arguments),this}},{key:"repeat",value:function(){return this._tokenizr._log(" REPEAT"),this._repeat=!0,this}},{key:"reject",value:function(){return this._tokenizr._log(" REJECT"),this._reject=!0,this}},{key:"ignore",value:function(){return this._tokenizr._log(" IGNORE"),this._ignore=!0,this}},{key:"accept",value:function(e,t){return arguments.length<2&&(t=this._match[0]),this._tokenizr._log(" ACCEPT: type: ".concat(e,", value: ")+"".concat(JSON.stringify(t)," (").concat(i(t),'), text: "').concat(this._match[0],'"')),this._tokenizr._pending.push(new h(e,t,this._match[0],this._tokenizr._pos,this._tokenizr._line,this._tokenizr._column)),this}},{key:"stop",value:function(){return this._tokenizr._stopped=!0,this}}]),e}(),g=function(){function e(){c(this,e),this._before=null,this._after=null,this._finish=null,this._rules=[],this._debug=!1,this.reset()}return l(e,[{key:"reset",value:function(){return this._input="",this._len=0,this._eof=!1,this._pos=0,this._line=1,this._column=1,this._state=["default"],this._tag={},this._transaction=[],this._pending=[],this._stopped=!1,this._ctx=new f(this),this}},{key:"error",value:function(e){return new d(e,this._pos,this._line,this._column,this._input)}},{key:"debug",value:function(e){return this._debug=e,this}},{key:"_log",value:function(e){this._debug&&console.log("tokenizr: ".concat(e))}},{key:"input",value:function(e){if("string"!=typeof e)throw new Error('parameter "input" not a String');return this.reset(),this._input=e,this._len=e.length,this}},{key:"push",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "state" not a String');return this._log(" STATE (PUSH): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(e,">")),this._state.push(e),this}},{key:"pop",value:function(){if(0!==arguments.length)throw new Error("invalid number of arguments");if(this._state.length<2)throw new Error("no more custom states to pop");return this._log(" STATE (POP): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(this._state[this._state.length-2],">")),this._state.pop()}},{key:"state",value:function(e){if(1===arguments.length){if("string"!=typeof e)throw new Error('parameter "state" not a String');return this._log(" STATE (SET): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(e,">")),this._state[this._state.length-1]=e,this}if(0===arguments.length)return this._state[this._state.length-1];throw new Error("invalid number of arguments")}},{key:"tag",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return this._log(" TAG (ADD): ".concat(e)),this._tag[e]=!0,this}},{key:"tagged",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return!0===this._tag[e]}},{key:"untag",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return this._log(" TAG (DEL): ".concat(e)),delete this._tag[e],this}},{key:"before",value:function(e){return this._before=e,this}},{key:"after",value:function(e){return this._after=e,this}},{key:"finish",value:function(e){return this._finish=e,this}},{key:"rule",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown";if(2===arguments.length&&"function"==typeof t){var o=[e,t];t=o[0],n=o[1],e="*"}else if(3===arguments.length&&"function"==typeof t){var a=[e,t,n];t=a[0],n=a[1],r=a[2],e="*"}if("string"!=typeof e)throw new Error('parameter "state" not a String');if(!("object"===i(t)&&t instanceof RegExp))throw new Error('parameter "pattern" not a RegExp');if("function"!=typeof n)throw new Error('parameter "action" not a Function');if("string"!=typeof r)throw new Error('parameter "name" not a String');e=e.split(/\s*,\s*/g).map((function(e){var t=e.split(/\s+/g),n=t.filter((function(e){return null===e.match(/^#/)})),i=t.filter((function(e){return null!==e.match(/^#/)})).map((function(e){return e.replace(/^#/,"")}));if(1!==n.length)throw new Error("exactly one state required");return{state:n[0],tags:i}}));var s="g";try{"boolean"==typeof new RegExp("","y").sticky&&(s="y")}catch(e){}return"boolean"==typeof t.multiline&&t.multiline&&(s+="m"),"boolean"==typeof t.dotAll&&t.dotAll&&(s+="s"),"boolean"==typeof t.ignoreCase&&t.ignoreCase&&(s+="i"),"boolean"==typeof t.unicode&&t.unicode&&(s+="u"),t=new RegExp(t.source,s),this._log("rule: configure rule (state: ".concat(e,", pattern: ").concat(t.source,")")),this._rules.push({state:e,pattern:t,action:n,name:r}),this}},{key:"_progress",value:function(e,t){for(var n=this._line,i=this._column,r=this._input,o=e;o, ")+"to: "))}},{key:"_tokenize",value:function(){var e=this,t=function(){e._eof||(null!==e._finish&&e._finish.call(e._ctx,e._ctx),e._eof=!0,e._pending.push(new h("EOF","","",e._pos,e._line,e._column)))};if(!(this._stopped||this._pos>=this._len)){for(var n=!0;n;){if(n=!1,this._debug){var i=p(this._input,this._pos),r=Object.keys(this._tag).map((function(e){return"#".concat(e)})).join(" ");this._log("INPUT: state: <".concat(this._state[this._state.length-1],">, tags: <").concat(r,">, text: ")+(i.prologTrunc?"...":'"')+"".concat(i.prologText,"<").concat(i.tokenText,">").concat(i.epilogText)+(i.epilogTrunc?"...":'"')+", at: "))}for(var o=0;o0&&(t+=" "+e.tags.map((function(e){return"#".concat(e)})).join(" ")),t})).join(", ");this._log(" RULE: state(s): <".concat(a,">, ")+"pattern: ".concat(this._rules[o].pattern.source))}var s=!1,c=this._rules[o].state.map((function(e){return e.state})),u=c.indexOf("*");if(u<0&&(u=c.indexOf(this._state[this._state.length-1])),u>=0){s=!0;var l=this._rules[o].state[u].tags;(l=l.filter((function(t){return!e._tag[t]}))).length>0&&(s=!1)}if(s){this._rules[o].pattern.lastIndex=this._pos;var d=this._rules[o].pattern.exec(this._input);if(this._rules[o].pattern.lastIndex=this._pos,null!==(d=this._rules[o].pattern.exec(this._input))&&d.index===this._pos){if(this._debug&&this._log(" MATCHED: "+JSON.stringify(d)),this._ctx._match=d,this._ctx._repeat=!1,this._ctx._reject=!1,this._ctx._ignore=!1,null!==this._before&&this._before.call(this._ctx,this._ctx,d,this._rules[o]),this._rules[o].action.call(this._ctx,this._ctx,d),null!==this._after&&this._after.call(this._ctx,this._ctx,d,this._rules[o]),this._ctx._reject)continue;if(this._ctx._repeat){n=!0;break}if(this._ctx._ignore){if(this._progress(this._pos,this._rules[o].pattern.lastIndex),this._pos=this._rules[o].pattern.lastIndex,this._pos>=this._len)return void t();n=!0;break}if(this._pending.length>0)return this._progress(this._pos,this._rules[o].pattern.lastIndex),this._pos=this._rules[o].pattern.lastIndex,void(this._pos>=this._len&&t());throw new Error('action of pattern "'+this._rules[o].pattern.source+'" neither rejected nor accepted any token(s)')}}}}throw this.error("token not recognized")}t()}},{key:"token",value:function(){if(0===this._pending.length&&this._tokenize(),this._pending.length>0){var e=this._pending.shift();return this._transaction.length>0&&this._transaction[0].push(e),this._log("TOKEN: ".concat(e.toString())),e}return null}},{key:"tokens",value:function(){for(var e,t=[];null!==(e=this.token());)t.push(e);return t}},{key:"peek",value:function(e){void 0===e&&(e=0);for(var t=0;t=this._pending.length)throw new Error("not enough tokens available for peek operation");return this._log("PEEK: ".concat(this._pending[e].toString())),this._pending[e]}},{key:"skip",value:function(e){void 0===e&&(e=1);for(var t=0;tthis._pending.length)throw new Error("not enough tokens available for skip operation");for(;e-- >0;)this.token();return this}},{key:"consume",value:function(e,t){for(var n=this,r=0;r, ")+"found: "),o.pos,o.line,o.column,n._input)};return 2!==arguments.length||o.isA(e,t)?o.isA(e)||a():a(JSON.stringify(t),i(t)),o}},{key:"begin",value:function(){return this._log("BEGIN: level ".concat(this._transaction.length)),this._transaction.unshift([]),this}},{key:"depth",value:function(){if(0===this._transaction.length)throw new Error("cannot determine depth -- no active transaction");return this._transaction[0].length}},{key:"commit",value:function(){if(0===this._transaction.length)throw new Error("cannot commit transaction -- no active transaction");return this._transaction.shift(),this._log("COMMIT: level ".concat(this._transaction.length)),this}},{key:"rollback",value:function(){if(0===this._transaction.length)throw new Error("cannot rollback transaction -- no active transaction");return this._pending=this._transaction[0].concat(this._pending),this._transaction.shift(),this._log("ROLLBACK: level ".concat(this._transaction.length)),this}},{key:"alternatives",value:function(){for(var e=null,t=[],n=arguments.length,i=new Array(n),r=0;r0)throw(t=t.sort((function(e,t){return e.depth-t.depth})))[0].ex;return e}}]),e}();g.Token=h,g.ParsingError=d,g.ActionContext=f,t.exports=g},{}]},{},[1])(1)}))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var i,r=(i=e("tokenizr"))&&i.__esModule?i:{default:i};t.exports=function(e){var t=new r.default;t.rule(/#[^\r\n]*(?=\r?\n)/,(function(e,t){e.accept("comment")})),t.rule(/"(?:\\"|[^"])*"/,(function(e,t){e.accept("string")})),t.rule(/$[a-zA-Z_][a-zA-Z0-9_]*/,(function(e,t){e.accept("var")})),t.rule(/[a-zA-Z_][a-zA-Z0-9_]*/,(function(e,t){e.accept("id")})),t.rule(/[+-]?[0-9]*\.?[0-9]+(?:[eE][+-]?[0-9]+)?/,(function(e,t){e.accept("number")})),t.rule(/[ \t\r\n]+/,(function(e,t){e.accept("ws"," ")})),t.rule(/[{}]/,(function(e,t){e.accept("brace")})),t.rule(/[[\]]/,(function(e,t){e.accept("bracket")})),t.rule(/[()]/,(function(e,t){e.accept("parenthesis")})),t.rule(/,/,(function(e,t){e.accept("comma")})),t.rule(/!/,(function(e,t){e.accept("not")})),t.rule(/\.\.\./,(function(e,t){e.accept("ellipsis")})),t.rule(/@/,(function(e,t){e.accept("at")})),t.rule(/:/,(function(e,t){e.accept("colon")})),t.rule(/./,(function(e,t){e.accept("any")})),t.input(e),t.debug(!1);for(var n=t.tokens(),i="",o=/^(?:brace|bracket|parenthesis|comma|colon)$/,a=0;a0&&n[a-1].type.match(o)))&&(n.splice(a,1),a--);return n.forEach((function(e){i+=e.value})),i}},{tokenizr:1}]},{},[2])(2)},zPI3:function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return Y})),n.d(t,"f",(function(){return D})),n.d(t,"g",(function(){return E})),n.d(t,"h",(function(){return N})),n.d(t,"i",(function(){return A})),n.d(t,"j",(function(){return M})),n.d(t,"k",(function(){return H})),n.d(t,"l",(function(){return J})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"o",(function(){return v})),n.d(t,"p",(function(){return f})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return U})),n.d(t,"s",(function(){return y})),n.d(t,"t",(function(){return x})),n.d(t,"u",(function(){return Q})),n.d(t,"v",(function(){return K})),n.d(t,"w",(function(){return j})),n.d(t,"x",(function(){return G})),n.d(t,"y",(function(){return P})),n.d(t,"z",(function(){return b})),n.d(t,"A",(function(){return k})),n.d(t,"B",(function(){return h})),n.d(t,"C",(function(){return w})),n.d(t,"D",(function(){return C})),n.d(t,"E",(function(){return O})),n.d(t,"F",(function(){return S})),n.d(t,"G",(function(){return ee}));var i=n("TYT/"),r=n("mrSG"),o=n("349r"),a=n("ryCu"),s=n("K9Ia"),c=n("zrt+"),u=n("0/uQ"),l=n("F/XL"),p=n("t9fZ");function h(e){return null==e?[]:Array.isArray(e)?e:[e]}function d(e,t){if(!e||!t||e.length!==t.length)return!1;for(var n=e.length,i=0;i1&&(n="["+n+"]"),new RegExp("(\\s|^)("+n+")[^\\s]*","g")}(t),i=e.match(n);return null!==i?i.map((function(e){return e.trim()})):[]}function j(e,t,n){if(e.length>t)return e;var i=""+function(e,t){return Array(e).fill(t).join("")}(t,n)+e;return i.slice(i.length-t,i.length)}function I(e){return!!e&&"function"==typeof e.then&&"function"==typeof e.catch}function A(e,t,n){return(n-e)/(t-e)*100}function M(e){var t=e.toString(),n=t.indexOf(".");return n>=0?t.length-n-1:0}function L(e,t,n){return isNaN(e)||en?n:e}function P(e){e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView&&e.scrollIntoView(!1)}var F=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],R="undefined"!=typeof window,V=R&&null!=window.mozInnerScreenX,B=function(e){return parseInt(e,10)};function Y(e,t,n){if(!R)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var i=n&&n.debug||!1;if(i){var r=document.querySelector("#input-textarea-caret-position-mirror-div");r&&r.parentNode.removeChild(r)}var o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);var a=o.style,s=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,c="INPUT"===e.nodeName;a.whiteSpace="pre-wrap",c||(a.wordWrap="break-word"),a.position="absolute",i||(a.visibility="hidden"),F.forEach((function(e){c&&"lineHeight"===e?a.lineHeight=s.height:a[e]=s[e]})),V?e.scrollHeight>B(s.height)&&(a.overflowY="scroll"):a.overflow="hidden",o.textContent=e.value.substring(0,t),c&&(o.textContent=o.textContent.replace(/\s/g,"\xa0"));var u=document.createElement("span");u.textContent=e.value.substring(t)||".",o.appendChild(u);var l={top:u.offsetTop+B(s.borderTopWidth),left:u.offsetLeft+B(s.borderLeftWidth),height:B(s.lineHeight)};return i?(u.style.backgroundColor="#eee",function(e,t){var n=getComputedStyle(e).getPropertyValue("font-size"),i=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(i),i.id="DEBUG",i.style.position="absolute",i.style.backgroundColor="red",i.style.height=n,i.style.width="1px",i.style.top=e.getBoundingClientRect().top-e.scrollTop+window.pageYOffset+t.top+"px",i.style.left=e.getBoundingClientRect().left-e.scrollLeft+window.pageXOffset+t.left+"px"}(e,l)):document.body.removeChild(o),l}function U(e){if("undefined"!=typeof window&&window.document&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1}function H(e){return e?Object.keys(e).map((function(t){var n=e[t];return t+":"+("string"==typeof n?n:n+"px")})).join(";"):""}var W,q,Z,$={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function G(e){if(!e)return 0;var t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}function Q(e,t,n,i,r,o){void 0===o&&(o=""),W||((W=document.createElement("div")).setAttribute("aria-hidden","true"),document.body.appendChild(W));var a,s=window.getComputedStyle(e),c=(a=s,Array.prototype.slice.apply(a).map((function(e){return e+": "+a.getPropertyValue(e)+";"})).join("")),u=G(s.lineHeight),l=Math.round(u*(t+1)+G(s.paddingTop)+G(s.paddingBottom));W.setAttribute("style",c),W.style.position="fixed",W.style.left="0",W.style.height="auto",W.style.minHeight="auto",W.style.maxHeight="auto",W.style.top="-999999px",W.style.zIndex="-1000",W.style.textOverflow="clip",W.style.whiteSpace="normal",W.style.webkitLineClamp="none";var p,h=(p=[],n.forEach((function(e){var t=p[p.length-1];t&&3===e.nodeType&&3===t.nodeType?t.data+=e.data:p.push(e)})),p),d=document.createElement("div"),f=document.createElement("span"),g=document.createTextNode(o),b=document.createElement("span");function m(){return W.offsetHeight=r-1)for(var s=r;s>=i;s-=1){var c=n.slice(0,s);if(t.textContent=c,m()||!c)return s===n.length?{finished:!1,node:document.createTextNode(n)}:{finished:!0,node:document.createTextNode(c)}}return m()?e(t,n,a,r,a):e(t,n,i,a,o)}(r,i)}return{finished:!1,node:null}}(e,t),i=n.finished,r=n.node;return r&&S.push(r),i}));for(var z={contentNodes:S,text:W.innerHTML,ellipsis:!0};W.firstChild;)W.removeChild(W.firstChild);return z}var X={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function K(e,t){if(void 0===e&&(e="vertical"),void 0===t&&(t="ant"),"undefined"==typeof document||"undefined"==typeof window)return 0;var n="vertical"===e;if(n&&q)return q;if(!n&&Z)return Z;var i=document.createElement("div");Object.keys(X).forEach((function(e){i.style[e]=X[e]})),i.className=t+"-hide-scrollbar scroll-div-append-to-body",n?i.style.overflowY="scroll":i.style.overflowX="scroll",document.body.appendChild(i);var r=0;return n?q=r=i.offsetWidth-i.clientWidth:Z=r=i.offsetHeight-i.clientHeight,document.body.removeChild(i),r}function J(){var e=new s.a;return Promise.resolve().then((function(){return e.next()})),e.pipe(Object(p.a)(1))}function ee(e){return Object(c.a)(e)?e:I(e)?Object(u.a)(Promise.resolve(e)):Object(l.a)(e)}},zUnb:function(e,t,n){"use strict";n.r(t);var i=n("TYT/"),r=n("AytR"),o=n("xyIE"),a=n("E1rE"),s=n("Vx+w"),c=n("6onV"),u=n("U/X8"),l=function(){return function(e){this.windowId=e,this.type="START_LOADING"}}(),p=function(){return function(e){this.windowId=e,this.type="STOP_LOADING"}}(),h=function(){return function(e,t){this.windowId=e,this.payload=t,this.type="SET_WINDOW_NAME"}}(),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.windowIds.length-1?e.windowIds[0]:e.windowIds[i+1],P(P({},e),{activeWindowId:n});case L.e:var i;return n="",n=(i=e.windowIds.findIndex((function(t){return t===e.activeWindowId})))<=0?e.windowIds[e.windowIds.length-1]:e.windowIds[i-1],P(P({},e),{activeWindowId:n});case L.c:return P(P({},e),{activeWindowId:t.payload.windowId});case L.f:return P(P({},e),{windowIds:t.payload.ids});case L.a:var r=t.payload.currentPosition,o=t.payload.newPosition;if(r>-1&&r-1&&o0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]i)return 1;if(ni)return-1;if(ni)return-1;if(ni)return 1;if(n=Object(s.b)().query_history_depth&&n.list.pop(),A(A({},n),{list:M([{query:t.payload.query}],n.list)});case"CLEAR_HISTORY":return{list:[]};default:return e}},stream:function(e,t){switch(void 0===e&&(e={url:"",type:"",isConnected:!1,failed:null}),t.type){case ze.d:return Te(Te({},e),{url:t.payload.streamUrl,isConnected:!1});case ze.a:return Te(Te({},e),{client:t.payload.streamClient});case ze.c:return Te(Te({},e),{failed:t.payload.failed,isConnected:!1});case ze.b:return Te(Te({},e),{isConnected:t.payload.connected});default:return e}},preRequest:function(e,t){switch(void 0===e&&(e=De()),t.type){case _e.b:return ke(ke({},e),{script:t.payload.script});case _e.a:return ke(ke({},e),{enabled:t.payload.enabled});default:return e}}},ft=function(e){return""+(Object(s.b)().initialData.instanceStorageNamespace||"altair_")+e},gt=[function(e){return Object(u.localStorageSync)({keys:["windows","windowsMeta","settings","environments"],rehydrate:!0,storage:Ie,restoreDates:!1,storageKeySerializer:ft})(e)},function(e){return function(t,n){return r.a.production&&!window.__ENABLE_DEBUG_MODE__||o.a.log(n.type,n),window.__LAST_ACTION__=window.__LAST_ACTION__||[],window.__LAST_ACTION__.push(n.type),r.a.production&&window.__LAST_ACTION__.length>10&&window.__LAST_ACTION__.shift(),e(t,n)}}],bt=function(){return{windows:(e=Object(c.m)(dt),t=e(void 0,{type:"___INIT_WINDOW___"}),n={},function(i,r){void 0===i&&(i=n);var o=Object.assign({},i),a=o[r.windowId];switch(r.type){case x.a:var s=r.payload,u=s.windowId,l=s.title,p=s.url,h=s.collectionId,d=s.windowIdInCollection;return o[u]=JSON.parse(JSON.stringify(t)),o[u].layout.title=l,o[u].windowId=u,p&&(o[u].query.url=p),h&&(o[u].layout.collectionId=h),d&&(o[u].layout.windowIdInCollection=d),o;case x.m:var f={};return r.payload.forEach((function(e){f[e.windowId]=N({},e)})),f;case x.i:var g=r.payload.windowId;return o[g]&&delete o[g],Object.assign({},o);default:if(!a)return r.type===c.b?function(e){return Object.keys(e).map((function(t){var n=e[t];return n.headers=n.headers.map((function(e){return E(E({},e),{enabled:void 0===e.enabled||e.enabled})})),n})).reduce((function(e,t){return e[t.windowId]=t,e}),{})}(o):o;var b=e(a,r);return o[r.windowId]=N(N({},b),{windowId:r.windowId}),o}}),windowsMeta:R,settings:$,donation:K,collection:he,environments:Se,local:je};var e,t,n},mt=new i.q("Registered Reducers"),vt=(bt(),["__ALTAIR_ENDPOINT_URL__","__ALTAIR_SUBSCRIPTIONS_ENDPOINT__","__ALTAIR_INITIAL_QUERY__","__ALTAIR_INITIAL_VARIABLES__","__ALTAIR_INITIAL_HEADERS__","__ALTAIR_INITIAL_PRE_REQUEST_SCRIPT__","__ALTAIR_INSTANCE_STORAGE_NAMESPACE__"]),yt=function(e){console.warn("DEPRECATION NOTICE: Configuring altair using global variables is deprecated, and will be removed in a future version."),console.warn("You set [window."+e+"], which is deprecated."),console.warn("Use 'AltairGraphQL.init(opts)' instead.")},wt=n("ED2X"),Ot=n("QJY3"),Ct=n("cUzu"),St=n("qT8p"),zt=n("mrSG"),Tt=n("p0ib"),_t=n("6blF"),kt=n("K9Ia"),Dt=n("lYZG"),xt=n("60iU"),Et=n("FFOo"),Nt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new jt(e))},e}(),jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt.c(t,e),t.prototype._next=function(e){},t}(Et.a),It=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new At(e))},e}(),At=function(e){function t(t){return e.call(this,t)||this}return zt.c(t,e),t.prototype._next=function(e){this.destination.next(xt.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(xt.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(xt.a.createComplete()),e.complete()},t}(Et.a),Mt=n("67Y/"),Lt=n("9Z1F"),Pt=n("VnD/"),Ft=n("pugT");function Rt(e,t,n,i){return function(r){return r.lift(new Vt(e,t,n,i))}}var Vt=function(){function e(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}return e.prototype.call=function(e,t){return t.subscribe(new Bt(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),Bt=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=i,a.durationSelector=r,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return zt.c(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(s){this.error(s)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new kt.a,n.set(t,r);var o=new Ut(t,r,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new Ut(t,r))}catch(s){return void this.error(s)}this.add(a.subscribe(new Yt(t,r,this)))}}r.closed||r.next(i)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(Et.a),Yt=function(e){function t(t,n,i){var r=e.call(this,n)||this;return r.key=t,r.group=n,r.parent=i,r}return zt.c(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(Et.a),Ut=function(e){function t(t,n,i){var r=e.call(this)||this;return r.key=t,r.groupSubject=n,r.refCountSubscription=i,r}return zt.c(t,e),t.prototype._subscribe=function(e){var t=new Ft.a,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new Ht(n)),t.add(i.subscribe(e)),t},t}(_t.a),Ht=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return zt.c(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(Ft.a),Wt=n("psW0"),qt=n("MGBS"),Zt=n("rPjj"),$t=n("zotm"),Gt=n("0/uQ"),Qt=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Xt(e,this.project))},e}(),Xt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return zt.c(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new Zt.a(this,t,n),r=this.destination;r.add(i);var o=Object($t.a)(this,e,void 0,void 0,i);o!==i&&r.add(o)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(qt.a),Kt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Jt(e))},e}(),Jt=function(e){function t(t){return e.call(this,t)||this}return zt.c(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(Et.a),en=n("t9fZ"),tn=(n("Phjn"),n("2WpN")),nn={dispatch:!0,useEffectsErrorHandler:!0};function rn(e){return Object.getOwnPropertyNames(e).filter((function(t){return e[t]&&e[t].hasOwnProperty("__@ngrx/effects_create__")})).map((function(t){var n=e[t]["__@ngrx/effects_create__"];return Object(zt.a)({propertyName:t},n)}))}function on(e){return Object.getPrototypeOf(e)}function an(e){return void 0===e&&(e={}),function(t,n){var i,r;i=t,r=Object(zt.a)(Object(zt.a)(Object(zt.a)({},nn),e),{propertyName:n}),cn(i)?i.constructor["__@ngrx/effects__"].push(r):Object.defineProperty(i.constructor,"__@ngrx/effects__",{value:[r]})}}function sn(e){return Object(c.n)(un,on)(e)}function cn(e){return e.constructor.hasOwnProperty("__@ngrx/effects__")}function un(e){return cn(e)?e.constructor["__@ngrx/effects__"]:[]}function ln(e,t,n){return void 0===n&&(n=10),e.pipe(Object(Lt.a)((function(i){return t&&t.handleError(i),n<=1?e:ln(e,t,n-1)})))}var pn=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}var n;return Object(zt.c)(t,e),n=t,t.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},t.\u0275fac=function(e){return new(e||t)(i.dc(c.f))},t.\u0275prov=i.Pb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(_t.a);function hn(){for(var e=[],t=0;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fn(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Rn=Fn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vn=Fn(/Edge/i),Bn=Fn(/firefox/i),Yn=Fn(/safari/i)&&!Fn(/chrome/i)&&!Fn(/android/i),Un=Fn(/iP(ad|od|hone)/i),Hn=Fn(/chrome/i)&&Fn(/android/i),Wn={capture:!1,passive:!1};function qn(e,t,n){e.addEventListener(t,n,!Rn&&Wn)}function Zn(e,t,n){e.removeEventListener(t,n,!Rn&&Wn)}function $n(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Gn(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Qn(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&$n(e,t):$n(e,t))||i&&e===n)return e;if(e===n)break}while(e=Gn(e))}return null}var Xn,Kn=/\s+/g;function Jn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Kn," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Kn," ")}}function ei(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function ti(e,t){var n="";if("string"==typeof e)n=e;else do{var i=ei(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function ni(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r=o:r<=o))return i;if(i===ii())break;i=li(i,!1)}return!1}function ai(e,t,n){for(var i=0,r=0,o=e.children;r2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=Pn(n,["evt"]);vi.pluginEvent.bind(pr)(e,t,Ln({dragEl:Oi,parentEl:Ci,ghostEl:Si,rootEl:zi,nextEl:Ti,lastDownEl:_i,cloneEl:ki,cloneHidden:Di,dragStarted:Bi,putSortable:Ai,activeSortable:pr.active,originalEvent:i,oldIndex:xi,oldDraggableIndex:Ni,newIndex:Ei,newDraggableIndex:ji,hideGhostForTarget:sr,unhideGhostForTarget:cr,cloneNowHidden:function(){Di=!0},cloneNowShown:function(){Di=!1},dispatchSortableEvent:function(e){wi({sortable:t,name:e,originalEvent:i})}},r))};function wi(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,c=e.oldIndex,u=e.newIndex,l=e.oldDraggableIndex,p=e.newDraggableIndex,h=e.originalEvent,d=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[gi]){var g,b=t.options,m="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||Rn||Vn?(g=document.createEvent("Event")).initEvent(i,!0,!0):g=new CustomEvent(i,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=s||n,g.item=r||n,g.clone=o,g.oldIndex=c,g.newIndex=u,g.oldDraggableIndex=l,g.newDraggableIndex=p,g.originalEvent=h,g.pullMode=d?d.lastPutMode:void 0;var v=Ln({},f,vi.getEventProperties(i,t));for(var y in v)g[y]=v[y];n&&n.dispatchEvent(g),b[m]&&b[m].call(t,g)}}(Ln({putSortable:Ai,cloneEl:ki,targetEl:Oi,rootEl:zi,oldIndex:xi,oldDraggableIndex:Ni,newIndex:Ei,newDraggableIndex:ji},e))}var Oi,Ci,Si,zi,Ti,_i,ki,Di,xi,Ei,Ni,ji,Ii,Ai,Mi,Li,Pi,Fi,Ri,Vi,Bi,Yi,Ui,Hi,Wi,qi=!1,Zi=!1,$i=[],Gi=!1,Qi=!1,Xi=[],Ki=!1,Ji=[],er="undefined"!=typeof document,tr=Un,nr=Vn||Rn?"cssFloat":"float",ir=er&&!Hn&&!Un&&"draggable"in document.createElement("div"),rr=function(){if(er){if(Rn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),or=function(e,t){var n=ei(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=ai(e,0,t),o=ai(e,1,t),a=r&&ei(r),s=o&&ei(o),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ri(r).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+ri(o).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&a.float&&"none"!==a.float?!o||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=i&&"none"===n[nr]||o&&"none"===n[nr]&&c+u>i)?"vertical":"horizontal"},ar=function(e){function t(e,n){return function(i,r,o,a){if(null==e&&(n||i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,r,o,a),n)(i,r,o,a);var s=(n?i:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},i=e.group;i&&"object"==In(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},sr=function(){!rr&&Si&&ei(Si,"display","none")},cr=function(){!rr&&Si&&ei(Si,"display","")};er&&document.addEventListener("click",(function(e){if(Zi)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Zi=!1,!1}),!0);var ur=function(e){if(Oi){var t=(r=(e=e.touches?e.touches[0]:e).clientX,o=e.clientY,$i.some((function(e){if(!si(e)){var t=ri(e),n=e[gi].options.emptyInsertThreshold;return n&&r>=t.left-n&&r<=t.right+n&&o>=t.top-n&&o<=t.bottom+n?a=e:void 0}})),a);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[gi]._onDragOver(n)}}var r,o,a},lr=function(e){Oi&&Oi.parentNode[gi]._isOutsideThisEl(e.target)};function pr(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Mn({},t),e[gi]=this;var n,i,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return or(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==pr.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in vi.initializePlugins(this,e,r),r)!(o in t)&&(t[o]=r[o]);for(var a in ar(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&ir,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?qn(e,"pointerdown",this._onTapStart):(qn(e,"mousedown",this._onTapStart),qn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(qn(e,"dragover",this),qn(e,"dragenter",this)),$i.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Mn(this,(i=[],{captureAnimationState:function(){i=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==ei(e,"display")&&e!==pr.ghost){i.push({target:e,rect:ri(e)});var t=Ln({},i[i.length-1].rect);if(e.thisAnimationDuration){var n=ti(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){i.push(e)},removeAnimationState:function(e){i.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(i,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,o=0;i.forEach((function(e){var n=0,i=e.target,a=i.fromRect,s=ri(i),c=i.prevFromRect,u=i.prevToRect,l=e.rect,p=ti(i,!0);p&&(s.top-=p.f,s.left-=p.e),i.toRect=s,i.thisAnimationDuration&&pi(c,s)&&!pi(a,s)&&(l.top-s.top)/(l.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}(l,c,u,t.options)),pi(s,a)||(i.prevFromRect=a,i.prevToRect=s,n||(n=t.options.animation),t.animate(i,l,s,n)),n&&(r=!0,o=Math.max(o,n),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),n),i.thisAnimationDuration=n)})),clearTimeout(n),r?n=setTimeout((function(){"function"==typeof e&&e()}),o):"function"==typeof e&&e(),i=[]},animate:function(e,t,n,i){if(i){ei(e,"transition",""),ei(e,"transform","");var r=ti(this.el),o=(t.left-n.left)/(r&&r.a||1),a=(t.top-n.top)/(r&&r.d||1);e.animatingX=!!o,e.animatingY=!!a,ei(e,"transform","translate3d("+o+"px,"+a+"px,0)"),ei(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),ei(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){ei(e,"transition",""),ei(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}))}function hr(e,t,n,i,r,o,a,s){var c,u,l=e[gi],p=l.options.onMove;return!window.CustomEvent||Rn||Vn?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=i,c.related=r||t,c.relatedRect=o||ri(t),c.willInsertAfter=s,c.originalEvent=a,e.dispatchEvent(c),p&&(u=p.call(l,c,a)),u}function dr(e){e.draggable=!1}function fr(){Ki=!1}function gr(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function br(e){return setTimeout(e,0)}function mr(e){return clearTimeout(e)}pr.prototype={constructor:pr,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Yi=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Oi):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=i.filter;if(function(e){Ji.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Ji.push(i)}}(n),!Oi&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||i.disabled||c.isContentEditable||(s=Qn(s,i.draggable,n,!1))&&s.animated||_i===s)){if(xi=ci(s),Ni=ci(s,i.draggable),"function"==typeof u){if(u.call(this,e,s,this))return wi({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),yi("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(i){if(i=Qn(c,i.trim(),n,!1))return wi({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),yi("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());i.handle&&!Qn(c,i.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(n&&!Oi&&n.parentNode===o){var c=ri(n);if(zi=o,Ci=(Oi=n).parentNode,Ti=Oi.nextSibling,_i=n,Ii=a.group,pr.dragged=Oi,Ri=(Mi={target:Oi,clientX:(t||e).clientX,clientY:(t||e).clientY}).clientX-c.left,Vi=Mi.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Oi.style["will-change"]="all",i=function(){yi("delayEnded",r,{evt:e}),pr.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Bn&&r.nativeDraggable&&(Oi.draggable=!0),r._triggerDragStart(e,t),wi({sortable:r,name:"choose",originalEvent:e}),Jn(Oi,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){ni(Oi,e.trim(),dr)})),qn(s,"dragover",ur),qn(s,"mousemove",ur),qn(s,"touchmove",ur),qn(s,"mouseup",r._onDrop),qn(s,"touchend",r._onDrop),qn(s,"touchcancel",r._onDrop),Bn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Oi.draggable=!0),yi("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Vn||Rn))i();else{if(pr.eventCanceled)return void this._onDrop();qn(s,"mouseup",r._disableDelayedDrag),qn(s,"touchend",r._disableDelayedDrag),qn(s,"touchcancel",r._disableDelayedDrag),qn(s,"mousemove",r._delayedDragTouchMoveHandler),qn(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&qn(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Oi&&dr(Oi),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Zn(e,"mouseup",this._disableDelayedDrag),Zn(e,"touchend",this._disableDelayedDrag),Zn(e,"touchcancel",this._disableDelayedDrag),Zn(e,"mousemove",this._delayedDragTouchMoveHandler),Zn(e,"touchmove",this._delayedDragTouchMoveHandler),Zn(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?qn(document,this.options.supportPointer?"pointermove":t?"touchmove":"mousemove",this._onTouchMove):(qn(Oi,"dragend",this),qn(zi,"dragstart",this._onDragStart));try{document.selection?br((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(qi=!1,zi&&Oi){yi("dragStarted",this,{evt:t}),this.nativeDraggable&&qn(document,"dragover",lr);var n=this.options;!e&&Jn(Oi,n.dragClass,!1),Jn(Oi,n.ghostClass,!0),pr.active=this,e&&this._appendGhost(),wi({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Li){this._lastX=Li.clientX,this._lastY=Li.clientY,sr();for(var e=document.elementFromPoint(Li.clientX,Li.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Li.clientX,Li.clientY))!==t;)t=e;if(Oi.parentNode[gi]._isOutsideThisEl(e),t)do{if(t[gi]&&t[gi]._onDragOver({clientX:Li.clientX,clientY:Li.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);cr()}},_onTouchMove:function(e){if(Mi){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=Si&&ti(Si,!0),a=Si&&o&&o.a,s=Si&&o&&o.d,c=tr&&Wi&&ui(Wi),u=(r.clientX-Mi.clientX+i.x)/(a||1)+(c?c[0]-Xi[0]:0)/(a||1),l=(r.clientY-Mi.clientY+i.y)/(s||1)+(c?c[1]-Xi[1]:0)/(s||1);if(!pr.active&&!qi){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,r,this)&&!g.animated){if(g===Oi)return E(!1);if(g&&o===e.target&&(a=g),a&&(n=ri(a)),!1!==hr(zi,o,Oi,t,a,n,e,!!a))return x(),o.appendChild(Oi),Ci=o,N(),E(!0)}else if(a.parentNode===o){n=ri(a);var b,m,v,y=Oi.parentNode!==o,w=!function(e,t,n){var i=n?e.left:e.top,r=n?t.left:t.top;return i===r||(n?e.right:e.bottom)===(n?t.right:t.bottom)||i+(n?e.width:e.height)/2===r+(n?t.width:t.height)/2}(Oi.animated&&Oi.toRect||t,a.animated&&a.toRect||n,r),O=r?"top":"left",C=oi(a,"top","top")||oi(Oi,"top","top"),S=C?C.scrollTop:void 0;if(Yi!==a&&(m=n[O],Gi=!1,Qi=!w&&s.invertSwap||y),0!==(b=function(e,t,n,i,r,o,a,s){var c=i?e.clientY:e.clientX,u=i?n.height:n.width,l=i?n.top:n.left,p=i?n.bottom:n.right,h=!1;if(!a)if(s&&Hil+u*o/2:cp-Hi)return-Ui}else if(c>l+u*(1-r)/2&&cp-u*o/2)?c>l+u/2?1:-1:0}(e,a,n,r,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Qi,Yi===a))){var z=ci(Oi);do{v=Ci.children[z-=b]}while(v&&("none"===ei(v,"display")||v===Si))}if(0===b||v===a)return E(!1);Yi=a,Ui=b;var T=a.nextElementSibling,_=!1,k=hr(zi,o,Oi,t,a,n,e,_=1===b);if(!1!==k)return 1!==k&&-1!==k||(_=1===k),Ki=!0,setTimeout(fr,30),x(),_&&!T?o.appendChild(Oi):a.parentNode.insertBefore(Oi,_?T:a),C&&di(C,0,S-C.scrollTop),Ci=Oi.parentNode,void 0===m||Qi||(Hi=Math.abs(m-ri(a)[O])),N(),E(!0)}if(o.contains(Oi))return E(!1)}return!1}function D(s,c){yi(s,d,Ln({evt:e,isOwner:l,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:p,fromSortable:h,target:a,completed:E,onMove:function(n,i){return hr(zi,o,Oi,t,n,ri(n),e,i)},changed:N},c))}function x(){D("dragOverAnimationCapture"),d.captureAnimationState(),d!==h&&h.captureAnimationState()}function E(t){return D("dragOverCompleted",{insertion:t}),t&&(l?u._hideClone():u._showClone(d),d!==h&&(Jn(Oi,Ai?Ai.options.ghostClass:u.options.ghostClass,!1),Jn(Oi,s.ghostClass,!0)),Ai!==d&&d!==pr.active?Ai=d:d===pr.active&&Ai&&(Ai=null),h===d&&(d._ignoreWhileAnimating=a),d.animateAll((function(){D("dragOverAnimationComplete"),d._ignoreWhileAnimating=null})),d!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===Oi&&!Oi.animated||a===o&&!a.animated)&&(Yi=null),s.dragoverBubble||e.rootEl||a===document||(Oi.parentNode[gi]._isOutsideThisEl(e.target),!t&&ur(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function N(){Ei=ci(Oi),ji=ci(Oi,s.draggable),wi({sortable:d,name:"change",toEl:o,newIndex:Ei,newDraggableIndex:ji,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Zn(document,"mousemove",this._onTouchMove),Zn(document,"touchmove",this._onTouchMove),Zn(document,"pointermove",this._onTouchMove),Zn(document,"dragover",ur),Zn(document,"mousemove",ur),Zn(document,"touchmove",ur)},_offUpEvents:function(){var e=this.el.ownerDocument;Zn(e,"mouseup",this._onDrop),Zn(e,"touchend",this._onDrop),Zn(e,"pointerup",this._onDrop),Zn(e,"touchcancel",this._onDrop),Zn(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Ei=ci(Oi),ji=ci(Oi,n.draggable),yi("drop",this,{evt:e}),Ci=Oi&&Oi.parentNode,Ei=ci(Oi),ji=ci(Oi,n.draggable),pr.eventCanceled||(qi=!1,Qi=!1,Gi=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),mr(this.cloneId),mr(this._dragStartId),this.nativeDraggable&&(Zn(document,"drop",this),Zn(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Yn&&ei(document.body,"user-select",""),ei(Oi,"transform",""),e&&(Bi&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Si&&Si.parentNode&&Si.parentNode.removeChild(Si),(zi===Ci||Ai&&"clone"!==Ai.lastPutMode)&&ki&&ki.parentNode&&ki.parentNode.removeChild(ki),Oi&&(this.nativeDraggable&&Zn(Oi,"dragend",this),dr(Oi),Oi.style["will-change"]="",Bi&&!qi&&Jn(Oi,Ai?Ai.options.ghostClass:this.options.ghostClass,!1),Jn(Oi,this.options.chosenClass,!1),wi({sortable:this,name:"unchoose",toEl:Ci,newIndex:null,newDraggableIndex:null,originalEvent:e}),zi!==Ci?(Ei>=0&&(wi({rootEl:Ci,name:"add",toEl:Ci,fromEl:zi,originalEvent:e}),wi({sortable:this,name:"remove",toEl:Ci,originalEvent:e}),wi({rootEl:Ci,name:"sort",toEl:Ci,fromEl:zi,originalEvent:e}),wi({sortable:this,name:"sort",toEl:Ci,originalEvent:e})),Ai&&Ai.save()):Ei!==xi&&Ei>=0&&(wi({sortable:this,name:"update",toEl:Ci,originalEvent:e}),wi({sortable:this,name:"sort",toEl:Ci,originalEvent:e})),pr.active&&(null!=Ei&&-1!==Ei||(Ei=xi,ji=Ni),wi({sortable:this,name:"end",toEl:Ci,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){yi("nulling",this),zi=Oi=Ci=Si=Ti=ki=_i=Di=Mi=Li=Bi=Ei=ji=xi=Ni=Yi=Ui=Ai=Ii=pr.dragged=pr.ghost=pr.clone=pr.active=null,Ji.forEach((function(e){e.checked=!0})),Ji.length=Pi=Fi=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Oi&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;i-1&&n!==t._activeItemIndex&&(t._activeItemIndex=n)}}))}return e.prototype.skipPredicate=function(e){return this._skipPredicateFn=e,this},e.prototype.withWrap=function(e){return void 0===e&&(e=!0),this._wrap=e,this},e.prototype.withVerticalOrientation=function(e){return void 0===e&&(e=!0),this._vertical=e,this},e.prototype.withHorizontalOrientation=function(e){return this._horizontal=e,this},e.prototype.withAllowedModifierKeys=function(e){return this._allowedModifierKeys=e,this},e.prototype.withTypeAhead=function(e){var t=this;if(void 0===e&&(e=200),this._items.length&&this._items.some((function(e){return"function"!=typeof e.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object($r.a)((function(e){return t._pressedLetters.push(e)})),Object(Gr.a)(e),Object(Pt.a)((function(){return t._pressedLetters.length>0})),Object(Mt.a)((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),i=1;i-1}));switch(n){case Zr.j:return void this.tabOut.next();case Zr.c:if(this._vertical&&i){this.setNextItemActive();break}return;case Zr.k:if(this._vertical&&i){this.setPreviousItemActive();break}return;case Zr.h:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Zr.f:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Object(Zr.n)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=Zr.a&&n<=Zr.l||n>=Zr.m&&n<=Zr.g)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()},Object.defineProperty(e.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),e.prototype.isTyping=function(){return this._pressedLetters.length>0},e.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},e.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},e.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},e.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},e.prototype.updateActiveItem=function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n},e.prototype._setActiveItemByDelta=function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)},e.prototype._setActiveInWrapMode=function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}},e.prototype._setActiveInDefaultMode=function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)},e.prototype._setActiveItemByIndex=function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}},e.prototype._getItemsArray=function(){return this._items instanceof i.D?this._items.toArray():this._items},e}()),io=function(){function e(e){this._platform=e}return e.prototype.isDisabled=function(e){return e.hasAttribute("disabled")},e.prototype.isVisible=function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility},e.prototype.isTabbable=function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(t){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===oo(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var r=e.nodeName.toLowerCase(),o=oo(e);if(e.hasAttribute("contenteditable"))return-1!==o;if("iframe"===r)return!1;if("audio"===r){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0},e.prototype.isFocusable=function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||ro(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(Xr.a))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(Xr.a))},e}();function ro(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function oo(e){if(!ro(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var ao=function(){function e(e,t,n,i,r){var o=this;void 0===r&&(r=!1),this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,r||this.attachAnchors()}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null},e.prototype.attachAnchors=function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},e.prototype.focusInitialElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))},e.prototype.focusFirstTabbableElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))},e.prototype.focusLastTabbableElementWhenReady=function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))},e.prototype._getRegionBoundary=function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-"+e+"], [cdkFocusRegion"+e+"], [cdk-focus-"+e+"]"),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null},e.prototype._createAnchor=function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e},e.prototype._toggleAnchorTabIndex=function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")},e.prototype.toggleAnchors=function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))},e.prototype._executeOnStable=function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Object(en.a)(1)).subscribe(e)},e}(),so=function(){function e(e,t,n){this._checker=e,this._ngZone=t,this._document=n}return e.prototype.create=function(e,t){return void 0===t&&(t=!1),new ao(e,this._checker,this._ngZone,this._document,t)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(io),Object(i.dc)(i.z),Object(i.dc)(Vr.e))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(io),i.dc(i.z),i.dc(Vr.e))},e}(),co=function(e){function t(t,n,i,r,o,a,s){var c=e.call(this,t,n,i,r,s.defer)||this;return c._focusTrapManager=o,c._inertStrategy=a,c._focusTrapManager.register(c),c}return Object(zt.c)(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._focusTrapManager.deregister(this),e.prototype.destroy.call(this)},t.prototype._enable=function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)},t.prototype._disable=function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)},t}(ao),uo="undefined"!=typeof Element&&!!Element.prototype.closest;function lo(e,t){return e.matches?e.matches(t):e.msMatchesSelector(t)}var po=function(){function e(){this._listener=null}return e.prototype.preventFocus=function(e){var t=this;this._listener&&e._document.removeEventListener("focus",this._listener,!0),this._listener=function(n){return t._trapFocus(e,n)},e._ngZone.runOutsideAngular((function(){e._document.addEventListener("focus",t._listener,!0)}))},e.prototype.allowFocus=function(e){this._listener&&(e._document.removeEventListener("focus",this._listener,!0),this._listener=null)},e.prototype._trapFocus=function(e,t){var n=t.target,i=e._element;i.contains(n)||null!==function(e,t){if(!(e instanceof Node))return null;for(var n=e;null!=n&&!(n instanceof Element);)n=n.parentNode;return n&&(uo?n.closest("div.cdk-overlay-pane"):function(e,t){for(var n=e;null!=n&&!(n instanceof Element&&lo(n,"div.cdk-overlay-pane"));)n=n.parentNode;return n||null}(n))}(n)||setTimeout((function(){e.enabled&&!i.contains(e._document.activeElement)&&e.focusFirstTabbableElement()}))},e}(),ho=function(){return function(){this.defer=!1}}(),fo=new i.q("FOCUS_TRAP_INERT_STRATEGY"),go=function(){function e(){this._focusTrapStack=[]}return e.prototype.register=function(e){this._focusTrapStack=this._focusTrapStack.filter((function(t){return t!==e}));var t=this._focusTrapStack;t.length&&t[t.length-1]._disable(),t.push(e),e._enable()},e.prototype.deregister=function(e){e._disable();var t=this._focusTrapStack,n=t.indexOf(e);-1!==n&&(t.splice(n,1),t.length&&t[t.length-1]._enable())},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)},e}(),bo=function(){function e(e,t,n,i,r){this._checker=e,this._ngZone=t,this._focusTrapManager=n,this._document=i,this._inertStrategy=r||new po}return e.prototype.create=function(e,t){var n;return void 0===t&&(t=new ho),"boolean"==typeof t?(n=new ho).defer=t:n=t,new co(e,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,n)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(io),Object(i.dc)(i.z),Object(i.dc)(go),Object(i.dc)(Vr.e),Object(i.dc)(fo,8))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(io),i.dc(i.z),i.dc(go),i.dc(Vr.e),i.dc(fo,8))},e}(),mo=new i.q("cdk-focus-monitor-default-options"),vo=Object(Xr.e)({passive:!0,capture:!0}),yo=function(){function e(e,t,n,i){var r=this;this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){r._lastTouchTarget=null,r._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!r._lastTouchTarget){var t=function(e){return 0===e.buttons}(e)?"keyboard":"mouse";r._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=r._touchTimeoutId&&clearTimeout(r._touchTimeoutId),r._lastTouchTarget=wo(e),r._touchTimeoutId=setTimeout((function(){return r._lastTouchTarget=null}),650)},this._windowFocusListener=function(){r._windowFocused=!0,r._windowFocusTimeoutId=setTimeout((function(){return r._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(e){for(var t=wo(e),n="focus"===e.type?r._onFocus:r._onBlur,i=t;i;i=i.parentElement)n.call(r,e,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}return e.prototype.monitor=function(e,t){if(void 0===t&&(t=!1),!this._platform.isBrowser)return Object(qr.a)(null);var n=Object(Qr.e)(e),i=Object(Xr.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject.asObservable();var o={checkChildren:t,subject:new kt.a,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject.asObservable()},e.prototype.stopMonitoring=function(e){var t=Object(Qr.e)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))},e.prototype.focusVia=function(e,t,n){var i=Object(Qr.e)(e);this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n)},e.prototype.ngOnDestroy=function(){var e=this;this._elementInfo.forEach((function(t,n){return e.stopMonitoring(n)}))},e.prototype._getDocument=function(){return this._document||document},e.prototype._getWindow=function(){return this._getDocument().defaultView||window},e.prototype._toggleClass=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.prototype._getFocusOrigin=function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"},e.prototype._setClasses=function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)},e.prototype._setOriginForCurrentEventQueue=function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))},e.prototype._wasCausedByTouch=function(e){var t=wo(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))},e.prototype._onFocus=function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===wo(e))){var i=this._getFocusOrigin(e);this._setClasses(t,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}},e.prototype._onBlur=function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))},e.prototype._emitOrigin=function(e,t){this._ngZone.run((function(){return e.next(t)}))},e.prototype._registerGlobalListeners=function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,vo),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,vo)})),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,vo),e.addEventListener("mousedown",t._documentMousedownListener,vo),e.addEventListener("touchstart",t._documentTouchstartListener,vo),n.addEventListener("focus",t._windowFocusListener)}))}},e.prototype._removeGlobalListeners=function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,vo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,vo),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,vo),i.removeEventListener("mousedown",this._documentMousedownListener,vo),i.removeEventListener("touchstart",this._documentTouchstartListener,vo),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(i.z),Object(i.dc)(Xr.a),Object(i.dc)(Vr.e,8),Object(i.dc)(mo,8))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(i.z),i.dc(Xr.a),i.dc(Vr.e,8),i.dc(mo,8))},e}();function wo(e){return e.composedPath?e.composedPath()[0]:e.target}var Oo=function(){function e(e,t){this._platform=e,this._document=t}return e.prototype.getHighContrastMode=function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0},e.prototype._applyBodyHighContrastModeCssClasses=function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(Xr.a),Object(i.dc)(Vr.e))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(Xr.a),i.dc(Vr.e))},e}(),Co=function(){function e(e){e._applyBodyHighContrastModeCssClasses()}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)(i.dc(Oo))},imports:[[Xr.b,to]]}),e}(),So=["menu"],zo=["li"];function To(e,t){}var _o=function(e){return{$implicit:e}};function ko(e,t){if(1&e){var n=i.ac();i.Zb(0,"a",7),i.hc("click",(function(e){i.Dc(n);var t=i.kc().$implicit;return i.kc().onMenuItemSelect(t,e)}))("mouseenter",(function(e){i.Dc(n);var t=i.kc().$implicit;return i.kc().onOpenSubMenu(t,e)})),i.Nc(1,"\n "),i.Lc(2,To,0,0,"ng-template",8),i.Nc(3,"\n "),i.Yb()}if(2&e){var r=i.kc().$implicit,o=i.kc();i.Jb("dropdown-item",o.useBootstrap4)("active",r.isActive&&o.isMenuItemEnabled(r))("disabled",o.useBootstrap4&&!o.isMenuItemEnabled(r))("hasSubMenu",!!r.subMenu),i.Db(2),i.sc("ngTemplateOutlet",r.template)("ngTemplateOutletContext",i.vc(10,_o,o.item))}}function Do(e,t){}function xo(e,t){if(1&e){var n=i.ac();i.Zb(0,"span",9),i.hc("click",(function(e){return i.Dc(n),i.kc(2).stopEvent(e)}))("contextmenu",(function(e){return i.Dc(n),i.kc(2).stopEvent(e)})),i.Nc(1,"\n "),i.Lc(2,Do,0,0,"ng-template",8),i.Nc(3,"\n "),i.Yb()}if(2&e){var r=i.kc().$implicit,o=i.kc();i.Jb("dropdown-item",o.useBootstrap4)("disabled",o.useBootstrap4&&!o.isMenuItemEnabled(r)),i.Db(2),i.sc("ngTemplateOutlet",r.template)("ngTemplateOutletContext",i.vc(6,_o,o.item))}}function Eo(e,t){if(1&e&&(i.Zb(0,"li",null,4),i.Nc(2,"\n "),i.Lc(3,ko,4,12,"a",5),i.Nc(4,"\n\n "),i.Lc(5,xo,4,8,"span",6),i.Nc(6,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc();i.Jb("disabled",!r.isMenuItemEnabled(n))("divider",n.divider)("dropdown-divider",r.useBootstrap4&&n.divider)("active",n.isActive&&r.isMenuItemEnabled(n)),i.Eb("role",n.divider?"separator":void 0),i.Db(3),i.sc("ngIf",!n.divider&&!n.passive),i.Db(2),i.sc("ngIf",!n.divider&&n.passive)}}var No=function(){function e(e,t){this.template=e,this.elementRef=t,this.divider=!1,this.enabled=!0,this.passive=!1,this.visible=!0,this.execute=new i.n,this.isActive=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this.passive||this.divider||!this.evaluateIfFunction(this.enabled,this.currentItem)},enumerable:!0,configurable:!0}),e.prototype.evaluateIfFunction=function(e,t){return e instanceof Function?e(t):e},e.prototype.setActiveStyles=function(){this.isActive=!0},e.prototype.setInactiveStyles=function(){this.isActive=!1},e.prototype.triggerExecute=function(e,t){this.evaluateIfFunction(this.enabled,e)&&this.execute.emit({event:t,item:e})},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.M),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["","contextMenuItem",""]],inputs:{divider:"divider",enabled:"enabled",passive:"passive",visible:"visible",subMenu:"subMenu"},outputs:{execute:"execute"}}),e}(),jo=new i.q("CONTEXT_MENU_OPTIONS"),Io=function(){function e(e,t,n){this.changeDetector=e,this.elementRef=t,this.options=n,this.menuItems=[],this.isLeaf=!1,this.execute=new i.n,this.openSubMenu=new i.n,this.closeLeafMenu=new i.n,this.closeAllMenus=new i.n,this.autoFocus=!1,this.useBootstrap4=!1,this.subscription=new Ft.a,n&&(this.autoFocus=n.autoFocus,this.useBootstrap4=n.useBootstrap4)}return e.prototype.ngOnInit=function(){var e=this;this.menuItems.forEach((function(t){t.currentItem=e.item,e.subscription.add(t.execute.subscribe((function(n){return e.execute.emit(Object(zt.a)({},n,{menuItem:t}))})))}));var t=new i.D;t.reset(this.menuItems),this._keyManager=new no(t).withWrap()},e.prototype.ngAfterViewInit=function(){var e=this;this.autoFocus&&setTimeout((function(){return e.focus()})),this.overlay.updatePosition()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.focus=function(){this.autoFocus&&this.menuElement.nativeElement.focus()},e.prototype.stopEvent=function(e){e.stopPropagation()},e.prototype.isMenuItemEnabled=function(e){return this.evaluateIfFunction(e&&e.enabled)},e.prototype.isMenuItemVisible=function(e){return this.evaluateIfFunction(e&&e.visible)},e.prototype.evaluateIfFunction=function(e){return e instanceof Function?e(this.item):e},e.prototype.isDisabled=function(e){return e.enabled&&!e.enabled(this.item)},e.prototype.onKeyEvent=function(e){this.isLeaf&&this._keyManager.onKeydown(e)},e.prototype.keyboardOpenSubMenu=function(e){if(this.isLeaf){this.cancelEvent(e);var t=this.menuItems[this._keyManager.activeItemIndex];t&&this.onOpenSubMenu(t)}},e.prototype.keyboardMenuItemSelect=function(e){if(this.isLeaf){this.cancelEvent(e);var t=this.menuItems[this._keyManager.activeItemIndex];t&&this.onMenuItemSelect(t,e)}},e.prototype.onCloseLeafMenu=function(e){this.isLeaf&&(this.cancelEvent(e),this.closeLeafMenu.emit({exceptRootMenu:37===e.keyCode,event:e}))},e.prototype.closeMenu=function(e){"click"===e.type&&2===e.button||this.closeAllMenus.emit({event:e})},e.prototype.onOpenSubMenu=function(e,t){var n=this.menuItemElements.toArray()[this._keyManager.activeItemIndex];this.openSubMenu.emit({anchorElement:n&&n.nativeElement,contextMenu:e.subMenu,event:t,item:this.item,parentContextMenu:this})},e.prototype.onMenuItemSelect=function(e,t){t.preventDefault(),t.stopPropagation(),this.onOpenSubMenu(e,t),e.subMenu||e.triggerExecute(this.item,t)},e.prototype.cancelEvent=function(e){if(e){var t=e.target;["INPUT","TEXTAREA","SELECT"].indexOf(t.tagName)>-1||t.isContentEditable||(e.preventDefault(),e.stopPropagation())}},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.l),i.Tb(jo,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["context-menu-content"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(So,!0),i.Sc(zo,!0)),2&e&&(i.zc(n=i.ic())&&(t.menuElement=n.first),i.zc(n=i.ic())&&(t.menuItemElements=n))},hostBindings:function(e,t){1&e&&i.hc("keydown.ArrowDown",(function(e){return t.onKeyEvent(e)}),!1,i.Cc)("keydown.ArrowUp",(function(e){return t.onKeyEvent(e)}),!1,i.Cc)("keydown.ArrowRight",(function(e){return t.keyboardOpenSubMenu(e)}),!1,i.Cc)("keydown.Enter",(function(e){return t.keyboardMenuItemSelect(e)}),!1,i.Cc)("keydown.Space",(function(e){return t.keyboardMenuItemSelect(e)}),!1,i.Cc)("keydown.Escape",(function(e){return t.onCloseLeafMenu(e)}),!1,i.Cc)("keydown.ArrowLeft",(function(e){return t.onCloseLeafMenu(e)}),!1,i.Cc)("click",(function(e){return t.closeMenu(e)}),!1,i.Bc)("contextmenu",(function(e){return t.closeMenu(e)}),!1,i.Bc)},inputs:{menuItems:"menuItems",isLeaf:"isLeaf",item:"item",event:"event",parentContextMenu:"parentContextMenu",menuClass:"menuClass",overlay:"overlay"},outputs:{execute:"execute",openSubMenu:"openSubMenu",closeLeafMenu:"closeLeafMenu",closeAllMenus:"closeAllMenus"},decls:10,vars:2,consts:[["tabindex","0",1,"dropdown","open","show","ngx-contextmenu",3,"ngClass"],["tabindex","0",1,"dropdown-menu","show",2,"position","static","float","none"],["menu",""],[3,"disabled","divider","dropdown-divider","active",4,"ngFor","ngForOf"],["li",""],["href","",3,"dropdown-item","active","disabled","hasSubMenu","click","mouseenter",4,"ngIf"],["class","passive",3,"dropdown-item","disabled","click","contextmenu",4,"ngIf"],["href","",3,"click","mouseenter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"passive",3,"click","contextmenu"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Zb(3,"ul",1,2),i.Nc(5,"\n "),i.Lc(6,Eo,7,11,"li",3),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(1),i.sc("ngClass",t.menuClass),i.Db(5),i.sc("ngForOf",t.menuItems))},directives:[Vr.q,Vr.s,Vr.t,Vr.A],styles:[".passive[_ngcontent-%COMP%] {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: @line-height-base;\n white-space: nowrap;\n }\n .hasSubMenu[_ngcontent-%COMP%]:before {\n content: '\u25b6';\n float: right;\n }"]}),e}(),Ao=function(){function e(e,t){this.overlay=e,this.scrollStrategy=t,this.isDestroyingLeafMenu=!1,this.show=new kt.a,this.triggerClose=new kt.a,this.close=new kt.a,this.overlays=[],this.fakeElement={getBoundingClientRect:function(){return{bottom:0,height:0,left:0,right:0,top:0,width:0}}}}return e.prototype.openContextMenu=function(e){var t=e.anchorElement,n=e.event,r=e.parentContextMenu;if(r){s=this.overlay.position().connectedTo(new i.l(n?n.target:t),{originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}).withFallbackPosition({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"});var o=this.overlay.create({positionStrategy:s,panelClass:"ngx-contextmenu",scrollStrategy:this.scrollStrategy.close()});this.destroySubMenus(r),this.overlays=this.overlays.concat(o),this.attachContextMenu(o,e)}else{var a=n;this.fakeElement.getBoundingClientRect=function(){return{bottom:a.clientY,height:0,left:a.clientX,right:a.clientX,top:a.clientY,width:0}},this.closeAllContextMenus({eventType:"cancel",event:n});var s=this.overlay.position().connectedTo(new i.l(t||this.fakeElement),{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}).withFallbackPosition({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}).withFallbackPosition({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"});this.overlays=[this.overlay.create({positionStrategy:s,panelClass:"ngx-contextmenu",scrollStrategy:this.scrollStrategy.close()})],this.attachContextMenu(this.overlays[0],e)}},e.prototype.attachContextMenu=function(e,t){var n=this,i=t.event,r=t.item,o=t.menuItems,a=t.menuClass,s=e.attach(new Wr.c(Io));s.instance.event=i,s.instance.item=r,s.instance.menuItems=o,s.instance.overlay=e,s.instance.isLeaf=!0,s.instance.menuClass=a,e.contextMenu=s.instance;var c=new Ft.a;c.add(s.instance.execute.asObservable().subscribe((function(e){return n.closeAllContextMenus(Object(zt.a)({eventType:"execute"},e))}))),c.add(s.instance.closeAllMenus.asObservable().subscribe((function(e){return n.closeAllContextMenus(Object(zt.a)({eventType:"cancel"},e))}))),c.add(s.instance.closeLeafMenu.asObservable().subscribe((function(e){return n.destroyLeafMenu(e)}))),c.add(s.instance.openSubMenu.asObservable().subscribe((function(e){n.destroySubMenus(s.instance),e.contextMenu?(s.instance.isLeaf=!1,n.show.next(e)):s.instance.isLeaf=!0}))),s.onDestroy((function(){o.forEach((function(e){return e.isActive=!1})),c.unsubscribe()})),s.changeDetectorRef.detectChanges()},e.prototype.closeAllContextMenus=function(e){this.overlays&&(this.close.next(e),this.overlays.forEach((function(e,t){e.detach(),e.dispose()}))),this.overlays=[]},e.prototype.getLastAttachedOverlay=function(){for(var e=this.overlays[this.overlays.length-1];this.overlays.length>1&&e&&!e.hasAttached();)e.detach(),e.dispose(),this.overlays=this.overlays.slice(0,-1),e=this.overlays[this.overlays.length-1];return e},e.prototype.destroyLeafMenu=function(e){var t=this,n=void 0===e?{}:e,i=n.exceptRootMenu,r=n.event;this.isDestroyingLeafMenu||(this.isDestroyingLeafMenu=!0,setTimeout((function(){var e=t.getLastAttachedOverlay();t.overlays.length>1&&e&&(e.detach(),e.dispose()),!i&&t.overlays.length>0&&e&&(t.close.next({eventType:"cancel",event:r}),e.detach(),e.dispose());var n=t.getLastAttachedOverlay();n&&(n.contextMenu.isLeaf=!0),t.isDestroyingLeafMenu=!1})))},e.prototype.destroySubMenus=function(e){var t=this.overlays.indexOf(e.overlay);this.overlays.slice(t+1).forEach((function(e){e.detach(),e.dispose()}))},e.prototype.isLeafMenu=function(e){var t=this.getLastAttachedOverlay();return e.overlay===t},e.\u0275fac=function(t){return new(t||e)(i.dc(Ur.e),i.dc(Ur.k))},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),Mo=function(){function e(e,t,n,r){var o=this;this._contextMenuService=e,this.changeDetector=t,this.elementRef=n,this.options=r,this.menuClass="",this.autoFocus=!1,this.useBootstrap4=!1,this.disabled=!1,this.close=new i.n,this.open=new i.n,this.visibleMenuItems=[],this.links=[],this.subscription=new Ft.a,r&&(this.autoFocus=r.autoFocus,this.useBootstrap4=r.useBootstrap4),this.subscription.add(e.show.subscribe((function(e){o.onMenuEvent(e)})))}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onMenuEvent=function(e){var t=this;if(!this.disabled){var n=e.contextMenu,i=e.item;n&&n!==this||(this.event=e.event,this.item=i,this.setVisibleMenuItems(),this._contextMenuService.openContextMenu(Object(zt.a)({},e,{menuItems:this.visibleMenuItems,menuClass:this.menuClass})),this._contextMenuService.close.asObservable().pipe(Object(Hr.a)()).subscribe((function(e){return t.close.emit(e)})),this.open.next(e))}},e.prototype.isMenuItemVisible=function(e){return this.evaluateIfFunction(e.visible)},e.prototype.setVisibleMenuItems=function(){var e=this;this.visibleMenuItems=this.menuItems.filter((function(t){return e.isMenuItemVisible(t)}))},e.prototype.evaluateIfFunction=function(e){return e instanceof Function?e(this.item):e},e.\u0275fac=function(t){return new(t||e)(i.Tb(Ao),i.Tb(i.h),i.Tb(i.l),i.Tb(jo,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["context-menu"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,No,!1),2&e&&i.zc(r=i.ic())&&(t.menuItems=r)},viewQuery:function(e,t){var n;1&e&&i.Sc(So,!0),2&e&&i.zc(n=i.ic())&&(t.menuElement=n.first)},inputs:{menuClass:"menuClass",autoFocus:"autoFocus",useBootstrap4:"useBootstrap4",disabled:"disabled"},outputs:{close:"close",open:"open"},decls:1,vars:0,template:function(e,t){1&e&&i.Nc(0," ")},styles:["\n .cdk-overlay-container {\n position: fixed;\n z-index: 1000;\n pointer-events: none;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n .ngx-contextmenu.cdk-overlay-pane {\n position: absolute;\n pointer-events: auto;\n box-sizing: border-box;\n }\n "],encapsulation:2}),e}(),Lo=function(){function e(e){this.contextMenuService=e}return e.prototype.onContextMenu=function(e){this.contextMenu.disabled||(this.contextMenuService.show.next({contextMenu:this.contextMenu,event:e,item:this.contextMenuSubject}),e.preventDefault(),e.stopPropagation())},e.\u0275fac=function(t){return new(t||e)(i.Tb(Ao))},e.\u0275dir=i.Ob({type:e,selectors:[["","contextMenu",""]],hostBindings:function(e,t){1&e&&i.hc("contextmenu",(function(e){return t.onContextMenu(e)}))},inputs:{contextMenuSubject:"contextMenuSubject",contextMenu:"contextMenu"}}),e}(),Po=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[Ao,{provide:jo,useValue:t},{provide:Ur.g,useClass:Ur.d}]}},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ur.i]]}),e}(),Fo=n("WHo9"),Ro="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Vo=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}(),Bo=Ro&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Vo))}};function Yo(e){return e&&"[object Function]"==={}.toString.call(e)}function Uo(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ho(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Wo(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Uo(e);return/(auto|scroll|overlay)/.test(t.overflow+t.overflowY+t.overflowX)?e:Wo(Ho(e))}function qo(e){return e&&e.referenceNode?e.referenceNode:e}var Zo=Ro&&!(!window.MSInputMethodContext||!document.documentMode),$o=Ro&&/MSIE 10/.test(navigator.userAgent);function Go(e){return 11===e?Zo:10===e?$o:Zo||$o}function Qo(e){if(!e)return document.documentElement;for(var t=Go(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Uo(n,"position")?Qo(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Xo(e){return null!==e.parentNode?Xo(e.parentNode):e}function Ko(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,c=o.commonAncestorContainer;if(e!==c&&t!==c||i.contains(r))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&Qo(a.firstElementChild)!==a?Qo(c):c;var u=Xo(e);return u.host?Ko(u.host,t):Ko(e,Xo(t).host)}function Jo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||r;return o[n]}return e[n]}function ea(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Jo(t,"top"),r=Jo(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function ta(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function na(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Go(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function ia(e){var t=e.body,n=e.documentElement,i=Go(10)&&getComputedStyle(n);return{height:na("Height",t,n,i),width:na("Width",t,n,i)}}var ra=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},oa=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=Go(10),r="HTML"===t.nodeName,o=ua(e),a=ua(t),s=Wo(e),c=Uo(t),u=parseFloat(c.borderTopWidth),l=parseFloat(c.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=ca({top:o.top-a.top-u,left:o.left-a.left-l,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!i&&r){var h=parseFloat(c.marginTop),d=parseFloat(c.marginLeft);p.top-=u-h,p.bottom-=u-h,p.left-=l-d,p.right-=l-d,p.marginTop=h,p.marginLeft=d}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=ea(p,t)),p}function pa(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=la(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Jo(n),s=t?0:Jo(n,"left"),c={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o};return ca(c)}function ha(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Uo(e,"position"))return!0;var n=Ho(e);return!!n&&ha(n)}function da(e){if(!e||!e.parentElement||Go())return document.documentElement;for(var t=e.parentElement;t&&"none"===Uo(t,"transform");)t=t.parentElement;return t||document.documentElement}function fa(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?da(e):Ko(e,qo(t));if("viewport"===i)o=pa(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=Wo(Ho(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var c=la(s,a,r);if("HTML"!==s.nodeName||ha(a))o=c;else{var u=ia(e.ownerDocument),l=u.height,p=u.width;o.top+=c.top-c.marginTop,o.bottom=l+c.top,o.left+=c.left-c.marginLeft,o.right=p+c.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function ga(e){return e.width*e.height}function ba(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=fa(n,i,o,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return sa({key:e},s[e],{area:ga(s[e])})})).sort((function(e,t){return t.area-e.area})),u=c.filter((function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight})),l=u.length>0?u[0].key:c[0].key,p=e.split("-")[1];return l+(p?"-"+p:"")}function ma(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?da(t):Ko(t,qo(n));return la(n,r,i)}function va(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function ya(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function wa(e,t,n){n=n.split("-")[0];var i=va(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return r[a]=t[a]+t[c]/2-i[c]/2,r[s]=n===s?t[s]-i[u]:t[ya(s)],r}function Oa(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ca(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e.name===n}));var i=Oa(e,(function(e){return e.name===n}));return e.indexOf(i)}(e,0,n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Yo(n)&&(t.offsets.popper=ca(t.offsets.popper),t.offsets.reference=ca(t.offsets.reference),t=n(t,e))})),t}function Sa(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ma(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ba(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=wa(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ca(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function za(e,t){return e.some((function(e){return e.enabled&&e.name===t}))}function Ta(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=Ma.indexOf(e),i=Ma.slice(n+1).concat(Ma.slice(0,n));return t?i.reverse():i}var Pa={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",u=s?"width":"height",l={start:aa({},c,o[c]),end:aa({},c,o[c]+o[u]-a[u])};e.offsets.popper=sa({},a,l[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,i=t.offset,r=e.offsets,o=r.popper,a=r.reference,s=e.placement.split("-")[0];return n=Ea(+i)?[+i,0]:function(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Oa(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(u=u.map((function(e,i){var r=(1===i?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return ca(s)[t]/100*o}return"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,i){Ea(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}(i,o,a,s),"left"===s?(o.top+=n[0],o.left-=n[1]):"right"===s?(o.top+=n[0],o.left+=n[1]):"top"===s?(o.left+=n[0],o.top-=n[1]):"bottom"===s&&(o.left+=n[0],o.top+=n[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Qo(e.instance.popper);e.instance.reference===n&&(n=Qo(n));var i=Ta("transform"),r=e.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var c=fa(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=a,r[i]=s,t.boundaries=c;var u=e.offsets.popper,l={primary:function(e){var n=u[e];return u[e]c[e]&&!t.escapeWithReference&&(i=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),aa({},n,i)}};return t.priority.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=sa({},u,l[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return n[s]o(i[s])&&(e.offsets.popper[c]=o(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Ia(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",l=c?"Top":"Left",p=l.toLowerCase(),h=c?"left":"top",d=c?"bottom":"right",f=va(i)[u];s[d]-fa[d]&&(e.offsets.popper[p]+=s[p]+f-a[d]),e.offsets.popper=ca(e.offsets.popper);var g=s[p]+s[u]/2-f/2,b=Uo(e.instance.popper),m=parseFloat(b["margin"+l]),v=parseFloat(b["border"+l+"Width"]),y=g-e.offsets.popper[p]-m-v;return y=Math.max(Math.min(a[u]-f,y),0),e.arrowElement=i,e.offsets.arrow=(aa(n={},p,Math.round(y)),aa(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(za(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=fa(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=ya(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[i,r];break;case"clockwise":a=La(i);break;case"counterclockwise":a=La(i,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(i!==s||a.length===c+1)return e;i=e.placement.split("-")[0],r=ya(i);var u=e.offsets.popper,l=e.offsets.reference,p=Math.floor,h="left"===i&&p(u.right)>p(l.left)||"right"===i&&p(u.left)p(l.top)||"bottom"===i&&p(u.top)p(n.right),g=p(u.top)p(n.bottom),m="left"===i&&d||"right"===i&&f||"top"===i&&g||"bottom"===i&&b,v=-1!==["top","bottom"].indexOf(i),y=!!t.flipVariations&&(v&&"start"===o&&d||v&&"end"===o&&f||!v&&"start"===o&&g||!v&&"end"===o&&b)||!!t.flipVariationsByContent&&(v&&"start"===o&&f||v&&"end"===o&&d||!v&&"start"===o&&b||!v&&"end"===o&&g);(h||m||y)&&(e.flipped=!0,(h||m)&&(i=a[c+1]),y&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=sa({},e.offsets.popper,wa(e.instance.popper,e.offsets.reference,e.placement)),e=Ca(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),e.placement=ya(t),e.offsets.popper=ca(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Ia(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Oa(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};ra(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Bo(this.update.bind(this)),this.options=sa({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(sa({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){i.options.modifiers[t]=sa({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return sa({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Yo(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return oa(e,[{key:"update",value:function(){return Sa.call(this)}},{key:"destroy",value:function(){return _a.call(this)}},{key:"enableEventListeners",value:function(){return Da.call(this)}},{key:"disableEventListeners",value:function(){return xa.call(this)}}]),e}();Fa.Utils=("undefined"!=typeof window?window:global).PopperUtils,Fa.placements=Aa,Fa.Defaults=Pa;var Ra=Fa,Va=["popperViewRef"];function Ba(e,t){if(1&e&&(i.Zb(0,"div",5),i.Nc(1,"\n "),i.qc(2),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.sc("innerHTML",n.text,i.Ec)}}function Ya(e,t){1&e&&(i.Zb(0,"div",6),i.Nc(1,"\n "),i.qc(2,1),i.Nc(3,"\n "),i.Yb())}var Ua=["*","*"],Ha=function(){function e(){}return e.CLICK="click",e.HOVER="hover",e.MOUSEDOWN="mousedown",e.NONE="none",e}(),Wa=function(){function e(){}return e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e.TopStart="top-start",e.BottomStart="bottom-start",e.LeftStart="left-start",e.RightStart="right-start",e.TopEnd="top-end",e.BottomEnd="bottom-end",e.LeftEnd="left-end",e.RightEnd="right-end",e.Auto="auto",e.AutoStart="auto-start",e.AutoEnd="auto-end",e}(),qa=function(){function e(e,t,n,r){this.elemRef=e,this.renderer=t,this.viewRef=n,this.CDR=r,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:Wa.Auto,boundariesElement:"",trigger:Ha.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new i.n,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}return e.prototype.onMouseOver=function(){this.isMouseOver=!0},e.prototype.showOnLeave=function(){this.isMouseOver=!1,(this.popperOptions.trigger===Ha.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()},e.prototype.onDocumentResize=function(){this.update()},e.prototype.ngOnDestroy=function(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))},e.prototype.clean=function(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())},e.prototype.show=function(){if(this.referenceObject){var e=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);e&&this.elemRef.nativeElement.parentNode!==e&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),e.appendChild(this.elemRef.nativeElement));var t={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(t.onUpdate=this.onUpdate);var n=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);t.modifiers&&n&&(t.modifiers.preventOverflow={boundariesElement:n}),t.modifiers&&void 0!==this.popperOptions.preventOverflow&&(t.modifiers.preventOverflow=t.modifiers.preventOverflow||{},t.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,t.modifiers.preventOverflow.enabled||(t.modifiers.hide={enabled:!1})),this.determineArrowColor(),t.modifiers=Object.assign(t.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new Ra(this.referenceObject,this.popperViewRef.nativeElement,t),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}},e.prototype.determineArrowColor=function(){var e=this;["background-color","backgroundColor"].some((function(t){return!!e.popperOptions.styles&&!!e.popperOptions.styles.hasOwnProperty(t)&&(e.arrowColor=e.popperOptions.styles[t],!0)}))},e.prototype.update=function(){this.popperInstance&&this.popperInstance.update()},e.prototype.scheduleUpdate=function(){this.popperInstance&&this.popperInstance.scheduleUpdate()},e.prototype.hide=function(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()},e.prototype.toggleVisibility=function(e){e?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()},e.prototype.extractAppliedClassListExpr=function(e){if(!e||"string"!=typeof e)return null;try{return e.replace(/ /,"").split(",").reduce((function(e,t){return e[t]=!0,e}),{})}catch(t){return null}},e.prototype.clearGlobalResize=function(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E),i.Tb(i.Q),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["popper-content"]],viewQuery:function(e,t){var n;1&e&&i.Sc(Va,!0),2&e&&i.zc(n=i.ic())&&(t.popperViewRef=n.first)},hostBindings:function(e,t){1&e&&i.hc("mouseover",(function(){return t.onMouseOver()}))("mouseleave",(function(){return t.showOnLeave()}))},ngContentSelectors:Ua,decls:11,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(e,t){1&e&&(i.rc(Ua),i.Nc(0,"\n "),i.Zb(1,"div",0,1),i.Nc(3,"\n "),i.Lc(4,Ba,4,1,"div",2),i.Nc(5,"\n "),i.Lc(6,Ya,4,0,"div",3),i.Nc(7,"\n "),i.Ub(8,"div",4),i.Nc(9,"\n\n "),i.Yb(),i.Nc(10,"\n ")),2&e&&(i.Db(1),i.Kc("display",t.displayType)("opacity",t.opacity),i.Jb("ngxp__container",!t.popperOptions.disableDefaultStyling)("ngxp__animation",!t.popperOptions.disableAnimation),i.sc("ngStyle",t.popperOptions.styles)("ngClass",t.extractAppliedClassListExpr(t.popperOptions.applyClass)),i.Eb("aria-hidden",t.ariaHidden)("aria-describedby",t.popperOptions.ariaDescribe||null)("role",t.popperOptions.ariaRole),i.Db(3),i.sc("ngIf",t.text),i.Db(2),i.sc("ngIf",!t.text),i.Db(2),i.Kc("border-color",t.arrowColor),i.Jb("__force-arrow",t.arrowColor),i.sc("ngClass",t.extractAppliedClassListExpr(t.popperOptions.applyArrowClass)))},directives:[Vr.w,Vr.q,Vr.t],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),e}(),Za=function(){function e(t,n,r,o,a,s){void 0===s&&(s={}),this.viewContainerRef=t,this.changeDetectorRef=n,this.resolver=r,this.elementRef=o,this.renderer=a,this.popperDefaults=s,this.popperContentClass=qa,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new i.n,this.popperOnHidden=new i.n,this.popperOnUpdate=new i.n,e.baseOptions=Object(zt.a)({},e.baseOptions,this.popperDefaults)}return e.prototype.hideOnClickOutsideHandler=function(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)},e.prototype.hideOnScrollHandler=function(e){!this.disabled&&this.hideOnScroll&&this.scheduledHide(e,this.hideTimeout)},e.prototype.applyTriggerListeners=function(){switch(this.showTrigger){case Ha.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Ha.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Ha.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Ha.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))},e.assignDefined=function(e){for(var t,n,i,r,o=[],a=1;a0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}},e.prototype.hide=function(){this.disabled||(this.shown?(this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()):this.overrideShowTimeout())},e.prototype.scheduledShow=function(e){var t=this;void 0===e&&(e=this.showDelay),this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout((function(){t.show(),t.applyChanges()}),e))},e.prototype.scheduledHide=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=this.hideTimeout),this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout((function(){var t=e?e.toElement:null,i=!!n.popperContent.popperViewRef&&n.popperContent.popperViewRef.nativeElement;!i||i===t||i.contains(t)||n.content.isMouseOver||(n.hide(),n.applyChanges())}),t))},e.prototype.getRefElement=function(){return this.targetElement||this.viewContainerRef.element.nativeElement},e.prototype.applyChanges=function(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()},e.prototype.setDefaults=function(){this.showDelay=void 0===this.showDelay?e.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?e.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?e.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?e.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?e.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?e.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?e.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},e.baseOptions.styles):this.styles},e.prototype.clearEventListeners=function(){this.eventListeners.forEach((function(e){e&&"function"==typeof e&&e()})),this.eventListeners.length=0},e.prototype.clearGlobalEventListeners=function(){this.globalEventListeners.forEach((function(e){e&&"function"==typeof e&&e()})),this.globalEventListeners.length=0},e.prototype.overrideShowTimeout=function(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)},e.prototype.overrideHideTimeout=function(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)},e.prototype.constructContent=function(){var e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance},e.prototype.setContentProperties=function(t){t.popperOptions=e.assignDefined(t.popperOptions,e.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),t.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(t.onHidden.subscribe(this.hide.bind(this)))},e.prototype.getScrollParent=function(e){var t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==t&&"hidden"!==t&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null},e.prototype.onPopperUpdate=function(e){this.popperOnUpdate.emit(e)},e.baseOptions={showDelay:0,placement:Wa.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Ha.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q),i.Tb(i.h),i.Tb(i.j),i.Tb(i.l),i.Tb(i.E),i.Tb("popperDefaults"))},e.\u0275dir=i.Ob({type:e,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[i.Bb]}),e}(),$a=function(){function e(){}return e.prototype.ngDoBootstrap=function(){},e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:"popperDefaults",useValue:t}]}},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c]]}),e}(),Ga=n("tokB"),Qa=n("rpki"),Xa=n("Rney"),Ka=n("p0Sj"),Ja=n("ad02"),es=(n("gQXd"),n("zPI3")),ts=["moz","ms","webkit"];function ns(){if("undefined"==typeof window)return function(){return 0};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var e,t=ts.filter((function(e){return e+"RequestAnimationFrame"in window}))[0];return t?window[t+"RequestAnimationFrame"]:(e=0,function(t){var n=(new Date).getTime(),i=Math.max(0,16-(n-e)),r=setTimeout((function(){t(n+i)}),i);return e=n+i,r})}var is,rs=ns(),os=n("dzgT"),as=(n("dEwP"),n("0mNj")),ss=n("ny24"),cs=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}(),us=new Set,ls=function(){function e(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ps}return e.prototype.matchMedia=function(e){return this._platform.WEBKIT&&function(e){if(!us.has(e))try{is||((is=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(is)),is.sheet&&(is.sheet.insertRule("@media "+e+" {.fx-query-test{ }}",0),us.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(Xr.a))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(Xr.a))},e}();function ps(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var hs=function(){},ds=function(){function e(e,t){var n=this;this.ngZone=e,this.rendererFactory2=t,this.resizeSource$=new kt.a,this.listeners=0,this.disposeHandle=hs,this.handler=function(){n.ngZone.run((function(){n.resizeSource$.next()}))},this.renderer=this.rendererFactory2.createRenderer(null,null)}return e.prototype.subscribe=function(){var e=this;return this.registerListener(),this.resizeSource$.pipe(Object(Xa.a)(16),Object(tn.a)((function(){return e.unregisterListener()})))},e.prototype.unsubscribe=function(){this.unregisterListener()},e.prototype.registerListener=function(){var e=this;0===this.listeners&&this.ngZone.runOutsideAngular((function(){e.disposeHandle=e.renderer.listen("window","resize",e.handler)})),this.listeners+=1},e.prototype.unregisterListener=function(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=hs)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(i.z),Object(i.dc)(i.F))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(i.z),i.dc(i.F))},e}(),fs=function(){function e(e){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=e.createRenderer(null,null)}return e.prototype.requestDraggingSequence=function(e){var t=this;return this.handleRegistry.size||this.registerDraggingHandler(Object(es.t)(e)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function(e){var t=Object(es.g)(e);return{x:t.pageX,y:t.pageY}}(e),this.currentDraggingSequence=new kt.a,this.currentDraggingSequence.pipe(Object(Mt.a)((function(e){return{x:e.pageX-t.currentStartingPoint.x,y:e.pageY-t.currentStartingPoint.y}})),Object(Pt.a)((function(e){return Math.abs(e.x)>t.draggingThreshold||Math.abs(e.y)>t.draggingThreshold})),Object(tn.a)((function(){return t.teardownDraggingSequence()})))},e.prototype.registerDraggingHandler=function(e){var t=this;e?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",(function(e){t.currentDraggingSequence&&t.currentDraggingSequence.next(e.touches[0]||e.changedTouches[0])}))}),this.handleRegistry.add({teardown:this.renderer.listen("document","touchend",(function(){t.currentDraggingSequence&&t.currentDraggingSequence.complete()}))})):(this.handleRegistry.add({teardown:this.renderer.listen("document","mousemove",(function(e){t.currentDraggingSequence&&t.currentDraggingSequence.next(e)}))}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",(function(){t.currentDraggingSequence&&t.currentDraggingSequence.complete()}))}))},e.prototype.teardownDraggingSequence=function(){this.currentDraggingSequence=null},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(i.F))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(i.F))},e}();function gs(e,t,n,i){var r=n-t,o=e/(i/2);return o<1?r/2*o*o*o+t:r/2*((o-=2)*o*o+2)+t}var bs=function(){function e(e){this.doc=e}return e.prototype.setScrollTop=function(e,t){void 0===t&&(t=0),e===window?(this.doc.body.scrollTop=t,this.doc.documentElement.scrollTop=t):e.scrollTop=t},e.prototype.getOffset=function(e){var t={top:0,left:0};if(!e||!e.getClientRects().length)return t;var n=e.getBoundingClientRect();if(n.width||n.height){var i=e.ownerDocument.documentElement;t.top=n.top-i.clientTop,t.left=n.left-i.clientLeft}else t.top=n.top,t.left=n.left;return t},e.prototype.getScroll=function(e,t){void 0===t&&(t=!0);var n=e||window,i=t?"scrollTop":"scrollLeft",r=n===window,o=r?n[t?"pageYOffset":"pageXOffset"]:n[i];return r&&"number"!=typeof o&&(o=this.doc.documentElement[i]),o},e.prototype.scrollTo=function(e,t,n,i){var r=this;void 0===t&&(t=0);var o=e||window,a=this.getScroll(o),s=Date.now(),c=function(){var e=Date.now()-s;r.setScrollTop(o,(n||gs)(e,a,t,450)),e<450?rs(c):i&&i()};rs(c)},e.\u0275fac=function(t){return new(t||e)(i.dc(Vr.e))},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),ms={provide:bs,useFactory:function(e,t){return t||new bs(e)},deps:[Vr.e,[new i.A,new i.K,bs]]},vs={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ys={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"},ws=function(){function e(e,t){this.resizeService=e,this.mediaMatcher=t,this.resizeService.subscribe().subscribe((function(){}))}return e.prototype.subscribe=function(e,t){var n=this;if(t){var i=function(){return n.matchMedia(e,!0)};return this.resizeService.subscribe().pipe(Object(Mt.a)(i),Object(Ka.a)(i()),Object(Ja.a)((function(e,t){return e[0]===t[0]})),Object(Mt.a)((function(e){return e[1]})))}return i=function(){return n.matchMedia(e)},this.resizeService.subscribe().pipe(Object(Mt.a)(i),Object(Ka.a)(i()),Object(Ja.a)())},e.prototype.matchMedia=function(e,t){var n=this,i="md",r={};return Object.keys(e).map((function(e){var t=e,o=n.mediaMatcher.matchMedia(vs[t]).matches;r[e]=o,o&&(i=t)})),t?[i,r]:i},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(ds),Object(i.dc)(ls))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(ds),i.dc(ls))},e}(),Os=n("S5bw"),Cs=n("bne5"),Ss=["fixedEl"],zs=["*"],Ts={resize:"resize",scroll:"scroll",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",pageshow:"pageshow",load:"LOAD"};function _s(e){return function(e){return"undefined"!=typeof window&&e===window}(e)?{top:0,left:0,bottom:0}:e.getBoundingClientRect()}var ks=function(){function e(e,t,n,r,o,a,s){this.nzConfigService=n,this.scrollSrv=r,this.ngZone=o,this.platform=a,this.renderer=s,this.nzTarget=window,this.nzOffsetTop=null,this.nzOffsetBottom=null,this.nzChange=new i.n,this.positionChangeSubscription=Ft.a.EMPTY,this.offsetChanged$=new Os.a(1),this.destroy$=new kt.a,this.placeholderNode=e.nativeElement,this.document=t}return Object.defineProperty(e.prototype,"target",{get:function(){var e=this.nzTarget;return("string"==typeof e?this.document.querySelector(e):e)||window},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=e.nzTarget;(e.nzOffsetBottom||e.nzOffsetTop)&&this.offsetChanged$.next(),t&&this.registerListeners()},e.prototype.ngAfterViewInit=function(){this.registerListeners()},e.prototype.ngOnDestroy=function(){this.removeListeners()},e.prototype.registerListeners=function(){var e=this;this.removeListeners(),this.positionChangeSubscription=this.ngZone.runOutsideAngular((function(){return Tt.a.apply(void 0,Object(zt.g)(Object.keys(Ts).map((function(t){return Object(Cs.a)(e.target,t)})),[e.offsetChanged$.pipe(Object(ss.a)(e.destroy$),Object(Mt.a)((function(){return{}})))])).pipe(Object(Xa.a)(20)).subscribe((function(t){return e.updatePosition(t)}))})),this.timeout=setTimeout((function(){return e.updatePosition({})}))},e.prototype.removeListeners=function(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()},e.prototype.getOffset=function(e,t){var n=e.getBoundingClientRect(),i=_s(t),r=this.scrollSrv.getScroll(t,!0),o=this.scrollSrv.getScroll(t,!1),a=this.document.body;return{top:n.top-i.top+r-(a.clientTop||0),left:n.left-i.left+o-(a.clientLeft||0),width:n.width,height:n.height}},e.prototype.setAffixStyle=function(e,t){var n=this.affixStyle,i=this.target===window;if(!("scroll"===e.type&&n&&t&&i||Object(es.z)(n,t))){var r=!!t,o=this.fixedEl.nativeElement;this.renderer.setStyle(o,"cssText",Object(es.k)(t)),this.affixStyle=t,r?o.classList.add("ant-affix"):o.classList.remove("ant-affix"),(t&&!n||!t&&n)&&this.nzChange.emit(r)}},e.prototype.setPlaceholderStyle=function(e){var t=this.placeholderStyle;Object(es.z)(e,t)||(this.renderer.setStyle(this.placeholderNode,"cssText",Object(es.k)(e)),this.placeholderStyle=e)},e.prototype.syncPlaceholderStyle=function(e){if(this.affixStyle){this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;var t={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(e,Object(zt.a)(Object(zt.a)({},this.affixStyle),t)),this.setPlaceholderStyle(t)}},e.prototype.updatePosition=function(e){if(this.platform.isBrowser){var t=this.target,n=this.nzOffsetTop,i=this.scrollSrv.getScroll(t,!0),r=this.getOffset(this.placeholderNode,t),o=this.fixedEl.nativeElement,a={width:o.offsetWidth,height:o.offsetHeight},s={top:!1,bottom:!1};"number"!=typeof n&&"number"!=typeof this.nzOffsetBottom?(s.top=!0,n=0):(s.top="number"==typeof n,s.bottom="number"==typeof this.nzOffsetBottom);var c=_s(t),u=t.innerHeight||t.clientHeight;if(i>=r.top-n&&s.top)this.setAffixStyle(e,{position:"fixed",top:c.top+n,left:c.left+r.left,width:l=r.width}),this.setPlaceholderStyle({width:l,height:a.height});else if(i<=r.top+a.height+this.nzOffsetBottom-u&&s.bottom){var l,p=t===window?0:window.innerHeight-c.bottom;this.setAffixStyle(e,{position:"fixed",bottom:p+this.nzOffsetBottom,left:c.left+r.left,width:l=r.width}),this.setPlaceholderStyle({width:l,height:r.height})}else e.type===Ts.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(e,Object(zt.a)(Object(zt.a)({},this.affixStyle),{width:this.placeholderNode.offsetWidth})):this.setAffixStyle(e),this.setPlaceholderStyle();"resize"===e.type&&this.syncPlaceholderStyle(e)}},Object(zt.b)([Object(Qa.b)("affix"),Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzOffsetTop",void 0),Object(zt.b)([Object(Qa.b)("affix"),Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzOffsetBottom",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(Vr.e),i.Tb(Qa.a),i.Tb(bs),i.Tb(i.z),i.Tb(Xr.a),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-affix"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Ss,!0),2&e&&i.zc(n=i.ic())&&(t.fixedEl=n.first)},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[i.Bb],ngContentSelectors:zs,decls:7,vars:0,consts:[["fixedEl",""]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Zb(1,"div",null,0),i.Nc(3,"\n "),i.qc(4),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "))},encapsulation:2,changeDetection:0}),e}(),Ds=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},providers:[ms],imports:[[Vr.c,Xr.b]]}),e}(),xs=n("Gb2T"),Es=n("wmq6"),Ns=n("G6CK");function js(e,t){if(1&e&&(i.Xb(0),i.Ub(1,"i",6),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzType",n.nzIconType||n.inferredIconType)("nzTheme",n.iconTheme)}}function Is(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.nzMessage)}}function As(e,t){if(1&e&&(i.Zb(0,"span",7),i.Lc(1,Is,2,1,"ng-container",8),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzMessage)}}function Ms(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.nzDescription)}}function Ls(e,t){if(1&e&&(i.Zb(0,"span",9),i.Lc(1,Ms,2,1,"ng-container",8),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzDescription)}}function Ps(e,t){1&e&&i.Ub(0,"i",13)}function Fs(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"span",14),i.Nc(2),i.Yb(),i.Wb()),2&e){var n=i.kc(4);i.Db(2),i.Oc(n.nzCloseText)}}function Rs(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Fs,3,1,"ng-container",8),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzCloseText)}}function Vs(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",10),i.hc("click",(function(){return i.Dc(n),i.kc(2).closeAlert()})),i.Lc(1,Ps,1,0,"ng-template",null,11,i.Mc),i.Lc(3,Rs,2,1,"ng-container",12),i.Yb()}if(2&e){var r=i.Ac(2),o=i.kc(2);i.Db(3),i.sc("ngIf",o.nzCloseText)("ngIfElse",r)}}function Bs(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",1),i.hc("@slideAlertMotion.done",(function(){return i.Dc(n),i.kc().onFadeAnimationDone()})),i.Lc(1,js,2,2,"ng-container",2),i.Lc(2,As,2,1,"span",3),i.Lc(3,Ls,2,1,"span",4),i.Lc(4,Vs,4,2,"button",5),i.Yb()}if(2&e){var r=i.kc();i.Jb("ant-alert-success","success"===r.nzType)("ant-alert-info","info"===r.nzType)("ant-alert-warning","warning"===r.nzType)("ant-alert-error","error"===r.nzType)("ant-alert-no-icon",!r.nzShowIcon)("ant-alert-banner",r.nzBanner)("ant-alert-closable",r.nzCloseable)("ant-alert-with-description",!!r.nzDescription),i.sc("@.disabled",r.nzNoAnimation)("@slideAlertMotion",void 0),i.Db(1),i.sc("ngIf",r.nzShowIcon),i.Db(1),i.sc("ngIf",r.nzMessage),i.Db(1),i.sc("ngIf",r.nzDescription),i.Db(1),i.sc("ngIf",r.nzCloseable||r.nzCloseText)}}var Ys=function(){function e(e,t){var n=this;this.nzConfigService=e,this.cdr=t,this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new i.n,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new kt.a,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe(Object(ss.a)(this.destroy$)).subscribe((function(){n.cdr.markForCheck()}))}return e.prototype.closeAlert=function(){this.closed=!0},e.prototype.onFadeAnimationDone=function(){this.closed&&this.nzOnClose.emit(!0)},e.prototype.ngOnChanges=function(e){var t=e.nzDescription,n=e.nzType,i=e.nzBanner;if(e.nzShowIcon&&(this.isShowIconSet=!0),n)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}t&&(this.iconTheme=this.nzDescription?"outline":"fill"),i&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(Qa.b)("alert"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzCloseable",void 0),Object(zt.b)([Object(Qa.b)("alert"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowIcon",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzBanner",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzNoAnimation",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[i.Bb],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,t){1&e&&i.Lc(0,Bs,5,22,"div",0),2&e&&i.sc("ngIf",!t.closed)},directives:[Vr.t,Ns.a,Es.b],encapsulation:2,data:{animation:[xs.f]},changeDetection:0}),e}(),Us=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ns.b,Es.a]]}),e}(),Hs=n("ryCu"),Ws=n("AJqF"),qs=["ink"];function Zs(e,t){}function $s(e,t){if(1&e&&(i.Zb(0,"nz-affix",2),i.Lc(1,Zs,0,0,"ng-template",3),i.Yb()),2&e){var n=i.kc(),r=i.Ac(2);i.sc("nzOffsetTop",n.nzOffsetTop)("nzTarget",n.container),i.Db(1),i.sc("ngTemplateOutlet",r)}}var Gs=function(e){return{fixed:e}};function Qs(e,t){if(1&e&&(i.Zb(0,"div",4),i.Zb(1,"div",5),i.Zb(2,"div",6),i.Ub(3,"div",7,8),i.Yb(),i.qc(5),i.Yb(),i.Yb()),2&e){var n=i.kc();i.sc("ngStyle",n.wrapperStyle),i.Db(1),i.sc("ngClass",i.vc(2,Gs,!n.nzAffix&&!n.nzShowInkInFixed))}}var Xs=["*"],Ks=["nzTemplate"],Js=["linkTitle"];function ec(e,t){if(1&e&&(i.Zb(0,"span"),i.Nc(1),i.Yb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.titleStr)}}function tc(e,t){if(!e||!e.getClientRects().length)return 0;var n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}var nc=/#([^#]+)$/,ic=function(){function e(e,t,n,r,o,a,s){this.doc=e,this.nzConfigService=t,this.scrollSrv=n,this.cdr=r,this.platform=o,this.zone=a,this.renderer=s,this.nzAffix=!0,this.nzShowInkInFixed=!1,this.nzBounds=5,this.nzOffsetTop=void 0,this.nzTarget="",this.nzClick=new i.n,this.nzScroll=new i.n,this.visible=!1,this.wrapperStyle={"max-height":"100vh"},this.links=[],this.animating=!1,this.destroy$=new kt.a,this.handleScrollTimeoutID=-1}return e.prototype.registerLink=function(e){this.links.push(e)},e.prototype.unregisterLink=function(e){this.links.splice(this.links.indexOf(e),1)},e.prototype.getContainer=function(){return this.container||window},e.prototype.ngAfterViewInit=function(){this.registerScrollEvent()},e.prototype.ngOnDestroy=function(){clearTimeout(this.handleScrollTimeoutID),this.destroy$.next(),this.destroy$.complete()},e.prototype.registerScrollEvent=function(){var e=this;this.platform.isBrowser&&(this.destroy$.next(),this.zone.runOutsideAngular((function(){Object(Cs.a)(e.getContainer(),"scroll").pipe(Object(Ws.a)(50),Object(ss.a)(e.destroy$)).subscribe((function(){return e.handleScroll()}))})),this.handleScrollTimeoutID=setTimeout((function(){return e.handleScroll()})))},e.prototype.handleScroll=function(){var e=this;if("undefined"!=typeof document&&!this.animating){var t=[],n=(this.nzOffsetTop||0)+this.nzBounds;if(this.links.forEach((function(i){var r=nc.exec(i.nzHref.toString());if(r){var o=e.doc.getElementById(r[1]);if(o){var a=tc(o,e.getContainer());ae.top?t:e}));this.handleActive(i.comp)}else this.clearActive(),this.cdr.detectChanges();this.setVisible()}},e.prototype.clearActive=function(){this.links.forEach((function(e){e.unsetActive()}))},e.prototype.handleActive=function(e){this.clearActive(),e.setActive();var t=e.getLinkTitleElement();this.ink.nativeElement.style.top=t.offsetTop+t.clientHeight/2-4.5+"px",this.visible=!0,this.setVisible(),this.nzScroll.emit(e)},e.prototype.setVisible=function(){this.ink&&(this.visible?this.renderer.addClass(this.ink.nativeElement,"visible"):this.renderer.removeClass(this.ink.nativeElement,"visible"))},e.prototype.handleScrollTo=function(e){var t=this,n=this.doc.querySelector(e.nzHref);if(n){this.animating=!0;var i=this.scrollSrv.getScroll(this.getContainer())+tc(n,this.getContainer())-(this.nzOffsetTop||0);this.scrollSrv.scrollTo(this.getContainer(),i,void 0,(function(){t.animating=!1,t.handleActive(e)})),this.nzClick.emit(e.nzHref)}},e.prototype.ngOnChanges=function(e){var t=e.nzTarget,n=e.nzContainer;if(e.nzOffsetTop&&(this.wrapperStyle={"max-height":"calc(100vh - "+this.nzOffsetTop+"px)"}),n||t){var i=this.nzContainer||this.nzTarget;this.container="string"==typeof i?this.doc.querySelector(i):i,this.registerScrollEvent(),t&&Object(Hs.c)("'nzTarget' of 'nz-anchor' is deprecated and will be removed in 10.0.0.Please use 'nzContainer' instead.")}},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAffix",void 0),Object(zt.b)([Object(Qa.b)("anchor"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowInkInFixed",void 0),Object(zt.b)([Object(Qa.b)("anchor"),Object(es.b)(),Object(zt.d)("design:type",Number)],e.prototype,"nzBounds",void 0),Object(zt.b)([Object(es.b)(),Object(Qa.b)("anchor"),Object(zt.d)("design:type",Number)],e.prototype,"nzOffsetTop",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Vr.e),i.Tb(Qa.a),i.Tb(bs),i.Tb(i.h),i.Tb(Xr.a),i.Tb(i.z),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-anchor"]],viewQuery:function(e,t){var n;1&e&&i.Sc(qs,!0),2&e&&i.zc(n=i.ic())&&(t.ink=n.first)},inputs:{nzAffix:"nzAffix",nzShowInkInFixed:"nzShowInkInFixed",nzBounds:"nzBounds",nzOffsetTop:"nzOffsetTop",nzTarget:"nzTarget",nzContainer:"nzContainer"},outputs:{nzClick:"nzClick",nzScroll:"nzScroll"},exportAs:["nzAnchor"],features:[i.Bb],ngContentSelectors:Xs,decls:3,vars:2,consts:[[3,"nzOffsetTop","nzTarget",4,"ngIf","ngIfElse"],["content",""],[3,"nzOffsetTop","nzTarget"],[3,"ngTemplateOutlet"],[1,"ant-anchor-wrapper",3,"ngStyle"],[1,"ant-anchor",3,"ngClass"],[1,"ant-anchor-ink"],[1,"ant-anchor-ink-ball"],["ink",""]],template:function(e,t){if(1&e&&(i.rc(),i.Lc(0,$s,2,3,"nz-affix",0),i.Lc(1,Qs,6,4,"ng-template",null,1,i.Mc)),2&e){var n=i.Ac(2);i.sc("ngIf",t.nzAffix)("ngIfElse",n)}},directives:[Vr.t,ks,Vr.A,Vr.w,Vr.q],encapsulation:2,changeDetection:0}),e}(),rc=function(){function e(e,t,n,i){this.elementRef=e,this.anchorComp=t,this.platform=n,this.renderer=i,this.nzHref="#",this.titleStr="",this.renderer.addClass(e.nativeElement,"ant-anchor-link")}return Object.defineProperty(e.prototype,"nzTitle",{set:function(e){e instanceof i.M?(this.titleStr=null,this.titleTpl=e):this.titleStr=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.anchorComp.registerLink(this)},e.prototype.getLinkTitleElement=function(){return this.linkTitle.nativeElement},e.prototype.setActive=function(){this.renderer.addClass(this.elementRef.nativeElement,"ant-anchor-link-active")},e.prototype.unsetActive=function(){this.renderer.removeClass(this.elementRef.nativeElement,"ant-anchor-link-active")},e.prototype.goToClick=function(e){e.preventDefault(),e.stopPropagation(),this.platform.isBrowser&&this.anchorComp.handleScrollTo(this)},e.prototype.ngOnDestroy=function(){this.anchorComp.unregisterLink(this)},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(ic),i.Tb(Xr.a),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-link"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,Ks,!0),2&e&&i.zc(r=i.ic())&&(t.nzTemplate=r.first)},viewQuery:function(e,t){var n;1&e&&i.Sc(Js,!0),2&e&&i.zc(n=i.ic())&&(t.linkTitle=n.first)},inputs:{nzHref:"nzHref",nzTitle:"nzTitle"},exportAs:["nzLink"],ngContentSelectors:Xs,decls:4,vars:4,consts:[[1,"ant-anchor-link-title",3,"href","title","click"],["linkTitle",""],[4,"ngIf","ngIfElse"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"a",0,1),i.hc("click",(function(e){return t.goToClick(e)})),i.Lc(2,ec,2,1,"span",2),i.Yb(),i.qc(3)),2&e&&(i.tc("href",t.nzHref,i.Fc),i.tc("title",t.titleStr),i.Db(2),i.sc("ngIf",t.titleStr)("ngIfElse",t.titleTpl||t.nzTemplate))},directives:[Vr.t],encapsulation:2,changeDetection:0}),e}(),oc=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},providers:[ms],imports:[[Vr.c,Ds,Xr.b]]}),e}(),ac=n("+jMV"),sc=n("15JJ");function cc(e,t){if(1&e&&i.Ub(0,"span",7),2&e){var n=i.kc(2);i.sc("icon",n.nzAddOnBeforeIcon)("template",n.nzAddOnBefore)}}function uc(e,t){}function lc(e,t){if(1&e&&(i.Zb(0,"span",8),i.Lc(1,uc,0,0,"ng-template",9),i.Yb()),2&e){var n=i.kc(2),r=i.Ac(4);i.Jb("ant-input-affix-wrapper-sm",n.isSmall)("ant-input-affix-wrapper-lg",n.isLarge),i.Db(1),i.sc("ngTemplateOutlet",r)}}function pc(e,t){if(1&e&&i.Ub(0,"span",7),2&e){var n=i.kc(2);i.sc("icon",n.nzAddOnAfterIcon)("template",n.nzAddOnAfter)}}function hc(e,t){if(1&e&&(i.Zb(0,"span",4),i.Lc(1,cc,1,2,"span",5),i.Lc(2,lc,2,5,"span",6),i.Lc(3,pc,1,2,"span",5),i.Yb()),2&e){var n=i.kc(),r=i.Ac(6);i.Db(1),i.sc("ngIf",n.nzAddOnBefore||n.nzAddOnBeforeIcon),i.Db(1),i.sc("ngIf",n.isAffix)("ngIfElse",r),i.Db(1),i.sc("ngIf",n.nzAddOnAfter||n.nzAddOnAfterIcon)}}function dc(e,t){}function fc(e,t){if(1&e&&i.Lc(0,dc,0,0,"ng-template",9),2&e){i.kc(2);var n=i.Ac(4);i.sc("ngTemplateOutlet",n)}}function gc(e,t){if(1&e&&i.Lc(0,fc,1,1,"ng-template",10),2&e){var n=i.kc(),r=i.Ac(6);i.sc("ngIf",n.isAffix)("ngIfElse",r)}}function bc(e,t){if(1&e&&i.Ub(0,"span",13),2&e){var n=i.kc(2);i.sc("icon",n.nzPrefixIcon)("template",n.nzPrefix)}}function mc(e,t){}function vc(e,t){if(1&e&&i.Ub(0,"span",14),2&e){var n=i.kc(2);i.sc("icon",n.nzSuffixIcon)("template",n.nzSuffix)}}function yc(e,t){if(1&e&&(i.Lc(0,bc,1,2,"span",11),i.Lc(1,mc,0,0,"ng-template",9),i.Lc(2,vc,1,2,"span",12)),2&e){var n=i.kc(),r=i.Ac(6);i.sc("ngIf",n.nzPrefix||n.nzPrefixIcon),i.Db(1),i.sc("ngTemplateOutlet",r),i.Db(1),i.sc("ngIf",n.nzSuffix||n.nzSuffixIcon)}}function wc(e,t){1&e&&i.qc(0)}var Oc=["*"],Cc=["nz-input-group-slot",""];function Sc(e,t){if(1&e&&i.Ub(0,"i",2),2&e){var n=i.kc();i.sc("nzType",n.icon)}}function zc(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.template)}}var Tc=function(){function e(e,t){this.nzSize="default",this.disabled=!1,this.disabled$=new kt.a,e.addClass(t.nativeElement,"ant-input")}return e.prototype.ngOnChanges=function(e){e.disabled&&this.disabled$.next(this.disabled)},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"disabled",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.E),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:6,hostBindings:function(e,t){2&e&&i.Jb("ant-input-disabled",t.disabled)("ant-input-lg","large"===t.nzSize)("ant-input-sm","small"===t.nzSize)},inputs:{nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[i.Bb]}),e}(),_c=function(){function e(e){this.elementRef=e}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),e}(),kc=function(){function e(e,t,n){this.focusMonitor=e,this.elementRef=t,this.cdr=n,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.focused=!1,this.disabled=!1,this.destroy$=new kt.a}return e.prototype.updateChildrenInputSize=function(){var e=this;this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach((function(t){return t.nzSize=e.nzSize}))},e.prototype.ngOnInit=function(){var e=this;this.focusMonitor.monitor(this.elementRef,!0).pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.focused=!!t,e.cdr.markForCheck()}))},e.prototype.ngAfterContentInit=function(){var e=this;this.updateChildrenInputSize();var t=this.listOfNzInputDirective.changes.pipe(Object(Ka.a)(this.listOfNzInputDirective));t.pipe(Object(sc.a)((function(e){return Tt.a.apply(void 0,Object(zt.g)([t],e.map((function(e){return e.disabled$}))))})),Object(Wt.a)((function(){return t})),Object(Mt.a)((function(e){return e.some((function(e){return e.disabled}))})),Object(ss.a)(this.destroy$)).subscribe((function(t){e.disabled=t,e.cdr.markForCheck()}))},e.prototype.ngOnChanges=function(e){var t=e.nzSuffix,n=e.nzPrefix,i=e.nzPrefixIcon,r=e.nzSuffixIcon,o=e.nzAddOnAfter,a=e.nzAddOnBefore,s=e.nzAddOnAfterIcon,c=e.nzAddOnBeforeIcon;e.nzSize&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(t||n||i||r)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(o||a||s||c)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSearch",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzCompact",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(yo),i.Tb(i.l),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-input-group"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,Tc,!1),2&e&&i.zc(r=i.ic())&&(t.listOfNzInputDirective=r)},hostVars:32,hostBindings:function(e,t){2&e&&i.Jb("ant-input-group-compact",t.nzCompact)("ant-input-search-enter-button",t.nzSearch)("ant-input-search",t.nzSearch)("ant-input-search-sm",t.nzSearch&&t.isSmall)("ant-input-search-large",t.nzSearch&&t.isLarge)("ant-input-group-wrapper",t.isAddOn)("ant-input-group-wrapper-lg",t.isAddOn&&t.isLarge)("ant-input-group-wrapper-sm",t.isAddOn&&t.isSmall)("ant-input-affix-wrapper",t.isAffix&&!t.isAddOn)("ant-input-affix-wrapper-focused",t.isAffix&&t.focused)("ant-input-affix-wrapper-disabled",t.isAffix&&t.disabled)("ant-input-affix-wrapper-lg",t.isAffix&&!t.isAddOn&&t.isLarge)("ant-input-affix-wrapper-sm",t.isAffix&&!t.isAddOn&&t.isSmall)("ant-input-group",!t.isAffix&&!t.isAddOn)("ant-input-group-lg",!t.isAffix&&!t.isAddOn&&t.isLarge)("ant-input-group-sm",!t.isAffix&&!t.isAddOn&&t.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix"},exportAs:["nzInputGroup"],features:[i.Bb],ngContentSelectors:Oc,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"]],template:function(e,t){if(1&e&&(i.rc(),i.Lc(0,hc,4,4,"span",0),i.Lc(1,gc,1,2,"ng-template",null,1,i.Mc),i.Lc(3,yc,3,3,"ng-template",null,2,i.Mc),i.Lc(5,wc,1,0,"ng-template",null,3,i.Mc)),2&e){var n=i.Ac(2);i.sc("ngIf",t.isAddOn)("ngIfElse",n)}},directives:function(){return[Vr.t,xc,Vr.A]},encapsulation:2,changeDetection:0}),e}(),Dc=function(){function e(e,t,n,i){this.elementRef=e,this.ngZone=t,this.platform=n,this.resizeService=i,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new kt.a,this.inputGap=10}return Object.defineProperty(e.prototype,"nzAutosize",{set:function(e){var t;"string"==typeof e?this.autosize=!0:"string"!=typeof(t=e)&&"boolean"!=typeof t&&(t.maxRows||t.minRows)&&(this.autosize=e,this.minRows=e.minRows,this.maxRows=e.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())},enumerable:!0,configurable:!0}),e.prototype.resizeToFitContent=function(e){var t=this;if(void 0===e&&(e=!1),this.cacheTextareaLineHeight(),this.cachedLineHeight){var n=this.el,i=n.value;if(e||this.minRows!==this.previousMinRows||i!==this.previousValue){var r=n.placeholder;n.classList.add("nz-textarea-autosize-measuring"),n.placeholder="";var o=Math.round((n.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&o>this.maxHeight&&(o=this.maxHeight),null!==this.minHeight&&o=0)&&this.el.parentNode){var e=this.el.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this.el.parentNode.appendChild(e),this.cachedLineHeight=e.clientHeight-this.inputGap,this.el.parentNode.removeChild(e),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}},e.prototype.setMinHeight=function(){var e=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==e&&(this.el.style.minHeight=e+"px"),e},e.prototype.setMaxHeight=function(){var e=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==e&&(this.el.style.maxHeight=e+"px"),e},e.prototype.noopInputHandler=function(){},e.prototype.ngAfterViewInit=function(){var e=this;this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe(Object(ss.a)(this.destroy$)).subscribe((function(){return e.resizeToFitContent(!0)})))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.ngDoCheck=function(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.z),i.Tb(Xr.a),i.Tb(ds))},e.\u0275dir=i.Ob({type:e,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(e,t){1&e&&i.hc("input",(function(){return t.noopInputHandler()}))},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"]}),e}(),xc=function(){function e(){this.icon=null,this.type=null,this.template=null}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(e,t){2&e&&i.Jb("ant-input-group-addon","addon"===t.type)("ant-input-prefix","prefix"===t.type)("ant-input-suffix","suffix"===t.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:Cc,decls:2,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(e,t){1&e&&(i.Lc(0,Sc,1,1,"i",0),i.Lc(1,zc,2,1,"ng-container",1)),2&e&&(i.sc("ngIf",t.icon),i.Db(1),i.sc("nzStringTemplateOutlet",t.template))},directives:[Vr.t,Es.b,Ns.a],encapsulation:2,changeDetection:0}),e}(),Ec=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ns.b,Xr.b,Es.a]]}),e}(),Nc=n("T1DM"),jc=n("VGuC");function Ic(e,t){void 0===t&&(t=Nc.a);var n=Object(jc.a)(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new Ac(n,t))}}var Ac=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Mc(e,this.delay,this.scheduler))},e}(),Mc=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return zt.c(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new Lc(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(xt.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(xt.a.createComplete()),this.unsubscribe()},t}(Et.a),Lc=function(){return function(e,t){this.time=e,this.notification=t}}(),Pc=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new Fc(e,this.keySelector,this.flushes))},e}(),Fc=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=n,r.values=new Set,i&&r.add(Object($t.a)(r,i)),r}return zt.c(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(i){return void n.error(i)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(qt.a);function Rc(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzLabel)}}var Vc=[[["nz-auto-option"]]],Bc=["nz-auto-option"],Yc=["*"],Uc=["panel"],Hc=["content"];function Wc(e,t){}function qc(e,t){1&e&&i.Lc(0,Wc,0,0,"ng-template")}function Zc(e,t){1&e&&i.qc(0)}function $c(e,t){if(1&e&&(i.Zb(0,"nz-auto-option",8),i.Nc(1),i.Yb()),2&e){var n=t.$implicit;i.sc("nzValue",n)("nzLabel",n&&n.label?n.label:n),i.Db(1),i.Pc(" ",n&&n.label?n.label:n," ")}}function Gc(e,t){if(1&e&&i.Lc(0,$c,2,3,"nz-auto-option",7),2&e){var n=i.kc(2);i.sc("ngForOf",n.nzDataSource)}}function Qc(e,t){if(1&e&&(i.Zb(0,"div",0,1),i.Zb(2,"div",2),i.Zb(3,"div",3),i.Lc(4,qc,1,0,void 0,4),i.Yb(),i.Yb(),i.Yb(),i.Lc(5,Zc,1,0,"ng-template",null,5,i.Mc),i.Lc(7,Gc,1,1,"ng-template",null,6,i.Mc)),2&e){var n=i.Ac(6),r=i.Ac(8),o=i.kc();i.Jb("ant-select-dropdown-hidden",!o.showPanel),i.sc("ngClass",o.nzOverlayClassName)("ngStyle",o.nzOverlayStyle)("nzNoAnimation",null==o.noAnimation?null:o.noAnimation.nzNoAnimation)("@slideMotion",o.dropDownPosition)("@.disabled",null==o.noAnimation?null:o.noAnimation.nzNoAnimation),i.Db(4),i.sc("ngTemplateOutlet",o.nzDataSource?r:n)}}var Xc=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:Bc,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(i.rc(Vc),i.Zb(0,"div",0),i.Lc(1,Rc,2,1,"ng-container",1),i.Yb(),i.qc(2)),2&e&&(i.Db(1),i.sc("nzStringTemplateOutlet",t.nzLabel))},directives:[Es.b],encapsulation:2,changeDetection:0}),e}(),Kc=function(){return function(e,t){void 0===t&&(t=!1),this.source=e,this.isUserInput=t}}(),Jc=function(){function e(e,t,n){this.changeDetectorRef=e,this.element=t,this.nzAutocompleteOptgroupComponent=n,this.nzDisabled=!1,this.selectionChange=new i.n,this.mouseEntered=new i.n,this.active=!1,this.selected=!1}return e.prototype.select=function(e){void 0===e&&(e=!0),this.selected=!0,this.changeDetectorRef.markForCheck(),e&&this.emitSelectionChangeEvent()},e.prototype.onMouseEnter=function(){this.mouseEntered.emit(this)},e.prototype.deselect=function(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()},e.prototype.getLabel=function(){return this.nzLabel||this.nzValue.toString()},e.prototype.setActiveStyles=function(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())},e.prototype.setInactiveStyles=function(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())},e.prototype.scrollIntoViewIfNeeded=function(){Object(es.y)(this.element.nativeElement)},e.prototype.selectViaInteraction=function(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())},e.prototype.emitSelectionChangeEvent=function(e){void 0===e&&(e=!1),this.selectionChange.emit(new Kc(this,e))},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.l),i.Tb(Xc,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(e,t){1&e&&i.hc("click",(function(){return t.selectViaInteraction()}))("mouseenter",(function(){return t.onMouseEnter()}))("mousedown",(function(e){return e.preventDefault()})),2&e&&(i.Eb("aria-selected",t.selected.toString())("aria-disabled",t.nzDisabled.toString()),i.Jb("ant-select-item-option-grouped",t.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",t.selected)("ant-select-item-option-active",t.active)("ant-select-item-option-disabled",t.nzDisabled))},inputs:{nzDisabled:"nzDisabled",nzValue:"nzValue",nzLabel:"nzLabel"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:Yc,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"div",0),i.qc(1),i.Yb())},encapsulation:2,changeDetection:0}),e}(),eu=function(){function e(e,t,n){var r=this;this.changeDetectorRef=e,this.ngZone=t,this.noAnimation=n,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=function(e,t){return e===t},this.selectionChange=new i.n,this.showPanel=!0,this.isOpen=!1,this.dropDownPosition="bottom",this.activeItemIndex=-1,this.selectionChangeSubscription=Ft.a.EMPTY,this.optionMouseEnterSubscription=Ft.a.EMPTY,this.dataSourceChangeSubscription=Ft.a.EMPTY,this.optionSelectionChanges=Object(Dt.a)((function(){return r.options?Tt.a.apply(void 0,Object(zt.g)(r.options.map((function(e){return e.selectionChange})))):r.ngZone.onStable.asObservable().pipe(Object(en.a)(1),Object(sc.a)((function(){return r.optionSelectionChanges})))})),this.optionMouseEnter=Object(Dt.a)((function(){return r.options?Tt.a.apply(void 0,Object(zt.g)(r.options.map((function(e){return e.mouseEntered})))):r.ngZone.onStable.asObservable().pipe(Object(en.a)(1),Object(sc.a)((function(){return r.optionMouseEnter})))}))}return Object.defineProperty(e.prototype,"options",{get:function(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.nzDataSource||this.optionsInit()},e.prototype.ngAfterViewInit=function(){this.nzDataSource&&this.optionsInit()},e.prototype.ngOnDestroy=function(){this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe()},e.prototype.setVisibility=function(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()},e.prototype.setActiveItem=function(e){var t=this.options.toArray()[e];t&&!t.active&&(this.activeItem=t,this.activeItemIndex=e,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles(),this.changeDetectorRef.markForCheck())},e.prototype.setNextItemActive=function(){this.setActiveItem(this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0)},e.prototype.setPreviousItemActive=function(){this.setActiveItem(this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1)},e.prototype.getOptionIndex=function(e){var t=this;return this.options.reduce((function(n,i,r){return-1===n?t.compareWith(e,i.nzValue)?r:-1:n}),-1)},e.prototype.getOption=function(e){var t=this;return this.options.find((function(n){return t.compareWith(e,n.nzValue)}))||null},e.prototype.updatePosition=function(e){this.dropDownPosition=e,this.changeDetectorRef.markForCheck()},e.prototype.optionsInit=function(){var e=this;this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe((function(t){!t.dirty&&e.isOpen&&setTimeout((function(){return e.setVisibility()})),e.subscribeOptionChanges()}))},e.prototype.clearSelectedOptions=function(e,t){void 0===t&&(t=!1),this.options.forEach((function(n){n!==e&&(t&&n.deselect(),n.setInactiveStyles())}))},e.prototype.subscribeOptionChanges=function(){var e=this;this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe(Object(Pt.a)((function(e){return e.isUserInput}))).subscribe((function(t){t.source.select(),t.source.setActiveStyles(),e.activeItem=t.source,e.activeItemIndex=e.getOptionIndex(e.activeItem.nzValue),e.clearSelectedOptions(t.source,!0),e.selectionChange.emit(t.source)})),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe((function(t){t.setActiveStyles(),e.activeItem=t,e.activeItemIndex=e.getOptionIndex(e.activeItem.nzValue),e.clearSelectedOptions(t)}))},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDefaultActiveFirstOption",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzBackfill",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.z),i.Tb(ac.a,9))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-autocomplete"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,Jc,!0),2&e&&i.zc(r=i.ic())&&(t.fromContentOptions=r)},viewQuery:function(e,t){var n;1&e&&(i.Sc(i.M,!0),i.Sc(Uc,!0),i.Sc(Hc,!0),i.Sc(Jc,!0)),2&e&&(i.zc(n=i.ic())&&(t.template=n.first),i.zc(n=i.ic())&&(t.panel=n.first),i.zc(n=i.ic())&&(t.content=n.first),i.zc(n=i.ic())&&(t.fromDataSourceOptions=n))},inputs:{nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzWidth:"nzWidth",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:Yc,decls:1,vars:0,consts:[[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"ngClass","ngStyle","nzNoAnimation"],["panel",""],[2,"max-height","256px","overflow-y","auto","overflow-anchor","none"],[2,"display","flex","flex-direction","column"],[4,"ngTemplateOutlet"],["contentTemplate",""],["optionsTemplate",""],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(e,t){1&e&&(i.rc(),i.Lc(0,Qc,9,8,"ng-template"))},directives:[Vr.q,Vr.w,ac.a,Vr.A,Vr.s,Jc],encapsulation:2,data:{animation:[xs.g]},changeDetection:0}),e}(),tu={provide:Ot.m,useExisting:Object(i.V)((function(){return nu})),multi:!0},nu=function(){function e(e,t,n,i,r,o){this.elementRef=e,this.overlay=t,this.viewContainerRef=n,this.ngZone=i,this.nzInputGroupWhitSuffixOrPrefixDirective=r,this.document=o,this.onChange=function(){},this.onTouched=function(){},this.panelOpen=!1,this.destroy$=new kt.a,this.overlayRef=null,this.portal=null,this.previousValue=null}return Object.defineProperty(e.prototype,"activeOption",{get:function(){if(this.nzAutocomplete&&this.nzAutocomplete.options.length)return this.nzAutocomplete.activeItem},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.destroyPanel()},e.prototype.writeValue=function(e){var t=this;Promise.resolve(null).then((function(){return t.setTriggerValue(e)}))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.elementRef.nativeElement.disabled=e,this.closePanel()},e.prototype.openPanel=function(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()},e.prototype.closePanel=function(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.selectionChangeSubscription.unsubscribe(),this.overlayBackdropClickSubscription.unsubscribe(),this.overlayPositionChangeSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.overlayRef.dispose(),this.overlayRef=null,this.portal=null))},e.prototype.handleKeydown=function(e){var t=e.keyCode,n=t===Zr.k||t===Zr.c;t===Zr.e&&e.preventDefault(),!this.panelOpen||t!==Zr.e&&t!==Zr.j?this.panelOpen&&t===Zr.d?this.nzAutocomplete.showPanel&&this.activeOption&&(e.preventDefault(),this.activeOption.selectViaInteraction()):this.panelOpen&&n&&this.nzAutocomplete.showPanel&&(e.stopPropagation(),e.preventDefault(),t===Zr.k?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())},e.prototype.handleInput=function(e){var t=e.target,n=this.document,i=t.value;"number"===t.type&&(i=""===i?null:parseFloat(i)),this.previousValue!==i&&(this.previousValue=i,this.onChange(i),this.canOpen()&&n.activeElement===e.target&&this.openPanel())},e.prototype.handleFocus=function(){this.canOpen()&&this.openPanel()},e.prototype.handleBlur=function(){this.onTouched()},e.prototype.subscribeOptionsChange=function(){var e=this,t=this.ngZone.onStable.asObservable().pipe(Object(en.a)(1)),n=this.nzAutocomplete.options.changes.pipe(Object($r.a)((function(){return e.positionStrategy.reapplyLastPosition()})),Ic(0));return Object(Tt.a)(t,n).subscribe((function(){e.resetActiveItem(),e.panelOpen&&e.overlayRef.updatePosition()}))},e.prototype.subscribeSelectionChange=function(){var e=this;return this.nzAutocomplete.selectionChange.subscribe((function(t){e.setValueAndClose(t)}))},e.prototype.subscribeOverlayBackdropClick=function(){var e=this;return Object(Tt.a)(Object(Cs.a)(this.document,"click"),Object(Cs.a)(this.document,"touchend")).subscribe((function(t){var n=t.target;n!==e.elementRef.nativeElement&&!e.overlayRef.overlayElement.contains(n)&&e.panelOpen&&e.closePanel()}))},e.prototype.subscribeOverlayPositionChange=function(){var e=this;return this.positionStrategy.positionChanges.pipe(Object(Mt.a)((function(e){return e.connectionPair.originY})),(function(e){return e.lift(new Pc(void 0,void 0))}),Ic(0)).subscribe((function(t){e.nzAutocomplete.updatePosition(t)}))},e.prototype.attachOverlay=function(){var e=this;if(!this.nzAutocomplete)throw Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");!this.portal&&this.nzAutocomplete.template&&(this.portal=new Wr.g(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayPositionChangeSubscription=this.subscribeOverlayPositionChange(),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.overlayBackdropClickSubscription=this.subscribeOverlayBackdropClick(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayRef.detachments().pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.closePanel()}))),this.nzAutocomplete.isOpen=this.panelOpen=!0},e.prototype.updateStatus=function(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()},e.prototype.destroyPanel=function(){this.overlayRef&&this.closePanel()},e.prototype.getOverlayConfig=function(){return new Ur.f({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})},e.prototype.getConnectedElement=function(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef},e.prototype.getHostWidth=function(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width},e.prototype.getOverlayPosition=function(){var e=[new Ur.c({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new Ur.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(e),this.positionStrategy},e.prototype.resetActiveItem=function(){var e=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==e?(this.nzAutocomplete.setActiveItem(e),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)},e.prototype.setValueAndClose=function(e){var t=e.nzValue;this.setTriggerValue(e.getLabel()),this.onChange(t),this.elementRef.nativeElement.focus(),this.closePanel()},e.prototype.setTriggerValue=function(e){var t=this.nzAutocomplete.getOption(e),n=t?t.getLabel():e;this.elementRef.nativeElement.value=null!=n?n:"",this.nzAutocomplete.nzBackfill||(this.previousValue=n)},e.prototype.doBackfill=function(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())},e.prototype.canOpen=function(){var e=this.elementRef.nativeElement;return!e.readOnly&&!e.disabled},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(Ur.e),i.Tb(i.Q),i.Tb(i.z),i.Tb(_c,8),i.Tb(Vr.e,8))},e.\u0275dir=i.Ob({type:e,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(e,t){1&e&&i.hc("focusin",(function(){return t.handleFocus()}))("blur",(function(){return t.handleBlur()}))("input",(function(e){return t.handleInput(e)}))("keydown",(function(e){return t.handleKeydown(e)}))},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[i.Cb([tu])]}),e}(),iu=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ur.i,Ot.j,Es.a,ac.b,Ec]]}),e}(),ru=["textEl"];function ou(e,t){if(1&e&&i.Ub(0,"i",3),2&e){var n=i.kc();i.sc("nzType",n.nzIcon)}}function au(e,t){if(1&e){var n=i.ac();i.Zb(0,"img",4),i.hc("error",(function(e){return i.Dc(n),i.kc().imgError(e)})),i.Yb()}if(2&e){var r=i.kc();i.sc("src",r.nzSrc,i.Fc),i.Eb("srcset",r.nzSrcSet,i.Fc)("alt",r.nzAlt)}}function su(e,t){if(1&e&&(i.Zb(0,"span",5,6),i.Nc(2),i.Yb()),2&e){var n=i.kc();i.sc("ngStyle",n.textStyles),i.Db(2),i.Oc(n.nzText)}}var cu=function(){function e(e,t,n,r){this.nzConfigService=e,this.elementRef=t,this.cdr=n,this.platform=r,this.nzShape="circle",this.nzSize="default",this.nzError=new i.n,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}return e.prototype.imgError=function(e){this.nzError.emit(e),e.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())},e.prototype.ngOnChanges=function(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()},e.prototype.calcStringSize=function(){if(this.hasText){var e=this.textEl.nativeElement.offsetWidth,t=this.el.getBoundingClientRect().width;this.textStyles={transform:"scale("+(t-8this.nzVisibilityHeight&&(this.visible=!this.visible,this.cd.detectChanges())},e.prototype.registerScrollEvent=function(){var e=this;this.platform.isBrowser&&(this.scrollListenerDestroy$.next(),this.handleScroll(),this.zone.runOutsideAngular((function(){Object(Cs.a)(e.getTarget(),"scroll").pipe(Object(Ws.a)(50),Object(ss.a)(e.scrollListenerDestroy$)).subscribe((function(){return e.handleScroll()}))})))},e.prototype.ngOnDestroy=function(){this.scrollListenerDestroy$.next(),this.scrollListenerDestroy$.complete()},e.prototype.ngOnChanges=function(e){e.nzTarget&&(this.target="string"==typeof this.nzTarget?this.doc.querySelector(this.nzTarget):this.nzTarget,this.registerScrollEvent())},Object(zt.b)([Object(Qa.b)("backTop"),Object(es.b)(),Object(zt.d)("design:type",Number)],e.prototype,"nzVisibilityHeight",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Vr.e),i.Tb(Qa.a),i.Tb(bs),i.Tb(Xr.a),i.Tb(i.h),i.Tb(i.z))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-back-top"]],inputs:{nzVisibilityHeight:"nzVisibilityHeight",nzTemplate:"nzTemplate",nzTarget:"nzTarget"},outputs:{nzClick:"nzClick"},exportAs:["nzBackTop"],features:[i.Bb],decls:1,vars:1,consts:[["class","ant-back-top",3,"click",4,"ngIf"],[1,"ant-back-top",3,"click"],["defaultContent",""],[3,"ngTemplateOutlet"],[1,"ant-back-top-content"],[1,"ant-back-top-icon"]],template:function(e,t){1&e&&i.Lc(0,hu,4,2,"div",0),2&e&&i.sc("ngIf",t.visible)},directives:[Vr.t,Vr.A],encapsulation:2,data:{animation:[xs.b]},changeDetection:0}),e}(),fu=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},providers:[ms],imports:[[Vr.c,Xr.b]]}),e}(),gu=["contentElement"];function bu(e,t){if(1&e&&i.Ub(0,"span",4),2&e){var n=i.kc();i.Gb("ant-badge-status-dot ant-badge-status-",n.nzStatus||n.presetColor,""),i.Kc("background",!n.presetColor&&n.nzColor,i.Mb),i.sc("ngStyle",n.nzStyle)}}function mu(e,t){if(1&e&&(i.Zb(0,"span",5),i.Nc(1),i.Yb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzText)}}function vu(e,t){if(1&e&&(i.Zb(0,"p",13),i.Nc(1),i.Yb()),2&e){var n=t.$implicit,r=i.kc(3).index,o=i.kc(3);i.Jb("current",n===o.countArray[r]),i.Db(1),i.Pc(" ",n," ")}}function yu(e,t){if(1&e&&(i.Xb(0),i.Lc(1,vu,2,3,"p",12),i.Wb()),2&e){var n=i.kc(5);i.Db(1),i.sc("ngForOf",n.countSingleArray)}}function wu(e,t){if(1&e&&(i.Zb(0,"span",11),i.Lc(1,yu,2,1,"ng-container",9),i.Yb()),2&e){var n=i.kc().index,r=i.kc(3);i.Kc("transform","translateY("+100*(0-r.countArray[n])+"%)"),i.Db(1),i.sc("ngIf",!r.nzDot&&void 0!==r.countArray[n])}}function Ou(e,t){if(1&e&&(i.Xb(0),i.Lc(1,wu,2,3,"span",10),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.sc("ngIf",n.count<=n.nzOverflowCount)}}function Cu(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Pc("",n.nzOverflowCount,"+")}}function Su(e,t){if(1&e&&(i.Zb(0,"sup",7),i.Lc(1,Ou,2,1,"ng-container",8),i.Lc(2,Cu,2,1,"ng-container",9),i.Yb()),2&e){var n=i.kc(2);i.Kc("right",n.nzOffset&&n.nzOffset[0]?0-n.nzOffset[0]:null,"px")("margin-top",n.nzOffset&&n.nzOffset[1]?n.nzOffset[1]:null,"px"),i.Jb("ant-badge-count",!n.nzDot)("ant-badge-dot",n.nzDot)("ant-badge-multiple-words",n.countArray.length>=2),i.sc("@.disabled",n.notWrapper)("@zoomBadgeMotion",void 0)("ngStyle",n.nzStyle),i.Eb("title",null===n.nzTitle?"":n.nzTitle||n.nzCount),i.Db(1),i.sc("ngForOf",n.maxNumberArray),i.Db(1),i.sc("ngIf",n.count>n.nzOverflowCount)}}function zu(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Su,3,16,"sup",6),i.Wb()),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",n.showSup&&n.viewInit)}}var Tu=["*"],_u=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],ku=function(){function e(e,t,n,i,r,o){this.nzConfigService=e,this.renderer=t,this.elementRef=n,this.contentObserver=i,this.cdr=r,this.ngZone=o,this.destroy$=new kt.a,this.notWrapper=!0,this.viewInit=!1,this.maxNumberArray=[],this.countArray=[],this.countSingleArray=[0,1,2,3,4,5,6,7,8,9],this.presetColor=null,this.count=0,this.nzShowZero=!1,this.nzShowDot=!0,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null}return e.prototype.checkContent=function(){var e;this.notWrapper=Object(es.m)(null===(e=this.contentElement)||void 0===e?void 0:e.nativeElement),this.notWrapper?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-not-a-wrapper"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-not-a-wrapper")},Object.defineProperty(e.prototype,"showSup",{get:function(){return this.nzShowDot&&this.nzDot||this.count>0||0===this.count&&this.nzShowZero},enumerable:!0,configurable:!0}),e.prototype.generateMaxNumberArray=function(){this.maxNumberArray=this.nzOverflowCount.toString().split("")},e.prototype.ngOnInit=function(){this.generateMaxNumberArray()},e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.onStable.pipe(Object(en.a)(1)).subscribe((function(){e.viewInit=!0,e.cdr.markForCheck()})),this.contentObserver.observe(this.contentElement).pipe(Object(Ka.a)(!0),Object(ss.a)(this.destroy$)).subscribe((function(){e.checkContent()}))},e.prototype.ngOnChanges=function(e){var t=e.nzOverflowCount,n=e.nzCount,r=e.nzColor;!n||n.currentValue instanceof i.M||(this.count=Math.max(0,n.currentValue),this.countArray=this.count.toString().split("").map((function(e){return+e}))),t&&this.generateMaxNumberArray(),r&&(this.presetColor=this.nzColor&&-1!==_u.indexOf(this.nzColor)?this.nzColor:null)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowZero",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowDot",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDot",void 0),Object(zt.b)([Object(Qa.b)("backTop"),Object(zt.d)("design:type",Number)],e.prototype,"nzOverflowCount",void 0),Object(zt.b)([Object(Qa.b)("backTop"),Object(zt.d)("design:type",String)],e.prototype,"nzColor",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.E),i.Tb(i.l),i.Tb(Jr),i.Tb(i.h),i.Tb(i.z))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-badge"]],viewQuery:function(e,t){var n;1&e&&i.Sc(gu,!0),2&e&&i.zc(n=i.ic())&&(t.contentElement=n.first)},hostAttrs:[1,"ant-badge"],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-badge-status",t.nzStatus)},inputs:{nzShowZero:"nzShowZero",nzShowDot:"nzShowDot",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset"},exportAs:["nzBadge"],features:[i.Bb],ngContentSelectors:Tu,decls:6,vars:3,consts:[["contentElement",""],[3,"class","background","ngStyle",4,"ngIf"],["class","ant-badge-status-text",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],["class","ant-scroll-number",3,"ngStyle","right","marginTop","ant-badge-count","ant-badge-dot","ant-badge-multiple-words",4,"ngIf"],[1,"ant-scroll-number",3,"ngStyle"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","ant-scroll-number-only",3,"transform",4,"ngIf"],[1,"ant-scroll-number-only"],["class","ant-scroll-number-only-unit",3,"current",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only-unit"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"span",null,0),i.qc(2),i.Yb(),i.Lc(3,bu,1,6,"span",1),i.Lc(4,mu,2,1,"span",2),i.Lc(5,zu,2,1,"ng-container",3)),2&e&&(i.Db(3),i.sc("ngIf",t.nzStatus||t.nzColor),i.Db(1),i.sc("ngIf",t.nzStatus||t.nzColor),i.Db(1),i.sc("nzStringTemplateOutlet",t.nzCount))},directives:[Vr.t,Es.b,Vr.w,Vr.s],encapsulation:2,data:{animation:[xs.i]},changeDetection:0}),e}(),Du=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,to,Es.a]]}),e}(),xu=n("P4PA"),Eu=n("DUip"),Nu=n("jqYt");function ju(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-breadcrumb-item"),i.Zb(1,"a",2),i.hc("click",(function(e){i.Dc(n);var r=t.$implicit;return i.kc(2).navigate(r.url,e)})),i.Nc(2),i.Yb(),i.Yb()}if(2&e){var r=t.$implicit;i.Db(1),i.Eb("href",r.url,i.Fc),i.Db(1),i.Oc(r.label)}}function Iu(e,t){if(1&e&&(i.Xb(0),i.Lc(1,ju,3,2,"nz-breadcrumb-item",1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.sc("ngForOf",n.breadcrumbs)}}var Au=["*"];function Mu(e,t){}function Lu(e,t){1&e&&i.Ub(0,"i",6)}function Pu(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"span",3),i.Lc(2,Mu,0,0,"ng-template",4),i.Lc(3,Lu,1,0,"i",5),i.Yb(),i.Wb()),2&e){var n=i.kc(),r=i.Ac(2);i.Db(1),i.sc("nzDropdownMenu",n.nzOverlay),i.Db(1),i.sc("ngTemplateOutlet",r),i.Db(1),i.sc("ngIf",!!n.nzOverlay)}}function Fu(e,t){1&e&&(i.Zb(0,"span",7),i.qc(1),i.Yb())}function Ru(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Pc(" ",n.nzBreadCrumbComponent.nzSeparator," ")}}function Vu(e,t){if(1&e&&(i.Zb(0,"span",8),i.Lc(1,Ru,2,1,"ng-container",9),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("nzStringTemplateOutlet",n.nzBreadCrumbComponent.nzSeparator)}}var Bu=function(){function e(e,t,n,i,r){this.injector=e,this.ngZone=t,this.cdr=n,this.nzAutoGenerate=!1,this.nzSeparator="/",this.nzRouteLabel="breadcrumb",this.breadcrumbs=[],this.destroy$=new kt.a,r.addClass(i.nativeElement,"ant-breadcrumb")}return e.prototype.ngOnInit=function(){this.nzAutoGenerate&&this.registerRouterChange()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.navigate=function(e,t){var n=this;t.preventDefault(),this.ngZone.run((function(){return n.injector.get(Eu.d).navigateByUrl(e).then()})).then()},e.prototype.registerRouterChange=function(){var e=this;try{var t=this.injector.get(Eu.d),n=this.injector.get(Eu.a);t.events.pipe(Object(Pt.a)((function(e){return e instanceof Eu.b})),Object(ss.a)(this.destroy$),Object(Ka.a)(!0)).subscribe((function(){e.breadcrumbs=e.getBreadcrumbs(n.root),e.cdr.markForCheck()}))}catch(i){throw new Error(Hs.a+" You should import RouterModule if you want to use 'NzAutoGenerate'.")}},e.prototype.getBreadcrumbs=function(e,t,n){var i,r;void 0===t&&(t=""),void 0===n&&(n=[]);var o=e.children;if(0===o.length)return n;try{for(var a=Object(zt.h)(o),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.outlet===Eu.c){var u=c.snapshot.url.map((function(e){return e.path})).filter((function(e){return e})).join("/"),l=t+"/"+u,p=c.snapshot.data[this.nzRouteLabel];return u&&p&&n.push({label:p,params:c.snapshot.params,url:l}),this.getBreadcrumbs(c,l,n)}}}catch(h){i={error:h}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAutoGenerate",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.r),i.Tb(i.z),i.Tb(i.h),i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-breadcrumb"]],inputs:{nzAutoGenerate:"nzAutoGenerate",nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel"},exportAs:["nzBreadcrumb"],ngContentSelectors:Au,decls:2,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"click"]],template:function(e,t){1&e&&(i.rc(),i.qc(0),i.Lc(1,Iu,2,1,"ng-container",0)),2&e&&(i.Db(1),i.sc("ngIf",t.nzAutoGenerate))},directives:function(){return[Vr.t,Vr.s,Yu]},encapsulation:2,changeDetection:0}),e}(),Yu=function(){function e(e){this.nzBreadCrumbComponent=e}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Bu))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],ngContentSelectors:Au,decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["noMenuTpl",""],["class","ant-breadcrumb-separator",4,"ngIf"],["nz-dropdown","",1,"ant-breadcrumb-overlay-link",3,"nzDropdownMenu"],[3,"ngTemplateOutlet"],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","down"],[1,"ant-breadcrumb-link"],[1,"ant-breadcrumb-separator"],[4,"nzStringTemplateOutlet"]],template:function(e,t){if(1&e&&(i.rc(),i.Lc(0,Pu,4,3,"ng-container",0),i.Lc(1,Fu,2,0,"ng-template",null,1,i.Mc),i.Lc(3,Vu,2,1,"span",2)),2&e){var n=i.Ac(2);i.sc("ngIf",!!t.nzOverlay)("ngIfElse",n),i.Db(3),i.sc("ngIf",t.nzBreadCrumbComponent.nzSeparator)}},directives:[Vr.t,xu.b,Vr.A,Ns.a,Es.b],encapsulation:2,changeDetection:0}),e}(),Uu=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-breadcrumb-separator"]],exportAs:["nzBreadcrumbSeparator"],ngContentSelectors:Au,decls:6,vars:0,consts:[[1,"ant-breadcrumb-separator"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Zb(1,"span",0),i.Nc(2,"\n "),i.qc(3),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "))},encapsulation:2}),e}(),Hu=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Es.a,Ur.i,Nu.f,xu.c,Ns.b]]}),e}(),Wu=n("AzBT"),qu=n("26FU");function Zu(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function $u(e){Zu(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Gu(e){Zu(1,arguments);var t=$u(e);return!isNaN(t)}var Qu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Xu(e){return function(t){var n=t||{},i=n.width?String(n.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}var Ku={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ju(e){return function(t,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,c=r.width?String(r.width):e.defaultWidth;i=e.values[c]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(t):t]}}function el(e){return function(t,n){var i=String(t),r=n||{},o=i.match(e.matchPattern);if(!o)return null;var a=o[0],s=i.match(e.parsePattern);if(!s)return null;var c=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:c=r.valueCallback?r.valueCallback(c):c,rest:i.slice(a.length)}}}function tl(e){return function(t,n){var i=String(t),r=n||{},o=r.width,a=i.match(o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth]);if(!a)return null;var s,c=a[0],u=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(u)?function(e,t){for(var n=0;n0?"in "+i:i+" ago":i},formatLong:{date:Xu({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Xu({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Xu({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:function(e,t,n,i){return Ku[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ju({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ju({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Ju({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ju({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ju({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:el({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:tl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:tl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:tl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:tl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:tl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function il(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function rl(e,t){Zu(2,arguments);var n=$u(e).getTime(),i=il(t);return new Date(n+i)}function ol(e,t){Zu(2,arguments);var n=il(t);return rl(e,-n)}function al(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function ul(e){Zu(1,arguments);var t=cl(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=sl(n);return i}function ll(e){Zu(1,arguments);var t=$u(e),n=sl(t).getTime()-ul(t).getTime();return Math.round(n/6048e5)+1}function pl(e,t){Zu(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.weekStartsOn,o=null==r?0:il(r),a=null==n.weekStartsOn?o:il(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=$u(e),c=s.getUTCDay(),u=(c=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(i+1,0,c),u.setUTCHours(0,0,0,0);var l=pl(u,t),p=new Date(0);p.setUTCFullYear(i,0,c),p.setUTCHours(0,0,0,0);var h=pl(p,t);return n.getTime()>=l.getTime()?i+1:n.getTime()>=h.getTime()?i:i-1}function dl(e,t){Zu(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.firstWeekContainsDate,o=null==r?1:il(r),a=null==n.firstWeekContainsDate?o:il(n.firstWeekContainsDate),s=hl(e,t),c=new Date(0);c.setUTCFullYear(s,0,a),c.setUTCHours(0,0,0,0);var u=pl(c,t);return u}function fl(e,t){Zu(1,arguments);var n=$u(e),i=pl(n,t).getTime()-dl(n,t).getTime();return Math.round(i/6048e5)+1}function gl(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+al(o,2)}function bl(e,t){return e%60==0?(e>0?"-":"+")+al(Math.abs(e)/60,2):ml(e,t)}function ml(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+al(Math.floor(r/60),2)+n+al(r%60,2)}var vl={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear();return n.ordinalNumber(i>0?i:1-i,{unit:"year"})}return function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return al("yy"===t?i%100:i,t.length)}(e,t)},Y:function(e,t,n,i){var r=hl(e,i),o=r>0?r:1-r;return"YY"===t?al(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):al(o,t.length)},R:function(e,t){return al(cl(e),t.length)},u:function(e,t){return al(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return al(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return al(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):al(n+1,2)}(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return al(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=fl(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):al(r,t.length)},I:function(e,t,n){var i=ll(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):al(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):function(e,t){return al(e.getUTCDate(),t.length)}(e,t)},D:function(e,t,n){var i=function(e){Zu(1,arguments);var t=$u(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),r=n-i;return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):al(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return al(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return al(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return al(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return function(e,t){return al(e.getUTCHours()%12||12,t.length)}(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):function(e,t){return al(e.getUTCHours(),t.length)}(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):al(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):al(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):function(e,t){return al(e.getUTCMinutes(),t.length)}(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):function(e,t){return al(e.getUTCSeconds(),t.length)}(e,t)},S:function(e,t){return function(e,t){var n=t.length,i=e.getUTCMilliseconds();return al(Math.floor(i*Math.pow(10,n-3)),t.length)}(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return bl(r);case"XXXX":case"XX":return ml(r);case"XXXXX":case"XXX":default:return ml(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return bl(r);case"xxxx":case"xx":return ml(r);case"xxxxx":case"xxx":default:return ml(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gl(r,":");case"OOOO":default:return"GMT"+ml(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gl(r,":");case"zzzz":default:return"GMT"+ml(r,":")}},t:function(e,t,n,i){return al(Math.floor((i._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,i){return al((i._originalDate||e).getTime(),t.length)}};function yl(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function wl(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var Ol={p:wl,P:function(e,t){var n,i=e.match(/(P+)(p+)?/),r=i[1],o=i[2];if(!o)return yl(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",yl(r,t)).replace("{{time}}",wl(o,t))}};function Cl(e){return e.getTime()%6e4}function Sl(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+(n>0?(6e4+Cl(t))%6e4:Cl(t))}var zl=["D","DD"],Tl=["YY","YYYY"];function _l(e){return-1!==zl.indexOf(e)}function kl(e){return-1!==Tl.indexOf(e)}function Dl(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var xl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,El=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nl=/^'([^]*?)'?$/,jl=/''/g,Il=/[a-zA-Z]/;function Al(e){return e.match(Nl)[1].replace(jl,"'")}function Ml(e,t){Zu(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.weekStartsOn,o=null==r?0:il(r),a=null==n.weekStartsOn?o:il(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=$u(e),c=s.getDay(),u=(c=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Fl(e){Zu(1,arguments);var t=Pl(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var i=Ll(n);return i}function Rl(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Vl(e,t,n){Zu(2,arguments);var i=n||{},r=i.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:il(o),s=null==i.weekStartsOn?a:il(i.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=$u(e),u=il(t),l=c.getUTCDay(),p=u%7,h=(p+7)%7,d=(h0,r=i?t:1-t;if(r<=50)n=e||100;else{var o=r+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return i?n:1-n}var vp=[31,28,31,30,31,30,31,31,30,31,30,31],yp=[31,29,31,30,31,30,31,31,30,31,30,31];function wp(e){return e%400==0||e%4==0&&e%100!=0}var Op={G:{priority:140,parse:function(e,t,n,i){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,i){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,i){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return fp(4,e,r);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:r});default:return fp(t.length,e,r)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,i){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=mp(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}return e.setUTCFullYear("era"in t&&1!==t.era?1-n.year:n.year,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,i){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return fp(4,e,r);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:r});default:return fp(t.length,e,r)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,i){var r=hl(e,i);if(n.isTwoDigitYear){var o=mp(n.year,r);return e.setUTCFullYear(o,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),pl(e,i)}return e.setUTCFullYear("era"in t&&1!==t.era?1-n.year:n.year,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),pl(e,i)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,i){return gp("R"===t?4:t.length,e)},set:function(e,t,n,i){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),sl(r)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,i){return gp("u"===t?4:t.length,e)},set:function(e,t,n,i){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,i){switch(t){case"Q":case"QQ":return fp(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,i){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,i){switch(t){case"q":case"qq":return fp(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,i){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,i){var r=function(e){return e-1};switch(t){case"M":return pp(Bl,e,r);case"MM":return fp(2,e,r);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:r});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,i){var r=function(e){return e-1};switch(t){case"L":return pp(Bl,e,r);case"LL":return fp(2,e,r);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:r});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,i){switch(t){case"w":return pp(Hl,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return fp(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,i){return pl(function(e,t,n){Zu(2,arguments);var i=$u(e),r=il(t),o=fl(i,n)-r;return i.setUTCDate(i.getUTCDate()-7*o),i}(e,n,i),i)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,i){switch(t){case"I":return pp(Hl,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return fp(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,i){return sl(function(e,t){Zu(2,arguments);var n=$u(e),i=il(t),r=ll(n)-i;return n.setUTCDate(n.getUTCDate()-7*r),n}(e,n,i),i)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,n,i){switch(t){case"d":return pp(Yl,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return fp(t.length,e)}},validate:function(e,t,n){var i=wp(e.getUTCFullYear()),r=e.getUTCMonth();return i?t>=1&&t<=yp[r]:t>=1&&t<=vp[r]},set:function(e,t,n,i){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,n,i){switch(t){case"D":case"DD":return pp(Ul,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return fp(t.length,e)}},validate:function(e,t,n){return wp(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,i){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,i){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return(e=Vl(e,n,i)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,i){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return fp(t.length,e,r);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:r});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return(e=Vl(e,n,i)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,i){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return fp(t.length,e,r);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:r});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,i){return(e=Vl(e,n,i)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,i){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return fp(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:r})||n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:r})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:r})||n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,i){return(e=function(e,t){Zu(2,arguments);var n=il(t);n%7==0&&(n-=7);var i=1,r=$u(e),o=r.getUTCDay(),a=n%7,s=(a+7)%7,c=(s=1&&t<=12},set:function(e,t,n,i){var r=e.getUTCHours()>=12;return e.setUTCHours(r&&n<12?n+12:r||12!==n?n:0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,i){switch(t){case"H":return pp(Wl,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return fp(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,i){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,i){switch(t){case"K":return pp(Zl,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return fp(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,i){var r=e.getUTCHours()>=12;return e.setUTCHours(r&&n<12?n+12:n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,i){switch(t){case"k":return pp(ql,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return fp(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,i){return e.setUTCHours(n<=24?n%24:n,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,i){switch(t){case"m":return pp(Gl,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return fp(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,i){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,i){switch(t){case"s":return pp(Ql,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return fp(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,i){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,i){return fp(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,i){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,i){switch(t){case"X":return hp(ap,e);case"XX":return hp(sp,e);case"XXXX":return hp(cp,e);case"XXXXX":return hp(lp,e);case"XXX":default:return hp(up,e)}},set:function(e,t,n,i){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,i){switch(t){case"x":return hp(ap,e);case"xx":return hp(sp,e);case"xxxx":return hp(cp,e);case"xxxxx":return hp(lp,e);case"xxx":default:return hp(up,e)}},set:function(e,t,n,i){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,i){return dp(e)},set:function(e,t,n,i){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,i){return dp(e)},set:function(e,t,n,i){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Cp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zp=/^'([^]*?)'?$/,Tp=/''/g,_p=/\S/,kp=/[a-zA-Z]/;function Dp(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function xp(e){return e.match(zp)[1].replace(Tp,"'")}var Ep={today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},Np={placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4"},jp={lang:Object(zt.a)({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"]},Ep),timePickerLocale:Object(zt.a)({},Np)};jp.lang.ok="\u786e \u5b9a";var Ip={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:jp,TimePicker:Np,Calendar:Ep,global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}},Ap=new i.q("nz-i18n"),Mp=new i.q("nz-date-locale"),Lp=function(){function e(e,t){this._change=new qu.a(this._locale),this.setLocale(e||Ip),this.setDateLocale(t||null)}return Object.defineProperty(e.prototype,"localeChange",{get:function(){return this._change.asObservable()},enumerable:!0,configurable:!0}),e.prototype.translate=function(e,t){var n=this._getObjectPath(this._locale,e);return"string"==typeof n?(t&&Object.keys(t).forEach((function(e){return n=n.replace(new RegExp("%"+e+"%","g"),t[e])})),n):e},e.prototype.setLocale=function(e){this._locale&&this._locale.locale===e.locale||(this._locale=e,this._change.next(e))},e.prototype.getLocale=function(){return this._locale},e.prototype.getLocaleId=function(){return this._locale?this._locale.locale:""},e.prototype.setDateLocale=function(e){this.dateLocale=e},e.prototype.getDateLocale=function(){return this.dateLocale},e.prototype.getLocaleData=function(e,t){var n=e?this._getObjectPath(this._locale,e):this._locale;return n||t||Object(Hs.b)('Missing translations for "'+e+'" in language "'+this._locale.locale+'".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md'),n||t||{}},e.prototype._getObjectPath=function(e,t){for(var n=e,i=t.split("."),r=i.length,o=0;n&&o=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,l=null==u?0:il(u),p=null==r.weekStartsOn?l:il(r.weekStartsOn);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=$u(e);if(!Gu(h))throw new RangeError("Invalid time value");var d=Sl(h),f=ol(h,d),g={firstWeekContainsDate:c,weekStartsOn:p,locale:o,_originalDate:h},b=i.match(El).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ol[t])(e,o.formatLong,g):e})).join("").match(xl).map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return Al(e);var n=vl[t];if(n)return!r.useAdditionalWeekYearTokens&&kl(e)&&Dl(e),!r.useAdditionalDayOfYearTokens&&_l(e)&&Dl(e),n(f,e,o.localize,g);if(t.match(Il))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("");return b}(e,n,{locale:this.i18n.getDateLocale()}):""},t.prototype.parseDate=function(e,t){return function(e,t,n,i){Zu(3,arguments);var r=String(e),o=String(t),a=i||{},s=a.locale||nl;if(!s.match)throw new RangeError("locale must contain match property");var c=s.options&&s.options.firstWeekContainsDate,u=null==c?1:il(c),l=null==a.firstWeekContainsDate?u:il(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=s.options&&s.options.weekStartsOn,h=null==p?0:il(p),d=null==a.weekStartsOn?h:il(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===r?$u(n):new Date(NaN);var f,g={firstWeekContainsDate:l,weekStartsOn:d,locale:s},b=[{priority:10,set:Dp,index:0}],m=o.match(Sp).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ol[t])(e,s.formatLong,g):e})).join("").match(Cp),v=[];for(f=0;f0&&_p.test(r))return new Date(NaN);var k=b.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return b.filter((function(t){return t.priority===e})).reverse()})).map((function(e){return e[0]})),D=$u(n);if(isNaN(D))return new Date(NaN);var x=ol(D,Sl(D)),E={};for(f=0;f-1?1:0}return this.config.firstDayOfWeek},t.prototype.format=function(e,t){return e?Object(Vr.J)(e,t,this.i18n.getLocaleId()):""},t.prototype.parseDate=function(e){return new Date(e)},t.prototype.parseTime=function(e){if(e)return new Date(Date.parse("1970-01-01 "+e))},t.\u0275prov=Object(i.Pb)({factory:function(){return Wp(Object(i.dc)(i.o),Object(i.dc)(Rp,8),Object(i.dc)(Bp,8))},token:t,providedIn:"root"}),t}(qp),Gp=(Object(zt.a)({placeholder:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u062a\u0627\u0631\u064a\u062e",rangePlaceholder:["\u0627\u0644\u0628\u062f\u0627\u064a\u0629","\u0627\u0644\u0646\u0647\u0627\u064a\u0629"]},{today:"\u0627\u0644\u064a\u0648\u0645",now:"\u0627\u0644\u0623\u0646",backToToday:"\u0627\u0644\u0639\u0648\u062f\u0629 \u0625\u0644\u0649 \u0627\u0644\u064a\u0648\u0645",ok:"\u062a\u0623\u0643\u064a\u062f",clear:"\u0645\u0633\u062d",month:"\u0627\u0644\u0634\u0647\u0631",year:"\u0627\u0644\u0633\u0646\u0629",timeSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0648\u0642\u062a",dateSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u062a\u0627\u0631\u064a\u062e",monthSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0634\u0647\u0631",yearSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0633\u0646\u0629",decadeSelect:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0639\u0642\u062f",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u0633\u0627\u0628\u0642 (PageUp)",nextMonth:"\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u062a\u0627\u0644\u0649(PageDown)",previousYear:"\u0627\u0644\u0639\u0627\u0645 \u0627\u0644\u0633\u0627\u0628\u0642 (Control + left)",nextYear:"\u0627\u0644\u0639\u0627\u0645 \u0627\u0644\u062a\u0627\u0644\u0649 (Control + right)",previousDecade:"\u0627\u0644\u0639\u0642\u062f \u0627\u0644\u0633\u0627\u0628\u0642",nextDecade:"\u0627\u0644\u0639\u0642\u062f \u0627\u0644\u062a\u0627\u0644\u0649",previousCentury:"\u0627\u0644\u0642\u0631\u0646 \u0627\u0644\u0633\u0627\u0628\u0642",nextCentury:"\u0627\u0644\u0642\u0631\u0646 \u0627\u0644\u062a\u0627\u0644\u0649"}),Object(zt.a)({},{placeholder:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0648\u0642\u062a"}),{today:"\u0414\u043d\u0435\u0441",now:"\u0421\u0435\u0433\u0430",backToToday:"\u041a\u044a\u043c \u0434\u043d\u0435\u0441",ok:"\u0414\u043e\u0431\u0440\u0435",clear:"\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043d\u0435",month:"\u041c\u0435\u0441\u0435\u0446",year:"\u0413\u043e\u0434\u0438\u043d\u0430",timeSelect:"\u0418\u0437\u0431\u043e\u0440 \u043d\u0430 \u0447\u0430\u0441",dateSelect:"\u0418\u0437\u0431\u043e\u0440 \u043d\u0430 \u0434\u0430\u0442\u0430",monthSelect:"\u0418\u0437\u0431\u043e\u0440 \u043d\u0430 \u043c\u0435\u0441\u0435\u0446",yearSelect:"\u0418\u0437\u0431\u043e\u0440 \u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",decadeSelect:"\u0414\u0435\u0441\u0435\u0442\u0438\u043b\u0435\u0442\u0438\u0435",yearFormat:"YYYY",dateFormat:"D M YYYY",dayFormat:"D",dateTimeFormat:"D M YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u041f\u0440\u0435\u0434\u0438\u0448\u0435\u043d \u043c\u0435\u0441\u0435\u0446 (PageUp)",nextMonth:"\u0421\u043b\u0435\u0434\u0432\u0430\u0449 \u043c\u0435\u0441\u0435\u0446 (PageDown)",previousYear:"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430 (Control + left)",nextYear:"\u0421\u043b\u0435\u0434\u0432\u0430\u0449\u0430 \u0433\u043e\u0434\u0438\u043d\u0430 (Control + right)",previousDecade:"\u041f\u0440\u0435\u0434\u0438\u0448\u043d\u043e \u0434\u0435\u0441\u0435\u0442\u0438\u043b\u0435\u0442\u0438\u0435",nextDecade:"\u0421\u043b\u0435\u0434\u0432\u0430\u0449\u043e \u0434\u0435\u0441\u0435\u0442\u0438\u043b\u0435\u0442\u0438\u0435",previousCentury:"\u041f\u043e\u0441\u043b\u0435\u0434\u0435\u043d \u0432\u0435\u043a",nextCentury:"\u0421\u043b\u0435\u0434\u0432\u0430\u0449 \u0432\u0435\u043a"}),Qp=(Object(zt.a)({placeholder:"\u0418\u0437\u0431\u043e\u0440 \u043d\u0430 \u0434\u0430\u0442\u0430",rangePlaceholder:["\u041d\u0430\u0447\u0430\u043b\u043d\u0430","\u041a\u0440\u0430\u0439\u043d\u0430"]},Gp),Object(zt.a)({},{placeholder:"\u0418\u0437\u0431\u043e\u0440 \u043d\u0430 \u0447\u0430\u0441"}),{today:"Avui",now:"Ara",backToToday:"Tornar a avui",ok:"Acceptar",clear:"Netejar",month:"Mes",year:"Any",timeSelect:"Seleccionar hora",dateSelect:"Seleccionar data",monthSelect:"Escollir un mes",yearSelect:"Escollir un any",decadeSelect:"Escollir una d\xe8cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mes anterior (PageUp)",nextMonth:"Mes seg\xfcent (PageDown)",previousYear:"Any anterior (Control + left)",nextYear:"Mes seg\xfcent (Control + right)",previousDecade:"D\xe8cada anterior",nextDecade:"D\xe8cada seg\xfcent",previousCentury:"Segle anterior",nextCentury:"Segle seg\xfcent"}),Xp=(Object(zt.a)({placeholder:"Seleccionar data",rangePlaceholder:["Data inicial","Data final"]},Qp),Object(zt.a)({},{placeholder:"Seleccionar hora"}),{today:"Dnes",now:"Nyn\xed",backToToday:"Zp\u011bt na dne\u0161ek",ok:"Ok",clear:"Vymazat",month:"M\u011bs\xedc",year:"Rok",timeSelect:"Vybrat \u010das",dateSelect:"Vybrat datum",monthSelect:"Vyberte m\u011bs\xedc",yearSelect:"Vyberte rok",decadeSelect:"Vyberte dek\xe1du",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"P\u0159edchoz\xed m\u011bs\xedc (PageUp)",nextMonth:"N\xe1sleduj\xedc\xed (PageDown)",previousYear:"P\u0159edchoz\xed rok (Control + left)",nextYear:"N\xe1sleduj\xedc\xed rok (Control + right)",previousDecade:"P\u0159edchoz\xed dek\xe1da",nextDecade:"N\xe1sleduj\xedc\xed dek\xe1da",previousCentury:"P\u0159edchoz\xed stolet\xed",nextCentury:"N\xe1sleduj\xedc\xed stolet\xed"}),Kp=(Object(zt.a)({placeholder:"Vybrat datum",rangePlaceholder:["Od","Do"]},Xp),Object(zt.a)({},{placeholder:"Vybrat \u010das"}),{today:"I dag",now:"Nu",backToToday:"G\xe5 til i dag",ok:"Ok",clear:"Annuller",month:"M\xe5ned",year:"\xc5r",timeSelect:"V\xe6lg tidspunkt",dateSelect:"V\xe6lg dato",monthSelect:"V\xe6lg m\xe5ned",yearSelect:"V\xe6lg \xe5r",decadeSelect:"V\xe6lg \xe5rti",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Forrige m\xe5ned(PageUp)",nextMonth:"N\xe6ste m\xe5ned (PageDown)",previousYear:"Forrige \xe5r (Control + left)",nextYear:"N\xe6ste r (Control + right)",previousDecade:"Forrige \xe5rti",nextDecade:"N\xe6ste \xe5rti",previousCentury:"Forrige \xe5rhundrede",nextCentury:"N\xe6ste \xe5rhundrede"}),Jp=(Object(zt.a)({placeholder:"V\xe6lg dato",rangePlaceholder:["Startdato","Slutdato"]},Kp),Object(zt.a)({},{placeholder:"V\xe6lg tid"}),{today:"Heute",now:"Jetzt",backToToday:"Zur\xfcck zu Heute",ok:"OK",clear:"Zur\xfccksetzen",month:"Monat",year:"Jahr",timeSelect:"Zeit w\xe4hlen",dateSelect:"Datum w\xe4hlen",monthSelect:"W\xe4hle einen Monat",yearSelect:"W\xe4hle ein Jahr",decadeSelect:"W\xe4hle ein Jahrzehnt",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorheriger Monat (PageUp)",nextMonth:"N\xe4chster Monat (PageDown)",previousYear:"Vorheriges Jahr (Ctrl + left)",nextYear:"N\xe4chstes Jahr (Ctrl + right)",previousDecade:"Vorheriges Jahrzehnt",nextDecade:"N\xe4chstes Jahrzehnt",previousCentury:"Vorheriges Jahrhundert",nextCentury:"N\xe4chstes Jahrhundert"}),eh=(Object(zt.a)({placeholder:"Datum ausw\xe4hlen",rangePlaceholder:["Startdatum","Enddatum"]},Jp),Object(zt.a)({},{placeholder:"Zeit ausw\xe4hlen"}),{today:"\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1",now:"\u03a4\u03ce\u03c1\u03b1",backToToday:"\u03a0\u03af\u03c3\u03c9 \u03c3\u03c4\u03b7 \u03c3\u03b7\u03bc\u03b5\u03c1\u03b9\u03bd\u03ae \u03bc\u03ad\u03c1\u03b1",ok:"Ok",clear:"\u039a\u03b1\u03b8\u03b1\u03c1\u03b9\u03c3\u03bc\u03cc\u03c2",month:"\u039c\u03ae\u03bd\u03b1\u03c2",year:"\u0388\u03c4\u03bf\u03c2",timeSelect:"\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03ce\u03c1\u03b1\u03c2",dateSelect:"\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03b7\u03bc\u03b5\u03c1\u03bf\u03bc\u03b7\u03bd\u03af\u03b1\u03c2",monthSelect:"\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03bc\u03ae\u03bd\u03b1",yearSelect:"\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03ad\u03c4\u03bf\u03c5\u03c2",decadeSelect:"\u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03b4\u03b5\u03ba\u03b1\u03b5\u03c4\u03af\u03b1\u03c2",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2 (PageUp)",nextMonth:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2 (PageDown)",previousYear:"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf \u03ad\u03c4\u03bf\u03c2 (Control + \u03b1\u03c1\u03b9\u03c3\u03c4\u03b5\u03c1\u03ac)",nextYear:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf \u03ad\u03c4\u03bf\u03c2 (Control + \u03b4\u03b5\u03be\u03b9\u03ac)",previousDecade:"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7 \u03b4\u03b5\u03ba\u03b1\u03b5\u03c4\u03af\u03b1",nextDecade:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03b7 \u03b4\u03b5\u03ba\u03b1\u03b5\u03c4\u03af\u03b1",previousCentury:"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf\u03c2 \u03b1\u03b9\u03ce\u03bd\u03b1\u03c2",nextCentury:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf\u03c2 \u03b1\u03b9\u03ce\u03bd\u03b1\u03c2"}),th=(Object(zt.a)({placeholder:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03b7\u03bc\u03b5\u03c1\u03bf\u03bc\u03b7\u03bd\u03af\u03b1",rangePlaceholder:["\u0391\u03c1\u03c7\u03b9\u03ba\u03ae \u03b7\u03bc\u03b5\u03c1\u03bf\u03bc\u03b7\u03bd\u03af\u03b1","\u03a4\u03b5\u03bb\u03b9\u03ba\u03ae \u03b7\u03bc\u03b5\u03c1\u03bf\u03bc\u03b7\u03bd\u03af\u03b1"]},eh),Object(zt.a)({},{placeholder:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03ce\u03c1\u03b1"}),{today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"Select time",dateSelect:"Select date",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),nh=(Object(zt.a)({placeholder:"Select date",rangePlaceholder:["Start date","End date"]},th),Object(zt.a)({},{placeholder:"Select time"}),{today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),ih=(Object(zt.a)({placeholder:"Select date",rangePlaceholder:["Start date","End date"]},nh),Object(zt.a)({},{placeholder:"Select time"}),{today:"Hoy",now:"Ahora",backToToday:"Volver a hoy",ok:"Aceptar",clear:"Limpiar",month:"Mes",year:"A\xf1o",timeSelect:"Seleccionar hora",dateSelect:"Seleccionar fecha",monthSelect:"Elegir un mes",yearSelect:"Elegir un a\xf1o",decadeSelect:"Elegir una d\xe9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mes anterior (PageUp)",nextMonth:"Mes siguiente (PageDown)",previousYear:"A\xf1o anterior (Control + left)",nextYear:"A\xf1o siguiente (Control + right)",previousDecade:"D\xe9cada anterior",nextDecade:"D\xe9cada siguiente",previousCentury:"Siglo anterior",nextCentury:"Siglo siguiente"}),rh=(Object(zt.a)({placeholder:"Seleccionar fecha",rangePlaceholder:["Fecha inicial","Fecha final"]},ih),Object(zt.a)({},{placeholder:"Seleccionar hora"}),{today:"T\xe4na",now:"Praegu",backToToday:"Tagasi t\xe4nase juurde",ok:"Ok",clear:"T\xfchista",month:"Kuu",year:"Aasta",timeSelect:"Vali aeg",dateSelect:"Vali kuup\xe4ev",monthSelect:"Vali kuu",yearSelect:"Vali aasta",decadeSelect:"Vali dekaad",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Eelmine kuu (PageUp)",nextMonth:"J\xe4rgmine kuu (PageDown)",previousYear:"Eelmine aasta (Control + left)",nextYear:"J\xe4rgmine aasta (Control + right)",previousDecade:"Eelmine dekaad",nextDecade:"J\xe4rgmine dekaad",previousCentury:"Eelmine sajand",nextCentury:"J\xe4rgmine sajand"}),oh=(Object(zt.a)({placeholder:"Vali kuup\xe4ev",rangePlaceholder:["Algus kuup\xe4ev","L\xf5pu kuup\xe4ev"]},rh),Object(zt.a)({},{placeholder:"Vali aeg"}),{today:"\u0627\u0645\u0631\u0648\u0632",now:"\u0627\u06a9\u0646\u0648\u0646",backToToday:"\u0628\u0627\u0632\u06af\u0634\u062a \u0628\u0647 \u0631\u0648\u0632",ok:"\u0628\u0627\u0634\u0647",clear:"\u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646",month:"\u0645\u0627\u0647",year:"\u0633\u0627\u0644",timeSelect:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0632\u0645\u0627\u0646",dateSelect:"\u0627\u0646\u062a\u062e\u0627\u0628 \u062a\u0627\u0631\u06cc\u062e",monthSelect:"\u06cc\u06a9 \u0645\u0627\u0647 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",yearSelect:"\u06cc\u06a9 \u0633\u0627\u0644 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",decadeSelect:"\u06cc\u06a9 \u062f\u0647\u0647 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u0645\u0627\u0647 \u0642\u0628\u0644 (PageUp)",nextMonth:"\u0645\u0627\u0647 \u0628\u0639\u062f (PageDown)",previousYear:"\u0633\u0627\u0644 \u0642\u0628\u0644 (Control + left)",nextYear:"\u0633\u0627\u0644 \u0628\u0639\u062f (Control + right)",previousDecade:"\u062f\u0647\u0647 \u0642\u0628\u0644",nextDecade:"\u062f\u0647\u0647 \u0628\u0639\u062f",previousCentury:"\u0642\u0631\u0646 \u0642\u0628\u0644",nextCentury:"\u0642\u0631\u0646 \u0628\u0639\u062f"}),ah=(Object(zt.a)({placeholder:"\u0627\u0646\u062a\u062e\u0627\u0628 \u062a\u0627\u0631\u06cc\u062e",rangePlaceholder:["\u062a\u0627\u0631\u06cc\u062e \u0634\u0631\u0648\u0639","\u062a\u0627\u0631\u06cc\u062e \u067e\u0627\u06cc\u0627\u0646"]},oh),Object(zt.a)({},{placeholder:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0632\u0645\u0627\u0646"}),{today:"T\xe4n\xe4\xe4n",now:"Nyt",backToToday:"T\xe4m\xe4 p\xe4iv\xe4",ok:"Ok",clear:"Tyhjenn\xe4",month:"Kuukausi",year:"Vuosi",timeSelect:"Valise aika",dateSelect:"Valitse p\xe4iv\xe4",monthSelect:"Valitse kuukausi",yearSelect:"Valitse vuosi",decadeSelect:"Valitse vuosikymmen",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Edellinen kuukausi (PageUp)",nextMonth:"Seuraava kuukausi (PageDown)",previousYear:"Edellinen vuosi (Control + left)",nextYear:"Seuraava vuosi (Control + right)",previousDecade:"Edellinen vuosikymmen",nextDecade:"Seuraava vuosikymmen",previousCentury:"Edellinen vuosisata",nextCentury:"Seuraava vuosisata"}),sh=(Object(zt.a)({placeholder:"Valitse p\xe4iv\xe4",rangePlaceholder:["Alku p\xe4iv\xe4","Loppu p\xe4iv\xe4"]},ah),Object(zt.a)({},{placeholder:"Valitse aika"}),{today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"Ok",clear:"R\xe9tablir",month:"Mois",year:"Ann\xe9e",timeSelect:"S\xe9lectionner l'heure",dateSelect:"S\xe9lectionner l'heure",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une ann\xe9e",decadeSelect:"Choisissez une d\xe9cennie",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mois pr\xe9c\xe9dent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Ann\xe9e pr\xe9c\xe9dente (Ctrl + gauche)",nextYear:"Ann\xe9e prochaine (Ctrl + droite)",previousDecade:"D\xe9cennie pr\xe9c\xe9dente",nextDecade:"D\xe9cennie suivante",previousCentury:"Si\xe8cle pr\xe9c\xe9dent",nextCentury:"Si\xe8cle suivant"}),ch=(Object(zt.a)({placeholder:"S\xe9lectionner une date",rangePlaceholder:["Date de d\xe9but","Date de fin"]},sh),Object(zt.a)({},{placeholder:"S\xe9lectionner l'heure"}),{today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"Ok",clear:"R\xe9tablir",month:"Mois",year:"Ann\xe9e",timeSelect:"S\xe9lectionner l'heure",dateSelect:"S\xe9lectionner la date",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une ann\xe9e",decadeSelect:"Choisissez une d\xe9cennie",yearFormat:"YYYY",dateFormat:"DD/MM/YYYY",dayFormat:"DD",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mois pr\xe9c\xe9dent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Ann\xe9e pr\xe9c\xe9dente (Ctrl + gauche)",nextYear:"Ann\xe9e prochaine (Ctrl + droite)",previousDecade:"D\xe9cennie pr\xe9c\xe9dente",nextDecade:"D\xe9cennie suivante",previousCentury:"Si\xe8cle pr\xe9c\xe9dent",nextCentury:"Si\xe8cle suivant"}),uh=(Object(zt.a)({placeholder:"S\xe9lectionner une date",rangePlaceholder:["Date de d\xe9but","Date de fin"]},ch),Object(zt.a)({},{placeholder:"S\xe9lectionner l'heure"}),{today:"\u05d4\u05d9\u05d5\u05dd",now:"\u05e2\u05db\u05e9\u05d9\u05d5",backToToday:"\u05d7\u05d6\u05d5\u05e8 \u05dc\u05d4\u05d9\u05d5\u05dd",ok:"\u05d0\u05d9\u05e9\u05d5\u05e8",clear:"\u05d0\u05d9\u05e4\u05d5\u05e1",month:"\u05d7\u05d5\u05d3\u05e9",year:"\u05e9\u05e0\u05d4",timeSelect:"\u05d1\u05d7\u05e8 \u05e9\u05e2\u05d4",dateSelect:"\u05d1\u05d7\u05e8 \u05ea\u05d0\u05e8\u05d9\u05da",weekSelect:"\u05d1\u05d7\u05e8 \u05e9\u05d1\u05d5\u05e2",monthSelect:"\u05d1\u05d7\u05e8 \u05d7\u05d5\u05d3\u05e9",yearSelect:"\u05d1\u05d7\u05e8 \u05e9\u05e0\u05d4",decadeSelect:"\u05d1\u05d7\u05e8 \u05e2\u05e9\u05d5\u05e8",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u05d7\u05d5\u05d3\u05e9 \u05e7\u05d5\u05d3\u05dd (PageUp)",nextMonth:"\u05d7\u05d5\u05d3\u05e9 \u05d4\u05d1\u05d0 (PageDown)",previousYear:"\u05e9\u05e0\u05d4 \u05e9\u05e2\u05d1\u05e8\u05d4 (Control + left)",nextYear:"\u05e9\u05e0\u05d4 \u05d4\u05d1\u05d0\u05d4 (Control + right)",previousDecade:"\u05d4\u05e2\u05e9\u05d5\u05e8 \u05d4\u05e7\u05d5\u05d3\u05dd",nextDecade:"\u05d4\u05e2\u05e9\u05d5\u05e8 \u05d4\u05d1\u05d0",previousCentury:"\u05d4\u05de\u05d0\u05d4 \u05d4\u05e7\u05d5\u05d3\u05de\u05ea",nextCentury:"\u05d4\u05de\u05d0\u05d4 \u05d4\u05d1\u05d0\u05d4"}),lh=(Object(zt.a)({placeholder:"\u05d1\u05d7\u05e8 \u05ea\u05d0\u05e8\u05d9\u05da",rangePlaceholder:["\u05ea\u05d0\u05e8\u05d9\u05da \u05d4\u05ea\u05d7\u05dc\u05d4","\u05ea\u05d0\u05e8\u05d9\u05da \u05e1\u05d9\u05d5\u05dd"]},uh),Object(zt.a)({},{placeholder:"\u05d1\u05d7\u05e8 \u05e9\u05e2\u05d4"}),{today:"\u0906\u091c",now:"\u0905\u092d\u0940",backToToday:"\u0906\u091c \u0924\u0915",ok:"\u0920\u0940\u0915",clear:"\u0938\u094d\u092a\u0937\u094d\u091f",month:"\u092e\u0939\u0940\u0928\u093e",year:"\u0938\u093e\u0932",timeSelect:"\u0938\u092e\u092f \u0915\u093e \u091a\u092f\u0928 \u0915\u0930\u0947\u0902",dateSelect:"\u0924\u093e\u0930\u0940\u0916\u093c \u091a\u0941\u0928\u0947\u0902",weekSelect:"\u090f\u0915 \u0938\u092a\u094d\u0924\u093e\u0939 \u091a\u0941\u0928\u0947\u0902",monthSelect:"\u090f\u0915 \u092e\u0939\u0940\u0928\u093e \u091a\u0941\u0928\u0947\u0902",yearSelect:"\u090f\u0915 \u0935\u0930\u094d\u0937 \u091a\u0941\u0928\u0947\u0902",decadeSelect:"\u090f\u0915 \u0926\u0936\u0915 \u091a\u0941\u0928\u0947\u0902",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u092a\u093f\u091b\u0932\u093e \u092e\u0939\u0940\u0928\u093e (\u092a\u0947\u091c\u0905\u092a)",nextMonth:"\u0905\u0917\u0932\u0947 \u092e\u0939\u0940\u0928\u0947 (\u092a\u0947\u091c\u0921\u093e\u0909\u0928)",previousYear:"\u092a\u093f\u091b\u0932\u0947 \u0938\u093e\u0932 (Ctrl + \u092c\u093e\u090f\u0902)",nextYear:"\u0905\u0917\u0932\u0947 \u0938\u093e\u0932 (Ctrl + \u0926\u093e\u0939\u093f\u0928\u093e)",previousDecade:"\u092a\u093f\u091b\u0932\u093e \u0926\u0936\u0915",nextDecade:"\u0905\u0917\u0932\u0947 \u0926\u0936\u0915",previousCentury:"\u092a\u0940\u091b\u094d\u0932\u0940 \u0936\u0924\u093e\u092c\u094d\u0926\u0940",nextCentury:"\u0905\u0917\u0932\u0940 \u0938\u0926\u0940"}),ph=(Object(zt.a)({placeholder:"\u0924\u093e\u0930\u0940\u0916\u093c \u091a\u0941\u0928\u0947\u0902",rangePlaceholder:["\u092a\u094d\u0930\u093e\u0930\u0902\u092d \u0924\u093f\u0925\u093f","\u0938\u092e\u093e\u092a\u094d\u0924\u093f \u0924\u093f\u0925\u093f"]},lh),Object(zt.a)({},{placeholder:"\u0938\u092e\u092f \u0915\u093e \u091a\u092f\u0928 \u0915\u0930\u0947\u0902"}),{today:"Danas",now:"Sad",backToToday:"Natrag na danas",ok:"Ok",clear:"O\u010disti",month:"Mjesec",year:"Godina",timeSelect:"odaberite vrijeme",dateSelect:"odaberite datum",weekSelect:"Odaberite tjedan",monthSelect:"Odaberite mjesec",yearSelect:"Odaberite godinu",decadeSelect:"Odaberite desetlje\u0107e",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Pro\u0161li mjesec (PageUp)",nextMonth:"Sljede\u0107i mjesec (PageDown)",previousYear:"Pro\u0161la godina (Control + left)",nextYear:"Sljede\u0107a godina (Control + right)",previousDecade:"Pro\u0161lo desetlje\u0107e",nextDecade:"Sljede\u0107e desetlje\u0107e",previousCentury:"Pro\u0161lo stolje\u0107e",nextCentury:"Sljede\u0107e stolje\u0107e"}),hh=(Object(zt.a)({placeholder:"Odaberite datum",rangePlaceholder:["Po\u010detni datum","Zavr\u0161ni datum"]},ph),Object(zt.a)({},{placeholder:"Odaberite vrijeme"}),{today:"Ma",now:"Most",backToToday:"Vissza a mai napra",ok:"Ok",clear:"T\xf6rl\xe9s",month:"H\xf3nap",year:"\xc9v",timeSelect:"Id\u0151pont kiv\xe1laszt\xe1sa",dateSelect:"D\xe1tum kiv\xe1laszt\xe1sa",monthSelect:"H\xf3nap kiv\xe1laszt\xe1sa",yearSelect:"\xc9v kiv\xe1laszt\xe1sa",decadeSelect:"\xc9vtized kiv\xe1laszt\xe1sa",yearFormat:"YYYY",dateFormat:"YYYY/MM/DD",dayFormat:"DD",dateTimeFormat:"YYYY/MM/DD HH:mm:ss",monthBeforeYear:!0,previousMonth:"El\u0151z\u0151 h\xf3nap (PageUp)",nextMonth:"K\xf6vetkez\u0151 h\xf3nap (PageDown)",previousYear:"M\xfalt \xe9v (Control + left)",nextYear:"J\xf6v\u0151 \xe9v (Control + right)",previousDecade:"El\u0151z\u0151 \xe9vtized",nextDecade:"K\xf6vetkez\u0151 \xe9vtized",previousCentury:"M\xfalt \xe9vsz\xe1zad",nextCentury:"J\xf6v\u0151 \xe9vsz\xe1zad"}),dh=(Object(zt.a)({placeholder:"V\xe1lasszon d\xe1tumot",rangePlaceholder:["Kezd\u0151 d\xe1tum","Befejez\xe9s d\xe1tuma"]},hh),Object(zt.a)({},{placeholder:"V\xe1lasszon id\u0151t"}),{today:"Hari ini",now:"Sekarang",backToToday:"Kembali ke hari ini",ok:"Baik",clear:"Bersih",month:"Bulan",year:"Tahun",timeSelect:"pilih waktu",dateSelect:"pilih tanggal",weekSelect:"Pilih satu minggu",monthSelect:"Pilih satu bulan",yearSelect:"Pilih satu tahun",decadeSelect:"Pilih satu dekade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Bulan sebelumnya (PageUp)",nextMonth:"Bulan depan (PageDown)",previousYear:"Tahun lalu (Control + kiri)",nextYear:"Tahun depan (Kontrol + kanan)",previousDecade:"Dekade terakhir",nextDecade:"Dekade berikutnya",previousCentury:"Abad terakhir",nextCentury:"Abad berikutnya"}),fh=(Object(zt.a)({placeholder:"Pilih tanggal",rangePlaceholder:["Mulai tanggal","Tanggal akhir"]},dh),Object(zt.a)({},{placeholder:"Pilih waktu"}),{today:"\xcd dag",now:"N\xfana",backToToday:"Til baka til dagsins \xed dag",ok:"\xcd lagi",clear:"Hreinsa",month:"M\xe1nu\xf0ur",year:"\xc1r",timeSelect:"Velja t\xedma",dateSelect:"Velja dag",monthSelect:"Velja m\xe1nu\xf0",yearSelect:"Velja \xe1r",decadeSelect:"Velja \xe1ratug",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Fyrri m\xe1nu\xf0ur (PageUp)",nextMonth:"N\xe6sti m\xe1nu\xf0ur (PageDown)",previousYear:"Fyrra \xe1r (Control + left)",nextYear:"N\xe6sta \xe1r (Control + right)",previousDecade:"Fyrri \xe1ratugur",nextDecade:"N\xe6sti \xe1ratugur",previousCentury:"Fyrri \xf6ld",nextCentury:"N\xe6sta \xf6ld"}),gh=(Object(zt.a)({placeholder:"Veldu dag",rangePlaceholder:["Upphafsdagur","Lokadagur"]},fh),Object(zt.a)({},{placeholder:"Velja t\xedma"}),{today:"Oggi",now:"Adesso",backToToday:"Torna ad oggi",ok:"Ok",clear:"Cancella",month:"Mese",year:"Anno",timeSelect:"Seleziona l'ora",dateSelect:"Seleziona la data",monthSelect:"Seleziona il mese",yearSelect:"Seleziona l'anno",decadeSelect:"Seleziona il decennio",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Il mese scorso (PageUp)",nextMonth:"Il prossimo mese (PageDown)",previousYear:"L'anno scorso (Control + sinistra)",nextYear:"L'anno prossimo (Control + destra)",previousDecade:"Ultimo decennio",nextDecade:"Prossimo decennio",previousCentury:"Secolo precedente",nextCentury:"Prossimo secolo"}),bh=(Object(zt.a)({placeholder:"Selezionare la data",rangePlaceholder:["Data d'inizio","Data di fine"]},gh),Object(zt.a)({},{placeholder:"Selezionare l'orario"}),{today:"\u4eca\u65e5",now:"\u73fe\u5728\u6642\u523b",backToToday:"\u4eca\u65e5\u306b\u623b\u308b",ok:"\u6c7a\u5b9a",timeSelect:"\u6642\u9593\u3092\u9078\u629e",dateSelect:"\u65e5\u6642\u3092\u9078\u629e",clear:"\u30af\u30ea\u30a2",month:"\u6708",year:"\u5e74",previousMonth:"\u524d\u6708 (\u30da\u30fc\u30b8\u30a2\u30c3\u30d7\u30ad\u30fc)",nextMonth:"\u7fcc\u6708 (\u30da\u30fc\u30b8\u30c0\u30a6\u30f3\u30ad\u30fc)",monthSelect:"\u6708\u3092\u9078\u629e",yearSelect:"\u5e74\u3092\u9078\u629e",decadeSelect:"\u5e74\u4ee3\u3092\u9078\u629e",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u6642mm\u5206ss\u79d2",previousYear:"\u524d\u5e74 (Control\u3092\u62bc\u3057\u306a\u304c\u3089\u5de6\u30ad\u30fc)",nextYear:"\u7fcc\u5e74 (Control\u3092\u62bc\u3057\u306a\u304c\u3089\u53f3\u30ad\u30fc)",previousDecade:"\u524d\u306e\u5e74\u4ee3",nextDecade:"\u6b21\u306e\u5e74\u4ee3",previousCentury:"\u524d\u306e\u4e16\u7d00",nextCentury:"\u6b21\u306e\u4e16\u7d00"}),mh=(Object(zt.a)({placeholder:"\u65e5\u4ed8\u3092\u9078\u629e",rangePlaceholder:["\u958b\u59cb\u65e5\u4ed8","\u7d42\u4e86\u65e5\u4ed8"]},bh),Object(zt.a)({},{placeholder:"\u6642\u523b\u3092\u9078\u629e"}),{today:"\u10d3\u10e6\u10d4\u10e1",now:"\u10d0\u10ee\u10da\u10d0",backToToday:"\u10db\u10d8\u10db\u10d3\u10d8\u10dc\u10d0\u10e0\u10d4 \u10d7\u10d0\u10e0\u10d8\u10e6\u10d8",ok:"\u10d3\u10d8\u10d0\u10ee",clear:"\u10d2\u10d0\u10e1\u10e3\u10e4\u10d7\u10d0\u10d5\u10d4\u10d1\u10d0",month:"\u10d7\u10d5\u10d4",year:"\u10ec\u10d4\u10da\u10d8",timeSelect:"\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4\u10d7 \u10d3\u10e0\u10dd",dateSelect:"\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4\u10d7 \u10d7\u10d0\u10e0\u10d8\u10e6\u10d8",weekSelect:"\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4\u10d7 \u10d9\u10d5\u10d8\u10e0\u10d0",monthSelect:"\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4\u10d7 \u10d7\u10d5\u10d4",yearSelect:"\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4\u10d7 \u10ec\u10d4\u10da\u10d8",decadeSelect:"\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4 \u10d0\u10d7\u10ec\u10da\u10d4\u10e3\u10da\u10d8",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u10ec\u10d8\u10dc\u10d0 \u10d7\u10d5\u10d4 (PageUp)",nextMonth:"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2\u10d8 \u10d7\u10d5\u10d4 (PageDown)",previousYear:"\u10ec\u10d8\u10dc\u10d0 \u10ec\u10d4\u10da\u10d8 (Control + left)",nextYear:"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2\u10d8 \u10ec\u10d4\u10da\u10d8 (Control + right)",previousDecade:"\u10ec\u10d8\u10dc\u10d0 \u10d0\u10d7\u10ec\u10da\u10d4\u10e3\u10da\u10d8",nextDecade:"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2\u10d8 \u10d0\u10d7\u10ec\u10da\u10d4\u10e3\u10da\u10d8",previousCentury:"\u10ec\u10d8\u10dc\u10d0 \u10e1\u10d0\u10e3\u10d9\u10e3\u10dc\u10d4",nextCentury:"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2\u10d8 \u10e1\u10d0\u10e3\u10d9\u10e3\u10dc\u10d4"}),vh=(Object(zt.a)({placeholder:"\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4\u10d7 \u10d7\u10d0\u10e0\u10d8\u10e6\u10d8",rangePlaceholder:["\u10e1\u10d0\u10ec\u10e7\u10d8\u10e1\u10d8 \u10d7\u10d0\u10e0\u10d8\u10e6\u10d8","\u10d1\u10dd\u10da\u10dd \u10d7\u10d0\u10e0\u10d8\u10e6\u10d8"]},mh),Object(zt.a)({},{placeholder:"\u10d0\u10d8\u10e0\u10e9\u10d8\u10d4\u10d7 \u10d3\u10e0\u10dd"}),{today:"\u0c87\u0c82\u0ca6\u0cc1",now:"\u0c88\u0c97",backToToday:"\u0c87\u0c82\u0ca6\u0cc1 \u0cb9\u0cbf\u0c82\u0ca6\u0cbf\u0cb0\u0cc1\u0c97\u0cbf",ok:"\u0cb8\u0cb0\u0cbf",clear:"\u0cb8\u0ccd\u0caa\u0cb7\u0ccd\u0c9f",month:"\u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",year:"\u0cb5\u0cb0\u0ccd\u0cb7",timeSelect:"\u0cb8\u0cae\u0caf \u0c86\u0caf\u0ccd\u0c95\u0cc6\u0cae\u0cbe\u0ca1\u0cbf",dateSelect:"\u0ca6\u0cbf\u0ca8\u0cbe\u0c82\u0c95\u0cb5\u0ca8\u0ccd\u0ca8\u0cc1 \u0c86\u0caf\u0ccd\u0c95\u0cc6 \u0cae\u0cbe\u0ca1\u0cbf",weekSelect:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cbe\u0cb0\u0ca6 \u0c86\u0cb0\u0cbf\u0cb8\u0cbf",monthSelect:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1 \u0c86\u0caf\u0ccd\u0c95\u0cc6\u0cae\u0cbe\u0ca1\u0cbf",yearSelect:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7 \u0c86\u0cb0\u0cbf\u0cb8\u0cbf",decadeSelect:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cb6\u0c95\u0ca6 \u0c86\u0caf\u0ccd\u0c95\u0cc6\u0cae\u0cbe\u0ca1\u0cbf",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u0cb9\u0cbf\u0c82\u0ca6\u0cbf\u0ca8 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1 (\u0caa\u0cc7\u0c9c\u0ccd\u0c85\u0caa\u0ccd)",nextMonth:"\u0cae\u0cc1\u0c82\u0ca6\u0cbf\u0ca8 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1 (\u0caa\u0cc7\u0c9c\u0ccd\u0ca1\u0ccc\u0ca8\u0ccd)",previousYear:"\u0c95\u0cb3\u0cc6\u0ca6 \u0cb5\u0cb0\u0ccd\u0cb7 (Ctrl + \u0c8e\u0ca1)",nextYear:"\u0cae\u0cc1\u0c82\u0ca6\u0cbf\u0ca8 \u0cb5\u0cb0\u0ccd\u0cb7 (Ctrl + \u0cac\u0cb2)",previousDecade:"\u0c95\u0cb3\u0cc6\u0ca6 \u0ca6\u0cb6\u0c95",nextDecade:"\u0cae\u0cc1\u0c82\u0ca6\u0cbf\u0ca8 \u0ca6\u0cb6\u0c95",previousCentury:"\u0c95\u0cb3\u0cc6\u0ca6 \u0cb6\u0ca4\u0cae\u0cbe\u0ca8",nextCentury:"\u0cae\u0cc1\u0c82\u0ca6\u0cbf\u0ca8 \u0cb6\u0ca4\u0cae\u0cbe\u0ca8"}),yh=(Object(zt.a)({placeholder:"\u0ca6\u0cbf\u0ca8\u0cbe\u0c82\u0c95 \u0c86\u0caf\u0ccd\u0c95\u0cc6\u0cae\u0cbe\u0ca1\u0cbf",rangePlaceholder:["\u0caa\u0ccd\u0cb0\u0cbe\u0cb0\u0c82\u0cad \u0ca6\u0cbf\u0ca8\u0cbe\u0c82\u0c95","\u0c85\u0c82\u0ca4\u0cbf\u0cae \u0ca6\u0cbf\u0ca8\u0cbe\u0c82\u0c95"]},vh),Object(zt.a)({},{placeholder:"\u0cb8\u0cae\u0caf \u0c86\u0caf\u0ccd\u0c95\u0cc6\u0cae\u0cbe\u0ca1\u0cbf"}),{today:"\uc624\ub298",now:"\ud604\uc7ac \uc2dc\uac01",backToToday:"\uc624\ub298\ub85c \ub3cc\uc544\uac00\uae30",ok:"\ud655\uc778",clear:"\uc9c0\uc6b0\uae30",month:"\uc6d4",year:"\ub144",timeSelect:"\uc2dc\uac04 \uc120\ud0dd",dateSelect:"\ub0a0\uc9dc \uc120\ud0dd",monthSelect:"\ub2ec \uc120\ud0dd",yearSelect:"\uc5f0 \uc120\ud0dd",decadeSelect:"\uc5f0\ub300 \uc120\ud0dd",yearFormat:"YYYY\ub144",dateFormat:"YYYY-MM-DD",dayFormat:"Do",dateTimeFormat:"YYYY-MM-DD HH:mm:ss",monthBeforeYear:!1,previousMonth:"\uc774\uc804 \ub2ec (PageUp)",nextMonth:"\ub2e4\uc74c \ub2ec (PageDown)",previousYear:"\uc774\uc804 \ud574 (Control + left)",nextYear:"\ub2e4\uc74c \ud574 (Control + right)",previousDecade:"\uc774\uc804 \uc5f0\ub300",nextDecade:"\ub2e4\uc74c \uc5f0\ub300",previousCentury:"\uc774\uc804 \uc138\uae30",nextCentury:"\ub2e4\uc74c \uc138\uae30"}),wh=(Object(zt.a)({placeholder:"\ub0a0\uc9dc \uc120\ud0dd",rangePlaceholder:["\uc2dc\uc791\uc77c","\uc885\ub8cc\uc77c"]},yh),Object(zt.a)({},{placeholder:"\ub0a0\uc9dc \uc120\ud0dd"}),{today:"\xcero",now:"Niha",backToToday:"Vegere \xeero",ok:"Temam",clear:"Paqij bike",month:"Meh",year:"Sal",timeSelect:"Dem\xea hilbij\xeare",dateSelect:"D\xeerok hilbij\xeare",monthSelect:"Meh hilbij\xeare",yearSelect:"Sal hilbij\xeare",decadeSelect:"Dehsal hilbij\xeare",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Meha pe\u015f (PageUp))",nextMonth:"Meha pa\u015f (PageDown)",previousYear:"Sala pe\u015f (Control + \u015fep)",nextYear:"Sala pa\u015f (Control + rast)",previousDecade:"Dehsalen pe\u015f",nextDecade:"Dehsalen pa\u015f",previousCentury:"Sedsalen pe\u015f",nextCentury:"Sedsalen pa\u015f"}),Oh=(Object(zt.a)({placeholder:"D\xeerok hilbij\xeare",rangePlaceholder:["D\xeeroka destp\xeak\xea","D\xeeroka daw\xeen"]},wh),Object(zt.a)({},{placeholder:"Dem\xea hilbij\xeare"}),{today:"\u0160odien",now:"Tagad",backToToday:"Atpaka\u013c pie \u0161odienas",ok:"Ok",clear:"Skaidrs",month:"M\u0113nesis",year:"Gads",timeSelect:"Izv\u0113lieties laiku",dateSelect:"Izv\u0113lieties datumu",monthSelect:"Izv\u0113lieties m\u0113nesi",yearSelect:"Izv\u0113lieties gadu",decadeSelect:"Izv\u0113lieties desmit gadus",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Iepriek\u0161\u0113jais m\u0113nesis (PageUp)",nextMonth:"N\u0101kamm\u0113nes (PageDown)",previousYear:"Pag\u0101ju\u0161ais gads (Control + left)",nextYear:"N\u0101kamgad (Control + right)",previousDecade:"P\u0113d\u0113j\u0101 desmitgad\u0113",nextDecade:"N\u0101kam\u0101 desmitgade",previousCentury:"Pag\u0101ju\u0161aj\u0101 gadsimt\u0101",nextCentury:"N\u0101kamaj\u0101 gadsimt\u0101"}),Ch=(Object(zt.a)({placeholder:"Izv\u0113lieties datumu",rangePlaceholder:["S\u0101kuma datums","Beigu datums"]},Oh),Object(zt.a)({},{placeholder:"Izv\u0113lieties laiku"}),{today:"\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440",now:"\u041e\u0434\u043e\u043e",backToToday:"\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440\u043b\u04af\u04af \u0431\u0443\u0446\u0430\u0445",ok:"Ok",clear:"\u0426\u044d\u0432\u044d\u0440\u043b\u044d\u0445",month:"\u0421\u0430\u0440",year:"\u0416\u0438\u043b",timeSelect:"\u0426\u0430\u0433 \u0441\u043e\u043d\u0433\u043e\u0445",dateSelect:"\u041e\u0433\u043d\u043e\u043e \u0441\u043e\u043d\u0433\u043e\u0445",weekSelect:"7 \u0445\u043e\u043d\u043e\u0433 \u0441\u043e\u043d\u0433\u043e\u0445",monthSelect:"\u0421\u0430\u0440 \u0441\u043e\u043d\u0433\u043e\u0445",yearSelect:"\u0416\u0438\u043b \u0441\u043e\u043d\u0433\u043e\u0445",decadeSelect:"\u0410\u0440\u0432\u0430\u043d \u0441\u043e\u043d\u0433\u043e\u0445",yearFormat:"YYYY",dateFormat:"YYYY/MM/DD",dayFormat:"DD",dateTimeFormat:"YYYY/MM/DD HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u04e8\u043c\u043d\u04e9\u0445 \u0441\u0430\u0440 (PageUp)",nextMonth:"\u0414\u0430\u0440\u0430\u0430 \u0441\u0430\u0440 (PageDown)",previousYear:"\u04e8\u043c\u043d\u04e9\u0445 \u0436\u0438\u043b (Control + left)",nextYear:"\u0414\u0430\u0440\u0430\u0430 \u0436\u0438\u043b (Control + right)",previousDecade:"\u04e8\u043c\u043d\u04e9\u0445 \u0430\u0440\u0432\u0430\u043d",nextDecade:"\u0414\u0430\u0440\u0430\u0430 \u0430\u0440\u0432\u0430\u043d",previousCentury:"\u04e8\u043c\u043d\u04e9\u0445 \u0437\u0443\u0443\u043d",nextCentury:"\u0414\u0430\u0440\u0430\u0430 \u0437\u0443\u0443\u043d"}),Sh=(Object(zt.a)({placeholder:"\u041e\u0433\u043d\u043e\u043e \u0441\u043e\u043d\u0433\u043e\u0445",rangePlaceholder:["\u042d\u0445\u043b\u044d\u0445 \u043e\u0433\u043d\u043e\u043e","\u0414\u0443\u0443\u0441\u0430\u0445 \u043e\u0433\u043d\u043e\u043e"]},Ch),Object(zt.a)({},{placeholder:"\u0426\u0430\u0433 \u0441\u043e\u043d\u0433\u043e\u0445"}),{today:"Hari ini",now:"Sekarang",backToToday:"Kembali ke hari ini",ok:"Ok",timeSelect:"Pilih masa",dateSelect:"Pilih tarikh",weekSelect:"Pilih minggu",clear:"Padam",month:"Bulan",year:"Tahun",previousMonth:"Bulan lepas",nextMonth:"Bulan depan",monthSelect:"Pilih bulan",yearSelect:"Pilih tahun",decadeSelect:"Pilih dekad",yearFormat:"YYYY",dayFormat:"D",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousYear:"Tahun lepas (Ctrl+left)",nextYear:"Tahun depan (Ctrl+right)",previousDecade:"Dekad lepas",nextDecade:"Dekad depan",previousCentury:"Abad lepas",nextCentury:"Abad depan"}),zh=(Object(zt.a)({placeholder:"Pilih tarikh",rangePlaceholder:["Tarikh mula","Tarikh akhir"]},Sh),Object(zt.a)({},{placeholder:"Sila pilih masa"}),{today:"I dag",now:"N\xe5",backToToday:"G\xe5 til i dag",ok:"Ok",clear:"Annuller",month:"M\xe5ned",year:"\xc5r",timeSelect:"Velg tidspunkt",dateSelect:"Velg dato",monthSelect:"Velg m\xe5ned",yearSelect:"Velg \xe5r",decadeSelect:"Velg \xe5rti",yearFormat:"YYYY",dateFormat:"DD.MM.YYYY",dayFormat:"DD",dateTimeFormat:"DD.MM.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Forrige m\xe5ned(PageUp)",nextMonth:"Neste m\xe5ned (PageDown)",previousYear:"Forrige \xe5r (Control + left)",nextYear:"Neste \xe5r (Control + right)",previousDecade:"Forrige ti\xe5r",nextDecade:"Neste ti\xe5r",previousCentury:"Forrige \xe5rhundre",nextCentury:"Neste \xe5rhundre"}),Th=(Object(zt.a)({placeholder:"Velg dato",rangePlaceholder:["Startdato","Sluttdato"]},zh),Object(zt.a)({},{placeholder:"Velg tid"}),{today:"Vandaag",now:"Nu",backToToday:"Terug naar vandaag",ok:"Ok",clear:"Reset",month:"Maand",year:"Jaar",timeSelect:"Selecteer tijd",dateSelect:"Selecteer datum",monthSelect:"Kies een maand",yearSelect:"Kies een jaar",decadeSelect:"Kies een decennium",yearFormat:"YYYY",dateFormat:"D-M-YYYY",dayFormat:"D",dateTimeFormat:"D-M-YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorige maand (PageUp)",nextMonth:"Volgende maand (PageDown)",previousYear:"Vorig jaar (Control + left)",nextYear:"Volgend jaar (Control + right)",previousDecade:"Vorig decennium",nextDecade:"Volgend decennium",previousCentury:"Vorige eeuw",nextCentury:"Volgende eeuw"}),_h=(Object(zt.a)({placeholder:"Selecteer datum",rangePlaceholder:["Begin datum","Eind datum"]},Th),Object(zt.a)({},{placeholder:"Selecteer tijd"}),{today:"Vandaag",now:"Nu",backToToday:"Terug naar vandaag",ok:"Ok",clear:"Reset",month:"Maand",year:"Jaar",timeSelect:"Selecteer tijd",dateSelect:"Selecteer datum",monthSelect:"Kies een maand",yearSelect:"Kies een jaar",decadeSelect:"Kies een decennium",yearFormat:"YYYY",dateFormat:"D-M-YYYY",dayFormat:"D",dateTimeFormat:"D-M-YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorige maand (PageUp)",nextMonth:"Volgende maand (PageDown)",previousYear:"Vorig jaar (Control + left)",nextYear:"Volgend jaar (Control + right)",previousDecade:"Vorig decennium",nextDecade:"Volgend decennium",previousCentury:"Vorige eeuw",nextCentury:"Volgende eeuw"}),kh=(Object(zt.a)({placeholder:"Selecteer datum",rangePlaceholder:["Begin datum","Eind datum"]},_h),Object(zt.a)({},{placeholder:"Selecteer tijd"}),{today:"Dzisiaj",now:"Teraz",backToToday:"Ustaw dzisiaj",ok:"Ok",clear:"Wyczy\u015b\u0107",month:"Miesi\u0105c",year:"Rok",timeSelect:"Ustaw czas",dateSelect:"Ustaw dat\u0119",monthSelect:"Wybierz miesi\u0105c",yearSelect:"Wybierz rok",decadeSelect:"Wybierz dekad\u0119",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Poprzedni miesi\u0105c (PageUp)",nextMonth:"Nast\u0119pny miesi\u0105c (PageDown)",previousYear:"Ostatni rok (Ctrl + left)",nextYear:"Nast\u0119pny rok (Ctrl + right)",previousDecade:"Ostatnia dekada",nextDecade:"Nast\u0119pna dekada",previousCentury:"Ostatni wiek",nextCentury:"Nast\u0119pny wiek"}),Dh=(Object(zt.a)({placeholder:"Wybierz dat\u0119",rangePlaceholder:["Data pocz\u0105tkowa","Data ko\u0144cowa"]},kh),Object(zt.a)({},{placeholder:"Wybierz godzin\u0119"}),{today:"Hoje",now:"Agora",backToToday:"Voltar para hoje",ok:"Ok",clear:"Limpar",month:"M\xeas",year:"Ano",timeSelect:"Selecionar tempo",dateSelect:"Selecionar data",monthSelect:"Escolher m\xeas",yearSelect:"Escolher ano",decadeSelect:"Escolher d\xe9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!1,previousMonth:"M\xeas anterior (PageUp)",nextMonth:"Pr\xf3ximo m\xeas (PageDown)",previousYear:"Ano anterior (Control + esquerda)",nextYear:"Pr\xf3ximo ano (Control + direita)",previousDecade:"D\xe9cada anterior",nextDecade:"Pr\xf3xima d\xe9cada",previousCentury:"S\xe9culo anterior",nextCentury:"Pr\xf3ximo s\xe9culo"}),xh=(Object(zt.a)({placeholder:"Selecionar data",rangePlaceholder:["Data de in\xedcio","Data de fim"]},Dh),Object(zt.a)({},{placeholder:"Hora"}),{today:"Hoje",now:"Agora",backToToday:"Hoje",ok:"Ok",clear:"Limpar",month:"M\xeas",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Selecionar m\xeas",yearSelect:"Selecionar ano",decadeSelect:"Selecionar d\xe9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"M\xeas anterior (PageUp)",nextMonth:"M\xeas seguinte (PageDown)",previousYear:"Ano anterior (Control + left)",nextYear:"Ano seguinte (Control + right)",previousDecade:"D\xe9cada anterior",nextDecade:"D\xe9cada seguinte",previousCentury:"S\xe9culo anterior",nextCentury:"S\xe9culo seguinte"}),Eh=(Object(zt.a)(Object(zt.a)({},xh),{placeholder:"Data",rangePlaceholder:["Data inicial","Data final"],today:"Hoje",now:"Agora",backToToday:"Hoje",ok:"Ok",clear:"Limpar",month:"M\xeas",year:"Ano",timeSelect:"Hora",dateSelect:"Selecionar data",monthSelect:"Selecionar m\xeas",yearSelect:"Selecionar ano",decadeSelect:"Selecionar d\xe9cada",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthFormat:"MMMM",monthBeforeYear:!1,previousMonth:"M\xeas anterior (PageUp)",nextMonth:"M\xeas seguinte (PageDown)",previousYear:"Ano anterior (Control + left)",nextYear:"Ano seguinte (Control + right)",previousDecade:"\xdaltima d\xe9cada",nextDecade:"Pr\xf3xima d\xe9cada",previousCentury:"\xdaltimo s\xe9culo",nextCentury:"Pr\xf3ximo s\xe9culo"}),Object(zt.a)(Object(zt.a)({},{placeholder:"Hora"}),{placeholder:"Hora"}),{today:"Azi",now:"Acum",backToToday:"\xcenapoi la azi",ok:"Ok",clear:"\u0218terge",month:"Lun\u0103",year:"An",timeSelect:"selecteaz\u0103 timpul",dateSelect:"selecteaz\u0103 data",weekSelect:"Alege o s\u0103pt\u0103m\xe2n\u0103",monthSelect:"Alege o lun\u0103",yearSelect:"Alege un an",decadeSelect:"Alege un deceniu",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Luna anterioar\u0103 (PageUp)",nextMonth:"Luna urm\u0103toare (PageDown)",previousYear:"Anul anterior (Control + st\xe2nga)",nextYear:"Anul urm\u0103tor (Control + dreapta)",previousDecade:"Deceniul anterior",nextDecade:"Deceniul urm\u0103tor",previousCentury:"Secolul anterior",nextCentury:"Secolul urm\u0103tor"}),Nh=(Object(zt.a)({placeholder:"Selecteaz\u0103 data",rangePlaceholder:["Data start","Data sf\xe2r\u0219it"]},Eh),Object(zt.a)({},{placeholder:"Selecteaz\u0103 ora"}),{today:"\u0421\u0435\u0433\u043e\u0434\u043d\u044f",now:"\u0421\u0435\u0439\u0447\u0430\u0441",backToToday:"\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0434\u0430\u0442\u0430",ok:"Ok",clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",month:"\u041c\u0435\u0441\u044f\u0446",year:"\u0413\u043e\u0434",timeSelect:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f",dateSelect:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0434\u0430\u0442\u0443",monthSelect:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u0435\u0441\u044f\u0446",yearSelect:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0433\u043e\u0434",decadeSelect:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u0435",yearFormat:"YYYY",dateFormat:"D-M-YYYY",dayFormat:"D",dateTimeFormat:"D-M-YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446 (PageUp)",nextMonth:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446 (PageDown)",previousYear:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0433\u043e\u0434 (Control + left)",nextYear:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0433\u043e\u0434 (Control + right)",previousDecade:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u0435",nextDecade:"\u0421\u043b\u0435\u0434\u0443\u0449\u0435\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u0435",previousCentury:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0432\u0435\u043a",nextCentury:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u0435\u043a"}),jh=(Object(zt.a)({placeholder:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0430\u0442\u0443",rangePlaceholder:["\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u0430\u0442\u0430","\u041a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0434\u0430\u0442\u0430"]},Nh),Object(zt.a)({},{placeholder:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0440\u0435\u043c\u044f"}),{today:"Dnes",now:"Teraz",backToToday:"Sp\xe4\u0165 na dnes",ok:"Ok",clear:"Vymaza\u0165",month:"Mesiac",year:"Rok",timeSelect:"Vybra\u0165 \u010das",dateSelect:"Vybra\u0165 d\xe1tum",monthSelect:"Vybra\u0165 mesiac",yearSelect:"Vybra\u0165 rok",decadeSelect:"Vybra\u0165 dek\xe1du",yearFormat:"YYYY",dateFormat:"D.M.YYYY",dayFormat:"D",dateTimeFormat:"D.M.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Predch\xe1dzaj\xfaci mesiac (PageUp)",nextMonth:"Nasleduj\xfaci mesiac (PageDown)",previousYear:"Predch\xe1dzaj\xfaci rok (Control + left)",nextYear:"Nasleduj\xfaci rok (Control + right)",previousDecade:"Predch\xe1dzaj\xfaca dek\xe1da",nextDecade:"Nasleduj\xfaca dek\xe1da",previousCentury:"Predch\xe1dzaj\xface storo\u010die",nextCentury:"Nasleduj\xface storo\u010die"}),Ih=(Object(zt.a)({placeholder:"Vybra\u0165 d\xe1tum",rangePlaceholder:["Od","Do"]},jh),Object(zt.a)({},{placeholder:"Vybra\u0165 \u010das"}),{placeholder:"Izberite \u010das"}),Ah=(Object(zt.a)({},Ih),{today:"Danas",now:"Sada",backToToday:"Vrati se na danas",ok:"U redu",clear:"Obri\u0161i",month:"Mesec",year:"Godina",timeSelect:"Izaberi vreme",dateSelect:"Izaberi datum",monthSelect:"Izaberi mesec",yearSelect:"Izaberi godinu",decadeSelect:"Izaberi deceniju",yearFormat:"YYYY",dateFormat:"DD.MM.YYYY",dayFormat:"D",dateTimeFormat:"DD.MM.YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Prethodni mesec (PageUp)",nextMonth:"Slede\u0107i mesec (PageDown)",previousYear:"Prethodna godina (Control + left)",nextYear:"Slede\u0107a godina (Control + right)",previousDecade:"Prethodna decenija",nextDecade:"Slede\u0107a decenija",previousCentury:"Prethodni vek",nextCentury:"Slede\u0107i vek"}),Mh=(Object(zt.a)({placeholder:"Izaberite datum",rangePlaceholder:["Po\u010detni datum","Krajnji datum"]},Ah),Object(zt.a)({},{placeholder:"Izaberite vreme"}),{today:"I dag",now:"Nu",backToToday:"Till idag",ok:"Ok",clear:"Avbryt",month:"M\xe5nad",year:"\xc5r",timeSelect:"V\xe4lj tidpunkt",dateSelect:"V\xe4lj datum",monthSelect:"V\xe4lj m\xe5nad",yearSelect:"V\xe4lj \xe5r",decadeSelect:"V\xe4lj \xe5rtionde",yearFormat:"YYYY",dateFormat:"YYYY-MM-DD",dayFormat:"D",dateTimeFormat:"YYYY-MM-DD H:mm:ss",monthBeforeYear:!0,previousMonth:"F\xf6rra m\xe5naden (PageUp)",nextMonth:"N\xe4sta m\xe5nad (PageDown)",previousYear:"F\xf6reg \xe5r (Control + left)",nextYear:"N\xe4sta \xe5r (Control + right)",previousDecade:"F\xf6reg \xe5rtionde",nextDecade:"N\xe4sta \xe5rtionde",previousCentury:"F\xf6reg \xe5rhundrade",nextCentury:"N\xe4sta \xe5rhundrade"}),Lh=(Object(zt.a)({placeholder:"V\xe4lj datum",rangePlaceholder:["Startdatum","Slutdatum"]},Mh),Object(zt.a)({},{placeholder:"V\xe4lj tid"}),{today:"\u0b87\u0ba9\u0bcd\u0bb1\u0bc1",now:"\u0b87\u0baa\u0bcd\u0baa\u0bcb\u0ba4\u0bc1",backToToday:"\u0b87\u0ba9\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0ba4\u0bbf\u0bb0\u0bc1\u0bae\u0bcd\u0baa\u0bc1",ok:"\u0b9a\u0bb0\u0bbf",clear:"\u0b85\u0bb4\u0bbf",month:"\u0bae\u0bbe\u0ba4\u0bae\u0bcd",year:"\u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",timeSelect:"\u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bc8\u0ba4\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0ba8\u0bcd\u0ba4\u0bc6\u0b9f\u0bc1",dateSelect:"\u0ba4\u0bc7\u0ba4\u0bbf\u0baf\u0bc8\u0ba4\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0ba8\u0bcd\u0ba4\u0bc6\u0b9f\u0bc1",weekSelect:"\u0bb5\u0bbe\u0bb0\u0ba4\u0bcd\u0ba4\u0bc8\u0ba4\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0bb5\u0bc1\u0b9a\u0bc6\u0baf\u0bcd\u0b95",monthSelect:"\u0bae\u0bbe\u0ba4\u0ba4\u0bcd\u0ba4\u0bc8\u0ba4\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0bb5\u0bc1\u0b9a\u0bc6\u0baf\u0bcd\u0b95",yearSelect:"\u0bb5\u0bb0\u0bc1\u0b9f\u0ba4\u0bcd\u0ba4\u0bc8\u0ba4\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0bb5\u0bc1\u0b9a\u0bc6\u0baf\u0bcd\u0b95",decadeSelect:"\u0ba4\u0b9a\u0bbe\u0baa\u0bcd\u0ba4\u0ba4\u0bcd\u0ba4\u0bc8\u0ba4\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0bb5\u0bc1\u0b9a\u0bc6\u0baf\u0bcd\u0b95",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u0bae\u0bc1\u0ba8\u0bcd\u0ba4\u0bc8\u0baf \u0bae\u0bbe\u0ba4\u0bae\u0bcd (PageUp)",nextMonth:"\u0b85\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4 \u0bae\u0bbe\u0ba4\u0bae\u0bcd (PageDown)",previousYear:"\u0bae\u0bc1\u0ba8\u0bcd\u0ba4\u0bc8\u0baf \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd (Control + left)",nextYear:"\u0b85\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd (Control + right)",previousDecade:"\u0bae\u0bc1\u0ba8\u0bcd\u0ba4\u0bc8\u0baf \u0ba4\u0b9a\u0bbe\u0baa\u0bcd\u0ba4\u0bae\u0bcd",nextDecade:"\u0b85\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4 \u0ba4\u0b9a\u0bbe\u0baa\u0bcd\u0ba4\u0bae\u0bcd",previousCentury:"\u0bae\u0bc1\u0ba8\u0bcd\u0ba4\u0bc8\u0baf \u0ba8\u0bc2\u0bb1\u0bcd\u0bb1\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1",nextCentury:"\u0b85\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4 \u0ba8\u0bc2\u0bb1\u0bcd\u0bb1\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1"}),Ph=(Object(zt.a)({placeholder:"\u0ba4\u0bc7\u0ba4\u0bbf\u0baf\u0bc8\u0ba4\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0ba8\u0bcd\u0ba4\u0bc6\u0b9f\u0bc1\u0b95\u0bcd\u0b95\u0bb5\u0bc1\u0bae\u0bcd",rangePlaceholder:["\u0ba4\u0bca\u0b9f\u0b95\u0bcd\u0b95 \u0ba4\u0bc7\u0ba4\u0bbf","\u0b95\u0b9f\u0bc8\u0b9a\u0bbf \u0ba4\u0bc7\u0ba4\u0bbf"]},Lh),Object(zt.a)({},{placeholder:"\u0ba8\u0bc7\u0bb0\u0ba4\u0bcd\u0ba4\u0bc8\u0ba4\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0ba8\u0bcd\u0ba4\u0bc6\u0b9f\u0bc1\u0b95\u0bcd\u0b95\u0bb5\u0bc1\u0bae\u0bcd"}),{today:"\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49",now:"\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49",backToToday:"\u0e01\u0e25\u0e31\u0e1a\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49",ok:"\u0e15\u0e01\u0e25\u0e07",clear:"\u0e25\u0e1a\u0e25\u0e49\u0e32\u0e07",month:"\u0e40\u0e14\u0e37\u0e2d\u0e19",year:"\u0e1b\u0e35",timeSelect:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e40\u0e27\u0e25\u0e32",dateSelect:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e27\u0e31\u0e19",monthSelect:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e40\u0e14\u0e37\u0e2d\u0e19",yearSelect:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e1b\u0e35",decadeSelect:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e17\u0e28\u0e27\u0e23\u0e23\u0e29",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u0e40\u0e14\u0e37\u0e2d\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32 (PageUp)",nextMonth:"\u0e40\u0e14\u0e37\u0e2d\u0e19\u0e16\u0e31\u0e14\u0e44\u0e1b (PageDown)",previousYear:"\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32 (Control + left)",nextYear:"\u0e1b\u0e35\u0e16\u0e31\u0e14\u0e44\u0e1b (Control + right)",previousDecade:"\u0e17\u0e28\u0e27\u0e23\u0e23\u0e29\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",nextDecade:"\u0e17\u0e28\u0e27\u0e23\u0e23\u0e29\u0e16\u0e31\u0e14\u0e44\u0e1b",previousCentury:"\u0e28\u0e15\u0e27\u0e23\u0e23\u0e29\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",nextCentury:"\u0e28\u0e15\u0e27\u0e23\u0e23\u0e29\u0e16\u0e31\u0e14\u0e44\u0e1b"}),Fh=(Object(zt.a)({placeholder:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48",rangePlaceholder:["\u0e27\u0e31\u0e19\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19","\u0e27\u0e31\u0e19\u0e2a\u0e34\u0e49\u0e19\u0e2a\u0e38\u0e14"]},Ph),Object(zt.a)({},{placeholder:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e40\u0e27\u0e25\u0e32"}),{today:"Bug\xfcn",now:"\u015eimdi",backToToday:"Bug\xfcne Geri D\xf6n",ok:"tamam",clear:"Temizle",month:"Ay",year:"Y\u0131l",timeSelect:"Zaman Se\xe7",dateSelect:"Tarih Se\xe7",monthSelect:"Ay Se\xe7",yearSelect:"Y\u0131l Se\xe7",decadeSelect:"On Y\u0131l Se\xe7",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\xd6nceki Ay (PageUp)",nextMonth:"Sonraki Ay (PageDown)",previousYear:"\xd6nceki Y\u0131l (Control + Sol)",nextYear:"Sonraki Y\u0131l (Control + Sa\u011f)",previousDecade:"\xd6nceki On Y\u0131l",nextDecade:"Sonraki On Y\u0131l",previousCentury:"\xd6nceki Y\xfczy\u0131l",nextCentury:"Sonraki Y\xfczy\u0131l"}),Rh=(Object(zt.a)({placeholder:"Tarih Se\xe7",rangePlaceholder:["Ba\u015flang\u0131\xe7 Tarihi","Biti\u015f Tarihi"]},Fh),Object(zt.a)({},{placeholder:"Zaman Se\xe7"}),{today:"\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456",now:"\u0417\u0430\u0440\u0430\u0437",backToToday:"\u041f\u043e\u0442\u043e\u0447\u043d\u0430 \u0434\u0430\u0442\u0430",ok:"Ok",clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",month:"\u041c\u0456\u0441\u044f\u0446\u044c",year:"\u0420\u0456\u043a",timeSelect:"\u041e\u0431\u0440\u0430\u0442\u0438 \u0447\u0430\u0441",dateSelect:"\u041e\u0431\u0440\u0430\u0442\u0438 \u0434\u0430\u0442\u0443",monthSelect:"\u041e\u0431\u0440\u0430\u0442\u0438 \u043c\u0456\u0441\u044f\u0446\u044c",yearSelect:"\u041e\u0431\u0440\u0430\u0442\u0438 \u0440\u0456\u043a",decadeSelect:"\u041e\u0431\u0440\u0430\u0442\u0438 \u0434\u0435\u0441\u044f\u0442\u0438\u0440\u0456\u0447\u0447\u044f",yearFormat:"YYYY",dateFormat:"D-M-YYYY",dayFormat:"D",dateTimeFormat:"D-M-YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439 \u043c\u0456\u0441\u044f\u0446\u044c (PageUp)",nextMonth:"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043c\u0456\u0441\u044f\u0446\u044c (PageDown)",previousYear:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439 \u0440\u0456\u043a (Control + left)",nextYear:"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0440\u0456\u043a (Control + right)",previousDecade:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0454 \u0434\u0435\u0441\u044f\u0442\u0438\u0440\u0456\u0447\u0447\u044f",nextDecade:"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u0440\u0456\u0447\u0447\u044f",previousCentury:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0454 \u0441\u0442\u043e\u043b\u0456\u0442\u0442\u044f",nextCentury:"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0435 \u0441\u0442\u043e\u043b\u0456\u0442\u0442\u044f"}),Vh=(Object(zt.a)({placeholder:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0434\u0430\u0442\u0443",rangePlaceholder:["\u041f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u0430 \u0434\u0430\u0442\u0430","\u041a\u0456\u043d\u0446\u0435\u0432\u0430 \u0434\u0430\u0442\u0430"]},Rh),Object(zt.a)({},{placeholder:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0447\u0430\u0441"}),{today:"H\xf4m nay",now:"B\xe2y gi\u1edd",backToToday:"Tr\u1edf v\u1ec1 h\xf4m nay",ok:"Ok",clear:"X\xf3a",month:"Th\xe1ng",year:"N\u0103m",timeSelect:"Ch\u1ecdn th\u1eddi gian",dateSelect:"Ch\u1ecdn ng\xe0y",weekSelect:"Ch\u1ecdn tu\u1ea7n",monthSelect:"Ch\u1ecdn th\xe1ng",yearSelect:"Ch\u1ecdn n\u0103m",decadeSelect:"Ch\u1ecdn th\u1eadp k\u1ef7",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Th\xe1ng tr\u01b0\u1edbc (PageUp)",nextMonth:"Th\xe1ng sau (PageDown)",previousYear:"N\u0103m tr\u01b0\u1edbc (Control + left)",nextYear:"N\u0103m sau (Control + right)",previousDecade:"Th\u1eadp k\u1ef7 tr\u01b0\u1edbc",nextDecade:"Th\u1eadp k\u1ef7 sau",previousCentury:"Th\u1ebf k\u1ef7 tr\u01b0\u1edbc",nextCentury:"Th\u1ebf k\u1ef7 sau"}),Bh=(Object(zt.a)({placeholder:"Ch\u1ecdn th\u1eddi \u0111i\u1ec3m",rangePlaceholder:["Ng\xe0y b\u1eaft \u0111\u1ea7u","Ng\xe0y k\u1ebft th\xfac"]},Vh),Object(zt.a)({},{placeholder:"Ch\u1ecdn th\u1eddi gian"}),{today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u78ba\u5b9a",timeSelect:"\u9078\u64c7\u6642\u9593",dateSelect:"\u9078\u64c7\u65e5\u671f",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u500b\u6708 (\u7ffb\u9801\u4e0a\u9375)",nextMonth:"\u4e0b\u500b\u6708 (\u7ffb\u9801\u4e0b\u9375)",monthSelect:"\u9078\u64c7\u6708\u4efd",yearSelect:"\u9078\u64c7\u5e74\u4efd",decadeSelect:"\u9078\u64c7\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u6642mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u9375\u52a0\u5de6\u65b9\u5411\u9375)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u9375\u52a0\u53f3\u65b9\u5411\u9375)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7d00",nextCentury:"\u4e0b\u4e00\u4e16\u7d00"});[Object(zt.a)({placeholder:"\u8acb\u9078\u64c7\u65e5\u671f",rangePlaceholder:["\u958b\u59cb\u65e5\u671f","\u7d50\u675f\u65e5\u671f"]},Bh),Object(zt.a)({},{placeholder:"\u8acb\u9078\u64c7\u6642\u9593"})][0].ok="\u78ba \u5b9a";var Yh=["inputElement"];function Uh(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"i",7),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.sc("nzType",n)}}function Hh(e,t){if(1&e){var n=i.ac();i.Zb(0,"span",8),i.hc("click",(function(e){return i.Dc(n),i.kc().onClickClearBtn(e)})),i.Nc(1,"\n "),i.Ub(2,"i",9),i.Nc(3,"\n "),i.Yb()}if(2&e){var r=i.kc();i.Db(2),i.Eb("aria-label",r.nzClearText)("title",r.nzClearText)}}function Wh(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",10),i.Nc(2,"\n "),i.Zb(3,"div",11),i.Nc(4,"\n "),i.Zb(5,"div",12),i.Nc(6,"\n "),i.Zb(7,"nz-time-picker-panel",13),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc().value=e}))("ngModelChange",(function(e){return i.Dc(n),i.kc().setValue(e)}))("closePanel",(function(){return i.Dc(n),i.kc().close()})),i.lc(8,"nzI18n"),i.Nc(9,"\n "),i.Yb(),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n "),i.Yb(),i.Nc(12,"\n "),i.Yb(),i.Nc(13,"\n ")}if(2&e){var r=i.kc();i.Db(1),i.sc("@slideMotion","bottom"),i.Db(6),i.sc("ngClass",r.nzPopupClassName)("format",r.nzFormat)("nzHourStep",r.nzHourStep)("nzMinuteStep",r.nzMinuteStep)("nzSecondStep",r.nzSecondStep)("nzDisabledHours",r.nzDisabledHours)("nzDisabledMinutes",r.nzDisabledMinutes)("nzDisabledSeconds",r.nzDisabledSeconds)("nzPlaceHolder",r.nzPlaceHolder||i.mc(8,17,"TimePicker.placeholder"))("nzHideDisabledOptions",r.nzHideDisabledOptions)("nzUse12Hours",r.nzUse12Hours)("nzDefaultOpenValue",r.nzDefaultOpenValue)("nzAddOn",r.nzAddOn)("nzClearText",r.nzClearText)("nzAllowEmpty",r.nzAllowEmpty)("ngModel",r.value)}}var qh=["hourListElement"],Zh=["minuteListElement"],$h=["secondListElement"],Gh=["use12HoursListElement"];function Qh(e,t){if(1&e&&(i.Zb(0,"div",4),i.Nc(1,"\n "),i.Zb(2,"div",5),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(3),i.Oc(n.dateHelper.format(null==n.time?null:n.time.value,n.format)||"\xa0")}}function Xh(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",10),i.hc("click",(function(){i.Dc(n);var e=i.kc().$implicit;return i.kc(2).selectHour(e)})),i.Nc(1,"\n "),i.Zb(2,"div",11),i.Nc(3),i.lc(4,"number"),i.Yb(),i.Nc(5,"\n "),i.Yb()}if(2&e){var r=i.kc().$implicit,o=i.kc(2);i.Jb("ant-picker-time-panel-cell-selected",o.isSelectedHour(r))("ant-picker-time-panel-cell-disabled",r.disabled),i.Db(3),i.Oc(i.nc(4,5,r.index,"2.0-0"))}}function Kh(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,Xh,6,8,"li",9),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit,r=i.kc(2);i.Db(2),i.sc("ngIf",!(r.nzHideDisabledOptions&&n.disabled))}}function Jh(e,t){if(1&e&&(i.Zb(0,"ul",6,7),i.Nc(2,"\n "),i.Lc(3,Kh,4,1,"ng-container",8),i.Nc(4,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(3),i.sc("ngForOf",n.hourRange)}}function ed(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",10),i.hc("click",(function(){i.Dc(n);var e=i.kc().$implicit;return i.kc(2).selectMinute(e)})),i.Nc(1,"\n "),i.Zb(2,"div",11),i.Nc(3),i.lc(4,"number"),i.Yb(),i.Nc(5,"\n "),i.Yb()}if(2&e){var r=i.kc().$implicit,o=i.kc(2);i.Jb("ant-picker-time-panel-cell-selected",o.isSelectedMinute(r))("ant-picker-time-panel-cell-disabled",r.disabled),i.Db(3),i.Oc(i.nc(4,5,r.index,"2.0-0"))}}function td(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,ed,6,8,"li",9),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit,r=i.kc(2);i.Db(2),i.sc("ngIf",!(r.nzHideDisabledOptions&&n.disabled))}}function nd(e,t){if(1&e&&(i.Zb(0,"ul",6,12),i.Nc(2,"\n "),i.Lc(3,td,4,1,"ng-container",8),i.Nc(4,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(3),i.sc("ngForOf",n.minuteRange)}}function id(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",10),i.hc("click",(function(){i.Dc(n);var e=i.kc().$implicit;return i.kc(2).selectSecond(e)})),i.Nc(1,"\n "),i.Zb(2,"div",11),i.Nc(3),i.lc(4,"number"),i.Yb(),i.Nc(5,"\n "),i.Yb()}if(2&e){var r=i.kc().$implicit,o=i.kc(2);i.Jb("ant-picker-time-panel-cell-selected",o.isSelectedSecond(r))("ant-picker-time-panel-cell-disabled",r.disabled),i.Db(3),i.Oc(i.nc(4,5,r.index,"2.0-0"))}}function rd(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,id,6,8,"li",9),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit,r=i.kc(2);i.Db(2),i.sc("ngIf",!(r.nzHideDisabledOptions&&n.disabled))}}function od(e,t){if(1&e&&(i.Zb(0,"ul",6,13),i.Nc(2,"\n "),i.Lc(3,rd,4,1,"ng-container",8),i.Nc(4,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(3),i.sc("ngForOf",n.secondRange)}}function ad(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",10),i.hc("click",(function(){i.Dc(n);var e=i.kc().$implicit;return i.kc(2).select12Hours(e)})),i.Nc(1,"\n "),i.Zb(2,"div",11),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Yb()}if(2&e){var r=i.kc().$implicit,o=i.kc(2);i.Jb("ant-picker-time-panel-cell-selected",o.isSelected12Hours(r)),i.Db(3),i.Oc(r.value)}}function sd(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,ad,5,3,"li",15),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2);i.Db(2),i.sc("ngIf",!n.nzHideDisabledOptions)}}function cd(e,t){if(1&e&&(i.Zb(0,"ul",6,14),i.Nc(2,"\n "),i.Lc(3,sd,4,1,"ng-container",8),i.Nc(4,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(3),i.sc("ngForOf",n.use12HoursRange)}}function ud(e,t){}function ld(e,t){if(1&e&&(i.Zb(0,"div",21),i.Nc(1,"\n "),i.Lc(2,ud,0,0,"ng-template",22),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc(2);i.Db(2),i.sc("ngTemplateOutlet",n.nzAddOn)}}function pd(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",16),i.Nc(1,"\n "),i.Lc(2,ld,4,1,"div",17),i.Nc(3,"\n "),i.Zb(4,"ul",18),i.Nc(5,"\n "),i.Zb(6,"li",19),i.Nc(7,"\n "),i.Zb(8,"a",20),i.hc("click",(function(){return i.Dc(n),i.kc().onClickNow()})),i.Nc(9),i.lc(10,"nzI18n"),i.Yb(),i.Nc(11,"\n "),i.Yb(),i.Nc(12,"\n "),i.Yb(),i.Nc(13,"\n "),i.Yb()}if(2&e){var r=i.kc();i.Db(2),i.sc("ngIf",r.nzAddOn),i.Db(7),i.Pc("\n ",i.mc(10,2,"Calendar.now"),"\n ")}}var hd=function(){function e(e,t,n,r){this.nzConfigService=e,this.element=t,this.renderer=n,this.cdr=r,this.isInit=!1,this.focused=!1,this.value=null,this.overlayPositions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:0,offsetY:3}],this.nzSize=null,this.nzHourStep=1,this.nzMinuteStep=1,this.nzSecondStep=1,this.nzClearText="clear",this.nzPopupClassName="",this.nzPlaceHolder="",this.nzFormat="HH:mm:ss",this.nzOpen=!1,this.nzUse12Hours=!1,this.nzSuffixIcon="clock-circle",this.nzOpenChange=new i.n,this.nzHideDisabledOptions=!1,this.nzAllowEmpty=!0,this.nzDisabled=!1,this.nzAutoFocus=!1}return e.prototype.setValue=function(e){this.value=e?new Date(e):null,this._onChange&&this._onChange(this.value),this._onTouched&&this._onTouched()},e.prototype.open=function(){this.nzDisabled||(this.focus(),this.nzOpen=!0,this.nzOpenChange.emit(this.nzOpen))},e.prototype.close=function(){this.nzOpen=!1,this.cdr.markForCheck(),this.nzOpenChange.emit(this.nzOpen)},e.prototype.updateAutoFocus=function(){this.isInit&&!this.nzDisabled&&(this.nzAutoFocus?this.renderer.setAttribute(this.inputRef.nativeElement,"autofocus","autofocus"):this.renderer.removeAttribute(this.inputRef.nativeElement,"autofocus"))},e.prototype.onClickClearBtn=function(e){e.stopPropagation(),this.setValue(null)},e.prototype.onFocus=function(e){this.focused=e},e.prototype.focus=function(){this.inputRef.nativeElement&&this.inputRef.nativeElement.focus()},e.prototype.blur=function(){this.inputRef.nativeElement&&this.inputRef.nativeElement.blur()},e.prototype.ngOnInit=function(){this.inputSize=Math.max(8,this.nzFormat.length)+2,this.origin=new Ur.b(this.element)},e.prototype.ngOnChanges=function(e){var t=e.nzUse12Hours,n=e.nzDisabled,i=e.nzAutoFocus;if(t&&!t.previousValue&&t.currentValue&&!e.nzFormat&&(this.nzFormat="h:mm:ss a"),n){var r=this.inputRef.nativeElement;n.currentValue?this.renderer.setAttribute(r,"disabled",""):this.renderer.removeAttribute(r,"disabled")}i&&this.updateAutoFocus()},e.prototype.ngAfterViewInit=function(){this.isInit=!0,this.updateAutoFocus()},e.prototype.writeValue=function(e){e instanceof Date?this.value=e:Object(es.n)(e)?this.value=null:(Object(Hs.b)('Non-Date type is not recommended for time-picker, use "Date" type.'),this.value=new Date(e)),this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.cdr.markForCheck()},Object(zt.b)([Object(Qa.b)("timePicker"),Object(zt.d)("design:type",Number)],e.prototype,"nzHourStep",void 0),Object(zt.b)([Object(Qa.b)("timePicker"),Object(zt.d)("design:type",Number)],e.prototype,"nzMinuteStep",void 0),Object(zt.b)([Object(Qa.b)("timePicker"),Object(zt.d)("design:type",Number)],e.prototype,"nzSecondStep",void 0),Object(zt.b)([Object(Qa.b)("timePicker"),Object(zt.d)("design:type",String)],e.prototype,"nzClearText",void 0),Object(zt.b)([Object(Qa.b)("timePicker"),Object(zt.d)("design:type",String)],e.prototype,"nzPopupClassName",void 0),Object(zt.b)([Object(Qa.b)("timePicker"),Object(zt.d)("design:type",String)],e.prototype,"nzFormat",void 0),Object(zt.b)([Object(Qa.b)("timePicker"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzUse12Hours",void 0),Object(zt.b)([Object(Qa.b)("timePicker"),Object(zt.d)("design:type",Object)],e.prototype,"nzSuffixIcon",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzHideDisabledOptions",void 0),Object(zt.b)([Object(Qa.b)("timePicker"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAllowEmpty",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.l),i.Tb(i.E),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-time-picker"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Yh,!0),2&e&&i.zc(n=i.ic())&&(t.inputRef=n.first)},hostVars:10,hostBindings:function(e,t){1&e&&i.hc("click",(function(){return t.open()})),2&e&&i.Jb("ant-picker",!0)("ant-picker-large","large"===t.nzSize)("ant-picker-small","small"===t.nzSize)("ant-picker-disabled",t.nzDisabled)("ant-picker-focused",t.focused)},inputs:{nzSize:"nzSize",nzHourStep:"nzHourStep",nzMinuteStep:"nzMinuteStep",nzSecondStep:"nzSecondStep",nzClearText:"nzClearText",nzPopupClassName:"nzPopupClassName",nzPlaceHolder:"nzPlaceHolder",nzFormat:"nzFormat",nzOpen:"nzOpen",nzUse12Hours:"nzUse12Hours",nzSuffixIcon:"nzSuffixIcon",nzHideDisabledOptions:"nzHideDisabledOptions",nzAllowEmpty:"nzAllowEmpty",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzAddOn:"nzAddOn",nzDefaultOpenValue:"nzDefaultOpenValue",nzDisabledHours:"nzDisabledHours",nzDisabledMinutes:"nzDisabledMinutes",nzDisabledSeconds:"nzDisabledSeconds"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzTimePicker"],features:[i.Cb([{provide:Ot.m,useExisting:e,multi:!0}]),i.Bb],decls:17,vars:13,consts:[[1,"ant-picker-input"],["type","text",3,"size","nzTime","placeholder","ngModel","disabled","ngModelChange","focus","blur"],["inputElement",""],[1,"ant-picker-suffix"],[4,"nzStringTemplateOutlet"],["class","ant-picker-clear",3,"click",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","","cdkConnectedOverlayHasBackdrop","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayOffsetY","detach","backdropClick"],["nz-icon","",3,"nzType"],[1,"ant-picker-clear",3,"click"],["nz-icon","","nzType","close-circle","nzTheme","fill"],[1,"ant-picker-dropdown"],[1,"ant-picker-panel-container"],["tabindex","-1",1,"ant-picker-panel"],[3,"ngClass","format","nzHourStep","nzMinuteStep","nzSecondStep","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzPlaceHolder","nzHideDisabledOptions","nzUse12Hours","nzDefaultOpenValue","nzAddOn","nzClearText","nzAllowEmpty","ngModel","ngModelChange","closePanel"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Zb(3,"input",1,2),i.hc("ngModelChange",(function(e){return t.value=e}))("focus",(function(){return t.onFocus(!0)}))("blur",(function(){return t.onFocus(!1)})),i.lc(5,"nzI18n"),i.Yb(),i.Nc(6,"\n "),i.Zb(7,"span",3),i.Nc(8,"\n "),i.Lc(9,Uh,4,1,"ng-container",4),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n "),i.Lc(12,Hh,4,2,"span",5),i.Nc(13,"\n "),i.Yb(),i.Nc(14,"\n\n "),i.Lc(15,Wh,14,19,"ng-template",6),i.hc("detach",(function(){return t.close()}))("backdropClick",(function(){return t.close()})),i.Nc(16,"\n ")),2&e&&(i.Db(3),i.sc("size",t.inputSize)("nzTime",t.nzFormat)("placeholder",t.nzPlaceHolder||i.mc(5,11,"TimePicker.placeholder"))("ngModel",t.value)("disabled",t.nzDisabled),i.Db(6),i.sc("nzStringTemplateOutlet",t.nzSuffixIcon),i.Db(3),i.sc("ngIf",t.nzAllowEmpty&&t.value),i.Db(3),i.sc("cdkConnectedOverlayPositions",t.overlayPositions)("cdkConnectedOverlayOrigin",t.origin)("cdkConnectedOverlayOpen",t.nzOpen)("cdkConnectedOverlayOffsetY",-2))},directives:function(){return[fd,Ot.e,Ot.o,Ot.r,Es.b,Vr.t,Ur.a,Nu.e,Ns.a,bd,Vr.q]},pipes:function(){return[Pp]},encapsulation:2,data:{animation:[xs.g]},changeDetection:0}),e}(),dd=function(){function e(){this.selected12Hours=void 0,this._use12Hours=!1,this._changes=new kt.a}return e.prototype.setMinutes=function(e,t){return e===this.minutes||t||(this.initValue(),this.value.setMinutes(e),this.update()),this},e.prototype.setHours=function(e,t){return e===this.hours||t||(this.initValue(),this.value.setHours(this._use12Hours?"PM"===this.selected12Hours&&12!==e?e+12:"AM"===this.selected12Hours&&12===e?0:e:e),this.update()),this},e.prototype.setSeconds=function(e,t){return e===this.seconds||t||(this.initValue(),this.value.setSeconds(e),this.update()),this},e.prototype.setUse12Hours=function(e){return this._use12Hours=e,this},Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes.asObservable()},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e,t){return Object(es.p)(t)&&(this._use12Hours=t),e!==this.value&&(this._value=e,Object(es.p)(this.value)?this._use12Hours&&Object(es.p)(this.hours)&&(this.selected12Hours=this.hours>=12?"PM":"AM"):this._clear()),this},e.prototype.initValue=function(){Object(es.n)(this.value)&&this.setValue(new Date,this._use12Hours)},e.prototype.clear=function(){this._clear(),this.update()},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return!(Object(es.p)(this.hours)||Object(es.p)(this.minutes)||Object(es.p)(this.seconds))},enumerable:!0,configurable:!0}),e.prototype._clear=function(){this._value=void 0,this.selected12Hours=void 0},e.prototype.update=function(){this.isEmpty?this._value=void 0:(Object(es.p)(this.hours)&&this.value.setHours(this.hours),Object(es.p)(this.minutes)&&this.value.setMinutes(this.minutes),Object(es.p)(this.seconds)&&this.value.setSeconds(this.seconds),this._use12Hours&&("PM"===this.selected12Hours&&this.hours<12&&this.value.setHours(this.hours+12),"AM"===this.selected12Hours&&this.hours>=12&&this.value.setHours(this.hours-12))),this.changed()},e.prototype.changed=function(){this._changes.next(this.value)},Object.defineProperty(e.prototype,"viewHours",{get:function(){return this._use12Hours&&Object(es.p)(this.hours)?this.calculateViewHour(this.hours):this.hours},enumerable:!0,configurable:!0}),e.prototype.setSelected12Hours=function(e){e.toUpperCase()!==this.selected12Hours&&(this.selected12Hours=e.toUpperCase(),this.update())},Object.defineProperty(e.prototype,"value",{get:function(){return this._value||this._defaultOpenValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hours",{get:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.getHours()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minutes",{get:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.getMinutes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seconds",{get:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.getSeconds()},enumerable:!0,configurable:!0}),e.prototype.setDefaultOpenValue=function(e){return this._defaultOpenValue=e,this},e.prototype.calculateViewHour=function(e){var t=this.selected12Hours;return"PM"===t&&e>12?e-12:"AM"===t&&0===e?12:e},e}(),fd=function(){function e(e,t){this.dateHelper=e,this.elementRef=t}return e.prototype.keyup=function(){this.changed()},e.prototype.blur=function(){this.touched()},e.prototype.changed=function(){if(this._onChange){var e=this.dateHelper.parseTime(this.elementRef.nativeElement.value,this.nzTime);this._onChange(e)}},e.prototype.touched=function(){this._onTouch&&this._onTouch()},e.prototype.setRange=function(){this.elementRef.nativeElement.focus(),this.elementRef.nativeElement.setSelectionRange(0,this.elementRef.nativeElement.value.length)},e.prototype.writeValue=function(e){this.elementRef.nativeElement.value=this.dateHelper.format(e,this.nzTime)},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouch=e},e.\u0275fac=function(t){return new(t||e)(i.Tb(qp),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["input","nzTime",""]],hostBindings:function(e,t){1&e&&i.hc("keyup",(function(){return t.keyup()}))("blur",(function(){return t.blur()}))},inputs:{nzTime:"nzTime"},exportAs:["nzTime"],features:[i.Cb([{provide:Ot.m,useExisting:e,multi:!0}])]}),e}();function gd(e,t,n){return void 0===t&&(t=1),void 0===n&&(n=0),new Array(Math.ceil(e/t)).fill(0).map((function(e,i){return(i+n)*t}))}var bd=function(){function e(e,t){this.cdr=e,this.dateHelper=t,this._nzHourStep=1,this._nzMinuteStep=1,this._nzSecondStep=1,this.unsubscribe$=new kt.a,this._format="HH:mm:ss",this._disabledHours=function(){return[]},this._disabledMinutes=function(){return[]},this._disabledSeconds=function(){return[]},this._allowEmpty=!0,this.time=new dd,this.hourEnabled=!0,this.minuteEnabled=!0,this.secondEnabled=!0,this.firstScrolled=!1,this.enabledColumns=3,this.nzInDatePicker=!1,this.nzHideDisabledOptions=!1,this.nzUse12Hours=!1,this.closePanel=new i.n}return Object.defineProperty(e.prototype,"nzAllowEmpty",{get:function(){return this._allowEmpty},set:function(e){Object(es.p)(e)&&(this._allowEmpty=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzDisabledHours",{get:function(){return this._disabledHours},set:function(e){this._disabledHours=e,this._disabledHours&&this.buildHours()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzDisabledMinutes",{get:function(){return this._disabledMinutes},set:function(e){Object(es.p)(e)&&(this._disabledMinutes=e,this.buildMinutes())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzDisabledSeconds",{get:function(){return this._disabledSeconds},set:function(e){Object(es.p)(e)&&(this._disabledSeconds=e,this.buildSeconds())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this._format},set:function(e){if(Object(es.p)(e)){this._format=e,this.enabledColumns=0;var t=new Set(e);this.hourEnabled=t.has("H")||t.has("h"),this.minuteEnabled=t.has("m"),this.secondEnabled=t.has("s"),this.hourEnabled&&this.enabledColumns++,this.minuteEnabled&&this.enabledColumns++,this.secondEnabled&&this.enabledColumns++,this.nzUse12Hours&&this.build12Hours()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzHourStep",{get:function(){return this._nzHourStep},set:function(e){Object(es.p)(e)&&(this._nzHourStep=e,this.buildHours())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzMinuteStep",{get:function(){return this._nzMinuteStep},set:function(e){Object(es.p)(e)&&(this._nzMinuteStep=e,this.buildMinutes())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzSecondStep",{get:function(){return this._nzSecondStep},set:function(e){Object(es.p)(e)&&(this._nzSecondStep=e,this.buildSeconds())},enumerable:!0,configurable:!0}),e.prototype.selectInputRange=function(){var e=this;setTimeout((function(){e.nzTimeValueAccessorDirective&&e.nzTimeValueAccessorDirective.setRange()}))},e.prototype.buildHours=function(){var e,t=24,n=null===(e=this.nzDisabledHours)||void 0===e?void 0:e.call(this),i=0;if(this.nzUse12Hours&&(t=12,n&&(n="PM"===this.time.selected12Hours?n.filter((function(e){return e>=12})).map((function(e){return e>12?e-12:e})):n.filter((function(e){return e<12||24===e})).map((function(e){return 24===e||0===e?12:e}))),i=1),this.hourRange=gd(t,this.nzHourStep,i).map((function(e){return{index:e,disabled:!!n&&-1!==n.indexOf(e)}})),this.nzUse12Hours&&12===this.hourRange[this.hourRange.length-1].index){var r=Object(zt.g)(this.hourRange);r.unshift(r[r.length-1]),r.splice(r.length-1,1),this.hourRange=r}},e.prototype.buildMinutes=function(){var e=this;this.minuteRange=gd(60,this.nzMinuteStep).map((function(t){return{index:t,disabled:!!e.nzDisabledMinutes&&-1!==e.nzDisabledMinutes(e.time.hours).indexOf(t)}}))},e.prototype.buildSeconds=function(){var e=this;this.secondRange=gd(60,this.nzSecondStep).map((function(t){return{index:t,disabled:!!e.nzDisabledSeconds&&-1!==e.nzDisabledSeconds(e.time.hours,e.time.minutes).indexOf(t)}}))},e.prototype.build12Hours=function(){var e=this._format.includes("A");this.use12HoursRange=[{index:0,value:e?"AM":"am"},{index:1,value:e?"PM":"pm"}]},e.prototype.buildTimes=function(){this.buildHours(),this.buildMinutes(),this.buildSeconds(),this.build12Hours()},e.prototype.scrollToTime=function(e){void 0===e&&(e=0),this.hourEnabled&&this.hourListElement&&this.scrollToSelected(this.hourListElement.nativeElement,this.time.viewHours,e,"hour"),this.minuteEnabled&&this.minuteListElement&&this.scrollToSelected(this.minuteListElement.nativeElement,this.time.minutes,e,"minute"),this.secondEnabled&&this.secondListElement&&this.scrollToSelected(this.secondListElement.nativeElement,this.time.seconds,e,"second"),this.nzUse12Hours&&this.use12HoursListElement&&this.scrollToSelected(this.use12HoursListElement.nativeElement,"AM"===this.time.selected12Hours?0:1,e,"12-hour")},e.prototype.selectHour=function(e){this.time.setHours(e.index,e.disabled),this._disabledMinutes&&this.buildMinutes(),(this._disabledSeconds||this._disabledMinutes)&&this.buildSeconds()},e.prototype.selectMinute=function(e){this.time.setMinutes(e.index,e.disabled),this._disabledSeconds&&this.buildSeconds()},e.prototype.selectSecond=function(e){this.time.setSeconds(e.index,e.disabled)},e.prototype.select12Hours=function(e){this.time.setSelected12Hours(e.value),this._disabledHours&&this.buildHours(),this._disabledMinutes&&this.buildMinutes(),this._disabledSeconds&&this.buildSeconds()},e.prototype.scrollToSelected=function(e,t,n,i){if(void 0===n&&(n=0),e){var r=this.translateIndex(t,i);this.scrollTo(e,(e.children[r]||e.children[0]).offsetTop,n)}},e.prototype.translateIndex=function(e,t){var n,i,r;return"hour"===t?this.calcIndex(null===(n=this.nzDisabledHours)||void 0===n?void 0:n.call(this),this.hourRange.map((function(e){return e.index})).indexOf(e)):"minute"===t?this.calcIndex(null===(i=this.nzDisabledMinutes)||void 0===i?void 0:i.call(this,this.time.hours),this.minuteRange.map((function(e){return e.index})).indexOf(e)):"second"===t?this.calcIndex(null===(r=this.nzDisabledSeconds)||void 0===r?void 0:r.call(this,this.time.hours,this.time.minutes),this.secondRange.map((function(e){return e.index})).indexOf(e)):this.calcIndex([],this.use12HoursRange.map((function(e){return e.index})).indexOf(e))},e.prototype.scrollTo=function(e,t,n){var i=this;if(n<=0)e.scrollTop=t;else{var r=(t-e.scrollTop)/n*10;rs((function(){e.scrollTop=e.scrollTop+r,e.scrollTop!==t&&i.scrollTo(e,t,n-10)}))}},e.prototype.calcIndex=function(e,t){return(null==e?void 0:e.length)&&this.nzHideDisabledOptions?t-e.reduce((function(e,n){return e+(n-1||(null!==(r=null===(i=this.nzDisabledMinutes)||void 0===i?void 0:i.call(this,s).indexOf(c))&&void 0!==r?r:-1)>-1||(null!==(a=null===(o=this.nzDisabledSeconds)||void 0===o?void 0:o.call(this,s,c).indexOf(u))&&void 0!==a?a:-1)>-1},e.prototype.onClickNow=function(){var e=new Date;this.timeDisabled(e)||(this.time.setValue(e),this.changed(),this.closePanel.emit())},e.prototype.isSelectedHour=function(e){return e.index===this.time.viewHours},e.prototype.isSelectedMinute=function(e){return e.index===this.time.minutes},e.prototype.isSelectedSecond=function(e){return e.index===this.time.seconds},e.prototype.isSelected12Hours=function(e){return e.value.toUpperCase()===this.time.selected12Hours},e.prototype.ngOnInit=function(){var e=this;this.time.changes.pipe(Object(ss.a)(this.unsubscribe$)).subscribe((function(){e.changed(),e.touched()})),this.buildTimes(),this.selectInputRange(),setTimeout((function(){e.scrollToTime(),e.firstScrolled=!0}))},e.prototype.ngOnDestroy=function(){this.unsubscribe$.next(),this.unsubscribe$.complete()},e.prototype.ngOnChanges=function(e){var t=e.nzUse12Hours,n=e.nzDefaultOpenValue;!(null==t?void 0:t.previousValue)&&(null==t?void 0:t.currentValue)&&(this.build12Hours(),this.enabledColumns++),(null==n?void 0:n.currentValue)&&this.time.setDefaultOpenValue(this.nzDefaultOpenValue||new Date)},e.prototype.writeValue=function(e){this.time.setValue(e,this.nzUse12Hours),this.buildTimes(),e&&this.firstScrolled&&this.scrollToTime(120),this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzUse12Hours",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(qp))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-time-picker-panel"]],viewQuery:function(e,t){var n;1&e&&(i.Sc(fd,!0),i.Sc(qh,!0),i.Sc(Zh,!0),i.Sc($h,!0),i.Sc(Gh,!0)),2&e&&(i.zc(n=i.ic())&&(t.nzTimeValueAccessorDirective=n.first),i.zc(n=i.ic())&&(t.hourListElement=n.first),i.zc(n=i.ic())&&(t.minuteListElement=n.first),i.zc(n=i.ic())&&(t.secondListElement=n.first),i.zc(n=i.ic())&&(t.use12HoursListElement=n.first))},hostVars:14,hostBindings:function(e,t){2&e&&i.Jb("ant-picker-time-panel",!0)("ant-picker-time-panel-column-0",0===t.enabledColumns&&!t.nzInDatePicker)("ant-picker-time-panel-column-1",1===t.enabledColumns&&!t.nzInDatePicker)("ant-picker-time-panel-column-2",2===t.enabledColumns&&!t.nzInDatePicker)("ant-picker-time-panel-column-3",3===t.enabledColumns&&!t.nzInDatePicker)("ant-picker-time-panel-narrow",t.enabledColumns<3)("ant-picker-time-panel-placement-bottomLeft",!t.nzInDatePicker)},inputs:{nzInDatePicker:"nzInDatePicker",nzHideDisabledOptions:"nzHideDisabledOptions",nzUse12Hours:"nzUse12Hours",nzAllowEmpty:"nzAllowEmpty",nzDisabledHours:"nzDisabledHours",nzDisabledMinutes:"nzDisabledMinutes",nzDisabledSeconds:"nzDisabledSeconds",format:"format",nzHourStep:"nzHourStep",nzMinuteStep:"nzMinuteStep",nzSecondStep:"nzSecondStep",nzAddOn:"nzAddOn",nzClearText:"nzClearText",nzPlaceHolder:"nzPlaceHolder",nzDefaultOpenValue:"nzDefaultOpenValue"},outputs:{closePanel:"closePanel"},exportAs:["nzTimePickerPanel"],features:[i.Cb([{provide:Ot.m,useExisting:e,multi:!0}]),i.Bb],decls:16,vars:6,consts:[["class","ant-picker-header",4,"ngIf"],[1,"ant-picker-content"],["class","ant-picker-time-panel-column","style","position: relative;",4,"ngIf"],["class","ant-picker-footer",4,"ngIf"],[1,"ant-picker-header"],[1,"ant-picker-header-view"],[1,"ant-picker-time-panel-column",2,"position","relative"],["hourListElement",""],[4,"ngFor","ngForOf"],["class","ant-picker-time-panel-cell",3,"ant-picker-time-panel-cell-selected","ant-picker-time-panel-cell-disabled","click",4,"ngIf"],[1,"ant-picker-time-panel-cell",3,"click"],[1,"ant-picker-time-panel-cell-inner"],["minuteListElement",""],["secondListElement",""],["use12HoursListElement",""],["class","ant-picker-time-panel-cell",3,"ant-picker-time-panel-cell-selected","click",4,"ngIf"],[1,"ant-picker-footer"],["class","ant-picker-footer-extra",4,"ngIf"],[1,"ant-picker-ranges"],[1,"ant-picker-now"],[3,"click"],[1,"ant-picker-footer-extra"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Lc(1,Qh,5,1,"div",0),i.Nc(2,"\n "),i.Zb(3,"div",1),i.Nc(4,"\n "),i.Lc(5,Jh,5,1,"ul",2),i.Nc(6,"\n "),i.Lc(7,nd,5,1,"ul",2),i.Nc(8,"\n "),i.Lc(9,od,5,1,"ul",2),i.Nc(10,"\n "),i.Lc(11,cd,5,1,"ul",2),i.Nc(12,"\n "),i.Yb(),i.Nc(13,"\n "),i.Lc(14,pd,14,4,"div",3),i.Nc(15,"\n ")),2&e&&(i.Db(1),i.sc("ngIf",t.nzInDatePicker),i.Db(4),i.sc("ngIf",t.hourEnabled),i.Db(2),i.sc("ngIf",t.minuteEnabled),i.Db(2),i.sc("ngIf",t.secondEnabled),i.Db(2),i.sc("ngIf",t.nzUse12Hours),i.Db(3),i.sc("ngIf",!t.nzInDatePicker))},directives:[Vr.t,Vr.s,Vr.A],pipes:[Vr.g,Pp],encapsulation:2,changeDetection:0}),e}(),md=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Fp,Ur.i,Ns.b,Nu.f,Es.a]]}),e}();function vd(e,t){Zu(2,arguments);var n=$u(e),i=il(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var r=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+i+1,0);var a=o.getDate();return r>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function yd(e){Zu(1,arguments);var t=$u(e);return t.setHours(0,0,0,0),t}function wd(e,t){Zu(2,arguments);var n=yd(e),i=yd(t),r=n.getTime()-Sl(n),o=i.getTime()-Sl(i);return Math.round((r-o)/864e5)}function Od(e,t){Zu(2,arguments);var n=$u(e),i=$u(t),r=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return 12*r+o}function Cd(e,t){Zu(2,arguments);var n=$u(e),i=$u(t);return n.getFullYear()-i.getFullYear()}function Sd(e,t){Zu(2,arguments);var n=$u(e),i=$u(t);return n.getTime()-i.getTime()}function zd(e,t){Zu(2,arguments);var n=Sd(e,t)/36e5;return n>0?Math.floor(n):Math.ceil(n)}function Td(e,t){Zu(2,arguments);var n=Sd(e,t)/6e4;return n>0?Math.floor(n):Math.ceil(n)}function _d(e,t){Zu(2,arguments);var n=Sd(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function kd(e){Zu(1,arguments);var t=$u(e);return t.setHours(23,59,59,999),t}function Dd(e){Zu(1,arguments);var t=$u(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function xd(e,t){Zu(2,arguments);var n=yd(e),i=yd(t);return n.getTime()===i.getTime()}function Ed(e){Zu(1,arguments);var t=$u(e);return t.setMinutes(0,0,0),t}function Nd(e,t){Zu(2,arguments);var n=Ed(e),i=Ed(t);return n.getTime()===i.getTime()}function jd(e){Zu(1,arguments);var t=$u(e);return t.setSeconds(0,0),t}function Id(e,t){Zu(2,arguments);var n=jd(e),i=jd(t);return n.getTime()===i.getTime()}function Ad(e,t){Zu(2,arguments);var n=$u(e),i=$u(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function Md(e){Zu(1,arguments);var t=$u(e);return t.setMilliseconds(0),t}function Ld(e,t){Zu(2,arguments);var n=Md(e),i=Md(t);return n.getTime()===i.getTime()}function Pd(e,t){Zu(2,arguments);var n=$u(e),i=$u(t);return n.getFullYear()===i.getFullYear()}function Fd(e,t){Zu(2,arguments);var n=$u(e),i=il(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}function Rd(e){Zu(1,arguments);var t=$u(e),n=t.getFullYear(),i=t.getMonth(),r=new Date(0);return r.setFullYear(n,i+1,0),r.setHours(0,0,0,0),r.getDate()}function Vd(e){return Array.isArray(e)?e.map((function(e){return e instanceof Bd?e.clone():null})):e instanceof Bd?e.clone():null}var Bd=function(){function e(e){if(e)if(e instanceof Date)this.nativeDate=e;else{if("string"!=typeof e&&"number"!=typeof e)throw new Error('The input date type is not supported ("Date" is now recommended)');Object(Hs.b)('The string type is not recommended for date-picker, use "Date" type'),this.nativeDate=new Date(e)}else this.nativeDate=new Date}return e.prototype.calendarStart=function(t){return new e(Ml(function(e){Zu(1,arguments);var t=$u(e);return t.setDate(1),t.setHours(0,0,0,0),t}(this.nativeDate),t))},e.prototype.getYear=function(){return this.nativeDate.getFullYear()},e.prototype.getMonth=function(){return this.nativeDate.getMonth()},e.prototype.getDay=function(){return this.nativeDate.getDay()},e.prototype.getTime=function(){return this.nativeDate.getTime()},e.prototype.getDate=function(){return this.nativeDate.getDate()},e.prototype.getHours=function(){return this.nativeDate.getHours()},e.prototype.getMinutes=function(){return this.nativeDate.getMinutes()},e.prototype.getSeconds=function(){return this.nativeDate.getSeconds()},e.prototype.getMilliseconds=function(){return this.nativeDate.getMilliseconds()},e.prototype.clone=function(){return new e(new Date(this.nativeDate))},e.prototype.setHms=function(t,n,i){return new e(this.nativeDate.setHours(t,n,i))},e.prototype.setYear=function(t){return new e(function(e,t){Zu(2,arguments);var n=$u(e),i=il(t);return isNaN(n)?new Date(NaN):(n.setFullYear(i),n)}(this.nativeDate,t))},e.prototype.addYears=function(t){return new e(function(e,t){Zu(2,arguments);var n=il(t);return vd(e,12*n)}(this.nativeDate,t))},e.prototype.setMonth=function(t){return new e(function(e,t){Zu(2,arguments);var n=$u(e),i=il(t),r=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(r,i,15),a.setHours(0,0,0,0);var s=Rd(a);return n.setMonth(i,Math.min(o,s)),n}(this.nativeDate,t))},e.prototype.addMonths=function(t){return new e(vd(this.nativeDate,t))},e.prototype.setDay=function(t,n){return new e(function(e,t,n){Zu(2,arguments);var i=n||{},r=i.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:il(o),s=null==i.weekStartsOn?a:il(i.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=$u(e,i),u=il(t),l=c.getDay(),p=u%7,h=(p+7)%7,d=7-s,f=u<0||u>6?u-(l+d)%7:(h+d)%7-(l+d)%7;return Fd(c,f,i)}(this.nativeDate,t,n))},e.prototype.setDate=function(t){var n=new Date(this.nativeDate);return n.setDate(t),new e(n)},e.prototype.addDays=function(e){return this.setDate(this.getDate()+e)},e.prototype.isSame=function(e,t){var n;switch(void 0===t&&(t="day"),t){case"year":n=Pd;break;case"month":n=Ad;break;case"day":n=xd;break;case"hour":n=Nd;break;case"minute":n=Id;break;case"second":n=Ld;break;default:n=xd}return n(this.nativeDate,this.toNativeDate(e))},e.prototype.isSameYear=function(e){return this.isSame(e,"year")},e.prototype.isSameMonth=function(e){return this.isSame(e,"month")},e.prototype.isSameDay=function(e){return this.isSame(e,"day")},e.prototype.isSameHour=function(e){return this.isSame(e,"hour")},e.prototype.isSameMinute=function(e){return this.isSame(e,"minute")},e.prototype.isSameSecond=function(e){return this.isSame(e,"second")},e.prototype.compare=function(e,t,n){if(void 0===t&&(t="day"),void 0===n&&(n=!0),null===e)return!1;var i;switch(t){case"year":i=Cd;break;case"month":i=Od;break;case"day":i=wd;break;case"hour":i=zd;break;case"minute":i=Td;break;case"second":i=_d;break;default:i=wd}return n?i(this.nativeDate,this.toNativeDate(e))<0:i(this.nativeDate,this.toNativeDate(e))>0},e.prototype.isBeforeYear=function(e){return this.compare(e,"year")},e.prototype.isBeforeMonth=function(e){return this.compare(e,"month")},e.prototype.isBeforeDay=function(e){return this.compare(e,"day")},e.prototype.isBeforeHour=function(e){return this.compare(e,"hour")},e.prototype.isBeforeMinute=function(e){return this.compare(e,"minute")},e.prototype.isBeforeSecond=function(e){return this.compare(e,"second")},e.prototype.isAfterYear=function(e){return this.compare(e,"year",!1)},e.prototype.isAfterMonth=function(e){return this.compare(e,"month",!1)},e.prototype.isAfterDay=function(e){return this.compare(e,"day",!1)},e.prototype.isAfterHour=function(e){return this.compare(e,"hour",!1)},e.prototype.isAfterMinute=function(e){return this.compare(e,"minute",!1)},e.prototype.isAfterSecond=function(e){return this.compare(e,"second",!1)},e.prototype.isToday=function(){return function(e){return Zu(1,arguments),xd(e,Date.now())}(this.nativeDate)},e.prototype.isValid=function(){return Gu(this.nativeDate)},e.prototype.isFirstDayOfMonth=function(){return function(e){return Zu(1,arguments),1===$u(e).getDate()}(this.nativeDate)},e.prototype.isLastDayOfMonth=function(){return function(e){Zu(1,arguments);var t=$u(e);return kd(t).getTime()===Dd(t).getTime()}(this.nativeDate)},e.prototype.toNativeDate=function(t){return t instanceof e?t.nativeDate:t},e}(),Yd=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],Ud=n("Sh7c"),Hd=n("MySR");function Wd(e,t){1&e&&i.Vb(0)}function qd(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,Wd,1,0,"ng-container",4),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2);i.Db(2),i.sc("ngTemplateOutlet",n.extraFooter)}}function Zd(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"span",5),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2);i.Db(2),i.sc("innerHTML",n.extraFooter,i.Ec)}}function $d(e,t){if(1&e&&(i.Zb(0,"div"),i.Nc(1,"\n "),i.Xb(2,2),i.Nc(3,"\n "),i.Lc(4,qd,4,1,"ng-container",3),i.Nc(5,"\n "),i.Lc(6,Zd,4,1,"ng-container",3),i.Nc(7,"\n "),i.Wb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=i.kc();i.Gb("",n.prefixCls,"-footer-extra"),i.Db(2),i.sc("ngSwitch",!0),i.Db(2),i.sc("ngSwitchCase",n.isTemplateRef(n.extraFooter)),i.Db(2),i.sc("ngSwitchCase",n.isNonEmptyString(n.extraFooter))}}function Gd(e,t){if(1&e){var n=i.ac();i.Zb(0,"a",6),i.hc("click",(function(){i.Dc(n);var e=i.kc();return e.isTodayDisabled?null:e.onClickToday()})),i.Nc(1),i.Yb()}if(2&e){var r=i.kc();i.Hb("",r.prefixCls,"-today-btn ",r.isTodayDisabled?r.prefixCls+"-today-btn-disabled":"",""),i.tc("title",r.todayTitle),i.Db(1),i.Pc("\n ",r.locale.today,"\n ")}}function Qd(e,t){1&e&&i.Vb(0)}function Xd(e,t){if(1&e){var n=i.ac();i.Zb(0,"li"),i.Nc(1,"\n "),i.Zb(2,"a",7),i.hc("click",(function(){i.Dc(n);var e=i.kc(2);return e.isTodayDisabled?null:e.onClickToday()})),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Gb("",r.prefixCls,"-now"),i.Db(2),i.Gb("",r.prefixCls,"-now-btn"),i.Db(1),i.Pc("\n ",r.locale.now,"\n ")}}function Kd(e,t){if(1&e){var n=i.ac();i.Zb(0,"li"),i.Nc(1,"\n "),i.Zb(2,"button",8),i.hc("click",(function(){i.Dc(n);var e=i.kc(2);return e.okDisabled?null:e.clickOk.emit()})),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Gb("",r.prefixCls,"-ok"),i.Db(2),i.sc("disabled",r.okDisabled),i.Db(1),i.Pc("\n ",r.locale.ok,"\n ")}}function Jd(e,t){if(1&e&&(i.Zb(0,"ul"),i.Nc(1,"\n "),i.Lc(2,Qd,1,0,"ng-container",4),i.Nc(3,"\n "),i.Lc(4,Xd,5,7,"li",0),i.Nc(5,"\n "),i.Lc(6,Kd,5,5,"li",0),i.Nc(7,"\n "),i.Yb()),2&e){var n=i.kc();i.Gb("",n.prefixCls,"-ranges"),i.Db(2),i.sc("ngTemplateOutlet",n.rangeQuickSelector),i.Db(2),i.sc("ngIf",n.hasTimePicker&&!n.isRange),i.Db(2),i.sc("ngIf",n.hasTimePicker)}}function ef(e,t){1&e&&i.Vb(0)}function tf(e,t){1&e&&i.Vb(0)}function nf(e,t){1&e&&i.Vb(0)}var rf=function(){return{partType:"left"}},of=function(){return{partType:"right"}};function af(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3,"\n "),i.Ub(4,"div",6),i.Nc(5,"\n "),i.Zb(6,"div"),i.Nc(7,"\n "),i.Zb(8,"div"),i.Nc(9,"\n "),i.Lc(10,ef,1,0,"ng-container",7),i.Nc(11,"\n "),i.Lc(12,tf,1,0,"ng-container",7),i.Nc(13,"\n "),i.Yb(),i.Nc(14,"\n "),i.Lc(15,nf,1,0,"ng-container",8),i.Nc(16,"\n "),i.Yb(),i.Nc(17,"\n "),i.Yb(),i.Nc(18,"\n "),i.Wb()),2&e){var n=i.kc(),r=i.Ac(13),o=i.Ac(10);i.Db(2),i.Hb("",n.prefixCls,"-range-wrapper ",n.prefixCls,"-date-range-wrapper"),i.Db(2),i.Gb("",n.prefixCls,"-range-arrow"),i.sc("ngStyle",null==n.datePickerService?null:n.datePickerService.arrowPositionStyle),i.Db(2),i.Gb("",n.prefixCls,"-panel-container"),i.Db(2),i.Gb("",n.prefixCls,"-panels"),i.Db(2),i.sc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.uc(19,rf)),i.Db(2),i.sc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.uc(20,of)),i.Db(3),i.sc("ngTemplateOutlet",o)}}function sf(e,t){1&e&&i.Vb(0)}function cf(e,t){1&e&&i.Vb(0)}function uf(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div"),i.Nc(2,"\n "),i.Zb(3,"div",9),i.Nc(4,"\n "),i.Nc(5,"\n "),i.Lc(6,sf,1,0,"ng-container",8),i.Nc(7,"\n "),i.Lc(8,cf,1,0,"ng-container",8),i.Nc(9,"\n "),i.Yb(),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n ")),2&e){var n=i.kc(),r=i.Ac(7),o=i.Ac(10);i.Db(1),i.Ib("",n.prefixCls,"-panel-container ",n.showWeek?n.prefixCls+"-week-number":""," ",n.hasTimePicker?n.prefixCls+"-time":""," ",n.isRange?n.prefixCls+"-range":"",""),i.Db(2),i.Gb("",n.prefixCls,"-panel"),i.Db(3),i.sc("ngTemplateOutlet",r),i.Db(2),i.sc("ngTemplateOutlet",o)}}function lf(e,t){if(1&e){var n=i.ac();i.Zb(0,"inner-popup",11),i.hc("panelModeChange",(function(e){i.Dc(n);var t=i.kc().partType;return i.kc().onPanelModeChange(e,t)}))("dayHover",(function(e){return i.Dc(n),i.kc(2).onDayHover(e)}))("selectDate",(function(e){i.Dc(n);var t=i.kc(2);return t.changeValueFromSelect(e,!t.showTime)}))("selectTime",(function(e){i.Dc(n);var t=i.kc().partType;return i.kc().onSelectTime(e,t)}))("headerChange",(function(e){i.Dc(n);var t=i.kc().partType;return i.kc().onActiveDateChange(e,t)})),i.Yb()}if(2&e){var r=i.kc().partType,o=i.kc();i.sc("showWeek",o.showWeek)("endPanelMode",o.getPanelMode(o.endPanelMode,r))("partType",r)("locale",o.locale)("showTimePicker",o.hasTimePicker)("timeOptions",o.getTimeOptions(r))("panelMode",o.getPanelMode(o.panelMode,r))("activeDate",o.getActiveDate(r))("value",o.getValue(r))("disabledDate",o.disabledDate)("dateRender",o.dateRender)("selectedValue",null==o.datePickerService?null:o.datePickerService.value)("hoverValue",o.hoverValue)}}function pf(e,t){if(1&e&&(i.Nc(0,"\n "),i.Nc(1,"\n "),i.Lc(2,lf,1,13,"inner-popup",10),i.Nc(3,"\n ")),2&e){var n=t.partType,r=i.kc();i.Db(2),i.sc("ngIf",r.show(n))}}function hf(e,t){if(1&e){var n=i.ac();i.Zb(0,"calendar-footer",13),i.hc("clickOk",(function(){return i.Dc(n),i.kc(2).onClickOk()}))("clickToday",(function(e){return i.Dc(n),i.kc(2).onClickToday(e)})),i.Yb()}if(2&e){var r=i.kc(2),o=i.Ac(17);i.sc("locale",r.locale)("isRange",r.isRange)("showToday",r.showToday)("hasTimePicker",r.hasTimePicker)("okDisabled",!r.isAllowed(null==r.datePickerService?null:r.datePickerService.value))("extraFooter",r.extraFooter)("rangeQuickSelector",r.ranges?o:null)}}function df(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,hf,1,7,"calendar-footer",12),i.Nc(2,"\n ")),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",n.hasFooter)}}function ff(e,t){1&e&&i.Vb(0)}var gf=function(e){return{partType:e}};function bf(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div"),i.Nc(2,"\n "),i.Lc(3,ff,1,0,"ng-container",7),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n ")),2&e){var n=t.partType,r=i.kc(),o=i.Ac(7);i.Db(1),i.Gb("",r.prefixCls,"-panel"),i.Db(2),i.sc("ngTemplateOutlet",o)("ngTemplateOutletContext",i.vc(5,gf,n))}}function mf(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",15),i.hc("click",(function(){i.Dc(n);var e=t.$implicit,r=i.kc(2);return r.onClickPresetRange(r.ranges[e])}))("mouseenter",(function(){i.Dc(n);var e=t.$implicit,r=i.kc(2);return r.onHoverPresetRange(r.ranges[e])}))("mouseleave",(function(){return i.Dc(n),i.kc(2).onPresetRangeMouseLeave()})),i.Nc(1,"\n "),i.Zb(2,"span",16),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc(2);i.Gb("",o.prefixCls,"-preset"),i.Db(3),i.Oc(r)}}function vf(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,mf,5,4,"li",14),i.Nc(2,"\n ")),2&e){var n=i.kc();i.Db(1),i.sc("ngForOf",n.getObjectKeys(n.ranges))}}var yf=["separatorElement"],wf=["pickerInput"],Of=["rangePickerInput"],Cf=["nz-picker",""];function Sf(e,t){1&e&&i.Vb(0)}function zf(e,t){if(1&e){var n=i.ac();i.Zb(0,"div"),i.Nc(1,"\n "),i.Zb(2,"input",5,6),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc().inputValue=e}))("focus",(function(){return i.Dc(n),i.kc().onFocus()}))("blur",(function(){return i.Dc(n),i.kc().onBlur()}))("input",(function(e){return i.Dc(n),i.kc().onInputKeyup(e)}))("keyup.enter",(function(e){return i.Dc(n),i.kc().onInputKeyup(e,!0)})),i.Yb(),i.Nc(4,"\n "),i.Lc(5,Sf,1,0,"ng-container",7),i.Nc(6,"\n "),i.Yb()}if(2&e){var r=i.kc(),o=i.Ac(13);i.Gb("",r.prefixCls,"-input"),i.Db(2),i.Jb("ant-input-disabled",r.disabled),i.tc("placeholder",r.getPlaceholder()),i.sc("disabled",r.disabled)("ngModel",r.inputValue)("size",r.inputSize),i.Db(3),i.sc("ngTemplateOutlet",o)}}function Tf(e,t){1&e&&i.Vb(0)}function _f(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.separator)}}function kf(e,t){1&e&&(i.Nc(0,"\n "),i.Ub(1,"i",12),i.Nc(2,"\n "))}function Df(e,t){1&e&&i.Vb(0)}function xf(e,t){1&e&&i.Vb(0)}function Ef(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3,"\n "),i.Lc(4,Tf,1,0,"ng-container",8),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "),i.Zb(7,"div",null,9),i.Nc(9,"\n "),i.Zb(10,"span"),i.Nc(11,"\n "),i.Lc(12,_f,2,1,"ng-container",10),i.Nc(13,"\n "),i.Yb(),i.Nc(14,"\n "),i.Lc(15,kf,3,0,"ng-template",null,11,i.Mc),i.Nc(17,"\n "),i.Yb(),i.Nc(18,"\n "),i.Zb(19,"div"),i.Nc(20,"\n "),i.Lc(21,Df,1,0,"ng-container",8),i.Nc(22,"\n "),i.Yb(),i.Nc(23,"\n "),i.Lc(24,xf,1,0,"ng-container",7),i.Nc(25,"\n "),i.Wb()),2&e){var n=i.Ac(16),r=i.kc(),o=i.Ac(9),a=i.Ac(13);i.Db(2),i.Gb("",r.prefixCls,"-input"),i.Db(2),i.sc("ngTemplateOutlet",o)("ngTemplateOutletContext",i.uc(19,rf)),i.Db(3),i.Gb("",r.prefixCls,"-range-separator"),i.Db(3),i.Gb("",r.prefixCls,"-separator"),i.Db(2),i.sc("ngIf",r.separator)("ngIfElse",n),i.Db(7),i.Gb("",r.prefixCls,"-input"),i.Db(2),i.sc("ngTemplateOutlet",o)("ngTemplateOutletContext",i.uc(20,of)),i.Db(3),i.sc("ngTemplateOutlet",a)}}function Nf(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"input",13,14),i.hc("click",(function(e){i.Dc(n);var r=t.partType;return i.kc().onClickInputBox(e,r)}))("blur",(function(){return i.Dc(n),i.kc().onBlur()}))("input",(function(e){return i.Dc(n),i.kc().onInputKeyup(e,!1)}))("focus",(function(){i.Dc(n);var e=t.partType;return i.kc().onFocus(e)}))("keyup.enter",(function(e){return i.Dc(n),i.kc().onInputKeyup(e,!0)}))("ngModelChange",(function(e){i.Dc(n);var r=t.partType,o=i.kc();return o.inputValue[o.datePickerService.getActiveIndex(r)]=e})),i.Yb(),i.Nc(3,"\n ")}if(2&e){var r=t.partType,o=i.kc();i.Db(1),i.tc("placeholder",o.getPlaceholder(r)),i.sc("disabled",o.disabled)("size",o.inputSize)("ngModel",o.inputValue[o.datePickerService.getActiveIndex(r)])}}function jf(e,t){if(1&e){var n=i.ac();i.Zb(0,"span",18),i.hc("click",(function(e){return i.Dc(n),i.kc(2).onClickClear(e)})),i.Nc(1,"\n "),i.Ub(2,"i",19),i.Nc(3,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Gb("",r.prefixCls,"-clear")}}function If(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"i",20),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.sc("nzType",n)}}function Af(e,t){if(1&e&&(i.Nc(0,"\n "),i.Ub(1,"div",15),i.Nc(2,"\n "),i.Lc(3,jf,4,3,"span",16),i.Nc(4,"\n "),i.Zb(5,"span"),i.Nc(6,"\n "),i.Lc(7,If,4,1,"ng-container",17),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n ")),2&e){var n=i.kc();i.Db(1),i.Gb("",n.prefixCls,"-active-bar"),i.sc("ngStyle",n.activeBarStyle),i.Db(2),i.sc("ngIf",n.showClear()),i.Db(2),i.Gb("",n.prefixCls,"-suffix"),i.Db(2),i.sc("nzStringTemplateOutlet",n.suffixIcon)}}function Mf(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",21),i.hc("@slideMotion.done",(function(){return i.Dc(n),i.kc().animationDone()})),i.Nc(2,"\n "),i.Zb(3,"div",15),i.Nc(4,"\n "),i.Nc(5,"\n "),i.qc(6),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n ")}if(2&e){var r=i.kc();i.Db(1),i.Kc("left","start"===r.currentPositionX?"-12px":"12px")("top","top"===r.currentPositionY?"-8px":"8px"),i.sc("nzNoAnimation",r.noAnimation)("@slideMotion",r.currentPositionY),i.Db(2),i.Hb("",r.prefixCls,"-dropdown ",r.dropdownClassName,""),i.Jb("ant-picker-dropdown-placement-bottomLeft","bottom"===r.currentPositionY&&"start"===r.currentPositionX)("ant-picker-dropdown-placement-topLeft","top"===r.currentPositionY&&"start"===r.currentPositionX)("ant-picker-dropdown-placement-bottomRight","bottom"===r.currentPositionY&&"end"===r.currentPositionX)("ant-picker-dropdown-placement-topRight","top"===r.currentPositionY&&"end"===r.currentPositionX)("ant-picker-dropdown-range",r.isRange),i.sc("ngStyle",r.popupStyle)}}var Lf=["*"];function Pf(e,t){if(1&e){var n=i.ac();i.Zb(0,"date-range-popup",2),i.hc("panelModeChange",(function(e){return i.Dc(n),i.kc().onPanelModeChange(e)}))("calendarChange",(function(e){return i.Dc(n),i.kc().onCalendarChange(e)}))("resultOk",(function(){return i.Dc(n),i.kc().onResultOk()})),i.Yb()}if(2&e){var r=i.kc();i.sc("isRange",r.isRange)("defaultPickerValue",r.nzDefaultPickerValue)("showWeek",r.showWeek)("panelMode",r.nzMode)("locale",null==r.nzLocale?null:r.nzLocale.lang)("showToday",r.realShowToday)("showTime",r.nzShowTime)("format",r.nzFormat)("dateRender",r.nzDateRender)("disabledDate",r.nzDisabledDate)("disabledTime",r.nzDisabledTime)("placeholder",r.nzPlaceHolder)("extraFooter",r.extraFooter)("ranges",r.nzRanges)}}function Ff(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"decade-header",4),i.hc("valueChange",(function(e){return i.Dc(n),i.kc().activeDate=e}))("panelModeChange",(function(e){return i.Dc(n),i.kc().panelModeChange.emit(e)}))("valueChange",(function(e){return i.Dc(n),i.kc().headerChange.emit(e)})),i.Nc(3,"\n "),i.Yb(),i.Nc(4,"\n "),i.Zb(5,"div"),i.Nc(6,"\n "),i.Zb(7,"decade-table",5),i.hc("valueChange",(function(e){return i.Dc(n),i.kc().onChooseDecade(e)})),i.Yb(),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Wb()}if(2&e){var r=i.kc();i.Db(2),i.sc("value",r.activeDate)("locale",r.locale)("showSuperPreBtn",r.enablePrevNext("prev","decade"))("showSuperNextBtn",r.enablePrevNext("next","decade"))("showNextBtn",!1)("showPreBtn",!1),i.Db(3),i.Gb("",r.prefixCls,"-body"),i.Db(2),i.sc("showWeek",r.showWeek)("activeDate",r.activeDate)("value",r.value)("disabledDate",r.disabledDate)("cellRender",r.dateRender)}}function Rf(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"year-header",4),i.hc("valueChange",(function(e){return i.Dc(n),i.kc().activeDate=e}))("panelModeChange",(function(e){return i.Dc(n),i.kc().panelModeChange.emit(e)}))("valueChange",(function(e){return i.Dc(n),i.kc().headerChange.emit(e)})),i.Nc(3,"\n "),i.Yb(),i.Nc(4,"\n "),i.Zb(5,"div"),i.Nc(6,"\n "),i.Zb(7,"year-table",5),i.hc("valueChange",(function(e){return i.Dc(n),i.kc().onChooseYear(e)})),i.Yb(),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Wb()}if(2&e){var r=i.kc();i.Db(2),i.sc("value",r.activeDate)("locale",r.locale)("showSuperPreBtn",r.enablePrevNext("prev","year"))("showSuperNextBtn",r.enablePrevNext("next","year"))("showNextBtn",!1)("showPreBtn",!1),i.Db(3),i.Gb("",r.prefixCls,"-body"),i.Db(2),i.sc("showWeek",r.showWeek)("activeDate",r.activeDate)("value",r.value)("disabledDate",r.disabledDate)("cellRender",r.dateRender)}}function Vf(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"month-header",6),i.hc("valueChange",(function(e){return i.Dc(n),i.kc().activeDate=e}))("panelModeChange",(function(e){return i.Dc(n),i.kc().panelModeChange.emit(e)}))("valueChange",(function(e){return i.Dc(n),i.kc().headerChange.emit(e)})),i.Nc(3,"\n "),i.Yb(),i.Nc(4,"\n "),i.Zb(5,"div"),i.Nc(6,"\n "),i.Zb(7,"month-table",7),i.hc("valueChange",(function(e){return i.Dc(n),i.kc().onChooseMonth(e)})),i.Yb(),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Wb()}if(2&e){var r=i.kc();i.Db(2),i.sc("value",r.activeDate)("locale",r.locale)("showNextBtn",!1)("showPreBtn",!1),i.Db(3),i.Gb("",r.prefixCls,"-body"),i.Db(2),i.sc("showWeek",r.showWeek)("value",r.value)("activeDate",r.activeDate)("disabledDate",r.disabledDate)("cellRender",r.dateRender)}}function Bf(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"date-header",8),i.hc("valueChange",(function(e){return i.Dc(n),i.kc().activeDate=e}))("panelModeChange",(function(e){return i.Dc(n),i.kc().panelModeChange.emit(e)}))("valueChange",(function(e){return i.Dc(n),i.kc().headerChange.emit(e)})),i.Nc(3,"\n "),i.Yb(),i.Nc(4,"\n "),i.Zb(5,"div"),i.Nc(6,"\n "),i.Zb(7,"date-table",9),i.hc("valueChange",(function(e){return i.Dc(n),i.kc().onSelectDate(e)}))("dayHover",(function(e){return i.Dc(n),i.kc().dayHover.emit(e)})),i.Yb(),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Wb()}if(2&e){var r=i.kc();i.Db(2),i.sc("value",r.activeDate)("locale",r.locale)("showSuperPreBtn",r.enablePrevNext("prev","date"))("showSuperNextBtn",r.enablePrevNext("next","date"))("showPreBtn",r.enablePrevNext("prev","date"))("showNextBtn",r.enablePrevNext("next","date")),i.Db(3),i.Gb("",r.prefixCls,"-body"),i.Db(2),i.sc("locale",r.locale)("showWeek",r.showWeek)("value",r.value)("activeDate",r.activeDate)("disabledDate",r.disabledDate)("cellRender",r.dateRender)("selectedValue",r.selectedValue)("hoverValue",r.hoverValue)}}function Yf(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"nz-time-picker-panel",10),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc().onSelectTime(e)})),i.Yb(),i.Nc(3,"\n "),i.Nc(4,"\n "),i.Wb()}if(2&e){var r=i.kc();i.Db(2),i.sc("nzInDatePicker",!0)("ngModel",null==r.value?null:r.value.nativeDate)("format",r.timeOptions.nzFormat)("nzHourStep",r.timeOptions.nzHourStep)("nzMinuteStep",r.timeOptions.nzMinuteStep)("nzSecondStep",r.timeOptions.nzSecondStep)("nzDisabledHours",r.timeOptions.nzDisabledHours)("nzDisabledMinutes",r.timeOptions.nzDisabledMinutes)("nzDisabledSeconds",r.timeOptions.nzDisabledSeconds)("nzHideDisabledOptions",!!r.timeOptions.nzHideDisabledOptions)("nzDefaultOpenValue",r.timeOptions.nzDefaultOpenValue)("nzUse12Hours",!!r.timeOptions.nzUse12Hours)("nzAddOn",r.timeOptions.nzAddOn)}}function Uf(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"button",6),i.hc("click",(function(){return t.$implicit.onClick()})),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.Fb(n.className),i.tc("title",n.title||null),i.Db(1),i.Pc("\n ",n.label,"\n ")}}function Hf(e,t){1&e&&i.Ub(0,"th",6)}function Wf(e,t){if(1&e&&(i.Zb(0,"th",7),i.Nc(1),i.Yb()),2&e){var n=t.$implicit;i.tc("title",n.title),i.Db(1),i.Pc("\n ",n.content,"\n ")}}function qf(e,t){if(1&e&&(i.Zb(0,"thead"),i.Nc(1,"\n "),i.Zb(2,"tr",3),i.Nc(3,"\n "),i.Lc(4,Hf,1,0,"th",4),i.Nc(5,"\n "),i.Lc(6,Wf,2,2,"th",5),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(4),i.sc("ngIf",n.showWeek),i.Db(2),i.sc("ngForOf",n.headRow)}}function Zf(e,t){if(1&e&&(i.Zb(0,"td",11),i.Nc(1),i.Yb()),2&e){var n=i.kc().$implicit,r=i.kc();i.Gb("",r.prefixCls,"-cell-week"),i.Db(1),i.Pc("\n ",n.weekNum,"\n ")}}function $f(e,t){1&e&&i.Vb(0)}var Gf=function(e){return{$implicit:e}};function Qf(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Nc(2,"\n "),i.Lc(3,$f,1,0,"ng-container",16),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(3),i.sc("ngTemplateOutlet",n.cellRender)("ngTemplateOutletContext",i.vc(2,Gf,n.value))}}function Xf(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"span",17),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(2),i.sc("innerHTML",n.cellRender,i.Ec)}}function Kf(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit,r=i.kc(2);i.Db(2),i.Gb("",r.prefixCls,"-cell-inner"),i.Eb("aria-selected",n.isSelected)("aria-disabled",n.isDisabled),i.Db(1),i.Pc("\n ",n.content,"\n ")}}function Jf(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Xb(2,13),i.Nc(3,"\n "),i.Lc(4,Qf,5,4,"ng-container",14),i.Nc(5,"\n "),i.Lc(6,Xf,4,1,"ng-container",14),i.Nc(7,"\n "),i.Lc(8,Kf,5,6,"ng-container",15),i.Nc(9,"\n "),i.Wb(),i.Nc(10,"\n "),i.Wb()),2&e){var n=i.kc().$implicit,r=i.kc(2);i.Db(2),i.sc("ngSwitch",!0),i.Db(2),i.sc("ngSwitchCase",r.isTemplateRef(n.cellRender)),i.Db(2),i.sc("ngSwitchCase",r.isNonEmptyString(n.cellRender))}}function eg(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Wb())}function tg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,eg,2,0,"ng-container",16),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(2),i.sc("ngTemplateOutlet",n.fullCellRender)("ngTemplateOutletContext",i.vc(2,Gf,n.value))}}function ng(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Wb())}function ig(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div"),i.Nc(2),i.Yb(),i.Nc(3,"\n "),i.Zb(4,"div"),i.Nc(5,"\n "),i.Lc(6,ng,2,0,"ng-container",16),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n ")),2&e){var n=i.kc(2).$implicit,r=i.kc(2);i.Db(1),i.Gb("",r.prefixCls,"-date-value"),i.Db(1),i.Oc(n.content),i.Db(2),i.Gb("",r.prefixCls,"-date-content"),i.Db(2),i.sc("ngTemplateOutlet",n.cellRender)("ngTemplateOutletContext",i.vc(9,Gf,n.value))}}function rg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3,"\n "),i.Lc(4,tg,4,4,"ng-container",18),i.Nc(5,"\n "),i.Lc(6,ig,9,11,"ng-template",null,19,i.Mc),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Wb()),2&e){var n=i.Ac(7),r=i.kc().$implicit,o=i.kc(2);i.Db(2),i.Gb("",o.prefixCls,"-date ant-picker-cell-inner"),i.Jb("ant-picker-calendar-date-today",r.isToday),i.Db(2),i.sc("ngIf",r.fullCellRender)("ngIfElse",n)}}function og(e,t){if(1&e&&(i.Zb(0,"td",12),i.hc("click",(function(){var e=t.$implicit;return e.isDisabled?null:e.onClick()}))("mouseenter",(function(){return t.$implicit.onMouseEnter()})),i.Nc(1,"\n "),i.Xb(2,13),i.Nc(3,"\n "),i.Lc(4,Jf,11,3,"ng-container",14),i.Nc(5,"\n "),i.Lc(6,rg,10,7,"ng-container",14),i.Nc(7,"\n "),i.Wb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc(2);i.tc("title",n.title),i.sc("ngClass",n.classMap),i.Db(2),i.sc("ngSwitch",r.prefixCls),i.Db(2),i.sc("ngSwitchCase","ant-picker"),i.Db(2),i.sc("ngSwitchCase","ant-picker-calendar")}}function ag(e,t){if(1&e&&(i.Zb(0,"tr",8),i.Nc(1,"\n "),i.Lc(2,Zf,2,4,"td",9),i.Nc(3,"\n "),i.Lc(4,og,9,5,"td",10),i.Nc(5,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc();i.sc("ngClass",n.classMap),i.Db(2),i.sc("ngIf",n.weekNum),i.Db(2),i.sc("ngForOf",n.dateCells)("ngForTrackBy",r.trackByBodyColumn)}}function sg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"button",6),i.hc("click",(function(){return t.$implicit.onClick()})),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.Fb(n.className),i.tc("title",n.title||null),i.Db(1),i.Pc("\n ",n.label,"\n ")}}function cg(e,t){1&e&&i.Ub(0,"th",6)}function ug(e,t){if(1&e&&(i.Zb(0,"th",7),i.Nc(1),i.Yb()),2&e){var n=t.$implicit;i.tc("title",n.title),i.Db(1),i.Pc("\n ",n.content,"\n ")}}function lg(e,t){if(1&e&&(i.Zb(0,"thead"),i.Nc(1,"\n "),i.Zb(2,"tr",3),i.Nc(3,"\n "),i.Lc(4,cg,1,0,"th",4),i.Nc(5,"\n "),i.Lc(6,ug,2,2,"th",5),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(4),i.sc("ngIf",n.showWeek),i.Db(2),i.sc("ngForOf",n.headRow)}}function pg(e,t){if(1&e&&(i.Zb(0,"td",11),i.Nc(1),i.Yb()),2&e){var n=i.kc().$implicit,r=i.kc();i.Gb("",r.prefixCls,"-cell-week"),i.Db(1),i.Pc("\n ",n.weekNum,"\n ")}}function hg(e,t){1&e&&i.Vb(0)}function dg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Nc(2,"\n "),i.Lc(3,hg,1,0,"ng-container",16),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(3),i.sc("ngTemplateOutlet",n.cellRender)("ngTemplateOutletContext",i.vc(2,Gf,n.value))}}function fg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"span",17),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(2),i.sc("innerHTML",n.cellRender,i.Ec)}}function gg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit,r=i.kc(2);i.Db(2),i.Gb("",r.prefixCls,"-cell-inner"),i.Eb("aria-selected",n.isSelected)("aria-disabled",n.isDisabled),i.Db(1),i.Pc("\n ",n.content,"\n ")}}function bg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Xb(2,13),i.Nc(3,"\n "),i.Lc(4,dg,5,4,"ng-container",14),i.Nc(5,"\n "),i.Lc(6,fg,4,1,"ng-container",14),i.Nc(7,"\n "),i.Lc(8,gg,5,6,"ng-container",15),i.Nc(9,"\n "),i.Wb(),i.Nc(10,"\n "),i.Wb()),2&e){var n=i.kc().$implicit,r=i.kc(2);i.Db(2),i.sc("ngSwitch",!0),i.Db(2),i.sc("ngSwitchCase",r.isTemplateRef(n.cellRender)),i.Db(2),i.sc("ngSwitchCase",r.isNonEmptyString(n.cellRender))}}function mg(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Wb())}function vg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,mg,2,0,"ng-container",16),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(2),i.sc("ngTemplateOutlet",n.fullCellRender)("ngTemplateOutletContext",i.vc(2,Gf,n.value))}}function yg(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Wb())}function wg(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div"),i.Nc(2),i.Yb(),i.Nc(3,"\n "),i.Zb(4,"div"),i.Nc(5,"\n "),i.Lc(6,yg,2,0,"ng-container",16),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n ")),2&e){var n=i.kc(2).$implicit,r=i.kc(2);i.Db(1),i.Gb("",r.prefixCls,"-date-value"),i.Db(1),i.Oc(n.content),i.Db(2),i.Gb("",r.prefixCls,"-date-content"),i.Db(2),i.sc("ngTemplateOutlet",n.cellRender)("ngTemplateOutletContext",i.vc(9,Gf,n.value))}}function Og(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3,"\n "),i.Lc(4,vg,4,4,"ng-container",18),i.Nc(5,"\n "),i.Lc(6,wg,9,11,"ng-template",null,19,i.Mc),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Wb()),2&e){var n=i.Ac(7),r=i.kc().$implicit,o=i.kc(2);i.Db(2),i.Gb("",o.prefixCls,"-date ant-picker-cell-inner"),i.Jb("ant-picker-calendar-date-today",r.isToday),i.Db(2),i.sc("ngIf",r.fullCellRender)("ngIfElse",n)}}function Cg(e,t){if(1&e&&(i.Zb(0,"td",12),i.hc("click",(function(){var e=t.$implicit;return e.isDisabled?null:e.onClick()}))("mouseenter",(function(){return t.$implicit.onMouseEnter()})),i.Nc(1,"\n "),i.Xb(2,13),i.Nc(3,"\n "),i.Lc(4,bg,11,3,"ng-container",14),i.Nc(5,"\n "),i.Lc(6,Og,10,7,"ng-container",14),i.Nc(7,"\n "),i.Wb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc(2);i.tc("title",n.title),i.sc("ngClass",n.classMap),i.Db(2),i.sc("ngSwitch",r.prefixCls),i.Db(2),i.sc("ngSwitchCase","ant-picker"),i.Db(2),i.sc("ngSwitchCase","ant-picker-calendar")}}function Sg(e,t){if(1&e&&(i.Zb(0,"tr",8),i.Nc(1,"\n "),i.Lc(2,pg,2,4,"td",9),i.Nc(3,"\n "),i.Lc(4,Cg,9,5,"td",10),i.Nc(5,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc();i.sc("ngClass",n.classMap),i.Db(2),i.sc("ngIf",n.weekNum),i.Db(2),i.sc("ngForOf",n.dateCells)("ngForTrackBy",r.trackByBodyColumn)}}function zg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"button",6),i.hc("click",(function(){return t.$implicit.onClick()})),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.Fb(n.className),i.tc("title",n.title||null),i.Db(1),i.Pc("\n ",n.label,"\n ")}}function Tg(e,t){1&e&&i.Ub(0,"th",6)}function _g(e,t){if(1&e&&(i.Zb(0,"th",7),i.Nc(1),i.Yb()),2&e){var n=t.$implicit;i.tc("title",n.title),i.Db(1),i.Pc("\n ",n.content,"\n ")}}function kg(e,t){if(1&e&&(i.Zb(0,"thead"),i.Nc(1,"\n "),i.Zb(2,"tr",3),i.Nc(3,"\n "),i.Lc(4,Tg,1,0,"th",4),i.Nc(5,"\n "),i.Lc(6,_g,2,2,"th",5),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(4),i.sc("ngIf",n.showWeek),i.Db(2),i.sc("ngForOf",n.headRow)}}function Dg(e,t){if(1&e&&(i.Zb(0,"td",11),i.Nc(1),i.Yb()),2&e){var n=i.kc().$implicit,r=i.kc();i.Gb("",r.prefixCls,"-cell-week"),i.Db(1),i.Pc("\n ",n.weekNum,"\n ")}}function xg(e,t){1&e&&i.Vb(0)}function Eg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Nc(2,"\n "),i.Lc(3,xg,1,0,"ng-container",16),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(3),i.sc("ngTemplateOutlet",n.cellRender)("ngTemplateOutletContext",i.vc(2,Gf,n.value))}}function Ng(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"span",17),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(2),i.sc("innerHTML",n.cellRender,i.Ec)}}function jg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit,r=i.kc(2);i.Db(2),i.Gb("",r.prefixCls,"-cell-inner"),i.Eb("aria-selected",n.isSelected)("aria-disabled",n.isDisabled),i.Db(1),i.Pc("\n ",n.content,"\n ")}}function Ig(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Xb(2,13),i.Nc(3,"\n "),i.Lc(4,Eg,5,4,"ng-container",14),i.Nc(5,"\n "),i.Lc(6,Ng,4,1,"ng-container",14),i.Nc(7,"\n "),i.Lc(8,jg,5,6,"ng-container",15),i.Nc(9,"\n "),i.Wb(),i.Nc(10,"\n "),i.Wb()),2&e){var n=i.kc().$implicit,r=i.kc(2);i.Db(2),i.sc("ngSwitch",!0),i.Db(2),i.sc("ngSwitchCase",r.isTemplateRef(n.cellRender)),i.Db(2),i.sc("ngSwitchCase",r.isNonEmptyString(n.cellRender))}}function Ag(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Wb())}function Mg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,Ag,2,0,"ng-container",16),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(2),i.sc("ngTemplateOutlet",n.fullCellRender)("ngTemplateOutletContext",i.vc(2,Gf,n.value))}}function Lg(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Wb())}function Pg(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div"),i.Nc(2),i.Yb(),i.Nc(3,"\n "),i.Zb(4,"div"),i.Nc(5,"\n "),i.Lc(6,Lg,2,0,"ng-container",16),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n ")),2&e){var n=i.kc(2).$implicit,r=i.kc(2);i.Db(1),i.Gb("",r.prefixCls,"-date-value"),i.Db(1),i.Oc(n.content),i.Db(2),i.Gb("",r.prefixCls,"-date-content"),i.Db(2),i.sc("ngTemplateOutlet",n.cellRender)("ngTemplateOutletContext",i.vc(9,Gf,n.value))}}function Fg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3,"\n "),i.Lc(4,Mg,4,4,"ng-container",18),i.Nc(5,"\n "),i.Lc(6,Pg,9,11,"ng-template",null,19,i.Mc),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Wb()),2&e){var n=i.Ac(7),r=i.kc().$implicit,o=i.kc(2);i.Db(2),i.Gb("",o.prefixCls,"-date ant-picker-cell-inner"),i.Jb("ant-picker-calendar-date-today",r.isToday),i.Db(2),i.sc("ngIf",r.fullCellRender)("ngIfElse",n)}}function Rg(e,t){if(1&e&&(i.Zb(0,"td",12),i.hc("click",(function(){var e=t.$implicit;return e.isDisabled?null:e.onClick()}))("mouseenter",(function(){return t.$implicit.onMouseEnter()})),i.Nc(1,"\n "),i.Xb(2,13),i.Nc(3,"\n "),i.Lc(4,Ig,11,3,"ng-container",14),i.Nc(5,"\n "),i.Lc(6,Fg,10,7,"ng-container",14),i.Nc(7,"\n "),i.Wb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc(2);i.tc("title",n.title),i.sc("ngClass",n.classMap),i.Db(2),i.sc("ngSwitch",r.prefixCls),i.Db(2),i.sc("ngSwitchCase","ant-picker"),i.Db(2),i.sc("ngSwitchCase","ant-picker-calendar")}}function Vg(e,t){if(1&e&&(i.Zb(0,"tr",8),i.Nc(1,"\n "),i.Lc(2,Dg,2,4,"td",9),i.Nc(3,"\n "),i.Lc(4,Rg,9,5,"td",10),i.Nc(5,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc();i.sc("ngClass",n.classMap),i.Db(2),i.sc("ngIf",n.weekNum),i.Db(2),i.sc("ngForOf",n.dateCells)("ngForTrackBy",r.trackByBodyColumn)}}function Bg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"button",6),i.hc("click",(function(){return t.$implicit.onClick()})),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.Fb(n.className),i.tc("title",n.title||null),i.Db(1),i.Pc("\n ",n.label,"\n ")}}function Yg(e,t){1&e&&i.Ub(0,"th",6)}function Ug(e,t){if(1&e&&(i.Zb(0,"th",7),i.Nc(1),i.Yb()),2&e){var n=t.$implicit;i.tc("title",n.title),i.Db(1),i.Pc("\n ",n.content,"\n ")}}function Hg(e,t){if(1&e&&(i.Zb(0,"thead"),i.Nc(1,"\n "),i.Zb(2,"tr",3),i.Nc(3,"\n "),i.Lc(4,Yg,1,0,"th",4),i.Nc(5,"\n "),i.Lc(6,Ug,2,2,"th",5),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(4),i.sc("ngIf",n.showWeek),i.Db(2),i.sc("ngForOf",n.headRow)}}function Wg(e,t){if(1&e&&(i.Zb(0,"td",11),i.Nc(1),i.Yb()),2&e){var n=i.kc().$implicit,r=i.kc();i.Gb("",r.prefixCls,"-cell-week"),i.Db(1),i.Pc("\n ",n.weekNum,"\n ")}}function qg(e,t){1&e&&i.Vb(0)}function Zg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Nc(2,"\n "),i.Lc(3,qg,1,0,"ng-container",16),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(3),i.sc("ngTemplateOutlet",n.cellRender)("ngTemplateOutletContext",i.vc(2,Gf,n.value))}}function $g(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"span",17),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(2),i.sc("innerHTML",n.cellRender,i.Ec)}}function Gg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3),i.Yb(),i.Nc(4,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit,r=i.kc(2);i.Db(2),i.Gb("",r.prefixCls,"-cell-inner"),i.Eb("aria-selected",n.isSelected)("aria-disabled",n.isDisabled),i.Db(1),i.Pc("\n ",n.content,"\n ")}}function Qg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Xb(2,13),i.Nc(3,"\n "),i.Lc(4,Zg,5,4,"ng-container",14),i.Nc(5,"\n "),i.Lc(6,$g,4,1,"ng-container",14),i.Nc(7,"\n "),i.Lc(8,Gg,5,6,"ng-container",15),i.Nc(9,"\n "),i.Wb(),i.Nc(10,"\n "),i.Wb()),2&e){var n=i.kc().$implicit,r=i.kc(2);i.Db(2),i.sc("ngSwitch",!0),i.Db(2),i.sc("ngSwitchCase",r.isTemplateRef(n.cellRender)),i.Db(2),i.sc("ngSwitchCase",r.isNonEmptyString(n.cellRender))}}function Xg(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Wb())}function Kg(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,Xg,2,0,"ng-container",16),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(2),i.sc("ngTemplateOutlet",n.fullCellRender)("ngTemplateOutletContext",i.vc(2,Gf,n.value))}}function Jg(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Wb())}function eb(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div"),i.Nc(2),i.Yb(),i.Nc(3,"\n "),i.Zb(4,"div"),i.Nc(5,"\n "),i.Lc(6,Jg,2,0,"ng-container",16),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n ")),2&e){var n=i.kc(2).$implicit,r=i.kc(2);i.Db(1),i.Gb("",r.prefixCls,"-date-value"),i.Db(1),i.Oc(n.content),i.Db(2),i.Gb("",r.prefixCls,"-date-content"),i.Db(2),i.sc("ngTemplateOutlet",n.cellRender)("ngTemplateOutletContext",i.vc(9,Gf,n.value))}}function tb(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div"),i.Nc(3,"\n "),i.Lc(4,Kg,4,4,"ng-container",18),i.Nc(5,"\n "),i.Lc(6,eb,9,11,"ng-template",null,19,i.Mc),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Wb()),2&e){var n=i.Ac(7),r=i.kc().$implicit,o=i.kc(2);i.Db(2),i.Gb("",o.prefixCls,"-date ant-picker-cell-inner"),i.Jb("ant-picker-calendar-date-today",r.isToday),i.Db(2),i.sc("ngIf",r.fullCellRender)("ngIfElse",n)}}function nb(e,t){if(1&e&&(i.Zb(0,"td",12),i.hc("click",(function(){var e=t.$implicit;return e.isDisabled?null:e.onClick()}))("mouseenter",(function(){return t.$implicit.onMouseEnter()})),i.Nc(1,"\n "),i.Xb(2,13),i.Nc(3,"\n "),i.Lc(4,Qg,11,3,"ng-container",14),i.Nc(5,"\n "),i.Lc(6,tb,10,7,"ng-container",14),i.Nc(7,"\n "),i.Wb(),i.Nc(8,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc(2);i.tc("title",n.title),i.sc("ngClass",n.classMap),i.Db(2),i.sc("ngSwitch",r.prefixCls),i.Db(2),i.sc("ngSwitchCase","ant-picker"),i.Db(2),i.sc("ngSwitchCase","ant-picker-calendar")}}function ib(e,t){if(1&e&&(i.Zb(0,"tr",8),i.Nc(1,"\n "),i.Lc(2,Wg,2,4,"td",9),i.Nc(3,"\n "),i.Lc(4,nb,9,5,"td",10),i.Nc(5,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.kc();i.sc("ngClass",n.classMap),i.Db(2),i.sc("ngIf",n.weekNum),i.Db(2),i.sc("ngForOf",n.dateCells)("ngForTrackBy",r.trackByBodyColumn)}}var rb={nzDisabledHours:function(){return[]},nzDisabledMinutes:function(){return[]},nzDisabledSeconds:function(){return[]}};function ob(e,t){var n=t?t(e&&e.nativeDate):{};return Object(zt.a)(Object(zt.a)({},rb),n)}function ab(e,t,n){return!(!e||t&&t(e.nativeDate)||n&&!function(e,t){return function(e,t){var n=!1;if(e){var i=e.getHours(),r=e.getMinutes(),o=e.getSeconds();n=-1!==t.nzDisabledHours().indexOf(i)||-1!==t.nzDisabledMinutes(i).indexOf(r)||-1!==t.nzDisabledSeconds(i,r).indexOf(o)}return!n}(e,ob(e,t))}(e,n))}function sb(e){return e&&e.replace(/Y/g,"y").replace(/D/g,"d")}var cb=function(){function e(e){this.dateHelper=e,this.showToday=!1,this.hasTimePicker=!1,this.isRange=!1,this.okDisabled=!1,this.rangeQuickSelector=null,this.clickOk=new i.n,this.clickToday=new i.n,this.prefixCls="ant-picker",this.isTemplateRef=es.s,this.isNonEmptyString=es.o,this.isTodayDisabled=!1,this.todayTitle="",this.now=new Bd}return e.prototype.ngOnChanges=function(e){if(e.disabledDate&&(this.isTodayDisabled=!(!this.disabledDate||!this.disabledDate(this.now.nativeDate))),e.locale){var t=sb(this.locale.dateFormat);this.todayTitle=this.dateHelper.format(this.now.nativeDate,t)}},e.prototype.onClickToday=function(){this.clickToday.emit(this.now.clone())},e.\u0275fac=function(t){return new(t||e)(i.Tb(qp))},e.\u0275cmp=i.Nb({type:e,selectors:[["calendar-footer"]],inputs:{showToday:"showToday",hasTimePicker:"hasTimePicker",isRange:"isRange",okDisabled:"okDisabled",rangeQuickSelector:"rangeQuickSelector",locale:"locale",disabledDate:"disabledDate",extraFooter:"extraFooter"},outputs:{clickOk:"clickOk",clickToday:"clickToday"},exportAs:["calendarFooter"],features:[i.Bb],decls:10,vars:6,consts:[[3,"class",4,"ngIf"],["role","button",3,"class","title","click",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngTemplateOutlet"],[3,"innerHTML"],["role","button",3,"title","click"],[3,"click"],["nz-button","","type","button","nzType","primary","nzSize","small",3,"disabled","click"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div"),i.Nc(2,"\n "),i.Lc(3,$d,9,6,"div",0),i.Nc(4,"\n "),i.Lc(5,Gd,2,6,"a",1),i.Nc(6,"\n "),i.Lc(7,Jd,8,6,"ul",0),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(1),i.Gb("",t.prefixCls,"-footer"),i.Db(2),i.sc("ngIf",t.extraFooter),i.Db(2),i.sc("ngIf",t.showToday&&!t.hasTimePicker),i.Db(2),i.sc("ngIf",t.hasTimePicker||t.rangeQuickSelector))},directives:[Vr.t,Vr.x,Vr.y,Vr.A,Wu.a,Ud.a,Hd.a],encapsulation:2,changeDetection:0}),e}(),ub=function(){function e(){this.activeInput="left",this.arrowPositionStyle={},this.isRange=!1,this.valueChange$=new Os.a(1),this.emitValue$=new kt.a,this.inputPartChange$=new kt.a}return e.prototype.initValue=function(){this.isRange?(this.setActiveDate([]),this.value=this.initialValue=[]):this.value=this.initialValue=null},e.prototype.hasValue=function(e){return void 0===e&&(e=this.value),Array.isArray(e)?!!e[0]&&!!e[1]:!!e},e.prototype.makeValue=function(e){return this.isRange?e?e.map((function(e){return new Bd(e)})):[]:e?new Bd(e):null},e.prototype.setActiveDate=function(e,t){void 0===t&&(t=!1),this.activeDate=this.isRange?t?function(e){var t=Object(zt.e)(e||[],2),n=t[1],i=t[0]||new Bd,r=(null==n?void 0:n.isSameMonth(i))?n.addMonths(1):n||i.addMonths(1);return[i,r]}(e):e:Vd(e)},e.prototype.setValue=function(e){this.value=e,this.valueChange$.next(this.value)},e.prototype.getActiveIndex=function(e){return void 0===e&&(e=this.activeInput),{left:0,right:1}[e]},e.prototype.ngOnDestroy=function(){this.valueChange$.complete(),this.emitValue$.complete(),this.inputPartChange$.complete()},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),lb=function(){function e(e,t){var n=this;this.datePickerService=e,this.cdr=t,this.panelModeChange=new i.n,this.calendarChange=new i.n,this.resultOk=new i.n,this.prefixCls="ant-picker",this.endPanelMode="date",this.timeOptions=null,this.hoverValue=[],this.destroy$=new kt.a,this.disabledStartTime=function(e){return n.disabledTime&&n.disabledTime(e,"start")},this.disabledEndTime=function(e){return n.disabledTime&&n.disabledTime(e,"end")}}return Object.defineProperty(e.prototype,"hasTimePicker",{get:function(){return!!this.showTime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasFooter",{get:function(){return this.showToday||this.hasTimePicker||!!this.extraFooter||!!this.ranges},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.datePickerService.valueChange$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.initActiveDate(),e.cdr.markForCheck()}))},e.prototype.ngOnChanges=function(e){(e.showTime||e.disabledTime)&&this.showTime&&this.buildTimeOptions(),e.panelMode&&(this.endPanelMode=this.panelMode)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.initActiveDate=function(){var e=this.datePickerService.hasValue()?this.datePickerService.value:this.datePickerService.makeValue(this.defaultPickerValue);this.datePickerService.setActiveDate(e,!this.showTime)},e.prototype.onClickOk=function(){var e="left"===this.datePickerService.activeInput?"right":"left",t=this.datePickerService.value;this.isAllowed(t,!0)?this.resultOk.emit():this.isRange&&this.isOneAllowed(t)?this.datePickerService.inputPartChange$.next(e):this.datePickerService.inputPartChange$.next()},e.prototype.onClickToday=function(e){this.changeValueFromSelect(e,!this.showTime)},e.prototype.onDayHover=function(e){if(this.isRange){var t=this.datePickerService.value[{left:1,right:0}[this.datePickerService.activeInput]];t&&(this.hoverValue=t.isBeforeDay(e)?[t,e]:[e,t])}},e.prototype.onPanelModeChange=function(e,t){if(this.isRange){var n=this.datePickerService.getActiveIndex(t);this.panelMode=0===n?[e,this.panelMode[1]]:[this.panelMode[0],e]}else this.panelMode=e;this.panelModeChange.emit(this.panelMode)},e.prototype.onActiveDateChange=function(e,t){this.datePickerService.activeDate=this.isRange?"left"===t?[e,e.addMonths(1)]:[e.addMonths(-1),e]:e},e.prototype.onSelectTime=function(e,t){if(this.isRange){var n=Vd(this.datePickerService.value),i=this.datePickerService.getActiveIndex(t);n[i]=this.overrideHms(e,n[i]),this.datePickerService.setValue(n)}else n=this.overrideHms(e,this.datePickerService.value),this.datePickerService.setValue(n);this.datePickerService.inputPartChange$.next(),this.buildTimeOptions()},e.prototype.changeValueFromSelect=function(e,t){if(void 0===t&&(t=!0),this.isRange){var n=Vd(this.datePickerService.value),i=void 0;if("left"===this.datePickerService.activeInput?(i="right",n[0]=e):(i="left",n[1]=e),n=function(e){if(Array.isArray(e)){var t=Object(zt.e)(e,2),n=t[0],i=t[1];return n&&i&&n.isAfterSecond(i)?[i,n]:[n,i]}return e}(n),this.hoverValue=n,this.datePickerService.setValue(n),this.datePickerService.setActiveDate(n,!this.showTime),this.datePickerService.inputPartChange$.next(),!this.isAllowed(n))return;t&&(this.isBothAllowed(n)?(this.calendarChange.emit(n),this.clearHoverValue(),this.datePickerService.emitValue$.next()):(this.calendarChange.emit([e.clone()]),this.datePickerService.inputPartChange$.next(i)))}else{if(this.datePickerService.setValue(e),this.datePickerService.setActiveDate(e,!this.showTime),this.datePickerService.inputPartChange$.next(),!this.isAllowed(e))return;t&&this.datePickerService.emitValue$.next()}},e.prototype.getPanelMode=function(e,t){return this.isRange?e[this.datePickerService.getActiveIndex(t)]:e},e.prototype.getValue=function(e){return this.isRange?(this.datePickerService.value||[])[this.datePickerService.getActiveIndex(e)]:this.datePickerService.value},e.prototype.getActiveDate=function(e){return this.isRange?this.datePickerService.activeDate[this.datePickerService.getActiveIndex(e)]:this.datePickerService.activeDate},e.prototype.isOneAllowed=function(e){var t=this.datePickerService.getActiveIndex();return ab(e[t],this.disabledDate,[this.disabledStartTime,this.disabledEndTime][t])},e.prototype.isBothAllowed=function(e){return ab(e[0],this.disabledDate,this.disabledStartTime)&&ab(e[1],this.disabledDate,this.disabledEndTime)},e.prototype.isAllowed=function(e,t){return void 0===t&&(t=!1),this.isRange?t?this.isBothAllowed(e):this.isOneAllowed(e):ab(e,this.disabledDate,this.disabledTime)},e.prototype.getTimeOptions=function(e){return this.showTime&&this.timeOptions?this.timeOptions instanceof Array?this.timeOptions[this.datePickerService.getActiveIndex(e)]:this.timeOptions:null},e.prototype.onClickPresetRange=function(e){var t="function"==typeof e?e():e;t&&(this.datePickerService.setValue([new Bd(t[0]),new Bd(t[1])]),this.resultOk.emit())},e.prototype.onPresetRangeMouseLeave=function(){this.clearHoverValue()},e.prototype.onHoverPresetRange=function(e){"function"!=typeof e&&(this.hoverValue=[new Bd(e[0]),new Bd(e[1])])},e.prototype.getObjectKeys=function(e){return e?Object.keys(e):[]},e.prototype.show=function(e){return!(this.showTime&&this.isRange&&this.datePickerService.activeInput!==e)},e.prototype.clearHoverValue=function(){this.hoverValue=[]},e.prototype.buildTimeOptions=function(){if(this.showTime){var e="object"==typeof this.showTime?this.showTime:{};if(this.isRange){var t=this.datePickerService.value;this.timeOptions=[this.overrideTimeOptions(e,t[0],"start"),this.overrideTimeOptions(e,t[1],"end")]}else this.timeOptions=this.overrideTimeOptions(e,this.datePickerService.value)}else this.timeOptions=null},e.prototype.overrideTimeOptions=function(e,t,n){var i;return i=n?"start"===n?this.disabledStartTime:this.disabledEndTime:this.disabledTime,Object(zt.a)(Object(zt.a)({},e),ob(t,i))},e.prototype.overrideHms=function(e,t){return e=e||new Bd,(t=t||new Bd).setHms(e.getHours(),e.getMinutes(),e.getSeconds())},e.\u0275fac=function(t){return new(t||e)(i.Tb(ub),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["date-range-popup"]],inputs:{panelMode:"panelMode",isRange:"isRange",showWeek:"showWeek",locale:"locale",format:"format",placeholder:"placeholder",disabledDate:"disabledDate",disabledTime:"disabledTime",showToday:"showToday",showTime:"showTime",extraFooter:"extraFooter",ranges:"ranges",dateRender:"dateRender",defaultPickerValue:"defaultPickerValue"},outputs:{panelModeChange:"panelModeChange",calendarChange:"calendarChange",resultOk:"resultOk"},exportAs:["dateRangePopup"],features:[i.Bb],decls:19,vars:2,consts:[[4,"ngIf","ngIfElse"],["singlePanel",""],["tplInnerPopup",""],["tplFooter",""],["tplRangePart",""],["tplRangeQuickSelector",""],[3,"ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["tabindex","-1"],[3,"showWeek","endPanelMode","partType","locale","showTimePicker","timeOptions","panelMode","activeDate","value","disabledDate","dateRender","selectedValue","hoverValue","panelModeChange","dayHover","selectDate","selectTime","headerChange",4,"ngIf"],[3,"showWeek","endPanelMode","partType","locale","showTimePicker","timeOptions","panelMode","activeDate","value","disabledDate","dateRender","selectedValue","hoverValue","panelModeChange","dayHover","selectDate","selectTime","headerChange"],[3,"locale","isRange","showToday","hasTimePicker","okDisabled","extraFooter","rangeQuickSelector","clickOk","clickToday",4,"ngIf"],[3,"locale","isRange","showToday","hasTimePicker","okDisabled","extraFooter","rangeQuickSelector","clickOk","clickToday"],[3,"class","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],[3,"click","mouseenter","mouseleave"],[1,"ant-tag","ant-tag-blue"]],template:function(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,af,19,21,"ng-container",0),i.Nc(2,"\n "),i.Lc(3,uf,12,11,"ng-template",null,1,i.Mc),i.Nc(5,"\n\n "),i.Lc(6,pf,4,1,"ng-template",null,2,i.Mc),i.Nc(8,"\n\n "),i.Lc(9,df,3,1,"ng-template",null,3,i.Mc),i.Nc(11,"\n\n "),i.Lc(12,bf,6,7,"ng-template",null,4,i.Mc),i.Nc(14,"\n\n "),i.Nc(15,"\n "),i.Lc(16,vf,3,1,"ng-template",null,5,i.Mc),i.Nc(18,"\n ")),2&e){var n=i.Ac(4);i.Db(1),i.sc("ngIf",t.isRange)("ngIfElse",n)}},directives:function(){return[Vr.t,Vr.w,Vr.A,fb,cb,Vr.s]},encapsulation:2,changeDetection:0}),e}(),pb=function(){function e(e,t,n,r,o){this.elementRef=e,this.dateHelper=t,this.changeDetector=n,this.datePickerService=r,this.noAnimation=!1,this.isRange=!1,this.open=void 0,this.disabled=!1,this.popupStyle=null,this.focusChange=new i.n,this.valueChange=new i.n,this.openChange=new i.n,this.destroy$=new kt.a,this.prefixCls="ant-picker",this.activeBarStyle={position:"absolute"},this.animationOpenState=!1,this.overlayOpen=!1,this.overlayPositions=[{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"}],this.currentPositionX="start",this.currentPositionY="bottom",this.document=o,this.origin=new Ur.b(this.elementRef),this.updateInputValue()}return Object.defineProperty(e.prototype,"realOpenState",{get:function(){return this.isOpenHandledByUser()?!!this.open:this.overlayOpen},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.inputSize=Math.max(10,this.format.length)+2,this.datePickerService.valueChange$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.updateInputValue(),e.changeDetector.markForCheck()}))},e.prototype.ngAfterViewInit=function(){var e=this;this.autoFocus&&this.focus(),this.isRange&&(this.resetInputWidthAndArrowLeft(),Object(Cs.a)(window,"resize").pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.resetInputWidthAndArrowLeft()}))),this.datePickerService.inputPartChange$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){var n;t&&(e.datePickerService.activeInput=t),e.datePickerService.arrowPositionStyle={left:"left"===e.datePickerService.activeInput?"0px":e.arrowLeft+"px"},e.activeBarStyle=Object(zt.a)(Object(zt.a)(Object(zt.a)({},e.activeBarStyle),e.datePickerService.arrowPositionStyle),{width:e.inputWidth+"px"}),e.document.activeElement!==e.getInput(e.datePickerService.activeInput)&&e.focus(),null===(n=e.panel)||void 0===n||n.cdr.markForCheck(),e.changeDetector.markForCheck()}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.ngOnChanges=function(e){e.open&&this.animationStart()},e.prototype.resetInputWidthAndArrowLeft=function(){var e,t;this.inputWidth=(null===(e=this.rangePickerInputs)||void 0===e?void 0:e.first.nativeElement.offsetWidth)||0,this.arrowLeft=this.inputWidth+(null===(t=this.separatorElement)||void 0===t?void 0:t.nativeElement.offsetWidth)||0},e.prototype.getInput=function(e){return this.isRange?"left"===e?this.rangePickerInputs.first.nativeElement:this.rangePickerInputs.last.nativeElement:this.pickerInput.nativeElement},e.prototype.focus=function(){this.getInput(this.datePickerService.activeInput).focus()},e.prototype.onFocus=function(e){e&&this.datePickerService.inputPartChange$.next(e),this.focusChange.emit(!0)},e.prototype.onBlur=function(){this.focusChange.emit(!1)},e.prototype.showOverlay=function(){var e=this;this.realOpenState||(this.overlayOpen=!0,this.animationStart(),this.focus(),this.openChange.emit(!0),setTimeout((function(){e.cdkConnectedOverlay&&e.cdkConnectedOverlay.overlayRef&&e.cdkConnectedOverlay.overlayRef.updatePosition()})))},e.prototype.hideOverlay=function(){this.realOpenState&&(this.overlayOpen=!1,this.openChange.emit(!1),this.focus())},e.prototype.showClear=function(){return!this.disabled&&!this.isEmptyValue(this.datePickerService.value)&&!!this.allowClear},e.prototype.onClickInputBox=function(e,t){e.stopPropagation(),this.disabled||this.isOpenHandledByUser()||this.showOverlay(),this.onFocus(t)},e.prototype.onClickBackdrop=function(){this.panel.isAllowed(this.datePickerService.value,!0)?(this.updateInputValue(),this.datePickerService.emitValue$.next()):(this.datePickerService.setValue(this.datePickerService.initialValue),this.hideOverlay())},e.prototype.onOverlayDetach=function(){this.hideOverlay()},e.prototype.onOverlayKeydown=function(e){"Escape"===e.key&&this.datePickerService.setValue(this.datePickerService.initialValue)},e.prototype.onPositionChange=function(e){this.currentPositionX=e.connectionPair.originX,this.currentPositionY=e.connectionPair.originY,this.changeDetector.detectChanges()},e.prototype.onClickClear=function(e){e.preventDefault(),e.stopPropagation(),this.datePickerService.setValue(this.isRange?[]:null),this.datePickerService.emitValue$.next()},e.prototype.updateInputValue=function(){var e=this,t=this.datePickerService.value;this.inputValue=this.isRange?t?t.map((function(t){return e.formatValue(t)})):["",""]:this.formatValue(t)},e.prototype.formatValue=function(e){return this.dateHelper.format(e&&e.nativeDate,this.format)},e.prototype.onInputKeyup=function(e,t){if(void 0===t&&(t=!1),!t||this.realOpenState){var n=this.checkValidInputDate(e.target);this.panel&&n&&this.panel.changeValueFromSelect(n,t)}else this.showOverlay()},e.prototype.checkValidInputDate=function(e){var t=e.value,n=new Bd(this.dateHelper.parseDate(t,this.format));return n.isValid()&&t===this.dateHelper.format(n.nativeDate,this.format)?n:null},e.prototype.getPlaceholder=function(e){return this.isRange?this.placeholder[this.datePickerService.getActiveIndex(e)]:this.placeholder},e.prototype.isEmptyValue=function(e){return null===e||(this.isRange?!e||!Array.isArray(e)||e.every((function(e){return!e})):!e)},e.prototype.isOpenHandledByUser=function(){return void 0!==this.open},e.prototype.animationStart=function(){this.realOpenState&&(this.animationOpenState=!0)},e.prototype.animationDone=function(){this.realOpenState||(this.animationOpenState=!1,this.changeDetector.markForCheck())},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(qp),i.Tb(i.h),i.Tb(ub),i.Tb(Vr.e))},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-picker",""]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,lb,!0),2&e&&i.zc(r=i.ic())&&(t.panel=r.first)},viewQuery:function(e,t){var n;1&e&&(i.Sc(Ur.a,!0),i.Sc(yf,!0),i.Sc(wf,!0),i.Sc(Of,!0)),2&e&&(i.zc(n=i.ic())&&(t.cdkConnectedOverlay=n.first),i.zc(n=i.ic())&&(t.separatorElement=n.first),i.zc(n=i.ic())&&(t.pickerInput=n.first),i.zc(n=i.ic())&&(t.rangePickerInputs=n))},inputs:{noAnimation:"noAnimation",isRange:"isRange",open:"open",disabled:"disabled",popupStyle:"popupStyle",placeholder:"placeholder",allowClear:"allowClear",autoFocus:"autoFocus",format:"format",separator:"separator",dropdownClassName:"dropdownClassName",suffixIcon:"suffixIcon"},outputs:{focusChange:"focusChange",valueChange:"valueChange",openChange:"openChange"},exportAs:["nzPicker"],features:[i.Bb],attrs:Cf,ngContentSelectors:Lf,decls:18,vars:6,consts:[[3,"class",4,"ngIf"],[4,"ngIf"],["tplRangeInput",""],["tplRightRest",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions","positionChange","backdropClick","detach","overlayKeydown"],[3,"disabled","ngModel","placeholder","size","ngModelChange","focus","blur","input","keyup.enter"],["pickerInput",""],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["separatorElement",""],[4,"ngIf","ngIfElse"],["defaultSeparator",""],["nz-icon","","nzType","swap-right","nzTheme","outline"],[3,"disabled","size","ngModel","placeholder","click","blur","input","focus","keyup.enter","ngModelChange"],["rangePickerInput",""],[3,"ngStyle"],[3,"class","click",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"click"],["nz-icon","","nzType","close-circle","nzTheme","fill"],["nz-icon","",3,"nzType"],[2,"position","relative",3,"nzNoAnimation"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Nc(1,"\n "),i.Lc(2,zf,7,10,"div",0),i.Nc(3,"\n\n "),i.Nc(4,"\n "),i.Lc(5,Ef,26,21,"ng-container",1),i.Nc(6,"\n "),i.Nc(7,"\n "),i.Lc(8,Nf,4,4,"ng-template",null,2,i.Mc),i.Nc(10,"\n\n "),i.Nc(11,"\n "),i.Lc(12,Af,10,9,"ng-template",null,3,i.Mc),i.Nc(14,"\n\n "),i.Nc(15,"\n "),i.Lc(16,Mf,10,21,"ng-template",4),i.hc("positionChange",(function(e){return t.onPositionChange(e)}))("backdropClick",(function(){return t.onClickBackdrop()}))("detach",(function(){return t.onOverlayDetach()}))("overlayKeydown",(function(e){return t.onOverlayKeydown(e)})),i.Nc(17,"\n ")),2&e&&(i.Db(2),i.sc("ngIf",!t.isRange),i.Db(3),i.sc("ngIf",t.isRange),i.Db(11),i.sc("cdkConnectedOverlayOrigin",t.origin)("cdkConnectedOverlayOpen",t.realOpenState)("cdkConnectedOverlayHasBackdrop",!t.isOpenHandledByUser())("cdkConnectedOverlayPositions",t.overlayPositions))},directives:[Vr.t,Ur.a,Nu.e,Ot.e,Ot.o,Ot.r,Vr.A,Ns.a,Hd.a,Vr.w,Es.b,ac.a],encapsulation:2,data:{animation:[xs.g]},changeDetection:0}),e}(),hb={position:"relative"},db=function(){function e(e,t,n,r,o,a,s,c){this.nzConfigService=e,this.datePickerService=t,this.i18n=n,this.cdr=r,this.renderer=o,this.elementRef=a,this.dateHelper=s,this.noAnimation=c,this.isRange=!1,this.showWeek=!1,this.focused=!1,this.hostClassMap={},this.destroyed$=new kt.a,this.isCustomPlaceHolder=!1,this.showTime=!1,this.nzAllowClear=!0,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzClassName="",this.nzPlaceHolder="",this.nzPopupStyle=hb,this.nzSize="default",this.nzStyle=null,this.nzShowToday=!0,this.nzMode="date",this.nzDefaultPickerValue=null,this.nzSeparator=void 0,this.nzSuffixIcon="calendar",this.nzOnPanelChange=new i.n,this.nzOnCalendarChange=new i.n,this.nzOnOk=new i.n,this.nzOnOpenChange=new i.n,this.onChangeFn=function(){},this.onTouchedFn=function(){}}return Object.defineProperty(e.prototype,"nzShowTime",{get:function(){return this.showTime},set:function(e){this.showTime="object"==typeof e?e:Object(es.C)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"realOpenState",{get:function(){return this.picker.animationOpenState},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.nzLocale||this.i18n.localeChange.pipe(Object(ss.a)(this.destroyed$)).subscribe((function(){return e.setLocale()})),this.datePickerService.isRange=this.isRange,this.datePickerService.initValue(),this.datePickerService.emitValue$.pipe(Object(ss.a)(this.destroyed$)).subscribe((function(t){var n=e.datePickerService.value;e.datePickerService.initialValue=Vd(n),e.onChangeFn(e.isRange?n.length?[n[0].nativeDate,n[1].nativeDate]:[]:n?n.nativeDate:null),e.onTouchedFn(),e.picker.hideOverlay()})),this.nzFormat||(this.nzFormat=this.showWeek?"yyyy-ww":this.nzShowTime?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd")},e.prototype.ngOnChanges=function(e){e.nzPopupStyle&&(this.nzPopupStyle=this.nzPopupStyle?Object(zt.a)(Object(zt.a)({},this.nzPopupStyle),hb):hb),e.nzPlaceHolder&&e.nzPlaceHolder.firstChange&&void 0!==this.nzPlaceHolder&&(this.isCustomPlaceHolder=!0),e.nzLocale&&this.setDefaultPlaceHolder(),e.nzRenderExtraFooter&&(this.extraFooter=Object(es.F)(this.nzRenderExtraFooter)),e.nzStyle&&Object(Hs.c)("'nzStyle' in DatePicker is going to be removed in 10.0.0. Please use CSS style attribute like instead."),e.nzClassName&&Object(Hs.c)("'nzClassName' in DatePicker is going to be removed in 10.0.0. Please use CSS class attribute like instead."),e.nzMode&&this.setPanelMode()},e.prototype.ngOnDestroy=function(){this.destroyed$.next(),this.destroyed$.complete()},e.prototype.setPanelMode=function(){this.nzMode||(this.nzMode=this.isRange?["date","date"]:"date")},e.prototype.onOpenChange=function(e){this.nzOnOpenChange.emit(e)},e.prototype.writeValue=function(e){this.setValue(e),this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChangeFn=e},e.prototype.registerOnTouched=function(e){this.onTouchedFn=e},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.cdr.markForCheck()},e.prototype.setLocale=function(){this.nzLocale=this.i18n.getLocaleData("DatePicker",{}),this.setDefaultPlaceHolder(),this.cdr.markForCheck()},e.prototype.setDefaultPlaceHolder=function(){!this.isCustomPlaceHolder&&this.nzLocale&&(this.nzPlaceHolder=this.isRange?this.nzLocale.lang.rangePlaceholder:this.nzLocale.lang.placeholder)},e.prototype.setValue=function(e){var t=this.datePickerService.makeValue(e);this.datePickerService.setValue(t),this.datePickerService.initialValue=t},Object.defineProperty(e.prototype,"realShowToday",{get:function(){return"date"===this.nzMode&&this.nzShowToday},enumerable:!0,configurable:!0}),e.prototype.onFocusChange=function(e){this.focused=e,this.focused?this.renderer.addClass(this.elementRef.nativeElement,"ant-picker-focused"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-picker-focused")},e.prototype.onPanelModeChange=function(e){this.nzOnPanelChange.emit(e)},e.prototype.onCalendarChange=function(e){if(this.isRange&&Array.isArray(e)){var t=e.filter((function(e){return e instanceof Bd})).map((function(e){return e.nativeDate}));this.nzOnCalendarChange.emit(t)}},e.prototype.onResultOk=function(){if(this.isRange){var e=this.datePickerService.value;this.nzOnOk.emit(e.length?[e[0].nativeDate,e[1].nativeDate]:[])}else this.nzOnOk.emit(this.datePickerService.value?this.datePickerService.value.nativeDate:null);this.datePickerService.emitValue$.next()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAllowClear",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAutoFocus",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzOpen",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowToday",void 0),Object(zt.b)([Object(Qa.b)("datePicker"),Object(zt.d)("design:type",String)],e.prototype,"nzSeparator",void 0),Object(zt.b)([Object(Qa.b)("datePicker"),Object(zt.d)("design:type",Object)],e.prototype,"nzSuffixIcon",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(ub),i.Tb(Lp),i.Tb(i.h),i.Tb(i.E),i.Tb(i.l),i.Tb(qp),i.Tb(ac.a,9))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-date-picker"],["nz-week-picker"],["nz-month-picker"],["nz-year-picker"],["nz-range-picker"]],viewQuery:function(e,t){var n;1&e&&i.Jc(pb,!0),2&e&&i.zc(n=i.ic())&&(t.picker=n.first)},hostVars:10,hostBindings:function(e,t){1&e&&i.hc("click",(function(e){return t.picker.onClickInputBox(e)})),2&e&&i.Jb("ant-picker",!0)("ant-picker-range",t.isRange)("ant-picker-large","large"===t.nzSize)("ant-picker-small","small"===t.nzSize)("ant-picker-disabled",t.nzDisabled)},inputs:{nzAllowClear:"nzAllowClear",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzClassName:"nzClassName",nzPlaceHolder:"nzPlaceHolder",nzPopupStyle:"nzPopupStyle",nzSize:"nzSize",nzStyle:"nzStyle",nzShowToday:"nzShowToday",nzMode:"nzMode",nzDefaultPickerValue:"nzDefaultPickerValue",nzSeparator:"nzSeparator",nzSuffixIcon:"nzSuffixIcon",nzShowTime:"nzShowTime",nzFormat:"nzFormat",nzLocale:"nzLocale",nzOpen:"nzOpen",nzDisabledDate:"nzDisabledDate",nzDropdownClassName:"nzDropdownClassName",nzDateRender:"nzDateRender",nzDisabledTime:"nzDisabledTime",nzRenderExtraFooter:"nzRenderExtraFooter",nzRanges:"nzRanges"},outputs:{nzOnPanelChange:"nzOnPanelChange",nzOnCalendarChange:"nzOnCalendarChange",nzOnOk:"nzOnOk",nzOnOpenChange:"nzOnOpenChange"},exportAs:["nzDatePicker"],features:[i.Cb([ub,{provide:Ot.m,multi:!0,useExisting:Object(i.V)((function(){return e}))}]),i.Bb],decls:6,vars:15,consts:[["nz-picker","",2,"display","inherit","align-items","center","width","100%",3,"isRange","open","separator","disabled","format","allowClear","autoFocus","placeholder","ngClass","ngStyle","dropdownClassName","popupStyle","noAnimation","suffixIcon","openChange","focusChange"],[3,"isRange","defaultPickerValue","showWeek","panelMode","locale","showToday","showTime","format","dateRender","disabledDate","disabledTime","placeholder","extraFooter","ranges","panelModeChange","calendarChange","resultOk",4,"ngIf"],[3,"isRange","defaultPickerValue","showWeek","panelMode","locale","showToday","showTime","format","dateRender","disabledDate","disabledTime","placeholder","extraFooter","ranges","panelModeChange","calendarChange","resultOk"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.hc("openChange",(function(e){return t.onOpenChange(e)}))("focusChange",(function(e){return t.onFocusChange(e)})),i.Nc(2,"\n "),i.Lc(3,Pf,1,14,"date-range-popup",1),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n ")),2&e&&(i.Db(1),i.sc("isRange",t.isRange)("open",t.nzOpen)("separator",t.nzSeparator)("disabled",t.nzDisabled)("format",t.nzFormat)("allowClear",t.nzAllowClear)("autoFocus",t.nzAutoFocus)("placeholder",t.nzPlaceHolder)("ngClass",t.nzClassName)("ngStyle",t.nzStyle)("dropdownClassName",t.nzDropdownClassName)("popupStyle",t.nzPopupStyle)("noAnimation",!(null==t.noAnimation||!t.noAnimation.nzNoAnimation))("suffixIcon",t.nzSuffixIcon),i.Db(2),i.sc("ngIf",t.realOpenState))},directives:[pb,Vr.q,Vr.w,Vr.t,lb],encapsulation:2,changeDetection:0}),e}(),fb=function(){function e(){this.panelModeChange=new i.n,this.headerChange=new i.n,this.selectDate=new i.n,this.selectTime=new i.n,this.dayHover=new i.n,this.prefixCls="ant-picker"}return e.prototype.enablePrevNext=function(e,t){return!(!this.showTimePicker&&t===this.endPanelMode&&("left"===this.partType&&"next"===e||"right"===this.partType&&"prev"===e))},e.prototype.onSelectTime=function(e){this.selectTime.emit(new Bd(e))},e.prototype.onSelectDate=function(e){var t=e instanceof Bd?e:new Bd(e),n=this.timeOptions&&this.timeOptions.nzDefaultOpenValue;!this.value&&n&&t.setHms(n.getHours(),n.getMinutes(),n.getSeconds()),this.selectDate.emit(t)},e.prototype.onChooseMonth=function(e){this.activeDate=this.activeDate.setMonth(e.getMonth()),"month"===this.endPanelMode?(this.value=e,this.selectDate.emit(e)):(this.headerChange.emit(e),this.panelModeChange.emit(this.endPanelMode))},e.prototype.onChooseYear=function(e){this.activeDate=this.activeDate.setYear(e.getYear()),"year"===this.endPanelMode?(this.value=e,this.selectDate.emit(e)):(this.headerChange.emit(e),this.panelModeChange.emit(this.endPanelMode))},e.prototype.onChooseDecade=function(e){this.activeDate=this.activeDate.setYear(e.getYear()),"decade"===this.endPanelMode?(this.value=e,this.selectDate.emit(e)):(this.headerChange.emit(e),this.panelModeChange.emit("year"))},e.prototype.ngOnChanges=function(e){e.activeDate&&!e.activeDate.currentValue&&(this.activeDate=new Bd),e.panelMode&&"time"===e.panelMode.currentValue&&(this.panelMode="date")},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["inner-popup"]],inputs:{activeDate:"activeDate",value:"value",panelMode:"panelMode",endPanelMode:"endPanelMode",showWeek:"showWeek",locale:"locale",showTimePicker:"showTimePicker",timeOptions:"timeOptions",disabledDate:"disabledDate",dateRender:"dateRender",selectedValue:"selectedValue",hoverValue:"hoverValue",partType:"partType"},outputs:{panelModeChange:"panelModeChange",headerChange:"headerChange",selectDate:"selectDate",selectTime:"selectTime",dayHover:"dayHover"},exportAs:["innerPopup"],features:[i.Bb],decls:20,vars:11,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],[3,"value","locale","showSuperPreBtn","showSuperNextBtn","showNextBtn","showPreBtn","valueChange","panelModeChange"],[3,"showWeek","activeDate","value","disabledDate","cellRender","valueChange"],[3,"value","locale","showNextBtn","showPreBtn","valueChange","panelModeChange"],[3,"showWeek","value","activeDate","disabledDate","cellRender","valueChange"],[3,"value","locale","showSuperPreBtn","showSuperNextBtn","showPreBtn","showNextBtn","valueChange","panelModeChange"],[3,"locale","showWeek","value","activeDate","disabledDate","cellRender","selectedValue","hoverValue","valueChange","dayHover"],[3,"nzInDatePicker","ngModel","format","nzHourStep","nzMinuteStep","nzSecondStep","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzHideDisabledOptions","nzDefaultOpenValue","nzUse12Hours","nzAddOn","ngModelChange"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div"),i.Nc(2,"\n "),i.Zb(3,"div"),i.Nc(4,"\n "),i.Xb(5,0),i.Nc(6,"\n "),i.Lc(7,Ff,10,14,"ng-container",1),i.Nc(8,"\n "),i.Lc(9,Rf,10,14,"ng-container",1),i.Nc(10,"\n "),i.Lc(11,Vf,10,12,"ng-container",1),i.Nc(12,"\n\n "),i.Lc(13,Bf,10,17,"ng-container",2),i.Nc(14,"\n "),i.Wb(),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.Lc(17,Yf,5,13,"ng-container",3),i.Nc(18,"\n "),i.Yb(),i.Nc(19,"\n ")),2&e&&(i.Db(1),i.Jb("ant-picker-datetime-panel",t.showTimePicker),i.Db(2),i.Hb("",t.prefixCls,"-",t.panelMode,"-panel"),i.Db(2),i.sc("ngSwitch",t.panelMode),i.Db(2),i.sc("ngSwitchCase","decade"),i.Db(2),i.sc("ngSwitchCase","year"),i.Db(2),i.sc("ngSwitchCase","month"),i.Db(6),i.sc("ngIf",t.showTimePicker&&t.timeOptions))},directives:function(){return[Vr.x,Vr.y,Vr.z,Vr.t,yb,wb,Sb,zb,Ob,Cb,bb,vb,bd,Ot.o,Ot.r]},encapsulation:2,changeDetection:0}),e}(),gb=function(){function e(){this.prefixCls="ant-picker-header",this.selectors=[],this.showSuperPreBtn=!0,this.showSuperNextBtn=!0,this.showPreBtn=!0,this.showNextBtn=!0,this.panelModeChange=new i.n,this.valueChange=new i.n}return e.prototype.superPreviousTitle=function(){return this.locale.previousYear},e.prototype.previousTitle=function(){return this.locale.previousMonth},e.prototype.superNextTitle=function(){return this.locale.nextYear},e.prototype.nextTitle=function(){return this.locale.nextMonth},e.prototype.superPrevious=function(){this.changeValue(this.value.addYears(-1))},e.prototype.superNext=function(){this.changeValue(this.value.addYears(1))},e.prototype.previous=function(){this.changeValue(this.value.addMonths(-1))},e.prototype.next=function(){this.changeValue(this.value.addMonths(1))},e.prototype.changeValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(this.value),this.render())},e.prototype.changeMode=function(e){this.panelModeChange.emit(e)},e.prototype.render=function(){this.value&&(this.selectors=this.getSelectors())},e.prototype.ngOnInit=function(){this.value||(this.value=new Bd),this.selectors=this.getSelectors()},e.prototype.ngOnChanges=function(e){(e.value||e.locale)&&this.render()},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,inputs:{showSuperPreBtn:"showSuperPreBtn",showSuperNextBtn:"showSuperNextBtn",showPreBtn:"showPreBtn",showNextBtn:"showNextBtn",value:"value",locale:"locale"},outputs:{panelModeChange:"panelModeChange",valueChange:"valueChange"},features:[i.Bb]}),e}(),bb=function(e){function t(t){var n=e.call(this)||this;return n.dateHelper=t,n}return Object(zt.c)(t,e),t.prototype.getSelectors=function(){var e=this;return[{className:this.prefixCls+"-year-btn",title:this.locale.yearSelect,onClick:function(){return e.changeMode("year")},label:this.dateHelper.format(this.value.nativeDate,sb(this.locale.yearFormat))},{className:this.prefixCls+"-month-btn",title:this.locale.monthSelect,onClick:function(){return e.changeMode("month")},label:this.dateHelper.format(this.value.nativeDate,this.locale.monthFormat||"MMM")}]},t.\u0275fac=function(e){return new(e||t)(i.Tb(qp))},t.\u0275cmp=i.Nb({type:t,selectors:[["date-header"]],exportAs:["dateHeader"],features:[i.Ab],decls:28,vars:31,consts:[["role","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(e,t){1&e&&(i.Zb(0,"div"),i.Nc(1,"\n "),i.Zb(2,"button",0),i.hc("click",(function(){return t.superPrevious()})),i.Nc(3,"\n "),i.Ub(4,"span",1),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "),i.Zb(7,"button",0),i.hc("click",(function(){return t.previous()})),i.Nc(8,"\n "),i.Ub(9,"span",2),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n\n "),i.Zb(12,"div"),i.Nc(13,"\n "),i.Lc(14,Uf,5,5,"ng-container",3),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.Zb(17,"button",0),i.hc("click",(function(){return t.next()})),i.Nc(18,"\n "),i.Ub(19,"span",4),i.Nc(20,"\n "),i.Yb(),i.Nc(21,"\n "),i.Zb(22,"button",0),i.hc("click",(function(){return t.superNext()})),i.Nc(23,"\n "),i.Ub(24,"span",5),i.Nc(25,"\n "),i.Yb(),i.Nc(26,"\n"),i.Yb(),i.Nc(27,"\n")),2&e&&(i.Fb(t.prefixCls),i.Db(2),i.Gb("",t.prefixCls,"-super-prev-btn"),i.Kc("visibility",t.showSuperPreBtn?"visible":"hidden"),i.tc("title",t.superPreviousTitle()),i.Db(5),i.Gb("",t.prefixCls,"-prev-btn"),i.Kc("visibility",t.showPreBtn?"visible":"hidden"),i.tc("title",t.previousTitle()),i.Db(5),i.Gb("",t.prefixCls,"-view"),i.Db(2),i.sc("ngForOf",t.selectors),i.Db(3),i.Gb("",t.prefixCls,"-next-btn"),i.Kc("visibility",t.showNextBtn?"visible":"hidden"),i.tc("title",t.nextTitle()),i.Db(5),i.Gb("",t.prefixCls,"-super-next-btn"),i.Kc("visibility",t.showSuperNextBtn?"visible":"hidden"),i.tc("title",t.superNextTitle()))},directives:[Vr.s],encapsulation:2,changeDetection:0}),t}(gb),mb=function(){function e(){this.isTemplateRef=es.s,this.isNonEmptyString=es.o,this.headRow=[],this.bodyRows=[],this.MAX_ROW=6,this.MAX_COL=7,this.prefixCls="ant-picker",this.activeDate=new Bd,this.showWeek=!1,this.valueChange=new i.n}return e.prototype.render=function(){this.activeDate&&(this.headRow=this.makeHeadRow(),this.bodyRows=this.makeBodyRows())},e.prototype.trackByBodyRow=function(e,t){return t},e.prototype.trackByBodyColumn=function(e,t){return t},e.prototype.ngOnInit=function(){this.render()},e.prototype.ngOnChanges=function(e){e.activeDate&&!e.activeDate.currentValue&&(this.activeDate=new Bd)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,inputs:{prefixCls:"prefixCls",activeDate:"activeDate",showWeek:"showWeek",value:"value",disabledDate:"disabledDate",cellRender:"cellRender",fullCellRender:"fullCellRender"},outputs:{valueChange:"valueChange"},features:[i.Bb]}),e}(),vb=function(e){function t(t,n){var r=e.call(this)||this;return r.i18n=t,r.dateHelper=n,r.selectedValue=[],r.hoverValue=[],r.dayHover=new i.n,r}return Object(zt.c)(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),(this.isDateRealChange(t.activeDate)||this.isDateRealChange(t.value)||this.isDateRealChange(t.selectedValue)||this.isDateRealChange(t.hoverValue))&&this.render()},t.prototype.isDateRealChange=function(e){if(e){var t=e.previousValue,n=e.currentValue;return Array.isArray(n)?!Array.isArray(t)||n.length!==t.length||n.some((function(e,n){var i=t[n];return i instanceof Bd?i.isSameDay(e):i!==e})):!this.isSameDate(t,n)}return!1},t.prototype.isSameDate=function(e,t){return!e&&!t||e&&t&&t.isSameDay(e)},t.prototype.changeValueFromInside=function(e){this.activeDate=this.activeDate.setYear(e.getYear()).setMonth(e.getMonth()).setDate(e.getDate()),this.valueChange.emit(this.activeDate),this.activeDate.isSameMonth(this.value)||this.render()},t.prototype.makeHeadRow=function(){for(var e=[],t=this.activeDate.calendarStart({weekStartsOn:this.dateHelper.getFirstDayOfWeek()}),n=0;n0||c.hoverValue&&c.hoverValue.length>0)&&n.isSameMonth(c.activeDate)){var l=Object(zt.e)(c.hoverValue,2),p=l[0],h=l[1],d=Object(zt.e)(c.selectedValue,2),f=d[0],g=d[1];f&&f.isSameDay(n)&&(u.isSelectedStartDate=!0,u.isSelected=!0,a.isActive=!0),g&&g.isSameDay(n)?(u.isSelectedEndDate=!0,u.isSelected=!0,a.isActive=!0):n.isAfterDay(f)&&n.isBeforeDay(g)&&(u.isInSelectedRange=!0),p&&h&&(p.isSameDay(n)&&(u.isHoverStartDate=!0),h.isSameDay(n)&&(u.isHoverEndDate=!0),n.isLastDayOfMonth()&&(u.isLastDayOfMonth=!0),n.isFirstDayOfMonth()&&(u.isFirstDayOfMonth=!0)),f&&!g&&(u.isStartSingle=!0),!f&&g&&(u.isEndSingle=!0),n.isAfterDay(p)&&n.isBeforeDay(h)&&(u.isInHoverRange=!0)}else n.isSameDay(c.value)&&(u.isSelected=!0,a.isActive=!0);(null===(d=c.disabledDate)||void 0===d?void 0:d.call(c,n.nativeDate))&&(u.isDisabled=!0),u.classMap=c.getClassMap(u),a.dateCells.push(u)},c=this,u=0;u<7;u++)s(u);a.classMap=((e={})[this.prefixCls+"-week-panel-row"]=this.showWeek,e[this.prefixCls+"-week-panel-row-selected"]=this.showWeek&&a.isActive,e),n.push(a)}return n},t.prototype.getClassMap=function(e){var t,n=new Bd(e.value);return(t={})["ant-picker-cell"]=!0,t["ant-picker-cell-today"]=!!e.isToday,t["ant-picker-cell-in-view"]=n.isSameMonth(this.activeDate),t["ant-picker-cell-selected"]=e.isSelected,t["ant-picker-cell-disabled"]=e.isDisabled,t["ant-picker-cell-in-range"]=!!e.isInSelectedRange,t["ant-picker-cell-range-start"]=!!e.isSelectedStartDate,t["ant-picker-cell-range-end"]=!!e.isSelectedEndDate,t["ant-picker-cell-range-start-single"]=!!e.isStartSingle,t["ant-picker-cell-range-end-single"]=!!e.isEndSingle,t["ant-picker-cell-range-hover"]=!!e.isInHoverRange,t["ant-picker-cell-range-hover-start"]=!!e.isHoverStartDate,t["ant-picker-cell-range-hover-end"]=!!e.isHoverEndDate,t["ant-picker-cell-range-hover-edge-start"]=!!e.isFirstDayOfMonth,t["ant-picker-cell-range-hover-edge-end"]=!!e.isLastDayOfMonth,t},t.prototype.trackByBodyRow=function(e,t){return t.year+"-"+t.weekNum},t.prototype.trackByBodyColumn=function(e,t){return t.title},t.\u0275fac=function(e){return new(e||t)(i.Tb(Lp),i.Tb(qp))},t.\u0275cmp=i.Nb({type:t,selectors:[["date-table"]],inputs:{locale:"locale",selectedValue:"selectedValue",hoverValue:"hoverValue"},outputs:{dayHover:"dayHover"},exportAs:["dateTable"],features:[i.Ab,i.Bb],decls:10,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(e,t){1&e&&(i.Zb(0,"table",0),i.Nc(1,"\n "),i.Lc(2,qf,9,2,"thead",1),i.Nc(3,"\n "),i.Zb(4,"tbody"),i.Nc(5,"\n "),i.Lc(6,ag,6,4,"tr",2),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n"),i.Yb(),i.Nc(9,"\n")),2&e&&(i.Db(2),i.sc("ngIf",t.headRow&&t.headRow.length>0),i.Db(4),i.sc("ngForOf",t.bodyRows)("ngForTrackBy",t.trackByBodyRow))},directives:[Vr.t,Vr.s,Vr.q,Vr.x,Vr.y,Vr.z,Vr.A],encapsulation:2,changeDetection:0}),t}(mb),yb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(zt.c)(t,e),t.prototype.previous=function(){},t.prototype.next=function(){},Object.defineProperty(t.prototype,"startYear",{get:function(){return 100*parseInt(""+this.value.getYear()/100,10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endYear",{get:function(){return this.startYear+99},enumerable:!0,configurable:!0}),t.prototype.superPrevious=function(){this.changeValue(this.value.addYears(-100))},t.prototype.superNext=function(){this.changeValue(this.value.addYears(100))},t.prototype.getSelectors=function(){return[{className:this.prefixCls+"-decade-btn",title:"",onClick:function(){},label:this.startYear+"-"+this.endYear}]},t.\u0275fac=function(e){return n(e||t)},t.\u0275cmp=i.Nb({type:t,selectors:[["decade-header"]],exportAs:["decadeHeader"],features:[i.Ab],decls:28,vars:31,consts:[["role","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(e,t){1&e&&(i.Zb(0,"div"),i.Nc(1,"\n "),i.Zb(2,"button",0),i.hc("click",(function(){return t.superPrevious()})),i.Nc(3,"\n "),i.Ub(4,"span",1),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "),i.Zb(7,"button",0),i.hc("click",(function(){return t.previous()})),i.Nc(8,"\n "),i.Ub(9,"span",2),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n\n "),i.Zb(12,"div"),i.Nc(13,"\n "),i.Lc(14,sg,5,5,"ng-container",3),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.Zb(17,"button",0),i.hc("click",(function(){return t.next()})),i.Nc(18,"\n "),i.Ub(19,"span",4),i.Nc(20,"\n "),i.Yb(),i.Nc(21,"\n "),i.Zb(22,"button",0),i.hc("click",(function(){return t.superNext()})),i.Nc(23,"\n "),i.Ub(24,"span",5),i.Nc(25,"\n "),i.Yb(),i.Nc(26,"\n"),i.Yb(),i.Nc(27,"\n")),2&e&&(i.Fb(t.prefixCls),i.Db(2),i.Gb("",t.prefixCls,"-super-prev-btn"),i.Kc("visibility",t.showSuperPreBtn?"visible":"hidden"),i.tc("title",t.superPreviousTitle()),i.Db(5),i.Gb("",t.prefixCls,"-prev-btn"),i.Kc("visibility",t.showPreBtn?"visible":"hidden"),i.tc("title",t.previousTitle()),i.Db(5),i.Gb("",t.prefixCls,"-view"),i.Db(2),i.sc("ngForOf",t.selectors),i.Db(3),i.Gb("",t.prefixCls,"-next-btn"),i.Kc("visibility",t.showNextBtn?"visible":"hidden"),i.tc("title",t.nextTitle()),i.Db(5),i.Gb("",t.prefixCls,"-super-next-btn"),i.Kc("visibility",t.showSuperNextBtn?"visible":"hidden"),i.tc("title",t.superNextTitle()))},directives:[Vr.s],encapsulation:2,changeDetection:0});var n=i.bc(t);return t}(gb),wb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(zt.c)(t,e),t.prototype.ngOnChanges=function(e){(e.value||e.disabledDate||e.activeDate)&&this.render()},Object.defineProperty(t.prototype,"startYear",{get:function(){return 100*parseInt(""+this.activeDate.getYear()/100,10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endYear",{get:function(){return this.startYear+99},enumerable:!0,configurable:!0}),t.prototype.makeHeadRow=function(){return[]},t.prototype.makeBodyRows=function(){for(var e=this,t=[],n=this.value&&this.value.getYear(),i=this.startYear,r=this.endYear,o=i-10,a=0,s=0;s<4;s++){for(var c=[],u=function(t){var s=o+10*a,u=o+10*a+9,p=s+"-"+u,h={value:l.activeDate.setYear(s).nativeDate,content:p,title:p,isDisabled:!1,isSelected:n>=s&&n<=u,isLowerThanStart:ur,classMap:{},onClick:function(){},onMouseEnter:function(){}};h.classMap=l.getClassMap(h),h.onClick=function(){return e.chooseDecade(s)},a++,c.push(h)},l=this,p=0;p<3;p++)u();t.push({dateCells:c})}return t},t.prototype.getClassMap=function(e){var t;return(t={})[this.prefixCls+"-cell"]=!0,t[this.prefixCls+"-cell-in-view"]=!e.isBiggerThanEnd&&!e.isLowerThanStart,t[this.prefixCls+"-cell-selected"]=e.isSelected,t[this.prefixCls+"-cell-disabled"]=e.isDisabled,t},t.prototype.chooseDecade=function(e){this.value=this.activeDate.setYear(e),this.valueChange.emit(this.value)},t.\u0275fac=function(e){return n(e||t)},t.\u0275cmp=i.Nb({type:t,selectors:[["decade-table"]],exportAs:["decadeTable"],features:[i.Ab,i.Bb],decls:10,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(e,t){1&e&&(i.Zb(0,"table",0),i.Nc(1,"\n "),i.Lc(2,lg,9,2,"thead",1),i.Nc(3,"\n "),i.Zb(4,"tbody"),i.Nc(5,"\n "),i.Lc(6,Sg,6,4,"tr",2),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n"),i.Yb(),i.Nc(9,"\n")),2&e&&(i.Db(2),i.sc("ngIf",t.headRow&&t.headRow.length>0),i.Db(4),i.sc("ngForOf",t.bodyRows)("ngForTrackBy",t.trackByBodyRow))},directives:[Vr.t,Vr.s,Vr.q,Vr.x,Vr.y,Vr.z,Vr.A],encapsulation:2,changeDetection:0});var n=i.bc(t);return t}(mb),Ob=function(e){function t(t){var n=e.call(this)||this;return n.dateHelper=t,n}return Object(zt.c)(t,e),t.prototype.getSelectors=function(){var e=this;return[{className:this.prefixCls+"-month-btn",title:this.locale.yearSelect,onClick:function(){return e.changeMode("year")},label:this.dateHelper.format(this.value.nativeDate,sb(this.locale.yearFormat))}]},t.\u0275fac=function(e){return new(e||t)(i.Tb(qp))},t.\u0275cmp=i.Nb({type:t,selectors:[["month-header"]],exportAs:["monthHeader"],features:[i.Ab],decls:28,vars:31,consts:[["role","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(e,t){1&e&&(i.Zb(0,"div"),i.Nc(1,"\n "),i.Zb(2,"button",0),i.hc("click",(function(){return t.superPrevious()})),i.Nc(3,"\n "),i.Ub(4,"span",1),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "),i.Zb(7,"button",0),i.hc("click",(function(){return t.previous()})),i.Nc(8,"\n "),i.Ub(9,"span",2),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n\n "),i.Zb(12,"div"),i.Nc(13,"\n "),i.Lc(14,zg,5,5,"ng-container",3),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.Zb(17,"button",0),i.hc("click",(function(){return t.next()})),i.Nc(18,"\n "),i.Ub(19,"span",4),i.Nc(20,"\n "),i.Yb(),i.Nc(21,"\n "),i.Zb(22,"button",0),i.hc("click",(function(){return t.superNext()})),i.Nc(23,"\n "),i.Ub(24,"span",5),i.Nc(25,"\n "),i.Yb(),i.Nc(26,"\n"),i.Yb(),i.Nc(27,"\n")),2&e&&(i.Fb(t.prefixCls),i.Db(2),i.Gb("",t.prefixCls,"-super-prev-btn"),i.Kc("visibility",t.showSuperPreBtn?"visible":"hidden"),i.tc("title",t.superPreviousTitle()),i.Db(5),i.Gb("",t.prefixCls,"-prev-btn"),i.Kc("visibility",t.showPreBtn?"visible":"hidden"),i.tc("title",t.previousTitle()),i.Db(5),i.Gb("",t.prefixCls,"-view"),i.Db(2),i.sc("ngForOf",t.selectors),i.Db(3),i.Gb("",t.prefixCls,"-next-btn"),i.Kc("visibility",t.showNextBtn?"visible":"hidden"),i.tc("title",t.nextTitle()),i.Db(5),i.Gb("",t.prefixCls,"-super-next-btn"),i.Kc("visibility",t.showSuperNextBtn?"visible":"hidden"),i.tc("title",t.superNextTitle()))},directives:[Vr.s],encapsulation:2,changeDetection:0}),t}(gb),Cb=function(e){function t(t){var n=e.call(this)||this;return n.dateHelper=t,n.MAX_ROW=4,n.MAX_COL=3,n}return Object(zt.c)(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),(t.value||t.disabledDate||t.activeDate)&&this.render()},t.prototype.makeHeadRow=function(){return[]},t.prototype.makeBodyRows=function(){for(var e=this,t=[],n=this.value&&this.value.getMonth(),i=0,r=0;r0),i.Db(4),i.sc("ngForOf",t.bodyRows)("ngForTrackBy",t.trackByBodyRow))},directives:[Vr.t,Vr.s,Vr.q,Vr.x,Vr.y,Vr.z,Vr.A],encapsulation:2,changeDetection:0}),t}(mb),Sb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(zt.c)(t,e),Object.defineProperty(t.prototype,"startYear",{get:function(){return 10*parseInt(""+this.value.getYear()/10,10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endYear",{get:function(){return this.startYear+9},enumerable:!0,configurable:!0}),t.prototype.superPrevious=function(){this.changeValue(this.value.addYears(-10))},t.prototype.superNext=function(){this.changeValue(this.value.addYears(10))},t.prototype.getSelectors=function(){var e=this;return[{className:this.prefixCls+"-year-btn",title:"",onClick:function(){return e.changeMode("decade")},label:this.startYear+"-"+this.endYear}]},t.\u0275fac=function(e){return n(e||t)},t.\u0275cmp=i.Nb({type:t,selectors:[["year-header"]],exportAs:["yearHeader"],features:[i.Ab],decls:28,vars:31,consts:[["role","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(e,t){1&e&&(i.Zb(0,"div"),i.Nc(1,"\n "),i.Zb(2,"button",0),i.hc("click",(function(){return t.superPrevious()})),i.Nc(3,"\n "),i.Ub(4,"span",1),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "),i.Zb(7,"button",0),i.hc("click",(function(){return t.previous()})),i.Nc(8,"\n "),i.Ub(9,"span",2),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n\n "),i.Zb(12,"div"),i.Nc(13,"\n "),i.Lc(14,Bg,5,5,"ng-container",3),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.Zb(17,"button",0),i.hc("click",(function(){return t.next()})),i.Nc(18,"\n "),i.Ub(19,"span",4),i.Nc(20,"\n "),i.Yb(),i.Nc(21,"\n "),i.Zb(22,"button",0),i.hc("click",(function(){return t.superNext()})),i.Nc(23,"\n "),i.Ub(24,"span",5),i.Nc(25,"\n "),i.Yb(),i.Nc(26,"\n"),i.Yb(),i.Nc(27,"\n")),2&e&&(i.Fb(t.prefixCls),i.Db(2),i.Gb("",t.prefixCls,"-super-prev-btn"),i.Kc("visibility",t.showSuperPreBtn?"visible":"hidden"),i.tc("title",t.superPreviousTitle()),i.Db(5),i.Gb("",t.prefixCls,"-prev-btn"),i.Kc("visibility",t.showPreBtn?"visible":"hidden"),i.tc("title",t.previousTitle()),i.Db(5),i.Gb("",t.prefixCls,"-view"),i.Db(2),i.sc("ngForOf",t.selectors),i.Db(3),i.Gb("",t.prefixCls,"-next-btn"),i.Kc("visibility",t.showNextBtn?"visible":"hidden"),i.tc("title",t.nextTitle()),i.Db(5),i.Gb("",t.prefixCls,"-super-next-btn"),i.Kc("visibility",t.showSuperNextBtn?"visible":"hidden"),i.tc("title",t.superNextTitle()))},directives:[Vr.s],encapsulation:2,changeDetection:0});var n=i.bc(t);return t}(gb),zb=function(e){function t(t){var n=e.call(this)||this;return n.dateHelper=t,n.MAX_ROW=4,n.MAX_COL=3,n}return Object(zt.c)(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),(t.value||t.disabledDate||t.activeDate)&&this.render()},t.prototype.makeHeadRow=function(){return[]},t.prototype.makeBodyRows=function(){for(var e=this,t=this.activeDate&&this.activeDate.getYear(),n=10*parseInt(""+t/10,10),i=n+9,r=n-1,o=[],a=0,s=0;s=n&&o<=i,isSelected:o===(l.value&&l.value.getYear()),content:u,title:u,classMap:{},cellRender:Object(es.F)(l.cellRender,s),fullCellRender:Object(es.F)(l.fullCellRender,s),onClick:function(){return e.chooseYear(h.value.getFullYear())},onMouseEnter:function(){return null}};h.classMap=l.getClassMap(h),c.push(h),a++},l=this,p=0;p0),i.Db(4),i.sc("ngForOf",t.bodyRows)("ngForTrackBy",t.trackByBodyRow))},directives:[Vr.t,Vr.s,Vr.q,Vr.x,Vr.y,Vr.z,Vr.A],encapsulation:2,changeDetection:0}),t}(mb),Tb=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Fp,md,Es.a]]}),e}(),_b=function(){function e(e){this.datePicker=e,this.datePicker.nzMode="month",this.datePicker.nzFormat="yyyy-MM"}return e.\u0275fac=function(t){return new(t||e)(i.Tb(db,9))},e.\u0275dir=i.Ob({type:e,selectors:[["nz-month-picker"]],exportAs:["nzMonthPicker"]}),e}(),kb=function(){function e(e){this.datePicker=e,this.datePicker.isRange=!0,this.datePicker.nzMode=["date","date"]}return e.\u0275fac=function(t){return new(t||e)(i.Tb(db,9))},e.\u0275dir=i.Ob({type:e,selectors:[["nz-range-picker"]],exportAs:["nzRangePicker"]}),e}(),Db=function(){function e(e){this.datePicker=e,this.datePicker.showWeek=!0,this.datePicker.nzMode="week",this.datePicker.nzFormat="yyyy-ww"}return e.\u0275fac=function(t){return new(t||e)(i.Tb(db,9))},e.\u0275dir=i.Ob({type:e,selectors:[["nz-week-picker"]],exportAs:["nzWeekPicker"]}),e}(),xb=function(){function e(e){this.datePicker=e,this.datePicker.nzMode="year",this.datePicker.nzFormat="yyyy"}return e.\u0275fac=function(t){return new(t||e)(i.Tb(db,9))},e.\u0275dir=i.Ob({type:e,selectors:[["nz-year-picker"]],exportAs:["nzYearPicker"]}),e}(),Eb=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Ur.i,Tb,Ns.b,Nu.f,ac.b,Es.a,md,Wu.c,Tb]]}),e}(),Nb=["*"],jb=["inputElement"],Ib=["nz-radio",""],Ab=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","nz-radio-button",""]]}),e}(),Mb=function(){function e(){this.selected$=new Os.a(1),this.touched$=new kt.a,this.disabled$=new Os.a(1),this.name$=new Os.a(1)}return e.prototype.touch=function(){this.touched$.next()},e.prototype.select=function(e){this.selected$.next(e)},e.prototype.setDisabled=function(e){this.disabled$.next(e)},e.prototype.setName=function(e){this.name$.next(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),Lb=function(){function e(e,t){this.cdr=e,this.nzRadioService=t,this.value=null,this.destroy$=new kt.a,this.onChange=function(){},this.onTouched=function(){},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null}return e.prototype.ngOnInit=function(){var e=this;this.nzRadioService.selected$.subscribe((function(t){e.value!==t&&(e.value=t,e.onChange(e.value))})),this.nzRadioService.touched$.subscribe((function(){Promise.resolve().then((function(){return e.onTouched()}))}))},e.prototype.ngOnChanges=function(e){var t=e.nzName;e.nzDisabled&&this.nzRadioService.setDisabled(this.nzDisabled),t&&this.nzRadioService.setName(this.nzName)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.writeValue=function(e){this.value=e,this.nzRadioService.select(e),this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.nzRadioService.setDisabled(e),this.cdr.markForCheck()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(Mb))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-radio-group"]],hostVars:8,hostBindings:function(e,t){2&e&&i.Jb("ant-radio-group",!0)("ant-radio-group-large","large"===t.nzSize)("ant-radio-group-small","small"===t.nzSize)("ant-radio-group-solid","solid"===t.nzButtonStyle)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[i.Cb([Mb,{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0}]),i.Bb],ngContentSelectors:Nb,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),Pb=function(){function e(e,t,n,i,r){this.elementRef=e,this.cdr=t,this.focusMonitor=n,this.nzRadioService=i,this.nzRadioButtonDirective=r,this.isNgModel=!1,this.destroy$=new kt.a,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=function(){},this.onTouched=function(){},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1}return e.prototype.onHostClick=function(e){e.stopPropagation(),e.preventDefault(),this.focus(),this.nzDisabled||this.isChecked||(this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)))},e.prototype.focus=function(){this.focusMonitor.focusVia(this.inputElement,"keyboard")},e.prototype.blur=function(){this.inputElement.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.cdr.markForCheck()},e.prototype.writeValue=function(e){this.isChecked=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.isNgModel=!0,this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.ngOnInit=function(){var e=this;this.nzRadioService&&(this.nzRadioService.name$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.name=t,e.cdr.markForCheck()})),this.nzRadioService.disabled$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.nzDisabled=t,e.cdr.markForCheck()})),this.nzRadioService.selected$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.isChecked=e.nzValue===t,e.cdr.markForCheck()}))),this.focusMonitor.monitor(this.elementRef,!0).subscribe((function(t){t||(Promise.resolve().then((function(){return e.onTouched()})),e.nzRadioService&&e.nzRadioService.touch())}))},e.prototype.ngAfterViewInit=function(){this.nzAutoFocus&&this.focus()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.h),i.Tb(yo),i.Tb(Mb,8),i.Tb(Ab,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(e,t){var n;1&e&&i.Sc(jb,!0),2&e&&i.zc(n=i.ic())&&(t.inputElement=n.first)},hostVars:12,hostBindings:function(e,t){1&e&&i.hc("click",(function(e){return t.onHostClick(e)})),2&e&&i.Jb("ant-radio-wrapper",!t.isRadioButton)("ant-radio-button-wrapper",t.isRadioButton)("ant-radio-wrapper-checked",t.isChecked&&!t.isRadioButton)("ant-radio-button-wrapper-checked",t.isChecked&&t.isRadioButton)("ant-radio-wrapper-disabled",t.nzDisabled&&!t.isRadioButton)("ant-radio-button-wrapper-disabled",t.nzDisabled&&t.isRadioButton)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0}])],attrs:Ib,ngContentSelectors:Nb,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"span"),i.Ub(1,"input",0,1),i.Ub(3,"span"),i.Yb(),i.Zb(4,"span"),i.qc(5),i.Yb()),2&e&&(i.Jb("ant-radio",!t.isRadioButton)("ant-radio-checked",t.isChecked&&!t.isRadioButton)("ant-radio-disabled",t.nzDisabled&&!t.isRadioButton)("ant-radio-button",t.isRadioButton)("ant-radio-button-checked",t.isChecked&&t.isRadioButton)("ant-radio-button-disabled",t.nzDisabled&&t.isRadioButton),i.Db(1),i.Jb("ant-radio-input",!t.isRadioButton)("ant-radio-button-input",t.isRadioButton),i.sc("disabled",t.nzDisabled)("checked",t.isChecked),i.Eb("autofocus",t.nzAutoFocus?"autofocus":null)("name",t.name),i.Db(2),i.Jb("ant-radio-inner",!t.isRadioButton)("ant-radio-button-inner",t.isRadioButton))},encapsulation:2,changeDetection:0}),e}(),Fb=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j]]}),e}(),Rb=n("pdUi");function Vb(e,t){1&e&&i.Ub(0,"nz-empty",6),2&e&&i.sc("nzNotFoundImage","simple")}function Bb(e,t){1&e&&i.Ub(0,"nz-empty",7),2&e&&i.sc("nzNotFoundImage","simple")}function Yb(e,t){1&e&&i.Ub(0,"nz-empty")}function Ub(e,t){if(1&e&&(i.Xb(0,2),i.Nc(1,"\n "),i.Lc(2,Vb,1,1,"nz-empty",3),i.Nc(3,"\n "),i.Lc(4,Bb,1,1,"nz-empty",4),i.Nc(5,"\n "),i.Lc(6,Yb,1,0,"nz-empty",5),i.Nc(7,"\n "),i.Wb()),2&e){var n=i.kc();i.sc("ngSwitch",n.size),i.Db(2),i.sc("ngSwitchCase","normal"),i.Db(2),i.sc("ngSwitchCase","small")}}function Hb(e,t){}function Wb(e,t){if(1&e&&i.Lc(0,Hb,0,0,"ng-template",8),2&e){var n=i.kc(2);i.sc("cdkPortalOutlet",n.contentPortal)}}function qb(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Pc("\n ",n.content,"\n ")}}function Zb(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,Wb,1,1,void 0,1),i.Nc(3,"\n "),i.Lc(4,qb,2,1,"ng-container",1),i.Nc(5,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("ngIf","string"!==n.contentType),i.Db(2),i.sc("ngIf","string"===n.contentType)}}function $b(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"img",5),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2);i.Db(2),i.sc("src",n.nzNotFoundImage,i.Fc)("alt",n.isContentString?n.nzNotFoundContent:"empty")}}function Gb(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,$b,4,2,"ng-container",4),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzNotFoundImage)}}function Qb(e,t){1&e&&i.Ub(0,"nz-empty-default")}function Xb(e,t){1&e&&i.Ub(0,"nz-empty-simple")}function Kb(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Pc("\n ",n.isContentString?n.nzNotFoundContent:n.locale.description,"\n ")}}function Jb(e,t){if(1&e&&(i.Zb(0,"p",6),i.Nc(1,"\n "),i.Lc(2,Kb,2,1,"ng-container",4),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzNotFoundContent)}}function em(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Pc("\n ",n.nzNotFoundFooter,"\n ")}}function tm(e,t){if(1&e&&(i.Zb(0,"div",7),i.Nc(1,"\n "),i.Lc(2,em,2,1,"ng-container",4),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzNotFoundFooter)}}var nm=new i.q("nz-empty-component-name"),im=function(){function e(e,t,n,i){this.configService=e,this.viewContainerRef=t,this.cdr=n,this.injector=i,this.contentType="string",this.size="",this.destroy$=new kt.a}return e.prototype.ngOnChanges=function(e){e.nzComponentName&&(this.size=function(e){switch(e){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(e.nzComponentName.currentValue)),e.specificContent&&!e.specificContent.isFirstChange()&&(this.content=e.specificContent.currentValue,this.renderEmpty())},e.prototype.ngOnInit=function(){this.subscribeDefaultEmptyContentChange()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.renderEmpty=function(){var e=this.content;if("string"==typeof e)this.contentType="string";else if(e instanceof i.M){var t={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new Wr.g(e,this.viewContainerRef,t)}else if(e instanceof i.O){t=new WeakMap([[nm,this.nzComponentName]]);var n=new Wr.e(this.injector,t);this.contentType="component",this.contentPortal=new Wr.c(e,this.viewContainerRef,n)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()},e.prototype.subscribeDefaultEmptyContentChange=function(){var e=this;this.configService.getConfigChangeEventForComponent("empty").pipe(Object(Ka.a)(!0),Object(ss.a)(this.destroy$)).subscribe((function(){e.content=e.specificContent||e.getUserDefaultEmptyContent(),e.renderEmpty()}))},e.prototype.getUserDefaultEmptyContent=function(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent},e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.Q),i.Tb(i.h),i.Tb(i.r))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[i.Bb],decls:5,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Lc(1,Ub,8,3,"ng-container",0),i.Nc(2,"\n "),i.Lc(3,Zb,6,2,"ng-container",1),i.Nc(4,"\n ")),2&e&&(i.Db(1),i.sc("ngIf",!t.content&&null!==t.specificContent),i.Db(2),i.sc("ngIf",t.content))},directives:function(){return[Vr.t,Vr.x,Vr.y,Vr.z,om,Wr.b]},encapsulation:2,changeDetection:0}),e}(),rm=["default","simple"],om=function(){function e(e,t){this.i18n=e,this.cdr=t,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.locale={},this.destroy$=new kt.a}return e.prototype.ngOnChanges=function(e){var t=e.nzNotFoundContent,n=e.nzNotFoundImage;if(t&&(this.isContentString="string"==typeof t.currentValue),n){var i=n.currentValue||"default";this.isImageBuildIn=rm.findIndex((function(e){return e===i}))>-1}},e.prototype.ngOnInit=function(){var e=this;this.i18n.localeChange.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.locale=e.i18n.getLocaleData("Empty"),e.cdr.markForCheck()}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(Lp),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[i.Bb],decls:14,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Lc(3,Gb,4,1,"ng-container",1),i.Nc(4,"\n "),i.Lc(5,Qb,1,0,"nz-empty-default",1),i.Nc(6,"\n "),i.Lc(7,Xb,1,0,"nz-empty-simple",1),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Lc(10,Jb,4,1,"p",2),i.Nc(11,"\n "),i.Lc(12,tm,4,1,"div",3),i.Nc(13,"\n ")),2&e&&(i.Db(3),i.sc("ngIf",!t.isImageBuildIn),i.Db(2),i.sc("ngIf",t.isImageBuildIn&&"simple"!==t.nzNotFoundImage),i.Db(2),i.sc("ngIf",t.isImageBuildIn&&"simple"===t.nzNotFoundImage),i.Db(3),i.sc("ngIf",null!==t.nzNotFoundContent),i.Db(2),i.sc("ngIf",t.nzNotFoundFooter))},directives:function(){return[Vr.t,Es.b,am,sm]},encapsulation:2,changeDetection:0}),e}(),am=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:29,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.jc(),i.Zb(1,"svg",0),i.Nc(2,"\n "),i.Zb(3,"g",1),i.Nc(4,"\n "),i.Zb(5,"g",2),i.Nc(6,"\n "),i.Ub(7,"ellipse",3),i.Nc(8,"\n "),i.Ub(9,"path",4),i.Nc(10,"\n "),i.Ub(11,"path",5),i.Nc(12,"\n "),i.Ub(13,"path",6),i.Nc(14,"\n "),i.Ub(15,"path",7),i.Nc(16,"\n "),i.Yb(),i.Nc(17,"\n "),i.Ub(18,"path",8),i.Nc(19,"\n "),i.Zb(20,"g",9),i.Nc(21,"\n "),i.Ub(22,"ellipse",10),i.Nc(23,"\n "),i.Ub(24,"path",11),i.Nc(25,"\n "),i.Yb(),i.Nc(26,"\n "),i.Yb(),i.Nc(27,"\n "),i.Yb(),i.Nc(28,"\n "))},encapsulation:2,changeDetection:0}),e}(),sm=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:16,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.jc(),i.Zb(1,"svg",0),i.Nc(2,"\n "),i.Zb(3,"g",1),i.Nc(4,"\n "),i.Ub(5,"ellipse",2),i.Nc(6,"\n "),i.Zb(7,"g",3),i.Nc(8,"\n "),i.Ub(9,"path",4),i.Nc(10,"\n "),i.Ub(11,"path",5),i.Nc(12,"\n "),i.Yb(),i.Nc(13,"\n "),i.Yb(),i.Nc(14,"\n "),i.Yb(),i.Nc(15,"\n "))},encapsulation:2,changeDetection:0}),e}(),cm=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Wr.f,Es.a,Fp]]}),e}(),um=["*"];function lm(e,t){if(1&e&&(i.Zb(0,"div",4),i.Ub(1,"nz-embed-empty",5),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("specificContent",n.notFoundContent)}}function pm(e,t){if(1&e&&i.Ub(0,"nz-option-item-group",9),2&e){var n=i.kc().$implicit;i.sc("nzLabel",n.groupLabel)}}function hm(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-option-item",10),i.hc("itemHover",(function(e){return i.Dc(n),i.kc(2).onItemHover(e)}))("itemClick",(function(e){return i.Dc(n),i.kc(2).onItemClick(e)})),i.Yb()}if(2&e){var r=i.kc().$implicit,o=i.kc();i.sc("icon",o.menuItemSelectedIcon)("customContent",r.nzCustomContent)("template",r.template)("grouped",!!r.groupLabel)("disabled",r.nzDisabled)("showState","tags"===o.mode||"multiple"===o.mode)("label",r.nzLabel)("compareWith",o.compareWith)("activatedValue",o.activatedValue)("listOfSelectedValue",o.listOfSelectedValue)("value",r.nzValue)}}function dm(e,t){if(1&e&&(i.Xb(0),i.Xb(1,6),i.Lc(2,pm,1,1,"nz-option-item-group",7),i.Lc(3,hm,1,11,"nz-option-item",8),i.Wb(),i.Wb()),2&e){var n=t.$implicit;i.Db(1),i.sc("ngSwitch",n.type),i.Db(1),i.sc("ngSwitchCase","group"),i.Db(1),i.sc("ngSwitchCase","item")}}function fm(e,t){}function gm(e,t){1&e&&(i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n "))}var bm=["inputElement"],mm=["mirrorElement"];function vm(e,t){1&e&&i.Ub(0,"span",3,4)}function ym(e,t){if(1&e&&i.Ub(0,"nz-select-item",6),2&e){var n=i.kc(2);i.sc("deletable",!1)("disabled",!1)("removeIcon",n.removeIcon)("label",n.listOfTopItem[0].nzLabel)("contentTemplateOutlet",n.customTemplate)("contentTemplateOutletContext",n.listOfTopItem[0])}}function wm(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Lc(1,ym,1,6,"nz-select-item",4),i.Zb(2,"nz-select-search",5),i.hc("isComposingChange",(function(e){return i.Dc(n),i.kc().isComposingChange(e)}))("valueChange",(function(e){return i.Dc(n),i.kc().onInputValueChange(e)})),i.Yb(),i.Wb()}if(2&e){var r=i.kc();i.Db(1),i.sc("ngIf",r.isShowSingleLabel),i.Db(1),i.sc("disabled",r.disabled)("value",r.inputValue)("showInput",r.open&&r.showSearch)("mirrorSync",!1)("autofocus",r.autofocus)("focusTrigger",r.open)}}function Om(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-select-item",9),i.hc("@zoomMotion.done",(function(){return i.Dc(n),i.kc(2).onAnimationEnd()}))("delete",(function(){i.Dc(n);var e=t.$implicit;return i.kc(2).onDeleteItem(e.contentTemplateOutletContext)})),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc(2);i.sc("@zoomMotion",void 0)("@.disabled",null==o.noAnimation?null:o.noAnimation.nzNoAnimation)("nzNoAnimation",null==o.noAnimation?null:o.noAnimation.nzNoAnimation)("removeIcon",o.removeIcon)("label",r.nzLabel)("disabled",r.nzDisabled||o.disabled)("contentTemplateOutlet",r.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",r.contentTemplateOutletContext)}}function Cm(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Lc(1,Om,1,9,"nz-select-item",7),i.Zb(2,"nz-select-search",8),i.hc("isComposingChange",(function(e){return i.Dc(n),i.kc().isComposingChange(e)}))("valueChange",(function(e){return i.Dc(n),i.kc().onInputValueChange(e)})),i.Yb(),i.Wb()}if(2&e){var r=i.kc();i.Db(1),i.sc("ngForOf",r.listOfSlicedItem)("ngForTrackBy",r.trackValue),i.Db(1),i.sc("disabled",r.disabled)("value",r.inputValue)("autofocus",r.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",r.open)}}function Sm(e,t){if(1&e&&i.Ub(0,"nz-select-placeholder",10),2&e){var n=i.kc();i.sc("placeholder",n.placeHolder)}}function zm(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-select-clear",5),i.hc("clear",(function(){return i.Dc(n),i.kc().onClearSelection()})),i.Yb()}if(2&e){var r=i.kc();i.sc("clearIcon",r.nzClearIcon)}}function Tm(e,t){if(1&e&&i.Ub(0,"nz-select-arrow",6),2&e){var n=i.kc();i.sc("loading",n.nzLoading)("search",n.nzOpen&&n.nzShowSearch)("suffixIcon",n.nzSuffixIcon)}}function _m(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-option-container",7),i.hc("keydown",(function(e){return i.Dc(n),i.kc().onKeyDown(e)}))("itemClick",(function(e){return i.Dc(n),i.kc().onItemClick(e)}))("scrollToBottom",(function(){return i.Dc(n),i.kc().nzScrollToBottom.emit()})),i.Yb()}if(2&e){var r=i.kc();i.Jb("ant-select-dropdown-placement-bottomLeft","bottom"===r.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===r.dropDownPosition),i.sc("ngStyle",r.nzDropdownStyle)("itemSize",r.nzOptionHeightPx)("maxItemLength",r.nzOptionOverflowSize)("matchWidth",r.nzDropdownMatchSelectWidth)("@slideMotion",r.dropDownPosition)("@.disabled",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("nzNoAnimation",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("listOfContainerItem",r.listOfContainerItem)("menuItemSelectedIcon",r.nzMenuItemSelectedIcon)("notFoundContent",r.nzNotFoundContent)("activatedValue",r.activatedValue)("listOfSelectedValue",r.listOfValue)("dropdownRender",r.nzDropdownRender)("compareWith",r.compareWith)("mode",r.nzMode)}}function km(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzLabel)}}function Dm(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.label)}}function xm(e,t){1&e&&i.Ub(0,"i",5)}function Em(e,t){if(1&e&&(i.Zb(0,"div",3),i.Nc(1,"\n "),i.Lc(2,xm,1,0,"i",4),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("ngIf",!n.icon)("ngIfElse",n.icon)}}function Nm(e,t){1&e&&i.Ub(0,"i",2)}function jm(e,t){1&e&&i.Ub(0,"i",7)}function Im(e,t){1&e&&i.Ub(0,"i",8)}function Am(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,jm,1,0,"i",5),i.Nc(3,"\n "),i.Lc(4,Im,1,0,"i",6),i.Nc(5,"\n "),i.Wb()),2&e){var n=i.kc(2);i.Db(2),i.sc("ngIf",!n.search),i.Db(2),i.sc("ngIf",n.search)}}function Mm(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"i",10),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.sc("nzType",n)}}function Lm(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,Mm,4,1,"ng-container",9),i.Nc(2,"\n ")),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.suffixIcon)}}function Pm(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,Am,6,2,"ng-container",3),i.Nc(2,"\n "),i.Lc(3,Lm,3,1,"ng-template",null,4,i.Mc),i.Nc(5,"\n ")),2&e){var n=i.Ac(4),r=i.kc();i.Db(1),i.sc("ngIf",!r.suffixIcon)("ngIfElse",n)}}function Fm(e,t){1&e&&i.Ub(0,"i",1)}function Rm(e,t){if(1&e&&(i.Zb(0,"div",4),i.Nc(1),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.label)}}function Vm(e,t){if(1&e&&i.Nc(0),2&e){var n=i.kc(2);i.Oc(n.label)}}function Bm(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,Rm,2,1,"div",2),i.Nc(3,"\n "),i.Lc(4,Vm,1,1,"ng-template",null,3,i.Mc),i.Nc(6,"\n "),i.Wb()),2&e){var n=i.Ac(5),r=i.kc();i.Db(2),i.sc("ngIf",r.deletable)("ngIfElse",n)}}function Ym(e,t){1&e&&i.Ub(0,"i",7)}function Um(e,t){if(1&e){var n=i.ac();i.Zb(0,"span",5),i.hc("click",(function(e){return i.Dc(n),i.kc().onDelete(e)})),i.Nc(1,"\n "),i.Lc(2,Ym,1,0,"i",6),i.Nc(3,"\n "),i.Yb()}if(2&e){var r=i.kc();i.Db(2),i.sc("ngIf",!r.removeIcon)("ngIfElse",r.removeIcon)}}var Hm=function(e){return{$implicit:e}};function Wm(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Pc("\n ",n.placeholder,"\n ")}}var qm=function(){function e(){this.nzLabel=null,this.changes=new kt.a}return e.prototype.ngOnChanges=function(){this.changes.next()},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[i.Bb],ngContentSelectors:um,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n "))},encapsulation:2,changeDetection:0}),e}(),Zm=function(){function e(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new i.n,this.scrollToBottom=new i.n,this.scrolledIndex=0}return e.prototype.onItemClick=function(e){this.itemClick.emit(e)},e.prototype.onItemHover=function(e){this.activatedValue=e},e.prototype.trackValue=function(e,t){return t.key},e.prototype.onScrolledIndexChange=function(e){this.scrolledIndex=e,e===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()},e.prototype.scrollToActivatedValue=function(){var e=this,t=this.listOfContainerItem.findIndex((function(t){return e.compareWith(t.key,e.activatedValue)}));(t=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(t||0)},e.prototype.ngOnChanges=function(e){(e.listOfContainerItem||e.activatedValue)&&this.scrollToActivatedValue()},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){return e.scrollToActivatedValue()}))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-option-container"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Rb.c,!0),2&e&&i.zc(n=i.ic())&&(t.cdkVirtualScrollViewport=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-select-dropdown",!0)},inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem",compareWith:"compareWith"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[i.Bb],decls:5,vars:13,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(e,t){1&e&&(i.Zb(0,"div"),i.Lc(1,lm,2,1,"div",0),i.Zb(2,"cdk-virtual-scroll-viewport",1),i.hc("scrolledIndexChange",(function(e){return t.onScrolledIndexChange(e)})),i.Lc(3,dm,4,3,"ng-container",2),i.Yb(),i.Lc(4,fm,0,0,"ng-template",3),i.Yb()),2&e&&(i.Db(1),i.sc("ngIf",0===t.listOfContainerItem.length),i.Db(1),i.Kc("height",t.listOfContainerItem.length*t.itemSize,"px")("max-height",t.itemSize*t.maxItemLength,"px"),i.Jb("full-width",!t.matchWidth),i.sc("itemSize",t.itemSize)("maxBufferPx",t.itemSize*t.maxItemLength)("minBufferPx",t.itemSize*t.maxItemLength),i.Db(1),i.sc("cdkVirtualForOf",t.listOfContainerItem)("cdkVirtualForTrackBy",t.trackValue),i.Db(1),i.sc("ngTemplateOutlet",t.dropdownRender))},directives:function(){return[Vr.t,Rb.c,Rb.a,Rb.b,Vr.A,im,Vr.x,Vr.y,Jm,ev]},encapsulation:2,changeDetection:0}),e}(),$m=function(){function e(e){this.nzOptionGroupComponent=e,this.destroy$=new kt.a,this.changes=new kt.a,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}return e.prototype.ngOnInit=function(){var e=this;this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe(Object(Ka.a)(!0),Object(ss.a)(this.destroy$)).subscribe((function(){e.groupLabel=e.nzOptionGroupComponent.nzLabel}))},e.prototype.ngOnChanges=function(){this.changes.next()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzHide",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzCustomContent",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(qm,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-option"]],viewQuery:function(e,t){var n;1&e&&i.Jc(i.M,!0),2&e&&i.zc(n=i.ic())&&(t.template=n.first)},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[i.Bb],ngContentSelectors:um,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Lc(1,gm,3,0,"ng-template"),i.Nc(2,"\n "))},encapsulation:2,changeDetection:0}),e}(),Gm=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.focusMonitor=n,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new i.n,this.isComposingChange=new i.n}return e.prototype.setCompositionState=function(e){this.isComposingChange.next(e)},e.prototype.onValueChange=function(e){this.inputElement.nativeElement.value=e,this.value=e,this.valueChange.next(e),this.mirrorSync&&this.syncMirrorWidth()},e.prototype.clearInputValue=function(){this.onValueChange("")},e.prototype.syncMirrorWidth=function(){var e=this.mirrorElement.nativeElement,t=this.elementRef.nativeElement,n=this.inputElement.nativeElement;this.renderer.removeStyle(t,"width"),e.innerHTML=n.value+" ",this.renderer.setStyle(t,"width",e.scrollWidth+"px")},e.prototype.focus=function(){this.focusMonitor.focusVia(this.inputElement,"keyboard")},e.prototype.blur=function(){this.inputElement.nativeElement.blur()},e.prototype.ngOnChanges=function(e){var t=this.inputElement.nativeElement,n=e.focusTrigger,i=e.showInput;n&&!0===n.currentValue&&!1===n.previousValue&&t.focus(),i&&(this.showInput?this.renderer.removeAttribute(t,"readonly"):this.renderer.setAttribute(t,"readonly","readonly"))},e.prototype.ngAfterViewInit=function(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E),i.Tb(yo))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-select-search"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(bm,!0),i.Sc(mm,!0)),2&e&&(i.zc(n=i.ic())&&(t.inputElement=n.first),i.zc(n=i.ic())&&(t.mirrorElement=n.first))},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-select-selection-search",!0)},inputs:{disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[i.Bb],decls:6,vars:6,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"input",0,1),i.hc("ngModelChange",(function(e){return t.onValueChange(e)}))("compositionstart",(function(){return t.setCompositionState(!0)}))("compositionend",(function(){return t.setCompositionState(!1)})),i.Yb(),i.Nc(3,"\n "),i.Lc(4,vm,2,0,"span",2),i.Nc(5,"\n ")),2&e&&(i.Db(1),i.Kc("opacity",t.showInput?null:0),i.sc("ngModel",t.value)("disabled",t.disabled),i.Eb("autofocus",t.autofocus?"autofocus":null),i.Db(3),i.sc("ngIf",t.mirrorSync))},directives:[Ot.e,Ot.o,Ot.r,Vr.t],encapsulation:2,changeDetection:0}),e}(),Qm=function(){function e(e){this.noAnimation=e,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new i.n,this.inputValueChange=new i.n,this.animationEnd=new i.n,this.deleteItem=new i.n,this.openChange=new i.n,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null}return e.prototype.onHostClick=function(){this.disabled||this.openChange.next(!this.open)},e.prototype.onHostKeydown=function(e){e.keyCode===Zr.b&&"default"!==this.mode&&!e.target.value&&this.listOfTopItem.length>0&&(e.preventDefault(),this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1]))},e.prototype.updateTemplateVariable=function(){var e=0===this.listOfTopItem.length;this.isShowPlaceholder=e&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!e&&!this.isComposing&&!this.inputValue},e.prototype.isComposingChange=function(e){this.isComposing=e,this.updateTemplateVariable()},e.prototype.onInputValueChange=function(e){e!==this.inputValue&&(this.inputValue=e,this.updateTemplateVariable(),this.inputValueChange.emit(e),this.tokenSeparate(e,this.tokenSeparators))},e.prototype.tokenSeparate=function(e,t){var n,i,r;if(e&&e.length&&t.length&&"default"!==this.mode&&function(e,t){for(var n=0;n0)return!0;return!1}(e,t)){var o=(n=e,i=new RegExp("["+t.join()+"]"),r=n.split(i).filter((function(e){return e})),Object(zt.g)(new Set(r)));this.tokenize.next(o)}},e.prototype.clearInputValue=function(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()},e.prototype.focus=function(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()},e.prototype.blur=function(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()},e.prototype.trackValue=function(e,t){return t.nzValue},e.prototype.onDeleteItem=function(e){this.disabled||e.nzDisabled||this.deleteItem.next(e)},e.prototype.onAnimationEnd=function(){this.animationEnd.next()},e.prototype.ngOnChanges=function(e){var t=this,n=e.listOfTopItem,i=e.maxTagCount,r=e.customTemplate,o=e.maxTagPlaceholder;if(n&&this.updateTemplateVariable(),n||i||r||o){var a=this.listOfTopItem.slice(0,this.maxTagCount).map((function(e){return{nzLabel:e.nzLabel,nzValue:e.nzValue,nzDisabled:e.nzDisabled,contentTemplateOutlet:t.customTemplate,contentTemplateOutletContext:e}}));if(this.listOfTopItem.length>this.maxTagCount){var s="+ "+(this.listOfTopItem.length-this.maxTagCount)+" ...",c=this.listOfTopItem.map((function(e){return e.nzValue})),u={nzLabel:s,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:c.slice(this.maxTagCount)};a.push(u)}this.listOfSlicedItem=a}},e.\u0275fac=function(t){return new(t||e)(i.Tb(ac.a,9))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-select-top-control"]],viewQuery:function(e,t){var n;1&e&&i.Sc(Gm,!0),2&e&&i.zc(n=i.ic())&&(t.nzSelectSearchComponent=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&i.hc("click",(function(){return t.onHostClick()}))("keydown",(function(e){return t.onHostKeydown(e)})),2&e&&i.Jb("ant-select-selector",!0)},inputs:{showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",animationEnd:"animationEnd",deleteItem:"deleteItem",openChange:"openChange"},exportAs:["nzSelectTopControl"],features:[i.Bb],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"nzNoAnimation","removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"nzNoAnimation","removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(e,t){1&e&&(i.Xb(0,0),i.Lc(1,wm,3,7,"ng-container",1),i.Lc(2,Cm,3,8,"ng-container",2),i.Wb(),i.Lc(3,Sm,1,1,"nz-select-placeholder",3)),2&e&&(i.sc("ngSwitch",t.mode),i.Db(1),i.sc("ngSwitchCase","default"),i.Db(2),i.sc("ngIf",t.isShowPlaceholder))},directives:function(){return[Vr.x,Vr.y,Vr.z,Vr.t,Gm,iv,Vr.s,ac.a,Hd.a,rv]},encapsulation:2,data:{animation:[xs.k]},changeDetection:0}),e}(),Xm=function(e,t){return!(!t||!t.nzLabel)&&t.nzLabel.toLowerCase().indexOf(e.toLowerCase())>-1},Km=function(){function e(e,t,n,r,o,a){this.nzConfigService=e,this.cdr=t,this.elementRef=n,this.platform=r,this.focusMonitor=o,this.noAnimation=a,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzShowArrow=!0,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=Xm,this.compareWith=function(e,t){return e===t},this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzOptions=[],this.nzOnSearch=new i.n,this.nzScrollToBottom=new i.n,this.nzOpenChange=new i.n,this.nzBlur=new i.n,this.nzFocus=new i.n,this.listOfValue$=new qu.a([]),this.listOfTemplateItem$=new qu.a([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.destroy$=new kt.a,this.onChange=function(){},this.onTouched=function(){},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[]}return e.prototype.generateTagItem=function(e){return{nzValue:e,nzLabel:e,type:"item"}},e.prototype.onItemClick=function(e){var t=this;if(this.activatedValue=e,"default"===this.nzMode)0!==this.listOfValue.length&&this.compareWith(this.listOfValue[0],e)||this.updateListOfValue([e]),this.setOpenState(!1);else{var n=this.listOfValue.findIndex((function(n){return t.compareWith(n,e)}));if(-1!==n){var i=this.listOfValue.filter((function(e,t){return t!==n}));this.updateListOfValue(i)}else if(this.listOfValue.length0?t[0]:null:t);this.value!==n&&(this.listOfValue=e,this.listOfValue$.next(e),this.value=n,this.onChange(this.value))},e.prototype.onTokenSeparate=function(e){var t=this,n=this.listOfTagAndTemplateItem.filter((function(t){return-1!==e.findIndex((function(e){return e===t.nzLabel}))})).map((function(e){return e.nzValue})).filter((function(e){return-1===t.listOfValue.findIndex((function(n){return t.compareWith(n,e)}))}));if("multiple"===this.nzMode)this.updateListOfValue(Object(zt.g)(this.listOfValue,n));else if("tags"===this.nzMode){var i=e.filter((function(e){return-1===t.listOfTagAndTemplateItem.findIndex((function(t){return t.nzLabel===e}))}));this.updateListOfValue(Object(zt.g)(this.listOfValue,n,i))}this.clearInput()},e.prototype.onKeyDown=function(e){var t=this;if(!this.nzDisabled){var n=this.listOfContainerItem.filter((function(e){return"item"===e.type})).filter((function(e){return!e.nzDisabled})),i=n.findIndex((function(e){return t.compareWith(e.nzValue,t.activatedValue)}));switch(e.keyCode){case Zr.k:e.preventDefault(),this.nzOpen&&(this.activatedValue=n[i>0?i-1:n.length-1].nzValue);break;case Zr.c:e.preventDefault(),this.nzOpen?this.activatedValue=n[i2&&(t===this.maxIndex?this.prepareVerticalContext(!0):0===t&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform","translate3d(0, "+(-t*this.unitHeight+e.x)+"px, 0)")):(!this.isDragging&&this.length>2&&(t===this.maxIndex?this.prepareHorizontalContext(!0):0===t&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform","translate3d("+(-t*this.unitWidth+e.x)+"px, 0, 0)")),this.isDragging=!0}},t.prototype.verticalTransform=function(e,t){var n=this.getFromToInBoundary(e,t),i=n.to;this.length>2&&t!==i?(this.prepareVerticalContext(i2&&t!==i?(this.prepareHorizontalContext(iu.gestureRect.width/3?u.goTo(e>0?u.activeIndex-1:u.activeIndex+1):u.goTo(u.activeIndex),u.gestureRect=null,u.pointerDelta=null}u.isDragging=!1})))},this.nzDotPosition="bottom",this.renderer.addClass(e.nativeElement,"ant-carousel"),this.el=e.nativeElement}return Object.defineProperty(e.prototype,"nzDotPosition",{get:function(){return this._dotPosition},set:function(e){this._dotPosition=e,this.vertical="left"===e||"right"===e},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.markContentActive(0)},e.prototype.ngAfterViewInit=function(){var e=this;this.platform.isBrowser&&(this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.carouselContents.changes.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.markContentActive(0),e.syncStrategy()})),this.resizeService.subscribe().pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.syncStrategy()})),this.switchStrategy(),this.markContentActive(0),this.syncStrategy(),Promise.resolve().then((function(){e.syncStrategy()})))},e.prototype.ngOnChanges=function(e){var t=e.nzEffect,n=e.nzDotPosition;t&&!t.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.syncStrategy()),n&&!n.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.syncStrategy()),this.nzAutoPlay&&this.nzAutoPlaySpeed?this.scheduleNextTransition():this.clearScheduledTransition()},e.prototype.ngOnDestroy=function(){this.clearScheduledTransition(),this.strategy&&this.strategy.dispose(),this.destroy$.next(),this.destroy$.complete()},e.prototype.onKeyDown=function(e){e.keyCode===Zr.f?(e.preventDefault(),this.pre()):e.keyCode===Zr.h&&(this.next(),e.preventDefault())},e.prototype.next=function(){this.goTo(this.activeIndex+1)},e.prototype.pre=function(){this.goTo(this.activeIndex-1)},e.prototype.goTo=function(e){var t=this;if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting){var n=this.carouselContents.length,i=this.activeIndex,r=(e+n)%n;this.isTransiting=!0,this.nzBeforeChange.emit({from:i,to:r}),this.strategy.switch(this.activeIndex,e).subscribe((function(){t.scheduleNextTransition(),t.nzAfterChange.emit(e),t.isTransiting=!1})),this.markContentActive(r),this.cdr.markForCheck()}},e.prototype.switchStrategy=function(){var e=this;this.strategy&&this.strategy.dispose();var t=this.customStrategies?this.customStrategies.find((function(t){return t.name===e.nzEffect})):null;this.strategy=t?new t.strategy(this,this.cdr,this.renderer):"scrollx"===this.nzEffect?new sy(this,this.cdr,this.renderer):new ay(this,this.cdr,this.renderer)},e.prototype.scheduleNextTransition=function(){var e=this;this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout((function(){e.goTo(e.activeIndex+1)}),this.nzAutoPlaySpeed))},e.prototype.clearScheduledTransition=function(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=null)},e.prototype.markContentActive=function(e){this.activeIndex=e,this.carouselContents&&this.carouselContents.forEach((function(t,n){t.isActive=e===n})),this.cdr.markForCheck()},e.prototype.syncStrategy=function(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)},Object(zt.b)([Object(Qa.b)("carousel"),Object(zt.d)("design:type",String)],e.prototype,"nzEffect",void 0),Object(zt.b)([Object(Qa.b)("carousel"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzEnableSwipe",void 0),Object(zt.b)([Object(Qa.b)("carousel"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzDots",void 0),Object(zt.b)([Object(Qa.b)("carousel"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAutoPlay",void 0),Object(zt.b)([Object(Qa.b)("carousel"),Object(es.b)(),Object(zt.d)("design:type",Number)],e.prototype,"nzAutoPlaySpeed",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzTransitionSpeed",void 0),Object(zt.b)([Object(Qa.b)("carousel"),Object(zt.d)("design:type",String),Object(zt.d)("design:paramtypes",[String])],e.prototype,"nzDotPosition",null),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(Qa.a),i.Tb(i.E),i.Tb(i.h),i.Tb(Xr.a),i.Tb(ds),i.Tb(fs),i.Tb(cy,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-carousel"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,ry,!1),2&e&&i.zc(r=i.ic())&&(t.carouselContents=r)},viewQuery:function(e,t){var n;1&e&&(i.Sc(Qv,!0),i.Sc(Xv,!0)),2&e&&(i.zc(n=i.ic())&&(t.slickList=n.first),i.zc(n=i.ic())&&(t.slickTrack=n.first))},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-carousel-vertical",t.vertical)},inputs:{nzEffect:"nzEffect",nzEnableSwipe:"nzEnableSwipe",nzDots:"nzDots",nzAutoPlay:"nzAutoPlay",nzAutoPlaySpeed:"nzAutoPlaySpeed",nzTransitionSpeed:"nzTransitionSpeed",nzDotPosition:"nzDotPosition",nzDotRender:"nzDotRender"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[i.Bb],ngContentSelectors:iy,decls:9,vars:3,consts:[[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"keydown","mousedown","touchstart"],["slickList",""],[1,"slick-track"],["slickTrack",""],["class","slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right",4,"ngIf"],["renderDotTemplate",""],[1,"slick-dots"],[3,"slick-active","click",4,"ngFor","ngForOf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"div",0),i.Zb(1,"div",1,2),i.hc("keydown",(function(e){return t.onKeyDown(e)}))("mousedown",(function(e){return t.pointerDown(e)}))("touchstart",(function(e){return t.pointerDown(e)})),i.Zb(3,"div",3,4),i.qc(5),i.Yb(),i.Yb(),i.Lc(6,ty,2,9,"ul",5),i.Yb(),i.Lc(7,ny,2,1,"ng-template",null,6,i.Mc)),2&e&&(i.Jb("slick-vertical","left"===t.nzDotPosition||"right"===t.nzDotPosition),i.Db(6),i.sc("ngIf",t.nzDots))},directives:[Vr.t,Vr.s,Vr.A],encapsulation:2,changeDetection:0}),e}(),ly=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Xr.b]]}),e}(),py=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hy=/([^\#-~ |!])/g,dy=function(){function e(){this.UNIQUE_WRAPPERS=["##==-open_tag-==##","##==-close_tag-==##"]}return e.prototype.transform=function(e,t,n,i){if(!t)return e;var r=new RegExp(t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$&"),n);return function(e){return e.replace(/&/g,"&").replace(py,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(hy,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}(e.replace(r,this.UNIQUE_WRAPPERS[0]+"$&"+this.UNIQUE_WRAPPERS[1])).replace(new RegExp(this.UNIQUE_WRAPPERS[0],"g"),i?'':"").replace(new RegExp(this.UNIQUE_WRAPPERS[1],"g"),"")},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Sb({name:"nzHighlight",type:e,pure:!0}),e}(),fy=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c]]}),e}(),gy=["nz-cascader-option",""];function by(e,t){}var my=function(e,t){return{$implicit:e,index:t}};function vy(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,by,0,0,"ng-template",3),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",i.wc(2,my,n.option,n.columnIndex))}}function yy(e,t){if(1&e&&(i.Nc(0,"\n "),i.Ub(1,"span",4),i.lc(2,"nzHighlight"),i.Nc(3,"\n ")),2&e){var n=i.kc();i.Db(1),i.sc("innerHTML",i.pc(2,1,n.optionLabel,n.highlightText,"g","ant-cascader-menu-item-keyword"),i.Ec)}}function wy(e,t){if(1&e&&(i.Zb(0,"span",5),i.Nc(1,"\n "),i.Ub(2,"i",6),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzType",n.option.loading?"loading":"right")}}var Oy=["input"],Cy=["menu"];function Sy(e,t){if(1&e){var n=i.ac();i.Zb(0,"i",12),i.hc("click",(function(e){return i.Dc(n),i.kc(2).clearSelection(e)})),i.Yb()}}function zy(e,t){if(1&e&&i.Ub(0,"i",13),2&e){var n=i.kc(2);i.Jb("ant-cascader-picker-arrow-expand",n.menuVisible)}}function Ty(e,t){1&e&&i.Ub(0,"i",14)}function _y(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.labelRenderText)}}function ky(e,t){}function Dy(e,t){if(1&e&&i.Lc(0,ky,0,0,"ng-template",15),2&e){var n=i.kc(2);i.sc("ngTemplateOutlet",n.nzLabelRender)("ngTemplateOutletContext",n.labelRenderContext)}}function xy(e,t){if(1&e){var n=i.ac();i.Zb(0,"div"),i.Zb(1,"input",4,5),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc().inputValue=e}))("blur",(function(){return i.Dc(n),i.kc().handleInputBlur()}))("focus",(function(){return i.Dc(n),i.kc().handleInputFocus()}))("change",(function(e){return i.Dc(n),e.stopPropagation()})),i.Yb(),i.Lc(3,Sy,1,0,"i",6),i.Lc(4,zy,1,2,"i",7),i.Lc(5,Ty,1,0,"i",8),i.Zb(6,"span",9),i.Lc(7,_y,2,1,"ng-container",10),i.Lc(8,Dy,1,2,"ng-template",null,11,i.Mc),i.Yb(),i.Yb()}if(2&e){var r=i.Ac(9),o=i.kc();i.Db(1),i.Jb("ant-cascader-input-disabled",o.nzDisabled)("ant-cascader-input-lg","large"===o.nzSize)("ant-cascader-input-sm","small"===o.nzSize),i.sc("readonly",!o.nzShowSearch)("disabled",o.nzDisabled)("nzSize",o.nzSize)("ngModel",o.inputValue),i.Eb("autoComplete","off")("placeholder",o.showPlaceholder?o.nzPlaceHolder||(null==o.locale?null:o.locale.placeholder):null)("autofocus",o.nzAutoFocus?"autofocus":null),i.Db(2),i.sc("ngIf",o.clearIconVisible),i.Db(1),i.sc("ngIf",o.nzShowArrow&&!o.isLoading),i.Db(1),i.sc("ngIf",o.isLoading),i.Db(1),i.Jb("ant-cascader-show-search",!!o.nzShowSearch)("ant-focusd",!!o.nzShowSearch&&o.isFocused&&!o.inputValue),i.Db(1),i.sc("ngIf",!o.isLabelRenderTemplate)("ngIfElse",r)}}function Ey(e,t){if(1&e&&(i.Zb(0,"ul",20),i.Zb(1,"li",21),i.Ub(2,"nz-embed-empty",22),i.Yb(),i.Yb()),2&e){var n=i.kc(2);i.Kc("width",n.dropdownWidthStyle)("height",n.dropdownHeightStyle),i.Db(2),i.sc("nzComponentName","cascader")("specificContent",n.nzNotFoundContent)}}function Ny(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",26),i.hc("mouseenter",(function(e){i.Dc(n);var r=t.$implicit,o=i.kc().index;return i.kc(3).onOptionMouseEnter(r,o,e)}))("mouseleave",(function(e){i.Dc(n);var r=t.$implicit,o=i.kc().index;return i.kc(3).onOptionMouseLeave(r,o,e)}))("click",(function(e){i.Dc(n);var r=t.$implicit,o=i.kc().index;return i.kc(3).onOptionClick(r,o,e)})),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc().index,a=i.kc(3);i.sc("columnIndex",o)("nzLabelProperty",a.nzLabelProperty)("optionTemplate",a.nzOptionRender)("activated",a.isOptionActivated(r,o))("highlightText",a.inSearchingMode?a.inputValue:"")("option",r)}}function jy(e,t){if(1&e&&(i.Zb(0,"ul",24),i.Lc(1,Ny,1,6,"li",25),i.Yb()),2&e){var n=t.$implicit,r=i.kc(3);i.Kc("height",r.dropdownHeightStyle)("width",r.dropdownWidthStyle),i.sc("ngClass",r.menuColumnCls),i.Db(1),i.sc("ngForOf",n)}}function Iy(e,t){if(1&e&&i.Lc(0,jy,2,6,"ul",23),2&e){var n=i.kc(2);i.sc("ngForOf",n.cascaderService.columns)}}function Ay(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",16,17),i.hc("mouseleave",(function(e){return i.Dc(n),i.kc().onTriggerMouseLeave(e)})),i.Lc(2,Ey,3,6,"ul",18),i.Lc(3,Iy,1,1,"ng-template",null,19,i.Mc),i.Yb()}if(2&e){var r=i.Ac(4),o=i.kc();i.Jb("ant-cascader-menus-hidden",!o.menuVisible),i.sc("ngClass",o.menuCls)("ngStyle",o.nzMenuStyle)("@.disabled",null==o.noAnimation?null:o.noAnimation.nzNoAnimation)("nzNoAnimation",null==o.noAnimation?null:o.noAnimation.nzNoAnimation)("@slideMotion",o.dropDownPosition),i.Db(2),i.sc("ngIf",o.shouldShowEmpty)("ngIfElse",r)}}var My=["*"];function Ly(e){return"boolean"!=typeof e}var Py=function(){function e(e,t,n){this.cdr=e,this.optionTemplate=null,this.activated=!1,this.nzLabelProperty="label",n.addClass(t.nativeElement,"ant-cascader-menu-item")}return Object.defineProperty(e.prototype,"optionLabel",{get:function(){return this.option[this.nzLabelProperty]},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){this.cdr.markForCheck()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-cascader-option",""]],hostVars:7,hostBindings:function(e,t){2&e&&(i.Eb("title",t.option.title||t.optionLabel),i.Jb("ant-cascader-menu-item-active",t.activated)("ant-cascader-menu-item-expand",!t.option.isLeaf)("ant-cascader-menu-item-disabled",t.option.disabled))},inputs:{optionTemplate:"optionTemplate",activated:"activated",nzLabelProperty:"nzLabelProperty",option:"option",highlightText:"highlightText",columnIndex:"columnIndex"},exportAs:["nzCascaderOption"],attrs:gy,decls:8,vars:3,consts:[[4,"ngIf","ngIfElse"],["defaultOptionTemplate",""],["class","ant-cascader-menu-item-expand-icon",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[1,"ant-cascader-menu-item-expand-icon"],["nz-icon","",3,"nzType"]],template:function(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,vy,4,5,"ng-container",0),i.Nc(2,"\n "),i.Lc(3,yy,4,6,"ng-template",null,1,i.Mc),i.Nc(5,"\n "),i.Lc(6,wy,4,1,"span",2),i.Nc(7,"\n ")),2&e){var n=i.Ac(4);i.Db(1),i.sc("ngIf",t.optionTemplate)("ngIfElse",n),i.Db(5),i.sc("ngIf",!t.option.isLeaf||(null==t.option.children?null:t.option.children.length)||t.option.loading)}},directives:[Vr.t,Vr.A,Ns.a],pipes:[dy],encapsulation:2,changeDetection:0}),e}(),Fy=function(){function e(){this.activatedOptions=[],this.columns=[],this.inSearchingMode=!1,this.selectedOptions=[],this.values=[],this.$loading=new qu.a(!1),this.$redraw=new kt.a,this.$optionSelected=new kt.a,this.$quitSearching=new kt.a,this.columnsSnapshot=[[]],this.activatedOptionsSnapshot=[]}return Object.defineProperty(e.prototype,"nzOptions",{get:function(){return this.columns[0]},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.$redraw.complete(),this.$quitSearching.complete(),this.$optionSelected.complete(),this.$loading.complete()},e.prototype.syncOptions=function(e){var t=this;void 0===e&&(e=!1);var n=this.values,i=n&&n.length,r=n.length-1,o=function(e){var i=function(){var i,a=n[e];if(Object(es.p)(a)){var s=t.findOptionWithValue(e,n[e])||("object"==typeof a?a:((i={})[""+t.cascaderComponent.nzValueProperty]=a,i[""+t.cascaderComponent.nzLabelProperty]=a,i));t.setOptionActivated(s,e,!1,!1),e=0;t--)this.activatedOptions[t]||(this.activatedOptions[t]=this.activatedOptions[t+1].parent)},e.prototype.dropBehindActivatedOptions=function(e){this.activatedOptions=this.activatedOptions.splice(0,e+1)},e.prototype.dropBehindColumns=function(e){e0},e.prototype.findOptionWithValue=function(e,t){var n=this,i=this.columns[e];if(i){var r="object"==typeof t?this.getOptionValue(t):t;return i.find((function(e){return r===n.getOptionValue(e)}))}return null},e.prototype.prepareEmitValue=function(){var e=this;this.values=this.selectedOptions.map((function(t){return e.getOptionValue(t)}))},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),Ry=function(e){return e.join(" / ")},Vy=function(){function e(e,t,n,r,o,a,s){this.cascaderService=e,this.i18nService=t,this.nzConfigService=n,this.cdr=r,this.noAnimation=s,this.nzOptionRender=null,this.nzShowInput=!0,this.nzShowArrow=!0,this.nzAllowClear=!0,this.nzAutoFocus=!1,this.nzChangeOnSelect=!1,this.nzDisabled=!1,this.nzExpandTrigger="click",this.nzValueProperty="value",this.nzLabelRender=null,this.nzLabelProperty="label",this.nzSize="default",this.nzShowSearch=!1,this.nzPlaceHolder="",this.nzMenuStyle=null,this.nzMouseEnterDelay=150,this.nzMouseLeaveDelay=150,this.nzTriggerAction=["click"],this.nzVisibleChange=new i.n,this.nzSelectionChange=new i.n,this.nzSelect=new i.n,this.nzClear=new i.n,this.shouldShowEmpty=!1,this.dropDownPosition="bottom",this.menuVisible=!1,this.isLoading=!1,this.labelRenderContext={},this.onChange=Function.prototype,this.onTouched=Function.prototype,this.positions=Object(zt.g)(Nu.a),this.dropdownHeightStyle="",this.isFocused=!1,this.destroy$=new kt.a,this.inputString="",this.isOpening=!1,this.delayMenuTimer=null,this.delaySelectTimer=null,this.el=o.nativeElement,this.cascaderService.withComponent(this),a.addClass(o.nativeElement,"ant-cascader"),a.addClass(o.nativeElement,"ant-cascader-picker")}return Object.defineProperty(e.prototype,"nzOptions",{get:function(){return this.cascaderService.nzOptions},set:function(e){this.cascaderService.withOptions(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inSearchingMode",{get:function(){return this.cascaderService.inSearchingMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return this.inputString},set:function(e){this.inputString=e,this.toggleSearchingMode(!!e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menuCls",{get:function(){var e;return(e={})[""+this.nzMenuClassName]=!!this.nzMenuClassName,e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menuColumnCls",{get:function(){var e;return(e={})[""+this.nzColumnClassName]=!!this.nzColumnClassName,e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasInput",{get:function(){return!!this.inputValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasValue",{get:function(){return this.cascaderService.values&&this.cascaderService.values.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showPlaceholder",{get:function(){return!(this.hasInput||this.hasValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearIconVisible",{get:function(){return this.nzAllowClear&&!this.nzDisabled&&(this.hasValue||this.hasInput)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLabelRenderTemplate",{get:function(){return!!this.nzLabelRender},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.cascaderService;t.$redraw.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.checkChildren(),e.setDisplayLabel(),e.reposition(),e.setDropdownStyles(),e.cdr.markForCheck()})),t.$loading.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.isLoading=t})),t.$optionSelected.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){if(t){var n=t.option,i=t.index;n.isLeaf&&e.delaySetMenuVisible(!1),e.onChange(e.cascaderService.values),e.nzSelectionChange.emit(e.cascaderService.selectedOptions),e.nzSelect.emit({option:n,index:i}),e.cdr.markForCheck()}else e.onChange([]),e.nzSelect.emit(null),e.nzSelectionChange.emit([])})),t.$quitSearching.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.inputString="",e.dropdownWidthStyle=""})),this.i18nService.localeChange.pipe(Object(Ka.a)(),Object(ss.a)(this.destroy$)).subscribe((function(){e.setLocale()})),this.nzConfigService.getConfigChangeEventForComponent("cascader").pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.cdr.markForCheck()}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.clearDelayMenuTimer(),this.clearDelaySelectTimer()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.writeValue=function(e){this.cascaderService.values=Object(es.B)(e),this.cascaderService.syncOptions(!0)},e.prototype.delaySetMenuVisible=function(e,t,n){var i=this;void 0===t&&(t=100),void 0===n&&(n=!1),this.clearDelayMenuTimer(),t?(e&&n&&(this.isOpening=!0),this.delayMenuTimer=setTimeout((function(){i.setMenuVisible(e),i.cdr.detectChanges(),i.clearDelayMenuTimer(),e&&setTimeout((function(){i.isOpening=!1}),100)}),t)):this.setMenuVisible(e)},e.prototype.setMenuVisible=function(e){this.nzDisabled||this.menuVisible===e||(e&&this.cascaderService.syncOptions(),this.menuVisible=e,this.nzVisibleChange.emit(e),this.cdr.detectChanges())},e.prototype.clearDelayMenuTimer=function(){this.delayMenuTimer&&(clearTimeout(this.delayMenuTimer),this.delayMenuTimer=null)},e.prototype.clearSelection=function(e){e&&(e.preventDefault(),e.stopPropagation()),this.labelRenderText="",this.labelRenderContext={},this.inputValue="",this.setMenuVisible(!1),this.cascaderService.clear()},e.prototype.getSubmitValue=function(){var e=this;return this.cascaderService.selectedOptions.map((function(t){return e.cascaderService.getOptionValue(t)}))},e.prototype.focus=function(){this.isFocused||((this.input?this.input.nativeElement:this.el).focus(),this.isFocused=!0)},e.prototype.blur=function(){this.isFocused&&((this.input?this.input.nativeElement:this.el).blur(),this.isFocused=!1)},e.prototype.handleInputBlur=function(){this.menuVisible?this.focus():this.blur()},e.prototype.handleInputFocus=function(){this.focus()},e.prototype.onKeyDown=function(e){var t=e.keyCode;if(t===Zr.c||t===Zr.k||t===Zr.f||t===Zr.h||t===Zr.d||t===Zr.b||t===Zr.e)return this.menuVisible||t===Zr.b||t===Zr.e?void((!this.inSearchingMode||t!==Zr.b&&t!==Zr.f&&t!==Zr.h)&&this.menuVisible&&(e.preventDefault(),t===Zr.c?this.moveUpOrDown(!1):t===Zr.k?this.moveUpOrDown(!0):t===Zr.f?this.moveLeft():t===Zr.h?this.moveRight():t===Zr.d&&this.onEnter())):this.setMenuVisible(!0)},e.prototype.onTriggerClick=function(){this.nzDisabled||(this.nzShowSearch&&this.focus(),this.isActionTrigger("click")&&this.delaySetMenuVisible(!this.menuVisible,100),this.onTouched())},e.prototype.onTriggerMouseEnter=function(){!this.nzDisabled&&this.isActionTrigger("hover")&&this.delaySetMenuVisible(!0,this.nzMouseEnterDelay,!0)},e.prototype.onTriggerMouseLeave=function(e){if(!this.nzDisabled&&this.menuVisible&&!this.isOpening&&this.isActionTrigger("hover")){var t=e.relatedTarget,n=this.menu&&this.menu.nativeElement;this.el.contains(t)||n&&n.contains(t)||this.delaySetMenuVisible(!1,this.nzMouseLeaveDelay)}else e.preventDefault()},e.prototype.onOptionMouseEnter=function(e,t,n){n.preventDefault(),"hover"===this.nzExpandTrigger&&(e.isLeaf?this.cascaderService.setOptionDeactivatedSinceColumn(t):this.delaySetOptionActivated(e,t,!1))},e.prototype.onOptionMouseLeave=function(e,t,n){n.preventDefault(),"hover"!==this.nzExpandTrigger||e.isLeaf||this.clearDelaySelectTimer()},e.prototype.onOptionClick=function(e,t,n){n&&n.preventDefault(),e&&e.disabled||(this.el.focus(),this.inSearchingMode?this.cascaderService.setSearchOptionSelected(e):this.cascaderService.setOptionActivated(e,t,!0))},e.prototype.isActionTrigger=function(e){return"string"==typeof this.nzTriggerAction?this.nzTriggerAction===e:-1!==this.nzTriggerAction.indexOf(e)},e.prototype.onEnter=function(){var e=Math.max(this.cascaderService.activatedOptions.length-1,0),t=this.cascaderService.activatedOptions[e];t&&!t.disabled&&(this.inSearchingMode?this.cascaderService.setSearchOptionSelected(t):this.cascaderService.setOptionActivated(t,e,!0))},e.prototype.moveUpOrDown=function(e){var t=Math.max(this.cascaderService.activatedOptions.length-1,0),n=this.cascaderService.activatedOptions[t],i=this.cascaderService.columns[t]||[],r=i.length,o=-1;for(o=n?i.indexOf(n):e?r:-1;!((o=e?o-1:o+1)<0||o>=r);){var a=i[o];if(a&&!a.disabled){this.cascaderService.setOptionActivated(a,t);break}}},e.prototype.moveLeft=function(){var e=this.cascaderService.activatedOptions;e.length&&e.pop()},e.prototype.moveRight=function(){var e=this.cascaderService.activatedOptions.length,t=this.cascaderService.columns[e];if(t&&t.length){var n=t.find((function(e){return!e.disabled}));n&&this.cascaderService.setOptionActivated(n,e)}},e.prototype.clearDelaySelectTimer=function(){this.delaySelectTimer&&(clearTimeout(this.delaySelectTimer),this.delaySelectTimer=null)},e.prototype.delaySetOptionActivated=function(e,t,n){var i=this;this.clearDelaySelectTimer(),this.delaySelectTimer=setTimeout((function(){i.cascaderService.setOptionActivated(e,t,n),i.delaySelectTimer=null}),150)},e.prototype.toggleSearchingMode=function(e){this.inSearchingMode!==e&&this.cascaderService.toggleSearchingMode(e),this.inSearchingMode&&this.cascaderService.prepareSearchOptions(this.inputValue)},e.prototype.isOptionActivated=function(e,t){return this.cascaderService.activatedOptions[t]===e},e.prototype.setDisabledState=function(e){e&&this.closeMenu(),this.nzDisabled=e},e.prototype.closeMenu=function(){this.blur(),this.clearDelayMenuTimer(),this.setMenuVisible(!1)},e.prototype.onPositionChange=function(e){var t="bottom"===e.connectionPair.originY?"bottom":"top";this.dropDownPosition!==t&&(this.dropDownPosition=t,this.cdr.detectChanges())},e.prototype.reposition=function(){var e=this;this.overlay&&this.overlay.overlayRef&&this.menuVisible&&Promise.resolve().then((function(){e.overlay.overlayRef.updatePosition()}))},e.prototype.checkChildren=function(){this.cascaderItems&&this.cascaderItems.forEach((function(e){return e.markForCheck()}))},e.prototype.setDisplayLabel=function(){var e=this,t=this.cascaderService.selectedOptions,n=t.map((function(t){return e.cascaderService.getOptionLabel(t)}));this.isLabelRenderTemplate?this.labelRenderContext={labels:n,selectedOptions:t}:this.labelRenderText=Ry.call(this,n,t)},e.prototype.setDropdownStyles=function(){var e=this.cascaderService.columns[0];this.shouldShowEmpty=this.inSearchingMode&&(!e||!e.length)||!(this.nzOptions&&this.nzOptions.length)&&!this.nzLoadData,this.dropdownHeightStyle=this.shouldShowEmpty?"auto":"",this.input&&(this.dropdownWidthStyle=this.inSearchingMode||this.shouldShowEmpty?this.input.nativeElement.offsetWidth+"px":"")},e.prototype.setLocale=function(){this.locale=this.i18nService.getLocaleData("global"),this.cdr.markForCheck()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowInput",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowArrow",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAllowClear",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzChangeOnSelect",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(Qa.b)("cascader"),Object(zt.d)("design:type",String)],e.prototype,"nzSize",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Fy),i.Tb(Lp),i.Tb(Qa.a),i.Tb(i.h),i.Tb(i.l),i.Tb(i.E),i.Tb(ac.a,9))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-cascader"],["","nz-cascader",""]],viewQuery:function(e,t){var n;1&e&&(i.Sc(Oy,!0),i.Sc(Cy,!0),i.Sc(Ur.a,!0),i.Sc(Py,!0)),2&e&&(i.zc(n=i.ic())&&(t.input=n.first),i.zc(n=i.ic())&&(t.menu=n.first),i.zc(n=i.ic())&&(t.overlay=n.first),i.zc(n=i.ic())&&(t.cascaderItems=n))},hostVars:13,hostBindings:function(e,t){1&e&&i.hc("keydown",(function(e){return t.onKeyDown(e)}))("click",(function(){return t.onTriggerClick()}))("mouseenter",(function(){return t.onTriggerMouseEnter()}))("mouseleave",(function(e){return t.onTriggerMouseLeave(e)})),2&e&&(i.Eb("tabIndex","0"),i.Jb("ant-cascader-lg","large"===t.nzSize)("ant-cascader-sm","small"===t.nzSize)("ant-cascader-picker-disabled",t.nzDisabled)("ant-cascader-picker-open",t.menuVisible)("ant-cascader-picker-with-value",!!t.inputValue)("ant-cascader-focused",t.isFocused))},inputs:{nzOptionRender:"nzOptionRender",nzShowInput:"nzShowInput",nzShowArrow:"nzShowArrow",nzAllowClear:"nzAllowClear",nzAutoFocus:"nzAutoFocus",nzChangeOnSelect:"nzChangeOnSelect",nzDisabled:"nzDisabled",nzExpandTrigger:"nzExpandTrigger",nzValueProperty:"nzValueProperty",nzLabelRender:"nzLabelRender",nzLabelProperty:"nzLabelProperty",nzSize:"nzSize",nzShowSearch:"nzShowSearch",nzPlaceHolder:"nzPlaceHolder",nzMenuStyle:"nzMenuStyle",nzMouseEnterDelay:"nzMouseEnterDelay",nzMouseLeaveDelay:"nzMouseLeaveDelay",nzTriggerAction:"nzTriggerAction",nzOptions:"nzOptions",nzColumnClassName:"nzColumnClassName",nzNotFoundContent:"nzNotFoundContent",nzMenuClassName:"nzMenuClassName",nzChangeOn:"nzChangeOn",nzLoadData:"nzLoadData"},outputs:{nzVisibleChange:"nzVisibleChange",nzSelectionChange:"nzSelectionChange",nzSelect:"nzSelect",nzClear:"nzClear"},exportAs:["nzCascader"],features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0},Fy])],ngContentSelectors:My,decls:6,vars:4,consts:[["cdkOverlayOrigin",""],["origin","cdkOverlayOrigin","trigger",""],[4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","","cdkConnectedOverlayHasBackdrop","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","backdropClick","detach","positionChange"],["nz-input","",1,"ant-cascader-input",3,"readonly","disabled","nzSize","ngModel","ngModelChange","blur","focus","change"],["input",""],["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-cascader-picker-clear",3,"click",4,"ngIf"],["nz-icon","","nzType","down","class","ant-cascader-picker-arrow",3,"ant-cascader-picker-arrow-expand",4,"ngIf"],["nz-icon","","nzType","loading","class","ant-cascader-picker-arrow",4,"ngIf"],[1,"ant-cascader-picker-label"],[4,"ngIf","ngIfElse"],["labelTemplate",""],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-cascader-picker-clear",3,"click"],["nz-icon","","nzType","down",1,"ant-cascader-picker-arrow"],["nz-icon","","nzType","loading",1,"ant-cascader-picker-arrow"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-cascader-menus",3,"ngClass","ngStyle","nzNoAnimation","mouseleave"],["menu",""],["class","ant-cascader-menu",3,"width","height",4,"ngIf","ngIfElse"],["hasOptionsTemplate",""],[1,"ant-cascader-menu"],[1,"ant-cascader-menu-item","ant-cascader-menu-item-expanded","ant-cascader-menu-item-disabled"],[3,"nzComponentName","specificContent"],["class","ant-cascader-menu",3,"ngClass","height","width",4,"ngFor","ngForOf"],[1,"ant-cascader-menu",3,"ngClass"],["nz-cascader-option","",3,"columnIndex","nzLabelProperty","optionTemplate","activated","highlightText","option","mouseenter","mouseleave","click",4,"ngFor","ngForOf"],["nz-cascader-option","",3,"columnIndex","nzLabelProperty","optionTemplate","activated","highlightText","option","mouseenter","mouseleave","click"]],template:function(e,t){if(1&e&&(i.rc(),i.Zb(0,"div",0,1),i.Lc(3,xy,10,22,"div",2),i.qc(4),i.Yb(),i.Lc(5,Ay,5,9,"ng-template",3),i.hc("backdropClick",(function(){return t.closeMenu()}))("detach",(function(){return t.closeMenu()}))("positionChange",(function(e){return t.onPositionChange(e)}))),2&e){var n=i.Ac(1);i.Db(3),i.sc("ngIf",t.nzShowInput),i.Db(2),i.sc("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayPositions",t.positions)("cdkConnectedOverlayOpen",t.menuVisible)}},directives:[Ur.b,Vr.t,Ur.a,Nu.e,Tc,Ot.e,Ot.o,Ot.r,Ns.a,Vr.A,Vr.q,Vr.w,ac.a,im,Vr.s,Py],encapsulation:2,data:{animation:[xs.g]},changeDetection:0}),e}(),By=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Ur.i,Es.a,cm,fy,Ns.b,Ec,ac.b,Nu.f]]}),e}(),Yy=["*"],Uy=["inputElement"],Hy=["nz-checkbox",""];function Wy(e,t){if(1&e){var n=i.ac();i.Zb(0,"label",1),i.hc("nzCheckedChange",(function(e){i.Dc(n);var r=t.$implicit;return i.kc().onCheckedChange(r,e)})),i.Zb(1,"span"),i.Nc(2),i.Yb(),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc();i.sc("nzDisabled",r.disabled||o.nzDisabled)("nzChecked",r.checked),i.Db(2),i.Oc(r.label)}}var qy=function(){function e(e,t){this.nzOnChange=new i.n,this.checkboxList=[],e.addClass(t.nativeElement,"ant-checkbox-group")}return e.prototype.addCheckbox=function(e){this.checkboxList.push(e)},e.prototype.removeCheckbox=function(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)},e.prototype.onChange=function(){var e=this.checkboxList.filter((function(e){return e.nzChecked})).map((function(e){return e.nzValue}));this.nzOnChange.emit(e)},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.E),i.Tb(i.l))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:Yy,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),Zy=function(){function e(e,t,n,r){this.elementRef=e,this.nzCheckboxWrapperComponent=t,this.cdr=n,this.focusMonitor=r,this.onChange=function(){},this.onTouched=function(){},this.nzCheckedChange=new i.n,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1}return e.prototype.hostClick=function(e){e.preventDefault(),this.focus(),this.innerCheckedChange(!this.nzChecked)},e.prototype.innerCheckedChange=function(e){this.nzDisabled||(this.nzChecked=e,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())},e.prototype.writeValue=function(e){this.nzChecked=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.cdr.markForCheck()},e.prototype.focus=function(){this.focusMonitor.focusVia(this.inputElement,"keyboard")},e.prototype.blur=function(){this.inputElement.nativeElement.blur()},e.prototype.ngOnInit=function(){var e=this;this.focusMonitor.monitor(this.elementRef,!0).subscribe((function(t){t||Promise.resolve().then((function(){return e.onTouched()}))})),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this)},e.prototype.ngAfterViewInit=function(){this.nzAutoFocus&&this.focus()},e.prototype.ngOnDestroy=function(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this)},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzIndeterminate",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzChecked",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(qy,8),i.Tb(i.h),i.Tb(yo))},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-checkbox",""]],viewQuery:function(e,t){var n;1&e&&i.Jc(Uy,!0),2&e&&i.zc(n=i.ic())&&(t.inputElement=n.first)},hostVars:4,hostBindings:function(e,t){1&e&&i.hc("click",(function(e){return t.hostClick(e)})),2&e&&i.Jb("ant-checkbox-wrapper",!0)("ant-checkbox-wrapper-checked",t.nzChecked)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0}])],attrs:Hy,ngContentSelectors:Yy,decls:6,vars:10,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange","click"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"span",0),i.Zb(1,"input",1,2),i.hc("ngModelChange",(function(e){return t.innerCheckedChange(e)}))("click",(function(e){return e.stopPropagation()})),i.Yb(),i.Ub(3,"span",3),i.Yb(),i.Zb(4,"span"),i.qc(5),i.Yb()),2&e&&(i.Jb("ant-checkbox-checked",t.nzChecked&&!t.nzIndeterminate)("ant-checkbox-disabled",t.nzDisabled)("ant-checkbox-indeterminate",t.nzIndeterminate),i.Db(1),i.sc("checked",t.nzChecked)("ngModel",t.nzChecked)("disabled",t.nzDisabled),i.Eb("autofocus",t.nzAutoFocus?"autofocus":null))},directives:[Ot.b,Ot.o,Ot.r],encapsulation:2,changeDetection:0}),e}(),$y=function(){function e(e,t,n){this.elementRef=e,this.focusMonitor=t,this.cdr=n,this.onChange=function(){},this.onTouched=function(){},this.options=[],this.nzDisabled=!1}return e.prototype.trackByOption=function(e,t){return t.value},e.prototype.onCheckedChange=function(e,t){e.checked=t,this.onChange(this.options)},e.prototype.ngOnInit=function(){var e=this;this.focusMonitor.monitor(this.elementRef,!0).subscribe((function(t){t||Promise.resolve().then((function(){return e.onTouched()}))}))},e.prototype.ngOnDestroy=function(){this.focusMonitor.stopMonitoring(this.elementRef)},e.prototype.writeValue=function(e){this.options=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.cdr.markForCheck()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(yo),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-checkbox-group"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-checkbox-group",!0)},inputs:{nzDisabled:"nzDisabled"},exportAs:["nzCheckboxGroup"],features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0}])],decls:1,vars:2,consts:[["nz-checkbox","","class","ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange",4,"ngFor","ngForOf","ngForTrackBy"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange"]],template:function(e,t){1&e&&i.Lc(0,Wy,3,3,"label",0),2&e&&i.sc("ngForOf",t.options)("ngForTrackBy",t.trackByOption)},directives:[Vr.s,Zy],encapsulation:2}),e}(),Gy=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Co]]}),e}(),Qy=["*"];function Xy(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"i",6),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit,r=i.kc(2);i.Db(2),i.sc("nzType",n||"right")("nzRotate",r.nzActive?90:0)}}function Ky(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,Xy,4,2,"ng-container",2),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzExpandedIcon)}}function Jy(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzHeader)}}function ew(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzExtra)}}function tw(e,t){if(1&e&&(i.Zb(0,"div",7),i.Nc(1,"\n "),i.Lc(2,ew,2,1,"ng-container",2),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzExtra)}}var nw=function(){function e(e,t){var n=this;this.nzConfigService=e,this.cdr=t,this.nzAccordion=!1,this.nzBordered=!0,this.nzExpandIconPosition="left",this.listOfNzCollapsePanelComponent=[],this.destroy$=new kt.a,this.nzConfigService.getConfigChangeEventForComponent("collapse").pipe(Object(ss.a)(this.destroy$)).subscribe((function(){n.cdr.markForCheck()}))}return e.prototype.addPanel=function(e){this.listOfNzCollapsePanelComponent.push(e)},e.prototype.removePanel=function(e){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(e),1)},e.prototype.click=function(e){this.nzAccordion&&!e.nzActive&&this.listOfNzCollapsePanelComponent.filter((function(t){return t!==e})).forEach((function(e){e.nzActive&&(e.nzActive=!1,e.nzActiveChange.emit(e.nzActive),e.markForCheck())})),e.nzActive=!e.nzActive,e.nzActiveChange.emit(e.nzActive)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(Qa.b)("collapse"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAccordion",void 0),Object(zt.b)([Object(Qa.b)("collapse"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzBordered",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-collapse"]],hostVars:8,hostBindings:function(e,t){2&e&&i.Jb("ant-collapse",!0)("ant-collapse-icon-position-left","left"===t.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===t.nzExpandIconPosition)("ant-collapse-borderless",!t.nzBordered)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:Qy,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0," "),i.qc(1),i.Nc(2," "))},encapsulation:2,changeDetection:0}),e}(),iw=function(){function e(e,t,n){var r=this;this.nzConfigService=e,this.cdr=t,this.nzCollapseComponent=n,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new i.n,this.destroy$=new kt.a,this.nzConfigService.getConfigChangeEventForComponent("collapsePanel").pipe(Object(ss.a)(this.destroy$)).subscribe((function(){r.cdr.markForCheck()}))}return e.prototype.clickHeader=function(){this.nzDisabled||this.nzCollapseComponent.click(this)},e.prototype.markForCheck=function(){this.cdr.markForCheck()},e.prototype.ngOnInit=function(){this.nzCollapseComponent.addPanel(this)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzActive",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(Qa.b)("collapsePanel"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowArrow",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.h),i.Tb(nw,1))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-collapse-panel"]],hostVars:8,hostBindings:function(e,t){2&e&&i.Jb("ant-collapse-item",!0)("ant-collapse-no-arrow",!t.nzShowArrow)("ant-collapse-item-active",t.nzActive)("ant-collapse-item-disabled",t.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:Qy,decls:18,vars:7,consts:[["role","tab",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Zb(1,"div",0),i.hc("click",(function(){return t.clickHeader()})),i.Nc(2,"\n "),i.Lc(3,Ky,4,1,"ng-container",1),i.Nc(4,"\n "),i.Lc(5,Jy,2,1,"ng-container",2),i.Nc(6,"\n "),i.Lc(7,tw,4,1,"div",3),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Zb(10,"div",4),i.Nc(11,"\n "),i.Zb(12,"div",5),i.Nc(13,"\n "),i.qc(14),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.Yb(),i.Nc(17,"\n ")),2&e&&(i.Db(1),i.Eb("aria-expanded",t.nzActive),i.Db(2),i.sc("ngIf",t.nzShowArrow),i.Db(2),i.sc("nzStringTemplateOutlet",t.nzHeader),i.Db(2),i.sc("ngIf",t.nzExtra),i.Db(3),i.Jb("ant-collapse-content-active",t.nzActive),i.sc("@collapseMotion",t.nzActive?"expanded":"hidden"))},directives:[Vr.t,Es.b,Ns.a],encapsulation:2,data:{animation:[xs.a]},changeDetection:0}),e}(),rw=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ns.b,Es.a]]}),e}();function ow(e,t){1&e&&i.qc(0)}var aw=["*"];function sw(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzAuthor)}}function cw(e,t){if(1&e&&(i.Zb(0,"span",8),i.Nc(1,"\n "),i.Lc(2,sw,2,1,"ng-container",9),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzAuthor)}}function uw(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzDatetime)}}function lw(e,t){if(1&e&&(i.Zb(0,"span",10),i.Nc(1,"\n "),i.Lc(2,uw,2,1,"ng-container",9),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzDatetime)}}function pw(e,t){}function hw(e,t){if(1&e&&(i.Zb(0,"li"),i.Nc(1,"\n "),i.Zb(2,"span"),i.Lc(3,pw,0,0,"ng-template",13),i.Yb(),i.Nc(4,"\n "),i.Yb()),2&e){var n=t.$implicit;i.Db(3),i.sc("nzCommentActionHost",n.content)}}function dw(e,t){if(1&e&&(i.Zb(0,"ul",11),i.Nc(1,"\n "),i.Lc(2,hw,5,1,"li",12),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("ngForOf",n.actions)}}var fw=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],gw=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"],bw=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"]}),e}(),mw=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"]}),e}(),vw=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(zt.c)(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.ngAfterViewInit=function(){this.attach(this.nzCommentActionHost)},t.\u0275fac=function(e){return new(e||t)(i.Tb(i.j),i.Tb(i.Q))},t.\u0275dir=i.Ob({type:t,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],features:[i.Ab]}),t}(Wr.b),yw=function(){function e(e){this.viewContainerRef=e,this.contentPortal=null}return Object.defineProperty(e.prototype,"content",{get:function(){return this.contentPortal},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.contentPortal=new Wr.g(this.implicitContent,this.viewContainerRef)},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-comment-action"]],viewQuery:function(e,t){var n;1&e&&i.Jc(i.M,!0),2&e&&i.zc(n=i.ic())&&(t.implicitContent=n.first)},exportAs:["nzCommentAction"],ngContentSelectors:aw,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.Lc(0,ow,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(),ww=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-comment"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,yw,!1),2&e&&i.zc(r=i.ic())&&(t.actions=r)},hostAttrs:[1,"ant-comment"],inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],ngContentSelectors:gw,decls:28,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],["class","ant-comment-content-author-name",4,"ngIf"],["class","ant-comment-content-author-time",4,"ngIf"],["class","ant-comment-actions",4,"ngIf"],[1,"ant-comment-nested"],[1,"ant-comment-content-author-name"],[4,"nzStringTemplateOutlet"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[4,"ngFor","ngForOf"],[3,"nzCommentActionHost"]],template:function(e,t){1&e&&(i.rc(fw),i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Zb(3,"div",1),i.Nc(4,"\n "),i.qc(5),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"div",2),i.Nc(9,"\n "),i.Zb(10,"div",3),i.Nc(11,"\n "),i.Lc(12,cw,4,1,"span",4),i.Nc(13,"\n "),i.Lc(14,lw,4,1,"span",5),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.qc(17,1),i.Nc(18,"\n "),i.Lc(19,dw,4,1,"ul",6),i.Nc(20,"\n "),i.Yb(),i.Nc(21,"\n "),i.Yb(),i.Nc(22,"\n "),i.Zb(23,"div",7),i.Nc(24,"\n "),i.qc(25,2),i.Nc(26,"\n "),i.Yb(),i.Nc(27,"\n ")),2&e&&(i.Db(12),i.sc("ngIf",t.nzAuthor),i.Db(2),i.sc("ngIf",t.nzDatetime),i.Db(5),i.sc("ngIf",null==t.actions?null:t.actions.length))},directives:[Vr.t,Es.b,Vr.s,vw],encapsulation:2,changeDetection:0}),e}(),Ow=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Es.a]]}),e}(),Cw=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(e,t){2&e&&i.Kc("border","0")("background","transparent",i.Mb)("padding","0")("line-height","inherit")}}),e}(),Sw=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c]]}),e}();function zw(e,t){1&e&&i.qc(0)}var Tw=["*"];function _w(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzTitle)}}function kw(e,t){if(1&e&&(i.Zb(0,"div",3),i.Lc(1,_w,2,1,"ng-container",4),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("nzStringTemplateOutlet",n.nzTitle)}}function Dw(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2).$implicit;i.Db(1),i.Pc(" ",n.title," ")}}function xw(e,t){}function Ew(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"td",8),i.Zb(2,"span",9),i.Lc(3,Dw,2,1,"ng-container",4),i.Yb(),i.Zb(4,"span",10),i.Lc(5,xw,0,0,"ng-template",11),i.Yb(),i.Yb(),i.Wb()),2&e){var n=i.kc().$implicit,r=i.kc(3);i.Db(1),i.sc("colSpan",n.span),i.Db(1),i.Jb("ant-descriptions-item-colon",r.nzColon),i.Db(1),i.sc("nzStringTemplateOutlet",n.title),i.Db(2),i.sc("ngTemplateOutlet",n.content)}}function Nw(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3).$implicit;i.Db(1),i.Pc(" ",n.title," ")}}function jw(e,t){if(1&e&&(i.Zb(0,"td",9),i.Lc(1,Nw,2,1,"ng-container",4),i.Yb()),2&e){var n=i.kc(2).$implicit;i.Db(1),i.sc("nzStringTemplateOutlet",n.title)}}function Iw(e,t){}function Aw(e,t){if(1&e&&(i.Xb(0),i.Lc(1,jw,2,1,"td",12),i.Zb(2,"td",13),i.Lc(3,Iw,0,0,"ng-template",11),i.Yb(),i.Wb()),2&e){var n=i.kc().$implicit;i.Db(1),i.sc("nzStringTemplateOutlet",n.title),i.Db(1),i.sc("colSpan",2*n.span-1),i.Db(1),i.sc("ngTemplateOutlet",n.content)}}function Mw(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Ew,6,5,"ng-container",2),i.Lc(2,Aw,4,3,"ng-container",2),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.sc("ngIf",!n.nzBordered),i.Db(1),i.sc("ngIf",n.nzBordered)}}function Lw(e,t){if(1&e&&(i.Zb(0,"tr",6),i.Lc(1,Mw,3,2,"ng-container",7),i.Yb()),2&e){var n=t.$implicit;i.Db(1),i.sc("ngForOf",n)}}function Pw(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Lw,2,1,"tr",5),i.Wb()),2&e){var n=i.kc();i.Db(1),i.sc("ngForOf",n.itemMatrix)}}function Fw(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc().$implicit;i.Db(1),i.Pc(" ",n.title," ")}}function Rw(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"td",8),i.Zb(2,"span",9),i.Lc(3,Fw,2,1,"ng-container",4),i.Yb(),i.Yb(),i.Wb()),2&e){var n=t.$implicit,r=i.kc(4);i.Db(1),i.sc("colSpan",n.span),i.Db(1),i.Jb("ant-descriptions-item-colon",r.nzColon),i.Db(1),i.sc("nzStringTemplateOutlet",n.title)}}function Vw(e,t){}function Bw(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"td",8),i.Zb(2,"span",10),i.Lc(3,Vw,0,0,"ng-template",11),i.Yb(),i.Yb(),i.Wb()),2&e){var n=t.$implicit;i.Db(1),i.sc("colSpan",n.span),i.Db(2),i.sc("ngTemplateOutlet",n.content)}}function Yw(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"tr",6),i.Lc(2,Rw,4,4,"ng-container",7),i.Yb(),i.Zb(3,"tr",6),i.Lc(4,Bw,4,2,"ng-container",7),i.Yb(),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.sc("ngForOf",n),i.Db(2),i.sc("ngForOf",n)}}function Uw(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Yw,5,2,"ng-container",7),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.sc("ngForOf",n.itemMatrix)}}function Hw(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc().$implicit;i.Db(1),i.Pc(" ",n.title," ")}}function Ww(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"td",14),i.Lc(2,Hw,2,1,"ng-container",4),i.Yb(),i.Wb()),2&e){var n=t.$implicit;i.Db(1),i.sc("colSpan",n.span),i.Db(1),i.sc("nzStringTemplateOutlet",n.title)}}function qw(e,t){}function Zw(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"td",13),i.Lc(2,qw,0,0,"ng-template",11),i.Yb(),i.Wb()),2&e){var n=t.$implicit;i.Db(1),i.sc("colSpan",n.span),i.Db(1),i.sc("ngTemplateOutlet",n.content)}}function $w(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"tr",6),i.Lc(2,Ww,3,2,"ng-container",7),i.Yb(),i.Zb(3,"tr",6),i.Lc(4,Zw,3,2,"ng-container",7),i.Yb(),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.sc("ngForOf",n),i.Db(2),i.sc("ngForOf",n)}}function Gw(e,t){if(1&e&&(i.Xb(0),i.Lc(1,$w,5,2,"ng-container",7),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.sc("ngForOf",n.itemMatrix)}}function Qw(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Uw,2,1,"ng-container",2),i.Lc(2,Gw,2,1,"ng-container",2),i.Wb()),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",!n.nzBordered),i.Db(1),i.sc("ngIf",n.nzBordered)}}var Xw=function(){function e(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new kt.a}return e.prototype.ngOnChanges=function(){this.inputChange$.next()},e.prototype.ngOnDestroy=function(){this.inputChange$.complete()},Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSpan",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-descriptions-item"]],viewQuery:function(e,t){var n;1&e&&i.Jc(i.M,!0),2&e&&i.zc(n=i.ic())&&(t.content=n.first)},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[i.Bb],ngContentSelectors:Tw,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.Lc(0,zw,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(),Kw={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},Jw=function(){function e(e,t,n){this.nzConfigService=e,this.cdr=t,this.breakpointService=n,this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=Kw,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.breakpoint="md",this.destroy$=new kt.a}return e.prototype.ngOnChanges=function(e){e.nzColumn&&this.prepareMatrix()},e.prototype.ngAfterContentInit=function(){var e=this,t=this.items.changes.pipe(Object(Ka.a)(this.items),Object(ss.a)(this.destroy$));Object(Tt.a)(t,t.pipe(Object(sc.a)((function(){return Tt.a.apply(void 0,Object(zt.g)(e.items.map((function(e){return e.inputChange$})))).pipe(Object(Xa.a)(16))}))),this.breakpointService.subscribe(vs).pipe(Object($r.a)((function(t){return e.breakpoint=t})))).pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.prepareMatrix(),e.cdr.markForCheck()}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.prepareMatrix=function(){if(this.items){for(var e=[],t=0,n=this.realColumn=this.getColumn(),i=this.items.toArray(),r=i.length,o=[],a=function(){o.push(e),e=[],t=0},s=0;s=n?(t>n&&Object(Hs.b)('"nzColumn" is '+n+" but we have row length "+t),e.push({title:u,content:l,span:n-(t-p)}),a()):s===r-1?(e.push({title:u,content:l,span:n-(t-p)}),a()):e.push({title:u,content:l,span:p})}this.itemMatrix=o}},e.prototype.getColumn=function(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn},Object(zt.b)([Object(es.a)(),Object(Qa.b)("descriptions"),Object(zt.d)("design:type",Boolean)],e.prototype,"nzBordered",void 0),Object(zt.b)([Object(Qa.b)("descriptions"),Object(zt.d)("design:type",Object)],e.prototype,"nzColumn",void 0),Object(zt.b)([Object(Qa.b)("descriptions"),Object(zt.d)("design:type",String)],e.prototype,"nzSize",void 0),Object(zt.b)([Object(Qa.b)("descriptions"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzColon",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.h),i.Tb(ws))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-descriptions"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,Xw,!1),2&e&&i.zc(r=i.ic())&&(t.items=r)},hostAttrs:[1,"ant-descriptions"],hostVars:6,hostBindings:function(e,t){2&e&&i.Jb("ant-descriptions-bordered",t.nzBordered)("ant-descriptions-middle","middle"===t.nzSize)("ant-descriptions-small","small"===t.nzSize)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[i.Bb],decls:6,vars:3,consts:[["class","ant-descriptions-title",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,t){1&e&&(i.Lc(0,kw,2,1,"div",0),i.Zb(1,"div",1),i.Zb(2,"table"),i.Zb(3,"tbody"),i.Lc(4,Pw,2,1,"ng-container",2),i.Lc(5,Qw,3,2,"ng-container",2),i.Yb(),i.Yb(),i.Yb()),2&e&&(i.sc("ngIf",t.nzTitle),i.Db(4),i.sc("ngIf","horizontal"===t.nzLayout),i.Db(1),i.sc("ngIf","vertical"===t.nzLayout))},directives:[Vr.t,Es.b,Vr.s,Vr.A],encapsulation:2,changeDetection:0}),e}(),eO=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Es.a,Xr.b]]}),e}();function tO(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzText)}}function nO(e,t){if(1&e&&(i.Zb(0,"span",1),i.Lc(1,tO,2,1,"ng-container",2),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("nzStringTemplateOutlet",n.nzText)}}var iO=function(){function e(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1}return Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDashed",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-divider"]],hostVars:14,hostBindings:function(e,t){2&e&&i.Jb("ant-divider",!0)("ant-divider-horizontal","horizontal"===t.nzType)("ant-divider-vertical","vertical"===t.nzType)("ant-divider-with-text-left",t.nzText&&"left"===t.nzOrientation)("ant-divider-with-text-right",t.nzText&&"right"===t.nzOrientation)("ant-divider-with-text-center",t.nzText&&"center"===t.nzOrientation)("ant-divider-dashed",t.nzDashed)},inputs:{nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzText:"nzText"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&i.Lc(0,nO,2,1,"span",0),2&e&&i.sc("ngIf",t.nzText)},directives:[Vr.t,Es.b],encapsulation:2,changeDetection:0}),e}(),rO=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Es.a]]}),e}(),oO=["drawerTemplate"];function aO(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",9),i.hc("click",(function(){return i.Dc(n),i.kc(2).maskClick()})),i.Yb()}if(2&e){var r=i.kc(2);i.sc("ngStyle",r.nzMaskStyle)}}function sO(e,t){if(1&e&&(i.Xb(0),i.Ub(1,"div",14),i.Wb()),2&e){var n=i.kc(4);i.Db(1),i.sc("innerHTML",n.nzTitle,i.Ec)}}function cO(e,t){if(1&e&&(i.Zb(0,"div",12),i.Lc(1,sO,2,1,"ng-container",13),i.Yb()),2&e){var n=i.kc(3);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzTitle)}}function uO(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",15),i.hc("click",(function(){return i.Dc(n),i.kc(3).closeClick()})),i.Ub(1,"i",16),i.Yb()}}function lO(e,t){if(1&e&&(i.Zb(0,"div"),i.Lc(1,cO,2,1,"div",10),i.Lc(2,uO,2,0,"button",11),i.Yb()),2&e){var n=i.kc(2);i.Jb("ant-drawer-header",!!n.nzTitle)("ant-drawer-header-no-title",!n.nzTitle),i.Db(1),i.sc("ngIf",n.nzTitle),i.Db(1),i.sc("ngIf",n.nzClosable)}}function pO(e,t){}function hO(e,t){1&e&&i.Vb(0)}function dO(e,t){if(1&e&&(i.Xb(0),i.Lc(1,hO,1,0,"ng-container",17),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.sc("ngTemplateOutlet",n.nzContent)("ngTemplateOutletContext",n.templateContext)}}function fO(e,t){1&e&&i.qc(0,0,["*ngIf","!nzContent"])}function gO(e,t){if(1&e&&(i.Zb(0,"div",1),i.Lc(1,aO,1,1,"div",2),i.Zb(2,"div"),i.Zb(3,"div",3),i.Zb(4,"div",4),i.Lc(5,lO,3,6,"div",5),i.Zb(6,"div",6),i.Lc(7,pO,0,0,"ng-template",7),i.Lc(8,dO,2,2,"ng-container",8),i.Lc(9,fO,1,0,void 0,8),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb()),2&e){var n=i.kc();i.Kc("transform",n.offsetTransform)("transition",n.placementChanging?"none":null)("z-index",n.nzZIndex),i.Jb("ant-drawer-open",n.isOpen)("ant-drawer-top","top"===n.nzPlacement)("ant-drawer-bottom","bottom"===n.nzPlacement)("ant-drawer-right","right"===n.nzPlacement)("ant-drawer-left","left"===n.nzPlacement),i.sc("nzNoAnimation",n.nzNoAnimation),i.Db(1),i.sc("ngIf",n.nzMask),i.Db(1),i.Gb("ant-drawer-content-wrapper ",n.nzWrapClassName,""),i.Kc("width",n.width)("height",n.height)("transform",n.transform)("transition",n.placementChanging?"none":null),i.Db(2),i.Kc("height",n.isLeftOrRight?"100%":null),i.Db(1),i.sc("ngIf",n.nzTitle||n.nzClosable),i.Db(1),i.sc("ngStyle",n.nzBodyStyle),i.Db(2),i.sc("ngIf",n.isTemplateRef(n.nzContent)),i.Db(1),i.sc("ngIf",!n.nzContent)}}var bO=["*"],mO=function(){return function(){}}(),vO=function(e){function t(t,n,r,o,a,s,c,u,l){var p=e.call(this)||this;return p.document=t,p.nzConfigService=n,p.renderer=r,p.overlay=o,p.injector=a,p.changeDetectorRef=s,p.focusTrapFactory=c,p.viewContainerRef=u,p.overlayKeyboardDispatcher=l,p.nzClosable=!0,p.nzMaskClosable=!0,p.nzMask=!0,p.nzCloseOnNavigation=!0,p.nzNoAnimation=!1,p.nzKeyboard=!0,p.nzPlacement="right",p.nzMaskStyle={},p.nzBodyStyle={},p.nzWidth=256,p.nzHeight=256,p.nzZIndex=1e3,p.nzOffsetX=0,p.nzOffsetY=0,p.nzOnViewInit=new i.n,p.nzOnClose=new i.n,p.destroy$=new kt.a,p.placementChanging=!1,p.placementChangeTimeoutId=-1,p.isOpen=!1,p.templateContext={$implicit:void 0,drawerRef:p},p.nzAfterOpen=new kt.a,p.nzAfterClose=new kt.a,p}return Object(zt.c)(t,e),Object.defineProperty(t.prototype,"nzVisible",{get:function(){return this.isOpen},set:function(e){this.isOpen=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetTransform",{get:function(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return"translateX("+this.nzOffsetX+"px)";case"right":return"translateX(-"+this.nzOffsetX+"px)";case"top":return"translateY("+this.nzOffsetY+"px)";case"bottom":return"translateY(-"+this.nzOffsetY+"px)"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transform",{get:function(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.isLeftOrRight?Object(es.D)(this.nzWidth):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.isLeftOrRight?null:Object(es.D)(this.nzHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLeftOrRight",{get:function(){return"left"===this.nzPlacement||"right"===this.nzPlacement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpen",{get:function(){return this.nzAfterOpen.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterClose",{get:function(){return this.nzAfterClose.asObservable()},enumerable:!0,configurable:!0}),t.prototype.isTemplateRef=function(e){return e instanceof i.M},t.prototype.ngOnInit=function(){this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()},t.prototype.ngAfterViewInit=function(){var e=this;this.attachBodyContent(),setTimeout((function(){e.nzOnViewInit.emit()}))},t.prototype.ngOnChanges=function(e){var t=e.nzPlacement;e.nzVisible&&(e.nzVisible.currentValue?this.open():this.close()),t&&!t.isFirstChange()&&this.triggerPlacementChangeCycleOnce()},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()},t.prototype.getAnimationDuration=function(){return this.nzNoAnimation?0:300},t.prototype.triggerPlacementChangeCycleOnce=function(){var e=this;this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout((function(){e.placementChanging=!1,e.changeDetectorRef.markForCheck()}),this.getAnimationDuration()))},t.prototype.close=function(e){var t=this;this.isOpen=!1,this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout((function(){t.updateBodyOverflow(),t.restoreFocus(),t.nzAfterClose.next(e),t.nzAfterClose.complete()}),this.getAnimationDuration())},t.prototype.open=function(){var e=this;this.attachOverlay(),this.isOpen=!0,this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout((function(){e.nzAfterOpen.next()}),this.getAnimationDuration())},t.prototype.closeClick=function(){this.nzOnClose.emit()},t.prototype.maskClick=function(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()},t.prototype.attachBodyContent=function(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof i.O){var e=new Wr.e(this.injector,new WeakMap([[mO,this]])),t=new Wr.c(this.nzContent,null,e),n=this.bodyPortalOutlet.attachComponentPortal(t);Object.assign(n.instance,this.nzContentParams),n.changeDetectorRef.detectChanges()}},t.prototype.attachOverlay=function(){var e=this;this.overlayRef||(this.portal=new Wr.g(this.drawerTemplate,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){t.keyCode===Zr.e&&e.isOpen&&e.nzKeyboard&&e.nzOnClose.emit()})),this.overlayRef.detachments().pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.disposeOverlay()})))},t.prototype.disposeOverlay=function(){var e;null===(e=this.overlayRef)||void 0===e||e.dispose(),this.overlayRef=null},t.prototype.getOverlayConfig=function(){return new Ur.f({disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:this.overlay.position().global(),scrollStrategy:this.overlay.scrollStrategies.block()})},t.prototype.updateOverlayStyle=function(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")},t.prototype.updateBodyOverflow=function(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())},t.prototype.savePreviouslyFocusedElement=function(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.blur&&this.previouslyFocusedElement.blur())},t.prototype.trapFocus=function(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())},t.prototype.restoreFocus=function(){this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus(),this.focusTrap&&this.focusTrap.destroy()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzClosable",void 0),Object(zt.b)([Object(Qa.b)("drawer"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzMaskClosable",void 0),Object(zt.b)([Object(Qa.b)("drawer"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzMask",void 0),Object(zt.b)([Object(Qa.b)("drawer"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzCloseOnNavigation",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzNoAnimation",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzKeyboard",void 0),t.\u0275fac=function(e){return new(e||t)(i.Tb(Vr.e,8),i.Tb(Qa.a),i.Tb(i.E),i.Tb(Ur.e),i.Tb(i.r),i.Tb(i.h),i.Tb(bo),i.Tb(i.Q),i.Tb(Ur.h))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-drawer"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(oO,!0),i.Sc(Wr.b,!0)),2&e&&(i.zc(n=i.ic())&&(t.drawerTemplate=n.first),i.zc(n=i.ic())&&(t.bodyPortalOutlet=n.first))},inputs:{nzVisible:"nzVisible",nzContent:"nzContent",nzClosable:"nzClosable",nzMaskClosable:"nzMaskClosable",nzMask:"nzMask",nzCloseOnNavigation:"nzCloseOnNavigation",nzNoAnimation:"nzNoAnimation",nzKeyboard:"nzKeyboard",nzTitle:"nzTitle",nzPlacement:"nzPlacement",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY"},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose"},exportAs:["nzDrawer"],features:[i.Ab,i.Bb],ngContentSelectors:bO,decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],["class","ant-drawer-mask",3,"ngStyle","click",4,"ngIf"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],[3,"ant-drawer-header","ant-drawer-header-no-title",4,"ngIf"],[1,"ant-drawer-body",3,"ngStyle"],["cdkPortalOutlet",""],[4,"ngIf"],[1,"ant-drawer-mask",3,"ngStyle","click"],["class","ant-drawer-title",4,"ngIf"],["aria-label","Close","class","ant-drawer-close","style","--scroll-bar: 0px;",3,"click",4,"ngIf"],[1,"ant-drawer-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"],["aria-label","Close",1,"ant-drawer-close",2,"--scroll-bar","0px",3,"click"],["nz-icon","","nzType","close"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(i.rc(),i.Lc(0,gO,10,35,"ng-template",null,0,i.Mc))},directives:[ac.a,Vr.t,Vr.w,Wr.b,Es.b,Ns.a,Vr.A],encapsulation:2,changeDetection:0}),t}(mO),yO=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}(),wO=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ur.i,Wr.f,Ns.b,Es.a,ac.b,yO]]}),e}(),OO=function(){function e(e,t,n,i,r,o){this.elementRef=e,this.renderer=t,this.mediaMatcher=n,this.ngZone=i,this.platform=r,this.breakpointService=o,this.nzType="flex",this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new Os.a(1),this.destroy$=new kt.a}return e.prototype.getGutter=function(){var e=this,t=[0,0],n=this.nzGutter||0;return(Array.isArray(n)?n:[n,0]).forEach((function(n,i){"object"==typeof n?(t[i]=0,Object.keys(vs).map((function(r){var o=r;e.mediaMatcher.matchMedia(vs[o]).matches&&n[o]&&(t[i]=n[o])}))):t[i]=n||0})),t},e.prototype.setGutterStyle=function(){var e=this,t=Object(zt.e)(this.getGutter(),2),n=t[0],i=t[1];this.actualGutter$.next([n,i]);var r=function(t,n){e.renderer.setStyle(e.elementRef.nativeElement,t,"-"+n/2+"px")};n>0&&(r("margin-left",n),r("margin-right",n)),i>0&&(r("margin-top",i),r("margin-bottom",i))},e.prototype.ngOnInit=function(){this.setGutterStyle()},e.prototype.ngOnChanges=function(e){e.nzGutter&&this.setGutterStyle()},e.prototype.ngAfterViewInit=function(){var e=this;this.platform.isBrowser&&this.breakpointService.subscribe(vs).pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.setGutterStyle()}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E),i.Tb(ls),i.Tb(i.z),i.Tb(Xr.a),i.Tb(ws))},e.\u0275dir=i.Ob({type:e,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostVars:18,hostBindings:function(e,t){2&e&&i.Jb("ant-row",!0)("ant-row-top","top"===t.nzAlign)("ant-row-middle","middle"===t.nzAlign)("ant-row-bottom","bottom"===t.nzAlign)("ant-row-start","start"===t.nzJustify)("ant-row-end","end"===t.nzJustify)("ant-row-center","center"===t.nzJustify)("ant-row-space-around","space-around"===t.nzJustify)("ant-row-space-between","space-between"===t.nzJustify)},inputs:{nzType:"nzType",nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[i.Bb]}),e}(),CO=function(){function e(e,t,n){this.elementRef=e,this.nzRowDirective=t,this.renderer=n,this.classMap={},this.destroy$=new kt.a,this.hostFlexStyle=null,this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}return e.prototype.setHostClassMap=function(){var e,t=Object(zt.a)(((e={})["ant-col"]=!0,e["ant-col-"+this.nzSpan]=Object(es.p)(this.nzSpan),e["ant-col-order-"+this.nzOrder]=Object(es.p)(this.nzOrder),e["ant-col-offset-"+this.nzOffset]=Object(es.p)(this.nzOffset),e["ant-col-pull-"+this.nzPull]=Object(es.p)(this.nzPull),e["ant-col-push-"+this.nzPush]=Object(es.p)(this.nzPush),e),this.generateClass());for(var n in this.classMap)this.classMap.hasOwnProperty(n)&&this.renderer.removeClass(this.elementRef.nativeElement,n);for(var n in this.classMap=Object(zt.a)({},t),this.classMap)this.classMap.hasOwnProperty(n)&&this.classMap[n]&&this.renderer.addClass(this.elementRef.nativeElement,n)},e.prototype.setHostFlexStyle=function(){this.hostFlexStyle=this.parseFlex(this.nzFlex)},e.prototype.parseFlex=function(e){return"number"==typeof e?e+" "+e+" auto":"string"==typeof e&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 "+e:e},e.prototype.generateClass=function(){var e=this,t={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach((function(n){var i=n.replace("nz","").toLowerCase();if(Object(es.p)(e[n]))if("number"==typeof e[n]||"string"==typeof e[n])t["ant-col-"+i+"-"+e[n]]=!0;else{var r=e[n];["span","pull","push","offset","order"].forEach((function(e){t["ant-col-"+i+("span"===e?"-":"-"+e+"-")+r[e]]=r&&Object(es.p)(r[e])}))}})),t},e.prototype.ngOnInit=function(){this.setHostClassMap(),this.setHostFlexStyle()},e.prototype.ngOnChanges=function(e){this.setHostClassMap(),e.nzFlex&&this.setHostFlexStyle()},e.prototype.ngAfterViewInit=function(){var e=this;this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){var n=Object(zt.e)(t,2),i=n[0],r=n[1],o=function(t,n){e.renderer.setStyle(e.elementRef.nativeElement,t,n/2+"px")};i>0&&(o("padding-left",i),o("padding-right",i)),r>0&&(o("padding-top",r),o("padding-bottom",r))}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(OO,9),i.Tb(i.E))},e.\u0275dir=i.Ob({type:e,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Kc("flex",t.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[i.Bb]}),e}(),SO=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,cs,Xr.b]]}),e}(),zO=["*"];function TO(e,t){if(1&e&&i.Ub(0,"i",6),2&e){var n=i.kc();i.sc("nzType",n.iconType)}}function _O(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.innerTip)}}var kO=function(e){return{$implicit:e}};function DO(e,t){if(1&e&&(i.Zb(0,"div",7),i.Zb(1,"div"),i.Lc(2,_O,2,1,"ng-container",8),i.Yb(),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("@helpMotion",void 0),i.Db(1),i.sc("nzStringTemplateOutlet",n.innerTip)("nzStringTemplateOutletContext",i.vc(3,kO,n.validateControl))}}function xO(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzExtra)}}function EO(e,t){if(1&e&&(i.Zb(0,"div",9),i.Lc(1,xO,2,1,"ng-container",10),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("nzStringTemplateOutlet",n.nzExtra)}}var NO=function(){function e(e,t,n){this.nzConfigService=e,this.renderer=n,this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.destroy$=new kt.a,this.inputChanges$=new kt.a,this.renderer.addClass(t.nativeElement,"ant-form")}return e.prototype.getInputObservable=function(e){return this.inputChanges$.pipe(Object(Pt.a)((function(t){return e in t})),Object(Mt.a)((function(t){return t[e]})))},e.prototype.ngOnChanges=function(e){this.inputChanges$.next(e)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(Qa.b)("form"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzNoColon",void 0),Object(zt.b)([Object(Qa.b)("form"),Object(zt.d)("design:type",Object)],e.prototype,"nzAutoTips",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisableAutoTips",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.l),i.Tb(i.E))},e.\u0275dir=i.Ob({type:e,selectors:[["","nz-form",""]],hostVars:6,hostBindings:function(e,t){2&e&&i.Jb("ant-form-horizontal","horizontal"===t.nzLayout)("ant-form-vertical","vertical"===t.nzLayout)("ant-form-inline","inline"===t.nzLayout)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips"},exportAs:["nzForm"],features:[i.Bb]}),e}(),jO=function(){function e(e,t,n){this.cdr=n,this.status=null,this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new kt.a,t.addClass(e.nativeElement,"ant-form-item")}return Object.defineProperty(e.prototype,"nzFlex",{set:function(e){Object(Hs.c)("'nzFlex' is deprecated and going to be removed in 10.0.0.")},enumerable:!0,configurable:!0}),e.prototype.setWithHelpViaTips=function(e){this.withHelpClass=e,this.cdr.markForCheck()},e.prototype.setStatus=function(e){this.status=e,this.cdr.markForCheck()},e.prototype.setHasFeedback=function(e){this.hasFeedback=e,this.cdr.markForCheck()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-form-item"]],hostVars:12,hostBindings:function(e,t){2&e&&i.Jb("ant-form-item-has-success","success"===t.status)("ant-form-item-has-warning","warning"===t.status)("ant-form-item-has-error","error"===t.status)("ant-form-item-is-validating","validating"===t.status)("ant-form-item-has-feedback",t.hasFeedback&&t.status)("ant-form-item-with-help",t.withHelpClass)},inputs:{nzFlex:"nzFlex"},exportAs:["nzFormItem"],ngContentSelectors:zO,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),IO={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"},AO=function(){function e(e,t,n,i,r,o){var a,s,c=this;this.nzFormItemComponent=t,this.cdr=n,this.nzFormDirective=o,this._hasFeedback=!1,this.validateChanges=Ft.a.EMPTY,this.validateString=null,this.status=null,this.destroyed$=new kt.a,this.validateControl=null,this.iconType=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",i.addClass(e.nativeElement,"ant-form-item-control"),this.subscribeAutoTips(r.localeChange.pipe(Object($r.a)((function(e){return c.localeId=e.locale})))),this.subscribeAutoTips(null===(a=this.nzFormDirective)||void 0===a?void 0:a.getInputObservable("nzAutoTips")),this.subscribeAutoTips(null===(s=this.nzFormDirective)||void 0===s?void 0:s.getInputObservable("nzDisableAutoTips").pipe(Object(Pt.a)((function(){return"default"===c.nzDisableAutoTips}))))}return Object.defineProperty(e.prototype,"disableAutoTips",{get:function(){var e;return"default"!==this.nzDisableAutoTips?Object(es.C)(this.nzDisableAutoTips):null===(e=this.nzFormDirective)||void 0===e?void 0:e.nzDisableAutoTips},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzHasFeedback",{get:function(){return this._hasFeedback},set:function(e){this._hasFeedback=Object(es.C)(e),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzValidateStatus",{set:function(e){e instanceof Ot.a||e instanceof Ot.r?(this.validateControl=e,this.validateString=null,this.watchControl()):e instanceof Ot.h?(this.validateControl=e.control,this.validateString=null,this.watchControl()):(this.validateString=e,this.validateControl=null,this.setStatus())},enumerable:!0,configurable:!0}),e.prototype.watchControl=function(){var e=this;this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe(Object(Ka.a)(null),Object(ss.a)(this.destroyed$)).subscribe((function(t){e.disableAutoTips||e.updateAutoErrorTip(),e.setStatus(),e.cdr.markForCheck()})))},e.prototype.setStatus=function(){this.status=this.getControlStatus(this.validateString),this.iconType=this.status?IO[this.status]:null,this.innerTip=this.getInnerTip(this.status),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))},e.prototype.getControlStatus=function(e){return"warning"===e||this.validateControlStatus("INVALID","warning")?"warning":"error"===e||this.validateControlStatus("INVALID")?"error":"validating"===e||"pending"===e||this.validateControlStatus("PENDING")?"validating":"success"===e||this.validateControlStatus("VALID")?"success":null},e.prototype.validateControlStatus=function(e,t){if(this.validateControl){var n=this.validateControl,i=n.status;return(!!n.dirty||!!n.touched)&&(t?this.validateControl.hasError(t):i===e)}return!1},e.prototype.getInnerTip=function(e){switch(e){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}},e.prototype.updateAutoErrorTip=function(){var e,t,n,i,r,o,a;if(this.validateControl){var s=this.validateControl.errors||{},c="";for(var u in s)if(s.hasOwnProperty(u)&&(c=null!==(i=null!==(e=s[u][this.localeId])&&void 0!==e?e:null===(n=null===(t=this.nzAutoTips)||void 0===t?void 0:t[this.localeId])||void 0===n?void 0:n[u])&&void 0!==i?i:null===(a=null===(o=null===(r=this.nzFormDirective)||void 0===r?void 0:r.nzAutoTips)||void 0===o?void 0:o[this.localeId])||void 0===a?void 0:a[u]),c)break;this.autoErrorTip=c}},e.prototype.subscribeAutoTips=function(e){var t=this;null==e||e.pipe(Object(ss.a)(this.destroyed$)).subscribe((function(){t.disableAutoTips||(t.updateAutoErrorTip(),t.setStatus(),t.cdr.markForCheck())}))},e.prototype.ngOnChanges=function(e){var t=e.nzSuccessTip,n=e.nzWarningTip,i=e.nzErrorTip,r=e.nzValidatingTip;e.nzDisableAutoTips||e.nzAutoTips?(this.updateAutoErrorTip(),this.setStatus()):(t||n||i||r)&&this.setStatus()},e.prototype.ngOnInit=function(){this.setStatus()},e.prototype.ngOnDestroy=function(){this.destroyed$.next(),this.destroyed$.complete()},e.prototype.ngAfterContentInit=function(){this.validateControl||this.validateString||(this.nzValidateStatus=this.defaultValidateControl instanceof Ot.g?this.defaultValidateControl.control:this.defaultValidateControl)},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(jO,9),i.Tb(i.h),i.Tb(i.E),i.Tb(Lp),i.Tb(NO,9))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-form-control"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,Ot.n,!0),2&e&&i.zc(r=i.ic())&&(t.defaultValidateControl=r.first)},inputs:{nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus",nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra"},exportAs:["nzFormControl"],features:[i.Bb],ngContentSelectors:zO,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],["class","ant-form-item-explain",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"ant-form-item-explain"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"div",0),i.Zb(1,"div",1),i.qc(2),i.Yb(),i.Zb(3,"span",2),i.Lc(4,TO,1,1,"i",3),i.Yb(),i.Yb(),i.Lc(5,DO,3,5,"div",4),i.Lc(6,EO,2,1,"div",5)),2&e&&(i.Db(4),i.sc("ngIf",t.nzHasFeedback&&t.iconType),i.Db(1),i.sc("ngIf",t.innerTip),i.Db(1),i.sc("ngIf",t.nzExtra))},directives:[Vr.t,Ns.a,Es.b],encapsulation:2,data:{animation:[xs.c]},changeDetection:0}),e}(),MO=function(){function e(e,t,n,i){var r=this;this.cdr=n,this.nzFormDirective=i,this.nzRequired=!1,this.noColon="default",this.destroy$=new kt.a,t.addClass(e.nativeElement,"ant-form-item-label"),this.nzFormDirective&&this.nzFormDirective.getInputObservable("nzNoColon").pipe(Object(Pt.a)((function(){return"default"===r.noColon})),Object(ss.a)(this.destroy$)).subscribe((function(){return r.cdr.markForCheck()}))}return Object.defineProperty(e.prototype,"nzNoColon",{get:function(){var e;return"default"!==this.noColon?this.noColon:null===(e=this.nzFormDirective)||void 0===e?void 0:e.nzNoColon},set:function(e){this.noColon=Object(es.C)(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzRequired",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E),i.Tb(i.h),i.Tb(NO,12))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-form-label"]],inputs:{nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzFor:"nzFor"},exportAs:["nzFormLabel"],ngContentSelectors:zO,decls:2,vars:5,template:function(e,t){1&e&&(i.rc(),i.Zb(0,"label"),i.qc(1),i.Yb()),2&e&&(i.Jb("ant-form-item-no-colon",t.nzNoColon)("ant-form-item-required",t.nzRequired),i.Eb("for",t.nzFor))},encapsulation:2,changeDetection:0}),e}(),LO=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.renderer.addClass(this.elementRef.nativeElement,"ant-form-split")}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-form-split"]],exportAs:["nzFormSplit"],ngContentSelectors:zO,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),PO=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.renderer.addClass(this.elementRef.nativeElement,"ant-form-text")}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-form-text"]],exportAs:["nzFormText"],ngContentSelectors:zO,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),FO=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,SO,Ns.b,cs,Xr.b,Es.a],SO]}),e}(),RO=["inputElement"],VO=function(){function e(e,t,n){this.elementRef=e,this.cdr=t,this.focusMonitor=n,this.isFocused=!1,this.disabledUp=!1,this.disabledDown=!1,this.onChange=function(){},this.onTouched=function(){},this.nzBlur=new i.n,this.nzFocus=new i.n,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=function(e){return e.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,"")},this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStep=1,this.nzId=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzFormatter=function(e){return e}}return e.prototype.onModelChange=function(e){this.parsedValue=this.nzParser(e),this.inputElement.nativeElement.value=""+this.parsedValue;var t=this.getCurrentValidValue(this.parsedValue);this.setValue(t)},e.prototype.getCurrentValidValue=function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(t)?this.value:""+this.getValidValue(t),this.toNumber(t)},e.prototype.isNotCompleteNumber=function(e){return isNaN(e)||""===e||null===e||!(!e||e.toString().indexOf(".")!==e.toString().length-1)},e.prototype.getValidValue=function(e){var t=parseFloat(e);return isNaN(t)?e:(tthis.nzMax&&(t=this.nzMax),t)},e.prototype.toNumber=function(e){if(this.isNotCompleteNumber(e))return e;var t=String(e);if(t.indexOf(".")>=0&&Object(es.p)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(e,this.nzPrecision);if("cut"===this.nzPrecisionMode){var n=t.split(".");return n[1]=n[1].slice(0,this.nzPrecision),Number(n.join("."))}return Number(Number(e).toFixed(this.nzPrecision))}return Number(e)},e.prototype.getRatio=function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t},e.prototype.down=function(e,t){this.isFocused||this.focus(),this.step("down",e,t)},e.prototype.up=function(e,t){this.isFocused||this.focus(),this.step("up",e,t)},e.prototype.getPrecision=function(e){var t=e.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},e.prototype.getMaxPrecision=function(e,t){if(Object(es.p)(this.nzPrecision))return this.nzPrecision;var n=this.getPrecision(t),i=this.getPrecision(this.nzStep),r=this.getPrecision(e);return e?Math.max(r,n+i):n+i},e.prototype.getPrecisionFactor=function(e,t){var n=this.getMaxPrecision(e,t);return Math.pow(10,n)},e.prototype.upStep=function(e,t){var n,i=this.getPrecisionFactor(e,t),r=Math.abs(this.getMaxPrecision(e,t));return n="number"==typeof e?((i*e+i*this.nzStep*t)/i).toFixed(r):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(n)},e.prototype.downStep=function(e,t){var n,i=this.getPrecisionFactor(e,t),r=Math.abs(this.getMaxPrecision(e,t));return n="number"==typeof e?((i*e-i*this.nzStep*t)/i).toFixed(r):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(n)},e.prototype.step=function(e,t,n){var i=this;if(void 0===n&&(n=1),this.stop(),t.preventDefault(),!this.nzDisabled){var r=this.getCurrentValidValue(this.parsedValue)||0,o=0;"up"===e?o=this.upStep(r,n):"down"===e&&(o=this.downStep(r,n));var a=o>this.nzMax||othis.nzMax?o=this.nzMax:o=this.nzMax&&(this.disabledUp=!0),t<=this.nzMin&&(this.disabledDown=!0)}},e.prototype.updateDisplayValue=function(e){var t=Object(es.p)(this.nzFormatter(e))?this.nzFormatter(e):"";this.displayValue=t,this.inputElement.nativeElement.value=""+t},e.prototype.onKeyDown=function(e){if(e.keyCode===Zr.k){var t=this.getRatio(e);this.up(e,t),this.stop()}else e.keyCode===Zr.c?(t=this.getRatio(e),this.down(e,t),this.stop()):e.keyCode===Zr.d&&this.updateDisplayValue(this.value)},e.prototype.writeValue=function(e){this.value=e,this.setValue(e),this.updateDisplayValue(e),this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.cdr.markForCheck()},e.prototype.focus=function(){this.focusMonitor.focusVia(this.inputElement,"keyboard")},e.prototype.blur=function(){this.inputElement.nativeElement.blur()},e.prototype.ngOnInit=function(){var e=this;this.focusMonitor.monitor(this.elementRef,!0).subscribe((function(t){t?(e.isFocused=!0,e.nzFocus.emit()):(e.isFocused=!1,e.updateDisplayValue(e.value),e.nzBlur.emit(),Promise.resolve().then((function(){return e.onTouched()})))}))},e.prototype.ngOnChanges=function(e){if(e.nzFormatter&&!e.nzFormatter.isFirstChange()){var t=this.getCurrentValidValue(this.parsedValue);this.setValue(t),this.updateDisplayValue(t)}},e.prototype.ngAfterViewInit=function(){this.nzAutoFocus&&this.focus()},e.prototype.ngOnDestroy=function(){this.focusMonitor.stopMonitoring(this.elementRef)},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.h),i.Tb(yo))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-input-number"]],viewQuery:function(e,t){var n;1&e&&i.Jc(RO,!0),2&e&&i.zc(n=i.ic())&&(t.inputElement=n.first)},hostVars:10,hostBindings:function(e,t){2&e&&i.Jb("ant-input-number",!0)("ant-input-number-focused",t.isFocused)("ant-input-number-lg","large"===t.nzSize)("ant-input-number-sm","small"===t.nzSize)("ant-input-number-disabled",t.nzDisabled)},inputs:{nzSize:"nzSize",nzMin:"nzMin",nzMax:"nzMax",nzParser:"nzParser",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStep:"nzStep",nzId:"nzId",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzFormatter:"nzFormatter",nzPrecision:"nzPrecision"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0}]),i.Bb],decls:20,vars:12,consts:[[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","up",1,"ant-input-number-handler-up-inner"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","down",1,"ant-input-number-handler-down-inner"],[1,"ant-input-number-input-wrap"],["autocomplete","off",1,"ant-input-number-input",3,"disabled","placeholder","ngModel","keydown","keyup","ngModelChange"],["inputElement",""]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Zb(3,"span",1),i.hc("mousedown",(function(e){return t.up(e)}))("mouseup",(function(){return t.stop()}))("mouseleave",(function(){return t.stop()})),i.Nc(4,"\n "),i.Ub(5,"i",2),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"span",3),i.hc("mousedown",(function(e){return t.down(e)}))("mouseup",(function(){return t.stop()}))("mouseleave",(function(){return t.stop()})),i.Nc(9,"\n "),i.Ub(10,"i",4),i.Nc(11,"\n "),i.Yb(),i.Nc(12,"\n "),i.Yb(),i.Nc(13,"\n "),i.Zb(14,"div",5),i.Nc(15,"\n "),i.Zb(16,"input",6,7),i.hc("keydown",(function(e){return t.onKeyDown(e)}))("keyup",(function(){return t.stop()}))("ngModelChange",(function(e){return t.onModelChange(e)})),i.Yb(),i.Nc(18,"\n "),i.Yb(),i.Nc(19,"\n ")),2&e&&(i.Db(3),i.Jb("ant-input-number-handler-up-disabled",t.disabledUp),i.Db(5),i.Jb("ant-input-number-handler-down-disabled",t.disabledDown),i.Db(8),i.sc("disabled",t.nzDisabled)("placeholder",t.nzPlaceHolder)("ngModel",t.displayValue),i.Eb("id",t.nzId)("autofocus",t.nzAutoFocus?"autofocus":null)("min",t.nzMin)("max",t.nzMax)("step",t.nzStep))},directives:[Ns.a,Ot.e,Ot.o,Ot.r],encapsulation:2,changeDetection:0}),e}(),BO=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Ns.b]]}),e}(),YO=n("QJHY"),UO=["*"];function HO(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",2),i.hc("click",(function(){i.Dc(n);var e=i.kc();return e.setCollapsed(!e.nzCollapsed)})),i.Yb()}if(2&e){var r=i.kc();i.sc("matchBreakPoint",r.matchBreakPoint)("nzCollapsedWidth",r.nzCollapsedWidth)("nzCollapsed",r.nzCollapsed)("nzBreakpoint",r.nzBreakpoint)("nzReverseArrow",r.nzReverseArrow)("nzTrigger",r.nzTrigger)("nzZeroTrigger",r.nzZeroTrigger)("siderWidth",r.widthSetting)}}var WO=["nz-sider-trigger",""];function qO(e,t){}function ZO(e,t){if(1&e&&(i.Xb(0),i.Lc(1,qO,0,0,"ng-template",3),i.Wb()),2&e){var n=i.kc(),r=i.Ac(5);i.Db(1),i.sc("ngTemplateOutlet",n.nzZeroTrigger||r)}}function $O(e,t){}function GO(e,t){if(1&e&&(i.Xb(0),i.Lc(1,$O,0,0,"ng-template",3),i.Wb()),2&e){var n=i.kc(),r=i.Ac(3);i.Db(1),i.sc("ngTemplateOutlet",n.nzTrigger||r)}}function QO(e,t){if(1&e&&i.Ub(0,"i",5),2&e){var n=i.kc(2);i.sc("nzType",n.nzCollapsed?"right":"left")}}function XO(e,t){if(1&e&&i.Ub(0,"i",5),2&e){var n=i.kc(2);i.sc("nzType",n.nzCollapsed?"left":"right")}}function KO(e,t){if(1&e&&(i.Lc(0,QO,1,1,"i",4),i.Lc(1,XO,1,1,"i",4)),2&e){var n=i.kc();i.sc("ngIf",!n.nzReverseArrow),i.Db(1),i.sc("ngIf",n.nzReverseArrow)}}function JO(e,t){1&e&&i.Ub(0,"i",6)}var eC=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:UO,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),tC=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-footer")}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-footer"]],exportAs:["nzFooter"],ngContentSelectors:UO,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),nC=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:UO,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),iC=function(){function e(e,t,n){this.platform=e,this.cdr=t,this.breakpointService=n,this.destroy$=new kt.a,this.nzMenuDirective=null,this.nzCollapsedChange=new i.n,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}return e.prototype.updateStyleMap=function(){this.widthSetting=this.nzCollapsed?this.nzCollapsedWidth+"px":Object(es.D)(this.nzWidth),this.flexSetting="0 0 "+this.widthSetting,this.cdr.markForCheck()},e.prototype.updateMenuInlineCollapsed=function(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)},e.prototype.setCollapsed=function(e){e!==this.nzCollapsed&&(this.nzCollapsed=e,this.nzCollapsedChange.emit(e),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())},e.prototype.ngOnInit=function(){var e=this;this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(ys,!0).pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){var n=e.nzBreakpoint;n&&Object(es.l)().subscribe((function(){e.matchBreakPoint=!t[n],e.setCollapsed(e.matchBreakPoint),e.cdr.markForCheck()}))}))},e.prototype.ngOnChanges=function(e){var t=e.nzCollapsed;(t||e.nzCollapsedWidth||e.nzWidth)&&this.updateStyleMap(),t&&this.updateMenuInlineCollapsed()},e.prototype.ngAfterContentInit=function(){this.updateMenuInlineCollapsed()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzReverseArrow",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzCollapsible",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzCollapsed",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Xr.a),i.Tb(i.h),i.Tb(ws))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-sider"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,YO.c,!0),2&e&&i.zc(r=i.ic())&&(t.nzMenuDirective=r.first)},hostVars:18,hostBindings:function(e,t){2&e&&(i.Kc("flex",t.flexSetting)("max-width",t.widthSetting)("min-width",t.widthSetting)("width",t.widthSetting),i.Jb("ant-layout-sider",!0)("ant-layout-sider-zero-width",t.nzCollapsed&&0===t.nzCollapsedWidth)("ant-layout-sider-light","light"===t.nzTheme)("ant-layout-sider-dark","dark"===t.nzTheme)("ant-layout-sider-collapsed",t.nzCollapsed))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[i.Bb],ngContentSelectors:UO,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"div",0),i.qc(1),i.Yb(),i.Lc(2,HO,1,8,"div",1)),2&e&&(i.Db(2),i.sc("ngIf",t.nzCollapsible&&null!==t.nzTrigger))},directives:function(){return[Vr.t,oC]},encapsulation:2,changeDetection:0}),e}(),rC=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-layout"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,iC,!1),2&e&&i.zc(r=i.ic())&&(t.listOfNzSiderComponent=r)},hostVars:4,hostBindings:function(e,t){2&e&&i.Jb("ant-layout-has-sider",t.listOfNzSiderComponent.length>0)("ant-layout",!0)},exportAs:["nzLayout"],ngContentSelectors:UO,decls:1,vars:0,template:function(e,t){1&e&&(i.rc(),i.qc(0))},encapsulation:2,changeDetection:0}),e}(),oC=function(){function e(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}return e.prototype.updateTriggerType=function(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth},e.prototype.ngOnInit=function(){this.updateTriggerType()},e.prototype.ngOnChanges=function(){this.updateTriggerType()},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(e,t){2&e&&(i.Kc("width",t.isNormalTrigger?t.siderWidth:null),i.Jb("ant-layout-sider-trigger",t.isNormalTrigger)("ant-layout-sider-zero-width-trigger",t.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",t.isZeroTrigger&&t.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",t.isZeroTrigger&&!t.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[i.Bb],attrs:WO,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(e,t){1&e&&(i.Lc(0,ZO,2,1,"ng-container",0),i.Lc(1,GO,2,1,"ng-container",0),i.Lc(2,KO,2,2,"ng-template",null,1,i.Mc),i.Lc(4,JO,1,0,"ng-template",null,2,i.Mc)),2&e&&(i.sc("ngIf",t.isZeroTrigger),i.Db(1),i.sc("ngIf",t.isNormalTrigger))},directives:[Vr.t,Vr.A,Ns.a],encapsulation:2,changeDetection:0}),e}(),aC=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ns.b,cs,Xr.b]]}),e}();function sC(e,t){1&e&&(i.Zb(0,"span",3),i.Ub(1,"i",4),i.Ub(2,"i",4),i.Ub(3,"i",4),i.Ub(4,"i",4),i.Yb())}function cC(e,t){}function uC(e,t){if(1&e&&(i.Zb(0,"div",8),i.Nc(1),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzTip)}}function lC(e,t){if(1&e&&(i.Zb(0,"div"),i.Zb(1,"div",5),i.Lc(2,cC,0,0,"ng-template",6),i.Lc(3,uC,2,1,"div",7),i.Yb(),i.Yb()),2&e){var n=i.kc(),r=i.Ac(1);i.Db(1),i.Jb("ant-spin-spinning",n.isLoading)("ant-spin-lg","large"===n.nzSize)("ant-spin-sm","small"===n.nzSize)("ant-spin-show-text",n.nzTip),i.Db(1),i.sc("ngTemplateOutlet",n.nzIndicator||r),i.Db(1),i.sc("ngIf",n.nzTip)}}function pC(e,t){if(1&e&&(i.Zb(0,"div",9),i.qc(1),i.Yb()),2&e){var n=i.kc();i.Jb("ant-spin-blur",n.isLoading)}}var hC=["*"],dC=function(){function e(e,t){this.nzConfigService=e,this.cdr=t,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new kt.a,this.spinning$=new qu.a(this.nzSpinning),this.delay$=new qu.a(this.nzDelay),this.isLoading=!0}return e.prototype.ngOnInit=function(){var e=this;this.spinning$.pipe(Object(Wt.a)((function(){return e.delay$})),Object(Wt.a)((function(t){return 0===t?e.spinning$:e.spinning$.pipe(Object(Gr.a)(t))})),Object(ss.a)(this.destroy$)).subscribe((function(t){e.isLoading=t,e.cdr.markForCheck()})),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe(Object(ss.a)(this.destroy$)).subscribe((function(){return e.cdr.markForCheck()}))},e.prototype.ngOnChanges=function(e){var t=e.nzDelay;e.nzSpinning&&this.spinning$.next(this.nzSpinning),t&&this.delay$.next(this.nzDelay)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(Qa.b)("spin"),Object(zt.d)("design:type",Object)],e.prototype,"nzIndicator",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDelay",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSimple",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSpinning",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-spin-nested-loading",!t.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[i.Bb],ngContentSelectors:hC,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(e,t){1&e&&(i.rc(),i.Lc(0,sC,5,0,"ng-template",null,0,i.Mc),i.Lc(2,lC,4,10,"div",1),i.Lc(3,pC,2,2,"div",2)),2&e&&(i.Db(2),i.sc("ngIf",t.isLoading),i.Db(1),i.sc("ngIf",!t.nzSimple))},directives:[Vr.t,Vr.A],encapsulation:2}),e}(),fC=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,to]]}),e}(),gC=["*"];function bC(e,t){if(1&e&&i.Ub(0,"nz-avatar",3),2&e){var n=i.kc();i.sc("nzSrc",n.nzSrc)}}function mC(e,t){1&e&&i.qc(0,0,["*ngIf","!nzSrc"])}function vC(e,t){if(1&e&&i.Ub(0,"nz-list-item-meta-avatar",3),2&e){var n=i.kc();i.sc("nzSrc",n.avatarStr)}}function yC(e,t){if(1&e&&(i.Zb(0,"nz-list-item-meta-avatar"),i.Vb(1,4),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("ngTemplateOutlet",n.avatarTpl)}}function wC(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.nzTitle)}}function OC(e,t){if(1&e&&(i.Zb(0,"nz-list-item-meta-title"),i.Lc(1,wC,2,1,"ng-container",6),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzTitle)}}function CC(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.nzDescription)}}function SC(e,t){if(1&e&&(i.Zb(0,"nz-list-item-meta-description"),i.Lc(1,CC,2,1,"ng-container",6),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzDescription)}}function zC(e,t){if(1&e&&(i.Zb(0,"div",5),i.Lc(1,OC,2,1,"nz-list-item-meta-title",1),i.Lc(2,SC,2,1,"nz-list-item-meta-description",1),i.qc(3,1),i.qc(4,2),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",n.nzTitle&&!n.titleComponent),i.Db(1),i.sc("ngIf",n.nzDescription&&!n.descriptionComponent)}}var TC=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],_C=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function kC(e,t){1&e&&i.qc(0)}var DC=["nz-list-item-actions",""];function xC(e,t){}function EC(e,t){1&e&&i.Ub(0,"em",3)}function NC(e,t){if(1&e&&(i.Zb(0,"li"),i.Nc(1,"\n "),i.Lc(2,xC,0,0,"ng-template",1),i.Nc(3,"\n "),i.Lc(4,EC,1,0,"em",2),i.Nc(5,"\n "),i.Yb()),2&e){var n=t.$implicit,r=t.last;i.Db(2),i.sc("ngTemplateOutlet",n),i.Db(2),i.sc("ngIf",!r)}}function jC(e,t){}var IC=function(e,t){return{$implicit:e,index:t}};function AC(e,t){if(1&e&&(i.Xb(0),i.Lc(1,jC,0,0,"ng-template",9),i.Wb()),2&e){var n=t.$implicit,r=t.index,o=i.kc(2);i.Db(1),i.sc("ngTemplateOutlet",o.nzRenderItem)("ngTemplateOutletContext",i.wc(2,IC,n,r))}}function MC(e,t){if(1&e&&(i.Zb(0,"div",7),i.Lc(1,AC,2,5,"ng-container",8),i.qc(2,5),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("ngForOf",n.nzDataSource)}}function LC(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzHeader)}}function PC(e,t){if(1&e&&(i.Zb(0,"nz-list-header"),i.Lc(1,LC,2,1,"ng-container",10),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("nzStringTemplateOutlet",n.nzHeader)}}function FC(e,t){1&e&&i.Ub(0,"div"),2&e&&i.Kc("min-height",53,"px")}function RC(e,t){}function VC(e,t){if(1&e&&(i.Zb(0,"div",13),i.Lc(1,RC,0,0,"ng-template",9),i.Yb()),2&e){var n=t.$implicit,r=t.index,o=i.kc(2);i.sc("nzSpan",o.nzGrid.span||null)("nzXs",o.nzGrid.xs||null)("nzSm",o.nzGrid.sm||null)("nzMd",o.nzGrid.md||null)("nzLg",o.nzGrid.lg||null)("nzXl",o.nzGrid.xl||null)("nzXXl",o.nzGrid.xxl||null),i.Db(1),i.sc("ngTemplateOutlet",o.nzRenderItem)("ngTemplateOutletContext",i.wc(9,IC,n,r))}}function BC(e,t){if(1&e&&(i.Zb(0,"div",11),i.Lc(1,VC,2,12,"div",12),i.Yb()),2&e){var n=i.kc();i.sc("nzGutter",n.nzGrid.gutter||null),i.Db(1),i.sc("ngForOf",n.nzDataSource)}}function YC(e,t){if(1&e&&i.Ub(0,"nz-list-empty",14),2&e){var n=i.kc();i.sc("nzNoResult",n.nzNoResult)}}function UC(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzFooter)}}function HC(e,t){if(1&e&&(i.Zb(0,"nz-list-footer"),i.Lc(1,UC,2,1,"ng-container",10),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("nzStringTemplateOutlet",n.nzFooter)}}function WC(e,t){}function qC(e,t){}function ZC(e,t){if(1&e&&(i.Zb(0,"nz-list-pagination"),i.Lc(1,qC,0,0,"ng-template",6),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("ngTemplateOutlet",n.nzPagination)}}var $C=[[["nz-list-header"]],"*",[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],[["nz-list-item"],["","nz-list-item",""]]],GC=["nz-list-header","*","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","nz-list-item, [nz-list-item]"];function QC(e,t){if(1&e&&i.Ub(0,"ul",6),2&e){var n=i.kc(2);i.sc("nzActions",n.nzActions)}}function XC(e,t){if(1&e&&(i.Lc(0,QC,1,1,"ul",5),i.qc(1)),2&e){var n=i.kc();i.sc("ngIf",n.nzActions&&n.nzActions.length>0)}}function KC(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.nzContent)}}function JC(e,t){if(1&e&&(i.Xb(0),i.Lc(1,KC,2,1,"ng-container",8),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzContent)}}function eS(e,t){if(1&e&&(i.qc(0,1),i.qc(1,2),i.Lc(2,JC,2,1,"ng-container",7)),2&e){var n=i.kc();i.Db(2),i.sc("ngIf",n.nzContent)}}function tS(e,t){1&e&&i.qc(0,3)}function nS(e,t){}function iS(e,t){}function rS(e,t){}function oS(e,t){}function aS(e,t){if(1&e&&(i.Lc(0,nS,0,0,"ng-template",9),i.Lc(1,iS,0,0,"ng-template",9),i.Lc(2,rS,0,0,"ng-template",9),i.Lc(3,oS,0,0,"ng-template",9)),2&e){var n=i.kc(),r=i.Ac(3),o=i.Ac(5),a=i.Ac(1);i.sc("ngTemplateOutlet",r),i.Db(1),i.sc("ngTemplateOutlet",n.nzExtra),i.Db(1),i.sc("ngTemplateOutlet",o),i.Db(1),i.sc("ngTemplateOutlet",a)}}function sS(e,t){}function cS(e,t){}function uS(e,t){}function lS(e,t){if(1&e&&(i.Zb(0,"nz-list-item-extra"),i.Lc(1,uS,0,0,"ng-template",9),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("ngTemplateOutlet",n.nzExtra)}}function pS(e,t){}function hS(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"div",10),i.Lc(2,sS,0,0,"ng-template",9),i.Lc(3,cS,0,0,"ng-template",9),i.Yb(),i.Lc(4,lS,2,1,"nz-list-item-extra",7),i.Lc(5,pS,0,0,"ng-template",9),i.Wb()),2&e){var n=i.kc(),r=i.Ac(3),o=i.Ac(1),a=i.Ac(5);i.Db(2),i.sc("ngTemplateOutlet",r),i.Db(1),i.sc("ngTemplateOutlet",o),i.Db(1),i.sc("ngIf",n.nzExtra),i.Db(1),i.sc("ngTemplateOutlet",a)}}var dS=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],fS=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"],gS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:gC,decls:6,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Zb(1,"h4",0),i.Nc(2,"\n "),i.qc(3),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "))},encapsulation:2,changeDetection:0}),e}(),bS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:gC,decls:6,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.qc(3),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "))},encapsulation:2,changeDetection:0}),e}(),mS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:gC,decls:8,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Lc(3,bC,1,1,"nz-avatar",1),i.Nc(4,"\n "),i.Lc(5,mC,1,0,void 0,2),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n ")),2&e&&(i.Db(3),i.sc("ngIf",t.nzSrc),i.Db(2),i.sc("ngIf",!t.nzSrc))},directives:[Vr.t,cu],encapsulation:2,changeDetection:0}),e}(),vS=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.avatarStr="",this.renderer.addClass(e.nativeElement,"ant-list-item-meta")}return Object.defineProperty(e.prototype,"nzAvatar",{set:function(e){e instanceof i.M?(this.avatarStr="",this.avatarTpl=e):this.avatarStr=e},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Lb(n,bS,!0),i.Lb(n,gS,!0)),2&e&&(i.zc(r=i.ic())&&(t.descriptionComponent=r.first),i.zc(r=i.ic())&&(t.titleComponent=r.first))},inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:_C,decls:4,vars:3,consts:[[3,"nzSrc",4,"ngIf"],[4,"ngIf"],["class","ant-list-item-meta-content",4,"ngIf"],[3,"nzSrc"],[3,"ngTemplateOutlet"],[1,"ant-list-item-meta-content"],[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(i.rc(TC),i.Lc(0,vC,1,1,"nz-list-item-meta-avatar",0),i.Lc(1,yC,2,1,"nz-list-item-meta-avatar",1),i.qc(2),i.Lc(3,zC,5,2,"div",2)),2&e&&(i.sc("ngIf",t.avatarStr),i.Db(1),i.sc("ngIf",t.avatarTpl),i.Db(2),i.sc("ngIf",t.nzTitle||t.nzDescription||t.descriptionComponent||t.titleComponent))},directives:[Vr.t,mS,Vr.A,gS,Es.b,bS],encapsulation:2,changeDetection:0}),e}(),yS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:gC,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n "))},encapsulation:2,changeDetection:0}),e}(),wS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-item-action"]],viewQuery:function(e,t){var n;1&e&&i.Sc(i.M,!0),2&e&&i.zc(n=i.ic())&&(t.templateRef=n.first)},exportAs:["nzListItemAction"],ngContentSelectors:gC,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Lc(1,kC,1,0,"ng-template"),i.Nc(2,"\n "))},encapsulation:2,changeDetection:0}),e}(),OS=function(){function e(e,t){var n=this;this.ngZone=e,this.cdr=t,this.nzActions=[],this.actions=[],this.destroy$=new kt.a,this.inputActionChanges$=new kt.a,this.contentChildrenChanges$=Object(Dt.a)((function(){return n.nzListItemActions?Object(qr.a)(null):n.ngZone.onStable.asObservable().pipe(Object(en.a)(1),Object(sc.a)((function(){return n.contentChildrenChanges$})))})),Object(Tt.a)(this.contentChildrenChanges$,this.inputActionChanges$).pipe(Object(ss.a)(this.destroy$)).subscribe((function(){n.actions=n.nzActions.length?n.nzActions:n.nzListItemActions.map((function(e){return e.templateRef})),n.cdr.markForCheck()}))}return e.prototype.ngOnChanges=function(){this.inputActionChanges$.next(null)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.z),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,wS,!1),2&e&&i.zc(r=i.ic())&&(t.nzListItemActions=r)},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[i.Bb],attrs:DC,decls:3,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Lc(1,NC,6,2,"li",0),i.Nc(2,"\n ")),2&e&&(i.Db(1),i.sc("ngForOf",t.actions))},directives:[Vr.s,Vr.A,Vr.t],encapsulation:2,changeDetection:0}),e}(),CS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:3,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Ub(1,"nz-embed-empty",0),i.Nc(2,"\n ")),2&e&&(i.Db(1),i.sc("nzComponentName","list")("specificContent",t.nzNoResult))},directives:[im],encapsulation:2,changeDetection:0}),e}(),SS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:gC,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n "))},encapsulation:2,changeDetection:0}),e}(),zS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:gC,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n "))},encapsulation:2,changeDetection:0}),e}(),TS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:gC,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n "))},encapsulation:2,changeDetection:0}),e}(),_S=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),e}(),kS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-list","nzGrid",""]],hostAttrs:[1,"ant-list-grid"]}),e}(),DS=function(){function e(){this.nzBordered=!1,this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.itemLayoutNotifySource=new qu.a(this.nzItemLayout)}return Object.defineProperty(e.prototype,"itemLayoutNotify$",{get:function(){return this.itemLayoutNotifySource.asObservable()},enumerable:!0,configurable:!0}),e.prototype.getSomethingAfterLastItem=function(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)},e.prototype.ngOnChanges=function(e){e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)},e.prototype.ngOnDestroy=function(){this.itemLayoutNotifySource.unsubscribe()},e.prototype.ngAfterContentInit=function(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzBordered",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzLoading",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSplit",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Lb(n,zS,!0),i.Lb(n,TS,!0),i.Lb(n,_S,!0)),2&e&&(i.zc(r=i.ic())&&(t.nzListFooterComponent=r.first),i.zc(r=i.ic())&&(t.nzListPaginationComponent=r.first),i.zc(r=i.ic())&&(t.nzListLoadMoreDirective=r.first))},hostVars:16,hostBindings:function(e,t){2&e&&i.Jb("ant-list",!0)("ant-list-vertical","vertical"===t.nzItemLayout)("ant-list-lg","large"===t.nzSize)("ant-list-sm","small"===t.nzSize)("ant-list-split",t.nzSplit)("ant-list-bordered",t.nzBordered)("ant-list-loading",t.nzLoading)("ant-list-something-after-last-item",t.hasSomethingAfterLastItem)},inputs:{nzBordered:"nzBordered",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzSize:"nzSize",nzSplit:"nzSplit",nzDataSource:"nzDataSource",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzPagination:"nzPagination",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[i.Bb],ngContentSelectors:GC,decls:16,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(e,t){if(1&e&&(i.rc($C),i.Lc(0,MC,3,1,"ng-template",null,0,i.Mc),i.Lc(2,PC,2,1,"nz-list-header",1),i.qc(3),i.Zb(4,"nz-spin",2),i.Xb(5),i.Lc(6,FC,1,2,"div",3),i.Lc(7,BC,2,2,"div",4),i.Lc(8,YC,1,1,"nz-list-empty",5),i.Wb(),i.qc(9,1),i.Yb(),i.Lc(10,HC,2,1,"nz-list-footer",1),i.qc(11,2),i.Lc(12,WC,0,0,"ng-template",6),i.qc(13,3),i.Lc(14,ZC,2,1,"nz-list-pagination",1),i.qc(15,4)),2&e){var n=i.Ac(1);i.Db(2),i.sc("ngIf",t.nzHeader),i.Db(2),i.sc("nzSpinning",t.nzLoading),i.Db(2),i.sc("ngIf",t.nzLoading&&t.nzDataSource&&0===t.nzDataSource.length),i.Db(1),i.sc("ngIf",t.nzGrid&&t.nzDataSource)("ngIfElse",n),i.Db(1),i.sc("ngIf",!t.nzLoading&&t.nzDataSource&&0===t.nzDataSource.length),i.Db(2),i.sc("ngIf",t.nzFooter),i.Db(2),i.sc("ngTemplateOutlet",t.nzLoadMore),i.Db(2),i.sc("ngIf",t.nzPagination)}},directives:[Vr.t,dC,Vr.A,Vr.s,SS,Es.b,OO,CO,CS,zS,TS],encapsulation:2,changeDetection:0}),e}(),xS=function(){function e(e,t,n,i){this.parentComp=n,this.cdr=i,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,t.addClass(e.nativeElement,"ant-list-item")}return Object.defineProperty(e.prototype,"isVerticalAndExtra",{get:function(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe((function(t){e.itemLayout=t,e.cdr.detectChanges()}))},e.prototype.ngOnDestroy=function(){this.itemLayout$&&this.itemLayout$.unsubscribe()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzNoFlex",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E),i.Tb(DS),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,yS,!0),2&e&&i.zc(r=i.ic())&&(t.listItemExtraDirective=r.first)},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-list-item-no-flex",t.nzNoFlex)},inputs:{nzActions:"nzActions",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex",nzContent:"nzContent"},exportAs:["nzListItem"],ngContentSelectors:fS,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(e,t){if(1&e&&(i.rc(dS),i.Lc(0,XC,2,1,"ng-template",null,0,i.Mc),i.Lc(2,eS,3,1,"ng-template",null,1,i.Mc),i.Lc(4,tS,1,0,"ng-template",null,2,i.Mc),i.Lc(6,aS,4,4,"ng-template",null,3,i.Mc),i.Lc(8,hS,6,4,"ng-container",4)),2&e){var n=i.Ac(7);i.Db(8),i.sc("ngIf",t.isVerticalAndExtra)("ngIfElse",n)}},directives:[Vr.t,OS,Es.b,Vr.A,yS],encapsulation:2,changeDetection:0}),e}(),ES=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,fC,SO,uu,Es.a,cm]]}),e}();function NS(e,t){1&e&&i.Vb(0)}var jS=function(e){return{$implicit:e}};function IS(e,t){if(1&e&&(i.Xb(0),i.Lc(1,NS,1,0,"ng-container",7),i.Wb()),2&e){var n=i.kc().$implicit,r=i.kc(2);i.Db(1),i.sc("ngTemplateOutlet",r.suggestionTemplate)("ngTemplateOutletContext",i.vc(2,jS,n))}}function AS(e,t){if(1&e&&i.Nc(0),2&e){var n=i.kc().$implicit,r=i.kc(2);i.Oc(r.nzValueWith(n))}}function MS(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",4),i.hc("mousedown",(function(e){return i.Dc(n),e.preventDefault()}))("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc(2).selectSuggestion(e)})),i.Lc(1,IS,2,4,"ng-container",5),i.Lc(2,AS,1,1,"ng-template",null,6,i.Mc),i.Yb()}if(2&e){var r=t.index,o=i.Ac(3),a=i.kc(2);i.Jb("focus",r===a.activeIndex),i.Db(1),i.sc("ngIf",a.suggestionTemplate)("ngIfElse",o)}}function LS(e,t){1&e&&(i.Zb(0,"span"),i.Ub(1,"i",10),i.Yb())}function PS(e,t){if(1&e&&(i.Zb(0,"span"),i.Nc(1),i.Yb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.nzNotFoundContent)}}function FS(e,t){if(1&e&&(i.Zb(0,"li",8),i.Lc(1,LS,2,0,"span",9),i.Lc(2,PS,2,1,"span",9),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("ngIf",n.nzLoading),i.Db(1),i.sc("ngIf",!n.nzLoading)}}function RS(e,t){if(1&e&&(i.Zb(0,"ul",1),i.Lc(1,MS,4,4,"li",2),i.Lc(2,FS,3,2,"li",3),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("ngForOf",n.filteredSuggestions),i.Db(1),i.sc("ngIf",0===n.filteredSuggestions.length)}}var VS=["*"],BS=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","nzMentionSuggestion",""]],exportAs:["nzMentionSuggestion"]}),e}(),YS=function(){function e(){this.triggerChange$=new kt.a}return e.prototype.triggerChanged=function(){return this.triggerChange$.asObservable()},e.prototype.registerTrigger=function(e){this.trigger!==e&&(this.trigger=e,this.triggerChange$.next(e))},e.prototype.ngOnDestroy=function(){this.triggerChange$.complete()},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),US={provide:Ot.m,useExisting:Object(i.V)((function(){return HS})),multi:!0},HS=function(){function e(e,t){this.el=e,this.nzMentionService=t,this.onChange=function(){},this.onTouched=function(){},this.onFocusin=new i.n,this.onBlur=new i.n,this.onInput=new i.n,this.onKeydown=new i.n,this.onClick=new i.n}return e.prototype.completeEvents=function(){this.onFocusin.complete(),this.onBlur.complete(),this.onInput.complete(),this.onKeydown.complete(),this.onClick.complete()},e.prototype.focus=function(e){this.el.nativeElement.focus(),this.el.nativeElement.setSelectionRange(e,e)},e.prototype.insertMention=function(e){var t=this.el.nativeElement.value,n=e.mention.trim()+" ",i=[t.slice(0,e.startPos+1),n,t.slice(e.endPos,t.length)].join("");this.el.nativeElement.value=i,this.focus(e.startPos+n.length+1),this.onChange(i),this.value=i},e.prototype.writeValue=function(e){this.value=e,this.el.nativeElement.value="string"==typeof e?e:""},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.ngAfterViewInit=function(){this.nzMentionService.registerTrigger(this)},e.prototype.ngOnDestroy=function(){this.completeEvents()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(YS))},e.\u0275dir=i.Ob({type:e,selectors:[["input","nzMentionTrigger",""],["textarea","nzMentionTrigger",""]],hostAttrs:["autocomplete","off"],hostBindings:function(e,t){1&e&&i.hc("focusin",(function(){return t.onFocusin.emit()}))("blur",(function(){return t.onBlur.emit()}))("input",(function(e){return t.onInput.emit(e)}))("keydown",(function(e){return t.onKeydown.emit(e)}))("click",(function(e){return t.onClick.emit(e)}))},exportAs:["nzMentionTrigger"],features:[i.Cb([US])]}),e}(),WS=function(){function e(e,t,n,r,o){this.ngDocument=e,this.cdr=t,this.overlay=n,this.viewContainerRef=r,this.nzMentionService=o,this.nzValueWith=function(e){return e},this.nzPrefix="@",this.nzLoading=!1,this.nzNotFoundContent="\u65e0\u5339\u914d\u7ed3\u679c\uff0c\u8f7b\u6572\u7a7a\u683c\u5b8c\u6210\u8f93\u5165",this.nzPlacement="bottom",this.nzSuggestions=[],this.nzOnSelect=new i.n,this.nzOnSearchChange=new i.n,this.isOpen=!1,this.filteredSuggestions=[],this.suggestionTemplate=null,this.activeIndex=-1,this.previousValue=null,this.cursorMention=null,this.overlayRef=null}return Object.defineProperty(e.prototype,"suggestionChild",{set:function(e){e&&(this.suggestionTemplate=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerNativeElement",{get:function(){return this.trigger.el.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.nzMentionService.triggerChanged().subscribe((function(t){e.trigger=t,e.bindTriggerEvents(),e.closeDropdown(),e.overlayRef=null}))},e.prototype.ngOnChanges=function(e){e.hasOwnProperty("nzSuggestions")&&this.isOpen&&(this.previousValue=null,this.activeIndex=-1,this.resetDropdown(!1))},e.prototype.ngOnDestroy=function(){this.closeDropdown()},e.prototype.closeDropdown=function(){this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.overlayBackdropClickSubscription.unsubscribe(),this.isOpen=!1,this.cdr.markForCheck())},e.prototype.openDropdown=function(){this.attachOverlay(),this.isOpen=!0,this.cdr.markForCheck()},e.prototype.getMentions=function(){return this.trigger?Object(es.h)(this.trigger.value,this.nzPrefix):[]},e.prototype.selectSuggestion=function(e){var t=this.nzValueWith(e);this.trigger.insertMention({mention:t,startPos:this.cursorMentionStart,endPos:this.cursorMentionEnd}),this.nzOnSelect.emit(e),this.closeDropdown(),this.activeIndex=-1},e.prototype.handleInput=function(e){var t=e.target;this.trigger.onChange(t.value),this.trigger.value=t.value,this.resetDropdown()},e.prototype.handleKeydown=function(e){var t=e.keyCode;if(this.isOpen&&t===Zr.d&&-1!==this.activeIndex&&this.filteredSuggestions.length)this.selectSuggestion(this.filteredSuggestions[this.activeIndex]),e.preventDefault();else if(t===Zr.f||t===Zr.h)this.resetDropdown(),e.stopPropagation();else{if(this.isOpen&&(t===Zr.j||t===Zr.e))return void this.closeDropdown();this.isOpen&&t===Zr.k&&(this.setPreviousItemActive(),e.preventDefault(),e.stopPropagation()),this.isOpen&&t===Zr.c&&(this.setNextItemActive(),e.preventDefault(),e.stopPropagation())}},e.prototype.handleClick=function(){this.resetDropdown()},e.prototype.bindTriggerEvents=function(){var e=this;this.trigger.onInput.subscribe((function(t){return e.handleInput(t)})),this.trigger.onKeydown.subscribe((function(t){return e.handleKeydown(t)})),this.trigger.onClick.subscribe((function(){return e.handleClick()}))},e.prototype.suggestionsFilter=function(e,t){var n=this,i=e.substring(1);if(this.previousValue!==e){this.previousValue=e,t&&this.nzOnSearchChange.emit({value:this.cursorMention.substring(1),prefix:this.cursorMention[0]});var r=i.toLowerCase();this.filteredSuggestions=this.nzSuggestions.filter((function(e){return n.nzValueWith(e).toLowerCase().includes(r)}))}},e.prototype.resetDropdown=function(e){if(void 0===e&&(e=!0),this.resetCursorMention(),"string"==typeof this.cursorMention&&this.canOpen()){this.suggestionsFilter(this.cursorMention,e);var t=this.filteredSuggestions.indexOf(this.cursorMention.substring(1));this.activeIndex=t>=0?t:0,this.openDropdown()}else this.closeDropdown()},e.prototype.setNextItemActive=function(){this.activeIndex=this.activeIndex+1<=this.filteredSuggestions.length-1?this.activeIndex+1:0,this.cdr.markForCheck()},e.prototype.setPreviousItemActive=function(){this.activeIndex=this.activeIndex-1<0?this.filteredSuggestions.length-1:this.activeIndex-1,this.cdr.markForCheck()},e.prototype.canOpen=function(){var e=this.triggerNativeElement;return!e.readOnly&&!e.disabled},e.prototype.resetCursorMention=function(){for(var e=this.triggerNativeElement.value.replace(/[\r\n]/g," ")||"",t=this.triggerNativeElement.selectionStart,n="string"==typeof this.nzPrefix?[this.nzPrefix]:this.nzPrefix,i=n.length;i>=0;){var r=e.lastIndexOf(n[i],t),o=e.indexOf(" ",t)>-1?e.indexOf(" ",t):e.length,a=e.substring(r,o);if(!(r>0&&" "!==e[r-1]||r<0||a.includes(n[i],1)||a.includes(" ")))return this.cursorMention=a,this.cursorMentionStart=r,void(this.cursorMentionEnd=o);this.cursorMention=null,this.cursorMentionStart=-1,this.cursorMentionEnd=-1,i--}},e.prototype.updatePositions=function(){var e=Object(es.e)(this.triggerNativeElement,this.cursorMentionStart),t=e.top-this.triggerNativeElement.getBoundingClientRect().height-this.triggerNativeElement.scrollTop+("bottom"===this.nzPlacement?e.height-6:-6);this.positionStrategy.withDefaultOffsetX(e.left-this.triggerNativeElement.scrollLeft).withDefaultOffsetY(t),"bottom"===this.nzPlacement&&this.positionStrategy.withPositions(Object(zt.g)(Nu.b)),"top"===this.nzPlacement&&this.positionStrategy.withPositions(Object(zt.g)(Nu.c)),this.positionStrategy.apply()},e.prototype.subscribeOverlayBackdropClick=function(){var e=this;return Object(Tt.a)(Object(Cs.a)(this.ngDocument,"click"),Object(Cs.a)(this.ngDocument,"touchend")).subscribe((function(t){var n=t.target;e.isOpen&&n!==e.trigger.el.nativeElement&&e.overlayRef&&!e.overlayRef.overlayElement.contains(n)&&e.closeDropdown()}))},e.prototype.attachOverlay=function(){this.overlayRef||(this.portal=new Wr.g(this.suggestionsTemp,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayBackdropClickSubscription=this.subscribeOverlayBackdropClick()),this.updatePositions()},e.prototype.getOverlayConfig=function(){return new Ur.f({positionStrategy:this.getOverlayPosition(),scrollStrategy:this.overlay.scrollStrategies.reposition(),disposeOnNavigation:!0})},e.prototype.getOverlayPosition=function(){var e=[new Ur.c({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new Ur.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.trigger.el).withPositions(e).withFlexibleDimensions(!1).withPush(!1),this.positionStrategy},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzLoading",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Vr.e,8),i.Tb(i.h),i.Tb(Ur.e),i.Tb(i.Q),i.Tb(YS))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-mention"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,BS,!0,i.M),2&e&&i.zc(r=i.ic())&&(t.suggestionChild=r.first)},viewQuery:function(e,t){var n;1&e&&i.Sc(i.M,!0),2&e&&i.zc(n=i.ic())&&(t.suggestionsTemp=n.first)},inputs:{nzValueWith:"nzValueWith",nzPrefix:"nzPrefix",nzLoading:"nzLoading",nzNotFoundContent:"nzNotFoundContent",nzPlacement:"nzPlacement",nzSuggestions:"nzSuggestions"},outputs:{nzOnSelect:"nzOnSelect",nzOnSearchChange:"nzOnSearchChange"},exportAs:["nzMention"],features:[i.Cb([YS]),i.Bb],ngContentSelectors:VS,decls:3,vars:0,consts:[["suggestions",""],[1,"ant-mention-dropdown"],["class","ant-mention-dropdown-item",3,"focus","mousedown","click",4,"ngFor","ngForOf"],["class","ant-mention-dropdown-notfound ant-mention-dropdown-item",4,"ngIf"],[1,"ant-mention-dropdown-item",3,"mousedown","click"],[4,"ngIf","ngIfElse"],["defaultSuggestion",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-mention-dropdown-notfound","ant-mention-dropdown-item"],[4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(e,t){1&e&&(i.rc(),i.qc(0),i.Lc(1,RS,3,2,"ng-template",null,0,i.Mc))},directives:[Vr.s,Vr.t,Vr.A,Ns.a],encapsulation:2,changeDetection:0}),e}(),qS=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Ur.i,Ns.b]]}),e}(),ZS=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}(),$S=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ur.i,Ns.b,Es.a,ZS]]}),e}(),GS=n("2WDa"),QS=function(){function e(){}return e.prototype.transform=function(e,t){void 0===t&&(t="px");var n=+e;return isNaN(n)?""+e:""+n+t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Sb({name:"nzToCssUnit",type:e,pure:!0}),e}(),XS=function(){function e(){}return e.prototype.transform=function(e,t){void 0===t&&(t="HH:mm:ss");var n=Number(e||0);return Yd.reduce((function(e,t){var i=Object(zt.e)(t,2),r=i[0],o=i[1];if(-1!==e.indexOf(r)){var a=Math.floor(n/o);return n-=a*o,e.replace(new RegExp(r+"+","g"),(function(e){return Object(es.w)(a.toString(),e.length,"0")}))}return e}),t)},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Sb({name:"nzTimeRange",type:e,pure:!0}),e}(),KS=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c]]}),e}(),JS=["modalElement"];function ez(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",16),i.hc("click",(function(){return i.Dc(n),i.kc().onCloseClick()})),i.Yb()}}function tz(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"span",17),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("innerHTML",n.config.nzTitle,i.Ec)}}function nz(e,t){}function iz(e,t){if(1&e&&i.Ub(0,"div",17),2&e){var n=i.kc();i.sc("innerHTML",n.config.nzContent,i.Ec)}}function rz(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",18),i.hc("click",(function(){return i.Dc(n),i.kc().onCancel()})),i.Nc(1),i.Yb()}if(2&e){var r=i.kc();i.sc("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),i.Eb("cdkFocusInitial","cancel"===r.config.nzAutofocus),i.Db(1),i.Pc("\n ",r.config.nzCancelText||r.locale.cancelText,"\n ")}}function oz(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",19),i.hc("click",(function(){return i.Dc(n),i.kc().onOk()})),i.Nc(1),i.Yb()}if(2&e){var r=i.kc();i.sc("nzType",r.config.nzOkType)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled),i.Eb("cdkFocusInitial","ok"===r.config.nzAutofocus),i.Db(1),i.Pc("\n ",r.config.nzOkText||r.locale.okText,"\n ")}}function az(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",9),i.hc("click",(function(){return i.Dc(n),i.kc().onCloseClick()})),i.Yb()}}function sz(e,t){1&e&&i.Ub(0,"div",10)}function cz(e,t){}function uz(e,t){if(1&e&&i.Ub(0,"div",11),2&e){var n=i.kc();i.sc("innerHTML",n.config.nzContent,i.Ec)}}function lz(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",12),i.hc("cancelTriggered",(function(){return i.Dc(n),i.kc().onCloseClick()}))("okTriggered",(function(){return i.Dc(n),i.kc().onOkClick()})),i.Yb()}if(2&e){var r=i.kc();i.sc("modalRef",r.modalRef)}}function pz(e,t){1&e&&i.qc(0)}var hz=["*"],dz=["nz-modal-close",""];function fz(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"i",2),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.sc("nzType",n)}}var gz=["nz-modal-footer",""];function bz(e,t){if(1&e&&i.Ub(0,"div",5),2&e){var n=i.kc(3);i.sc("innerHTML",n.config.nzTitle,i.Ec)}}function mz(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",7),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc(4).onButtonClick(e)})),i.Nc(1),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc(4);i.sc("hidden",!o.getButtonCallableProp(r,"show"))("nzLoading",o.getButtonCallableProp(r,"loading"))("disabled",o.getButtonCallableProp(r,"disabled"))("nzType",r.type)("nzShape",r.shape)("nzSize",r.size)("nzGhost",r.ghost),i.Db(1),i.Pc("\n ",r.label,"\n ")}}function vz(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,mz,2,8,"button",6),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(3);i.Db(2),i.sc("ngForOf",n.buttons)}}function yz(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,bz,1,1,"div",3),i.Nc(3,"\n "),i.Lc(4,vz,4,1,"ng-container",4),i.Nc(5,"\n "),i.Wb()),2&e){var n=i.kc(2);i.Db(2),i.sc("ngIf",!n.buttonsFooter),i.Db(2),i.sc("ngIf",n.buttonsFooter)}}function wz(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,yz,6,2,"ng-container",2),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.config.nzFooter)}}function Oz(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",10),i.hc("click",(function(){return i.Dc(n),i.kc(2).onCancel()})),i.Nc(1),i.Yb()}if(2&e){var r=i.kc(2);i.sc("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),i.Eb("cdkFocusInitial","cancel"===r.config.nzAutofocus),i.Db(1),i.Pc("\n ",r.config.nzCancelText||r.locale.cancelText,"\n ")}}function Cz(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",11),i.hc("click",(function(){return i.Dc(n),i.kc(2).onOk()})),i.Nc(1),i.Yb()}if(2&e){var r=i.kc(2);i.sc("nzType",r.config.nzOkType)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled),i.Eb("cdkFocusInitial","ok"===r.config.nzAutofocus),i.Db(1),i.Pc("\n ",r.config.nzOkText||r.locale.okText,"\n ")}}function Sz(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,Oz,2,4,"button",8),i.Nc(2,"\n "),i.Lc(3,Cz,2,5,"button",9),i.Nc(4,"\n ")),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",null!==n.config.nzCancelText),i.Db(2),i.sc("ngIf",null!==n.config.nzOkText)}}var zz=["nz-modal-title",""];function Tz(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"div",2),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("innerHTML",n.config.nzTitle,i.Ec)}}var _z=function(){},kz=function(){return function(){this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzModalType="default",this.nzOnCancel=_z,this.nzOnOk=_z,this.nzIconType="question-circle"}}(),Dz={modalContainer:Object(GS.l)("modalContainer",[Object(GS.i)("void, exit",Object(GS.j)({})),Object(GS.i)("enter",Object(GS.j)({})),Object(GS.k)("* => enter",Object(GS.e)(".24s",Object(GS.j)({}))),Object(GS.k)("* => void, * => exit",Object(GS.e)(".2s",Object(GS.j)({})))])};function xz(e,t,n){return void 0===e?void 0===t?n:t:e}function Ez(e){return{nzMask:e.nzMask,nzMaskClosable:e.nzMaskClosable,nzClosable:e.nzClosable,nzOkLoading:e.nzOkLoading,nzOkDisabled:e.nzOkDisabled,nzCancelDisabled:e.nzCancelDisabled,nzCancelLoading:e.nzCancelLoading,nzKeyboard:e.nzKeyboard,nzNoAnimation:e.nzNoAnimation,nzContent:e.nzContent,nzComponentParams:e.nzComponentParams,nzFooter:e.nzFooter,nzGetContainer:e.nzGetContainer,nzZIndex:e.nzZIndex,nzWidth:e.nzWidth,nzWrapClassName:e.nzWrapClassName,nzClassName:e.nzClassName,nzStyle:e.nzStyle,nzTitle:e.nzTitle,nzCloseIcon:e.nzCloseIcon,nzMaskStyle:e.nzMaskStyle,nzBodyStyle:e.nzBodyStyle,nzOkText:e.nzOkText,nzCancelText:e.nzCancelText,nzOkType:e.nzOkType,nzIconType:e.nzIconType,nzModalType:e.nzModalType,nzOnOk:e.nzOnOk,nzOnCancel:e.nzOnCancel,nzAfterOpen:e.nzAfterOpen,nzAfterClose:e.nzAfterClose,nzCloseOnNavigation:e.nzCloseOnNavigation}}function Nz(){throw Error("Attempting to attach modal content after content is already attached")}var jz=function(e){function t(t,n,r,o,a,s,c,u,l,p){var h=e.call(this)||this;return h.elementRef=t,h.focusTrapFactory=n,h.cdr=r,h.render=o,h.zone=a,h.overlayRef=s,h.nzConfigService=c,h.config=u,h.animationType=p,h.animationStateChanged=new i.n,h.containerClick=new i.n,h.cancelTriggered=new i.n,h.okTriggered=new i.n,h.onDestroy=new i.n,h.state="enter",h.isStringContent=!1,h.elementFocusedBeforeModalWasOpened=null,h.latestMousedownTarget=null,h.oldMaskStyle=null,h.destroy$=new kt.a,h.document=l,h.isStringContent="string"==typeof u.nzContent,h.setContainer(),h.nzConfigService.getConfigChangeEventForComponent("modal").pipe(Object(ss.a)(h.destroy$)).subscribe((function(){h.updateMaskClassname()})),h}return Object(zt.c)(t,e),Object.defineProperty(t.prototype,"showMask",{get:function(){var e=this.nzConfigService.getConfigForComponent("modal")||{};return!!xz(this.config.nzMask,e.nzMask,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskClosable",{get:function(){var e=this.nzConfigService.getConfigForComponent("modal")||{};return!!xz(this.config.nzMaskClosable,e.nzMaskClosable,!0)},enumerable:!0,configurable:!0}),t.prototype.onMousedown=function(e){this.latestMousedownTarget=e.target||null},t.prototype.onMouseup=function(e){e.target===this.latestMousedownTarget&&e.target===this.elementRef.nativeElement&&this.showMask&&this.maskClosable&&this.containerClick.emit(),this.latestMousedownTarget=null},t.prototype.onCloseClick=function(){this.cancelTriggered.emit()},t.prototype.onOkClick=function(){this.okTriggered.emit()},t.prototype.attachComponentPortal=function(e){return this.portalOutlet.hasAttached()&&Nz(),this.savePreviouslyFocusedElement(),this.setModalTransformOrigin(),this.portalOutlet.attachComponentPortal(e)},t.prototype.attachTemplatePortal=function(e){return this.portalOutlet.hasAttached()&&Nz(),this.savePreviouslyFocusedElement(),this.portalOutlet.attachTemplatePortal(e)},t.prototype.getNativeElement=function(){return this.elementRef.nativeElement},t.prototype.animationDisabled=function(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType},t.prototype.setModalTransformOrigin=function(){var e=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){var t=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),n=Object(es.f)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(e,"transform-origin",n.left+t.width/2-e.offsetLeft+"px "+(n.top+t.height/2-e.offsetTop)+"px 0px")}},t.prototype.savePreviouslyFocusedElement=function(){var e=this;this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e.elementRef.nativeElement.focus()})))},t.prototype.trapFocus=function(){var e=this.elementRef.nativeElement;if(this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(e)),this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady().then();else{var t=this.document.activeElement;t===e||e.contains(t)||e.focus()}},t.prototype.restoreFocus=function(){var e=this.elementFocusedBeforeModalWasOpened;if(e&&"function"==typeof e.focus){var t=this.document.activeElement,n=this.elementRef.nativeElement;t&&t!==this.document.body&&t!==n&&!n.contains(t)||e.focus()}this.focusTrap&&this.focusTrap.destroy()},t.prototype.setEnterAnimationClass=function(){var e=this;this.animationDisabled()||this.zone.runOutsideAngular((function(){e.setModalTransformOrigin();var t=e.modalElementRef.nativeElement,n=e.overlayRef.backdropElement;e.render.addClass(t,"zoom-enter"),e.render.addClass(t,"zoom-enter-active"),e.render.addClass(n,"fade-enter"),e.render.addClass(n,"fade-enter-active")}))},t.prototype.setExitAnimationClass=function(){var e=this;this.zone.runOutsideAngular((function(){var t=e.modalElementRef.nativeElement,n=e.overlayRef.backdropElement;e.animationDisabled()?e.render.removeClass(n,"ant-modal-mask"):(e.render.addClass(t,"zoom-leave"),e.render.addClass(t,"zoom-leave-active"),e.render.addClass(n,"fade-leave"),e.render.addClass(n,"fade-leave-active"))}))},t.prototype.cleanAnimationClass=function(){var e=this;this.animationDisabled()||this.zone.runOutsideAngular((function(){var t=e.overlayRef.backdropElement,n=e.modalElementRef.nativeElement;e.render.removeClass(n,"zoom-enter"),e.render.removeClass(n,"zoom-enter-active"),e.render.removeClass(n,"zoom-leave"),e.render.removeClass(n,"zoom-leave-active"),e.render.removeClass(t,"fade-enter"),e.render.removeClass(t,"fade-enter-active")}))},t.prototype.bindBackdropStyle=function(){var e=this;this.zone.runOutsideAngular((function(){if(e.oldMaskStyle){var t=e.overlayRef.backdropElement;Object.keys(e.oldMaskStyle).forEach((function(n){e.render.removeStyle(t,n)})),e.oldMaskStyle=null}if("object"==typeof e.config.nzMaskStyle&&Object.keys(e.config.nzMaskStyle).length){var n=e.overlayRef.backdropElement,i=Object(zt.a)({},e.config.nzMaskStyle);Object.keys(i).forEach((function(t){e.render.setStyle(n,t,i[t])})),e.oldMaskStyle=i}}))},t.prototype.setContainer=function(){var e=this.getContainer();e&&this.render.appendChild(e,this.elementRef.nativeElement)},t.prototype.resetContainer=function(){this.getContainer()&&this.render.appendChild(this.overlayRef.overlayElement,this.elementRef.nativeElement)},t.prototype.getContainer=function(){var e=this.config.nzGetContainer,t="function"==typeof e?e():e;return t instanceof HTMLElement?t:null},t.prototype.updateMaskClassname=function(){var e=this.overlayRef.backdropElement;this.showMask?this.render.addClass(e,"ant-modal-mask"):this.render.removeClass(e,"ant-modal-mask")},t.prototype.onAnimationDone=function(e){"void"!==e.toState&&("enter"===e.toState?(this.setContainer(),this.trapFocus()):"exit"===e.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(e))},t.prototype.onAnimationStart=function(e){"enter"===e.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===e.toState&&(this.resetContainer(),this.setExitAnimationClass()),this.animationStateChanged.emit(e)},t.prototype.startExitAnimation=function(){this.state="exit",this.cdr.markForCheck()},t.prototype.ngOnDestroy=function(){this.onDestroy.emit(),this.destroy$.next(),this.destroy$.complete()},t.\u0275fac=function(e){i.gc()},t.\u0275dir=i.Ob({type:t,features:[i.Ab]}),t}(Wr.a),Iz=function(e){function t(t,n,r,o,a,s,c,u,l,p,h){var d=e.call(this,n,r,o,a,s,c,u,l,p,h)||this;return d.i18n=t,d.config=l,d.cancelTriggered=new i.n,d.okTriggered=new i.n,d.locale={},d.i18n.localeChange.pipe(Object(ss.a)(d.destroy$)).subscribe((function(){d.locale=d.i18n.getLocaleData("Modal")})),d}return Object(zt.c)(t,e),t.prototype.onCancel=function(){this.cancelTriggered.emit()},t.prototype.onOk=function(){this.okTriggered.emit()},t.\u0275fac=function(e){return new(e||t)(i.Tb(Lp),i.Tb(i.l),i.Tb(so),i.Tb(i.h),i.Tb(i.E),i.Tb(i.z),i.Tb(Ur.j),i.Tb(Qa.a),i.Tb(kz),i.Tb(Vr.e,8),i.Tb(wt.a,8))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-modal-confirm-container"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(Wr.b,!0),i.Jc(JS,!0)),2&e&&(i.zc(n=i.ic())&&(t.portalOutlet=n.first),i.zc(n=i.ic())&&(t.modalElementRef=n.first))},hostAttrs:["tabindex","-1","role","dialog"],hostVars:6,hostBindings:function(e,t){1&e&&(i.Kb("@modalContainer.start",(function(e){return t.onAnimationStart(e)}))("@modalContainer.done",(function(e){return t.onAnimationDone(e)})),i.hc("mousedown",(function(e){return t.onMousedown(e)}))("mouseup",(function(e){return t.onMouseup(e)}))),2&e&&(i.Rc("@.disabled",t.config.nzNoAnimation)("@modalContainer",t.state),i.Fb(t.config.nzWrapClassName?"ant-modal-wrap "+t.config.nzWrapClassName:"ant-modal-wrap"),i.Kc("z-index",t.config.nzZIndex))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[i.Ab],decls:41,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","click"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0,1),i.lc(3,"nzToCssUnit"),i.Nc(4,"\n "),i.Zb(5,"div",2),i.Nc(6,"\n "),i.Lc(7,ez,1,0,"button",3),i.Nc(8,"\n "),i.Zb(9,"div",4),i.Nc(10,"\n "),i.Zb(11,"div",5),i.Nc(12,"\n "),i.Zb(13,"div",6),i.Nc(14,"\n "),i.Ub(15,"i",7),i.Nc(16,"\n "),i.Zb(17,"span",8),i.Nc(18,"\n "),i.Lc(19,tz,4,1,"ng-container",9),i.Nc(20,"\n "),i.Yb(),i.Nc(21,"\n "),i.Zb(22,"div",10),i.Nc(23,"\n "),i.Lc(24,nz,0,0,"ng-template",11),i.Nc(25,"\n "),i.Lc(26,iz,1,1,"div",12),i.Nc(27,"\n "),i.Yb(),i.Nc(28,"\n "),i.Yb(),i.Nc(29,"\n "),i.Zb(30,"div",13),i.Nc(31,"\n "),i.Lc(32,rz,2,4,"button",14),i.Nc(33,"\n "),i.Lc(34,oz,2,5,"button",15),i.Nc(35,"\n "),i.Yb(),i.Nc(36,"\n "),i.Yb(),i.Nc(37,"\n "),i.Yb(),i.Nc(38,"\n "),i.Yb(),i.Nc(39,"\n "),i.Yb(),i.Nc(40,"\n ")),2&e&&(i.Db(1),i.Kc("width",i.mc(3,11,null==t.config?null:t.config.nzWidth)),i.sc("ngClass",t.config.nzClassName)("ngStyle",t.config.nzStyle),i.Db(6),i.sc("ngIf",t.config.nzClosable),i.Db(2),i.sc("ngStyle",t.config.nzBodyStyle),i.Db(6),i.sc("nzType",t.config.nzIconType),i.Db(4),i.sc("nzStringTemplateOutlet",t.config.nzTitle),i.Db(7),i.sc("ngIf",t.isStringContent),i.Db(6),i.sc("ngIf",null!==t.config.nzCancelText),i.Db(2),i.sc("ngIf",null!==t.config.nzOkText))},directives:function(){return[Vr.q,Vr.w,Vr.t,Hd.a,Ns.a,Es.b,Wr.b,Rz,Wu.a,Ud.a]},pipes:function(){return[QS]},encapsulation:2,data:{animation:[Dz.modalContainer]}}),t}(jz),Az=function(e){function t(t,n,i,r,o,a,s,c,u,l){var p=e.call(this,t,n,i,r,o,a,s,c,u,l)||this;return p.config=c,p}return Object(zt.c)(t,e),t.\u0275fac=function(e){return new(e||t)(i.Tb(i.l),i.Tb(so),i.Tb(i.h),i.Tb(i.E),i.Tb(i.z),i.Tb(Ur.j),i.Tb(Qa.a),i.Tb(kz),i.Tb(Vr.e,8),i.Tb(wt.a,8))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-modal-container"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(Wr.b,!0),i.Jc(JS,!0)),2&e&&(i.zc(n=i.ic())&&(t.portalOutlet=n.first),i.zc(n=i.ic())&&(t.modalElementRef=n.first))},hostAttrs:["tabindex","-1","role","dialog"],hostVars:6,hostBindings:function(e,t){1&e&&(i.Kb("@modalContainer.start",(function(e){return t.onAnimationStart(e)}))("@modalContainer.done",(function(e){return t.onAnimationDone(e)})),i.hc("mousedown",(function(e){return t.onMousedown(e)}))("mouseup",(function(e){return t.onMouseup(e)}))),2&e&&(i.Rc("@.disabled",t.config.nzNoAnimation)("@modalContainer",t.state),i.Fb(t.config.nzWrapClassName?"ant-modal-wrap "+t.config.nzWrapClassName:"ant-modal-wrap"),i.Kc("z-index",t.config.nzZIndex))},exportAs:["nzModalContainer"],features:[i.Ab],decls:22,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0,1),i.lc(3,"nzToCssUnit"),i.Nc(4,"\n "),i.Zb(5,"div",2),i.Nc(6,"\n "),i.Lc(7,az,1,0,"button",3),i.Nc(8,"\n "),i.Lc(9,sz,1,0,"div",4),i.Nc(10,"\n "),i.Zb(11,"div",5),i.Nc(12,"\n "),i.Lc(13,cz,0,0,"ng-template",6),i.Nc(14,"\n "),i.Lc(15,uz,1,1,"div",7),i.Nc(16,"\n "),i.Yb(),i.Nc(17,"\n "),i.Lc(18,lz,1,1,"div",8),i.Nc(19,"\n "),i.Yb(),i.Nc(20,"\n "),i.Yb(),i.Nc(21,"\n ")),2&e&&(i.Db(1),i.Kc("width",i.mc(3,9,null==t.config?null:t.config.nzWidth)),i.sc("ngClass",t.config.nzClassName)("ngStyle",t.config.nzStyle),i.Db(6),i.sc("ngIf",t.config.nzClosable),i.Db(2),i.sc("ngIf",t.config.nzTitle),i.Db(2),i.sc("ngStyle",t.config.nzBodyStyle),i.Db(4),i.sc("ngIf",t.isStringContent),i.Db(3),i.sc("ngIf",null!==t.config.nzFooter))},directives:function(){return[Vr.q,Vr.w,Vr.t,Wr.b,Rz,Yz,Vz]},pipes:function(){return[QS]},encapsulation:2,data:{animation:[Dz.modalContainer]}}),t}(jz),Mz=function(){function e(e,t,n){var r=this;this.overlayRef=e,this.config=t,this.containerInstance=n,this.componentInstance=null,this.state=0,this.afterClose=new kt.a,this.afterOpen=new kt.a,n.animationStateChanged.pipe(Object(Pt.a)((function(e){return"done"===e.phaseName&&"enter"===e.toState})),Object(en.a)(1)).subscribe((function(){r.afterOpen.next(),r.afterOpen.complete(),t.nzAfterOpen instanceof i.n&&t.nzAfterOpen.emit()})),Object(Tt.a)(n.onDestroy,n.animationStateChanged.pipe(Object(Pt.a)((function(e){return"done"===e.phaseName&&"exit"===e.toState})),Object(en.a)(1))).pipe(Object(en.a)(1)).subscribe((function(){clearTimeout(r.closeTimeout),r.finishDialogClose()})),n.containerClick.pipe(Object(en.a)(1)).subscribe((function(){!r.config.nzCancelLoading&&!r.config.nzOkLoading&&r.trigger("cancel")})),e.keydownEvents().pipe(Object(Pt.a)((function(e){return r.config.nzKeyboard&&!r.config.nzCancelLoading&&!r.config.nzOkLoading&&e.keyCode===Zr.e&&!Object(Zr.n)(e)}))).subscribe((function(e){e.preventDefault(),r.trigger("cancel")})),n.cancelTriggered.subscribe((function(){return r.trigger("cancel")})),n.okTriggered.subscribe((function(){return r.trigger("ok")})),e.detachments().subscribe((function(){r.afterClose.next(r.result),r.afterClose.complete(),t.nzAfterClose instanceof i.n&&t.nzAfterClose.emit(r.result),r.componentInstance=null,r.overlayRef.dispose()}))}return e.prototype.getContentComponent=function(){return this.componentInstance},e.prototype.getElement=function(){return this.containerInstance.getNativeElement()},e.prototype.destroy=function(e){this.close(e)},e.prototype.triggerOk=function(){this.trigger("ok")},e.prototype.triggerCancel=function(){this.trigger("cancel")},e.prototype.open=function(){},e.prototype.close=function(e){var t=this;this.result=e,this.containerInstance.animationStateChanged.pipe(Object(Pt.a)((function(e){return"start"===e.phaseName})),Object(en.a)(1)).subscribe((function(e){t.overlayRef.detachBackdrop(),t.closeTimeout=setTimeout((function(){t.finishDialogClose()}),e.totalTime+100)})),this.containerInstance.startExitAnimation(),this.state=1},e.prototype.updateConfig=function(e){Object.assign(this.config,e),this.containerInstance.cdr.markForCheck()},e.prototype.getState=function(){return this.state},e.prototype.getConfig=function(){return this.config},e.prototype.getBackdropElement=function(){return this.overlayRef.backdropElement},e.prototype.trigger=function(e){var t,n=this,r={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[e],o={ok:"nzOkLoading",cancel:"nzCancelLoading"}[e];if(!this.config[o])if(r instanceof i.n)r.emit(this.getContentComponent());else if("function"==typeof r){var a=r(this.getContentComponent());if(Object(es.q)(a)){this.config[o]=!0;var s=function(e){n.config[o]=!1,n.closeWhitResult(e)};a.then(s).catch(s)}else!1!==(t=a)&&n.close(t)}},e.prototype.closeWhitResult=function(e){!1!==e&&this.close(e)},e.prototype.finishDialogClose=function(){this.state=2,this.overlayRef.dispose()},e}(),Lz=function(){function e(e,t,n,i){var r=this;this.overlay=e,this.injector=t,this.nzConfigService=n,this.parentModal=i,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new kt.a,this.afterAllClose=Object(Dt.a)((function(){return r.openModals.length?r._afterAllClosed:r._afterAllClosed.pipe(Object(Ka.a)(void 0))}))}return Object.defineProperty(e.prototype,"openModals",{get:function(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_afterAllClosed",{get:function(){var e=this.parentModal;return e?e._afterAllClosed:this.afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),e.prototype.create=function(e){return this.open(e.nzContent,e)},e.prototype.closeAll=function(){this.closeModals(this.openModals)},e.prototype.confirm=function(e,t){return void 0===e&&(e={}),void 0===t&&(t="confirm"),"nzFooter"in e&&Object(Hs.b)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in e||(e.nzWidth=416),"nzMaskClosable"in e||(e.nzMaskClosable=!1),e.nzModalType="confirm",e.nzClassName="ant-modal-confirm ant-modal-confirm-"+t+" "+(e.nzClassName||""),this.create(e)},e.prototype.info=function(e){return void 0===e&&(e={}),this.confirmFactory(e,"info")},e.prototype.success=function(e){return void 0===e&&(e={}),this.confirmFactory(e,"success")},e.prototype.error=function(e){return void 0===e&&(e={}),this.confirmFactory(e,"error")},e.prototype.warning=function(e){return void 0===e&&(e={}),this.confirmFactory(e,"warning")},e.prototype.open=function(e,t){var n=this,i=function(e,t){return Object(zt.a)(Object(zt.a)({},t),e)}(t||{},new kz),r=this.createOverlay(i),o=this.attachModalContainer(r,i),a=this.attachModalContent(e,o,r,i);return o.modalRef=a,this.openModals.push(a),a.afterClose.subscribe((function(){return n.removeOpenModal(a)})),a},e.prototype.removeOpenModal=function(e){var t=this.openModals.indexOf(e);t>-1&&(this.openModals.splice(t,1),this.openModals.length||this._afterAllClosed.next())},e.prototype.closeModals=function(e){for(var t=e.length;t--;)e[t].close(),this.openModals.length||this._afterAllClosed.next()},e.prototype.createOverlay=function(e){var t=this.nzConfigService.getConfigForComponent("modal")||{},n=new Ur.f({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:xz(e.nzCloseOnNavigation,t.nzCloseOnNavigation,!0)});return xz(e.nzMask,t.nzMask,!0)&&(n.backdropClass="ant-modal-mask"),this.overlay.create(n)},e.prototype.attachModalContainer=function(e,t){var n=new Wr.e(t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector||this.injector,new WeakMap([[Ur.j,e],[kz,t]])),i=new Wr.c("confirm"===t.nzModalType?Iz:Az,t.nzViewContainerRef,n);return e.attach(i).instance},e.prototype.attachModalContent=function(e,t,n,r){var o=new Mz(n,r,t);if(e instanceof i.M)t.attachTemplatePortal(new Wr.g(e,null,{$implicit:r.nzComponentParams,modalRef:o}));else if(Object(es.p)(e)&&"string"!=typeof e){var a=this.createInjector(o,r),s=t.attachComponentPortal(new Wr.c(e,r.nzViewContainerRef,a));Object.assign(s.instance,r.nzComponentParams),o.componentInstance=s.instance}return o},e.prototype.createInjector=function(e,t){var n=t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector,i=new WeakMap([[Mz,e]]);return new Wr.e(n||this.injector,i)},e.prototype.confirmFactory=function(e,t){return void 0===e&&(e={}),"nzIconType"in e||(e.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[t]),"nzCancelText"in e||(e.nzCancelText=null),this.confirm(e,t)},e.prototype.ngOnDestroy=function(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()},e.\u0275fac=function(t){return new(t||e)(i.dc(Ur.e),i.dc(i.r),i.dc(Qa.a),i.dc(e,12))},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),Pz=function(){function e(e,t){this.nzModalRef=e,this.templateRef=t,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Mz,8),i.Tb(i.M))},e.\u0275dir=i.Ob({type:e,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),e}(),Fz=function(){function e(e,t,n){this.cdr=e,this.modal=t,this.viewContainerRef=n,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzIconType="question-circle",this.nzModalType="default",this.nzOnOk=new i.n,this.nzOnCancel=new i.n,this.nzAfterOpen=new i.n,this.nzAfterClose=new i.n,this.nzVisibleChange=new i.n,this.modalRef=null}return Object.defineProperty(e.prototype,"modalFooter",{set:function(e){e&&e.templateRef&&this.setFooterWithTemplate(e.templateRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"afterOpen",{get:function(){return this.nzAfterOpen.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"afterClose",{get:function(){return this.nzAfterClose.asObservable()},enumerable:!0,configurable:!0}),e.prototype.open=function(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){var e=this.getConfig();this.modalRef=this.modal.create(e)}},e.prototype.close=function(e){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(e),this.modalRef=null)},e.prototype.destroy=function(e){this.close(e)},e.prototype.triggerOk=function(){var e;null===(e=this.modalRef)||void 0===e||e.triggerOk()},e.prototype.triggerCancel=function(){var e;null===(e=this.modalRef)||void 0===e||e.triggerCancel()},e.prototype.getContentComponent=function(){var e;return null===(e=this.modalRef)||void 0===e?void 0:e.getContentComponent()},e.prototype.getElement=function(){var e;return null===(e=this.modalRef)||void 0===e?void 0:e.getElement()},e.prototype.getModalRef=function(){return this.modalRef},e.prototype.setFooterWithTemplate=function(e){var t=this;this.nzFooter=e,this.modalRef&&Promise.resolve().then((function(){t.modalRef.updateConfig({nzFooter:t.nzFooter})})),this.cdr.markForCheck()},e.prototype.getConfig=function(){var e=Ez(this);return e.nzViewContainerRef=this.viewContainerRef,this.nzContent||(e.nzContent=this.contentTemplateRef),e},e.prototype.ngOnChanges=function(e){var t=e.nzVisible,n=Object(zt.f)(e,["nzVisible"]);Object.keys(n).length&&this.modalRef&&this.modalRef.updateConfig(Ez(this)),t&&(this.nzVisible?this.open():this.close())},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzMask",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzMaskClosable",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzCloseOnNavigation",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzVisible",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzClosable",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzOkLoading",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzOkDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzCancelDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzCancelLoading",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzKeyboard",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzNoAnimation",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(Lz),i.Tb(i.Q))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-modal"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,Pz,!0),2&e&&i.zc(r=i.ic())&&(t.modalFooter=r.first)},viewQuery:function(e,t){var n;1&e&&i.Jc(i.M,!0),2&e&&i.zc(n=i.ic())&&(t.contentTemplateRef=n.first)},inputs:{nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzCloseIcon:"nzCloseIcon",nzOkType:"nzOkType",nzIconType:"nzIconType",nzModalType:"nzModalType",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzFooter:"nzFooter",nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzGetContainer:"nzGetContainer",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[i.Bb],ngContentSelectors:hz,decls:3,vars:0,template:function(e,t){1&e&&(i.rc(),i.Nc(0," "),i.Lc(1,pz,1,0,"ng-template"),i.Nc(2," "))},encapsulation:2,changeDetection:0}),e}(),Rz=function(){function e(e){this.config=e}return e.\u0275fac=function(t){return new(t||e)(i.Tb(kz))},e.\u0275cmp=i.Nb({type:e,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:dz,decls:6,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span",0),i.Nc(2,"\n "),i.Lc(3,fz,4,1,"ng-container",1),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n ")),2&e&&(i.Db(3),i.sc("nzStringTemplateOutlet",t.config.nzCloseIcon))},directives:[Es.b,Hd.a,Ns.a],encapsulation:2,changeDetection:0}),e}(),Vz=function(){function e(e,t){var n=this;this.i18n=e,this.config=t,this.buttonsFooter=!1,this.buttons=[],this.locale={},this.cancelTriggered=new i.n,this.okTriggered=new i.n,this.destroy$=new kt.a,Array.isArray(t.nzFooter)&&(this.buttonsFooter=!0,this.buttons=t.nzFooter.map(Bz)),this.i18n.localeChange.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){n.locale=n.i18n.getLocaleData("Modal")}))}return e.prototype.onCancel=function(){this.cancelTriggered.emit()},e.prototype.onOk=function(){this.okTriggered.emit()},e.prototype.getButtonCallableProp=function(e,t){var n=e[t],i=this.modalRef.getContentComponent();return"function"==typeof n?n.apply(e,i&&[i]):n},e.prototype.onButtonClick=function(e){if(!this.getButtonCallableProp(e,"loading")){var t=this.getButtonCallableProp(e,"onClick");e.autoLoading&&Object(es.q)(t)&&(e.loading=!0,t.then((function(){return e.loading=!1})).catch((function(){return e.loading=!1})))}},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(Lp),i.Tb(kz))},e.\u0275cmp=i.Nb({type:e,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:gz,decls:6,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","click"]],template:function(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,wz,4,1,"ng-container",0),i.Nc(2,"\n "),i.Lc(3,Sz,5,2,"ng-template",null,1,i.Mc),i.Nc(5,"\n ")),2&e){var n=i.Ac(4);i.Db(1),i.sc("ngIf",t.config.nzFooter)("ngIfElse",n)}},directives:[Vr.t,Es.b,Vr.s,Wu.a,Ud.a,Hd.a],encapsulation:2}),e}();function Bz(e){return Object(zt.a)({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},e)}var Yz=function(){function e(e){this.config=e}return e.\u0275fac=function(t){return new(t||e)(i.Tb(kz))},e.\u0275cmp=i.Nb({type:e,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:zz,decls:6,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Lc(3,Tz,4,1,"ng-container",1),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n ")),2&e&&(i.Db(3),i.sc("nzStringTemplateOutlet",t.config.nzTitle))},directives:[Es.b],encapsulation:2,changeDetection:0}),e}(),Uz=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},providers:[Lz],imports:[[Vr.c,Ur.i,Es.a,Wr.f,Fp,Wu.c,Ns.b,KS,ac.b]]}),e}(),Hz=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}(),Wz=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ur.i,Ns.b,Es.a,Hz]]}),e}();function qz(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"i",9),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.sc("nzType",n||"arrow-left")}}function Zz(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",6),i.hc("click",(function(){return i.Dc(n),i.kc().onBack()})),i.Nc(1,"\n "),i.Zb(2,"div",7),i.Nc(3,"\n "),i.Lc(4,qz,4,1,"ng-container",8),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "),i.Yb()}if(2&e){var r=i.kc();i.Db(4),i.sc("nzStringTemplateOutlet",r.nzBackIcon)}}function $z(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzTitle)}}function Gz(e,t){if(1&e&&(i.Zb(0,"span",10),i.Nc(1,"\n "),i.Lc(2,$z,2,1,"ng-container",8),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzTitle)}}function Qz(e,t){1&e&&i.qc(0,6,["*ngIf","!nzTitle"])}function Xz(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzSubtitle)}}function Kz(e,t){if(1&e&&(i.Zb(0,"span",11),i.Nc(1,"\n "),i.Lc(2,Xz,2,1,"ng-container",8),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzSubtitle)}}function Jz(e,t){1&e&&i.qc(0,7,["*ngIf","!nzSubtitle"])}var eT=[[["nz-breadcrumb","nz-page-header-breadcrumb",""]],[["nz-avatar","nz-page-header-avatar",""]],[["nz-page-header-tags"],["","nz-page-header-tags",""]],[["nz-page-header-extra"],["","nz-page-header-extra",""]],[["nz-page-header-content"],["","nz-page-header-content",""]],[["nz-page-header-footer"],["","nz-page-header-footer",""]],[["nz-page-header-title"],["","nz-page-header-title",""]],[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]]],tT=["nz-breadcrumb[nz-page-header-breadcrumb]","nz-avatar[nz-page-header-avatar]","nz-page-header-tags, [nz-page-header-tags]","nz-page-header-extra, [nz-page-header-extra]","nz-page-header-content, [nz-page-header-content]","nz-page-header-footer, [nz-page-header-footer]","nz-page-header-title, [nz-page-header-title]","nz-page-header-subtitle, [nz-page-header-subtitle]"],nT=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-page-header-title"],["","nz-page-header-title",""]],hostAttrs:[1,"ant-page-header-heading-title"],exportAs:["nzPageHeaderTitle"]}),e}(),iT=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]],hostAttrs:[1,"ant-page-header-heading-sub-title"],exportAs:["nzPageHeaderSubtitle"]}),e}(),rT=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-page-header-content"],["","nz-page-header-content",""]],hostAttrs:[1,"ant-page-header-content"],exportAs:["nzPageHeaderContent"]}),e}(),oT=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-page-header-tags"],["","nz-page-header-tags",""]],hostAttrs:[1,"ant-page-header-heading-tags"],exportAs:["nzPageHeaderTags"]}),e}(),aT=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-page-header-extra"],["","nz-page-header-extra",""]],hostAttrs:[1,"ant-page-header-heading-extra"],exportAs:["nzPageHeaderExtra"]}),e}(),sT=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-page-header-footer"],["","nz-page-header-footer",""]],hostAttrs:[1,"ant-page-header-footer"],exportAs:["nzPageHeaderFooter"]}),e}(),cT=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-breadcrumb","nz-page-header-breadcrumb",""]],exportAs:["nzPageHeaderBreadcrumb"]}),e}(),uT=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-avatar","nz-page-header-avatar",""]],exportAs:["nzPageHeaderAvatar"]}),e}(),lT=function(){function e(e,t){this.location=e,this.nzConfigService=t,this.nzBackIcon=null,this.nzGhost=!0,this.nzBack=new i.n}return e.prototype.onBack=function(){if(this.nzBack.observers.length)this.nzBack.emit();else{if(!this.location)throw new Error(Hs.a+" you should import 'RouterModule' or register 'Location' if you want to use 'nzBack' default event!");this.location.back()}},Object(zt.b)([Object(Qa.b)("pageHeader"),Object(zt.d)("design:type",Boolean)],e.prototype,"nzGhost",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Vr.n,8),i.Tb(Qa.a))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-page-header"]],contentQueries:function(e,t,n){var r;1&e&&(i.Lb(n,sT,!0),i.Lb(n,cT,!0)),2&e&&(i.zc(r=i.ic())&&(t.nzPageHeaderFooter=r.first),i.zc(r=i.ic())&&(t.nzPageHeaderBreadcrumb=r.first))},hostAttrs:[1,"ant-page-header"],hostVars:6,hostBindings:function(e,t){2&e&&i.Jb("has-footer",t.nzPageHeaderFooter)("ant-page-header-ghost",t.nzGhost)("has-breadcrumb",t.nzPageHeaderBreadcrumb)},inputs:{nzBackIcon:"nzBackIcon",nzGhost:"nzGhost",nzTitle:"nzTitle",nzSubtitle:"nzSubtitle"},outputs:{nzBack:"nzBack"},exportAs:["nzPageHeader"],ngContentSelectors:tT,decls:33,vars:5,consts:[[1,"ant-page-header-heading"],[1,"ant-page-header-heading-left"],["class","ant-page-header-back",3,"click",4,"ngIf"],["class","ant-page-header-heading-title",4,"ngIf"],[4,"ngIf"],["class","ant-page-header-heading-sub-title",4,"ngIf"],[1,"ant-page-header-back",3,"click"],["role","button","tabindex","0",1,"ant-page-header-back-button"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"],[1,"ant-page-header-heading-title"],[1,"ant-page-header-heading-sub-title"]],template:function(e,t){1&e&&(i.rc(eT),i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n\n "),i.Zb(3,"div",0),i.Nc(4,"\n "),i.Zb(5,"div",1),i.Nc(6,"\n "),i.Nc(7,"\n "),i.Lc(8,Zz,7,1,"div",2),i.Nc(9,"\n "),i.Nc(10,"\n "),i.qc(11,1),i.Nc(12,"\n "),i.Nc(13,"\n "),i.Lc(14,Gz,4,1,"span",3),i.Nc(15,"\n "),i.Lc(16,Qz,1,0,void 0,4),i.Nc(17,"\n "),i.Nc(18,"\n "),i.Lc(19,Kz,4,1,"span",5),i.Nc(20,"\n "),i.Lc(21,Jz,1,0,void 0,4),i.Nc(22,"\n "),i.qc(23,2),i.Nc(24,"\n "),i.Yb(),i.Nc(25,"\n\n "),i.qc(26,3),i.Nc(27,"\n "),i.Yb(),i.Nc(28,"\n\n "),i.qc(29,4),i.Nc(30,"\n "),i.qc(31,5),i.Nc(32,"\n ")),2&e&&(i.Db(8),i.sc("ngIf",null!==t.nzBackIcon),i.Db(6),i.sc("ngIf",t.nzTitle),i.Db(2),i.sc("ngIf",!t.nzTitle),i.Db(3),i.sc("ngIf",t.nzSubtitle),i.Db(2),i.sc("ngIf",!t.nzSubtitle))},directives:[Vr.t,Es.b,Ns.a],encapsulation:2,changeDetection:0}),e}(),pT=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Es.a,Ns.b]]}),e}();function hT(e,t){}function dT(e,t){if(1&e&&(i.Xb(0),i.Lc(1,hT,0,0,"ng-template",6),i.Wb()),2&e){i.kc(2);var n=i.Ac(2);i.Db(1),i.sc("ngTemplateOutlet",n.template)}}function fT(e,t){if(1&e&&(i.Xb(0),i.Lc(1,dT,2,1,"ng-container",5),i.Wb()),2&e){var n=i.kc(),r=i.Ac(4);i.Db(1),i.sc("ngIf",n.nzSimple)("ngIfElse",r.template)}}var gT=["containerTemplate"];function bT(e,t){}var mT=function(e,t){return{$implicit:e,range:t}};function vT(e,t){if(1&e&&(i.Zb(0,"li",4),i.Lc(1,bT,0,0,"ng-template",5),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("ngTemplateOutlet",n.showTotal)("ngTemplateOutletContext",i.wc(2,mT,n.total,n.ranges))}}function yT(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",6),i.hc("gotoIndex",(function(e){return i.Dc(n),i.kc(2).jumpPage(e)}))("diffIndex",(function(e){return i.Dc(n),i.kc(2).jumpDiff(e)})),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc(2);i.sc("locale",o.locale)("type",r.type)("index",r.index)("disabled",!!r.disabled)("itemRender",o.itemRender)("active",o.pageIndex===r.index)}}function wT(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",7),i.hc("pageIndexChange",(function(e){return i.Dc(n),i.kc(2).onPageIndexChange(e)}))("pageSizeChange",(function(e){return i.Dc(n),i.kc(2).onPageSizeChange(e)})),i.Yb()}if(2&e){var r=i.kc(2);i.sc("total",r.total)("locale",r.locale)("disabled",r.disabled)("nzSize",r.nzSize)("showSizeChanger",r.showSizeChanger)("showQuickJumper",r.showQuickJumper)("pageIndex",r.pageIndex)("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)}}function OT(e,t){if(1&e&&(i.Lc(0,vT,2,5,"li",1),i.Lc(1,yT,1,6,"li",2),i.Lc(2,wT,1,9,"div",3)),2&e){var n=i.kc();i.sc("ngIf",n.showTotal),i.Db(1),i.sc("ngForOf",n.listOfPageItem)("ngForTrackBy",n.trackByPageItem),i.Db(1),i.sc("ngIf",n.showQuickJumper||n.showSizeChanger)}}var CT=["nz-pagination-item",""];function ST(e,t){if(1&e&&(i.Zb(0,"a"),i.Nc(1),i.Yb()),2&e){var n=i.kc().page;i.Db(1),i.Oc(n)}}function zT(e,t){1&e&&i.Ub(0,"i",9)}function TT(e,t){1&e&&i.Ub(0,"i",10)}function _T(e,t){1&e&&i.Ub(0,"i",15)}function kT(e,t){1&e&&i.Ub(0,"i",16)}function DT(e,t){if(1&e&&(i.Zb(0,"div",11),i.Xb(1,2),i.Lc(2,_T,1,0,"i",12),i.Lc(3,kT,1,0,"i",13),i.Wb(),i.Zb(4,"span",14),i.Nc(5,"\u2022\u2022\u2022"),i.Yb(),i.Yb()),2&e){var n=i.kc(2).$implicit;i.Db(1),i.sc("ngSwitch",n),i.Db(1),i.sc("ngSwitchCase","prev_5"),i.Db(1),i.sc("ngSwitchCase","next_5")}}function xT(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"a",5),i.Lc(2,zT,1,0,"i",6),i.Lc(3,TT,1,0,"i",7),i.Lc(4,DT,6,3,"div",8),i.Yb(),i.Wb()),2&e){var n=i.kc().$implicit;i.Db(1),i.sc("ngSwitch",n),i.Db(1),i.sc("ngSwitchCase","prev"),i.Db(1),i.sc("ngSwitchCase","next")}}function ET(e,t){1&e&&(i.Xb(0,2),i.Lc(1,ST,2,1,"a",3),i.Lc(2,xT,5,3,"ng-container",4),i.Wb()),2&e&&(i.sc("ngSwitch",t.$implicit),i.Db(1),i.sc("ngSwitchCase","page"))}function NT(e,t){}var jT=function(e,t){return{$implicit:e,page:t}},IT=["nz-pagination-options",""];function AT(e,t){if(1&e&&i.Ub(0,"nz-option",4),2&e){var n=t.$implicit;i.sc("nzLabel",n.label)("nzValue",n.value)}}function MT(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-select",2),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc().onPageSizeChange(e)})),i.Lc(1,AT,1,2,"nz-option",3),i.Yb()}if(2&e){var r=i.kc();i.sc("nzDisabled",r.disabled)("nzSize",r.nzSize)("ngModel",r.pageSize),i.Db(1),i.sc("ngForOf",r.listOfPageSizeOption)("ngForTrackBy",r.trackByOption)}}function LT(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",5),i.Nc(1),i.Zb(2,"input",6),i.hc("keydown.enter",(function(e){return i.Dc(n),i.kc().jumpToPageViaInput(e)})),i.Yb(),i.Nc(3),i.Yb()}if(2&e){var r=i.kc();i.Db(1),i.Pc(" ",r.locale.jump_to," "),i.Db(1),i.sc("disabled",r.disabled),i.Db(1),i.Pc(" ",r.locale.page," ")}}function PT(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",1),i.hc("click",(function(){return i.Dc(n),i.kc().prePage()})),i.Yb(),i.Zb(1,"li",2),i.Zb(2,"input",3),i.hc("keydown.enter",(function(e){return i.Dc(n),i.kc().jumpToPageViaInput(e)})),i.Yb(),i.Zb(3,"span",4),i.Nc(4,"/"),i.Yb(),i.Nc(5),i.Yb(),i.Zb(6,"li",5),i.hc("click",(function(){return i.Dc(n),i.kc().nextPage()})),i.Yb()}if(2&e){var r=i.kc();i.sc("disabled",r.isFirstIndex)("itemRender",r.itemRender),i.Eb("title",r.locale.prev_page),i.Db(1),i.Eb("title",r.pageIndex+"/"+r.lastIndex),i.Db(1),i.sc("disabled",r.disabled)("value",r.pageIndex),i.Db(3),i.Pc(" ",r.lastIndex," "),i.Db(1),i.sc("disabled",r.isLastIndex)("itemRender",r.itemRender),i.Eb("title",r.locale.next_page)}}var FT=function(){function e(e,t,n){this.i18n=e,this.cdr=t,this.breakpointService=n,this.nzPageSizeChange=new i.n,this.nzPageIndexChange=new i.n,this.nzShowTotal=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzItemRender=null,this.nzDisabled=!1,this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzResponsive=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.locale={},this.size="default",this.destroy$=new kt.a,this.total$=new Os.a(1)}return e.prototype.validatePageIndex=function(e,t){return e>t?t:e<1?1:e},e.prototype.onPageIndexChange=function(e){var t=this.getLastIndex(this.nzTotal,this.nzPageSize),n=this.validatePageIndex(e,t);n===this.nzPageIndex||this.nzDisabled||(this.nzPageIndex=n,this.nzPageIndexChange.emit(this.nzPageIndex))},e.prototype.onPageSizeChange=function(e){this.nzPageSize=e,this.nzPageSizeChange.emit(e);var t=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>t&&this.onPageIndexChange(t)},e.prototype.onTotalChange=function(e){var t=this,n=this.getLastIndex(e,this.nzPageSize);this.nzPageIndex>n&&Promise.resolve().then((function(){return t.onPageIndexChange(n)}))},e.prototype.getLastIndex=function(e,t){return Math.ceil(e/t)},e.prototype.ngOnInit=function(){var e=this;this.i18n.localeChange.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.locale=e.i18n.getLocaleData("Pagination"),e.cdr.markForCheck()})),this.total$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.onTotalChange(t)})),this.breakpointService.subscribe(vs).pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.nzResponsive&&(e.size="xs"===t?"small":"default",e.cdr.markForCheck())}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.ngOnChanges=function(e){var t=e.nzHideOnSinglePage,n=e.nzTotal,i=e.nzPageSize,r=e.nzSize;n&&this.total$.next(this.nzTotal),(t||n||i)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),r&&(this.size=r.currentValue)},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowSizeChanger",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzHideOnSinglePage",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowQuickJumper",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSimple",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzResponsive",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzTotal",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzPageIndex",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzPageSize",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Lp),i.Tb(i.h),i.Tb(ws))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-pagination"]],hostVars:8,hostBindings:function(e,t){2&e&&i.Jb("ant-pagination",!0)("ant-pagination-simple",t.nzSimple)("ant-pagination-disabled",t.nzDisabled)("mini",!t.nzSimple&&"small"===t.size)},inputs:{nzShowTotal:"nzShowTotal",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzItemRender:"nzItemRender",nzDisabled:"nzDisabled",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzResponsive:"nzResponsive",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[i.Bb],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(i.Lc(0,fT,2,2,"ng-container",0),i.Zb(1,"nz-pagination-simple",1,2),i.hc("pageIndexChange",(function(e){return t.onPageIndexChange(e)})),i.Yb(),i.Zb(3,"nz-pagination-default",3,4),i.hc("pageIndexChange",(function(e){return t.onPageIndexChange(e)}))("pageSizeChange",(function(e){return t.onPageSizeChange(e)})),i.Yb()),2&e&&(i.sc("ngIf",t.showPagination),i.Db(1),i.sc("disabled",t.nzDisabled)("itemRender",t.nzItemRender)("locale",t.locale)("pageSize",t.nzPageSize)("total",t.nzTotal)("pageIndex",t.nzPageIndex),i.Db(2),i.sc("nzSize",t.size)("itemRender",t.nzItemRender)("showTotal",t.nzShowTotal)("disabled",t.nzDisabled)("locale",t.locale)("showSizeChanger",t.nzShowSizeChanger)("showQuickJumper",t.nzShowQuickJumper)("total",t.nzTotal)("pageIndex",t.nzPageIndex)("pageSize",t.nzPageSize)("pageSizeOptions",t.nzPageSizeOptions))},directives:function(){return[Vr.t,YT,RT,Vr.A]},encapsulation:2,changeDetection:0}),e}(),RT=function(){function e(e,t){this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.locale={},this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new i.n,this.pageSizeChange=new i.n,this.ranges=[0,0],this.listOfPageItem=[],e.removeChild(e.parentNode(t.nativeElement),t.nativeElement)}return e.prototype.jumpPage=function(e){this.onPageIndexChange(e)},e.prototype.jumpDiff=function(e){this.jumpPage(this.pageIndex+e)},e.prototype.trackByPageItem=function(e,t){return t.type+"-"+t.index},e.prototype.onPageIndexChange=function(e){this.pageIndexChange.next(e)},e.prototype.onPageSizeChange=function(e){this.pageSizeChange.next(e)},e.prototype.getLastIndex=function(e,t){return Math.ceil(e/t)},e.prototype.buildIndexes=function(){var e=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,e)},e.prototype.getListOfPageItem=function(e,t){var n,i,r,o,a,s,c,u,l,p,h=function(e,t){for(var n=[],i=e;i<=t;i++)n.push({index:i,type:"page"});return n};return u=t<=9?h(1,t):(n=e,i=t,o={type:"prev_5"},a={type:"next_5"},s=h(1,1),c=h(t,t),r=n<4?Object(zt.g)(h(2,5),[a]):n0?this.delayTimer=setTimeout((function(){i.delayTimer=void 0,t?i.show():i.hide()}),1e3*n):t&&e?this.show():this.hide()},e.prototype.removeTriggerListeners=function(){this.triggerDisposables.forEach((function(e){return e()})),this.triggerDisposables.length=0},e.prototype.clearTogglingTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)},e.\u0275fac=function(e){i.gc()},e.\u0275dir=i.Ob({type:e,inputs:{nzTrigger:"nzTrigger",nzPlacement:"nzPlacement",nzMouseEnterDelay:"nzMouseEnterDelay",nzMouseLeaveDelay:"nzMouseLeaveDelay",nzTitle:"nzTitle",nzContent:"nzContent",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzVisible:"nzVisible"},outputs:{nzVisibleChange:"nzVisibleChange"},features:[i.Bb]}),e}(),$T=function(){function e(e,t){this.cdr=e,this.noAnimation=t,this.nzVisibleChange=new kt.a,this.nzTitle=null,this.nzContent=null,this.nzOverlayStyle={},this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this._classMap={},this._hasBackdrop=!1,this._prefix="ant-tooltip-placement",this._positions=Object(zt.g)(Nu.d)}return Object.defineProperty(e.prototype,"nzVisible",{get:function(){return this._visible},set:function(e){var t=Object(es.C)(e);this._visible!==t&&(this._visible=t,this.nzVisibleChange.next(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzTrigger",{get:function(){return this._trigger},set:function(e){this._trigger=e,this._hasBackdrop="click"===this._trigger},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzPlacement",{get:function(){return this.preferredPlacement},set:function(e){e!==this.preferredPlacement&&(this.preferredPlacement=e,this._positions=Object(zt.g)([Nu.g[this.nzPlacement]],this._positions))},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.nzVisibleChange.complete()},e.prototype.show=function(){this.nzVisible||this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges())},e.prototype.hide=function(){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())},e.prototype.updateByDirective=function(){var e=this;this.setClassMap(),this.cdr.detectChanges(),Promise.resolve().then((function(){e.updatePosition(),e.updateVisibilityByTitle()}))},e.prototype.updatePosition=function(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()},e.prototype.onPositionChange=function(e){this.preferredPlacement=Object(Nu.h)(e),this.setClassMap(),this.cdr.detectChanges()},e.prototype.setClassMap=function(){var e;this._classMap=((e={})[this.nzOverlayClassName]=!0,e[this._prefix+"-"+this.preferredPlacement]=!0,e)},e.prototype.setOverlayOrigin=function(e){this.origin=e,this.cdr.markForCheck()},e.prototype.updateVisibilityByTitle=function(){this.isEmpty()&&this.hide()},e.\u0275fac=function(e){i.gc()},e.\u0275dir=i.Ob({type:e,viewQuery:function(e,t){var n;1&e&&i.Sc(HT,!0),2&e&&i.zc(n=i.ic())&&(t.overlay=n.first)}}),e}();function GT(e){return!(e instanceof i.M||""!==e&&Object(es.p)(e))}var QT=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r,o)||this;return a.componentFactory=a.resolver.resolveComponentFactory(XT),a}return Object(zt.c)(t,e),t.\u0275fac=function(e){return new(e||t)(i.Tb(i.l),i.Tb(i.Q),i.Tb(i.j),i.Tb(i.E),i.Tb(ac.a,9))},t.\u0275dir=i.Ob({type:t,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-tooltip-open",t.visible)},inputs:{specificTitle:["nzTooltipTitle","specificTitle"],directiveNameTitle:["nz-tooltip","directiveNameTitle"],specificTrigger:["nzTooltipTrigger","specificTrigger"],specificPlacement:["nzTooltipPlacement","specificPlacement"],specificOrigin:["nzTooltipOrigin","specificOrigin"]},exportAs:["nzTooltip"],features:[i.Ab]}),t}(ZT),XT=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.noAnimation=n,i.nzTitle=null,i}return Object(zt.c)(t,e),t.prototype.isEmpty=function(){return GT(this.nzTitle)},t.\u0275fac=function(e){return new(e||t)(i.Tb(i.h),i.Tb(ac.a,9))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-tooltip"]],inputs:{nzTitle:"nzTitle"},exportAs:["nzTooltipComponent"],features:[i.Ab],decls:2,vars:4,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions","backdropClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-inner"],[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(i.Lc(0,qT,5,6,"ng-template",0,1,i.Mc),i.hc("backdropClick",(function(){return t.hide()}))("detach",(function(){return t.hide()}))("positionChange",(function(e){return t.onPositionChange(e)}))),2&e&&i.sc("cdkConnectedOverlayOrigin",t.origin)("cdkConnectedOverlayOpen",t._visible)("cdkConnectedOverlayHasBackdrop",t._hasBackdrop)("cdkConnectedOverlayPositions",t._positions)},directives:[Ur.a,Nu.e,Vr.q,Vr.w,ac.a,Es.b],encapsulation:2,data:{animation:[xs.j]},changeDetection:0}),t}($T),KT=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ur.i,Es.a,Nu.f,ac.b]]}),e}();function JT(e,t){if(1&e&&(i.Xb(0),i.Ub(1,"i",14),i.Wb()),2&e){var n=t.$implicit;i.Db(1),i.sc("nzType",n||"exclamation-circle")}}function e_(e,t){if(1&e&&(i.Xb(0),i.Lc(1,JT,2,1,"ng-container",8),i.Zb(2,"div",13),i.Nc(3),i.Yb(),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzIcon),i.Db(2),i.Oc(n.nzTitle)}}function t_(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzCancelText)}}function n_(e,t){1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"nzI18n"),i.Wb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"Modal.cancelText")))}function i_(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzOkText)}}function r_(e,t){1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"nzI18n"),i.Wb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"Modal.okText")))}function o_(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",2),i.Zb(1,"div",3),i.Ub(2,"div",4),i.Zb(3,"div",5),i.Zb(4,"div"),i.Zb(5,"div",6),i.Zb(6,"div",7),i.Lc(7,e_,4,2,"ng-container",8),i.Yb(),i.Zb(8,"div",9),i.Zb(9,"button",10),i.hc("click",(function(){return i.Dc(n),i.kc().onCancel()})),i.Lc(10,t_,2,1,"ng-container",11),i.Lc(11,n_,3,3,"ng-container",11),i.Yb(),i.Zb(12,"button",12),i.hc("click",(function(){return i.Dc(n),i.kc().onConfirm()})),i.Lc(13,i_,2,1,"ng-container",11),i.Lc(14,r_,3,3,"ng-container",11),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb()}if(2&e){var r=i.kc();i.sc("ngClass",r._classMap)("ngStyle",r.nzOverlayStyle)("@.disabled",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("nzNoAnimation",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),i.Db(7),i.sc("nzStringTemplateOutlet",r.nzTitle),i.Db(2),i.sc("nzSize","small"),i.Db(1),i.sc("ngIf",r.nzCancelText),i.Db(1),i.sc("ngIf",!r.nzCancelText),i.Db(1),i.sc("nzSize","small")("nzType",r.nzOkType),i.Db(1),i.sc("ngIf",r.nzOkText),i.Db(1),i.sc("ngIf",!r.nzOkText)}}var a_=function(e){function t(t,n,r,o,a){var s=e.call(this,t,n,r,o,a)||this;return s.nzCondition=!1,s.nzTrigger="click",s.nzOnCancel=new i.n,s.nzOnConfirm=new i.n,s.componentFactory=s.resolver.resolveComponentFactory(s_),s.needProxyProperties=["nzOverlayClassName","nzOverlayStyle","nzMouseEnterDelay","nzMouseLeaveDelay","nzVisible","nzOkText","nzOkType","nzCancelText","nzCondition","nzIcon"],s}return Object(zt.c)(t,e),t.prototype.createComponent=function(){var t=this;e.prototype.createComponent.call(this),this.component.nzOnCancel.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){t.nzOnCancel.emit()})),this.component.nzOnConfirm.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){t.nzOnConfirm.emit()}))},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzCondition",void 0),t.\u0275fac=function(e){return new(e||t)(i.Tb(i.l),i.Tb(i.Q),i.Tb(i.j),i.Tb(i.E),i.Tb(ac.a,9))},t.\u0275dir=i.Ob({type:t,selectors:[["","nz-popconfirm",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-popover-open",t.visible)},inputs:{specificTitle:["nzPopconfirmTitle","specificTitle"],directiveNameTitle:["nz-popconfirm","directiveNameTitle"],specificTrigger:["nzPopconfirmTrigger","specificTrigger"],specificPlacement:["nzPopconfirmPlacement","specificPlacement"],specificOrigin:["nzPopconfirmOrigin","specificOrigin"],nzOkText:"nzOkText",nzOkType:"nzOkType",nzCancelText:"nzCancelText",nzIcon:"nzIcon",nzCondition:"nzCondition",nzTrigger:"nzTrigger"},outputs:{nzOnCancel:"nzOnCancel",nzOnConfirm:"nzOnConfirm"},exportAs:["nzPopconfirm"],features:[i.Ab]}),t}(ZT),s_=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.noAnimation=n,i.nzCondition=!1,i.nzOkType="primary",i.nzOnCancel=new kt.a,i.nzOnConfirm=new kt.a,i._trigger="click",i._prefix="ant-popover-placement",i._hasBackdrop=!0,i}return Object(zt.c)(t,e),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.nzOnCancel.complete(),this.nzOnConfirm.complete()},t.prototype.show=function(){this.nzCondition?this.onConfirm():e.prototype.show.call(this)},t.prototype.onCancel=function(){this.nzOnCancel.next(),e.prototype.hide.call(this)},t.prototype.onConfirm=function(){this.nzOnConfirm.next(),e.prototype.hide.call(this)},t.\u0275fac=function(e){return new(e||t)(i.Tb(i.h),i.Tb(ac.a,9))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-popconfirm"]],exportAs:["nzPopconfirmComponent"],features:[i.Ab],decls:2,vars:4,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","backdropClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-inner"],[1,"ant-popover-inner-content"],[1,"ant-popover-message"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-buttons"],["nz-button","",3,"nzSize","click"],[4,"ngIf"],["nz-button","",3,"nzSize","nzType","click"],[1,"ant-popover-message-title"],["nz-icon","","nzTheme","fill",3,"nzType"]],template:function(e,t){1&e&&(i.Lc(0,o_,15,13,"ng-template",0,1,i.Mc),i.hc("backdropClick",(function(){return t.hide()}))("detach",(function(){return t.hide()}))("positionChange",(function(e){return t.onPositionChange(e)}))),2&e&&i.sc("cdkConnectedOverlayOrigin",t.origin)("cdkConnectedOverlayHasBackdrop",t._hasBackdrop)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayOpen",t._visible)},directives:[Ur.a,Nu.e,Vr.q,Vr.w,ac.a,Es.b,Wu.a,Ud.a,Hd.a,Vr.t,Ns.a],pipes:[Pp],encapsulation:2,data:{animation:[xs.j]},changeDetection:0}),t}(XT),c_=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Wu.c,Ur.i,Fp,Ns.b,Es.a,Nu.f,ac.b,KT]]}),e}();function u_(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.nzTitle)}}function l_(e,t){if(1&e&&(i.Zb(0,"div",9),i.Lc(1,u_,2,1,"ng-container",8),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzTitle)}}function p_(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzContent)}}function h_(e,t){if(1&e&&(i.Zb(0,"div",2),i.Zb(1,"div",3),i.Ub(2,"div",4),i.Zb(3,"div",5),i.Zb(4,"div"),i.Lc(5,l_,2,1,"div",6),i.Zb(6,"div",7),i.Lc(7,p_,2,1,"ng-container",8),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb()),2&e){var n=i.kc();i.sc("ngClass",n._classMap)("ngStyle",n.nzOverlayStyle)("@.disabled",null==n.noAnimation?null:n.noAnimation.nzNoAnimation)("nzNoAnimation",null==n.noAnimation?null:n.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),i.Db(5),i.sc("ngIf",n.nzTitle),i.Db(2),i.sc("nzStringTemplateOutlet",n.nzContent)}}var d_=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r,o)||this;return a.noAnimation=o,a.componentFactory=a.resolver.resolveComponentFactory(f_),a}return Object(zt.c)(t,e),t.\u0275fac=function(e){return new(e||t)(i.Tb(i.l),i.Tb(i.Q),i.Tb(i.j),i.Tb(i.E),i.Tb(ac.a,9))},t.\u0275dir=i.Ob({type:t,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-popover-open",t.visible)},inputs:{specificTitle:["nzPopoverTitle","specificTitle"],specificContent:["nzPopoverContent","specificContent"],directiveNameTitle:["nz-popover","directiveNameTitle"],specificTrigger:["nzPopoverTrigger","specificTrigger"],specificPlacement:["nzPopoverPlacement","specificPlacement"],specificOrigin:["nzPopoverOrigin","specificOrigin"]},exportAs:["nzPopover"],features:[i.Ab]}),t}(ZT),f_=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.noAnimation=n,i._prefix="ant-popover-placement",i}return Object(zt.c)(t,e),t.prototype.isEmpty=function(){return GT(this.nzTitle)&>(this.nzContent)},t.\u0275fac=function(e){return new(e||t)(i.Tb(i.h),i.Tb(ac.a,9))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],features:[i.Ab],decls:2,vars:4,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","backdropClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],["role","tooltip",1,"ant-popover-inner"],["class","ant-popover-title",4,"ngIf"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-title"]],template:function(e,t){1&e&&(i.Lc(0,h_,8,7,"ng-template",0,1,i.Mc),i.hc("backdropClick",(function(){return t.hide()}))("detach",(function(){return t.hide()}))("positionChange",(function(e){return t.onPositionChange(e)}))),2&e&&i.sc("cdkConnectedOverlayOrigin",t.origin)("cdkConnectedOverlayHasBackdrop",t._hasBackdrop)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayOpen",t._visible)},directives:[Ur.a,Nu.e,Vr.q,Vr.w,ac.a,Vr.t,Es.b],encapsulation:2,data:{animation:[xs.j]},changeDetection:0}),t}(XT),g_=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ur.i,Es.a,Nu.f,ac.b,KT]]}),e}();function b_(e,t){if(1&e&&(i.Xb(0),i.Ub(1,"i",8),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.sc("nzType",n.icon)}}function m_(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=t.$implicit,r=i.kc(4);i.Db(1),i.Pc(" ",n(r.nzPercent)," ")}}var v_=function(e){return{$implicit:e}};function y_(e,t){if(1&e&&i.Lc(0,m_,2,1,"ng-container",9),2&e){var n=i.kc(3);i.sc("nzStringTemplateOutlet",n.formatter)("nzStringTemplateOutletContext",i.vc(2,v_,n.nzPercent))}}function w_(e,t){if(1&e&&(i.Zb(0,"span",5),i.Lc(1,b_,2,1,"ng-container",6),i.Lc(2,y_,1,4,"ng-template",null,7,i.Mc),i.Yb()),2&e){var n=i.Ac(3),r=i.kc(2);i.Db(1),i.sc("ngIf",("exception"===r.status||"success"===r.status)&&!r.nzFormat)("ngIfElse",n)}}function O_(e,t){if(1&e&&i.Lc(0,w_,4,2,"span",4),2&e){var n=i.kc();i.sc("ngIf",n.nzShowInfo)}}function C_(e,t){if(1&e&&i.Ub(0,"div",17),2&e){var n=i.kc(4);i.Kc("width",n.nzSuccessPercent,"%")("border-radius","round"===n.nzStrokeLinecap?"100px":"0")("height",n.strokeWidth,"px")}}function S_(e,t){if(1&e&&(i.Zb(0,"div",13),i.Zb(1,"div",14),i.Ub(2,"div",15),i.Lc(3,C_,1,6,"div",16),i.Yb(),i.Yb()),2&e){var n=i.kc(3);i.Db(2),i.Kc("width",n.nzPercent,"%")("border-radius","round"===n.nzStrokeLinecap?"100px":"0")("background",n.isGradient?null:n.nzStrokeColor,i.Mb)("background-image",n.isGradient?n.lineGradient:null,i.Mb)("height",n.strokeWidth,"px"),i.Db(1),i.sc("ngIf",n.nzSuccessPercent||0===n.nzSuccessPercent)}}function z_(e,t){}function T_(e,t){if(1&e&&(i.Xb(0),i.Lc(1,S_,4,11,"div",11),i.Lc(2,z_,0,0,"ng-template",12),i.Wb()),2&e){var n=i.kc(2),r=i.Ac(1);i.Db(1),i.sc("ngIf",!n.isSteps),i.Db(1),i.sc("ngTemplateOutlet",r)}}function __(e,t){1&e&&i.Ub(0,"div",20),2&e&&i.sc("ngStyle",t.$implicit)}function k_(e,t){}function D_(e,t){if(1&e&&(i.Zb(0,"div",18),i.Lc(1,__,1,1,"div",19),i.Lc(2,k_,0,0,"ng-template",12),i.Yb()),2&e){var n=i.kc(2),r=i.Ac(1);i.Db(1),i.sc("ngForOf",n.steps),i.Db(1),i.sc("ngTemplateOutlet",r)}}function x_(e,t){if(1&e&&(i.Zb(0,"div"),i.Lc(1,T_,3,2,"ng-container",2),i.Lc(2,D_,3,2,"div",10),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",!n.isSteps),i.Db(1),i.sc("ngIf",n.isSteps)}}function E_(e,t){if(1&e&&(i.jc(),i.Ub(0,"stop")),2&e){var n=t.$implicit;i.Eb("offset",n.offset)("stop-color",n.color)}}function N_(e,t){if(1&e&&(i.jc(),i.Zb(0,"defs"),i.Zb(1,"linearGradient",24),i.Lc(2,E_,1,2,"stop",25),i.Yb(),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("id","gradient-"+n.gradientId),i.Db(1),i.sc("ngForOf",n.circleGradient)}}function j_(e,t){if(1&e&&(i.jc(),i.Ub(0,"path",26)),2&e){var n=t.$implicit,r=i.kc(2);i.sc("ngStyle",n.strokePathStyle),i.Eb("d",r.pathString)("stroke-linecap",r.nzStrokeLinecap)("stroke",n.stroke)("stroke-width",r.nzPercent?r.strokeWidth:0)}}function I_(e,t){1&e&&i.jc()}function A_(e,t){if(1&e&&(i.Zb(0,"div",14),i.jc(),i.Zb(1,"svg",21),i.Lc(2,N_,3,2,"defs",2),i.Ub(3,"path",22),i.Lc(4,j_,1,5,"path",23),i.Yb(),i.Lc(5,I_,0,0,"ng-template",12),i.Yb()),2&e){var n=i.kc(),r=i.Ac(1);i.Kc("width",n.nzWidth,"px")("height",n.nzWidth,"px")("font-size",.15*n.nzWidth+6,"px"),i.Jb("ant-progress-circle-gradient",n.isGradient),i.Db(2),i.sc("ngIf",n.isGradient),i.Db(1),i.sc("ngStyle",n.trailPathStyle),i.Eb("stroke-width",n.strokeWidth)("d",n.pathString),i.Db(1),i.sc("ngForOf",n.progressCirclePath)("ngForTrackBy",n.trackByFn),i.Db(1),i.sc("ngTemplateOutlet",r)}}var M_=function(e){var t=[];return Object.keys(e).forEach((function(n){var i=e[n],r=+n.replace("%","");isNaN(r)||t.push({key:r,value:i})})),t=t.sort((function(e,t){return e.key-t.key}))},L_=0,P_=new Map([["success","check"],["exception","close"]]),F_=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),R_=function(e){return e+"%"},V_=function(){function e(e){this.nzConfigService=e,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=L_++,this.progressCirclePath=[],this.trailPathStyle=null,this.trackByFn=function(e){return""+e},this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new kt.a}return Object.defineProperty(e.prototype,"formatter",{get:function(){return this.nzFormat||R_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.nzStatus||this.inferredStatus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCircleStyle",{get:function(){return"circle"===this.nzType||"dashboard"===this.nzType},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=e.nzSteps,n=e.nzGapPosition,i=e.nzStrokeLinecap,r=e.nzStrokeColor,o=e.nzGapDegree,a=e.nzType,s=e.nzStatus,c=e.nzPercent,u=e.nzSuccessPercent;s&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(c||u)&&(parseInt(this.nzPercent.toString(),10)>=100?(Object(es.p)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(s||c||u)&&this.updateIcon(),r&&this.setStrokeColor(),(n||i||o||a||c||r)&&this.getCirclePaths(),t&&(this.isSteps=Object(es.p)(t.currentValue),this.getSteps())},e.prototype.ngOnInit=function(){var e=this;this.nzConfigService.getConfigChangeEventForComponent("progress").pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.updateIcon(),e.setStrokeColor(),e.getCirclePaths()}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.updateIcon=function(){var e=P_.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""},e.prototype.getSteps=function(){for(var e=Math.floor(this.nzSteps*(this.nzPercent/100)),t="small"===this.nzSize?2:14,n=0;n0&&(this.nzValue-=this.nzAllowHalf?.5:1),t!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(e),this.updateStarStyle(),this.cdr.markForCheck())},e.prototype.updateStarArray=function(){this.starArray=Array(this.nzCount).fill(0).map((function(e,t){return t})),this.updateStarStyle()},e.prototype.updateStarStyle=function(){var e=this;this.starStyleArray=this.starArray.map((function(t){var n,i="ant-rate-star",r=t+1;return(n={})[i+"-full"]=re.hoverValue,n[i+"-focused"]=e.hasHalf&&r===e.hoverValue&&e.isFocused,n}))},e.prototype.writeValue=function(e){this.nzValue=e||0,this.updateStarArray(),this.cdr.markForCheck()},e.prototype.setDisabledState=function(e){this.nzDisabled=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},Object(zt.b)([Object(Qa.b)("rate"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAllowClear",void 0),Object(zt.b)([Object(Qa.b)("rate"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAllowHalf",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAutoFocus",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Number)],e.prototype,"nzCount",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.E),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-rate"]],viewQuery:function(e,t){var n;1&e&&i.Sc(Y_,!0),2&e&&i.zc(n=i.ic())&&(t.ulElement=n.first)},inputs:{nzAllowClear:"nzAllowClear",nzAllowHalf:"nzAllowHalf",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzCount:"nzCount",nzTooltips:"nzTooltips",nzCharacter:"nzCharacter"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0}]),i.Bb],decls:3,vars:5,consts:[[1,"ant-rate",3,"ngClass","tabindex","blur","focus","keydown","mouseleave"],["ulElement",""],["class","ant-rate-star","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"allowHalf","character","itemHover","itemClick"]],template:function(e,t){1&e&&(i.Zb(0,"ul",0,1),i.hc("blur",(function(e){return t.onBlur(e)}))("focus",(function(e){return t.onFocus(e)}))("keydown",(function(e){return t.onKeyDown(e),e.preventDefault()}))("mouseleave",(function(e){return t.onRateLeave(),e.stopPropagation()})),i.Lc(2,U_,2,4,"li",2),i.Yb()),2&e&&(i.Jb("ant-rate-disabled",t.nzDisabled),i.sc("ngClass",t.classMap)("tabindex",t.nzDisabled?-1:1),i.Db(2),i.sc("ngForOf",t.starArray))},directives:function(){return[Vr.q,Vr.s,QT,G_]},encapsulation:2,changeDetection:0}),e}(),G_=function(){function e(){this.allowHalf=!1,this.itemHover=new i.n,this.itemClick=new i.n}return e.prototype.hoverRate=function(e){this.itemHover.next(e&&this.allowHalf)},e.prototype.clickRate=function(e){this.itemClick.next(e&&this.allowHalf)},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"allowHalf",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-rate-item",""]],inputs:{allowHalf:"allowHalf",character:"character"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:H_,decls:14,vars:2,consts:[[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet"],[1,"ant-rate-star-first",3,"mouseover","click"],["defaultCharacter",""],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.hc("mouseover",(function(e){return t.hoverRate(!1),e.stopPropagation()}))("click",(function(){return t.clickRate(!1)})),i.Nc(2,"\n "),i.Lc(3,W_,0,0,"ng-template",1),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"div",2),i.hc("mouseover",(function(e){return t.hoverRate(!0),e.stopPropagation()}))("click",(function(){return t.clickRate(!0)})),i.Nc(7,"\n "),i.Lc(8,q_,0,0,"ng-template",1),i.Nc(9,"\n "),i.Yb(),i.Nc(10,"\n\n "),i.Lc(11,Z_,3,0,"ng-template",null,3,i.Mc),i.Nc(13,"\n ")),2&e){var n=i.Ac(12);i.Db(3),i.sc("ngTemplateOutlet",t.character||n),i.Db(5),i.sc("ngTemplateOutlet",t.character||n)}},directives:[Vr.A,Ns.a],encapsulation:2,changeDetection:0}),e}(),Q_=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ns.b,KT]]}),e}();function X_(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Ub(2,"i",6),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit;i.Db(2),i.sc("nzType",n)}}function K_(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,X_,4,1,"ng-container",5),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc(2);i.Db(2),i.sc("nzStringTemplateOutlet",n.icon)}}function J_(e,t){1&e&&i.qc(0,1,["*ngIf","!icon"])}function ek(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,K_,4,1,"ng-container",2),i.Nc(3,"\n "),i.Lc(4,J_,1,0,void 0,2),i.Nc(5,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("ngIf",n.icon),i.Db(2),i.sc("ngIf",!n.icon)}}function tk(e,t){if(1&e&&(i.Zb(0,"div",8),i.Nc(1),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.Pc("\n ",n.nzTitle,"\n ")}}function nk(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,tk,2,1,"div",7),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzTitle)}}function ik(e,t){1&e&&i.qc(0,2,["*ngIf","!nzTitle"])}function rk(e,t){if(1&e&&(i.Zb(0,"div",10),i.Nc(1),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.Pc("\n ",n.nzSubTitle,"\n ")}}function ok(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,rk,2,1,"div",9),i.Nc(3,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzSubTitle)}}function ak(e,t){1&e&&i.qc(0,3,["*ngIf","!nzSubTitle"])}function sk(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Pc("\n ",n.nzExtra,"\n ")}}function ck(e,t){if(1&e&&(i.Zb(0,"div",11),i.Nc(1,"\n "),i.Lc(2,sk,2,1,"ng-container",5),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzExtra)}}function uk(e,t){1&e&&i.qc(0,4,["*ngIf","!nzExtra"])}function lk(e,t){1&e&&i.Ub(0,"nz-result-not-found")}function pk(e,t){1&e&&i.Ub(0,"nz-result-server-error")}function hk(e,t){1&e&&i.Ub(0,"nz-result-unauthorized")}function dk(e,t){if(1&e&&(i.Nc(0,"\n "),i.Xb(1,12),i.Nc(2,"\n "),i.Lc(3,lk,1,0,"nz-result-not-found",13),i.Nc(4,"\n "),i.Lc(5,pk,1,0,"nz-result-server-error",13),i.Nc(6,"\n "),i.Lc(7,hk,1,0,"nz-result-unauthorized",13),i.Nc(8,"\n "),i.Wb(),i.Nc(9,"\n ")),2&e){var n=i.kc();i.Db(1),i.sc("ngSwitch",n.nzStatus),i.Db(2),i.sc("ngSwitchCase","404"),i.Db(2),i.sc("ngSwitchCase","500"),i.Db(2),i.sc("ngSwitchCase","403")}}var fk=[[["nz-result-content"],["","nz-result-content",""]],[["","nz-result-icon",""]],[["div","nz-result-title",""]],[["div","nz-result-subtitle",""]],[["div","nz-result-extra",""]]],gk=["nz-result-content, [nz-result-content]","[nz-result-icon]","div[nz-result-title]","div[nz-result-subtitle]","div[nz-result-extra]"],bk=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["div","nz-result-title",""]],hostAttrs:[1,"ant-result-title"],exportAs:["nzResultTitle"]}),e}(),mk=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["div","nz-result-subtitle",""]],hostAttrs:[1,"ant-result-subtitle"],exportAs:["nzResultSubtitle"]}),e}(),vk=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["i","nz-result-icon",""],["div","nz-result-icon",""]],exportAs:["nzResultIcon"]}),e}(),yk=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["div","nz-result-content",""]],hostAttrs:[1,"ant-result-content"],exportAs:["nzResultContent"]}),e}(),wk=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["div","nz-result-extra",""]],hostAttrs:[1,"ant-result-extra"],exportAs:["nzResultExtra"]}),e}(),Ok={success:"check-circle",error:"close-circle",info:"exclamation-circle",warning:"warning"},Ck=["404","500","403"],Sk=function(){function e(){this.nzStatus="info",this.isException=!1}return e.prototype.ngOnChanges=function(){this.setStatusIcon()},e.prototype.setStatusIcon=function(){var e=this.nzIcon;this.isException=-1!==Ck.indexOf(this.nzStatus),this.icon=e?"string"==typeof e&&Ok[e]||e:this.isException?void 0:Ok[this.nzStatus]},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-result"]],hostVars:10,hostBindings:function(e,t){2&e&&i.Jb("ant-result",!0)("ant-result-success","success"===t.nzStatus)("ant-result-error","error"===t.nzStatus)("ant-result-info","info"===t.nzStatus)("ant-result-warning","warning"===t.nzStatus)},inputs:{nzStatus:"nzStatus",nzIcon:"nzIcon",nzTitle:"nzTitle",nzSubTitle:"nzSubTitle",nzExtra:"nzExtra"},exportAs:["nzResult"],features:[i.Bb],ngContentSelectors:gk,decls:23,vars:8,consts:[[1,"ant-result-icon"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","ant-result-extra",4,"ngIf"],["exceptionTpl",""],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","fill",3,"nzType"],["class","ant-result-title",4,"nzStringTemplateOutlet"],[1,"ant-result-title"],["class","ant-result-subtitle",4,"nzStringTemplateOutlet"],[1,"ant-result-subtitle"],[1,"ant-result-extra"],[3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(e,t){if(1&e&&(i.rc(fk),i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Lc(3,ek,6,2,"ng-container",1),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Lc(6,nk,4,1,"ng-container",2),i.Nc(7,"\n "),i.Lc(8,ik,1,0,void 0,2),i.Nc(9,"\n "),i.Lc(10,ok,4,1,"ng-container",2),i.Nc(11,"\n "),i.Lc(12,ak,1,0,void 0,2),i.Nc(13,"\n "),i.qc(14),i.Nc(15,"\n "),i.Lc(16,ck,4,1,"div",3),i.Nc(17,"\n "),i.Lc(18,uk,1,0,void 0,2),i.Nc(19,"\n\n "),i.Lc(20,dk,10,4,"ng-template",null,4,i.Mc),i.Nc(22,"\n ")),2&e){var n=i.Ac(21);i.Db(3),i.sc("ngIf",!t.isException)("ngIfElse",n),i.Db(3),i.sc("ngIf",t.nzTitle),i.Db(2),i.sc("ngIf",!t.nzTitle),i.Db(2),i.sc("ngIf",t.nzSubTitle),i.Db(2),i.sc("ngIf",!t.nzSubTitle),i.Db(4),i.sc("ngIf",t.nzExtra),i.Db(2),i.sc("ngIf",!t.nzExtra)}},directives:function(){return[Vr.t,Es.b,Ns.a,Vr.x,Vr.y,zk,Tk,_k]},encapsulation:2,changeDetection:0}),e}(),zk=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-result-not-found"]],exportAs:["nzResultNotFound"],decls:129,vars:0,consts:[["width","252","height","294"],["d","M0 .387h251.772v251.772H0z"],["fill","none","fillRule","evenodd"],["transform","translate(0 .012)"],["fill","#fff"],["d","M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321","fill","#E4EBF7","mask","url(#b)"],["d","M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66","fill","#FFF"],["d","M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788","stroke","#FFF","strokeWidth","2"],["d","M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175","fill","#FFF"],["d","M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932","fill","#FFF"],["d","M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011","par","","stroke","#FFF","strokeWidth","2"],["d","M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382","fill","#FFF"],["d","M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z","stroke","#FFF","strokeWidth","2"],["stroke","#FFF","strokeWidth","2","d","M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"],["d","M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742","fill","#FFF"],["d","M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48","fill","#1890FF"],["d","M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894","fill","#FFF"],["d","M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88","fill","#FFB594"],["d","M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624","fill","#FFC6A0"],["d","M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682","fill","#FFF"],["d","M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573","fill","#CBD1D1"],["d","M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z","fill","#2B0849"],["d","M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558","fill","#A4AABA"],["d","M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z","fill","#CBD1D1"],["d","M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062","fill","#2B0849"],["d","M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15","fill","#A4AABA"],["d","M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165","fill","#7BB2F9"],["d","M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M107.275 222.1s2.773-1.11 6.102-3.884","stroke","#648BD8","strokeLinecap","round","strokeLinejoin","round"],["d","M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038","fill","#192064"],["d","M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81","fill","#FFF"],["d","M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642","fill","#192064"],["d","M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268","fill","#FFC6A0"],["d","M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456","fill","#FFC6A0"],["d","M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z","fill","#520038"],["d","M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254","fill","#552950"],["stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round","d","M110.13 74.84l-.896 1.61-.298 4.357h-2.228"],["d","M110.846 74.481s1.79-.716 2.506.537","stroke","#5C2552","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67","stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M103.287 72.93s1.83 1.113 4.137.954","stroke","#5C2552","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639","stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"],["d","M129.405 122.865s-5.272 7.403-9.422 10.768","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M119.306 107.329s.452 4.366-2.127 32.062","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"],["d","M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01","fill","#F2D7AD"],["d","M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92","fill","#F4D19D"],["d","M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z","fill","#F2D7AD"],["fill","#CC9B6E","d","M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"],["d","M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83","fill","#F4D19D"],["fill","#CC9B6E","d","M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"],["fill","#CC9B6E","d","M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"],["d","M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238","fill","#FFC6A0"],["d","M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647","fill","#5BA02E"],["d","M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647","fill","#92C110"],["d","M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187","fill","#F2D7AD"],["d","M88.979 89.48s7.776 5.384 16.6 2.842","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.jc(),i.Zb(1,"svg",0),i.Nc(2,"\n "),i.Zb(3,"defs"),i.Nc(4,"\n "),i.Ub(5,"path",1),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"g",2),i.Nc(9,"\n "),i.Zb(10,"g",3),i.Nc(11,"\n "),i.Ub(12,"mask",4),i.Nc(13,"\n "),i.Ub(14,"path",5),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.Ub(17,"path",6),i.Nc(18,"\n "),i.Ub(19,"path",7),i.Nc(20,"\n "),i.Ub(21,"path",8),i.Nc(22,"\n "),i.Ub(23,"path",9),i.Nc(24,"\n "),i.Ub(25,"path",10),i.Nc(26,"\n "),i.Ub(27,"path",11),i.Nc(28,"\n "),i.Ub(29,"path",12),i.Nc(30,"\n "),i.Ub(31,"path",13),i.Nc(32,"\n "),i.Ub(33,"path",14),i.Nc(34,"\n "),i.Ub(35,"path",15),i.Nc(36,"\n "),i.Ub(37,"path",16),i.Nc(38,"\n "),i.Ub(39,"path",17),i.Nc(40,"\n "),i.Ub(41,"path",18),i.Nc(42,"\n "),i.Ub(43,"path",19),i.Nc(44,"\n "),i.Ub(45,"path",20),i.Nc(46,"\n "),i.Ub(47,"path",21),i.Nc(48,"\n "),i.Ub(49,"path",22),i.Nc(50,"\n "),i.Ub(51,"path",23),i.Nc(52,"\n "),i.Ub(53,"path",24),i.Nc(54,"\n "),i.Ub(55,"path",25),i.Nc(56,"\n "),i.Ub(57,"path",26),i.Nc(58,"\n "),i.Ub(59,"path",27),i.Nc(60,"\n "),i.Ub(61,"path",28),i.Nc(62,"\n "),i.Ub(63,"path",29),i.Nc(64,"\n "),i.Ub(65,"path",30),i.Nc(66,"\n "),i.Ub(67,"path",31),i.Nc(68,"\n "),i.Ub(69,"path",32),i.Nc(70,"\n "),i.Ub(71,"path",33),i.Nc(72,"\n "),i.Ub(73,"path",34),i.Nc(74,"\n "),i.Ub(75,"path",35),i.Nc(76,"\n "),i.Ub(77,"path",36),i.Nc(78,"\n "),i.Ub(79,"path",37),i.Nc(80,"\n "),i.Ub(81,"path",38),i.Nc(82,"\n "),i.Ub(83,"path",39),i.Nc(84,"\n "),i.Ub(85,"path",40),i.Nc(86,"\n "),i.Ub(87,"path",41),i.Nc(88,"\n "),i.Ub(89,"path",42),i.Nc(90,"\n "),i.Ub(91,"path",43),i.Nc(92,"\n "),i.Ub(93,"path",44),i.Nc(94,"\n "),i.Ub(95,"path",45),i.Nc(96,"\n "),i.Ub(97,"path",46),i.Nc(98,"\n "),i.Ub(99,"path",47),i.Nc(100,"\n "),i.Ub(101,"path",48),i.Nc(102,"\n "),i.Ub(103,"path",49),i.Nc(104,"\n "),i.Ub(105,"path",50),i.Nc(106,"\n "),i.Ub(107,"path",51),i.Nc(108,"\n "),i.Ub(109,"path",52),i.Nc(110,"\n "),i.Ub(111,"path",53),i.Nc(112,"\n "),i.Ub(113,"path",54),i.Nc(114,"\n "),i.Ub(115,"path",55),i.Nc(116,"\n "),i.Ub(117,"path",56),i.Nc(118,"\n "),i.Ub(119,"path",57),i.Nc(120,"\n "),i.Ub(121,"path",58),i.Nc(122,"\n "),i.Ub(123,"path",59),i.Nc(124,"\n "),i.Ub(125,"path",60),i.Nc(126,"\n "),i.Yb(),i.Nc(127,"\n "),i.Yb(),i.Nc(128,"\n "))},encapsulation:2,changeDetection:0}),e}(),Tk=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-result-server-error"]],exportAs:["nzResultServerError"],decls:143,vars:0,consts:[["width","254","height","294"],["d","M0 .335h253.49v253.49H0z"],["d","M0 293.665h253.49V.401H0z"],["fill","none","fillRule","evenodd"],["transform","translate(0 .067)"],["fill","#fff"],["d","M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134","fill","#E4EBF7","mask","url(#b)"],["d","M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671","fill","#FFF"],["d","M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861","stroke","#FFF","strokeWidth","2"],["d","M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238","fill","#FFF"],["d","M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775","fill","#FFF"],["d","M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68","fill","#FF603B"],["d","M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733","fill","#FFF"],["d","M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487","fill","#FFB594"],["d","M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235","fill","#FFF"],["d","M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246","fill","#FFB594"],["d","M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508","fill","#FFC6A0"],["d","M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z","fill","#520038"],["d","M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26","fill","#552950"],["stroke","#DB836E","strokeWidth","1.063","strokeLinecap","round","strokeLinejoin","round","d","M99.206 73.644l-.9 1.62-.3 4.38h-2.24"],["d","M99.926 73.284s1.8-.72 2.52.54","stroke","#5C2552","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68","stroke","#DB836E","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M92.326 71.724s1.84 1.12 4.16.96","stroke","#5C2552","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954","stroke","#DB836E","strokeWidth","1.063","strokeLinecap","round","strokeLinejoin","round"],["d","M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044","stroke","#E4EBF7","strokeWidth","1.136","strokeLinecap","round","strokeLinejoin","round"],["d","M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583","fill","#FFF"],["d","M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75","fill","#FFC6A0"],["d","M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713","fill","#FFC6A0"],["d","M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16","fill","#FFC6A0"],["d","M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575","fill","#FFF"],["d","M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47","fill","#CBD1D1"],["d","M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z","fill","#2B0849"],["d","M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671","fill","#A4AABA"],["d","M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z","fill","#CBD1D1"],["d","M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162","fill","#2B0849"],["d","M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156","fill","#A4AABA"],["d","M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69","fill","#7BB2F9"],["d","M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M96.973 219.373s2.882-1.153 6.34-4.034","stroke","#648BD8","strokeWidth","1.032","strokeLinecap","round","strokeLinejoin","round"],["d","M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62","fill","#192064"],["d","M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843","fill","#FFF"],["d","M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668","fill","#192064"],["d","M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69","fill","#FFC6A0"],["d","M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593","stroke","#DB836E","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594","fill","#FFC6A0"],["d","M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M109.278 112.533s3.38-3.613 7.575-4.662","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M107.375 123.006s9.697-2.745 11.445-.88","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955","stroke","#BFCDDD","strokeWidth","2","strokeLinecap","round","strokeLinejoin","round"],["d","M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01","fill","#A3B4C6"],["d","M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813","fill","#A3B4C6"],["fill","#A3B4C6","mask","url(#d)","d","M154.098 190.096h70.513v-84.617h-70.513z"],["d","M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208","fill","#BFCDDD","mask","url(#d)"],["d","M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802","fill","#FFF","mask","url(#d)"],["d","M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209","fill","#BFCDDD","mask","url(#d)"],["d","M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751","stroke","#7C90A5","strokeWidth","1.124","strokeLinecap","round","strokeLinejoin","round","mask","url(#d)"],["d","M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802","fill","#FFF","mask","url(#d)"],["d","M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407","fill","#BFCDDD","mask","url(#d)"],["d","M177.259 207.217v11.52M201.05 207.217v11.52","stroke","#A3B4C6","strokeWidth","1.124","strokeLinecap","round","strokeLinejoin","round","mask","url(#d)"],["d","M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422","fill","#5BA02E","mask","url(#d)"],["d","M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423","fill","#92C110","mask","url(#d)"],["d","M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209","fill","#F2D7AD","mask","url(#d)"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.jc(),i.Zb(1,"svg",0),i.Nc(2,"\n "),i.Zb(3,"defs"),i.Nc(4,"\n "),i.Ub(5,"path",1),i.Nc(6,"\n "),i.Ub(7,"path",2),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Zb(10,"g",3),i.Nc(11,"\n "),i.Zb(12,"g",4),i.Nc(13,"\n "),i.Ub(14,"mask",5),i.Nc(15,"\n "),i.Ub(16,"path",6),i.Nc(17,"\n "),i.Yb(),i.Nc(18,"\n "),i.Ub(19,"path",7),i.Nc(20,"\n "),i.Ub(21,"path",8),i.Nc(22,"\n "),i.Ub(23,"path",9),i.Nc(24,"\n "),i.Ub(25,"path",10),i.Nc(26,"\n "),i.Ub(27,"path",11),i.Nc(28,"\n "),i.Ub(29,"path",12),i.Nc(30,"\n "),i.Ub(31,"path",13),i.Nc(32,"\n "),i.Ub(33,"path",14),i.Nc(34,"\n "),i.Ub(35,"path",15),i.Nc(36,"\n "),i.Ub(37,"path",16),i.Nc(38,"\n "),i.Ub(39,"path",17),i.Nc(40,"\n "),i.Ub(41,"path",18),i.Nc(42,"\n "),i.Ub(43,"path",19),i.Nc(44,"\n "),i.Ub(45,"path",20),i.Nc(46,"\n "),i.Ub(47,"path",21),i.Nc(48,"\n "),i.Ub(49,"path",22),i.Nc(50,"\n "),i.Ub(51,"path",23),i.Nc(52,"\n "),i.Ub(53,"path",24),i.Nc(54,"\n "),i.Ub(55,"path",25),i.Nc(56,"\n "),i.Ub(57,"path",26),i.Nc(58,"\n "),i.Ub(59,"path",27),i.Nc(60,"\n "),i.Ub(61,"path",28),i.Nc(62,"\n "),i.Ub(63,"path",29),i.Nc(64,"\n "),i.Ub(65,"path",30),i.Nc(66,"\n "),i.Ub(67,"path",31),i.Nc(68,"\n "),i.Ub(69,"path",32),i.Nc(70,"\n "),i.Ub(71,"path",33),i.Nc(72,"\n "),i.Ub(73,"path",34),i.Nc(74,"\n "),i.Ub(75,"path",35),i.Nc(76,"\n "),i.Ub(77,"path",36),i.Nc(78,"\n "),i.Ub(79,"path",37),i.Nc(80,"\n "),i.Ub(81,"path",38),i.Nc(82,"\n "),i.Ub(83,"path",39),i.Nc(84,"\n "),i.Ub(85,"path",40),i.Nc(86,"\n "),i.Ub(87,"path",41),i.Nc(88,"\n "),i.Ub(89,"path",42),i.Nc(90,"\n "),i.Ub(91,"path",43),i.Nc(92,"\n "),i.Ub(93,"path",44),i.Nc(94,"\n "),i.Ub(95,"path",45),i.Nc(96,"\n "),i.Ub(97,"path",46),i.Nc(98,"\n "),i.Ub(99,"path",47),i.Nc(100,"\n "),i.Ub(101,"path",48),i.Nc(102,"\n "),i.Ub(103,"path",49),i.Nc(104,"\n "),i.Ub(105,"path",50),i.Nc(106,"\n "),i.Ub(107,"path",51),i.Nc(108,"\n "),i.Ub(109,"path",52),i.Nc(110,"\n "),i.Ub(111,"path",53),i.Nc(112,"\n "),i.Ub(113,"path",54),i.Nc(114,"\n "),i.Ub(115,"path",55),i.Nc(116,"\n "),i.Ub(117,"mask",5),i.Nc(118,"\n "),i.Ub(119,"path",56),i.Nc(120,"\n "),i.Ub(121,"path",57),i.Nc(122,"\n "),i.Ub(123,"path",58),i.Nc(124,"\n "),i.Ub(125,"path",59),i.Nc(126,"\n "),i.Ub(127,"path",60),i.Nc(128,"\n "),i.Ub(129,"path",61),i.Nc(130,"\n "),i.Ub(131,"path",62),i.Nc(132,"\n "),i.Ub(133,"path",63),i.Nc(134,"\n "),i.Ub(135,"path",64),i.Nc(136,"\n "),i.Ub(137,"path",65),i.Nc(138,"\n "),i.Ub(139,"path",66),i.Nc(140,"\n "),i.Yb(),i.Nc(141,"\n "),i.Yb(),i.Nc(142,"\n "))},encapsulation:2,changeDetection:0}),e}(),_k=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-result-unauthorized"]],exportAs:["nzResultUnauthorized"],decls:115,vars:0,consts:[["width","251","height","294"],["fill","none","fillRule","evenodd"],["d","M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023","fill","#E4EBF7"],["d","M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65","fill","#FFF"],["d","M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73","stroke","#FFF","strokeWidth","2"],["d","M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126","fill","#FFF"],["d","M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873","fill","#FFF"],["d","M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36","stroke","#FFF","strokeWidth","2"],["d","M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375","fill","#FFF"],["d","M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z","stroke","#FFF","strokeWidth","2"],["stroke","#FFF","strokeWidth","2","d","M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"],["d","M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321","fill","#A26EF4"],["d","M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734","fill","#FFF"],["d","M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717","fill","#FFF"],["d","M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61","fill","#5BA02E"],["d","M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611","fill","#92C110"],["d","M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17","fill","#F2D7AD"],["d","M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085","fill","#FFF"],["d","M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233","fill","#FFC6A0"],["d","M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367","fill","#FFB594"],["d","M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95","fill","#FFC6A0"],["d","M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929","fill","#FFF"],["d","M78.18 94.656s.911 7.41-4.914 13.078","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437","stroke","#E4EBF7","strokeWidth",".932","strokeLinecap","round","strokeLinejoin","round"],["d","M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z","fill","#FFC6A0"],["d","M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91","fill","#FFB594"],["d","M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103","fill","#5C2552"],["d","M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145","fill","#FFC6A0"],["stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round","d","M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"],["d","M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32","fill","#552950"],["d","M91.132 86.786s5.269 4.957 12.679 2.327","stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round"],["d","M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25","fill","#DB836E"],["d","M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073","stroke","#5C2552","strokeWidth","1.526","strokeLinecap","round","strokeLinejoin","round"],["d","M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254","stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round"],["d","M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M66.508 86.763s-1.598 8.83-6.697 14.078","stroke","#E4EBF7","strokeWidth","1.114","strokeLinecap","round","strokeLinejoin","round"],["d","M128.31 87.934s3.013 4.121 4.06 11.785","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M64.09 84.816s-6.03 9.912-13.607 9.903","stroke","#DB836E","strokeWidth",".795","strokeLinecap","round","strokeLinejoin","round"],["d","M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73","fill","#FFC6A0"],["d","M130.532 85.488s4.588 5.757 11.619 6.214","stroke","#DB836E","strokeWidth",".75","strokeLinecap","round","strokeLinejoin","round"],["d","M121.708 105.73s-.393 8.564-1.34 13.612","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M115.784 161.512s-3.57-1.488-2.678-7.14","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68","fill","#CBD1D1"],["d","M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z","fill","#2B0849"],["d","M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62","fill","#A4AABA"],["d","M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z","fill","#CBD1D1"],["d","M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078","fill","#2B0849"],["d","M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15","fill","#A4AABA"],["d","M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954","fill","#7BB2F9"],["d","M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M108.459 220.905s2.759-1.104 6.07-3.863","stroke","#648BD8","strokeLinecap","round","strokeLinejoin","round"],["d","M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017","fill","#192064"],["d","M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806","fill","#FFF"],["d","M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64","fill","#192064"],["d","M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.jc(),i.Zb(1,"svg",0),i.Nc(2,"\n "),i.Zb(3,"g",1),i.Nc(4,"\n "),i.Ub(5,"path",2),i.Nc(6,"\n "),i.Ub(7,"path",3),i.Nc(8,"\n "),i.Ub(9,"path",4),i.Nc(10,"\n "),i.Ub(11,"path",5),i.Nc(12,"\n "),i.Ub(13,"path",6),i.Nc(14,"\n "),i.Ub(15,"path",7),i.Nc(16,"\n "),i.Ub(17,"path",8),i.Nc(18,"\n "),i.Ub(19,"path",9),i.Nc(20,"\n "),i.Ub(21,"path",10),i.Nc(22,"\n "),i.Ub(23,"path",11),i.Nc(24,"\n "),i.Ub(25,"path",12),i.Nc(26,"\n "),i.Ub(27,"path",13),i.Nc(28,"\n "),i.Ub(29,"path",14),i.Nc(30,"\n "),i.Ub(31,"path",15),i.Nc(32,"\n "),i.Ub(33,"path",16),i.Nc(34,"\n "),i.Ub(35,"path",17),i.Nc(36,"\n "),i.Ub(37,"path",18),i.Nc(38,"\n "),i.Ub(39,"path",19),i.Nc(40,"\n "),i.Ub(41,"path",20),i.Nc(42,"\n "),i.Ub(43,"path",21),i.Nc(44,"\n "),i.Ub(45,"path",22),i.Nc(46,"\n "),i.Ub(47,"path",23),i.Nc(48,"\n "),i.Ub(49,"path",24),i.Nc(50,"\n "),i.Ub(51,"path",25),i.Nc(52,"\n "),i.Ub(53,"path",26),i.Nc(54,"\n "),i.Ub(55,"path",27),i.Nc(56,"\n "),i.Ub(57,"path",28),i.Nc(58,"\n "),i.Ub(59,"path",29),i.Nc(60,"\n "),i.Ub(61,"path",30),i.Nc(62,"\n "),i.Ub(63,"path",31),i.Nc(64,"\n "),i.Ub(65,"path",32),i.Nc(66,"\n "),i.Ub(67,"path",33),i.Nc(68,"\n "),i.Ub(69,"path",34),i.Nc(70,"\n "),i.Ub(71,"path",35),i.Nc(72,"\n "),i.Ub(73,"path",36),i.Nc(74,"\n "),i.Ub(75,"path",37),i.Nc(76,"\n "),i.Ub(77,"path",38),i.Nc(78,"\n "),i.Ub(79,"path",39),i.Nc(80,"\n "),i.Ub(81,"path",40),i.Nc(82,"\n "),i.Ub(83,"path",41),i.Nc(84,"\n "),i.Ub(85,"path",42),i.Nc(86,"\n "),i.Ub(87,"path",43),i.Nc(88,"\n "),i.Ub(89,"path",44),i.Nc(90,"\n "),i.Ub(91,"path",45),i.Nc(92,"\n "),i.Ub(93,"path",46),i.Nc(94,"\n "),i.Ub(95,"path",47),i.Nc(96,"\n "),i.Ub(97,"path",48),i.Nc(98,"\n "),i.Ub(99,"path",49),i.Nc(100,"\n "),i.Ub(101,"path",50),i.Nc(102,"\n "),i.Ub(103,"path",51),i.Nc(104,"\n "),i.Ub(105,"path",52),i.Nc(106,"\n "),i.Ub(107,"path",53),i.Nc(108,"\n "),i.Ub(109,"path",54),i.Nc(110,"\n "),i.Ub(111,"path",55),i.Nc(112,"\n "),i.Yb(),i.Nc(113,"\n "),i.Yb(),i.Nc(114,"\n "))},encapsulation:2,changeDetection:0}),e}(),kk=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Es.a,Ns.b]]}),e}();function Dk(e,t){if(1&e&&(i.Zb(0,"div",5),i.Nc(1,"\n "),i.Ub(2,"nz-skeleton-element",6),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc(2);i.Db(2),i.sc("nzSize",n.avatar.size)("nzShape",n.avatar.shape)}}function xk(e,t){if(1&e&&i.Ub(0,"h3",7),2&e){var n=i.kc(2);i.Kc("width",n.toCSSUnit(n.title.width))}}function Ek(e,t){if(1&e&&i.Ub(0,"li"),2&e){var n=t.index,r=i.kc(3);i.Kc("width",r.toCSSUnit(r.widthList[n]))}}function Nk(e,t){if(1&e&&(i.Zb(0,"ul",8),i.Nc(1,"\n "),i.Lc(2,Ek,1,2,"li",9),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc(2);i.Db(2),i.sc("ngForOf",n.rowsList)}}function jk(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,Dk,4,2,"div",1),i.Nc(3,"\n "),i.Zb(4,"div",2),i.Nc(5,"\n "),i.Lc(6,xk,1,2,"h3",3),i.Nc(7,"\n "),i.Lc(8,Nk,4,1,"ul",4),i.Nc(9,"\n "),i.Yb(),i.Nc(10,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("ngIf",!!n.nzAvatar),i.Db(4),i.sc("ngIf",!!n.nzTitle),i.Db(2),i.sc("ngIf",!!n.nzParagraph)}}function Ik(e,t){1&e&&(i.Xb(0),i.Nc(1,"\n "),i.qc(2),i.Nc(3,"\n "),i.Wb())}var Ak=["*"],Mk=["nzType","button"],Lk=["nzType","avatar"],Pk=["nzType","input"],Fk=function(){function e(e,t,n){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],t.addClass(n.nativeElement,"ant-skeleton")}return e.prototype.toCSSUnit=function(e){return void 0===e&&(e=""),Object(es.D)(e)},e.prototype.getTitleProps=function(){var e=!!this.nzAvatar,t=!!this.nzParagraph,n="";return!e&&t?n="38%":e&&t&&(n="50%"),Object(zt.a)({width:n},this.getProps(this.nzTitle))},e.prototype.getAvatarProps=function(){var e=this.nzTitle&&!this.nzParagraph?"square":"circle";return Object(zt.a)({shape:e,size:"large"},this.getProps(this.nzAvatar))},e.prototype.getParagraphProps=function(){var e=!!this.nzAvatar,t=!!this.nzTitle,n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,Object(zt.a)(Object(zt.a)({},n),this.getProps(this.nzParagraph))},e.prototype.getProps=function(e){return e&&"object"==typeof e?e:{}},e.prototype.getWidthList=function(){var e=this.paragraph,t=e.width,n=e.rows,i=[];return t&&Array.isArray(t)?i=t:t&&!Array.isArray(t)&&((i=[])[n-1]=t),i},e.prototype.updateProps=function(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=Object(zt.g)(Array(this.paragraph.rows)),this.widthList=this.getWidthList(),this.cdr.markForCheck()},e.prototype.ngOnInit=function(){this.updateProps()},e.prototype.ngOnChanges=function(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.E),i.Tb(i.l))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-skeleton"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Jb("ant-skeleton-with-avatar",!!t.nzAvatar)("ant-skeleton-active",t.nzActive)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[i.Bb],ngContentSelectors:Ak,decls:5,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Lc(1,jk,11,3,"ng-container",0),i.Nc(2,"\n "),i.Lc(3,Ik,4,0,"ng-container",0),i.Nc(4,"\n ")),2&e&&(i.Db(1),i.sc("ngIf",t.nzLoading),i.Db(2),i.sc("ngIf",!t.nzLoading))},directives:function(){return[Vr.t,Rk,Bk,Vr.s]},encapsulation:2,changeDetection:0}),e}(),Rk=function(){function e(){this.nzActive=!1}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-skeleton-element"]],hostVars:6,hostBindings:function(e,t){2&e&&i.Jb("ant-skeleton",!0)("ant-skeleton-element",!0)("ant-skeleton-active",t.nzActive)},inputs:{nzActive:"nzActive",nzType:"nzType"}}),e}(),Vk=function(){function e(){this.nzShape="default",this.nzSize="default"}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-skeleton-element","nzType","button"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},attrs:Mk,decls:4,vars:10,template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span"),i.Nc(2,"\n "),i.Yb(),i.Nc(3,"\n ")),2&e&&(i.Db(1),i.Jb("ant-skeleton-button",!0)("ant-skeleton-button-round","round"===t.nzShape)("ant-skeleton-button-circle","circle"===t.nzShape)("ant-skeleton-button-lg","large"===t.nzSize)("ant-skeleton-button-sm","small"===t.nzSize))},encapsulation:2,changeDetection:0}),e}(),Bk=function(){function e(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}return e.prototype.ngOnChanges=function(e){if(e.nzSize&&"number"==typeof this.nzSize){var t=this.nzSize+"px";this.styleMap={width:t,height:t,"line-height":t}}else this.styleMap={}},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[i.Bb],attrs:Lk,decls:4,vars:11,consts:[[3,"ngStyle"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span",0),i.Nc(2,"\n "),i.Yb(),i.Nc(3,"\n ")),2&e&&(i.Db(1),i.Jb("ant-skeleton-avatar",!0)("ant-skeleton-avatar-square","square"===t.nzShape)("ant-skeleton-avatar-circle","circle"===t.nzShape)("ant-skeleton-avatar-lg","large"===t.nzSize)("ant-skeleton-avatar-sm","small"===t.nzSize),i.sc("ngStyle",t.styleMap))},directives:[Vr.w],encapsulation:2,changeDetection:0}),e}(),Yk=function(){function e(){this.nzSize="default"}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-skeleton-element","nzType","input"]],inputs:{nzSize:"nzSize"},attrs:Pk,decls:4,vars:6,template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span"),i.Nc(2,"\n "),i.Yb(),i.Nc(3,"\n ")),2&e&&(i.Db(1),i.Jb("ant-skeleton-input",!0)("ant-skeleton-input-lg","large"===t.nzSize)("ant-skeleton-input-sm","small"===t.nzSize))},encapsulation:2,changeDetection:0}),e}(),Uk=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c]]}),e}(),Hk=n("FYXD"),Wk=["handle"],qk=["slider"];function Zk(e,t){if(1&e&&i.Ub(0,"nz-slider-step",7),2&e){var n=i.kc();i.sc("vertical",n.nzVertical)("lowerBound",n.bounds.lower)("upperBound",n.bounds.upper)("marksArray",n.marksArray)("included",n.nzIncluded)}}function $k(e,t){if(1&e&&i.Ub(0,"nz-slider-handle",8),2&e){var n=t.$implicit,r=i.kc();i.sc("vertical",r.nzVertical)("offset",n.offset)("value",n.value)("active",n.active)("tooltipFormatter",r.nzTipFormatter)("tooltipVisible",r.nzTooltipVisible)("tooltipPlacement",r.nzTooltipPlacement)}}function Gk(e,t){if(1&e&&i.Ub(0,"nz-slider-marks",9),2&e){var n=i.kc();i.sc("vertical",n.nzVertical)("min",n.nzMin)("max",n.nzMax)("lowerBound",n.bounds.lower)("upperBound",n.bounds.upper)("marksArray",n.marksArray)("included",n.nzIncluded)}}function Qk(e,t){if(1&e&&i.Ub(0,"span",2),2&e){var n=t.$implicit;i.Jb("ant-slider-mark-active",n.active),i.sc("ngStyle",n.style)("innerHTML",n.label,i.Ec)}}function Xk(e,t){if(1&e&&i.Ub(0,"span",2),2&e){var n=t.$implicit;i.Jb("ant-slider-dot-active",n.active),i.sc("ngStyle",n.style)}}var Kk=function(){function e(){this.isDragging=!1}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),Jk=function(){function e(e,t){var n=this;this.sliderService=e,this.cdr=t,this.tooltipVisible="default",this.active=!1,this.style={},this.enterHandle=function(){n.sliderService.isDragging||(n.toggleTooltip(!0),n.updateTooltipPosition(),n.cdr.detectChanges())},this.leaveHandle=function(){n.sliderService.isDragging||(n.toggleTooltip(!1),n.cdr.detectChanges())}}return e.prototype.ngOnChanges=function(e){var t=this,n=e.value,i=e.active,r=e.tooltipVisible;e.offset&&this.updateStyle(),n&&(this.updateTooltipTitle(),this.updateTooltipPosition()),i&&this.toggleTooltip(!!i.currentValue),"always"===(null==r?void 0:r.currentValue)&&Promise.resolve().then((function(){return t.toggleTooltip(!0,!0)}))},e.prototype.focus=function(){var e;null===(e=this.handleEl)||void 0===e||e.nativeElement.focus()},e.prototype.toggleTooltip=function(e,t){var n,i;void 0===t&&(t=!1),(t||"default"===this.tooltipVisible&&this.tooltip)&&(e?null===(n=this.tooltip)||void 0===n||n.show():null===(i=this.tooltip)||void 0===i||i.hide())},e.prototype.updateTooltipTitle=function(){this.tooltipTitle=this.tooltipFormatter?this.tooltipFormatter(this.value):""+this.value},e.prototype.updateTooltipPosition=function(){var e=this;this.tooltip&&Promise.resolve().then((function(){var t;return null===(t=e.tooltip)||void 0===t?void 0:t.updatePosition()}))},e.prototype.updateStyle=function(){var e;this.style=((e={})[this.vertical?"bottom":"left"]=this.offset+"%",e.transform=this.vertical?"translateY(50%)":"translateX(-50%)",e),this.cdr.markForCheck()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"active",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Kk),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-slider-handle"]],viewQuery:function(e,t){var n;1&e&&(i.Sc(Wk,!0),i.Sc(QT,!0)),2&e&&(i.zc(n=i.ic())&&(t.handleEl=n.first),i.zc(n=i.ic())&&(t.tooltip=n.first))},hostBindings:function(e,t){1&e&&i.hc("mouseenter",(function(){return t.enterHandle()}))("mouseleave",(function(){return t.leaveHandle()}))},inputs:{tooltipVisible:"tooltipVisible",active:"active",vertical:"vertical",offset:"offset",value:"value",tooltipPlacement:"tooltipPlacement",tooltipFormatter:"tooltipFormatter"},exportAs:["nzSliderHandle"],features:[i.Bb],decls:2,vars:4,consts:[["tabindex","0","nz-tooltip","",1,"ant-slider-handle",3,"ngStyle","nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement"],["handle",""]],template:function(e,t){1&e&&i.Ub(0,"div",0,1),2&e&&i.sc("ngStyle",t.style)("nzTooltipTitle",null===t.tooltipFormatter||"never"===t.tooltipVisible?null:t.tooltipTitle)("nzTooltipTrigger",null)("nzTooltipPlacement",t.tooltipPlacement)},directives:[QT,Vr.w],encapsulation:2,changeDetection:0}),e}(),eD=function(){function e(e,t,n){this.sliderService=e,this.cdr=t,this.platform=n,this.nzDisabled=!1,this.nzDots=!1,this.nzIncluded=!0,this.nzRange=!1,this.nzVertical=!1,this.nzMarks=null,this.nzMax=100,this.nzMin=0,this.nzStep=1,this.nzTooltipVisible="default",this.nzTooltipPlacement="top",this.nzOnAfterChange=new i.n,this.value=null,this.cacheSliderStart=null,this.cacheSliderLength=null,this.activeValueIndex=void 0,this.track={offset:null,length:null},this.handles=[],this.marksArray=null,this.bounds={lower:null,upper:null}}return e.prototype.ngOnInit=function(){this.handles=Array(this.nzRange?2:1).fill(0).map((function(){return{offset:null,value:null,active:!1}})),this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null,this.bindDraggingHandlers(),this.toggleDragDisabled(this.nzDisabled),null===this.getValue()&&this.setValue(this.formatValue(null))},e.prototype.ngOnChanges=function(e){var t=e.nzDisabled,n=e.nzMarks,i=e.nzRange;t&&!t.firstChange?this.toggleDragDisabled(t.currentValue):n&&!n.firstChange?this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null:i&&!i.firstChange&&this.setValue(this.formatValue(null))},e.prototype.ngOnDestroy=function(){this.unsubscribeDrag()},e.prototype.writeValue=function(e){this.setValue(e,!0)},e.prototype.onValueChange=function(e){},e.prototype.onTouched=function(){},e.prototype.registerOnChange=function(e){this.onValueChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.toggleDragDisabled(e)},e.prototype.onKeyDown=function(e){var t=e.keyCode,n=t===Zr.f||t===Zr.c;if(t===Zr.h||t===Zr.k||n){e.preventDefault();var i=n?-this.nzStep:this.nzStep,r=this.nzRange?this.value[this.activeValueIndex]+i:this.value+i;this.setActiveValue(Object(es.d)(r,this.nzMin,this.nzMax))}},e.prototype.setValue=function(e,t){var n,i;void 0===t&&(t=!1),t?(this.value=this.formatValue(e),this.updateTrackAndHandles()):typeof(n=this.value)==typeof(i=e)&&(tD(n)&&tD(i)?Object(es.c)(n,i):n===i)||(this.value=e,this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0)))},e.prototype.getValue=function(e){return void 0===e&&(e=!1),e&&this.value&&tD(this.value)?Object(zt.g)(this.value).sort((function(e,t){return e-t})):this.value},e.prototype.getValueToOffset=function(e){var t=this,n=e;return void 0===n&&(n=this.getValue(!0)),tD(n)?n.map((function(e){return t.valueToOffset(e)})):this.valueToOffset(n)},e.prototype.setActiveValueIndex=function(e){var t=this.getValue();if(tD(t)){var n,i=null,r=-1;t.forEach((function(t,o){n=Math.abs(e-t),(null===i||n=this.nzMin&&r<=this.nzMax&&t.push({value:r,offset:this.valueToOffset(r),config:i})}return t.length?t:null},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzDots",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzIncluded",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzRange",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzVertical",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzMax",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzMin",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzStep",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Kk),i.Tb(i.h),i.Tb(Xr.a))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-slider"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(qk,!0),i.Sc(Jk,!0)),2&e&&(i.zc(n=i.ic())&&(t.slider=n.first),i.zc(n=i.ic())&&(t.handlerComponents=n))},hostBindings:function(e,t){1&e&&i.hc("keydown",(function(e){return t.onKeyDown(e)}))},inputs:{nzDisabled:"nzDisabled",nzDots:"nzDots",nzIncluded:"nzIncluded",nzRange:"nzRange",nzVertical:"nzVertical",nzMarks:"nzMarks",nzMax:"nzMax",nzMin:"nzMin",nzStep:"nzStep",nzTooltipVisible:"nzTooltipVisible",nzTooltipPlacement:"nzTooltipPlacement",nzDefaultValue:"nzDefaultValue",nzTipFormatter:"nzTipFormatter"},outputs:{nzOnAfterChange:"nzOnAfterChange"},exportAs:["nzSlider"],features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0},Kk]),i.Bb],decls:7,vars:13,consts:[[1,"ant-slider"],["slider",""],[1,"ant-slider-rail"],[3,"vertical","included","offset","length"],[3,"vertical","lowerBound","upperBound","marksArray","included",4,"ngIf"],[3,"vertical","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement",4,"ngFor","ngForOf"],[3,"vertical","min","max","lowerBound","upperBound","marksArray","included",4,"ngIf"],[3,"vertical","lowerBound","upperBound","marksArray","included"],[3,"vertical","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement"],[3,"vertical","min","max","lowerBound","upperBound","marksArray","included"]],template:function(e,t){1&e&&(i.Zb(0,"div",0,1),i.Ub(2,"div",2),i.Ub(3,"nz-slider-track",3),i.Lc(4,Zk,1,5,"nz-slider-step",4),i.Lc(5,$k,1,7,"nz-slider-handle",5),i.Lc(6,Gk,1,7,"nz-slider-marks",6),i.Yb()),2&e&&(i.Jb("ant-slider-disabled",t.nzDisabled)("ant-slider-vertical",t.nzVertical)("ant-slider-with-marks",t.marksArray),i.Db(3),i.sc("vertical",t.nzVertical)("included",t.nzIncluded)("offset",t.track.offset)("length",t.track.length),i.Db(1),i.sc("ngIf",t.marksArray),i.Db(1),i.sc("ngForOf",t.handles),i.Db(1),i.sc("ngIf",t.marksArray))},directives:function(){return[oD,Vr.t,Vr.s,rD,Jk,nD]},encapsulation:2,changeDetection:0}),e}();function tD(e){return e instanceof Array&&2===e.length}var nD=function(){function e(){this.lowerBound=null,this.upperBound=null,this.marksArray=[],this.vertical=!1,this.included=!1,this.marks=[]}return e.prototype.ngOnChanges=function(e){var t=e.marksArray,n=e.lowerBound,i=e.upperBound;t&&this.buildMarks(),(t||n||i)&&this.togglePointActive()},e.prototype.trackById=function(e,t){return t.value},e.prototype.buildMarks=function(){var e=this,t=this.max-this.min;this.marks=this.marksArray.map((function(n){var i=n.value,r=n.offset,o=n.config,a=e.getMarkStyles(i,t,o);return{label:iD(o)?o.label:o,offset:r,style:a,value:i,config:o,active:!1}}))},e.prototype.getMarkStyles=function(e,t,n){var i;return i=this.vertical?{marginBottom:"-50%",bottom:(e-this.min)/t*100+"%"}:{transform:"translate3d(-50%, 0, 0)",left:(e-this.min)/t*100+"%"},iD(n)&&n.style&&(i=Object(zt.a)(Object(zt.a)({},i),n.style)),i},e.prototype.togglePointActive=function(){var e=this;this.marks&&null!==this.lowerBound&&null!==this.upperBound&&this.marks.forEach((function(t){var n=t.value;t.active=!e.included&&n===e.upperBound||e.included&&n<=e.upperBound&&n>=e.lowerBound}))},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"vertical",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"included",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-slider-marks"]],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",vertical:"vertical",included:"included",min:"min",max:"max"},exportAs:["nzSliderMarks"],features:[i.Bb],decls:2,vars:2,consts:[[1,"ant-slider-mark"],["class","ant-slider-mark-text",3,"ant-slider-mark-active","ngStyle","innerHTML",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-slider-mark-text",3,"ngStyle","innerHTML"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Lc(1,Qk,1,4,"span",1),i.Yb()),2&e&&(i.Db(1),i.sc("ngForOf",t.marks)("ngForTrackBy",t.trackById))},directives:[Vr.s,Vr.w],encapsulation:2,changeDetection:0}),e}();function iD(e){return"string"!=typeof e}var rD=function(){function e(){this.lowerBound=null,this.upperBound=null,this.marksArray=[],this.vertical=!1,this.included=!1,this.steps=[]}return e.prototype.ngOnChanges=function(e){e.marksArray&&this.buildSteps(),(e.marksArray||e.lowerBound||e.upperBound)&&this.togglePointActive()},e.prototype.trackById=function(e,t){return t.value},e.prototype.buildSteps=function(){var e=this.vertical?"bottom":"left";this.steps=this.marksArray.map((function(t){var n,i=t.offset;return{value:t.value,offset:i,config:t.config,active:!1,style:(n={},n[e]=i+"%",n)}}))},e.prototype.togglePointActive=function(){var e=this;this.steps&&null!==this.lowerBound&&null!==this.upperBound&&this.steps.forEach((function(t){var n=t.value;t.active=!e.included&&n===e.upperBound||e.included&&n<=e.upperBound&&n>=e.lowerBound}))},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"vertical",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"included",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-slider-step"]],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",vertical:"vertical",included:"included"},exportAs:["nzSliderStep"],features:[i.Bb],decls:2,vars:2,consts:[[1,"ant-slider-step"],["class","ant-slider-dot",3,"ant-slider-dot-active","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-slider-dot",3,"ngStyle"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Lc(1,Xk,1,3,"span",1),i.Yb()),2&e&&(i.Db(1),i.sc("ngForOf",t.steps)("ngForTrackBy",t.trackById))},directives:[Vr.s,Vr.w],encapsulation:2,changeDetection:0}),e}(),oD=function(){function e(){this.offset=0,this.length=0,this.vertical=!1,this.included=!1,this.style={}}return e.prototype.ngOnChanges=function(e){e.included&&(this.style.visibility=this.included?"visible":"hidden"),(e.vertical||e.offset||e.length)&&(this.vertical?(this.style.bottom=this.offset+"%",this.style.height=this.length+"%",this.style.left=null,this.style.width=null):(this.style.left=this.offset+"%",this.style.width=this.length+"%",this.style.bottom=null,this.style.height=null))},Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Number)],e.prototype,"offset",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Number)],e.prototype,"length",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"vertical",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"included",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-slider-track"]],inputs:{offset:"offset",length:"length",vertical:"vertical",included:"included"},exportAs:["nzSliderTrack"],features:[i.Bb],decls:1,vars:1,consts:[[1,"ant-slider-track",3,"ngStyle"]],template:function(e,t){1&e&&i.Ub(0,"div",0),2&e&&i.sc("ngStyle",t.style)},directives:[Vr.w],encapsulation:2,changeDetection:0}),e}(),aD=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Xr.b,KT]]}),e}(),sD=n("/21U");function cD(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function uD(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzTitle)}}function lD(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzPrefix)}}function pD(e,t){if(1&e&&(i.Zb(0,"span",7),i.Nc(1,"\n "),i.Lc(2,lD,2,1,"ng-container",2),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzPrefix)}}function hD(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzSuffix)}}function dD(e,t){if(1&e&&(i.Zb(0,"span",8),i.Nc(1,"\n "),i.Lc(2,hD,2,1,"ng-container",2),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("nzStringTemplateOutlet",n.nzSuffix)}}function fD(e,t){if(1&e&&(i.Nc(0),i.lc(1,"nzTimeRange")),2&e){var n=i.kc();i.Oc(i.nc(1,1,n.diff,n.nzFormat))}}var gD=function(e){return{$implicit:e}};function bD(e,t){if(1&e&&i.Vb(0,3),2&e){var n=i.kc();i.sc("ngTemplateOutlet",n.nzValueTemplate)("ngTemplateOutletContext",i.vc(2,gD,n.nzValue))}}function mD(e,t){if(1&e&&(i.Zb(0,"span",6),i.Nc(1),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.displayInt)}}function vD(e,t){if(1&e&&(i.Zb(0,"span",7),i.Nc(1),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.displayDecimal)}}function yD(e,t){if(1&e&&(i.Xb(0),i.Lc(1,mD,2,1,"span",4),i.Lc(2,vD,2,1,"span",5),i.Wb()),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",n.displayInt),i.Db(1),i.sc("ngIf",n.displayDecimal)}}var wD=function(){function e(){this.nzValueStyle={}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-statistic"]],inputs:{nzValueStyle:"nzValueStyle",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:19,vars:6,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Zb(3,"div",1),i.Nc(4,"\n "),i.Lc(5,uD,2,1,"ng-container",2),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"div",3),i.Nc(9,"\n "),i.Lc(10,pD,4,1,"span",4),i.Nc(11,"\n "),i.Zb(12,"nz-statistic-number",5),i.Nc(13," "),i.Yb(),i.Nc(14,"\n "),i.Lc(15,dD,4,1,"span",6),i.Nc(16,"\n "),i.Yb(),i.Nc(17,"\n "),i.Yb(),i.Nc(18,"\n ")),2&e&&(i.Db(5),i.sc("nzStringTemplateOutlet",t.nzTitle),i.Db(3),i.sc("ngStyle",t.nzValueStyle),i.Db(2),i.sc("ngIf",t.nzPrefix),i.Db(2),i.sc("nzValue",t.nzValue)("nzValueTemplate",t.nzValueTemplate),i.Db(3),i.sc("ngIf",t.nzSuffix))},directives:function(){return[Es.b,Vr.w,Vr.t,CD]},encapsulation:2,changeDetection:0}),e}(),OD=function(e){function t(t,n,r){var o=e.call(this)||this;return o.cdr=t,o.ngZone=n,o.platform=r,o.nzFormat="HH:mm:ss",o.nzCountdownFinish=new i.n,o.target=0,o}return Object(zt.c)(t,e),t.prototype.ngOnChanges=function(e){e.nzValue&&(this.target=Number(e.nzValue.currentValue),e.nzValue.isFirstChange()||this.syncTimer())},t.prototype.ngOnInit=function(){this.syncTimer()},t.prototype.ngOnDestroy=function(){this.stopTimer()},t.prototype.syncTimer=function(){this.target>=Date.now()?this.startTimer():this.stopTimer()},t.prototype.startTimer=function(){var e=this;this.platform.isBrowser&&this.ngZone.runOutsideAngular((function(){var t,n;e.stopTimer(),e.updater_=(t=1e3/30,void 0===t&&(t=0),void 0===n&&(n=Nc.a),(!Object(sD.a)(t)||t<0)&&(t=0),n&&"function"==typeof n.schedule||(n=Nc.a),new _t.a((function(e){return e.add(n.schedule(cD,t,{subscriber:e,counter:0,period:t})),e}))).subscribe((function(){e.updateValue(),e.cdr.detectChanges()}))}))},t.prototype.stopTimer=function(){this.updater_&&(this.updater_.unsubscribe(),this.updater_=null)},t.prototype.updateValue=function(){this.diff=Math.max(this.target-Date.now(),0),0===this.diff&&(this.stopTimer(),this.nzCountdownFinish.emit())},t.\u0275fac=function(e){return new(e||t)(i.Tb(i.h),i.Tb(i.z),i.Tb(Xr.a))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-countdown"]],inputs:{nzFormat:"nzFormat"},outputs:{nzCountdownFinish:"nzCountdownFinish"},exportAs:["nzCountdown"],features:[i.Ab,i.Bb],decls:7,vars:6,consts:[[3,"nzValue","nzValueStyle","nzValueTemplate","nzTitle","nzPrefix","nzSuffix"],["countDownTpl",""]],template:function(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"nz-statistic",0),i.Nc(2,"\n "),i.Yb(),i.Nc(3,"\n\n "),i.Lc(4,fD,2,4,"ng-template",null,1,i.Mc),i.Nc(6,"\n ")),2&e){var n=i.Ac(5);i.Db(1),i.sc("nzValue",t.diff)("nzValueStyle",t.nzValueStyle)("nzValueTemplate",t.nzValueTemplate||n)("nzTitle",t.nzTitle)("nzPrefix",t.nzPrefix)("nzSuffix",t.nzSuffix)}},directives:[wD],pipes:[XS],encapsulation:2,changeDetection:0}),t}(wD),CD=function(){function e(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}return e.prototype.ngOnChanges=function(){this.formatNumber()},e.prototype.formatNumber=function(){var e="number"==typeof this.nzValue?".":Object(Vr.K)(this.locale_id,Vr.B.Decimal),t=String(this.nzValue),n=Object(zt.e)(t.split(e),2),i=n[1];this.displayInt=n[0],this.displayDecimal=i?""+e+i:""},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.u))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[i.Bb],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,t){1&e&&(i.Zb(0,"span",0),i.Lc(1,bD,1,4,"ng-container",1),i.Lc(2,yD,3,2,"ng-container",2),i.Yb()),2&e&&(i.Db(1),i.sc("ngIf",t.nzValueTemplate),i.Db(1),i.sc("ngIf",!t.nzValueTemplate))},directives:[Vr.t,Vr.A],encapsulation:2,changeDetection:0}),e}(),SD=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Xr.b,Es.a,KS]]}),e}(),zD=["processDotTemplate"];function TD(e,t){1&e&&i.Ub(0,"div",9)}function _D(e,t){1&e&&(i.Zb(0,"span",11),i.Ub(1,"i",12),i.Yb())}function kD(e,t){1&e&&(i.Zb(0,"span",11),i.Ub(1,"i",13),i.Yb())}function DD(e,t){if(1&e&&(i.Zb(0,"span",11),i.Nc(1),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.index+1)}}function xD(e,t){if(1&e&&(i.Xb(0),i.Ub(1,"i",14),i.Wb()),2&e){var n=t.$implicit,r=i.kc(3);i.Db(1),i.sc("nzType",!r.oldAPIIcon&&n)("ngClass",r.oldAPIIcon&&n)}}function ED(e,t){if(1&e&&(i.Zb(0,"span",11),i.Lc(1,xD,2,2,"ng-container",6),i.Yb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzIcon)}}function ND(e,t){if(1&e&&(i.Lc(0,_D,2,0,"span",10),i.Lc(1,kD,2,0,"span",10),i.Lc(2,DD,2,1,"span",10),i.Lc(3,ED,2,1,"span",10)),2&e){var n=i.kc();i.sc("ngIf","finish"===n.nzStatus&&!n.nzIcon),i.Db(1),i.sc("ngIf","error"===n.nzStatus),i.Db(1),i.sc("ngIf",("process"===n.nzStatus||"wait"===n.nzStatus)&&!n.nzIcon),i.Db(1),i.sc("ngIf",n.nzIcon)}}function jD(e,t){1&e&&i.Ub(0,"span",17)}function ID(e,t){}var AD=function(e,t,n){return{$implicit:e,status:t,index:n}};function MD(e,t){if(1&e&&(i.Zb(0,"span",11),i.Lc(1,jD,1,0,"ng-template",null,15,i.Mc),i.Lc(3,ID,0,0,"ng-template",16),i.Yb()),2&e){var n=i.Ac(2),r=i.kc();i.Db(3),i.sc("ngTemplateOutlet",r.customProcessTemplate||n)("ngTemplateOutletContext",i.xc(2,AD,n,r.nzStatus,r.index))}}function LD(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzTitle)}}function PD(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzSubtitle)}}function FD(e,t){if(1&e&&(i.Zb(0,"div",18),i.Lc(1,PD,2,1,"ng-container",6),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("nzStringTemplateOutlet",n.nzSubtitle)}}function RD(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzDescription)}}var VD=["*"],BD=function(){function e(e){this.cdr=e,this.nzDisabled=!1,this.isCustomStatus=!1,this._status="wait",this.oldAPIIcon=!0,this.direction="horizontal",this.index=0,this.last=!1,this.outStatus="process",this.showProcessDot=!1,this.clickable=!1,this.click$=new kt.a,this._currentIndex=0}return Object.defineProperty(e.prototype,"nzStatus",{get:function(){return this._status},set:function(e){this._status=e,this.isCustomStatus=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nzIcon",{get:function(){return this._icon},set:function(e){e instanceof i.M||(this.oldAPIIcon="string"==typeof e&&e.indexOf("anticon")>-1),this._icon=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentIndex",{get:function(){return this._currentIndex},set:function(e){this._currentIndex=e,this.isCustomStatus||(this._status=e>this.index?"finish":e===this.index?this.outStatus||"":"wait")},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled&&this.click$.next(this.index)},e.prototype.markForCheck=function(){this.cdr.markForCheck()},e.prototype.ngOnDestroy=function(){this.click$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-step"]],viewQuery:function(e,t){var n;1&e&&i.Sc(zD,!0),2&e&&i.zc(n=i.ic())&&(t.processDotTemplate=n.first)},hostAttrs:[1,"ant-steps-item"],hostVars:16,hostBindings:function(e,t){2&e&&i.Jb("ant-steps-item-wait","wait"===t.nzStatus)("ant-steps-item-process","process"===t.nzStatus)("ant-steps-item-finish","finish"===t.nzStatus)("ant-steps-item-error","error"===t.nzStatus)("ant-steps-item-active",t.currentIndex===t.index)("ant-steps-item-disabled",t.nzDisabled)("ant-steps-item-custom",!!t.nzIcon)("ant-steps-next-error","error"===t.outStatus&&t.currentIndex===t.index+1)},inputs:{nzDisabled:"nzDisabled",nzStatus:"nzStatus",nzIcon:"nzIcon",nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzDescription:"nzDescription"},exportAs:["nzStep"],decls:11,vars:8,consts:[[1,"ant-steps-item-container",3,"tabindex","click"],["class","ant-steps-item-tail",4,"ngIf"],[1,"ant-steps-item-icon"],[3,"ngIf"],[1,"ant-steps-item-content"],[1,"ant-steps-item-title"],[4,"nzStringTemplateOutlet"],["class","ant-steps-item-subtitle",4,"ngIf"],[1,"ant-steps-item-description"],[1,"ant-steps-item-tail"],["class","ant-steps-icon",4,"ngIf"],[1,"ant-steps-icon"],["nz-icon","","nzType","check"],["nz-icon","","nzType","close"],["nz-icon","",3,"nzType","ngClass"],["processDotTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-steps-icon-dot"],[1,"ant-steps-item-subtitle"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.hc("click",(function(){return t.onClick()})),i.Lc(1,TD,1,0,"div",1),i.Zb(2,"div",2),i.Lc(3,ND,4,4,"ng-template",3),i.Lc(4,MD,4,6,"ng-template",3),i.Yb(),i.Zb(5,"div",4),i.Zb(6,"div",5),i.Lc(7,LD,2,1,"ng-container",6),i.Lc(8,FD,2,1,"div",7),i.Yb(),i.Zb(9,"div",8),i.Lc(10,RD,2,1,"ng-container",6),i.Yb(),i.Yb(),i.Yb()),2&e&&(i.sc("tabindex",t.clickable&&!t.nzDisabled?0:null),i.Eb("role",t.clickable&&!t.nzDisabled?"button":null),i.Db(1),i.sc("ngIf",!0!==t.last),i.Db(2),i.sc("ngIf",!t.showProcessDot),i.Db(1),i.sc("ngIf",t.showProcessDot),i.Db(3),i.sc("nzStringTemplateOutlet",t.nzTitle),i.Db(1),i.sc("ngIf",t.nzSubtitle),i.Db(2),i.sc("nzStringTemplateOutlet",t.nzDescription))},directives:[Vr.t,Es.b,Ns.a,Vr.q,Vr.A],encapsulation:2,changeDetection:0}),e}(),YD=function(){function e(){this.nzCurrent=0,this.nzDirection="horizontal",this.nzLabelPlacement="horizontal",this.nzType="default",this.nzSize="default",this.nzStartIndex=0,this.nzStatus="process",this.nzIndexChange=new i.n,this.destroy$=new kt.a,this.showProcessDot=!1,this.classMap={}}return Object.defineProperty(e.prototype,"nzProgressDot",{set:function(e){e instanceof i.M?(this.showProcessDot=!0,this.customProcessDotTemplate=e):this.showProcessDot=Object(es.C)(e),this.updateChildrenSteps()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.nzStartIndex||e.nzDirection||e.nzStatus||e.nzCurrent)&&this.updateChildrenSteps(),(e.nzDirection||e.nzProgressDot||e.nzLabelPlacement||e.nzSize)&&this.setClassMap()},e.prototype.ngOnInit=function(){this.setClassMap(),this.updateChildrenSteps()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.indexChangeSubscription&&this.indexChangeSubscription.unsubscribe()},e.prototype.ngAfterContentInit=function(){var e=this;this.steps&&this.steps.changes.pipe(Object(Ka.a)(null),Object(ss.a)(this.destroy$)).subscribe((function(){e.updateChildrenSteps()}))},e.prototype.updateChildrenSteps=function(){var e=this;if(this.steps){var t=this.steps.length;this.steps.toArray().forEach((function(n,i){Promise.resolve().then((function(){n.outStatus=e.nzStatus,n.showProcessDot=e.showProcessDot,e.customProcessDotTemplate&&(n.customProcessTemplate=e.customProcessDotTemplate),n.clickable=e.nzIndexChange.observers.length>0,n.direction=e.nzDirection,n.index=i+e.nzStartIndex,n.currentIndex=e.nzCurrent,n.last=t===i+1,n.markForCheck()}))})),this.indexChangeSubscription&&this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=Tt.a.apply(void 0,Object(zt.g)(this.steps.map((function(e){return e.click$})))).subscribe((function(t){return e.nzIndexChange.emit(t)}))}},e.prototype.setClassMap=function(){var e;this.classMap=((e={})["ant-steps-"+this.nzDirection]=!0,e["ant-steps-label-horizontal"]="horizontal"===this.nzDirection,e["ant-steps-label-vertical"]=(this.showProcessDot||"vertical"===this.nzLabelPlacement)&&"horizontal"===this.nzDirection,e["ant-steps-dot"]=this.showProcessDot,e["ant-steps-small"]="small"===this.nzSize,e["ant-steps-navigation"]="navigation"===this.nzType,e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-steps"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,BD,!1),2&e&&i.zc(r=i.ic())&&(t.steps=r)},inputs:{nzCurrent:"nzCurrent",nzDirection:"nzDirection",nzLabelPlacement:"nzLabelPlacement",nzType:"nzType",nzSize:"nzSize",nzStartIndex:"nzStartIndex",nzStatus:"nzStatus",nzProgressDot:"nzProgressDot"},outputs:{nzIndexChange:"nzIndexChange"},exportAs:["nzSteps"],features:[i.Bb],ngContentSelectors:VD,decls:2,vars:1,consts:[[1,"ant-steps",3,"ngClass"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"div",0),i.qc(1),i.Yb()),2&e&&i.sc("ngClass",t.classMap)},directives:[Vr.q],encapsulation:2,changeDetection:0}),e}(),UD=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ns.b,Es.a]]}),e}(),HD=["switchElement"];function WD(e,t){1&e&&i.Ub(0,"i",7)}function qD(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzCheckedChildren)}}function ZD(e,t){if(1&e&&(i.Xb(0),i.Lc(1,qD,2,1,"ng-container",8),i.Wb()),2&e){var n=i.kc();i.Db(1),i.sc("nzStringTemplateOutlet",n.nzCheckedChildren)}}function $D(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.Oc(n.nzUnCheckedChildren)}}function GD(e,t){if(1&e&&i.Lc(0,$D,2,1,"ng-container",8),2&e){var n=i.kc();i.sc("nzStringTemplateOutlet",n.nzUnCheckedChildren)}}var QD=function(){function e(e,t,n){this.nzConfigService=e,this.cdr=t,this.focusMonitor=n,this.isChecked=!1,this.onChange=function(){},this.onTouched=function(){},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default"}return e.prototype.onHostClick=function(e){e.preventDefault(),this.nzDisabled||this.nzLoading||this.nzControl||this.updateValue(!this.isChecked)},e.prototype.updateValue=function(e){this.isChecked!==e&&(this.isChecked=e,this.onChange(this.isChecked))},e.prototype.onKeyDown=function(e){this.nzControl||this.nzDisabled||this.nzLoading||(e.keyCode===Zr.f?(this.updateValue(!1),e.preventDefault()):e.keyCode===Zr.h?(this.updateValue(!0),e.preventDefault()):e.keyCode!==Zr.i&&e.keyCode!==Zr.d||(this.updateValue(!this.isChecked),e.preventDefault()))},e.prototype.focus=function(){var e;this.focusMonitor.focusVia(null===(e=this.switchElement)||void 0===e?void 0:e.nativeElement,"keyboard")},e.prototype.blur=function(){var e;null===(e=this.switchElement)||void 0===e||e.nativeElement.blur()},e.prototype.ngAfterViewInit=function(){var e=this;this.focusMonitor.monitor(this.switchElement.nativeElement,!0).subscribe((function(t){t||Promise.resolve().then((function(){return e.onTouched()}))}))},e.prototype.ngOnDestroy=function(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement)},e.prototype.writeValue=function(e){this.isChecked=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.nzDisabled=e,this.cdr.markForCheck()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzLoading",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzControl",void 0),Object(zt.b)([Object(Qa.b)("switch"),Object(zt.d)("design:type",String)],e.prototype,"nzSize",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.h),i.Tb(yo))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-switch"]],viewQuery:function(e,t){var n;1&e&&i.Jc(HD,!0),2&e&&i.zc(n=i.ic())&&(t.switchElement=n.first)},hostBindings:function(e,t){1&e&&i.hc("click",(function(e){return t.onHostClick(e)}))},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return e})),multi:!0}])],decls:8,vars:13,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode","keydown"],["switchElement",""],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(e,t){if(1&e&&(i.Zb(0,"button",0,1),i.hc("keydown",(function(e){return t.onKeyDown(e)})),i.Lc(2,WD,1,0,"i",2),i.Zb(3,"span",3),i.Lc(4,ZD,2,1,"ng-container",4),i.Lc(5,GD,1,1,"ng-template",null,5,i.Mc),i.Yb(),i.Ub(7,"div",6),i.Yb()),2&e){var n=i.Ac(6);i.Jb("ant-switch-checked",t.isChecked)("ant-switch-loading",t.nzLoading)("ant-switch-disabled",t.nzDisabled)("ant-switch-small","small"===t.nzSize),i.sc("disabled",t.nzDisabled)("nzWaveExtraNode",!0),i.Db(2),i.sc("ngIf",t.nzLoading),i.Db(2),i.sc("ngIf",t.isChecked)("ngIfElse",n)}},directives:[Ud.a,Vr.t,Ns.a,Es.b],encapsulation:2,changeDetection:0}),e}(),XD=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ud.b,Ns.b,Es.a]]}),e}(),KD=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n0},e.prototype.connect_=function(){JD&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ix?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){JD&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;nx.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ox=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),gx="undefined"!=typeof WeakMap?new WeakMap:new KD,bx=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=rx.getInstance(),i=new fx(t,n,this);gx.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){bx.prototype[e]=function(){var t;return(t=gx.get(this))[e].apply(t,arguments)}}));var mx=void 0!==ex.ResizeObserver?ex.ResizeObserver:bx,vx=function(){function e(){}return e.prototype.create=function(e){return void 0===mx?null:new mx(e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)},e}(),yx=function(){function e(e){this.nzResizeObserverFactory=e,this.observedElements=new Map}return e.prototype.ngOnDestroy=function(){var e=this;this.observedElements.forEach((function(t,n){return e.cleanupObserver(n)}))},e.prototype.observe=function(e){var t=this,n=Object(Qr.e)(e);return new _t.a((function(e){var i=t.observeElement(n).subscribe(e);return function(){i.unsubscribe(),t.unobserveElement(n)}}))},e.prototype.observeElement=function(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{var t=new kt.a,n=this.nzResizeObserverFactory.create((function(e){return t.next(e)}));n&&n.observe(e),this.observedElements.set(e,{observer:n,stream:t,count:1})}return this.observedElements.get(e).stream},e.prototype.unobserveElement=function(e){this.observedElements.has(e)&&(this.observedElements.get(e).count--,this.observedElements.get(e).count||this.cleanupObserver(e))},e.prototype.cleanupObserver=function(e){if(this.observedElements.has(e)){var t=this.observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this.observedElements.delete(e)}},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(vx))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(vx))},e}(),wx=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},providers:[vx]}),e}(),Ox=n("G5J1"),Cx=["*"];function Sx(e,t){}function zx(e,t){if(1&e){var n=i.ac();i.Zb(0,"label",15),i.hc("ngModelChange",(function(){i.Dc(n);var e=i.kc().$implicit;return i.kc(2).check(e)})),i.Yb()}if(2&e){var r=i.kc().$implicit;i.sc("ngModel",r.checked)}}function Tx(e,t){if(1&e){var n=i.ac();i.Zb(0,"label",16),i.hc("ngModelChange",(function(){i.Dc(n);var e=i.kc().$implicit;return i.kc(2).check(e)})),i.Yb()}if(2&e){var r=i.kc().$implicit;i.sc("ngModel",r.checked)}}function _x(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",12),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc(2).check(e)})),i.Lc(1,zx,1,1,"label",13),i.Lc(2,Tx,1,1,"label",14),i.Zb(3,"span"),i.Nc(4),i.Yb(),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc(2);i.sc("nzSelected",r.checked),i.Db(1),i.sc("ngIf",!o.filterMultiple),i.Db(1),i.sc("ngIf",o.filterMultiple),i.Db(2),i.Oc(r.text)}}function kx(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Zb(1,"nz-filter-trigger",3),i.hc("nzVisibleChange",(function(e){return i.Dc(n),i.kc().onVisibleChange(e)})),i.Ub(2,"i",4),i.Yb(),i.Zb(3,"nz-dropdown-menu",null,5),i.Zb(5,"div",6),i.Zb(6,"ul",7),i.Lc(7,_x,5,4,"li",8),i.Yb(),i.Zb(8,"div",9),i.Zb(9,"button",10),i.hc("click",(function(){return i.Dc(n),i.kc().reset()})),i.Nc(10),i.Yb(),i.Zb(11,"button",11),i.hc("click",(function(){return i.Dc(n),i.kc().confirm()})),i.Nc(12),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Wb()}if(2&e){var r=i.Ac(4),o=i.kc();i.Db(1),i.sc("nzVisible",o.isVisible)("nzActive",o.isChecked)("nzDropdownMenu",r),i.Db(6),i.sc("ngForOf",o.listOfParsedFilter)("ngForTrackBy",o.trackByValue),i.Db(2),i.sc("disabled",!o.isChecked),i.Db(1),i.Oc(o.locale.filterReset),i.Db(2),i.Oc(o.locale.filterConfirm)}}function Dx(e,t){if(1&e){var n=i.ac();i.Zb(0,"label",2),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc().onCheckedChange(e)})),i.Yb()}if(2&e){var r=i.kc();i.Jb("ant-table-selection-select-all-custom",r.showRowSelection),i.sc("ngModel",r.checked)("nzDisabled",r.disabled)("nzIndeterminate",r.indeterminate)}}function xx(e,t){if(1&e&&(i.Zb(0,"li",9),i.hc("click",(function(){return t.$implicit.onSelect()})),i.Nc(1),i.Yb()),2&e){var n=t.$implicit;i.Db(1),i.Pc(" ",n.text," ")}}function Ex(e,t){if(1&e&&(i.Zb(0,"div",3),i.Zb(1,"span",4),i.Ub(2,"i",5),i.Yb(),i.Zb(3,"nz-dropdown-menu",null,6),i.Zb(5,"ul",7),i.Lc(6,xx,2,1,"li",8),i.Yb(),i.Yb(),i.Yb()),2&e){var n=i.Ac(4),r=i.kc();i.Db(1),i.sc("nzDropdownMenu",n),i.Db(5),i.sc("ngForOf",r.listOfSelections)}}function Nx(e,t){}function jx(e,t){if(1&e&&i.Ub(0,"i",5),2&e){var n=i.kc();i.Jb("active","ascend"==n.sortOrder)}}function Ix(e,t){if(1&e&&i.Ub(0,"i",6),2&e){var n=i.kc();i.Jb("active","descend"==n.sortOrder)}}var Ax=["nzChecked",""];function Mx(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Ub(1,"nz-row-indent",2),i.Zb(2,"button",3),i.hc("expandChange",(function(e){return i.Dc(n),i.kc().onExpandChange(e)})),i.Yb(),i.Wb()}if(2&e){var r=i.kc();i.Db(1),i.sc("indentSize",r.nzIndentSize),i.Db(1),i.sc("expand",r.nzExpand)("spaceMode",!r.nzShowExpand)}}function Lx(e,t){if(1&e){var n=i.ac();i.Zb(0,"label",4),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc().onCheckedChange(e)})),i.Yb()}if(2&e){var r=i.kc();i.sc("nzDisabled",r.nzDisabled)("ngModel",r.nzChecked)("nzIndeterminate",r.nzIndeterminate)}}var Px=["nzSortKey",""];function Fx(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-table-filter",5),i.hc("filterChange",(function(e){return i.Dc(n),i.kc().onFilterValueChange(e)})),i.Yb()}if(2&e){var r=i.kc(),o=i.Ac(2),a=i.Ac(4);i.sc("contentTemplate",o)("extraTemplate",a)("customFilter",r.nzCustomFilter)("filterMultiple",r.nzFilterMultiple)("listOfFilter",r.nzFilters)}}function Rx(e,t){}function Vx(e,t){if(1&e&&i.Lc(0,Rx,0,0,"ng-template",6),2&e){var n=i.kc(),r=i.Ac(6),o=i.Ac(8);i.sc("ngTemplateOutlet",n.nzShowSort?r:o)}}function Bx(e,t){1&e&&(i.qc(0),i.qc(1,1))}function Yx(e,t){if(1&e&&i.Ub(0,"nz-table-sorters",7),2&e){var n=i.kc(),r=i.Ac(8);i.sc("sortOrder",n.sortOrder)("sortDirections",n.sortDirections)("contentTemplate",r)}}function Ux(e,t){1&e&&i.qc(0,2)}var Hx=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],Wx=["[nz-th-extra]","nz-filter-trigger","*"],qx=["nzSelections",""],Zx=["nz-table-content",""];function $x(e,t){if(1&e&&i.Ub(0,"col"),2&e){var n=t.$implicit;i.Kc("width",n)("min-width",n)}}function Gx(e,t){}function Qx(e,t){if(1&e&&(i.Zb(0,"thead",3),i.Nc(1,"\n "),i.Lc(2,Gx,0,0,"ng-template",2),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Db(2),i.sc("ngTemplateOutlet",n.theadTemplate)}}function Xx(e,t){}var Kx=["tdElement"],Jx=["nz-table-fixed-row",""];function eE(e,t){}function tE(e,t){if(1&e&&(i.Zb(0,"div",4),i.lc(1,"async"),i.Nc(2,"\n "),i.Lc(3,eE,0,0,"ng-template",5),i.Nc(4,"\n "),i.Yb()),2&e){var n=i.kc(),r=i.Ac(9);i.Kc("width",i.mc(1,3,n.hostWidth$),"px"),i.Db(3),i.sc("ngTemplateOutlet",r)}}function nE(e,t){1&e&&i.qc(0)}var iE=["tableHeaderElement"],rE=["tableBodyElement"];function oE(e,t){if(1&e&&(i.Zb(0,"div",4,5),i.Nc(2,"\n "),i.Ub(3,"table",6),i.Nc(4,"\n "),i.Yb()),2&e){var n=i.kc();i.sc("ngStyle",n.headerStyleMap),i.Db(3),i.sc("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate)}}function aE(e,t){if(1&e&&(i.Zb(0,"div",7,8),i.Nc(2,"\n "),i.Ub(3,"table",9),i.Nc(4,"\n "),i.Yb()),2&e){var n=i.kc();i.sc("ngStyle",n.bodyStyleMap),i.Db(3),i.sc("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.scrollY?null:n.theadTemplate)("contentTemplate",n.contentTemplate)}}function sE(e,t){}var cE=function(e,t){return{$implicit:e,index:t}};function uE(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,sE,0,0,"ng-template",13),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit,r=t.index,o=i.kc(2);i.Db(2),i.sc("ngTemplateOutlet",o.virtualTemplate)("ngTemplateOutletContext",i.wc(2,cE,n,r))}}function lE(e,t){if(1&e&&(i.Zb(0,"cdk-virtual-scroll-viewport",10,8),i.Nc(2,"\n "),i.Zb(3,"table",11),i.Nc(4,"\n "),i.Zb(5,"tbody"),i.Nc(6,"\n "),i.Lc(7,uE,4,5,"ng-container",12),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n "),i.Yb(),i.Nc(10,"\n "),i.Yb()),2&e){var n=i.kc();i.Kc("height",n.data.length?n.scrollY:n.noDateVirtualHeight),i.sc("itemSize",n.virtualItemSize)("maxBufferPx",n.virtualMaxBufferPx)("minBufferPx",n.virtualMinBufferPx),i.Db(3),i.sc("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth),i.Db(4),i.sc("cdkVirtualForOf",n.data)("cdkVirtualForTrackBy",n.virtualForTrackBy)}}function pE(e,t){}function hE(e,t){if(1&e&&(i.Xb(0),i.Lc(1,pE,0,0,"ng-template",10),i.Wb()),2&e){i.kc();var n=i.Ac(11);i.Db(1),i.sc("ngTemplateOutlet",n)}}function dE(e,t){if(1&e&&i.Ub(0,"nz-table-title-footer",11),2&e){var n=i.kc();i.sc("title",n.nzTitle)}}function fE(e,t){if(1&e&&i.Ub(0,"nz-table-inner-scroll",12),2&e){var n=i.kc(),r=i.Ac(13),o=i.Ac(3);i.sc("data",n.data)("scrollX",n.scrollX)("scrollY",n.scrollY)("contentTemplate",r)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate)("verticalScrollBarWidth",n.verticalScrollBarWidth)("virtualTemplate",n.nzVirtualScrollDirective?n.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",n.nzVirtualItemSize)("virtualMaxBufferPx",n.nzVirtualMaxBufferPx)("virtualMinBufferPx",n.nzVirtualMinBufferPx)("tableMainElement",o)("virtualForTrackBy",n.nzVirtualForTrackBy)}}function gE(e,t){if(1&e&&i.Ub(0,"nz-table-inner-default",13),2&e){var n=i.kc(),r=i.Ac(13);i.sc("tableLayout",n.nzTableLayout)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",r)}}function bE(e,t){if(1&e&&i.Ub(0,"nz-table-title-footer",14),2&e){var n=i.kc();i.sc("footer",n.nzFooter)}}function mE(e,t){}function vE(e,t){if(1&e&&(i.Xb(0),i.Lc(1,mE,0,0,"ng-template",10),i.Wb()),2&e){i.kc();var n=i.Ac(11);i.Db(1),i.sc("ngTemplateOutlet",n)}}function yE(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-pagination",16),i.hc("nzPageSizeChange",(function(e){return i.Dc(n),i.kc(2).onPageSizeChange(e)}))("nzPageIndexChange",(function(e){return i.Dc(n),i.kc(2).onPageIndexChange(e)})),i.Yb()}if(2&e){var r=i.kc(2);i.sc("nzShowSizeChanger",r.nzShowSizeChanger)("nzPageSizeOptions",r.nzPageSizeOptions)("nzItemRender",r.nzItemRender)("nzShowQuickJumper",r.nzShowQuickJumper)("nzHideOnSinglePage",r.nzHideOnSinglePage)("nzShowTotal",r.nzShowTotal)("nzSize","default"===r.nzSize?"default":"small")("nzPageSize",r.nzPageSize)("nzTotal",r.nzTotal)("nzSimple",r.nzSimple)("nzPageIndex",r.nzPageIndex)}}function wE(e,t){if(1&e&&i.Lc(0,yE,1,11,"nz-pagination",15),2&e){var n=i.kc();i.sc("ngIf",n.nzShowPagination&&n.data.length)}}function OE(e,t){1&e&&i.qc(0)}function CE(e,t){if(1&e){var n=i.ac();i.Zb(0,"tr",3),i.hc("listOfAutoWidth",(function(e){return i.Dc(n),i.kc(2).onListOfAutoWidthChange(e)})),i.Yb()}if(2&e){var r=i.kc().ngIf;i.sc("listOfMeasureColumn",r)}}function SE(e,t){if(1&e&&(i.Xb(0),i.Lc(1,CE,1,1,"tr",2),i.Wb()),2&e){var n=t.ngIf,r=i.kc();i.Db(1),i.sc("ngIf",r.isInsideTable&&n.length)}}function zE(e,t){if(1&e&&(i.Zb(0,"tr",4),i.Ub(1,"nz-embed-empty",5),i.lc(2,"async"),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("specificContent",i.mc(2,1,n.noResult$))}}var TE=["contentTemplate"];function _E(e,t){1&e&&(i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n "))}function kE(e,t){}function DE(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,kE,0,0,"ng-template",2),i.Nc(3,"\n "),i.Wb()),2&e){i.kc();var n=i.Ac(2);i.Db(2),i.sc("ngTemplateOutlet",n)}}function xE(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.title)}}function EE(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.footer)}}var NE=["nz-table-measure-row",""];function jE(e,t){1&e&&i.Ub(0,"td",1,2)}var IE=function(){function e(e){this.cdr=e,this.nzActive=!1,this.nzVisible=!1,this.nzVisibleChange=new i.n}return e.prototype.onVisibleChange=function(e){this.nzVisible=e,this.nzVisibleChange.next(e)},e.prototype.onFilterClick=function(e){e.stopPropagation()},e.prototype.hide=function(){this.nzVisible=!1,this.cdr.markForCheck()},e.prototype.show=function(){this.nzVisible=!0,this.cdr.markForCheck()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-filter-trigger"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Jb("ant-table-filter-trigger-container",!0)("ant-table-filter-trigger-container-open",t.nzVisible)},inputs:{nzActive:"nzActive",nzVisible:"nzVisible",nzDropdownMenu:"nzDropdownMenu"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],ngContentSelectors:Cx,decls:2,vars:7,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange","click"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"span",0),i.hc("nzVisibleChange",(function(e){return t.onVisibleChange(e)}))("click",(function(e){return t.onFilterClick(e)})),i.qc(1),i.Yb()),2&e&&(i.Jb("active",t.nzActive)("ant-table-filter-open",t.nzVisible),i.sc("nzClickHide",!1)("nzDropdownMenu",t.nzDropdownMenu)("nzVisible",t.nzVisible))},directives:[xu.b],encapsulation:2,changeDetection:0}),e}(),AE=function(){function e(e,t){this.cdr=e,this.i18n=t,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new i.n,this.destroy$=new kt.a,this.locale={},this.isChanged=!1,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[]}return e.prototype.trackByValue=function(e,t){return t.value},e.prototype.check=function(e){this.isChanged=!0,this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map((function(t){return t===e?Object(zt.a)(Object(zt.a)({},t),{checked:!e.checked}):t})),e.checked=!e.checked):this.listOfParsedFilter=this.listOfParsedFilter.map((function(t){return Object(zt.a)(Object(zt.a)({},t),{checked:t===e})})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)},e.prototype.confirm=function(){this.isVisible=!1,this.emitFilterData()},e.prototype.reset=function(){this.isChanged=!0,this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()},e.prototype.onVisibleChange=function(e){this.isVisible=e,e||this.emitFilterData()},e.prototype.emitFilterData=function(){if(this.isChanged){var e=this.listOfParsedFilter.filter((function(e){return e.checked})).map((function(e){return e.value}));this.filterChange.emit(this.filterMultiple?e:e[0]||null),this.isChanged=!1}},e.prototype.parseListOfFilter=function(e,t){return e.map((function(e){return{text:e.text,value:e.value,checked:!t&&!!e.byDefault}}))},e.prototype.getCheckedStatus=function(e){return e.some((function(e){return e.checked}))},e.prototype.ngOnInit=function(){var e=this;this.i18n.localeChange.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.locale=e.i18n.getLocaleData("Table"),e.cdr.markForCheck()}))},e.prototype.ngOnChanges=function(e){e.listOfFilter&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(Lp))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-table-filter"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-filter-column",!0)},inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[i.Bb],decls:3,vars:3,consts:[[1,"ant-table-filter-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(i.Zb(0,"span",0),i.Lc(1,Sx,0,0,"ng-template",1),i.Yb(),i.Lc(2,kx,13,8,"ng-container",2)),2&e&&(i.Db(1),i.sc("ngTemplateOutlet",t.contentTemplate),i.Db(1),i.sc("ngIf",!t.customFilter)("ngIfElse",t.extraTemplate))},directives:[Vr.A,Vr.t,IE,Hd.a,Ns.a,xu.e,YO.c,Vr.s,Wu.a,Ud.a,YO.f,Pb,Ot.o,Ot.r,Zy],encapsulation:2,changeDetection:0}),e}(),ME=function(){function e(){this.expand=!1,this.spaceMode=!1,this.expandChange=new i.n}return e.prototype.onHostClick=function(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["button","nz-row-expand-button",""]],hostVars:9,hostBindings:function(e,t){1&e&&i.hc("click",(function(){return t.onHostClick()})),2&e&&(i.cc("type","button"),i.Jb("ant-table-row-expand-icon",!0)("ant-table-row-expand-icon-expanded",!t.spaceMode&&!0===t.expand)("ant-table-row-expand-icon-collapsed",!t.spaceMode&&!1===t.expand)("ant-table-row-expand-icon-spaced",t.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"}}),e}(),LE=function(){function e(){this.indentSize=0}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["nz-row-indent"]],hostVars:4,hostBindings:function(e,t){2&e&&(i.Kc("padding-left",t.indentSize,"px"),i.Jb("ant-table-row-indent",!0))},inputs:{indentSize:"indentSize"}}),e}(),PE=function(){function e(){this.listOfSelections=[],this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.showCheckbox=!1,this.showRowSelection=!1,this.checkedChange=new i.n}return e.prototype.onCheckedChange=function(e){this.checked=e,this.checkedChange.emit(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-table-selection"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-selection",!0)},inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},decls:2,vars:2,consts:[["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate","ngModelChange",4,"ngIf"],["class","ant-table-selection-extra",4,"ngIf"],["nz-checkbox","",3,"ngModel","nzDisabled","nzIndeterminate","ngModelChange"],[1,"ant-table-selection-extra"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["selectionMenu","nzDropdownMenu"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],["nz-menu-item","",3,"click"]],template:function(e,t){1&e&&(i.Lc(0,Dx,1,5,"label",0),i.Lc(1,Ex,7,2,"div",1)),2&e&&(i.sc("ngIf",t.showCheckbox),i.Db(1),i.sc("ngIf",t.showRowSelection))},directives:[Vr.t,Zy,Ot.o,Ot.r,xu.b,Hd.a,Ns.a,xu.e,YO.c,Vr.s,YO.f],encapsulation:2,changeDetection:0}),e}(),FE=function(){function e(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}return e.prototype.ngOnChanges=function(e){e.sortDirections&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-table-sorters"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-column-sorters",!0)},inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[i.Bb],decls:6,vars:5,consts:[[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(e,t){1&e&&(i.Zb(0,"span"),i.Lc(1,Nx,0,0,"ng-template",0),i.Yb(),i.Zb(2,"span",1),i.Zb(3,"span",2),i.Lc(4,jx,1,2,"i",3),i.Lc(5,Ix,1,2,"i",4),i.Yb(),i.Yb()),2&e&&(i.Db(1),i.sc("ngTemplateOutlet",t.contentTemplate),i.Db(1),i.Jb("ant-table-column-sorter-full",t.isDown&&t.isUp),i.Db(2),i.sc("ngIf",t.isUp),i.Db(1),i.sc("ngIf",t.isDown))},directives:[Vr.A,Vr.t,Hd.a,Ns.a],encapsulation:2,changeDetection:0}),e}(),RE=function(){function e(e,t,n){this.cdr=e,this.renderer=t,this.elementRef=n,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.changes$=new kt.a,this.isFirstRight=!1,this.isLastLeft=!1,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}return e.prototype.setIsFirstRight=function(e){this.isFirstRight=e,this.cdr.markForCheck()},e.prototype.setIsLastLeft=function(e){this.isLastLeft=e,this.cdr.markForCheck()},e.prototype.setAutoLeftWidth=function(e){this.renderer.setStyle(this.elementRef.nativeElement,"left",e)},e.prototype.setAutoRightWidth=function(e){this.renderer.setStyle(this.elementRef.nativeElement,"right",e)},e.prototype.ngOnChanges=function(){this.isFirstRight=!1,this.isLastLeft=!1,this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;var e=function(e){return"string"==typeof e&&""!==e?e:null};this.setAutoLeftWidth(e(this.nzLeft)),this.setAutoRightWidth(e(this.nzRight)),this.changes$.next()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.E),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:10,hostBindings:function(e,t){2&e&&(i.Kc("position",t.isFixed?"sticky":null),i.Jb("ant-table-cell-fix-right",t.isFixedRight)("ant-table-cell-fix-left",t.isFixedLeft)("ant-table-cell-fix-right-first",t.isFirstRight)("ant-table-cell-fix-left-last",t.isLastLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan"},features:[i.Bb]}),e}(),VE=function(){function e(){this.theadTemplate$=new Os.a(1),this.hasFixLeft$=new Os.a(1),this.hasFixRight$=new Os.a(1),this.hostWidth$=new Os.a(1),this.columnCount$=new Os.a(1),this.showEmpty$=new Os.a(1),this.noResult$=new Os.a(1),this.listOfThWidthConfigPx$=new qu.a([]),this.tableWidthConfigPx$=new qu.a([]),this.manualWidthConfigPx$=Object(os.a)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe(Object(Mt.a)((function(e){var t=Object(zt.e)(e,2),n=t[0];return n.length?n:t[1]}))),this.listOfAutoWidthPx$=new Os.a(1),this.listOfListOfThWidthPx$=Object(Tt.a)(this.manualWidthConfigPx$,Object(os.a)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe(Object(Mt.a)((function(e){var t=Object(zt.e)(e,2),n=t[0],i=t[1];return n.length!==i.length?i:n})))),this.listOfMeasureColumn$=new Os.a(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe(Object(Mt.a)((function(e){return e.map((function(e){return parseInt(e,10)}))}))),this.enableAutoMeasure$=new Os.a(1)}return e.prototype.setTheadTemplate=function(e){this.theadTemplate$.next(e)},e.prototype.setHasFixLeft=function(e){this.hasFixLeft$.next(e)},e.prototype.setHasFixRight=function(e){this.hasFixRight$.next(e)},e.prototype.setTableWidthConfig=function(e){this.tableWidthConfigPx$.next(e)},e.prototype.setListOfTh=function(e){var t=0;e.forEach((function(e){t+=e.colspan&&+e.colspan||1}));var n=e.map((function(e){return e.nzWidth}));this.columnCount$.next(t),this.listOfThWidthConfigPx$.next(n)},e.prototype.setListOfMeasureColumn=function(e){var t=[];e.forEach((function(e){for(var n=e.colspan&&+e.colspan||1,i=0;i0)("ant-table-selection-column",t.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzIndentSize:"nzIndentSize",nzShowExpand:"nzShowExpand",nzShowCheckbox:"nzShowCheckbox",nzExpand:"nzExpand"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},features:[i.Bb],attrs:Ax,ngContentSelectors:Cx,decls:3,vars:2,consts:[[4,"ngIf"],["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange",4,"ngIf"],[3,"indentSize"],["nz-row-expand-button","",3,"expand","spaceMode","expandChange"],["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange"]],template:function(e,t){1&e&&(i.rc(),i.Lc(0,Mx,3,3,"ng-container",0),i.Lc(1,Lx,1,3,"label",1),i.qc(2)),2&e&&(i.sc("ngIf",t.nzShowExpand||t.nzIndentSize>0),i.Db(1),i.sc("ngIf",t.nzShowCheckbox))},directives:[Vr.t,LE,ME,Zy,Ot.o,Ot.r],encapsulation:2,changeDetection:0}),e}(),UE=function(){function e(e){this.cdr=e,this.manualClickOrder$=new kt.a,this.calcOperatorChange$=new kt.a,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new kt.a,this.destroy$=new kt.a,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new i.n,this.nzSortOrderChange=new i.n,this.nzFilterChange=new i.n,this.nzSort=null,this.nzSortChange=new i.n}return e.prototype.getNextSortDirection=function(e,t){var n=e.indexOf(t);return n===e.length-1?e[0]:e[n+1]},e.prototype.emitNextSortValue=function(){if(this.nzShowSort){var e=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(e),this.manualClickOrder$.next(this)}},e.prototype.setSortOrder=function(e){this.sortOrderChange$.next(e)},e.prototype.clearSortOrder=function(){null!==this.sortOrder&&this.setSortOrder(null)},e.prototype.onFilterValueChange=function(e){this.nzFilterChange.emit(e),this.nzFilterValue=e,this.updateCalcOperator()},e.prototype.updateCalcOperator=function(){this.calcOperatorChange$.next()},e.prototype.ngOnInit=function(){var e=this;this.sortOrderChange$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.sortOrder!==t&&(e.sortOrder=t,e.nzSortChange.emit(t),e.nzSortOrderChange.emit(t)),e.updateCalcOperator(),e.cdr.markForCheck()}))},e.prototype.ngOnChanges=function(e){var t=e.nzSortKey,n=e.nzSort,i=e.nzFilters,r=e.nzSortOrder,o=e.nzSortFn,a=e.nzFilterFn,s=e.nzSortPriority,c=e.nzFilterMultiple,u=e.nzShowSort,l=e.nzShowFilter;e.nzSortDirections&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),n&&(this.sortOrder=this.nzSort,this.setSortOrder(this.nzSort),Object(Hs.c)("'nzSort' and 'nzSortChange' is deprecated and will be removed in 10.0.0. Please use 'nzSortOrder' and 'nzSortOrderChange' instead.")),t&&(this.nzColumnKey=this.nzSortKey,Object(Hs.c)("'nzSortKey' is deprecated and will be removed in 10.0.0. Please use 'nzColumnKey' instead.")),r&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),u&&(this.isNzShowSortChanged=!0),l&&(this.isNzShowFilterChanged=!0);var p=function(e){return e&&e.firstChange&&void 0!==e.currentValue};if((p(t)||p(n)||p(r)||p(o))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),p(i)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(i||c)&&this.nzShowFilter){var h=this.nzFilters.filter((function(e){return e.byDefault})).map((function(e){return e.value}));this.nzFilterValue=this.nzFilterMultiple?h:h[0]||null}(o||a||s||i)&&this.updateCalcOperator()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowSort",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowFilter",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzCustomFilter",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["th","nzSortKey",""],["th","nzColumnKey",""],["th","nzSort",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(e,t){1&e&&i.hc("click",(function(){return t.emitNextSortValue()})),2&e&&i.Jb("ant-table-column-has-sorters",t.nzShowSort)("ant-table-column-sort","descend"===t.sortOrder||"ascend"===t.sortOrder)},inputs:{nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter",nzSort:"nzSort",nzColumnKey:"nzColumnKey",nzSortKey:"nzSortKey"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange",nzSortChange:"nzSortChange"},features:[i.Bb],attrs:Px,ngContentSelectors:Wx,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(e,t){if(1&e&&(i.rc(Hx),i.Lc(0,Fx,1,5,"nz-table-filter",0),i.Lc(1,Vx,1,1,"ng-template",null,1,i.Mc),i.Lc(3,Bx,2,0,"ng-template",null,2,i.Mc),i.Lc(5,Yx,1,3,"ng-template",null,3,i.Mc),i.Lc(7,Ux,1,0,"ng-template",null,4,i.Mc)),2&e){var n=i.Ac(2);i.sc("ngIf",t.nzShowFilter||t.nzCustomFilter)("ngIfElse",n)}},directives:[Vr.t,AE,Vr.A,FE],encapsulation:2,changeDetection:0}),e}(),HE=function(){function e(){this.changes$=new kt.a,this.nzWidth=null,this.colspan=null}return e.prototype.ngOnChanges=function(e){(e.nzWidth||e.colspan)&&this.changes$.next()},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan"},features:[i.Bb]}),e}(),WE=function(){function e(){this.nzSelections=[],this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzShowCheckbox=!1,this.nzShowRowSelection=!1,this.nzCheckedChange=new i.n,this.nzSortChangeWithKey=new i.n}return e.prototype.onCheckedChange=function(e){this.nzChecked=e,this.nzCheckedChange.emit(e)},e.prototype.ngOnChanges=function(e){var t=e.nzChecked,n=e.nzSelections;t&&t.firstChange&&(this.nzShowCheckbox=!0),n&&n.firstChange&&(this.nzShowRowSelection=!0)},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowCheckbox",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowRowSelection",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-selection-column",!0)},inputs:{nzSelections:"nzSelections",nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzShowCheckbox:"nzShowCheckbox",nzShowRowSelection:"nzShowRowSelection"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortChangeWithKey:"nzSortChangeWithKey"},features:[i.Bb],attrs:qx,ngContentSelectors:Cx,decls:2,vars:6,consts:[[3,"checked","disabled","indeterminate","listOfSelections","showCheckbox","showRowSelection","checkedChange"]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"nz-table-selection",0),i.hc("checkedChange",(function(e){return t.onCheckedChange(e)})),i.Yb(),i.qc(1)),2&e&&i.sc("checked",t.nzChecked)("disabled",t.nzDisabled)("indeterminate",t.nzIndeterminate)("listOfSelections",t.nzSelections)("showCheckbox",t.nzShowCheckbox)("showRowSelection",t.nzShowRowSelection)},directives:[PE],encapsulation:2,changeDetection:0}),e}(),qE=function(){function e(){this.nzAlign=null}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Kc("text-align",t.nzAlign)},inputs:{nzAlign:"nzAlign"}}),e}(),ZE=function(){function e(){this.nzEllipsis=!0}return Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzEllipsis",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["th","nzEllipsis",""],["td","nzEllipsis",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-cell-ellipsis",t.nzEllipsis)},inputs:{nzEllipsis:"nzEllipsis"}}),e}(),$E=function(){function e(){this.nzBreakWord=!0}return Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzBreakWord",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["th","nzBreakWord",""],["td","nzBreakWord",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Kc("word-break",t.nzBreakWord?"break-all":"")},inputs:{nzBreakWord:"nzBreakWord"}}),e}(),GE=function(){function e(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(e,t){2&e&&(i.Kc("table-layout",t.tableLayout)("width",t.scrollX)("min-width",t.scrollX?"100%":null),i.Jb("ant-table-fixed",t.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Zx,ngContentSelectors:Cx,decls:9,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Lc(1,$x,1,4,"col",0),i.Nc(2,"\n "),i.Lc(3,Qx,4,1,"thead",1),i.Nc(4,"\n "),i.Lc(5,Xx,0,0,"ng-template",2),i.Nc(6,"\n "),i.qc(7),i.Nc(8,"\n ")),2&e&&(i.Db(1),i.sc("ngForOf",t.listOfColWidth),i.Db(2),i.sc("ngIf",t.theadTemplate),i.Db(2),i.sc("ngTemplateOutlet",t.contentTemplate))},directives:[Vr.s,Vr.t,Vr.A],encapsulation:2,changeDetection:0}),e}(),QE=function(){function e(e,t){this.nzTableStyleService=e,this.renderer=t,this.hostWidth$=new qu.a(null),this.enableAutoMeasure$=new qu.a(!1),this.destroy$=new kt.a}return e.prototype.ngOnInit=function(){if(this.nzTableStyleService){var e=this.nzTableStyleService,t=e.hostWidth$;e.enableAutoMeasure$.subscribe(this.enableAutoMeasure$),t.subscribe(this.hostWidth$)}},e.prototype.ngAfterViewInit=function(){var e=this;this.nzTableStyleService.columnCount$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.renderer.setAttribute(e.tdElement.nativeElement,"colspan",""+t)}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(VE),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(e,t){var n;1&e&&i.Sc(Kx,!0),2&e&&i.zc(n=i.ic())&&(t.tdElement=n.first)},attrs:Jx,ngContentSelectors:Cx,decls:11,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(e,t){if(1&e&&(i.rc(),i.Nc(0,"\n "),i.Zb(1,"td",0,1),i.Nc(3,"\n "),i.Lc(4,tE,5,5,"div",2),i.lc(5,"async"),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Lc(8,nE,1,0,"ng-template",null,3,i.Mc),i.Nc(10,"\n ")),2&e){var n=i.Ac(9);i.Db(4),i.sc("ngIf",i.mc(5,2,t.enableAutoMeasure$))("ngIfElse",n)}},directives:[Vr.t,Vr.A],pipes:[Vr.b],encapsulation:2,changeDetection:0}),e}(),XE=function(){function e(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-table-inner-default"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-container",!0)},inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:6,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Ub(3,"table",1),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n ")),2&e&&(i.Db(3),i.sc("contentTemplate",t.contentTemplate)("tableLayout",t.tableLayout)("listOfColWidth",t.listOfColWidth)("theadTemplate",t.theadTemplate))},directives:[GE],encapsulation:2,changeDetection:0}),e}(),KE=function(){function e(e,t,n,i){this.renderer=e,this.ngZone=t,this.platform=n,this.resizeService=i,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=function(e){return e},this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new kt.a,this.scroll$=new kt.a,this.destroy$=new kt.a}return e.prototype.setScrollPositionClassName=function(e){void 0===e&&(e=!1);var t=this.tableBodyElement.nativeElement,n=t.scrollWidth,i=t.scrollLeft,r=t.clientWidth;n===r&&0!==n||e?(this.renderer.removeClass(this.tableMainElement,"ant-table-ping-left"),this.renderer.removeClass(this.tableMainElement,"ant-table-ping-right")):0===i?(this.renderer.removeClass(this.tableMainElement,"ant-table-ping-left"),this.renderer.addClass(this.tableMainElement,"ant-table-ping-right")):n===i+r?(this.renderer.removeClass(this.tableMainElement,"ant-table-ping-right"),this.renderer.addClass(this.tableMainElement,"ant-table-ping-left")):(this.renderer.addClass(this.tableMainElement,"ant-table-ping-left"),this.renderer.addClass(this.tableMainElement,"ant-table-ping-right"))},e.prototype.ngOnChanges=function(e){var t=e.data;(e.scrollX||e.scrollY)&&(this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&0!==this.verticalScrollBarWidth?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":null,overflowX:this.scrollX?"scroll":null,maxHeight:this.scrollY},this.scroll$.next()),t&&this.data$.next()},e.prototype.ngAfterViewInit=function(){var e=this;this.platform.isBrowser&&this.ngZone.runOutsideAngular((function(){var t=Object(Cs.a)(e.tableBodyElement.nativeElement,"scroll").pipe(Object(ss.a)(e.destroy$)),n=t.pipe(Object(Pt.a)((function(){return!!e.scrollX}))),i=t.pipe(Object(Pt.a)((function(){return!!e.scrollY}))),r=e.resizeService.subscribe().pipe(Object(ss.a)(e.destroy$)),o=e.data$.pipe(Object(ss.a)(e.destroy$));Object(Tt.a)(n,r,o,e.scroll$).pipe(Object(Ka.a)(!0),Ic(0)).subscribe((function(){return e.setScrollPositionClassName()})),i.subscribe((function(){return e.tableHeaderElement.nativeElement.scrollLeft=e.tableBodyElement.nativeElement.scrollLeft}))}))},e.prototype.ngOnDestroy=function(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.E),i.Tb(i.z),i.Tb(Xr.a),i.Tb(ds))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-table-inner-scroll"]],viewQuery:function(e,t){var n;1&e&&(i.Sc(iE,!0,i.l),i.Sc(rE,!0,i.l),i.Sc(Rb.c,!0,Rb.c)),2&e&&(i.zc(n=i.ic())&&(t.tableHeaderElement=n.first),i.zc(n=i.ic())&&(t.tableBodyElement=n.first),i.zc(n=i.ic())&&(t.cdkVirtualScrollViewport=n.first))},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-container",!0)},inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth",tableMainElement:"tableMainElement"},features:[i.Bb],decls:10,vars:3,consts:[[1,"ant-table-content"],["class","ant-table-header nz-table-hide-scrollbar",3,"ngStyle",4,"ngIf"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Lc(3,oE,5,4,"div",1),i.Nc(4,"\n "),i.Lc(5,aE,5,5,"div",2),i.Nc(6,"\n "),i.Lc(7,lE,11,9,"cdk-virtual-scroll-viewport",3),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(3),i.sc("ngIf",t.scrollY),i.Db(2),i.sc("ngIf",!t.virtualTemplate),i.Db(2),i.sc("ngIf",t.virtualTemplate))},directives:function(){return[Vr.t,Vr.w,GE,Rb.c,Rb.a,nN,Rb.b,Vr.A]},encapsulation:2,changeDetection:0}),e}(),JE=function(){function e(e){this.templateRef=e}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.M))},e.\u0275dir=i.Ob({type:e,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),e}(),eN=function(){function e(){var e=this;this.destroy$=new kt.a,this.pageIndex$=new qu.a(1),this.frontPagination$=new qu.a(!0),this.pageSize$=new qu.a(10),this.listOfData$=new qu.a([]),this.pageIndexDistinct$=this.pageIndex$.pipe(Object(Ja.a)()),this.pageSizeDistinct$=this.pageSize$.pipe(Object(Ja.a)()),this.listOfCalcOperator$=new qu.a([]),this.queryParams$=Object(os.a)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe(Object(Gr.a)(0),Object(as.a)(1),Object(Mt.a)((function(e){var t=Object(zt.e)(e,3),n=t[2];return{pageIndex:t[0],pageSize:t[1],sort:n.filter((function(e){return e.sortFn})).map((function(e){return{key:e.key,value:e.sortOrder}})),filter:n.filter((function(e){return e.filterFn})).map((function(e){return{key:e.key,value:e.filterValue}}))}}))),this.listOfDataAfterCalc$=Object(os.a)([this.listOfData$,this.listOfCalcOperator$]).pipe(Object(Mt.a)((function(e){var t,n,i=Object(zt.e)(e,2),r=i[0],o=i[1],a=Object(zt.g)(r),s=o.filter((function(e){var t=e.filterValue,n=e.filterFn;return!(null==t||Array.isArray(t)&&0===t.length)&&"function"==typeof n})),c=function(e){var t=e.filterFn,n=e.filterValue;a=a.filter((function(e){return t(n,e)}))};try{for(var u=Object(zt.h)(s),l=u.next();!l.done;l=u.next())c(l.value)}catch(h){t={error:h}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var p=o.filter((function(e){return null!==e.sortOrder&&"function"==typeof e.sortFn})).sort((function(e,t){return+t.sortPriority-+e.sortPriority}));return a.sort((function(e,t){var n,i;try{for(var r=Object(zt.h)(p),o=r.next();!o.done;o=r.next()){var a=o.value,s=a.sortFn,c=a.sortOrder;if(s&&c){var u=s(e,t,c);if(0!==u)return"ascend"===c?u:-u}}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return 0})),a}))),this.listOfFrontEndCurrentPageData$=Object(os.a)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe(Object(ss.a)(this.destroy$),Object(Pt.a)((function(e){var t=Object(zt.e)(e,3);return t[0]<=(Math.ceil(t[2].length/t[1])||1)})),Object(Mt.a)((function(e){var t=Object(zt.e)(e,3),n=t[0],i=t[1];return t[2].slice((n-1)*i,n*i)}))),this.listOfCurrentPageData$=this.frontPagination$.pipe(Object(sc.a)((function(t){return t?e.listOfFrontEndCurrentPageData$:e.listOfData$}))),this.total$=this.frontPagination$.pipe(Object(sc.a)((function(t){return t?e.listOfDataAfterCalc$:e.listOfData$})),Object(Mt.a)((function(e){return e.length})),Object(Ja.a)())}return e.prototype.updatePageSize=function(e){this.pageSize$.next(e)},e.prototype.updateFrontPagination=function(e){this.frontPagination$.next(e)},e.prototype.updatePageIndex=function(e){this.pageIndex$.next(e)},e.prototype.updateListOfData=function(e){this.listOfData$.next(e)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),tN=function(){function e(e,t,n,r,o,a){var s=this;this.elementRef=e,this.nzResizeObserver=t,this.nzConfigService=n,this.cdr=r,this.nzTableStyleService=o,this.nzTableDataService=a,this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzLoadingIndicator=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=function(e){return e},this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new i.n,this.nzPageIndexChange=new i.n,this.nzQueryParams=new i.n,this.nzCurrentPageDataChange=new i.n,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.destroy$=new kt.a,this.loading$=new qu.a(!1),this.templateMode$=new qu.a(!1),this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe(Object(ss.a)(this.destroy$)).subscribe((function(){s.cdr.markForCheck()}))}return e.prototype.onPageSizeChange=function(e){this.nzTableDataService.updatePageSize(e)},e.prototype.onPageIndexChange=function(e){this.nzTableDataService.updatePageIndex(e)},e.prototype.ngOnInit=function(){var e=this,t=this.nzTableDataService,n=t.pageIndexDistinct$,i=t.pageSizeDistinct$,r=t.listOfCurrentPageData$,o=t.total$,a=this.nzTableStyleService,s=a.theadTemplate$,c=a.hasFixLeft$,u=a.hasFixRight$;t.queryParams$.pipe(Object(ss.a)(this.destroy$)).subscribe(this.nzQueryParams),n.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){t!==e.nzPageIndex&&(e.nzPageIndex=t,e.nzPageIndexChange.next(t))})),i.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){t!==e.nzPageSize&&(e.nzPageSize=t,e.nzPageSizeChange.next(t))})),o.pipe(Object(ss.a)(this.destroy$),Object(Pt.a)((function(){return e.nzFrontPagination}))).subscribe((function(t){t!==e.nzTotal&&(e.nzTotal=t,e.cdr.markForCheck())})),r.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.data=t,e.nzCurrentPageDataChange.next(t),e.cdr.markForCheck()})),s.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.theadTemplate=t,e.cdr.markForCheck()})),c.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.hasFixLeft=t,e.cdr.markForCheck()})),u.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.hasFixRight=t,e.cdr.markForCheck()})),Object(os.a)([o,this.loading$,this.templateMode$]).pipe(Object(Mt.a)((function(e){var t=Object(zt.e)(e,3);return 0===t[0]&&!t[1]&&!t[2]})),Object(ss.a)(this.destroy$)).subscribe((function(t){e.nzTableStyleService.setShowEmpty(t)})),this.verticalScrollBarWidth=Object(es.v)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.listOfColWidth=t,e.cdr.markForCheck()}))},e.prototype.ngOnChanges=function(e){var t=e.nzScroll,n=e.nzPageSize,i=e.nzFrontPagination,r=e.nzData,o=e.nzWidthConfig,a=e.nzNoResult,s=e.nzLoading,c=e.nzTemplateMode;e.nzPageIndex&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),n&&this.nzTableDataService.updatePageSize(this.nzPageSize),r&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),i&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),t&&(this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)),o&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),s&&this.loading$.next(this.nzLoading),c&&this.templateMode$.next(this.nzTemplateMode),a&&this.nzTableStyleService.setNoResult(this.nzNoResult)},e.prototype.ngAfterViewInit=function(){var e=this;this.nzResizeObserver.observe(this.elementRef).pipe(Object(Mt.a)((function(t){var n=Object(zt.e)(t,1)[0].target.getBoundingClientRect().width;return Math.floor(n-(e.scrollY?e.verticalScrollBarWidth:0))})),Object(ss.a)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzFrontPagination",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzTemplateMode",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowPagination",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzLoading",void 0),Object(zt.b)([Object(Qa.b)("table"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzBordered",void 0),Object(zt.b)([Object(Qa.b)("table"),Object(zt.d)("design:type",String)],e.prototype,"nzSize",void 0),Object(zt.b)([Object(Qa.b)("table"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowSizeChanger",void 0),Object(zt.b)([Object(Qa.b)("table"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzHideOnSinglePage",void 0),Object(zt.b)([Object(Qa.b)("table"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowQuickJumper",void 0),Object(zt.b)([Object(Qa.b)("table"),Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzSimple",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(yx),i.Tb(Qa.a),i.Tb(i.h),i.Tb(VE),i.Tb(eN))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-table"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,JE,!0),2&e&&i.zc(r=i.ic())&&(t.nzVirtualScrollDirective=r.first)},viewQuery:function(e,t){var n;1&e&&i.Sc(KE,!0),2&e&&i.zc(n=i.ic())&&(t.nzTableInnerScrollComponent=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-wrapper",!0)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzLoadingIndicator:"nzLoadingIndicator",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[i.Cb([VE,eN]),i.Bb],ngContentSelectors:Cx,decls:14,vars:23,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(e,t){if(1&e&&(i.rc(),i.Zb(0,"nz-spin",0),i.Lc(1,hE,2,1,"ng-container",1),i.Zb(2,"div",2,3),i.Lc(4,dE,1,1,"nz-table-title-footer",4),i.Lc(5,fE,1,13,"nz-table-inner-scroll",5),i.Lc(6,gE,1,4,"ng-template",null,6,i.Mc),i.Lc(8,bE,1,1,"nz-table-title-footer",7),i.Yb(),i.Lc(9,vE,2,1,"ng-container",1),i.Yb(),i.Lc(10,wE,1,1,"ng-template",null,8,i.Mc),i.Lc(12,OE,1,0,"ng-template",null,9,i.Mc)),2&e){var n=i.Ac(7);i.sc("nzDelay",t.nzLoadingDelay)("nzSpinning",t.nzLoading)("nzIndicator",t.nzLoadingIndicator),i.Db(1),i.sc("ngIf","both"===t.nzPaginationPosition||"top"===t.nzPaginationPosition),i.Db(1),i.Jb("ant-table-fixed-header",t.nzData.length&&t.scrollY)("ant-table-fixed-column",t.scrollX)("ant-table-has-fix-left",t.hasFixLeft)("ant-table-has-fix-right",t.hasFixRight)("ant-table-bordered",t.nzBordered)("ant-table-middle","middle"===t.nzSize)("ant-table-small","small"===t.nzSize),i.Db(2),i.sc("ngIf",t.nzTitle),i.Db(1),i.sc("ngIf",t.scrollY||t.scrollX)("ngIfElse",n),i.Db(3),i.sc("ngIf",t.nzFooter),i.Db(1),i.sc("ngIf","both"===t.nzPaginationPosition||"bottom"===t.nzPaginationPosition)}},directives:function(){return[dC,Vr.t,Vr.A,oN,KE,XE,FT]},encapsulation:2,changeDetection:0}),e}(),nN=function(){function e(e){if(this.nzTableStyleService=e,this.isInsideTable=!1,this.showEmpty$=new qu.a(!1),this.noResult$=new qu.a(void 0),this.listOfMeasureColumn$=new qu.a([]),this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){var t=this.nzTableStyleService,n=t.showEmpty$,i=t.listOfMeasureColumn$;t.noResult$.subscribe(this.noResult$),i.subscribe(this.listOfMeasureColumn$),n.subscribe(this.showEmpty$)}}return e.prototype.onListOfAutoWidthChange=function(e){this.nzTableStyleService.setListOfAutoWidth(e)},e.\u0275fac=function(t){return new(t||e)(i.Tb(VE,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["tbody"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-tbody",t.isInsideTable)},ngContentSelectors:Cx,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(e,t){1&e&&(i.rc(),i.Lc(0,SE,2,1,"ng-container",0),i.lc(1,"async"),i.qc(2),i.Lc(3,zE,3,3,"tr",1),i.lc(4,"async")),2&e&&(i.sc("ngIf",i.mc(1,2,t.listOfMeasureColumn$)),i.Db(3),i.sc("ngIf",i.mc(4,4,t.showEmpty$)))},directives:function(){return[Vr.t,sN,QE,im]},pipes:function(){return[Vr.b]},encapsulation:2,changeDetection:0}),e}(),iN=function(){function e(e){var t=this;this.nzTableStyleService=e,this.destroy$=new kt.a,this.listOfFixedColumns$=new Os.a(1),this.listOfColumns$=new Os.a(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe(Object(sc.a)((function(e){return Tt.a.apply(void 0,Object(zt.g)([t.listOfFixedColumns$],e.map((function(e){return e.changes$})))).pipe(Object(Wt.a)((function(){return t.listOfFixedColumns$})))})),Object(ss.a)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Object(Mt.a)((function(e){return e.filter((function(e){return!1!==e.nzLeft}))}))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Object(Mt.a)((function(e){return e.filter((function(e){return!1!==e.nzRight}))}))),this.listOfColumnsChanges$=this.listOfColumns$.pipe(Object(sc.a)((function(e){return Tt.a.apply(void 0,Object(zt.g)([t.listOfColumns$],e.map((function(e){return e.changes$})))).pipe(Object(Wt.a)((function(){return t.listOfColumns$})))})),Object(ss.a)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!e}return e.prototype.ngAfterContentInit=function(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe(Object(Ka.a)(this.listOfCellFixedDirective),Object(ss.a)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe(Object(Ka.a)(this.listOfNzThDirective),Object(ss.a)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe((function(e){e.forEach((function(t){return t.setIsLastLeft(t===e[e.length-1])}))})),this.listOfFixedRightColumnChanges$.subscribe((function(e){e.forEach((function(t){return t.setIsFirstRight(t===e[0])}))})),Object(os.a)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).subscribe((function(e){var t=Object(zt.e)(e,2),n=t[0],i=t[1];i.forEach((function(e,t){if(e.isAutoLeft){var r=i.slice(0,t).reduce((function(e,t){return e+(t.colspan||1)}),0),o=n.slice(0,r).reduce((function(e,t){return e+t}),0);e.setAutoLeftWidth(o+"px")}}))})),Object(os.a)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).subscribe((function(e){var t=Object(zt.e)(e,2),n=t[0],i=t[1];i.forEach((function(e,t){var r=i[i.length-t-1];if(r.isAutoRight){var o=i.slice(i.length-t,i.length).reduce((function(e,t){return e+(t.colspan||1)}),0),a=n.slice(n.length-o,n.length).reduce((function(e,t){return e+t}),0);r.setAutoRightWidth(a+"px")}}))})))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(VE,8))},e.\u0275dir=i.Ob({type:e,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Lb(n,HE,!1),i.Lb(n,RE,!1)),2&e&&(i.zc(r=i.ic())&&(t.listOfNzThDirective=r),i.zc(r=i.ic())&&(t.listOfCellFixedDirective=r))},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-row",t.isInsideTable)}}),e}(),rN=function(){function e(e,t,n,r){this.elementRef=e,this.renderer=t,this.nzTableStyleService=n,this.nzTableDataService=r,this.destroy$=new kt.a,this.isInsideTable=!1,this.nzSingleSort=!1,this.nzSortChange=new i.n,this.nzSortOrderChange=new i.n,this.isInsideTable=!!this.nzTableStyleService}return e.prototype.ngOnInit=function(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)},e.prototype.ngOnChanges=function(e){e.nzSingleSort&&Object(Hs.c)("'nzSingleSort' is deprecated and will be removed in 10.0.0. Please use use 'nzSortFn' and 'nzSortPriority' instead instead.")},e.prototype.ngAfterContentInit=function(){var e=this;if(this.nzTableStyleService){var t=this.listOfNzTrDirective.changes.pipe(Object(Ka.a)(this.listOfNzTrDirective),Object(Mt.a)((function(e){return e&&e.first}))),n=t.pipe(Object(sc.a)((function(e){return e?e.listOfColumnsChanges$:Ox.a})),Object(ss.a)(this.destroy$));n.subscribe((function(t){return e.nzTableStyleService.setListOfTh(t)})),this.nzTableStyleService.enableAutoMeasure$.pipe(Object(sc.a)((function(e){return e?n:Object(qr.a)([])}))).pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){return e.nzTableStyleService.setListOfMeasureColumn(t)}));var i=t.pipe(Object(sc.a)((function(e){return e?e.listOfFixedLeftColumnChanges$:Ox.a})),Object(ss.a)(this.destroy$)),r=t.pipe(Object(sc.a)((function(e){return e?e.listOfFixedRightColumnChanges$:Ox.a})),Object(ss.a)(this.destroy$));i.subscribe((function(t){e.nzTableStyleService.setHasFixLeft(0!==t.length)})),r.subscribe((function(t){e.nzTableStyleService.setHasFixRight(0!==t.length)}))}if(this.nzTableDataService){var o=this.listOfNzThAddOnComponent.changes.pipe(Object(Ka.a)(this.listOfNzThAddOnComponent));o.pipe(Object(sc.a)((function(){return Tt.a.apply(void 0,Object(zt.g)(e.listOfNzThAddOnComponent.map((function(e){return e.manualClickOrder$}))))})),Object(ss.a)(this.destroy$)).subscribe((function(t){var n={key:t.nzColumnKey,value:t.sortOrder};e.nzSortChange.emit(n),e.nzSortOrderChange.emit(n),(e.nzSingleSort||t.nzSortFn&&!1===t.nzSortPriority)&&e.listOfNzThAddOnComponent.filter((function(e){return e!==t})).forEach((function(e){return e.clearSortOrder()}))})),o.pipe(Object(sc.a)((function(e){return Tt.a.apply(void 0,Object(zt.g)([o],e.map((function(e){return e.calcOperatorChange$})))).pipe(Object(Wt.a)((function(){return o})))})),Object(Mt.a)((function(e){return e.filter((function(e){return!!e.nzSortFn||!!e.nzFilterFn})).map((function(e){return{key:e.nzColumnKey,sortFn:e.nzSortFn,sortPriority:e.nzSortPriority,sortOrder:e.sortOrder,filterFn:e.nzFilterFn,filterValue:e.nzFilterValue}}))})),Ic(0)).subscribe((function(t){e.nzTableDataService.listOfCalcOperator$.next(t)}))}},e.prototype.ngAfterViewInit=function(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSingleSort",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E),i.Tb(VE,8),i.Tb(eN,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(e,t,n){var r;1&e&&(i.Lb(n,iN,!1),i.Lb(n,UE,!0)),2&e&&(i.zc(r=i.ic())&&(t.listOfNzTrDirective=r),i.zc(r=i.ic())&&(t.listOfNzThAddOnComponent=r))},viewQuery:function(e,t){var n;1&e&&i.Jc(TE,!0),2&e&&i.zc(n=i.ic())&&(t.templateRef=n.first)},inputs:{nzSingleSort:"nzSingleSort"},outputs:{nzSortChange:"nzSortChange",nzSortOrderChange:"nzSortOrderChange"},features:[i.Bb],ngContentSelectors:Cx,decls:6,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(i.rc(),i.Nc(0,"\n "),i.Lc(1,_E,3,0,"ng-template",null,0,i.Mc),i.Nc(3,"\n "),i.Lc(4,DE,4,1,"ng-container",1),i.Nc(5,"\n ")),2&e&&(i.Db(4),i.sc("ngIf",!t.isInsideTable))},directives:[Vr.t,Vr.A],encapsulation:2,changeDetection:0}),e}(),oN=function(){function e(){this.title=null,this.footer=null}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Jb("ant-table-title",null!==t.title)("ant-table-footer",null!==t.footer)},inputs:{title:"title",footer:"footer"},decls:5,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Lc(1,xE,2,1,"ng-container",0),i.Nc(2,"\n "),i.Lc(3,EE,2,1,"ng-container",0),i.Nc(4,"\n ")),2&e&&(i.Db(1),i.sc("nzStringTemplateOutlet",t.title),i.Db(2),i.sc("nzStringTemplateOutlet",t.footer))},directives:[Es.b],encapsulation:2,changeDetection:0}),e}(),aN=function(){function e(){this.nzExpand=!0}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["tr","nzExpand",""]],hostVars:3,hostBindings:function(e,t){2&e&&(i.cc("hidden",!t.nzExpand),i.Jb("ant-table-expanded-row",!0))},inputs:{nzExpand:"nzExpand"}}),e}(),sN=function(){function e(e,t){this.nzResizeObserver=e,this.ngZone=t,this.listOfMeasureColumn=[],this.listOfAutoWidth=new i.n,this.destroy$=new kt.a}return e.prototype.trackByFunc=function(e,t){return t},e.prototype.ngAfterViewInit=function(){var e=this;this.listOfTdElement.changes.pipe(Object(Ka.a)(this.listOfTdElement)).pipe(Object(sc.a)((function(t){return Object(os.a)(t.toArray().map((function(t){return e.nzResizeObserver.observe(t).pipe(Object(Mt.a)((function(e){var t=Object(zt.e)(e,1)[0].target.getBoundingClientRect().width;return Math.floor(t)})))})))})),Object(Gr.a)(16),Object(ss.a)(this.destroy$)).subscribe((function(t){e.ngZone.run((function(){e.listOfAutoWidth.next(t)}))}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.\u0275fac=function(t){return new(t||e)(i.Tb(yx),i.Tb(i.z))},e.\u0275cmp=i.Nb({type:e,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(e,t){var n;1&e&&i.Sc(Kx,!0),2&e&&i.zc(n=i.ic())&&(t.listOfTdElement=n)},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-table-measure-now",!0)},inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:NE,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(e,t){1&e&&i.Lc(0,jE,2,0,"td",0),2&e&&i.sc("ngForOf",t.listOfMeasureColumn)("ngForTrackBy",t.trackByFunc)},directives:[Vr.s],encapsulation:2,changeDetection:0}),e}(),cN=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[YO.g,Ot.j,Es.a,Fb,Gy,xu.c,Wu.c,Vr.c,Xr.b,UT,wx,fC,Fp,Ns.b,cm,Rb.e]]}),e}(),uN=n("CCO+"),lN=["nz-tab-body",""];function pN(e,t){}function hN(e,t){if(1&e&&(i.Xb(0),i.Lc(1,pN,0,0,"ng-template",1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.sc("ngTemplateOutlet",n.content)}}var dN=["bodyTpl"],fN=["titleTpl"];function gN(e,t){1&e&&i.qc(0)}function bN(e,t){1&e&&i.qc(0,1)}var mN=[[["","nz-tab-link",""]],"*"],vN=["[nz-tab-link]","*"],yN=["navContainerElement"],wN=["navListElement"],ON=["scrollListElement"];function CN(e,t){}function SN(e,t){if(1&e&&(i.Zb(0,"div",15),i.Lc(1,CN,0,0,"ng-template",16),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("ngTemplateOutlet",n.nzTabBarExtraContent)}}var zN=["*"],TN=["tabContent"];function _N(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc().$implicit;i.Db(1),i.Oc(n.nzTitle)}}function kN(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",6),i.hc("click",(function(){i.Dc(n);var e=t.index,r=t.$implicit;return i.kc(2).clickLabel(e,r.nzDisabled)})),i.Lc(1,_N,2,1,"ng-container",7),i.Yb()}if(2&e){var r=t.$implicit,o=t.index,a=i.kc(2);i.Kc("margin-right",a.nzTabBarGutter,"px"),i.Jb("ant-tabs-tab-active",a.nzSelectedIndex==o&&!a.nzHideAll),i.sc("disabled",r.nzDisabled),i.Db(1),i.sc("nzStringTemplateOutlet",r.nzTitle||r.title)}}function DN(e,t){if(1&e&&i.Ub(0,"div",8),2&e){var n=t.$implicit,r=t.index,o=i.kc(2);i.sc("active",o.nzSelectedIndex==r&&!o.nzHideAll)("forceRender",n.nzForceRender)("content",n.template||n.content)}}function xN(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Zb(1,"nz-tabs-nav",1),i.hc("nzOnNextClick",(function(){return i.Dc(n),i.kc().nzOnNextClick.emit()}))("nzOnPrevClick",(function(){return i.Dc(n),i.kc().nzOnPrevClick.emit()})),i.Lc(2,kN,2,6,"div",2),i.Yb(),i.Zb(3,"div",3,4),i.Lc(5,DN,1,3,"div",5),i.Yb(),i.Wb()}if(2&e){var r=i.kc();i.Db(1),i.sc("nzSize",r.nzSize)("nzTabPosition",r.nzTabPosition)("nzType",r.nzType)("nzShowPagination",r.nzShowPagination)("nzPositionMode",r.tabPositionMode)("nzAnimated",r.inkBarAnimated)("ngStyle",r.nzTabBarStyle)("nzHideBar",r.nzHideAll)("nzTabBarExtraContent",r.nzTabBarExtraContent)("selectedIndex",r.nzSelectedIndex),i.Db(1),i.sc("ngForOf",r.listOfNzTabComponent),i.Db(1),i.Kc("margin-left","horizontal"===r.tabPositionMode&&r.tabPaneAnimated&&100*(0-(r.nzSelectedIndex||0)),"%"),i.Jb("ant-tabs-top-content","top"===r.nzTabPosition)("ant-tabs-bottom-content","bottom"===r.nzTabPosition)("ant-tabs-left-content","left"===r.nzTabPosition)("ant-tabs-right-content","right"===r.nzTabPosition)("ant-tabs-content-animated",r.tabPaneAnimated)("ant-tabs-card-content","card"===r.nzType)("ant-tabs-content-no-animated",!r.tabPaneAnimated),i.Db(2),i.sc("ngForOf",r.listOfNzTabComponent)}}var EN=function(){function e(){this.content=null,this.active=!1,this.forceRender=!1}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-tab-body",""]],hostVars:4,hostBindings:function(e,t){2&e&&i.Jb("ant-tabs-tabpane-active",t.active)("ant-tabs-tabpane-inactive",!t.active)},inputs:{content:"content",active:"active",forceRender:"forceRender"},exportAs:["nzTabBody"],attrs:lN,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&i.Lc(0,hN,2,1,"ng-container",0),2&e&&i.sc("ngIf",t.active||t.forceRender)},directives:[Vr.t,Vr.A],encapsulation:2,changeDetection:0}),e}(),NN=function(){function e(e,t){this.elementRef=e,this.disabled=!1,t.addClass(e.nativeElement,"ant-tabs-tab")}return e.prototype.getOffsetLeft=function(){return this.elementRef.nativeElement.offsetLeft},e.prototype.getOffsetWidth=function(){return this.elementRef.nativeElement.offsetWidth},e.prototype.getOffsetTop=function(){return this.elementRef.nativeElement.offsetTop},e.prototype.getOffsetHeight=function(){return this.elementRef.nativeElement.offsetHeight},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"disabled",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E))},e.\u0275dir=i.Ob({type:e,selectors:[["","nz-tab-label",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-tabs-tab-disabled",t.disabled)},inputs:{disabled:"disabled"},exportAs:["nzTabLabel"]}),e}(),jN=function(){function e(e,t){this.routerLink=e,this.routerLinkWithHref=t}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Eu.e,10),i.Tb(Eu.f,10))},e.\u0275dir=i.Ob({type:e,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]}),e}(),IN=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","nz-tab",""]],exportAs:["nzTab"]}),e}(),AN=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.position=null,this.origin=null,this.isActive=!1,this.stateChanges=new kt.a,this.nzForceRender=!1,this.nzDisabled=!1,this.nzClick=new i.n,this.nzSelect=new i.n,this.nzDeselect=new i.n,this.renderer.addClass(e.nativeElement,"ant-tabs-tabpane")}return e.prototype.ngOnChanges=function(e){(e.nzTitle||e.nzForceRender||e.nzDisabled)&&this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzForceRender",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-tab"]],contentQueries:function(e,t,n){var r;1&e&&(i.Lb(n,IN,!0,i.M),i.Lb(n,jN,!0)),2&e&&(i.zc(r=i.ic())&&(t.template=r.first),i.zc(r=i.ic())&&(t.linkDirective=r.first))},viewQuery:function(e,t){var n;1&e&&(i.Jc(dN,!0),i.Jc(fN,!0)),2&e&&(i.zc(n=i.ic())&&(t.content=n.first),i.zc(n=i.ic())&&(t.title=n.first))},inputs:{nzForceRender:"nzForceRender",nzDisabled:"nzDisabled",nzTitle:"nzTitle",nzRouterIdentifier:"nzRouterIdentifier"},outputs:{nzClick:"nzClick",nzSelect:"nzSelect",nzDeselect:"nzDeselect"},exportAs:["nzTab"],features:[i.Bb],ngContentSelectors:vN,decls:4,vars:0,consts:[["titleTpl",""],["bodyTpl",""]],template:function(e,t){1&e&&(i.rc(mN),i.Lc(0,gN,1,0,"ng-template",null,0,i.Mc),i.Lc(2,bN,1,0,"ng-template",null,1,i.Mc))},encapsulation:2,changeDetection:0}),e}(),MN=function(){function e(e,t,n){this.renderer=e,this.elementRef=t,this.ngZone=n,this.nzAnimated=!1,this.nzPositionMode="horizontal",e.addClass(t.nativeElement,"ant-tabs-ink-bar")}return e.prototype.alignToElement=function(e){var t=this;"undefined"!=typeof requestAnimationFrame?this.ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.setStyles(e)}))})):this.setStyles(e)},e.prototype.setStyles=function(e){"horizontal"===this.nzPositionMode?(this.renderer.removeStyle(this.elementRef.nativeElement,"height"),this.renderer.setStyle(this.elementRef.nativeElement,"transform","translate3d("+this.getLeftPosition(e)+", 0px, 0px)"),this.renderer.setStyle(this.elementRef.nativeElement,"width",this.getElementWidth(e))):(this.renderer.removeStyle(this.elementRef.nativeElement,"width"),this.renderer.setStyle(this.elementRef.nativeElement,"transform","translate3d(0px, "+this.getTopPosition(e)+", 0px)"),this.renderer.setStyle(this.elementRef.nativeElement,"height",this.getElementHeight(e)))},e.prototype.getLeftPosition=function(e){return e?e.offsetLeft+"px":"0"},e.prototype.getElementWidth=function(e){return e?e.offsetWidth+"px":"0"},e.prototype.getTopPosition=function(e){return e?e.offsetTop+"px":"0"},e.prototype.getElementHeight=function(e){return e?e.offsetHeight+"px":"0"},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAnimated",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.E),i.Tb(i.l),i.Tb(i.z))},e.\u0275dir=i.Ob({type:e,selectors:[["","nz-tabs-ink-bar",""]],hostVars:4,hostBindings:function(e,t){2&e&&i.Jb("ant-tabs-ink-bar-animated",t.nzAnimated)("ant-tabs-ink-bar-no-animated",!t.nzAnimated)},inputs:{nzAnimated:"nzAnimated",nzPositionMode:"nzPositionMode"},exportAs:["nzTabsInkBar"]}),e}(),LN=function(){function e(e,t,n,r,o,a,s){this.elementRef=e,this.ngZone=t,this.renderer=n,this.cdr=r,this.platform=o,this.resizeService=a,this.dir=s,this._tabPositionMode="horizontal",this._scrollDistance=0,this._selectedIndex=0,this.destroy$=new kt.a,this.showPaginationControls=!1,this.disableScrollAfter=!0,this.disableScrollBefore=!0,this.selectedIndexChanged=!1,this.realignInkBar=null,this.nzOnNextClick=new i.n,this.nzOnPrevClick=new i.n,this.nzAnimated=!0,this.nzHideBar=!1,this.nzShowPagination=!0,this.nzType="line",this.nzTabPosition="top"}return Object.defineProperty(e.prototype,"nzPositionMode",{get:function(){return this._tabPositionMode},set:function(e){var t=this;this._tabPositionMode=e,this.alignInkBarToSelectedTab(),this.nzShowPagination&&Promise.resolve().then((function(){t.updatePagination()}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){this.selectedIndexChanged=this._selectedIndex!==e,this._selectedIndex=e},enumerable:!0,configurable:!0}),e.prototype.onContentChanges=function(){var e=this,t=this.elementRef.nativeElement.textContent;t!==this.currentTextContent&&(this.currentTextContent=t,this.ngZone.run((function(){e.nzShowPagination&&e.updatePagination(),e.alignInkBarToSelectedTab(),e.cdr.markForCheck()})))},e.prototype.scrollHeader=function(e){"before"!==e||this.disableScrollBefore?"after"!==e||this.disableScrollAfter||this.nzOnNextClick.emit():this.nzOnPrevClick.emit(),this.scrollDistance+=("before"===e?-1:1)*this.viewWidthHeightPix/3},e.prototype.ngAfterContentChecked=function(){this.tabLabelCount!==this.listOfNzTabLabelDirective.length&&(this.nzShowPagination&&this.updatePagination(),this.tabLabelCount=this.listOfNzTabLabelDirective.length,this.cdr.markForCheck()),this.selectedIndexChanged&&(this.scrollToLabel(this._selectedIndex),this.nzShowPagination&&this.checkScrollingControls(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck()),this.scrollDistanceChanged&&(this.nzShowPagination&&this.updateTabScrollPosition(),this.scrollDistanceChanged=!1,this.cdr.markForCheck())},e.prototype.ngAfterContentInit=function(){var e=this;this.realignInkBar=this.ngZone.runOutsideAngular((function(){var t=e.dir?e.dir.change:Object(qr.a)(null),n="undefined"!=typeof window?e.resizeService.subscribe().pipe(Object(ss.a)(e.destroy$)):Object(qr.a)(null);return Object(Tt.a)(t,n).pipe(Object(Ka.a)(null)).subscribe((function(){e.nzShowPagination&&e.updatePagination(),e.alignInkBarToSelectedTab()}))}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.realignInkBar&&this.realignInkBar.unsubscribe()},e.prototype.updateTabScrollPosition=function(){var e=this.scrollDistance;if("horizontal"===this.nzPositionMode){var t="ltr"===this.getLayoutDirection()?-e:e;this.renderer.setStyle(this.navListElement.nativeElement,"transform","translate3d("+t+"px, 0, 0)")}else this.renderer.setStyle(this.navListElement.nativeElement,"transform","translate3d(0,"+-e+"px, 0)")},e.prototype.updatePagination=function(){this.checkPaginationEnabled(),this.checkScrollingControls(),this.updateTabScrollPosition()},e.prototype.checkPaginationEnabled=function(){var e=this.tabListScrollWidthHeightPix>this.tabListScrollOffSetWidthHeight;e||(this.scrollDistance=0),e!==this.showPaginationControls&&this.cdr.markForCheck(),this.showPaginationControls=e},e.prototype.scrollToLabel=function(e){var t=this.listOfNzTabLabelDirective?this.listOfNzTabLabelDirective.toArray()[e]:null;if(t){var n=void 0,i=void 0;"horizontal"===this.nzPositionMode?"ltr"===this.getLayoutDirection()?i=(n=t.getOffsetLeft())+t.getOffsetWidth():n=(i=this.navListElement.nativeElement.offsetWidth-t.getOffsetLeft())-t.getOffsetWidth():i=(n=t.getOffsetTop())+t.getOffsetHeight();var r=this.scrollDistance,o=this.scrollDistance+this.viewWidthHeightPix;no&&(this.scrollDistance+=i-o+64)}},e.prototype.checkScrollingControls=function(){this.disableScrollBefore=0===this.scrollDistance,this.disableScrollAfter=this.scrollDistance===this.getMaxScrollDistance(),this.cdr.markForCheck()},e.prototype.getMaxScrollDistance=function(){return this.tabListScrollWidthHeightPix-this.viewWidthHeightPix||0},Object.defineProperty(e.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(e){this._scrollDistance=Math.max(0,Math.min(this.getMaxScrollDistance(),e)),this.scrollDistanceChanged=!0,this.checkScrollingControls()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewWidthHeightPix",{get:function(){var e=0;return this.showPaginationControls&&(e=this.navContainerScrollPaddingPix),"horizontal"===this.nzPositionMode?this.navContainerElement.nativeElement.offsetWidth-e:this.navContainerElement.nativeElement.offsetHeight-e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navContainerScrollPaddingPix",{get:function(){if(this.platform.isBrowser){var e=this.navContainerElement.nativeElement,t=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle;return"horizontal"===this.nzPositionMode?Object(es.x)(t.paddingLeft)+Object(es.x)(t.paddingRight):Object(es.x)(t.paddingTop)+Object(es.x)(t.paddingBottom)}return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabListScrollWidthHeightPix",{get:function(){return"horizontal"===this.nzPositionMode?this.navListElement.nativeElement.scrollWidth:this.navListElement.nativeElement.scrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabListScrollOffSetWidthHeight",{get:function(){return"horizontal"===this.nzPositionMode?this.scrollListElement.nativeElement.offsetWidth:this.elementRef.nativeElement.offsetHeight},enumerable:!0,configurable:!0}),e.prototype.getLayoutDirection=function(){return this.dir&&"rtl"===this.dir.value?"rtl":"ltr"},e.prototype.alignInkBarToSelectedTab=function(){if("line"===this.nzType){var e=this.listOfNzTabLabelDirective&&this.listOfNzTabLabelDirective.length?this.listOfNzTabLabelDirective.toArray()[this.selectedIndex].elementRef.nativeElement:null;this.nzTabsInkBarDirective&&this.nzTabsInkBarDirective.alignToElement(e)}},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzAnimated",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzHideBar",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowPagination",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.z),i.Tb(i.E),i.Tb(i.h),i.Tb(Xr.a),i.Tb(ds),i.Tb(uN.b,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-tabs-nav"]],contentQueries:function(e,t,n){var r;1&e&&i.Lb(n,NN,!1),2&e&&i.zc(r=i.ic())&&(t.listOfNzTabLabelDirective=r)},viewQuery:function(e,t){var n;1&e&&(i.Jc(MN,!0),i.Jc(yN,!0),i.Jc(wN,!0),i.Jc(ON,!0)),2&e&&(i.zc(n=i.ic())&&(t.nzTabsInkBarDirective=n.first),i.zc(n=i.ic())&&(t.navContainerElement=n.first),i.zc(n=i.ic())&&(t.navListElement=n.first),i.zc(n=i.ic())&&(t.scrollListElement=n.first))},hostVars:18,hostBindings:function(e,t){2&e&&i.Jb("ant-tabs-bar",!0)("ant-tabs-card-bar","card"===t.nzType)("ant-tabs-top-bar","top"===t.nzTabPosition)("ant-tabs-bottom-bar","bottom"===t.nzTabPosition)("ant-tabs-left-bar","left"===t.nzTabPosition)("ant-tabs-right-bar","right"===t.nzTabPosition)("ant-tabs-small-bar","small"===t.nzSize)("ant-tabs-default-bar","default"===t.nzSize)("ant-tabs-large-bar","large"===t.nzSize)},inputs:{nzAnimated:"nzAnimated",nzHideBar:"nzHideBar",nzShowPagination:"nzShowPagination",nzType:"nzType",nzTabPosition:"nzTabPosition",nzPositionMode:"nzPositionMode",selectedIndex:"selectedIndex",nzTabBarExtraContent:"nzTabBarExtraContent",nzSize:"nzSize"},outputs:{nzOnNextClick:"nzOnNextClick",nzOnPrevClick:"nzOnPrevClick"},exportAs:["nzTabsNav"],ngContentSelectors:zN,decls:17,vars:18,consts:[["style","float:right;","class","ant-tabs-extra-content",4,"ngIf"],[1,"ant-tabs-nav-container"],["navContainerElement",""],[1,"ant-tabs-tab-prev",3,"click"],[1,"ant-tabs-tab-prev-icon"],["nz-icon","",1,"ant-tabs-tab-prev-icon-target",3,"nzType"],[1,"ant-tabs-tab-next",3,"click"],[1,"ant-tabs-tab-next-icon"],["nz-icon","",1,"ant-tabs-tab-next-icon-target",3,"nzType"],[1,"ant-tabs-nav-wrap"],[1,"ant-tabs-nav-scroll"],["scrollListElement",""],[1,"ant-tabs-nav",3,"cdkObserveContent"],["navListElement",""],["nz-tabs-ink-bar","",2,"display","block",3,"hidden","nzAnimated","nzPositionMode"],[1,"ant-tabs-extra-content",2,"float","right"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(i.rc(),i.Lc(0,SN,2,1,"div",0),i.Zb(1,"div",1,2),i.Zb(3,"span",3),i.hc("click",(function(){return t.scrollHeader("before")})),i.Zb(4,"span",4),i.Ub(5,"i",5),i.Yb(),i.Yb(),i.Zb(6,"span",6),i.hc("click",(function(){return t.scrollHeader("after")})),i.Zb(7,"span",7),i.Ub(8,"i",8),i.Yb(),i.Yb(),i.Zb(9,"div",9),i.Zb(10,"div",10,11),i.Zb(12,"div",12,13),i.hc("cdkObserveContent",(function(){return t.onContentChanges()})),i.Zb(14,"div"),i.qc(15),i.Yb(),i.Ub(16,"div",14),i.Yb(),i.Yb(),i.Yb(),i.Yb()),2&e&&(i.sc("ngIf",t.nzTabBarExtraContent),i.Db(1),i.Jb("ant-tabs-nav-container-scrolling",t.showPaginationControls),i.Db(2),i.Jb("ant-tabs-tab-btn-disabled",t.disableScrollBefore)("ant-tabs-tab-arrow-show",t.showPaginationControls),i.Db(2),i.sc("nzType","horizontal"===t.nzPositionMode?"left":"up"),i.Db(1),i.Jb("ant-tabs-tab-btn-disabled",t.disableScrollAfter)("ant-tabs-tab-arrow-show",t.showPaginationControls),i.Db(2),i.sc("nzType","horizontal"===t.nzPositionMode?"right":"down"),i.Db(4),i.Jb("ant-tabs-nav-animated",t.nzAnimated),i.Db(4),i.sc("hidden",t.nzHideBar)("nzAnimated",t.nzAnimated)("nzPositionMode",t.nzPositionMode))},directives:[Vr.t,Ns.a,eo,MN,Vr.A],encapsulation:2,changeDetection:0}),e}(),PN=function(){return function(){}}(),FN=function(){function e(e,t,n,r,o){this.nzConfigService=e,this.renderer=t,this.elementRef=n,this.cdr=r,this.router=o,this.indexToSelect=0,this.el=this.elementRef.nativeElement,this._selectedIndex=null,this.tabsSubscription=Ft.a.EMPTY,this.tabLabelSubscription=Ft.a.EMPTY,this.destroy$=new kt.a,this.tabPositionMode="horizontal",this.nzShowPagination=!0,this.nzAnimated=!0,this.nzHideAll=!1,this.nzTabPosition="top",this.nzSize="default",this.nzTabBarGutter=void 0,this.nzTabBarStyle=null,this.nzType="line",this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzCanDeactivate=null,this.nzOnNextClick=new i.n,this.nzOnPrevClick=new i.n,this.nzSelectChange=new i.n(!0),this.nzSelectedIndexChange=new i.n}return Object.defineProperty(e.prototype,"nzSelectedIndex",{get:function(){return this._selectedIndex},set:function(e){this.indexToSelect=e?Object(es.E)(e,null):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inkBarAnimated",{get:function(){return!0===this.nzAnimated||!0===this.nzAnimated.inkBar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabPaneAnimated",{get:function(){return!0===this.nzAnimated||!0===this.nzAnimated.tabPane},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAnimationDisabled",{get:function(){return!1===this.nzAnimated||!1===this.nzAnimated.tabPane},enumerable:!0,configurable:!0}),e.prototype.setPosition=function(e){this.tabContent&&("bottom"===e?this.renderer.insertBefore(this.el,this.tabContent.nativeElement,this.nzTabsNavComponent.elementRef.nativeElement):this.renderer.insertBefore(this.el,this.nzTabsNavComponent.elementRef.nativeElement,this.tabContent.nativeElement))},e.prototype.clickLabel=function(e,t){var n=this;t||(null!==this.nzSelectedIndex&&this.nzSelectedIndex!==e&&"function"==typeof this.nzCanDeactivate?Object(es.G)(this.nzCanDeactivate(this.nzSelectedIndex,e)).pipe(Object(Hr.a)(),Object(ss.a)(this.destroy$)).subscribe((function(t){return t&&n.emitClickEvent(e)})):this.emitClickEvent(e))},e.prototype.emitClickEvent=function(e){var t=this.listOfNzTabComponent.toArray();this.nzSelectedIndex=e,t[e].nzClick.emit(),this.cdr.markForCheck()},e.prototype.createChangeEvent=function(e){var t=new PN;return t.index=e,this.listOfNzTabComponent&&this.listOfNzTabComponent.length&&(t.tab=this.listOfNzTabComponent.toArray()[e],this.listOfNzTabComponent.forEach((function(t,n){n!==e&&t.nzDeselect.emit()})),t.tab.nzSelect.emit()),t},e.prototype.clampTabIndex=function(e){return Math.min(this.listOfNzTabComponent.length-1,Math.max(e||0,0))},e.prototype.subscribeToTabLabels=function(){var e=this;this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=Tt.a.apply(void 0,Object(zt.g)(this.listOfNzTabComponent.map((function(e){return e.stateChanges})))).subscribe((function(){return e.cdr.markForCheck()}))},e.prototype.ngOnChanges=function(e){var t=e.nzType;e.nzTabPosition&&(this.tabPositionMode="top"===this.nzTabPosition||"bottom"===this.nzTabPosition?"horizontal":"vertical",this.setPosition(this.nzTabPosition)),t&&"card"===this.nzType&&(this.nzAnimated=!1)},e.prototype.ngAfterContentChecked=function(){var e=this;if(this.listOfNzTabComponent&&this.listOfNzTabComponent.length){var t=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this._selectedIndex!==t){var n=null==this._selectedIndex;n||this.nzSelectChange.emit(this.createChangeEvent(t)),Promise.resolve().then((function(){e.listOfNzTabComponent.forEach((function(e,n){return e.isActive=n===t})),n||e.nzSelectedIndexChange.emit(t)}))}this.listOfNzTabComponent.forEach((function(n,i){n.position=i-t,null==e._selectedIndex||0!==n.position||n.origin||(n.origin=t-e._selectedIndex)})),this._selectedIndex!==t&&(this._selectedIndex=t,this.cdr.markForCheck())}},e.prototype.ngAfterContentInit=function(){var e=this;if(this.subscribeToTabLabels(),this.setPosition(this.nzTabPosition),this.nzLinkRouter){if(!this.router)throw new Error(Hs.a+" you should import 'RouterModule' if you want to use 'nzLinkRouter'!");this.router.events.pipe(Object(ss.a)(this.destroy$),Object(Pt.a)((function(e){return e instanceof Eu.b})),Object(Ka.a)(!0)).subscribe((function(){e.updateRouterActive(),e.cdr.markForCheck()}))}this.tabsSubscription=this.listOfNzTabComponent.changes.subscribe((function(){if(e.clampTabIndex(e.indexToSelect)===e._selectedIndex)for(var t=e.listOfNzTabComponent.toArray(),n=0;n0),i.Db(1),i.sc("ngIf",0===n.stat.shownCount)}}function vj(e,t){if(1&e){var n=i.ac();i.Zb(0,"label",21),i.hc("nzCheckedChange",(function(e){return i.Dc(n),i.kc().onItemSelectAll(e)})),i.Yb()}if(2&e){var r=i.kc();i.sc("nzChecked",r.stat.checkAll)("nzIndeterminate",r.stat.checkHalf)("nzDisabled",0==r.stat.shownCount||r.disabled)}}function yj(e,t){if(1&e&&(i.Zb(0,"span",22),i.Nc(1),i.Yb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.titleText)}}function wj(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",23),i.Zb(1,"div",24),i.hc("valueChanged",(function(e){return i.Dc(n),i.kc().handleFilter(e)}))("valueClear",(function(){return i.Dc(n),i.kc().handleClear()})),i.Yb(),i.Yb()}if(2&e){var r=i.kc();i.Db(1),i.sc("placeholder",r.searchPlaceholder)("disabled",r.disabled)("value",r.filter)}}function Oj(e,t){1&e&&i.Vb(0)}var Cj=function(e,t,n,i,r,o){return{$implicit:e,direction:t,disabled:n,onItemSelectAll:i,onItemSelect:r,stat:o}};function Sj(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"div",25),i.Lc(2,Oj,1,0,"ng-container",26),i.Yb(),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("ngTemplateOutlet",n.renderList)("ngTemplateOutletContext",i.yc(2,Cj,n.dataSource,n.direction,n.disabled,n.onItemSelectAll,n.onItemSelect,n.stat))}}function zj(e,t){}function Tj(e,t){if(1&e&&(i.Zb(0,"div",27),i.Lc(1,zj,0,0,"ng-template",17),i.Yb()),2&e){var n=i.kc();i.Db(1),i.sc("ngTemplateOutlet",n.footer)("ngTemplateOutletContext",i.vc(2,hj,n.direction))}}var _j=function(e){return{"ant-transfer__nodata":e}},kj=["nz-transfer-search",""];function Dj(e,t){if(1&e){var n=i.ac();i.Zb(0,"a",3),i.hc("click",(function(){return i.Dc(n),i.kc()._clear()})),i.Ub(1,"i",4),i.Yb()}}function xj(e,t){1&e&&(i.Zb(0,"span",5),i.Ub(1,"i",6),i.Yb())}var Ej=function(e){return{"ant-input-disabled":e}};function Nj(e,t){if(1&e&&(i.Zb(0,"span"),i.Nc(1),i.Yb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzOperations[1])}}function jj(e,t){if(1&e&&(i.Zb(0,"span"),i.Nc(1),i.Yb()),2&e){var n=i.kc();i.Db(1),i.Oc(n.nzOperations[0])}}var Ij=function(){function e(e){var t=this;this.cdr=e,this.direction="left",this.titleText="",this.showSelectAll=!0,this.dataSource=[],this.itemUnit="",this.itemsUnit="",this.filter="",this.renderList=null,this.render=null,this.footer=null,this.handleSelectAll=new i.n,this.handleSelect=new i.n,this.filterChange=new i.n,this.stat={checkAll:!1,checkHalf:!1,checkCount:0,shownCount:0},this.onItemSelect=function(e){t.disabled||e.disabled||(e.checked=!e.checked,t.updateCheckStatus(),t.handleSelect.emit(e))},this.onItemSelectAll=function(e){t.dataSource.forEach((function(t){t.disabled||t.hide||(t.checked=e)})),t.updateCheckStatus(),t.handleSelectAll.emit(e)}}return e.prototype.updateCheckStatus=function(){var e=this.dataSource.filter((function(e){return!e.disabled})).length;this.stat.checkCount=this.dataSource.filter((function(e){return e.checked&&!e.disabled})).length,this.stat.shownCount=this.dataSource.filter((function(e){return!e.hide})).length,this.stat.checkAll=e>0&&e===this.stat.checkCount,this.stat.checkHalf=this.stat.checkCount>0&&!this.stat.checkAll},e.prototype.handleFilter=function(e){var t=this;this.filter=e,this.dataSource.forEach((function(n){n.hide=e.length>0&&!t.matchFilter(e,n)})),this.stat.shownCount=this.dataSource.filter((function(e){return!e.hide})).length,this.filterChange.emit({direction:this.direction,value:e})},e.prototype.handleClear=function(){this.handleFilter("")},e.prototype.matchFilter=function(e,t){return this.filterOption?this.filterOption(e,t):t.title.includes(e)},e.prototype.markForCheck=function(){this.updateCheckStatus(),this.cdr.markForCheck()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-transfer-list"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Jb("ant-transfer-list",!0)("ant-transfer-list-with-footer",!!t.footer)},inputs:{direction:"direction",titleText:"titleText",showSelectAll:"showSelectAll",dataSource:"dataSource",itemUnit:"itemUnit",itemsUnit:"itemsUnit",filter:"filter",renderList:"renderList",render:"render",footer:"footer",disabled:"disabled",showSearch:"showSearch",searchPlaceholder:"searchPlaceholder",notFoundContent:"notFoundContent",filterOption:"filterOption"},outputs:{handleSelectAll:"handleSelectAll",handleSelect:"handleSelect",filterChange:"filterChange"},exportAs:["nzTransferList"],decls:12,vars:14,consts:[["defaultRenderList",""],[1,"ant-transfer-list-header"],["nz-checkbox","",3,"nzChecked","nzIndeterminate","nzDisabled","nzCheckedChange",4,"ngIf"],[1,"ant-transfer-list-header-selected"],["class","ant-transfer-list-header-title",4,"ngIf"],[3,"ngClass"],["class","ant-transfer-list-body-search-wrapper",4,"ngIf"],[4,"ngIf","ngIfElse"],["class","ant-transfer-list-footer",4,"ngIf"],["class","ant-transfer-list-content",4,"ngIf"],["class","ant-transfer-list-body-not-found",4,"ngIf"],[1,"ant-transfer-list-content"],["class","LazyLoad",4,"ngFor","ngForOf"],[1,"LazyLoad"],["class","ant-transfer-list-content-item",3,"ngClass","click",4,"ngIf"],[1,"ant-transfer-list-content-item",3,"ngClass","click"],["nz-checkbox","",3,"nzChecked","nzDisabled","nzCheckedChange","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["renderContainer",""],[1,"ant-transfer-list-body-not-found"],[3,"nzComponentName","specificContent"],["nz-checkbox","",3,"nzChecked","nzIndeterminate","nzDisabled","nzCheckedChange"],[1,"ant-transfer-list-header-title"],[1,"ant-transfer-list-body-search-wrapper"],["nz-transfer-search","",3,"placeholder","disabled","value","valueChanged","valueClear"],[1,"ant-transfer-list-body-customize-wrapper"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-transfer-list-footer"]],template:function(e,t){if(1&e&&(i.Lc(0,mj,2,2,"ng-template",null,0,i.Mc),i.Zb(2,"div",1),i.Lc(3,vj,1,3,"label",2),i.Zb(4,"span",3),i.Zb(5,"span"),i.Nc(6),i.Yb(),i.Lc(7,yj,2,1,"span",4),i.Yb(),i.Yb(),i.Zb(8,"div",5),i.Lc(9,wj,2,3,"div",6),i.Lc(10,Sj,3,9,"ng-container",7),i.Yb(),i.Lc(11,Tj,2,4,"div",8)),2&e){var n=i.Ac(1);i.Db(3),i.sc("ngIf",t.showSelectAll),i.Db(3),i.Qc("",(t.stat.checkCount>0?t.stat.checkCount+"/":"")+t.stat.shownCount," ",t.dataSource.length>1?t.itemsUnit:t.itemUnit,""),i.Db(1),i.sc("ngIf",t.titleText),i.Db(1),i.Fb(t.showSearch?"ant-transfer-list-body ant-transfer-list-body-with-search":"ant-transfer-list-body"),i.sc("ngClass",i.vc(12,_j,0===t.stat.shownCount)),i.Db(1),i.sc("ngIf",t.showSearch),i.Db(1),i.sc("ngIf",t.renderList)("ngIfElse",n),i.Db(1),i.sc("ngIf",t.footer)}},directives:function(){return[Vr.t,Vr.q,Vr.s,Zy,Vr.A,im,Aj]},encapsulation:2,changeDetection:0}),e}(),Aj=function(){function e(e){this.cdr=e,this.valueChanged=new i.n,this.valueClear=new i.n}return e.prototype._handle=function(){this.valueChanged.emit(this.value)},e.prototype._clear=function(){this.disabled||(this.value="",this.valueClear.emit())},e.prototype.ngOnChanges=function(){this.cdr.detectChanges()},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-transfer-search",""]],inputs:{value:"value",placeholder:"placeholder",disabled:"disabled"},outputs:{valueChanged:"valueChanged",valueClear:"valueClear"},exportAs:["nzTransferSearch"],features:[i.Bb],attrs:kj,decls:4,vars:8,consts:[[1,"ant-input","ant-transfer-list-search",3,"ngModel","disabled","placeholder","ngClass","ngModelChange"],["class","ant-transfer-list-search-action",3,"click",4,"ngIf","ngIfElse"],["def",""],[1,"ant-transfer-list-search-action",3,"click"],["nz-icon","","nzType","close-circle"],[1,"ant-transfer-list-search-action"],["nz-icon","","nzType","search"]],template:function(e,t){if(1&e&&(i.Zb(0,"input",0),i.hc("ngModelChange",(function(e){return t.value=e}))("ngModelChange",(function(){return t._handle()})),i.Yb(),i.Lc(1,Dj,2,0,"a",1),i.Lc(2,xj,2,0,"ng-template",null,2,i.Mc)),2&e){var n=i.Ac(3);i.sc("ngModel",t.value)("disabled",t.disabled)("placeholder",t.placeholder)("ngClass",i.vc(6,Ej,t.disabled)),i.Db(1),i.sc("ngIf",t.value&&t.value.length>0)("ngIfElse",n)}},directives:[Ot.e,Ot.o,Ot.r,Vr.q,Vr.t,Hd.a,Ns.a],encapsulation:2,changeDetection:0}),e}(),Mj=function(){function e(e,t){var n=this;this.cdr=e,this.i18n=t,this.unsubscribe$=new kt.a,this.locale={},this.leftFilter="",this.rightFilter="",this.nzDisabled=!1,this.nzDataSource=[],this.nzTitles=["",""],this.nzOperations=[],this.nzListStyle={},this.nzShowSelectAll=!0,this.nzCanMove=function(e){return Object(qr.a)(e.list)},this.nzRenderList=null,this.nzRender=null,this.nzFooter=null,this.nzShowSearch=!1,this.nzTargetKeys=[],this.nzSelectedKeys=[],this.nzChange=new i.n,this.nzSearchChange=new i.n,this.nzSelectChange=new i.n,this.leftDataSource=[],this.rightDataSource=[],this.handleLeftSelectAll=function(e){return n.handleSelect("left",e)},this.handleRightSelectAll=function(e){return n.handleSelect("right",e)},this.handleLeftSelect=function(e){return n.handleSelect("left",!!e.checked,e)},this.handleRightSelect=function(e){return n.handleSelect("right",!!e.checked,e)},this.leftActive=!1,this.rightActive=!1,this.moveToLeft=function(){return n.moveTo("left")},this.moveToRight=function(){return n.moveTo("right")}}return e.prototype.splitDataSource=function(){var e=this;this.leftDataSource=[],this.rightDataSource=[],this.nzDataSource.forEach((function(t){"right"===t.direction?(t.direction="right",e.rightDataSource.push(t)):(t.direction="left",e.leftDataSource.push(t))}))},e.prototype.getCheckedData=function(e){return this["left"===e?"leftDataSource":"rightDataSource"].filter((function(e){return e.checked}))},e.prototype.handleSelect=function(e,t,n){var i=this.getCheckedData(e);this.updateOperationStatus(e,i.length),this.nzSelectChange.emit({direction:e,checked:t,list:i,item:n})},e.prototype.handleFilterChange=function(e){this.nzSearchChange.emit(e)},e.prototype.updateOperationStatus=function(e,t){this["right"===e?"leftActive":"rightActive"]=(void 0===t?this.getCheckedData(e).filter((function(e){return!e.disabled})).length:t)>0},e.prototype.moveTo=function(e){var t=this;this.updateOperationStatus("left"===e?"right":"left",0);var n=("left"===e?this.rightDataSource:this.leftDataSource).filter((function(e){return!0===e.checked&&!e.disabled}));this.nzCanMove({direction:e,list:n}).subscribe((function(n){return t.truthMoveTo(e,n.filter((function(e){return!!e})))}),(function(){return n.forEach((function(e){return e.checked=!1}))}))},e.prototype.truthMoveTo=function(e,t){var n,i,r="left"===e?"right":"left",o="left"===e?this.rightDataSource:this.leftDataSource,a="left"===e?this.leftDataSource:this.rightDataSource;try{for(var s=Object(zt.h)(t),c=s.next();!c.done;c=s.next()){var u=c.value;u.checked=!1,u.hide=!1,u.direction=e,o.splice(o.indexOf(u),1)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}a.splice.apply(a,Object(zt.g)([0,0],t)),this.updateOperationStatus(r),this.nzChange.emit({from:r,to:e,list:t}),this.markForCheckAllList()},e.prototype.markForCheckAllList=function(){this.lists&&this.lists.forEach((function(e){return e.markForCheck()}))},e.prototype.handleNzTargetKeys=function(){var e=Object(es.B)(this.nzTargetKeys);this.leftDataSource.forEach((function(t){(function(e){return e.hasOwnProperty("key")})(t)&&-1!==e.indexOf(t.key)&&!t.disabled&&(t.checked=!0)})),this.moveToRight()},e.prototype.handleNzSelectedKeys=function(){var e=Object(es.B)(this.nzSelectedKeys);this.nzDataSource.forEach((function(t){-1!==e.indexOf(t.key)&&(t.checked=!0)}));var t=function(e){return!1===e.disabled&&!0===e.checked};this.rightActive=this.leftDataSource.some(t),this.leftActive=this.rightDataSource.some(t)},e.prototype.ngOnInit=function(){var e=this;this.i18n.localeChange.pipe(Object(ss.a)(this.unsubscribe$)).subscribe((function(){e.locale=e.i18n.getLocaleData("Transfer"),e.markForCheckAllList()}))},e.prototype.ngOnChanges=function(e){e.nzDataSource&&(this.splitDataSource(),this.updateOperationStatus("left"),this.updateOperationStatus("right"),this.cdr.detectChanges(),this.markForCheckAllList()),e.nzTargetKeys&&this.handleNzTargetKeys(),e.nzSelectedKeys&&this.handleNzSelectedKeys()},e.prototype.ngOnDestroy=function(){this.unsubscribe$.next(),this.unsubscribe$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowSelectAll",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowSearch",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(Lp))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-transfer"]],viewQuery:function(e,t){var n;1&e&&i.Sc(Ij,!0),2&e&&i.zc(n=i.ic())&&(t.lists=n)},hostVars:6,hostBindings:function(e,t){2&e&&i.Jb("ant-transfer",!0)("ant-transfer-disabled",t.nzDisabled)("ant-transfer-customize-list",t.nzRenderList)},inputs:{nzDisabled:"nzDisabled",nzDataSource:"nzDataSource",nzTitles:"nzTitles",nzOperations:"nzOperations",nzListStyle:"nzListStyle",nzShowSelectAll:"nzShowSelectAll",nzCanMove:"nzCanMove",nzRenderList:"nzRenderList",nzRender:"nzRender",nzFooter:"nzFooter",nzShowSearch:"nzShowSearch",nzTargetKeys:"nzTargetKeys",nzSelectedKeys:"nzSelectedKeys",nzItemUnit:"nzItemUnit",nzItemsUnit:"nzItemsUnit",nzFilterOption:"nzFilterOption",nzSearchPlaceholder:"nzSearchPlaceholder",nzNotFoundContent:"nzNotFoundContent"},outputs:{nzChange:"nzChange",nzSearchChange:"nzSearchChange",nzSelectChange:"nzSelectChange"},exportAs:["nzTransfer"],features:[i.Bb],decls:9,vars:38,consts:[["data-direction","left","direction","left",1,"ant-transfer-list",3,"ngStyle","titleText","showSelectAll","dataSource","filter","filterOption","renderList","render","disabled","showSearch","searchPlaceholder","notFoundContent","itemUnit","itemsUnit","footer","filterChange","handleSelect","handleSelectAll"],[1,"ant-transfer-operation"],["nz-button","",3,"disabled","nzType","nzSize","click"],["nz-icon","","nzType","left"],[4,"ngIf"],["nz-icon","","nzType","right"],["data-direction","right","direction","right",1,"ant-transfer-list",3,"ngStyle","titleText","showSelectAll","dataSource","filter","filterOption","renderList","render","disabled","showSearch","searchPlaceholder","notFoundContent","itemUnit","itemsUnit","footer","filterChange","handleSelect","handleSelectAll"]],template:function(e,t){1&e&&(i.Zb(0,"nz-transfer-list",0),i.hc("filterChange",(function(e){return t.handleFilterChange(e)}))("handleSelect",(function(e){return t.handleLeftSelect(e)}))("handleSelectAll",(function(e){return t.handleLeftSelectAll(e)})),i.Yb(),i.Zb(1,"div",1),i.Zb(2,"button",2),i.hc("click",(function(){return t.moveToLeft()})),i.Ub(3,"i",3),i.Lc(4,Nj,2,1,"span",4),i.Yb(),i.Zb(5,"button",2),i.hc("click",(function(){return t.moveToRight()})),i.Ub(6,"i",5),i.Lc(7,jj,2,1,"span",4),i.Yb(),i.Yb(),i.Zb(8,"nz-transfer-list",6),i.hc("filterChange",(function(e){return t.handleFilterChange(e)}))("handleSelect",(function(e){return t.handleRightSelect(e)}))("handleSelectAll",(function(e){return t.handleRightSelectAll(e)})),i.Yb()),2&e&&(i.sc("ngStyle",t.nzListStyle)("titleText",t.nzTitles[0])("showSelectAll",t.nzShowSelectAll)("dataSource",t.leftDataSource)("filter",t.leftFilter)("filterOption",t.nzFilterOption)("renderList",t.nzRenderList&&t.nzRenderList[0])("render",t.nzRender)("disabled",t.nzDisabled)("showSearch",t.nzShowSearch)("searchPlaceholder",t.nzSearchPlaceholder||t.locale.searchPlaceholder)("notFoundContent",t.nzNotFoundContent)("itemUnit",t.nzItemUnit||t.locale.itemUnit)("itemsUnit",t.nzItemsUnit||t.locale.itemsUnit)("footer",t.nzFooter),i.Db(2),i.sc("disabled",t.nzDisabled||!t.leftActive)("nzType","primary")("nzSize","small"),i.Db(2),i.sc("ngIf",t.nzOperations[1]),i.Db(1),i.sc("disabled",t.nzDisabled||!t.rightActive)("nzType","primary")("nzSize","small"),i.Db(2),i.sc("ngIf",t.nzOperations[0]),i.Db(1),i.sc("ngStyle",t.nzListStyle)("titleText",t.nzTitles[1])("showSelectAll",t.nzShowSelectAll)("dataSource",t.rightDataSource)("filter",t.rightFilter)("filterOption",t.nzFilterOption)("renderList",t.nzRenderList&&t.nzRenderList[1])("render",t.nzRender)("disabled",t.nzDisabled)("showSearch",t.nzShowSearch)("searchPlaceholder",t.nzSearchPlaceholder||t.locale.searchPlaceholder)("notFoundContent",t.nzNotFoundContent)("itemUnit",t.nzItemUnit||t.locale.itemUnit)("itemsUnit",t.nzItemsUnit||t.locale.itemsUnit)("footer",t.nzFooter))},directives:[Ij,Vr.w,Wu.a,Ud.a,Hd.a,Ns.a,Vr.t],encapsulation:2,changeDetection:0}),e}(),Lj=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Gy,Wu.c,Ec,Fp,Ns.b,cm]]}),e}(),Pj=function(){function e(t,n,i){var r=this;if(void 0===n&&(n=null),void 0===i&&(i=null),this._title="",this.level=0,this.parentNode=null,this._icon="",this._children=[],this._isLeaf=!1,this._isChecked=!1,this._isAllChecked=!1,this._isSelectable=!1,this._isDisabled=!1,this._isDisableCheckbox=!1,this._isExpanded=!1,this._isHalfChecked=!1,this._isSelected=!1,this._isLoading=!1,this.canHide=!1,this.isMatched=!1,this.service=null,t instanceof e)return t;this.service=i||null,this.origin=t,this.key=t.key,this.parentNode=n,this._title=t.title||"---",this._icon=t.icon||"",this._isLeaf=t.isLeaf||!1,this._children=[],this._isChecked=t.checked||!1,this._isSelectable=t.disabled||!1!==t.selectable,this._isDisabled=t.disabled||!1,this._isDisableCheckbox=t.disableCheckbox||!1,this._isExpanded=!t.isLeaf&&(t.expanded||!1),this._isHalfChecked=!1,this._isSelected=!t.disabled&&t.selected||!1,this._isLoading=!1,this.isMatched=!1,this.level=n?n.level+1:0,null!=t.children&&t.children.forEach((function(n){var i=r.treeService;!i||i.isCheckStrictly||!t.checked||t.disabled||n.disabled||n.disableCheckbox||(n.checked=t.checked),r._children.push(new e(n,r))}))}return Object.defineProperty(e.prototype,"treeService",{get:function(){return this.service||this.parentNode&&this.parentNode.treeService},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(e){this._icon=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},set:function(e){this._children=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLeaf",{get:function(){return this._isLeaf},set:function(e){this._isLeaf=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this._isChecked},set:function(e){this._isChecked=e,this._isAllChecked=e,this.origin.checked=e,this.afterValueChange("isChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAllChecked",{get:function(){return this._isAllChecked},set:function(e){Object(Hs.c)("'isAllChecked' is going to be removed in 9.0.0. Please use 'isChecked' instead."),this._isAllChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHalfChecked",{get:function(){return this._isHalfChecked},set:function(e){this._isHalfChecked=e,this.afterValueChange("isHalfChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelectable",{get:function(){return this._isSelectable},set:function(e){this._isSelectable=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(e){this._isDisabled=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisableCheckbox",{get:function(){return this._isDisableCheckbox},set:function(e){this._isDisableCheckbox=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded},set:function(e){this._isExpanded=e,this.origin.expanded=e,this.afterValueChange("isExpanded"),this.afterValueChange("reRender")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){this._isSelected=e,this.origin.selected=e,this.afterValueChange("isSelected")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._isLoading},set:function(e){this._isLoading=e,this.update()},enumerable:!0,configurable:!0}),e.prototype.setSyncChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.setChecked(e,t),this.treeService&&!this.treeService.isCheckStrictly&&this.treeService.conduct(this)},e.prototype.setChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),Object(Hs.c)("'setChecked' is going to be removed in 9.0.0. Please use 'isChecked' instead."),this.origin.checked=e,this.isChecked=e,this.isAllChecked=e,this.isHalfChecked=t},e.prototype.setExpanded=function(e){this._isExpanded=e,this.origin.expanded=e,this.afterValueChange("isExpanded")},e.prototype.setSelected=function(e){Object(Hs.c)("'setSelected' is going to be removed in 9.0.0. Please use 'isExpanded' isSelected."),this.isDisabled||(this.isSelected=e)},e.prototype.getParentNode=function(){return this.parentNode},e.prototype.getChildren=function(){return this.children},e.prototype.addChildren=function(t,n){var i=this;void 0===n&&(n=-1),this.isLeaf||(t.forEach((function(t){var r=function(e){e.getChildren().forEach((function(e){e.level=e.getParentNode().level+1,e.origin.level=e.level,r(e)}))},o=t;o instanceof e?o.parentNode=i:o=new e(t,i),o.level=i.level+1,o.origin.level=o.level,r(o);try{-1===n?i.children.push(o):i.children.splice(n,0,o)}catch(a){}})),this.origin.children=this.getChildren().map((function(e){return e.origin})),this.isLoading=!1),this.afterValueChange("addChildren"),this.afterValueChange("reRender")},e.prototype.clearChildren=function(){this.afterValueChange("clearChildren"),this.children=[],this.origin.children=[],this.afterValueChange("reRender")},e.prototype.remove=function(){var e=this,t=this.getParentNode();t&&(t.children=t.getChildren().filter((function(t){return t.key!==e.key})),t.origin.children=t.origin.children.filter((function(t){return t.key!==e.key})),this.afterValueChange("remove"),this.afterValueChange("reRender"))},e.prototype.afterValueChange=function(e){if(this.treeService)switch(e){case"isChecked":this.treeService.setCheckedNodeList(this);break;case"isHalfChecked":this.treeService.setHalfCheckedNodeList(this);break;case"isExpanded":this.treeService.setExpandedNodeList(this);break;case"isSelected":this.treeService.setNodeActive(this);break;case"clearChildren":this.treeService.afterRemove(this.getChildren());break;case"remove":this.treeService.afterRemove([this]);break;case"reRender":this.treeService.flattenTreeData(this.treeService.rootNodes,this.treeService.getExpandedNodeList().map((function(e){return e.key})))}this.update()},e.prototype.update=function(){this.component&&this.component.markForCheck()},e}();function Fj(e){return!(!e.isDisabled&&!e.isDisableCheckbox)}function Rj(e,t){return t.length>0&&t.indexOf(e)>-1}function Vj(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=new Set(!0===t?[]:t),i=[];return function e(r,o){return void 0===o&&(o=null),r.map((function(a,s){var c=function(e,t){return e+"-"+t}(o?o.pos:"0",s),u=function(e,t){return null!=e?e:t}(a.key,c);a.isStart=Object(zt.g)(o?o.isStart:[],[0===s]),a.isEnd=Object(zt.g)(o?o.isEnd:[],[s===r.length-1]);var l={parent:o,pos:c,children:[],data:a,isStart:Object(zt.g)(o?o.isStart:[],[0===s]),isEnd:Object(zt.g)(o?o.isEnd:[],[s===r.length-1])};return i.push(l),l.children=!0===t||n.has(u)||a.isExpanded?e(a.children||[],l):[],l}))}(e),i}var Bj=function(){function e(){this.DRAG_SIDE_RANGE=.25,this.DRAG_MIN_GAP=2,this.isCheckStrictly=!1,this.isMultiple=!1,this.rootNodes=[],this.flattenNodes$=new qu.a([]),this.selectedNodeList=[],this.expandedNodeList=[],this.checkedNodeList=[],this.halfCheckedNodeList=[],this.matchedNodeList=[]}return e.prototype.initTree=function(e){this.rootNodes=e,this.expandedNodeList=[],this.selectedNodeList=[],this.halfCheckedNodeList=[],this.checkedNodeList=[],this.matchedNodeList=[]},e.prototype.flattenTreeData=function(e,t){void 0===t&&(t=[]),this.flattenNodes$.next(Vj(e,t).map((function(e){return e.data})))},e.prototype.getSelectedNode=function(){return this.selectedNode},e.prototype.getSelectedNodeList=function(){return this.conductNodeState("select")},e.prototype.getCheckedNodeList=function(){return this.conductNodeState("check")},e.prototype.getHalfCheckedNodeList=function(){return this.conductNodeState("halfCheck")},e.prototype.getExpandedNodeList=function(){return this.conductNodeState("expand")},e.prototype.getMatchedNodeList=function(){return this.conductNodeState("match")},e.prototype.isArrayOfNzTreeNode=function(e){return e.every((function(e){return e instanceof Pj}))},e.prototype.setSelectedNode=function(e){this.selectedNode=e},e.prototype.setNodeActive=function(e){!this.isMultiple&&e.isSelected&&(this.selectedNodeList.forEach((function(t){e.key!==t.key&&(t.isSelected=!1)})),this.selectedNodeList=[]),this.setSelectedNodeList(e,this.isMultiple)},e.prototype.setSelectedNodeList=function(e,t){void 0===t&&(t=!1);var n=this.getIndexOfArray(this.selectedNodeList,e.key);t?e.isSelected&&-1===n&&this.selectedNodeList.push(e):e.isSelected&&-1===n&&(this.selectedNodeList=[e]),e.isSelected||(this.selectedNodeList=this.selectedNodeList.filter((function(t){return t.key!==e.key})))},e.prototype.setHalfCheckedNodeList=function(e){var t=this.getIndexOfArray(this.halfCheckedNodeList,e.key);e.isHalfChecked&&-1===t?this.halfCheckedNodeList.push(e):!e.isHalfChecked&&t>-1&&(this.halfCheckedNodeList=this.halfCheckedNodeList.filter((function(t){return e.key!==t.key})))},e.prototype.setCheckedNodeList=function(e){var t=this.getIndexOfArray(this.checkedNodeList,e.key);e.isChecked&&-1===t?this.checkedNodeList.push(e):!e.isChecked&&t>-1&&(this.checkedNodeList=this.checkedNodeList.filter((function(t){return e.key!==t.key})))},e.prototype.conductNodeState=function(e){var t=this;void 0===e&&(e="check");var n=[];switch(e){case"select":n=this.selectedNodeList;break;case"expand":n=this.expandedNodeList;break;case"match":n=this.matchedNodeList;break;case"check":n=this.checkedNodeList;var i=function(e){var n=e.getParentNode();return!!n&&(t.checkedNodeList.findIndex((function(e){return e.key===n.key}))>-1||i(n))};this.isCheckStrictly||(n=this.checkedNodeList.filter((function(e){return!i(e)})));break;case"halfCheck":this.isCheckStrictly||(n=this.halfCheckedNodeList)}return n},e.prototype.setExpandedNodeList=function(e){if(!e.isLeaf){var t=this.getIndexOfArray(this.expandedNodeList,e.key);e.isExpanded&&-1===t?this.expandedNodeList.push(e):!e.isExpanded&&t>-1&&this.expandedNodeList.splice(t,1)}},e.prototype.setMatchedNodeList=function(e){var t=this.getIndexOfArray(this.matchedNodeList,e.key);e.isMatched&&-1===t?this.matchedNodeList.push(e):!e.isMatched&&t>-1&&this.matchedNodeList.splice(t,1)},e.prototype.refreshCheckState=function(e){var t=this;void 0===e&&(e=!1),e||this.checkedNodeList.forEach((function(e){t.conduct(e)}))},e.prototype.conduct=function(e){var t=e.isChecked;e&&(this.conductUp(e),this.conductDown(e,t))},e.prototype.conductUp=function(e){var t=e.getParentNode();t&&(Fj(t)||(t.children.every((function(e){return Fj(e)||!e.isHalfChecked&&e.isChecked}))?(t.isChecked=!0,t.isHalfChecked=!1):t.children.some((function(e){return e.isHalfChecked||e.isChecked}))?(t.isChecked=!1,t.isHalfChecked=!0):(t.isChecked=!1,t.isHalfChecked=!1)),this.setCheckedNodeList(t),this.setHalfCheckedNodeList(t),this.conductUp(t))},e.prototype.conductDown=function(e,t){var n=this;Fj(e)||(e.isChecked=t,e.isHalfChecked=!1,this.setCheckedNodeList(e),this.setHalfCheckedNodeList(e),e.children.forEach((function(e){n.conductDown(e,t)})))},e.prototype.afterRemove=function(e){var t=this,n=function(e){t.selectedNodeList=t.selectedNodeList.filter((function(t){return t.key!==e.key})),t.expandedNodeList=t.expandedNodeList.filter((function(t){return t.key!==e.key})),t.checkedNodeList=t.checkedNodeList.filter((function(t){return t.key!==e.key})),e.children&&e.children.forEach((function(e){n(e)}))};e.forEach((function(e){n(e)})),this.refreshCheckState(this.isCheckStrictly)},e.prototype.refreshDragNode=function(e){var t=this;0===e.children.length?this.conductUp(e):e.children.forEach((function(e){t.refreshDragNode(e)}))},e.prototype.resetNodeLevel=function(e){var t,n,i=e.getParentNode();e.level=i?i.level+1:0;try{for(var r=Object(zt.h)(e.children),o=r.next();!o.done;o=r.next())this.resetNodeLevel(o.value)}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.calcDropPosition=function(e){var t=e.clientY,n=e.srcElement?e.srcElement.getBoundingClientRect():e.target.getBoundingClientRect(),i=n.top,r=n.bottom,o=Math.max(n.height*this.DRAG_SIDE_RANGE,this.DRAG_MIN_GAP);return t<=i+o?-1:t>=r-o?1:0},e.prototype.dropAndApply=function(e,t){var n=this;if(void 0===t&&(t=-1),e&&!(t>1)){var i=e.treeService,r=e.getParentNode(),o=this.selectedNode.getParentNode();switch(o?o.children=o.children.filter((function(e){return e.key!==n.selectedNode.key})):this.rootNodes=this.rootNodes.filter((function(e){return e.key!==n.selectedNode.key})),t){case 0:e.addChildren([this.selectedNode]),this.resetNodeLevel(e);break;case-1:case 1:var a=1===t?1:0;if(r){r.addChildren([this.selectedNode],r.children.indexOf(e)+a);var s=this.selectedNode.getParentNode();s&&this.resetNodeLevel(s)}else{var c=this.rootNodes.indexOf(e)+a;this.rootNodes.splice(c,0,this.selectedNode),this.rootNodes[c].parentNode=null,this.resetNodeLevel(this.rootNodes[c])}}this.rootNodes.forEach((function(e){e.treeService||(e.service=i),n.refreshDragNode(e)}))}},e.prototype.formatEvent=function(e,t,n){var i={eventName:e,node:t,event:n};switch(e){case"dragstart":case"dragenter":case"dragover":case"dragleave":case"drop":case"dragend":Object.assign(i,{dragNode:this.getSelectedNode()});break;case"click":case"dblclick":Object.assign(i,{selectedKeys:this.selectedNodeList}),Object.assign(i,{nodes:this.selectedNodeList}),Object.assign(i,{keys:this.selectedNodeList.map((function(e){return e.key}))});break;case"check":var r=this.getCheckedNodeList();Object.assign(i,{checkedKeys:r}),Object.assign(i,{nodes:r}),Object.assign(i,{keys:r.map((function(e){return e.key}))});break;case"search":Object.assign(i,{matchedKeys:this.getMatchedNodeList()}),Object.assign(i,{nodes:this.getMatchedNodeList()}),Object.assign(i,{keys:this.getMatchedNodeList().map((function(e){return e.key}))});break;case"expand":Object.assign(i,{nodes:this.expandedNodeList}),Object.assign(i,{keys:this.expandedNodeList.map((function(e){return e.key}))})}return i},e.prototype.getIndexOfArray=function(e,t){return e.findIndex((function(e){return e.key===t}))},e.prototype.conductCheck=function(e,t){this.checkedNodeList=[],this.halfCheckedNodeList=[];var n=function(t){t.forEach((function(t){Rj(t.key,e)?(t.isChecked=!0,t.isHalfChecked=!1):(t.isChecked=!1,t.isHalfChecked=!1),t.children.length>0&&n(t.children)}))};n(this.rootNodes),this.refreshCheckState(t)},e.prototype.conductExpandedKeys=function(e){var t=this;void 0===e&&(e=[]);var n=new Set(!0===e?[]:e);this.expandedNodeList=[];var i=function(r){r.forEach((function(r){r.setExpanded(!0===e||n.has(r.key)||!0===r.isExpanded),r.isExpanded&&t.setExpandedNodeList(r),r.children.length>0&&i(r.children)}))};i(this.rootNodes)},e.prototype.conductSelectedKeys=function(e,t){var n=this;this.selectedNodeList=[];var i=function(r){return r.every((function(r){if(Rj(r.key,e)){if(r.isSelected=!0,n.setSelectedNodeList(r),!t)return!1}else r.isSelected=!1;return!(r.children.length>0)||i(r.children)}))};i(this.rootNodes)},e.prototype.expandNodeAllParentBySearch=function(e){var t=this,n=function(e){if(e&&(e.canHide=!1,e.setExpanded(!0),t.setExpandedNodeList(e),e.getParentNode()))return n(e.getParentNode())};n(e.getParentNode())},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),Yj=new i.q("NzTreeHigherOrder"),Uj=function(){function e(e){this.nzTreeService=e}return e.prototype.coerceTreeNodes=function(e){var t=this;return this.nzTreeService.isArrayOfNzTreeNode(e)?e.map((function(e){return e.service=t.nzTreeService,e})):e.map((function(e){return new Pj(e,null,t.nzTreeService)}))},e.prototype.getTreeNodes=function(){return this.nzTreeService.rootNodes},e.prototype.getTreeNodeByKey=function(e){var t=[],n=function(e){t.push(e),e.getChildren().forEach((function(e){n(e)}))};return this.getTreeNodes().forEach((function(e){n(e)})),t.find((function(t){return t.key===e}))||null},e.prototype.getCheckedNodeList=function(){return this.nzTreeService.getCheckedNodeList()},e.prototype.getSelectedNodeList=function(){return this.nzTreeService.getSelectedNodeList()},e.prototype.getHalfCheckedNodeList=function(){return this.nzTreeService.getHalfCheckedNodeList()},e.prototype.getExpandedNodeList=function(){return this.nzTreeService.getExpandedNodeList()},e.prototype.getMatchedNodeList=function(){return this.nzTreeService.getMatchedNodeList()},e}();function Hj(e,t){if(1&e&&i.Ub(0,"span",1),2&e){var n=t.index,r=i.kc();i.sc("ngClass",r.unitMapOfClass(n))}}function Wj(e,t){if(1&e&&(i.Xb(0),i.Ub(1,"i",4),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Jb("ant-select-tree-switcher-icon",n.nzSelectMode)("ant-tree-switcher-icon",!n.nzSelectMode)}}var qj=function(e,t){return{$implicit:e,origin:t}};function Zj(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Wj,2,4,"ng-container",3),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzExpandedIcon)("nzStringTemplateOutletContext",i.wc(2,qj,n.context,n.context.origin))}}function $j(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Zj,2,5,"ng-container",2),i.Wb()),2&e){var n=i.kc(),r=i.Ac(3);i.Db(1),i.sc("ngIf",!n.isLoading)("ngIfElse",r)}}function Gj(e,t){if(1&e&&i.Ub(0,"i",7),2&e){var n=i.kc(4);i.sc("nzType",n.isSwitcherOpen?"minus-square":"plus-square")}}function Qj(e,t){1&e&&i.Ub(0,"i",8)}function Xj(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Gj,1,1,"i",5),i.Lc(2,Qj,1,0,"i",6),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.sc("ngIf",n.isShowLineIcon),i.Db(1),i.sc("ngIf",!n.isShowLineIcon)}}function Kj(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Xj,3,2,"ng-container",3),i.Wb()),2&e){var n=i.kc(2);i.Db(1),i.sc("nzStringTemplateOutlet",n.nzExpandedIcon)("nzStringTemplateOutletContext",i.wc(2,qj,n.context,n.context.origin))}}function Jj(e,t){if(1&e&&(i.Xb(0),i.Lc(1,Kj,2,5,"ng-container",2),i.Wb()),2&e){var n=i.kc(),r=i.Ac(3);i.Db(1),i.sc("ngIf",!n.isLoading)("ngIfElse",r)}}function eI(e,t){1&e&&i.Ub(0,"i",9),2&e&&i.sc("nzSpin",!0)}function tI(e,t){}function nI(e,t){if(1&e&&i.Ub(0,"i",5),2&e){var n=i.kc(3);i.sc("nzType",n.icon)}}function iI(e,t){if(1&e&&(i.Zb(0,"span"),i.Zb(1,"span"),i.Lc(2,nI,1,1,"i",4),i.Yb(),i.Yb()),2&e){var n=i.kc(2);i.Jb("ant-tree-icon__open",n.isSwitcherOpen)("ant-tree-icon__close",n.isSwitcherClose)("ant-tree-icon_loading",n.isLoading)("ant-select-tree-iconEle",n.selectMode)("ant-tree-iconEle",!n.selectMode),i.Db(1),i.Jb("ant-select-tree-iconEle",n.selectMode)("ant-select-tree-icon__customize",n.selectMode)("ant-tree-iconEle",!n.selectMode)("ant-tree-icon__customize",!n.selectMode),i.Db(1),i.sc("ngIf",n.icon)}}function rI(e,t){if(1&e&&(i.Xb(0),i.Lc(1,iI,3,19,"span",2),i.Ub(2,"span",3),i.lc(3,"nzHighlight"),i.Wb()),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",n.icon&&n.showIcon),i.Db(1),i.sc("innerHTML",i.pc(3,2,n.title,n.matchedValue,"i","font-highlight"),i.Ec)}}function oI(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-tree-node-switcher",4),i.hc("click",(function(e){return i.Dc(n),i.kc().clickExpand(e)})),i.Yb()}if(2&e){var r=i.kc();i.sc("nzShowExpand",r.nzShowExpand)("nzShowLine",r.nzShowLine)("nzExpandedIcon",r.nzExpandedIcon)("nzSelectMode",r.nzSelectMode)("context",r.nzTreeNode)("isLeaf",r.isLeaf)("isExpanded",r.isExpanded)("isLoading",r.isLoading)}}function aI(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-tree-node-checkbox",5),i.hc("click",(function(e){return i.Dc(n),i.kc().clickCheckBox(e)})),i.Yb()}if(2&e){var r=i.kc();i.sc("nzSelectMode",r.nzSelectMode)("isChecked",r.isChecked)("isHalfChecked",r.isHalfChecked)("isDisabled",r.isDisabled)("isDisableCheckbox",r.isDisableCheckbox)}}var sI=["nzTreeTemplate"];function cI(e,t){}var uI=function(e){return{$implicit:e}};function lI(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,cI,0,0,"ng-template",7),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit;i.kc(2);var r=i.Ac(17);i.Db(2),i.sc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.vc(2,uI,n))}}function pI(e,t){if(1&e&&(i.Zb(0,"cdk-virtual-scroll-viewport",5),i.Nc(1,"\n "),i.Lc(2,lI,4,4,"ng-container",6),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Kc("height",n.nzVirtualHeight),i.Jb("ant-select-tree-list-holder-inner",n.nzSelectMode)("ant-tree-list-holder-inner",n.nzSelectMode),i.sc("itemSize",n.nzVirtualItemSize)("minBufferPx",n.nzVirtualMinBufferPx)("maxBufferPx",n.nzVirtualMaxBufferPx),i.Db(2),i.sc("cdkVirtualForOf",n.nzFlattenNodes)("cdkVirtualForTrackBy",n.trackByFlattenNode)}}function hI(e,t){}function dI(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,hI,0,0,"ng-template",7),i.Nc(3,"\n "),i.Wb()),2&e){var n=t.$implicit;i.kc(2);var r=i.Ac(17);i.Db(2),i.sc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.vc(2,uI,n))}}function fI(e,t){if(1&e&&(i.Zb(0,"div",8),i.Nc(1,"\n "),i.Lc(2,dI,4,4,"ng-container",9),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc();i.Jb("ant-select-tree-list-holder-inner",n.nzSelectMode)("ant-tree-list-holder-inner",n.nzSelectMode),i.sc("@.disabled",n.beforeInit||(null==n.noAnimation?null:n.noAnimation.nzNoAnimation))("nzNoAnimation",null==n.noAnimation?null:n.noAnimation.nzNoAnimation)("@treeCollapseMotion",n.nzFlattenNodes.length),i.Db(2),i.sc("ngForOf",n.nzFlattenNodes)("ngForTrackBy",n.trackByFlattenNode)}}function gI(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"nz-tree-node",10),i.hc("nzExpandChange",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzClick",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzDblClick",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzContextMenu",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzCheckBoxChange",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzOnDragStart",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzOnDragEnter",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzOnDragOver",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzOnDragLeave",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzOnDragEnd",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)}))("nzOnDrop",(function(e){return i.Dc(n),i.kc().eventTriggerChanged(e)})),i.Nc(2,"\n "),i.Yb(),i.Nc(3,"\n ")}if(2&e){var r=t.$implicit,o=i.kc();i.Db(1),i.sc("icon",r.icon)("title",r.title)("isLoading",r.isLoading)("isSelected",r.isSelected)("isDisabled",r.isDisabled)("isMatched",r.isMatched)("isExpanded",r.isExpanded)("isLeaf",r.isLeaf)("isStart",r.isStart)("isEnd",r.isEnd)("isChecked",r.isChecked)("isHalfChecked",r.isHalfChecked)("isDisableCheckbox",r.isDisableCheckbox)("isSelectable",r.isSelectable)("canHide",r.canHide)("nzTreeNode",r)("nzSelectMode",o.nzSelectMode)("nzShowLine",o.nzShowLine)("nzExpandedIcon",o.nzExpandedIcon)("nzDraggable",o.nzDraggable)("nzCheckable",o.nzCheckable)("nzShowExpand",o.nzShowExpand)("nzAsyncData",o.nzAsyncData)("nzSearchValue",o.nzSearchValue)("nzHideUnMatched",o.nzHideUnMatched)("nzBeforeDrop",o.nzBeforeDrop)("nzShowIcon",o.nzShowIcon)("nzTreeTemplate",o.nzTreeTemplate||o.nzTreeTemplateChild)}}var bI=function(){function e(){this.nzSelectMode=!1,this.listOfUnit=[]}return e.prototype.unitMapOfClass=function(e){var t;return(t={})["ant-tree-indent-unit"]=!this.nzSelectMode,t["ant-tree-indent-unit-start"]=!this.nzSelectMode&&this.nzIsStart[e+1],t["ant-tree-indent-unit-end"]=!this.nzSelectMode&&this.nzIsEnd[e+1],t["ant-select-tree-indent-unit"]=this.nzSelectMode,t["ant-select-tree-indent-unit-start"]=this.nzSelectMode&&this.nzIsStart[e+1],t["ant-select-tree-indent-unit-end"]=this.nzSelectMode&&this.nzIsEnd[e+1],t},e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=e.nzTreeLevel;t&&(this.listOfUnit=Object(zt.g)(new Array(t.currentValue||0)))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-tree-indent"]],hostVars:5,hostBindings:function(e,t){2&e&&(i.Eb("aria-hidden",!0),i.Jb("ant-tree-indent",!t.nzSelectMode)("ant-select-tree-indent",t.nzSelectMode))},inputs:{nzSelectMode:"nzSelectMode",nzTreeLevel:"nzTreeLevel",nzIsStart:"nzIsStart",nzIsEnd:"nzIsEnd"},exportAs:["nzTreeIndent"],features:[i.Bb],decls:1,vars:1,consts:[[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(e,t){1&e&&i.Lc(0,Hj,1,1,"span",0),2&e&&i.sc("ngForOf",t.listOfUnit)},directives:[Vr.s,Vr.q],encapsulation:2,changeDetection:0}),e}(),mI=function(){function e(){this.nzSelectMode=!1}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-tree-node-checkbox"]],hostVars:16,hostBindings:function(e,t){2&e&&i.Jb("ant-select-tree-checkbox",t.nzSelectMode)("ant-select-tree-checkbox-checked",t.nzSelectMode&&t.isChecked)("ant-select-tree-checkbox-indeterminate",t.nzSelectMode&&t.isHalfChecked)("ant-select-tree-checkbox-disabled",t.nzSelectMode&&(t.isDisabled||t.isDisableCheckbox))("ant-tree-checkbox",!t.nzSelectMode)("ant-tree-checkbox-checked",!t.nzSelectMode&&t.isChecked)("ant-tree-checkbox-indeterminate",!t.nzSelectMode&&t.isHalfChecked)("ant-tree-checkbox-disabled",!t.nzSelectMode&&(t.isDisabled||t.isDisableCheckbox))},inputs:{nzSelectMode:"nzSelectMode",isChecked:"isChecked",isHalfChecked:"isHalfChecked",isDisabled:"isDisabled",isDisableCheckbox:"isDisableCheckbox"},decls:1,vars:4,template:function(e,t){1&e&&i.Ub(0,"span"),2&e&&i.Jb("ant-tree-checkbox-inner",!t.nzSelectMode)("ant-select-tree-checkbox-inner",t.nzSelectMode)},encapsulation:2,changeDetection:0}),e}(),vI=function(){function e(){this.nzSelectMode=!1}return Object.defineProperty(e.prototype,"isShowLineIcon",{get:function(){return!this.isLeaf&&!!this.nzShowLine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isShowSwitchIcon",{get:function(){return!this.isLeaf&&!this.nzShowLine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSwitcherOpen",{get:function(){return!!this.isExpanded&&!this.isLeaf},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSwitcherClose",{get:function(){return!this.isExpanded&&!this.isLeaf},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-tree-node-switcher"]],hostVars:16,hostBindings:function(e,t){2&e&&i.Jb("ant-select-tree-switcher",t.nzSelectMode)("ant-select-tree-switcher-noop",t.nzSelectMode&&t.isLeaf)("ant-select-tree-switcher_open",t.nzSelectMode&&t.isSwitcherOpen)("ant-select-tree-switcher_close",t.nzSelectMode&&t.isSwitcherClose)("ant-tree-switcher",!t.nzSelectMode)("ant-tree-switcher-noop",!t.nzSelectMode&&t.isLeaf)("ant-tree-switcher_open",!t.nzSelectMode&&t.isSwitcherOpen)("ant-tree-switcher_close",!t.nzSelectMode&&t.isSwitcherClose)},inputs:{nzSelectMode:"nzSelectMode",nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzExpandedIcon:"nzExpandedIcon",context:"context",isLeaf:"isLeaf",isLoading:"isLoading",isExpanded:"isExpanded"},decls:4,vars:2,consts:[[4,"ngIf"],["loadingTemplate",""],[4,"ngIf","ngIfElse"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-icon","","nzType","caret-down"],["nz-icon","","class","ant-tree-switcher-line-icon",3,"nzType",4,"ngIf"],["nz-icon","","nzType","file","class","ant-tree-switcher-line-icon",4,"ngIf"],["nz-icon","",1,"ant-tree-switcher-line-icon",3,"nzType"],["nz-icon","","nzType","file",1,"ant-tree-switcher-line-icon"],["nz-icon","","nzType","loading",1,"ant-tree-switcher-loading-icon",3,"nzSpin"]],template:function(e,t){1&e&&(i.Lc(0,$j,2,2,"ng-container",0),i.Lc(1,Jj,2,2,"ng-container",0),i.Lc(2,eI,1,1,"ng-template",null,1,i.Mc)),2&e&&(i.sc("ngIf",t.isShowSwitchIcon),i.Db(1),i.sc("ngIf",t.nzShowLine))},directives:[Vr.t,Es.b,Ns.a],encapsulation:2,changeDetection:0}),e}(),yI=function(){function e(){this.treeTemplate=null,this.selectMode=!1}return Object.defineProperty(e.prototype,"canDraggable",{get:function(){return!(!this.draggable||this.isDisabled)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchedValue",{get:function(){return this.isMatched?this.searchValue:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSwitcherOpen",{get:function(){return this.isExpanded&&!this.isLeaf},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSwitcherClose",{get:function(){return!this.isExpanded&&!this.isLeaf},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-tree-node-title"]],hostVars:21,hostBindings:function(e,t){2&e&&(i.Eb("title",t.title)("draggable",t.canDraggable)("aria-grabbed",t.canDraggable),i.Jb("draggable",t.canDraggable)("ant-select-tree-node-content-wrapper",t.selectMode)("ant-select-tree-node-content-wrapper-open",t.selectMode&&t.isSwitcherOpen)("ant-select-tree-node-content-wrapper-close",t.selectMode&&t.isSwitcherClose)("ant-select-tree-node-selected",t.selectMode&&t.isSelected)("ant-tree-node-content-wrapper",!t.selectMode)("ant-tree-node-content-wrapper-open",!t.selectMode&&t.isSwitcherOpen)("ant-tree-node-content-wrapper-close",!t.selectMode&&t.isSwitcherClose)("ant-tree-node-selected",!t.selectMode&&t.isSelected))},inputs:{treeTemplate:"treeTemplate",selectMode:"selectMode",searchValue:"searchValue",draggable:"draggable",showIcon:"showIcon",context:"context",icon:"icon",title:"title",isLoading:"isLoading",isSelected:"isSelected",isDisabled:"isDisabled",isMatched:"isMatched",isExpanded:"isExpanded",isLeaf:"isLeaf"},decls:2,vars:6,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"ant-tree-icon__open","ant-tree-icon__close","ant-tree-icon_loading","ant-select-tree-iconEle","ant-tree-iconEle",4,"ngIf"],[1,"ant-tree-title",3,"innerHTML"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(e,t){1&e&&(i.Lc(0,tI,0,0,"ng-template",0),i.Lc(1,rI,4,7,"ng-container",1)),2&e&&(i.sc("ngTemplateOutlet",t.treeTemplate)("ngTemplateOutletContext",i.wc(3,qj,t.context,t.context.origin)),i.Db(1),i.sc("ngIf",!t.treeTemplate))},directives:[Vr.A,Vr.t,Ns.a],pipes:[dy],encapsulation:2,changeDetection:0}),e}(),wI=function(){function e(e,t,n,r,o,a){this.nzTreeService=e,this.ngZone=t,this.renderer=n,this.elementRef=r,this.cdr=o,this.noAnimation=a,this.icon="",this.title="",this.isLoading=!1,this.isSelected=!1,this.isDisabled=!1,this.isMatched=!1,this.nzHideUnMatched=!1,this.nzNoAnimation=!1,this.nzSelectMode=!1,this.nzShowIcon=!1,this.nzTreeTemplate=null,this.nzSearchValue="",this.nzDraggable=!1,this.nzClick=new i.n,this.nzDblClick=new i.n,this.nzContextMenu=new i.n,this.nzCheckBoxChange=new i.n,this.nzExpandChange=new i.n,this.nzOnDragStart=new i.n,this.nzOnDragEnter=new i.n,this.nzOnDragOver=new i.n,this.nzOnDragLeave=new i.n,this.nzOnDrop=new i.n,this.nzOnDragEnd=new i.n,this.destroy$=new kt.a,this.dragPos=2,this.dragPosClass={0:"drag-over",1:"drag-over-gap-bottom","-1":"drag-over-gap-top"}}return Object.defineProperty(e.prototype,"displayStyle",{get:function(){return this.nzSearchValue&&this.nzHideUnMatched&&!this.isMatched&&!this.isExpanded&&this.canHide?"none":""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSwitcherOpen",{get:function(){return this.isExpanded&&!this.isLeaf},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSwitcherClose",{get:function(){return!this.isExpanded&&!this.isLeaf},enumerable:!0,configurable:!0}),e.prototype.onMousedown=function(e){this.nzSelectMode&&e.preventDefault()},e.prototype.clickExpand=function(e){e.preventDefault(),this.isLoading||this.isLeaf||(this.nzAsyncData&&0===this.nzTreeNode.children.length&&!this.isExpanded&&(this.nzTreeNode.isLoading=!0),this.nzTreeNode.setExpanded(!this.isExpanded)),this.nzTreeService.setExpandedNodeList(this.nzTreeNode);var t=this.nzTreeService.formatEvent("expand",this.nzTreeNode,e);this.nzExpandChange.emit(t)},e.prototype.clickSelect=function(e){e.preventDefault(),this.isSelectable&&!this.isDisabled&&(this.nzTreeNode.isSelected=!this.nzTreeNode.isSelected),this.nzTreeService.setSelectedNodeList(this.nzTreeNode);var t=this.nzTreeService.formatEvent("click",this.nzTreeNode,e);this.nzClick.emit(t)},e.prototype.dblClick=function(e){e.preventDefault();var t=this.nzTreeService.formatEvent("dblclick",this.nzTreeNode,e);this.nzDblClick.emit(t)},e.prototype.contextMenu=function(e){e.preventDefault();var t=this.nzTreeService.formatEvent("contextmenu",this.nzTreeNode,e);this.nzContextMenu.emit(t)},e.prototype.clickCheckBox=function(e){if(e.preventDefault(),!this.isDisabled&&!this.isDisableCheckbox){this.nzTreeNode.isChecked=!this.nzTreeNode.isChecked,this.nzTreeNode.isHalfChecked=!1,this.nzTreeService.setCheckedNodeList(this.nzTreeNode);var t=this.nzTreeService.formatEvent("check",this.nzTreeNode,e);this.nzCheckBoxChange.emit(t)}},e.prototype.clearDragClass=function(){var e=this;["drag-over-gap-top","drag-over-gap-bottom","drag-over"].forEach((function(t){e.renderer.removeClass(e.elementRef.nativeElement,t)}))},e.prototype.handleDragStart=function(e){try{e.dataTransfer.setData("text/plain",this.nzTreeNode.key)}catch(n){}this.nzTreeService.setSelectedNode(this.nzTreeNode);var t=this.nzTreeService.formatEvent("dragstart",this.nzTreeNode,e);this.nzOnDragStart.emit(t)},e.prototype.handleDragEnter=function(e){var t=this;e.preventDefault(),this.dragPos=2,this.ngZone.run((function(){var n=t.nzTreeService.formatEvent("dragenter",t.nzTreeNode,e);t.nzOnDragEnter.emit(n)}))},e.prototype.handleDragOver=function(e){e.preventDefault();var t=this.nzTreeService.calcDropPosition(e);this.dragPos!==t&&(this.clearDragClass(),this.dragPos=t,0===this.dragPos&&this.isLeaf||this.renderer.addClass(this.elementRef.nativeElement,this.dragPosClass[this.dragPos]));var n=this.nzTreeService.formatEvent("dragover",this.nzTreeNode,e);this.nzOnDragOver.emit(n)},e.prototype.handleDragLeave=function(e){e.preventDefault(),this.clearDragClass();var t=this.nzTreeService.formatEvent("dragleave",this.nzTreeNode,e);this.nzOnDragLeave.emit(t)},e.prototype.handleDragDrop=function(e){var t=this;this.ngZone.run((function(){t.clearDragClass();var n=t.nzTreeService.getSelectedNode();if(!(!n||n&&n.key===t.nzTreeNode.key||0===t.dragPos&&t.isLeaf)){var i=t.nzTreeService.formatEvent("drop",t.nzTreeNode,e),r=t.nzTreeService.formatEvent("dragend",t.nzTreeNode,e);t.nzBeforeDrop?t.nzBeforeDrop({dragNode:t.nzTreeService.getSelectedNode(),node:t.nzTreeNode,pos:t.dragPos}).subscribe((function(e){e&&t.nzTreeService.dropAndApply(t.nzTreeNode,t.dragPos),t.nzOnDrop.emit(i),t.nzOnDragEnd.emit(r)})):t.nzTreeNode&&(t.nzTreeService.dropAndApply(t.nzTreeNode,t.dragPos),t.nzOnDrop.emit(i))}}))},e.prototype.handleDragEnd=function(e){var t=this;e.preventDefault(),this.ngZone.run((function(){if(!t.nzBeforeDrop){var n=t.nzTreeService.formatEvent("dragend",t.nzTreeNode,e);t.nzOnDragEnd.emit(n)}}))},e.prototype.handDragEvent=function(){var e=this;this.ngZone.runOutsideAngular((function(){if(e.nzDraggable){var t=e.elementRef.nativeElement;e.destroy$=new kt.a,Object(Cs.a)(t,"dragstart").pipe(Object(ss.a)(e.destroy$)).subscribe((function(t){return e.handleDragStart(t)})),Object(Cs.a)(t,"dragenter").pipe(Object(ss.a)(e.destroy$)).subscribe((function(t){return e.handleDragEnter(t)})),Object(Cs.a)(t,"dragover").pipe(Object(ss.a)(e.destroy$)).subscribe((function(t){return e.handleDragOver(t)})),Object(Cs.a)(t,"dragleave").pipe(Object(ss.a)(e.destroy$)).subscribe((function(t){return e.handleDragLeave(t)})),Object(Cs.a)(t,"drop").pipe(Object(ss.a)(e.destroy$)).subscribe((function(t){return e.handleDragDrop(t)})),Object(Cs.a)(t,"dragend").pipe(Object(ss.a)(e.destroy$)).subscribe((function(t){return e.handleDragEnd(t)}))}else e.destroy$.next(),e.destroy$.complete()}))},e.prototype.markForCheck=function(){this.cdr.markForCheck()},e.prototype.ngOnInit=function(){this.nzTreeNode.component=this},e.prototype.ngOnChanges=function(e){e.nzDraggable&&this.handDragEvent()},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowLine",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzShowExpand",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzCheckable",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],e.prototype,"nzAsyncData",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzHideUnMatched",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzNoAnimation",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSelectMode",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowIcon",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Bj),i.Tb(i.z),i.Tb(i.E),i.Tb(i.l),i.Tb(i.h),i.Tb(ac.a,9))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-tree-node"]],hostVars:34,hostBindings:function(e,t){1&e&&i.hc("mousedown",(function(e){return t.onMousedown(e)})),2&e&&(i.Kc("display",t.displayStyle),i.Jb("ant-select-tree-treenode",t.nzSelectMode)("ant-select-tree-treenode-disabled",t.nzSelectMode&&t.isDisabled)("ant-select-tree-treenode-switcher-open",t.nzSelectMode&&t.isSwitcherOpen)("ant-select-tree-treenode-switcher-close",t.nzSelectMode&&t.isSwitcherClose)("ant-select-tree-treenode-checkbox-checked",t.nzSelectMode&&t.isChecked)("ant-select-tree-treenode-checkbox-indeterminate",t.nzSelectMode&&t.isHalfChecked)("ant-select-tree-treenode-selected",t.nzSelectMode&&t.isSelected)("ant-select-tree-treenode-loading",t.nzSelectMode&&t.isLoading)("ant-tree-treenode",!t.nzSelectMode)("ant-tree-treenode-disabled",!t.nzSelectMode&&t.isDisabled)("ant-tree-treenode-switcher-open",!t.nzSelectMode&&t.isSwitcherOpen)("ant-tree-treenode-switcher-close",!t.nzSelectMode&&t.isSwitcherClose)("ant-tree-treenode-checkbox-checked",!t.nzSelectMode&&t.isChecked)("ant-tree-treenode-checkbox-indeterminate",!t.nzSelectMode&&t.isHalfChecked)("ant-tree-treenode-selected",!t.nzSelectMode&&t.isSelected)("ant-tree-treenode-loading",!t.nzSelectMode&&t.isLoading))},inputs:{icon:"icon",title:"title",isLoading:"isLoading",isSelected:"isSelected",isDisabled:"isDisabled",isMatched:"isMatched",nzHideUnMatched:"nzHideUnMatched",nzNoAnimation:"nzNoAnimation",nzSelectMode:"nzSelectMode",nzShowIcon:"nzShowIcon",nzTreeTemplate:"nzTreeTemplate",nzSearchValue:"nzSearchValue",nzDraggable:"nzDraggable",isExpanded:"isExpanded",isLeaf:"isLeaf",isChecked:"isChecked",isHalfChecked:"isHalfChecked",isDisableCheckbox:"isDisableCheckbox",isSelectable:"isSelectable",canHide:"canHide",isStart:"isStart",isEnd:"isEnd",nzTreeNode:"nzTreeNode",nzShowLine:"nzShowLine",nzShowExpand:"nzShowExpand",nzCheckable:"nzCheckable",nzAsyncData:"nzAsyncData",nzExpandedIcon:"nzExpandedIcon",nzBeforeDrop:"nzBeforeDrop"},outputs:{nzClick:"nzClick",nzDblClick:"nzDblClick",nzContextMenu:"nzContextMenu",nzCheckBoxChange:"nzCheckBoxChange",nzExpandChange:"nzExpandChange",nzOnDragStart:"nzOnDragStart",nzOnDragEnter:"nzOnDragEnter",nzOnDragOver:"nzOnDragOver",nzOnDragLeave:"nzOnDragLeave",nzOnDrop:"nzOnDrop",nzOnDragEnd:"nzOnDragEnd"},exportAs:["nzTreeNode"],features:[i.Bb],decls:4,vars:20,consts:[[3,"nzTreeLevel","nzSelectMode","nzIsStart","nzIsEnd"],[3,"nzShowExpand","nzShowLine","nzExpandedIcon","nzSelectMode","context","isLeaf","isExpanded","isLoading","click",4,"ngIf"],[3,"nzSelectMode","isChecked","isHalfChecked","isDisabled","isDisableCheckbox","click",4,"ngIf"],[3,"icon","title","isLoading","isSelected","isDisabled","isMatched","isExpanded","isLeaf","searchValue","treeTemplate","draggable","showIcon","selectMode","context","dblclick","click","contextmenu"],[3,"nzShowExpand","nzShowLine","nzExpandedIcon","nzSelectMode","context","isLeaf","isExpanded","isLoading","click"],[3,"nzSelectMode","isChecked","isHalfChecked","isDisabled","isDisableCheckbox","click"]],template:function(e,t){1&e&&(i.Ub(0,"nz-tree-indent",0),i.Lc(1,oI,1,8,"nz-tree-node-switcher",1),i.Lc(2,aI,1,5,"nz-tree-node-checkbox",2),i.Zb(3,"nz-tree-node-title",3),i.hc("dblclick",(function(e){return t.dblClick(e)}))("click",(function(e){return t.clickSelect(e)}))("contextmenu",(function(e){return t.contextMenu(e)})),i.Yb()),2&e&&(i.sc("nzTreeLevel",t.nzTreeNode.level)("nzSelectMode",t.nzSelectMode)("nzIsStart",t.isStart)("nzIsEnd",t.isEnd),i.Db(1),i.sc("ngIf",t.nzShowExpand),i.Db(1),i.sc("ngIf",t.nzCheckable),i.Db(1),i.sc("icon",t.icon)("title",t.title)("isLoading",t.isLoading)("isSelected",t.isSelected)("isDisabled",t.isDisabled)("isMatched",t.isMatched)("isExpanded",t.isExpanded)("isLeaf",t.isLeaf)("searchValue",t.nzSearchValue)("treeTemplate",t.nzTreeTemplate)("draggable",t.nzDraggable)("showIcon",t.nzShowIcon)("selectMode",t.nzSelectMode)("context",t.nzTreeNode))},directives:[bI,Vr.t,yI,vI,mI],encapsulation:2,changeDetection:0}),e}(),OI=function(e){function t(){return e.call(this)||this}return Object(zt.c)(t,e),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Pb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(Bj);function CI(e,t){return e||t}var SI=function(e){function t(t,n,r,o){var a=e.call(this,t)||this;return a.nzConfigService=n,a.cdr=r,a.noAnimation=o,a.nzShowIcon=!1,a.nzHideUnMatched=!1,a.nzBlockNode=!1,a.nzExpandAll=!1,a.nzSelectMode=!1,a.nzCheckStrictly=!1,a.nzShowExpand=!0,a.nzShowLine=!1,a.nzCheckable=!1,a.nzAsyncData=!1,a.nzDraggable=!1,a.nzMultiple=!1,a.nzVirtualItemSize=28,a.nzVirtualMaxBufferPx=500,a.nzVirtualMinBufferPx=28,a.nzVirtualHeight=null,a.nzData=[],a.nzExpandedKeys=[],a.nzSelectedKeys=[],a.nzCheckedKeys=[],a.nzFlattenNodes=[],a.beforeInit=!0,a.nzExpandedKeysChange=new i.n,a.nzSelectedKeysChange=new i.n,a.nzCheckedKeysChange=new i.n,a.nzSearchValueChange=new i.n,a.nzClick=new i.n,a.nzDblClick=new i.n,a.nzContextMenu=new i.n,a.nzCheckBoxChange=new i.n,a.nzExpandChange=new i.n,a.nzOnDragStart=new i.n,a.nzOnDragEnter=new i.n,a.nzOnDragOver=new i.n,a.nzOnDragLeave=new i.n,a.nzOnDrop=new i.n,a.nzOnDragEnd=new i.n,a.HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},a.destroy$=new kt.a,a.onChange=function(){return null},a.onTouched=function(){return null},a}return Object(zt.c)(t,e),t.prototype.writeValue=function(e){this.handleNzData(e)},t.prototype.registerOnChange=function(e){this.onChange=e},t.prototype.registerOnTouched=function(e){this.onTouched=e},t.prototype.renderTreeProperties=function(e){var t=!1,n=!1,i=e.nzData,r=e.nzExpandedKeys,o=e.nzSelectedKeys,a=e.nzCheckedKeys,s=e.nzCheckStrictly,c=e.nzExpandAll,u=e.nzSearchValue;c&&(t=!0,n=this.nzExpandAll),e.nzMultiple&&(this.nzTreeService.isMultiple=this.nzMultiple),s&&(this.nzTreeService.isCheckStrictly=this.nzCheckStrictly),i&&this.handleNzData(this.nzData),(a||s)&&this.handleCheckedKeys(this.nzCheckedKeys),(r||c)&&(t=!0,this.handleExpandedKeys(n||this.nzExpandedKeys)),o&&this.handleSelectedKeys(this.nzSelectedKeys,this.nzMultiple),u&&(u.firstChange&&!this.nzSearchValue||(t=!1,this.handleSearchValue(u.currentValue,this.nzSearchFunc),this.nzSearchValueChange.emit(this.nzTreeService.formatEvent("search",null,null))));var l=this.getExpandedNodeList().map((function(e){return e.key}));this.handleFlattenNodes(this.nzTreeService.rootNodes,t?n||this.nzExpandedKeys:l)},t.prototype.trackByFlattenNode=function(e,t){return t.key},t.prototype.handleNzData=function(e){if(Array.isArray(e)){var t=this.coerceTreeNodes(e);this.nzTreeService.initTree(t)}},t.prototype.handleFlattenNodes=function(e,t){void 0===t&&(t=[]),this.nzTreeService.flattenTreeData(e,t)},t.prototype.handleCheckedKeys=function(e){this.nzTreeService.conductCheck(e,this.nzCheckStrictly)},t.prototype.handleExpandedKeys=function(e){void 0===e&&(e=[]),this.nzTreeService.conductExpandedKeys(e)},t.prototype.handleSelectedKeys=function(e,t){this.nzTreeService.conductSelectedKeys(e,t)},t.prototype.handleSearchValue=function(e,t){var n=this;Vj(this.nzTreeService.rootNodes,!0).map((function(e){return e.data})).forEach((function(i){var r;i.isMatched=(r=i,t?t(r.origin):!(!e||!r.title.toLowerCase().includes(e.toLowerCase()))),i.canHide=!i.isMatched,i.isMatched?n.nzTreeService.expandNodeAllParentBySearch(i):(i.setExpanded(!1),n.nzTreeService.setExpandedNodeList(i)),n.nzTreeService.setMatchedNodeList(i)}))},t.prototype.eventTriggerChanged=function(e){var t=e.node;switch(e.eventName){case"expand":this.renderTree(),this.nzExpandChange.emit(e);break;case"click":this.nzClick.emit(e);break;case"dblclick":this.nzDblClick.emit(e);break;case"contextmenu":this.nzContextMenu.emit(e);break;case"check":this.nzTreeService.setCheckedNodeList(t),this.nzCheckStrictly||this.nzTreeService.conduct(t);var n=this.nzTreeService.formatEvent("check",t,e.event);this.nzCheckBoxChange.emit(n);break;case"dragstart":t.isExpanded&&(t.setExpanded(!t.isExpanded),this.renderTree()),this.nzOnDragStart.emit(e);break;case"dragenter":var i=this.nzTreeService.getSelectedNode();!i||i.key===t.key||t.isExpanded||t.isLeaf||(t.setExpanded(!0),this.renderTree()),this.nzOnDragEnter.emit(e);break;case"dragover":this.nzOnDragOver.emit(e);break;case"dragleave":this.nzOnDragLeave.emit(e);break;case"dragend":this.nzOnDragEnd.emit(e);break;case"drop":this.renderTree(),this.nzOnDrop.emit(e)}},t.prototype.renderTree=function(){this.handleFlattenNodes(this.nzTreeService.rootNodes,this.getExpandedNodeList().map((function(e){return e.key}))),this.cdr.markForCheck()},t.prototype.ngOnInit=function(){var e=this;this.nzTreeService.flattenNodes$.pipe(Object(ss.a)(this.destroy$)).subscribe((function(t){e.nzFlattenNodes=t,e.cdr.markForCheck()}))},t.prototype.ngOnChanges=function(e){this.renderTreeProperties(e)},t.prototype.ngAfterViewInit=function(){this.beforeInit=!1},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},Object(zt.b)([Object(es.a)(),Object(Qa.b)("tree"),Object(zt.d)("design:type",Boolean)],t.prototype,"nzShowIcon",void 0),Object(zt.b)([Object(es.a)(),Object(Qa.b)("tree"),Object(zt.d)("design:type",Boolean)],t.prototype,"nzHideUnMatched",void 0),Object(zt.b)([Object(es.a)(),Object(Qa.b)("tree"),Object(zt.d)("design:type",Boolean)],t.prototype,"nzBlockNode",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzExpandAll",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzSelectMode",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzCheckStrictly",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzShowExpand",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzShowLine",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzCheckable",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzAsyncData",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzDraggable",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzMultiple",void 0),t.\u0275fac=function(e){return new(e||t)(i.Tb(Bj),i.Tb(Qa.a),i.Tb(i.h),i.Tb(ac.a,9))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-tree"]],contentQueries:function(e,t,n){var r;1&e&&i.Ic(n,sI,!0),2&e&&i.zc(r=i.ic())&&(t.nzTreeTemplateChild=r.first)},viewQuery:function(e,t){var n;1&e&&i.Sc(Rb.c,!0,Rb.c),2&e&&i.zc(n=i.ic())&&(t.cdkVirtualScrollViewport=n.first)},hostVars:18,hostBindings:function(e,t){2&e&&i.Jb("ant-select-tree",t.nzSelectMode)("ant-select-tree-show-line",t.nzSelectMode&&t.nzShowLine)("ant-select-tree-icon-hide",t.nzSelectMode&&!t.nzShowIcon)("ant-select-tree-block-node",t.nzSelectMode&&t.nzBlockNode)("ant-tree",!t.nzSelectMode)("ant-tree-show-line",!t.nzSelectMode&&t.nzShowLine)("ant-tree-icon-hide",!t.nzSelectMode&&!t.nzShowIcon)("ant-tree-block-node",!t.nzSelectMode&&t.nzBlockNode)("draggable-tree",t.nzDraggable)},inputs:{nzShowIcon:"nzShowIcon",nzHideUnMatched:"nzHideUnMatched",nzBlockNode:"nzBlockNode",nzExpandAll:"nzExpandAll",nzSelectMode:"nzSelectMode",nzCheckStrictly:"nzCheckStrictly",nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzCheckable:"nzCheckable",nzAsyncData:"nzAsyncData",nzDraggable:"nzDraggable",nzMultiple:"nzMultiple",nzExpandedIcon:"nzExpandedIcon",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualHeight:"nzVirtualHeight",nzTreeTemplate:"nzTreeTemplate",nzBeforeDrop:"nzBeforeDrop",nzData:"nzData",nzExpandedKeys:"nzExpandedKeys",nzSelectedKeys:"nzSelectedKeys",nzCheckedKeys:"nzCheckedKeys",nzSearchValue:"nzSearchValue",nzSearchFunc:"nzSearchFunc"},outputs:{nzExpandedKeysChange:"nzExpandedKeysChange",nzSelectedKeysChange:"nzSelectedKeysChange",nzCheckedKeysChange:"nzCheckedKeysChange",nzSearchValueChange:"nzSearchValueChange",nzClick:"nzClick",nzDblClick:"nzDblClick",nzContextMenu:"nzContextMenu",nzCheckBoxChange:"nzCheckBoxChange",nzExpandChange:"nzExpandChange",nzOnDragStart:"nzOnDragStart",nzOnDragEnter:"nzOnDragEnter",nzOnDragOver:"nzOnDragOver",nzOnDragLeave:"nzOnDragLeave",nzOnDrop:"nzOnDrop",nzOnDragEnd:"nzOnDragEnd"},exportAs:["nzTree"],features:[i.Cb([OI,{provide:Bj,useFactory:CI,deps:[[new i.K,new i.A,Yj],OI]},{provide:Ot.m,useExisting:Object(i.V)((function(){return t})),multi:!0}]),i.Ab,i.Bb],decls:19,vars:7,consts:[["role","tree"],[3,"ngStyle"],[3,"ant-select-tree-list-holder-inner","ant-tree-list-holder-inner","itemSize","minBufferPx","maxBufferPx","height",4,"ngIf"],[3,"ant-select-tree-list-holder-inner","ant-tree-list-holder-inner","nzNoAnimation",4,"ngIf"],["nodeTemplate",""],[3,"itemSize","minBufferPx","maxBufferPx"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoAnimation"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"icon","title","isLoading","isSelected","isDisabled","isMatched","isExpanded","isLeaf","isStart","isEnd","isChecked","isHalfChecked","isDisableCheckbox","isSelectable","canHide","nzTreeNode","nzSelectMode","nzShowLine","nzExpandedIcon","nzDraggable","nzCheckable","nzShowExpand","nzAsyncData","nzSearchValue","nzHideUnMatched","nzBeforeDrop","nzShowIcon","nzTreeTemplate","nzExpandChange","nzClick","nzDblClick","nzContextMenu","nzCheckBoxChange","nzOnDragStart","nzOnDragEnter","nzOnDragOver","nzOnDragLeave","nzOnDragEnd","nzOnDrop"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",0),i.Nc(2,"\n "),i.Ub(3,"input",1),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"div"),i.Nc(7,"\n "),i.Zb(8,"div"),i.Nc(9,"\n "),i.Lc(10,pI,4,11,"cdk-virtual-scroll-viewport",2),i.Nc(11,"\n\n "),i.Lc(12,fI,4,9,"div",3),i.Nc(13,"\n "),i.Yb(),i.Nc(14,"\n "),i.Yb(),i.Nc(15,"\n "),i.Lc(16,gI,4,28,"ng-template",null,4,i.Mc),i.Nc(18,"\n ")),2&e&&(i.Db(3),i.sc("ngStyle",t.HIDDEN_STYLE),i.Db(3),i.Jb("ant-select-tree-list",t.nzSelectMode)("ant-tree-list",t.nzSelectMode),i.Db(4),i.sc("ngIf",t.nzVirtualHeight),i.Db(2),i.sc("ngIf",!t.nzVirtualHeight))},directives:[Vr.w,Vr.t,Rb.c,Rb.a,Rb.b,Vr.A,ac.a,Vr.s,wI],encapsulation:2,data:{animation:[xs.h]},changeDetection:0}),t}(Uj),zI=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Es.a,Ns.b,ac.b,fy,Rb.e]]}),e}(),TI=["nzTreeTemplate"],_I=["treeRef"];function kI(e,t){if(1&e&&(i.Zb(0,"span",11),i.Nc(1,"\n "),i.Ub(2,"nz-embed-empty",12),i.Nc(3,"\n "),i.Yb()),2&e){var n=i.kc(2);i.Db(2),i.sc("nzComponentName","tree-select")("specificContent",n.nzNotFoundContent)}}var DI=function(){return[]};function xI(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",7),i.Nc(2,"\n "),i.Zb(3,"nz-tree",8,9),i.hc("nzExpandChange",(function(e){return i.Dc(n),i.kc().onExpandedKeysChange(e)}))("nzClick",(function(e){return i.Dc(n),i.kc().nzTreeClick.emit(e)}))("nzCheckedKeysChange",(function(){return i.Dc(n),i.kc().updateSelectedNodes()}))("nzSelectedKeysChange",(function(){return i.Dc(n),i.kc().updateSelectedNodes()}))("nzCheckBoxChange",(function(e){return i.Dc(n),i.kc().nzTreeCheckBoxChange.emit(e)}))("nzSearchValueChange",(function(e){return i.Dc(n),i.kc().setSearchValues(e)})),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "),i.Lc(7,kI,4,2,"span",10),i.Nc(8,"\n "),i.Yb(),i.Nc(9,"\n ")}if(2&e){var r=i.kc();i.Db(1),i.Jb("ant-select-dropdown-placement-bottomLeft","bottom"===r.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===r.dropDownPosition),i.sc("ngClass",r.dropdownClassName)("@slideMotion",r.nzOpen?r.dropDownPosition:"void")("@.disabled",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("nzNoAnimation",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("ngStyle",r.nzDropdownStyle),i.Db(2),i.sc("hidden",r.isNotFound)("nzData",r.nzNodes)("nzMultiple",r.nzMultiple)("nzSearchValue",r.inputValue)("nzHideUnMatched",r.nzHideUnMatched)("nzShowIcon",r.nzShowIcon)("nzCheckable",r.nzCheckable)("nzAsyncData",r.nzAsyncData)("nzShowExpand",r.nzShowExpand)("nzShowLine",r.nzShowLine)("nzExpandedIcon",r.nzExpandedIcon)("nzExpandAll",r.nzDefaultExpandAll)("nzExpandedKeys",r.expandedKeys)("nzCheckedKeys",r.nzCheckable?r.value:i.uc(27,DI))("nzSelectedKeys",r.nzCheckable?i.uc(28,DI):r.value)("nzTreeTemplate",r.treeTemplate)("nzCheckStrictly",r.nzCheckStrictly),i.Db(4),i.sc("ngIf",0===r.nzNodes.length||r.isNotFound)}}function EI(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-select-item",15),i.hc("@zoomMotion.done",(function(){return i.Dc(n),i.kc(2).updatePosition()}))("delete",(function(){i.Dc(n);var e=t.$implicit;return i.kc(2).removeSelected(e,!0)})),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc(2);i.sc("@zoomMotion",void 0)("@.disabled",null==o.noAnimation?null:o.noAnimation.nzNoAnimation)("nzNoAnimation",null==o.noAnimation?null:o.noAnimation.nzNoAnimation)("deletable",!0)("disabled",r.isDisabled||o.nzDisabled)("label",o.nzDisplayWith(r))}}function NI(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-select-item",16),i.hc("@zoomMotion.done",(function(){return i.Dc(n),i.kc(2).updatePosition()})),i.lc(1,"slice"),i.Yb()}if(2&e){var r=i.kc(2);i.sc("@zoomMotion",void 0)("@.disabled",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("nzNoAnimation",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("contentTemplateOutlet",r.nzMaxTagPlaceholder)("contentTemplateOutletContext",i.nc(1,8,r.selectedNodes,r.nzMaxTagCount))("deletable",!1)("disabled",!1)("label","+ "+(r.selectedNodes.length-r.nzMaxTagCount)+" ...")}}function jI(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Lc(2,EI,1,6,"nz-select-item",13),i.lc(3,"slice"),i.Nc(4,"\n\n "),i.Lc(5,NI,2,11,"nz-select-item",14),i.Nc(6,"\n "),i.Wb()),2&e){var n=i.kc();i.Db(2),i.sc("ngForOf",i.oc(3,3,n.selectedNodes,0,n.nzMaxTagCount))("ngForTrackBy",n.trackValue),i.Db(3),i.sc("ngIf",n.selectedNodes.length>n.nzMaxTagCount)}}function II(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-select-search",17),i.hc("keydown",(function(e){return i.Dc(n),i.kc().onKeyDownInput(e)}))("isComposingChange",(function(e){return i.Dc(n),i.kc().isComposing=e}))("valueChange",(function(e){return i.Dc(n),i.kc().setInputValue(e)})),i.Nc(1,"\n "),i.Yb()}if(2&e){var r=i.kc();i.sc("value",r.inputValue)("mirrorSync",r.isMultiple)("disabled",r.nzDisabled)("showInput",r.nzOpen)}}function AI(e,t){if(1&e&&(i.Zb(0,"nz-select-placeholder",18),i.Nc(1,"\n "),i.Yb()),2&e){var n=i.kc();i.Kc("display",n.placeHolderDisplay),i.sc("placeholder",n.nzPlaceHolder)}}function MI(e,t){if(1&e&&i.Ub(0,"nz-select-item",19),2&e){var n=i.kc();i.sc("deletable",!1)("disabled",!1)("label",n.nzDisplayWith(n.selectedNodes[0]))}}function LI(e,t){1&e&&i.Ub(0,"nz-select-arrow")}function PI(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-select-clear",20),i.hc("clear",(function(){return i.Dc(n),i.kc().onClearSelection()})),i.Yb()}}var FI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(zt.c)(t,e),t.\u0275fac=function(e){return n(e||t)},t.\u0275prov=i.Pb({token:t,factory:function(e){return t.\u0275fac(e)}});var n=i.bc(t);return t}(Bj);function RI(e){return e.get(FI)}var VI=function(e){function t(t,n,r,o,a,s){var c=e.call(this,t)||this;return c.nzConfigService=n,c.renderer=r,c.cdr=o,c.elementRef=a,c.noAnimation=s,c.nzAllowClear=!0,c.nzShowExpand=!0,c.nzShowLine=!1,c.nzDropdownMatchSelectWidth=!0,c.nzCheckable=!1,c.nzHideUnMatched=!1,c.nzShowIcon=!1,c.nzShowSearch=!1,c.nzDisabled=!1,c.nzAsyncData=!1,c.nzMultiple=!1,c.nzDefaultExpandAll=!1,c.nzCheckStrictly=!1,c.nzNodes=[],c.nzOpen=!1,c.nzSize="default",c.nzPlaceHolder="",c.nzDropdownStyle=null,c.nzDisplayWith=function(e){return e.title},c.nzMaxTagPlaceholder=null,c.nzOpenChange=new i.n,c.nzCleared=new i.n,c.nzRemoved=new i.n,c.nzExpandChange=new i.n,c.nzTreeClick=new i.n,c.nzTreeCheckBoxChange=new i.n,c.dropdownClassName="ant-select-dropdown ant-select-tree-dropdown",c.isComposing=!1,c.isDestroy=!0,c.isNotFound=!1,c.inputValue="",c.dropDownPosition="bottom",c.selectedNodes=[],c.expandedKeys=[],c.value=[],c.onChange=function(e){},c.onTouched=function(){},c.renderer.addClass(c.elementRef.nativeElement,"ant-select"),c.renderer.addClass(c.elementRef.nativeElement,"ant-tree-select"),c}return Object(zt.c)(t,e),Object.defineProperty(t.prototype,"nzExpandedKeys",{get:function(){return this.expandedKeys},set:function(e){this.expandedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"treeTemplate",{get:function(){return this.nzTreeTemplate||this.nzTreeTemplateChild},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeHolderDisplay",{get:function(){return this.inputValue||this.isComposing||this.selectedNodes.length?"none":"block"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMultiple",{get:function(){return this.nzMultiple||this.nzCheckable},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.isDestroy=!1,this.selectionChangeSubscription=this.subscribeSelectionChange()},t.prototype.ngOnDestroy=function(){this.isDestroy=!0,this.closeDropDown(),this.selectionChangeSubscription.unsubscribe()},t.prototype.setDisabledState=function(e){this.nzDisabled=e,this.closeDropDown()},t.prototype.ngOnChanges=function(e){var t=e.nzDropdownClassName;if(e.nzNodes&&this.updateSelectedNodes(!0),t){var n=this.nzDropdownClassName&&this.nzDropdownClassName.trim();this.dropdownClassName=n?"ant-select-dropdown ant-select-tree-dropdown "+n:"ant-select-dropdown ant-select-tree-dropdown"}},t.prototype.writeValue=function(e){var t=this;Object(es.p)(e)?(this.value=this.isMultiple&&Array.isArray(e)?e:[e],this.updateSelectedNodes(!0)):(this.value=[],this.selectedNodes.forEach((function(e){t.removeSelected(e,!1)})),this.selectedNodes=[]),this.cdr.markForCheck()},t.prototype.registerOnChange=function(e){this.onChange=e},t.prototype.registerOnTouched=function(e){this.onTouched=e},t.prototype.trigger=function(){this.nzDisabled||!this.nzDisabled&&this.nzOpen?this.closeDropDown():(this.openDropdown(),(this.nzShowSearch||this.isMultiple)&&this.focusOnInput())},t.prototype.openDropdown=function(){this.nzDisabled||(this.nzOpen=!0,this.nzOpenChange.emit(this.nzOpen),this.updateCdkConnectedOverlayStatus(),this.updatePosition())},t.prototype.closeDropDown=function(){this.onTouched(),this.nzOpen=!1,this.inputValue="",this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck()},t.prototype.onKeyDownInput=function(e){this.isMultiple&&!e.target.value&&e.keyCode===Zr.b&&(e.preventDefault(),this.selectedNodes.length&&this.removeSelected(this.selectedNodes[this.selectedNodes.length-1]))},t.prototype.onExpandedKeysChange=function(e){this.nzExpandChange.emit(e),this.expandedKeys=Object(zt.g)(e.keys)},t.prototype.setInputValue=function(e){this.inputValue=e,this.updatePosition()},t.prototype.removeSelected=function(e,t){void 0===t&&(t=!0),e.isSelected=!1,e.isChecked=!1,this.nzCheckable?this.nzTreeService.conduct(e):this.nzTreeService.setSelectedNodeList(e,this.nzMultiple),t&&this.nzRemoved.emit(e)},t.prototype.focusOnInput=function(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()},t.prototype.subscribeSelectionChange=function(){var e=this;return Object(Tt.a)(this.nzTreeClick.pipe(Object($r.a)((function(t){var n=t.node;!e.nzCheckable||n.isDisabled||n.isDisableCheckbox||(n.isChecked=!n.isChecked,n.isHalfChecked=!1,e.nzCheckStrictly||e.nzTreeService.conduct(n)),e.nzCheckable&&(n.isSelected=!1)})),Object(Pt.a)((function(t){var n=t.node;return e.nzCheckable?!n.isDisabled&&!n.isDisableCheckbox:!n.isDisabled&&n.isSelectable}))),this.nzCheckable?this.nzTreeCheckBoxChange:Object(qr.a)(),this.nzCleared,this.nzRemoved).subscribe((function(){e.updateSelectedNodes();var t=e.selectedNodes.map((function(e){return e.key}));e.value=Object(zt.g)(t),(e.nzShowSearch||e.isMultiple)&&(e.inputValue="",e.isNotFound=!1),e.isMultiple?(e.onChange(t),e.focusOnInput(),e.updatePosition()):(e.closeDropDown(),e.onChange(t.length?t[0]:null))}))},t.prototype.updateSelectedNodes=function(e){if(void 0===e&&(e=!1),e){var t=this.coerceTreeNodes(this.nzNodes);this.nzTreeService.isMultiple=this.isMultiple,this.nzTreeService.isCheckStrictly=this.nzCheckStrictly,this.nzTreeService.initTree(t),this.nzCheckable?this.nzTreeService.conductCheck(this.value,this.nzCheckStrictly):this.nzTreeService.conductSelectedKeys(this.value,this.isMultiple)}this.selectedNodes=Object(zt.g)(this.nzCheckable?this.getCheckedNodeList():this.getSelectedNodeList())},t.prototype.updatePosition=function(){var e=this;setTimeout((function(){e.cdkConnectedOverlay&&e.cdkConnectedOverlay.overlayRef&&e.cdkConnectedOverlay.overlayRef.updatePosition()}))},t.prototype.onPositionChange=function(e){this.dropDownPosition=e.connectionPair.originY},t.prototype.onClearSelection=function(){var e=this;this.selectedNodes.forEach((function(t){e.removeSelected(t,!1)})),this.nzCleared.emit()},t.prototype.setSearchValues=function(e){var t=this;Promise.resolve().then((function(){t.isNotFound=(t.nzShowSearch||t.isMultiple)&&!!t.inputValue&&0===e.matchedKeys.length}))},t.prototype.updateCdkConnectedOverlayStatus=function(){this.triggerWidth=this.cdkOverlayOrigin.elementRef.nativeElement.getBoundingClientRect().width},t.prototype.trackValue=function(e,t){return t.key},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzAllowClear",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzShowExpand",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzShowLine",void 0),Object(zt.b)([Object(es.a)(),Object(Qa.b)("treeSelect"),Object(zt.d)("design:type",Boolean)],t.prototype,"nzDropdownMatchSelectWidth",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzCheckable",void 0),Object(zt.b)([Object(es.a)(),Object(Qa.b)("treeSelect"),Object(zt.d)("design:type",Boolean)],t.prototype,"nzHideUnMatched",void 0),Object(zt.b)([Object(es.a)(),Object(Qa.b)("treeSelect"),Object(zt.d)("design:type",Boolean)],t.prototype,"nzShowIcon",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Boolean)],t.prototype,"nzShowSearch",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzAsyncData",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzMultiple",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzDefaultExpandAll",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],t.prototype,"nzCheckStrictly",void 0),Object(zt.b)([Object(Qa.b)("treeSelect"),Object(zt.d)("design:type",String)],t.prototype,"nzSize",void 0),t.\u0275fac=function(e){return new(e||t)(i.Tb(FI),i.Tb(Qa.a),i.Tb(i.E),i.Tb(i.h),i.Tb(i.l),i.Tb(ac.a,9))},t.\u0275cmp=i.Nb({type:t,selectors:[["nz-tree-select"]],contentQueries:function(e,t,n){var r;1&e&&i.Ic(n,TI,!0),2&e&&i.zc(r=i.ic())&&(t.nzTreeTemplateChild=r.first)},viewQuery:function(e,t){var n;1&e&&(i.Sc(Gm,!0),i.Sc(_I,!0),i.Jc(Ur.b,!0),i.Sc(Ur.a,!0)),2&e&&(i.zc(n=i.ic())&&(t.nzSelectSearchComponent=n.first),i.zc(n=i.ic())&&(t.treeRef=n.first),i.zc(n=i.ic())&&(t.cdkOverlayOrigin=n.first),i.zc(n=i.ic())&&(t.cdkConnectedOverlay=n.first))},hostVars:20,hostBindings:function(e,t){1&e&&i.hc("click",(function(){return t.trigger()})),2&e&&i.Jb("ant-select-lg","large"===t.nzSize)("ant-select-sm","small"===t.nzSize)("ant-select-enabled",!t.nzDisabled)("ant-select-disabled",t.nzDisabled)("ant-select-single",!t.isMultiple)("ant-select-show-arrow",!t.isMultiple)("ant-select-show-search",!t.isMultiple)("ant-select-multiple",t.isMultiple)("ant-select-allow-clear",t.nzAllowClear)("ant-select-open",t.nzOpen)},inputs:{nzExpandedKeys:"nzExpandedKeys",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzAllowClear:"nzAllowClear",nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzCheckable:"nzCheckable",nzHideUnMatched:"nzHideUnMatched",nzShowIcon:"nzShowIcon",nzShowSearch:"nzShowSearch",nzAsyncData:"nzAsyncData",nzMultiple:"nzMultiple",nzDefaultExpandAll:"nzDefaultExpandAll",nzCheckStrictly:"nzCheckStrictly",nzExpandedIcon:"nzExpandedIcon",nzNotFoundContent:"nzNotFoundContent",nzNodes:"nzNodes",nzSize:"nzSize",nzPlaceHolder:"nzPlaceHolder",nzDropdownStyle:"nzDropdownStyle",nzDropdownClassName:"nzDropdownClassName",nzDisplayWith:"nzDisplayWith",nzMaxTagCount:"nzMaxTagCount",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzTreeTemplate:"nzTreeTemplate"},outputs:{nzOpenChange:"nzOpenChange",nzCleared:"nzCleared",nzRemoved:"nzRemoved",nzExpandChange:"nzExpandChange",nzTreeClick:"nzTreeClick",nzTreeCheckBoxChange:"nzTreeCheckBoxChange"},exportAs:["nzTreeSelect"],features:[i.Cb([FI,{provide:Yj,useFactory:RI,deps:[[new i.J,i.r]]},{provide:Ot.m,useExisting:Object(i.V)((function(){return t})),multi:!0}]),i.Ab,i.Bb],decls:18,vars:11,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","backdropClick","detach","positionChange"],["cdkOverlayOrigin","",1,"ant-select-selector"],[4,"ngIf"],[3,"value","mirrorSync","disabled","showInput","keydown","isComposingChange","valueChange",4,"ngIf"],[3,"placeholder","display",4,"ngIf"],[3,"deletable","disabled","label",4,"ngIf"],[3,"clear",4,"ngIf"],[3,"ngClass","nzNoAnimation","ngStyle"],["nzNoAnimation","","nzSelectMode","",3,"hidden","nzData","nzMultiple","nzSearchValue","nzHideUnMatched","nzShowIcon","nzCheckable","nzAsyncData","nzShowExpand","nzShowLine","nzExpandedIcon","nzExpandAll","nzExpandedKeys","nzCheckedKeys","nzSelectedKeys","nzTreeTemplate","nzCheckStrictly","nzExpandChange","nzClick","nzCheckedKeysChange","nzSelectedKeysChange","nzCheckBoxChange","nzSearchValueChange"],["treeRef",""],["class","ant-select-not-found",4,"ngIf"],[1,"ant-select-not-found"],[3,"nzComponentName","specificContent"],[3,"nzNoAnimation","deletable","disabled","label","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzNoAnimation","contentTemplateOutlet","contentTemplateOutletContext","deletable","disabled","label",4,"ngIf"],[3,"nzNoAnimation","deletable","disabled","label","delete"],[3,"nzNoAnimation","contentTemplateOutlet","contentTemplateOutletContext","deletable","disabled","label"],[3,"value","mirrorSync","disabled","showInput","keydown","isComposingChange","valueChange"],[3,"placeholder"],[3,"deletable","disabled","label"],[3,"clear"]],template:function(e,t){1&e&&(i.Nc(0,"\n "),i.Lc(1,xI,10,29,"ng-template",0),i.hc("backdropClick",(function(){return t.closeDropDown()}))("detach",(function(){return t.closeDropDown()}))("positionChange",(function(e){return t.onPositionChange(e)})),i.Nc(2,"\n\n "),i.Zb(3,"div",1),i.Nc(4,"\n "),i.Lc(5,jI,7,7,"ng-container",2),i.Nc(6,"\n\n "),i.Lc(7,II,2,4,"nz-select-search",3),i.Nc(8,"\n\n "),i.Lc(9,AI,2,3,"nz-select-placeholder",4),i.Nc(10,"\n\n "),i.Lc(11,MI,1,3,"nz-select-item",5),i.Nc(12,"\n\n "),i.Lc(13,LI,1,0,"nz-select-arrow",2),i.Nc(14,"\n\n "),i.Lc(15,PI,1,0,"nz-select-clear",6),i.Nc(16,"\n "),i.Yb(),i.Nc(17,"\n ")),2&e&&(i.Db(1),i.sc("cdkConnectedOverlayOrigin",t.cdkOverlayOrigin)("cdkConnectedOverlayOpen",t.nzOpen)("cdkConnectedOverlayHasBackdrop",!0)("cdkConnectedOverlayMinWidth",t.nzDropdownMatchSelectWidth?null:t.triggerWidth)("cdkConnectedOverlayWidth",t.nzDropdownMatchSelectWidth?t.triggerWidth:null),i.Db(4),i.sc("ngIf",t.isMultiple),i.Db(2),i.sc("ngIf",t.nzShowSearch),i.Db(2),i.sc("ngIf",t.nzPlaceHolder&&0===t.selectedNodes.length),i.Db(2),i.sc("ngIf",!t.isMultiple&&1===t.selectedNodes.length),i.Db(2),i.sc("ngIf",!t.isMultiple),i.Db(2),i.sc("ngIf",t.nzAllowClear))},directives:[Ur.a,Nu.e,Ur.b,Vr.t,Vr.q,ac.a,Vr.w,SI,im,Vr.s,iv,Gm,rv,tv,nv],pipes:[Vr.F],encapsulation:2,data:{animation:[xs.g,xs.k]}}),t}(Uj),BI=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ur.i,Ot.j,ov,zI,Ns.b,cm,Nu.f,ac.b]]}),e}(),YI=function(){function e(e,t){this._document=t;var n=this._textarea=this._document.createElement("textarea"),i=n.style;i.opacity="0",i.position="absolute",i.left=i.top="-999em",n.setAttribute("aria-hidden","true"),n.value=e,this._document.body.appendChild(n)}return e.prototype.copy=function(){var e=this._textarea,t=!1;try{if(e){var n=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),n&&n.focus()}}catch(i){}return t},e.prototype.destroy=function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)},e}(),UI=function(){function e(e){this._document=e}return e.prototype.copy=function(e){var t=this.beginCopy(e),n=t.copy();return t.destroy(),n},e.prototype.beginCopy=function(e){return new YI(e,this._document)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.dc)(Vr.e))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(i.dc(Vr.e))},e}(),HI=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}(),WI=["textarea"];function qI(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",2),i.hc("click",(function(){return i.Dc(n),i.kc().onClick()})),i.Ub(1,"i",3),i.Yb()}if(2&e){var r=i.kc();i.sc("nzTooltipTitle",null==r.locale?null:r.locale.edit)}}function ZI(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Zb(1,"textarea",4,5),i.hc("input",(function(e){return i.Dc(n),i.kc().onInput(e)}))("blur",(function(){return i.Dc(n),i.kc().confirm()}))("keydown.esc",(function(){return i.Dc(n),i.kc().onCancel()}))("keydown.enter",(function(e){return i.Dc(n),i.kc().onEnter(e)})),i.Nc(3," "),i.Yb(),i.Zb(4,"button",6),i.hc("click",(function(){return i.Dc(n),i.kc().confirm()})),i.Ub(5,"i",7),i.Yb(),i.Wb()}}var $I=["ellipsisContainer"],GI=["expandable"],QI=["contentTemplate"];function XI(e,t){1&e&&i.qc(0,0,["*ngIf","!content"])}function KI(e,t){if(1&e&&(i.Lc(0,XI,1,0,void 0,1),i.Nc(1)),2&e){var n=t.content;i.sc("ngIf",!n),i.Db(1),i.Pc(" ",n," ")}}function JI(e,t){}var eA=function(e){return{content:e}};function tA(e,t){if(1&e&&(i.Xb(0),i.Lc(1,JI,0,0,"ng-template",6),i.Wb()),2&e){var n=i.kc(2),r=i.Ac(1);i.Db(1),i.sc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.vc(2,eA,n.nzContent))}}function nA(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.ellipsisStr)}}function iA(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.Oc(n.nzSuffix)}}function rA(e,t){if(1&e){var n=i.ac();i.Zb(0,"a",9,10),i.hc("click",(function(){return i.Dc(n),i.kc(3).onExpand()})),i.Nc(2),i.Yb()}if(2&e){var r=i.kc(3);i.Db(2),i.Oc(null==r.locale?null:r.locale.expand)}}function oA(e,t){if(1&e&&(i.Ub(0,"span",null,7),i.Lc(2,nA,2,1,"ng-container",1),i.Lc(3,iA,2,1,"ng-container",1),i.Lc(4,rA,3,1,"a",8)),2&e){var n=i.kc(2);i.Db(2),i.sc("ngIf",n.isEllipsis),i.Db(1),i.sc("ngIf",n.nzSuffix),i.Db(1),i.sc("ngIf",n.nzExpandable&&n.isEllipsis)}}function aA(e,t){if(1&e&&(i.Xb(0),i.Lc(1,tA,2,4,"ng-container",4),i.Lc(2,oA,5,3,"ng-template",null,5,i.Mc),i.Wb()),2&e){var n=i.Ac(3),r=i.kc();i.Db(1),i.sc("ngIf",(r.expanded||!r.nzExpandable&&1===r.nzEllipsisRows||r.canCssEllipsis)&&!r.nzSuffix)("ngIfElse",n)}}function sA(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-text-edit",11),i.hc("endEditing",(function(e){return i.Dc(n),i.kc().onEndEditing(e)}))("startEditing",(function(){return i.Dc(n),i.kc().onStartEditing()})),i.Yb()}if(2&e){var r=i.kc();i.sc("text",r.nzContent)}}function cA(e,t){if(1&e){var n=i.ac();i.Zb(0,"nz-text-copy",12),i.hc("textCopy",(function(e){return i.Dc(n),i.kc().onTextCopy(e)})),i.Yb()}if(2&e){var r=i.kc();i.sc("text",r.copyText)}}var uA=["*"],lA=function(){function e(e,t,n,r){this.host=e,this.cdr=t,this.clipboard=n,this.i18n=r,this.copied=!1,this.copyId=-1,this.locale={},this.nativeElement=this.host.nativeElement,this.destroy$=new kt.a,this.textCopy=new i.n}return e.prototype.ngOnInit=function(){var e=this;this.i18n.localeChange.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.locale=e.i18n.getLocaleData("Text"),e.cdr.markForCheck()}))},e.prototype.ngOnDestroy=function(){clearTimeout(this.copyId),this.destroy$.next(),this.destroy$.complete()},e.prototype.onClick=function(){if(!this.copied){this.copied=!0,this.cdr.detectChanges();var e=this.text;this.textCopy.emit(e),this.clipboard.copy(e),this.onCopied()}},e.prototype.onCopied=function(){var e=this;clearTimeout(this.copyId),this.copyId=setTimeout((function(){e.copied=!1,e.cdr.detectChanges()}),3e3)},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.h),i.Tb(UI),i.Tb(Lp))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-text-copy"]],inputs:{text:"text"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],decls:2,vars:4,consts:[["nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"nzTooltipTitle","click"],["nz-icon","",3,"nzType"]],template:function(e,t){1&e&&(i.Zb(0,"button",0),i.hc("click",(function(){return t.onClick()})),i.Ub(1,"i",1),i.Yb()),2&e&&(i.Jb("ant-typography-copy-success",t.copied),i.sc("nzTooltipTitle",t.copied?null==t.locale?null:t.locale.copied:null==t.locale?null:t.locale.copy),i.Db(1),i.sc("nzType",t.copied?"check":"copy"))},directives:[Cw,QT,Ns.a],encapsulation:2,changeDetection:0}),e}(),pA=function(){function e(e,t,n){this.host=e,this.cdr=t,this.i18n=n,this.editing=!1,this.locale={},this.destroy$=new kt.a,this.startEditing=new i.n,this.endEditing=new i.n,this.nativeElement=this.host.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.i18n.localeChange.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.locale=e.i18n.getLocaleData("Text"),e.cdr.markForCheck()}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.onClick=function(){this.beforeText=this.text,this.currentText=this.beforeText,this.editing=!0,this.startEditing.emit(),this.focusAndSetValue()},e.prototype.confirm=function(){this.editing=!1,this.endEditing.emit(this.currentText)},e.prototype.onInput=function(e){this.currentText=e.target.value},e.prototype.onEnter=function(e){e.stopPropagation(),e.preventDefault(),this.confirm()},e.prototype.onCancel=function(){this.currentText=this.beforeText,this.confirm()},e.prototype.focusAndSetValue=function(){var e=this;setTimeout((function(){var t;(null===(t=e.textarea)||void 0===t?void 0:t.nativeElement)&&(e.textarea.nativeElement.focus(),e.textarea.nativeElement.value=e.currentText||"",e.autosizeDirective.resizeToFitContent())}))},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.h),i.Tb(Lp))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-text-edit"]],viewQuery:function(e,t){var n;1&e&&(i.Sc(WI,!0),i.Sc(Dc,!0)),2&e&&(i.zc(n=i.ic())&&(t.textarea=n.first),i.zc(n=i.ic())&&(t.autosizeDirective=n.first))},inputs:{text:"text"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],decls:2,vars:2,consts:[["nz-tooltip","","nz-trans-button","","class","ant-typography-edit",3,"nzTooltipTitle","click",4,"ngIf"],[4,"ngIf"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle","click"],["nz-icon","","nzType","edit"],["nz-input","","nzAutosize","",3,"input","blur","keydown.esc","keydown.enter"],["textarea",""],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nz-icon","","nzType","enter"]],template:function(e,t){1&e&&(i.Lc(0,qI,2,1,"button",0),i.Lc(1,ZI,6,0,"ng-container",1)),2&e&&(i.sc("ngIf",!t.editing),i.Db(1),i.sc("ngIf",t.editing))},directives:[Vr.t,Cw,QT,Ns.a,Tc,Dc],encapsulation:2,changeDetection:0}),e}(),hA=function(){function e(e,t,n,r,o,a,s,c,u){this.nzConfigService=e,this.host=t,this.cdr=n,this.viewContainerRef=r,this.renderer=o,this.platform=a,this.i18n=s,this.resizeService=u,this.nzCopyable=!1,this.nzEditable=!1,this.nzDisabled=!1,this.nzExpandable=!1,this.nzEllipsis=!1,this.nzEllipsisRows=1,this.nzContentChange=new i.n,this.nzCopy=new i.n,this.nzExpandChange=new i.n,this.locale={},this.expandableBtnElementCache=null,this.editing=!1,this.cssEllipsis=!1,this.isEllipsis=!0,this.expanded=!1,this.ellipsisStr="...",this.viewInit=!1,this.rfaId=-1,this.destroy$=new kt.a,this.windowResizeSubscription=Ft.a.EMPTY,this.document=c}return Object.defineProperty(e.prototype,"canCssEllipsis",{get:function(){return this.nzEllipsis&&this.cssEllipsis&&!this.expanded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyText",{get:function(){return"string"==typeof this.nzCopyText?this.nzCopyText:this.nzContent},enumerable:!0,configurable:!0}),e.prototype.onTextCopy=function(e){this.nzCopy.emit(e)},e.prototype.onStartEditing=function(){this.editing=!0},e.prototype.onEndEditing=function(e){this.editing=!1,this.nzContentChange.emit(e),this.nzContent===e&&this.renderOnNextFrame()},e.prototype.onExpand=function(){this.isEllipsis=!1,this.expanded=!0,this.nzExpandChange.emit()},e.prototype.canUseCSSEllipsis=function(){return!(this.nzEditable||this.nzCopyable||this.nzExpandable||this.nzSuffix)&&(1===this.nzEllipsisRows?Object(es.r)("textOverflow"):Object(es.r)("webkitLineClamp"))},e.prototype.renderOnNextFrame=function(){var e=this;!function(e){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(e);var t=ts.filter((function(e){return e+"CancelAnimationFrame"in window||e+"CancelRequestAnimationFrame"in window}))[0];t?(window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]).call(this,e):clearTimeout(e)}(this.rfaId),!this.viewInit||!this.nzEllipsis||this.nzEllipsisRows<0||this.expanded||!this.platform.isBrowser||(this.rfaId=rs((function(){e.syncEllipsis()})))},e.prototype.getOriginContentViewRef=function(){var e=this,t=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return t.detectChanges(),{viewRef:t,removeView:function(){e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}}},e.prototype.syncEllipsis=function(){var e=this;if(!this.cssEllipsis){var t=this.getOriginContentViewRef(),n=t.viewRef,i=t.removeView,r=[this.textCopyRef,this.textEditRef].filter((function(e){return e&&e.nativeElement})).map((function(e){return e.nativeElement})),o=this.getExpandableBtnElement();o&&r.push(o);var a=Object(es.u)(this.host.nativeElement,this.nzEllipsisRows,n.rootNodes,r,this.ellipsisStr,this.nzSuffix),s=a.contentNodes,c=a.text,u=a.ellipsis;i(),this.ellipsisText=c,this.isEllipsis=u;for(var l=this.ellipsisContainer.nativeElement;l.firstChild;)this.renderer.removeChild(l,l.firstChild);s.forEach((function(t){e.renderer.appendChild(l,t.cloneNode(!0))})),this.cdr.markForCheck()}},e.prototype.getExpandableBtnElement=function(){if(this.nzExpandable){var e=this.locale?this.locale.expand:"",t=this.expandableBtnElementCache;if(!t||t.innerText===e){var n=this.document.createElement("a");n.className="ant-typography-expand",n.innerText=e,this.expandableBtnElementCache=n}return this.expandableBtnElementCache}return this.expandableBtnElementCache=null,null},e.prototype.renderAndSubscribeWindowResize=function(){var e=this;this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.subscribe().pipe(Object(ss.a)(this.destroy$)).subscribe((function(){return e.renderOnNextFrame()})))},e.prototype.ngOnInit=function(){var e=this;this.i18n.localeChange.pipe(Object(ss.a)(this.destroy$)).subscribe((function(){e.locale=e.i18n.getLocaleData("Text"),e.cdr.markForCheck()}))},e.prototype.ngAfterViewInit=function(){this.viewInit=!0,this.renderAndSubscribeWindowResize()},e.prototype.ngOnChanges=function(e){(e.nzCopyable||e.nzEditable||e.nzExpandable||e.nzEllipsis||e.nzContent||e.nzEllipsisRows||e.nzSuffix)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()},Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzCopyable",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzEditable",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzExpandable",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzEllipsis",void 0),Object(zt.b)([Object(Qa.b)("typography"),Object(es.b)(),Object(zt.d)("design:type",Number)],e.prototype,"nzEllipsisRows",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(Qa.a),i.Tb(i.l),i.Tb(i.h),i.Tb(i.Q),i.Tb(i.E),i.Tb(Xr.a),i.Tb(Lp),i.Tb(Vr.e),i.Tb(ds))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-typography"],["","nz-typography",""],["p","nz-paragraph",""],["span","nz-text",""],["h1","nz-title",""],["h2","nz-title",""],["h3","nz-title",""],["h4","nz-title",""]],viewQuery:function(e,t){var n;1&e&&(i.Sc(pA,!0),i.Sc(lA,!0),i.Sc($I,!0),i.Sc(GI,!0),i.Sc(QI,!0)),2&e&&(i.zc(n=i.ic())&&(t.textEditRef=n.first),i.zc(n=i.ic())&&(t.textCopyRef=n.first),i.zc(n=i.ic())&&(t.ellipsisContainer=n.first),i.zc(n=i.ic())&&(t.expandableBtn=n.first),i.zc(n=i.ic())&&(t.contentTemplate=n.first))},hostVars:20,hostBindings:function(e,t){2&e&&(i.Kc("-webkit-line-clamp",t.canCssEllipsis&&t.nzEllipsisRows>1?t.nzEllipsisRows:null),i.Jb("ant-typography",!t.editing)("ant-typography-edit-content",t.editing)("ant-typography-secondary","secondary"===t.nzType)("ant-typography-warning","warning"===t.nzType)("ant-typography-danger","danger"===t.nzType)("ant-typography-disabled",t.nzDisabled)("ant-typography-ellipsis",t.nzEllipsis&&!t.expanded)("ant-typography-ellipsis-single-line",t.canCssEllipsis&&1===t.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",t.canCssEllipsis&&t.nzEllipsisRows>1))},inputs:{nzCopyable:"nzCopyable",nzEditable:"nzEditable",nzDisabled:"nzDisabled",nzExpandable:"nzExpandable",nzEllipsis:"nzEllipsis",nzEllipsisRows:"nzEllipsisRows",nzContent:"nzContent",nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange"},exportAs:["nzTypography"],features:[i.Bb],ngContentSelectors:uA,decls:5,vars:3,consts:[["contentTemplate",""],[4,"ngIf"],[3,"text","endEditing","startEditing",4,"ngIf"],[3,"text","textCopy",4,"ngIf"],[4,"ngIf","ngIfElse"],["jsEllipsis",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["ellipsisContainer",""],["class","ant-typography-expand",3,"click",4,"ngIf"],[1,"ant-typography-expand",3,"click"],["expandable",""],[3,"text","endEditing","startEditing"],[3,"text","textCopy"]],template:function(e,t){1&e&&(i.rc(),i.Lc(0,KI,2,2,"ng-template",null,0,i.Mc),i.Lc(2,aA,4,2,"ng-container",1),i.Lc(3,sA,1,1,"nz-text-edit",2),i.Lc(4,cA,1,1,"nz-text-copy",3)),2&e&&(i.Db(2),i.sc("ngIf",!t.editing),i.Db(1),i.sc("ngIf",t.nzEditable),i.Db(1),i.sc("ngIf",t.nzCopyable&&!t.editing))},directives:[Vr.t,Vr.A,pA,lA],encapsulation:2,changeDetection:0}),e}(),dA=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ns.b,KT,Ec,Fp,Sw,HI],Xr.b]}),e}(),fA=["file"],gA=["nz-upload-btn",""],bA=["*"];function mA(e,t){}var vA=function(e){return{$implicit:e}};function yA(e,t){if(1&e&&(i.Zb(0,"div",17),i.Lc(1,mA,0,0,"ng-template",18),i.Yb()),2&e){var n=i.kc(2).$implicit,r=i.Ac(4);i.Jb("ant-upload-list-item-file",!n.isUploading),i.Db(1),i.sc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.vc(4,vA,n))}}function wA(e,t){if(1&e&&i.Ub(0,"img",21),2&e){var n=i.kc(3).$implicit;i.sc("src",n.thumbUrl||n.url,i.Fc),i.Eb("alt",n.name)}}function OA(e,t){if(1&e){var n=i.ac();i.Zb(0,"a",19),i.hc("click",(function(e){i.Dc(n);var t=i.kc(2).$implicit;return i.kc().handlePreview(t,e)})),i.Lc(1,wA,1,2,"img",20),i.Yb()}if(2&e){i.kc();var r=i.Ac(5),o=i.kc().$implicit;i.Jb("ant-upload-list-item-file",!o.isImageUrl),i.sc("href",o.url||o.thumbUrl,i.Fc),i.Db(1),i.sc("ngIf",o.isImageUrl)("ngIfElse",r)}}function CA(e,t){}function SA(e,t){if(1&e&&(i.Zb(0,"span",22),i.Lc(1,CA,0,0,"ng-template",18),i.Yb()),2&e){var n=i.kc(2).$implicit,r=i.Ac(4);i.Db(1),i.sc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.vc(2,vA,n))}}function zA(e,t){}function TA(e,t){if(1&e&&i.Lc(0,zA,0,0,"ng-template",18),2&e){var n=i.kc(2).$implicit,r=i.Ac(4);i.sc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.vc(2,vA,n))}}function _A(e,t){if(1&e&&(i.Xb(0,12),i.Lc(1,yA,2,6,"div",13),i.Lc(2,OA,2,5,"a",14),i.Lc(3,SA,2,4,"span",15),i.Wb(),i.Lc(4,TA,1,4,"ng-template",null,16,i.Mc)),2&e){var n=i.kc().$implicit;i.sc("ngSwitch",n.iconType),i.Db(1),i.sc("ngSwitchCase","uploading"),i.Db(1),i.sc("ngSwitchCase","thumbnail")}}function kA(e,t){1&e&&(i.Xb(0),i.Ub(1,"i",27),i.Wb())}function DA(e,t){if(1&e&&(i.Xb(0),i.Lc(1,kA,2,0,"ng-container",23),i.Wb()),2&e){var n=i.kc(2).$implicit,r=i.Ac(2);i.Db(1),i.sc("ngIf",n.isUploading)("ngIfElse",r)}}function xA(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc(5);i.Db(1),i.Oc(n.locale.uploading)}}function EA(e,t){if(1&e&&(i.Xb(0),i.Lc(1,xA,2,1,"ng-container",23),i.Wb()),2&e){var n=i.kc(2).$implicit,r=i.Ac(2);i.Db(1),i.sc("ngIf",n.isUploading)("ngIfElse",r)}}function NA(e,t){if(1&e&&i.Ub(0,"i",28),2&e){var n=i.kc(2).$implicit;i.sc("nzType",n.isUploading?"loading":"paper-clip")}}function jA(e,t){if(1&e&&(i.Xb(0),i.Xb(1,12),i.Lc(2,DA,2,2,"ng-container",25),i.Lc(3,EA,2,2,"ng-container",25),i.Lc(4,NA,1,1,"i",26),i.Wb(),i.Wb()),2&e){var n=i.kc(3);i.Db(1),i.sc("ngSwitch",n.listType),i.Db(1),i.sc("ngSwitchCase","picture"),i.Db(1),i.sc("ngSwitchCase","picture-card")}}function IA(e,t){if(1&e&&i.Ub(0,"i",29),2&e){var n=i.kc().$implicit;i.sc("nzType",n.isImageUrl?"picture":"file")}}function AA(e,t){if(1&e&&(i.Lc(0,jA,5,3,"ng-container",23),i.Lc(1,IA,1,1,"ng-template",null,24,i.Mc)),2&e){var n=i.kc(2);i.sc("ngIf",!n.iconRender)("ngIfElse",n.iconRender)}}function MA(e,t){}function LA(e,t){if(1&e&&(i.Zb(0,"a",32),i.Lc(1,MA,0,0,"ng-template",9),i.Yb()),2&e){i.kc(3);var n=i.Ac(12),r=i.kc();i.tc("title",r.locale.downloadFile),i.Db(1),i.sc("ngTemplateOutlet",n)}}function PA(e,t){}function FA(e,t){if(1&e&&(i.Zb(0,"a",32),i.Lc(1,PA,0,0,"ng-template",9),i.Yb()),2&e){i.kc(3);var n=i.Ac(10),r=i.kc();i.tc("title",r.locale.removeFile),i.Db(1),i.sc("ngTemplateOutlet",n)}}function RA(e,t){if(1&e&&(i.Zb(0,"span"),i.Lc(1,LA,2,2,"a",31),i.Lc(2,FA,2,2,"a",31),i.Yb()),2&e){var n=i.kc(2).$implicit,r=i.kc();i.Gb("ant-upload-list-item-card-actions ","picture"===r.listType?"picture":"",""),i.Db(1),i.sc("ngIf",n.showDownload),i.Db(1),i.sc("ngIf",r.icons.showRemoveIcon)}}function VA(e,t){if(1&e&&i.Lc(0,RA,3,5,"span",30),2&e){var n=i.kc(2);i.sc("ngIf","picture-card"!==n.listType)}}function BA(e,t){if(1&e){var n=i.ac();i.Zb(0,"a",35),i.hc("click",(function(e){i.Dc(n);var t=i.kc(2).$implicit;return i.kc().handlePreview(t,e)})),i.Nc(1),i.Yb()}if(2&e){var r=i.kc(2).$implicit;i.sc("ngClass",r.listItemNameCls)("href",r.url,i.Fc),i.Eb("title",r.name)("download",r.linkProps&&r.linkProps.download),i.Db(1),i.Oc(r.name)}}function YA(e,t){if(1&e){var n=i.ac();i.Zb(0,"span",36),i.hc("click",(function(e){i.Dc(n);var t=i.kc(2).$implicit;return i.kc().handlePreview(t,e)})),i.Nc(1),i.Yb()}if(2&e){var r=i.kc(2).$implicit;i.sc("ngClass",r.listItemNameCls),i.Eb("title",r.name),i.Db(1),i.Oc(r.name)}}function UA(e,t){}function HA(e,t){if(1&e&&(i.Lc(0,BA,2,5,"a",33),i.Lc(1,YA,2,3,"span",34),i.Lc(2,UA,0,0,"ng-template",9)),2&e){var n=i.kc().$implicit,r=i.Ac(6);i.sc("ngIf",n.url),i.Db(1),i.sc("ngIf",!n.url),i.Db(1),i.sc("ngTemplateOutlet",r)}}function WA(e,t){if(1&e){var n=i.ac();i.Zb(0,"i",38),i.hc("click",(function(e){i.Dc(n);var t=i.kc(2).$implicit;return i.kc().handleRemove(t,e)})),i.Yb()}if(2&e){var r=i.kc(3);i.tc("title",r.locale.removeFile)}}function qA(e,t){if(1&e&&i.Lc(0,WA,1,1,"i",37),2&e){var n=i.kc(2);i.sc("ngIf",n.icons.showRemoveIcon)}}function ZA(e,t){if(1&e){var n=i.ac();i.Zb(0,"i",40),i.hc("click",(function(){i.Dc(n);var e=i.kc(2).$implicit;return i.kc().handleDownload(e)})),i.Yb()}if(2&e){var r=i.kc(3);i.tc("title",r.locale.downloadFile)}}function $A(e,t){if(1&e&&i.Lc(0,ZA,1,1,"i",39),2&e){var n=i.kc().$implicit;i.sc("ngIf",n.showDownload)}}function GA(e,t){}function QA(e,t){}var XA=function(){return{opacity:.5,"pointer-events":"none"}};function KA(e,t){if(1&e){var n=i.ac();i.Zb(0,"a",43),i.hc("click",(function(e){i.Dc(n);var t=i.kc(2).$implicit;return i.kc().handlePreview(t,e)})),i.Ub(1,"i",44),i.Yb()}if(2&e){var r=i.kc(2).$implicit,o=i.kc();i.tc("title",o.locale.previewFile),i.sc("href",r.url||r.thumbUrl,i.Fc)("ngStyle",r.url||r.thumbUrl?null:i.uc(3,XA))}}function JA(e,t){}function eM(e,t){}function tM(e,t){if(1&e&&(i.Zb(0,"span",41),i.Lc(1,KA,2,4,"a",42),i.Lc(2,JA,0,0,"ng-template",9),i.Lc(3,eM,0,0,"ng-template",9),i.Yb()),2&e){i.kc();var n=i.Ac(12),r=i.Ac(10),o=i.kc();i.Db(1),i.sc("ngIf",o.icons.showPreviewIcon),i.Db(1),i.sc("ngTemplateOutlet",n),i.Db(1),i.sc("ngTemplateOutlet",r)}}function nM(e,t){if(1&e&&(i.Zb(0,"div",45),i.Ub(1,"nz-progress",46),i.Yb()),2&e){var n=i.kc().$implicit;i.Db(1),i.sc("nzPercent",n.percent)("nzShowInfo",!1)("nzStrokeWidth",2)}}function iM(e,t){if(1&e&&(i.Zb(0,"div",1),i.Lc(1,_A,6,3,"ng-template",null,2,i.Mc),i.Lc(3,AA,3,2,"ng-template",null,3,i.Mc),i.Lc(5,VA,1,1,"ng-template",null,4,i.Mc),i.Lc(7,HA,3,3,"ng-template",null,5,i.Mc),i.Lc(9,qA,1,1,"ng-template",null,6,i.Mc),i.Lc(11,$A,1,1,"ng-template",null,7,i.Mc),i.Zb(13,"div",8),i.Zb(14,"span"),i.Lc(15,GA,0,0,"ng-template",9),i.Lc(16,QA,0,0,"ng-template",9),i.Yb(),i.Yb(),i.Lc(17,tM,4,3,"span",10),i.Lc(18,nM,2,3,"div",11),i.Yb()),2&e){var n=t.$implicit,r=i.Ac(2),o=i.Ac(8),a=i.kc();i.Hb("ant-upload-list-item ant-upload-list-item-",n.status," ant-upload-list-item-list-type-",a.listType,""),i.sc("@itemState",void 0)("nzTooltipTitle","error"===n.status?n.message:null),i.Eb("data-key",n.key),i.Db(15),i.sc("ngTemplateOutlet",r),i.Db(1),i.sc("ngTemplateOutlet",o),i.Db(1),i.sc("ngIf","picture-card"===a.listType&&!n.isUploading),i.Db(1),i.sc("ngIf",n.isUploading)}}var rM=["uploadComp"],oM=["listComp"],aM=function(){return[]};function sM(e,t){if(1&e&&i.Ub(0,"nz-upload-list",6,7),2&e){var n=i.kc();i.Kc("display",n.nzShowUploadList?"":"none"),i.sc("locale",n.locale)("listType",n.nzListType)("items",n.nzFileList||i.uc(11,aM))("icons",n.nzShowUploadList)("iconRender",n.nzIconRender)("previewFile",n.nzPreviewFile)("onPreview",n.nzPreview)("onRemove",n.onRemove)("onDownload",n.nzDownload)}}function cM(e,t){1&e&&i.qc(0)}function uM(e,t){}function lM(e,t){if(1&e&&(i.Zb(0,"div",8),i.Zb(1,"div",9,10),i.Lc(3,uM,0,0,"ng-template",11),i.Yb(),i.Yb()),2&e){var n=i.kc(),r=i.Ac(3);i.Kc("display",n.nzShowButton?"":"none"),i.sc("ngClass",n.classList),i.Db(1),i.sc("options",n._btnOptions),i.Db(2),i.sc("ngTemplateOutlet",r)}}function pM(e,t){}function hM(e,t){}function dM(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Zb(1,"div",12),i.hc("drop",(function(e){return i.Dc(n),i.kc().fileDrop(e)}))("dragover",(function(e){return i.Dc(n),i.kc().fileDrop(e)}))("dragleave",(function(e){return i.Dc(n),i.kc().fileDrop(e)})),i.Zb(2,"div",13,10),i.Zb(4,"div",14),i.Lc(5,pM,0,0,"ng-template",11),i.Yb(),i.Yb(),i.Yb(),i.Lc(6,hM,0,0,"ng-template",11),i.Wb()}if(2&e){var r=i.kc(),o=i.Ac(3),a=i.Ac(1);i.Db(1),i.sc("ngClass",r.classList),i.Db(1),i.sc("options",r._btnOptions),i.Db(3),i.sc("ngTemplateOutlet",o),i.Db(1),i.sc("ngTemplateOutlet",a)}}function fM(e,t){}function gM(e,t){}function bM(e,t){if(1&e&&(i.Xb(0),i.Lc(1,fM,0,0,"ng-template",11),i.Lc(2,gM,0,0,"ng-template",11),i.Wb()),2&e){i.kc(2);var n=i.Ac(1),r=i.Ac(5);i.Db(1),i.sc("ngTemplateOutlet",n),i.Db(1),i.sc("ngTemplateOutlet",r)}}function mM(e,t){if(1&e&&i.Lc(0,bM,3,2,"ng-container",3),2&e){var n=i.kc(),r=i.Ac(10);i.sc("ngIf","picture-card"===n.nzListType)("ngIfElse",r)}}function vM(e,t){}function yM(e,t){}function wM(e,t){if(1&e&&(i.Lc(0,vM,0,0,"ng-template",11),i.Lc(1,yM,0,0,"ng-template",11)),2&e){i.kc();var n=i.Ac(5),r=i.Ac(1);i.sc("ngTemplateOutlet",n),i.Db(1),i.sc("ngTemplateOutlet",r)}}var OM=function(){function e(e){if(this.http=e,this.reqs={},this.destroy=!1,!e)throw new Error("Not found 'HttpClient', You can import 'HttpClientModule' in your root module.")}return e.prototype.onClick=function(){!this.options.disabled&&this.options.openFileDialogOnClick&&this.file.nativeElement.click()},e.prototype.onKeyDown=function(e){this.options.disabled||"Enter"!==e.key&&e.keyCode!==Zr.d||this.onClick()},e.prototype.onFileDrop=function(e){var t=this;if(this.options.disabled||"dragover"===e.type)e.preventDefault();else{if(this.options.directory)this.traverseFileTree(e.dataTransfer.items);else{var n=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return t.attrAccept(e,t.options.accept)}));n.length&&this.uploadFiles(n)}e.preventDefault()}},e.prototype.onChange=function(e){if(!this.options.disabled){var t=e.target;this.uploadFiles(t.files),t.value=""}},e.prototype.traverseFileTree=function(e){var t,n,i=this,r=function(e,t){e.isFile?e.file((function(e){i.attrAccept(e,i.options.accept)&&i.uploadFiles([e])})):e.isDirectory&&e.createReader().readEntries((function(n){var i,o;try{for(var a=Object(zt.h)(n),s=a.next();!s.done;s=a.next())r(s.value,""+t+e.name+"/")}catch(c){i={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}))};try{for(var o=Object(zt.h)(e),a=o.next();!a.done;a=o.next())r(a.value.webkitGetAsEntry(),"")}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},e.prototype.attrAccept=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=""+e.name,r=""+e.type,o=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();return"."===t.charAt(0)?-1!==i.toLowerCase().indexOf(t.toLowerCase(),i.toLowerCase().length-t.toLowerCase().length):/\/\*$/.test(t)?o===t.replace(/\/.*$/,""):r===t}))}return!0},e.prototype.attachUid=function(e){return e.uid||(e.uid=Math.random().toString(36).substring(2)),e},e.prototype.uploadFiles=function(e){var t=this,n=Object(qr.a)(Array.prototype.slice.call(e));this.options.filters&&this.options.filters.forEach((function(e){n=n.pipe(Object(sc.a)((function(t){var n=e.fn(t);return n instanceof _t.a?n:Object(qr.a)(n)})))})),n.subscribe((function(e){e.forEach((function(n){t.attachUid(n),t.upload(n,e)}))}),(function(e){Object(Hs.b)("Unhandled upload filter error",e)}))},e.prototype.upload=function(e,t){var n=this;if(!this.options.beforeUpload)return this.post(e);var i=this.options.beforeUpload(e,t);if(i instanceof _t.a)i.subscribe((function(t){var i=Object.prototype.toString.call(t);"[object File]"===i||"[object Blob]"===i?(n.attachUid(t),n.post(t)):"boolean"==typeof t&&!1!==t&&n.post(e)}),(function(e){Object(Hs.b)("Unhandled upload beforeUpload error",e)}));else if(!1!==i)return this.post(e)},e.prototype.post=function(e){var t=this;if(!this.destroy){var n=Object(qr.a)(e),i=this.options,r=e.uid,o=i.action,a=i.data,s=i.headers,c=i.transformFile,u={action:"string"==typeof o?o:"",name:i.name,headers:s,file:e,postFile:e,data:a,withCredentials:i.withCredentials,onProgress:i.onProgress?function(t){i.onProgress(t,e)}:void 0,onSuccess:function(n,o){t.clean(r),i.onSuccess(n,e,o)},onError:function(n){t.clean(r),i.onError(n,e)}};if("function"==typeof o){var l=o(e);l instanceof _t.a?n=n.pipe(Object(sc.a)((function(){return l})),Object(Mt.a)((function(t){return u.action=t,e}))):u.action=l}if("function"==typeof c){var p=c(e);n=n.pipe(Object(sc.a)((function(){return p instanceof _t.a?p:Object(qr.a)(p)})))}if("function"==typeof a){var h=a(e);h instanceof _t.a?n=n.pipe(Object(sc.a)((function(){return h})),Object(Mt.a)((function(t){return u.data=t,e}))):u.data=h}if("function"==typeof s){var d=s(e);d instanceof _t.a?n=n.pipe(Object(sc.a)((function(){return d})),Object(Mt.a)((function(t){return u.headers=t,e}))):u.headers=d}n.subscribe((function(n){u.postFile=n;var o=(i.customRequest||t.xhr).call(t,u);o instanceof Ft.a||Object(Hs.b)("Must return Subscription type in '[nzCustomRequest]' property"),t.reqs[r]=o,i.onStart(e)}))}},e.prototype.xhr=function(e){var t=this,n=new FormData;e.data&&Object.keys(e.data).map((function(t){n.append(t,e.data[t])})),n.append(e.name,e.postFile),e.headers||(e.headers={}),null!==e.headers["X-Requested-With"]?e.headers["X-Requested-With"]="XMLHttpRequest":delete e.headers["X-Requested-With"];var i=new Ct.i("POST",e.action,n,{reportProgress:!0,withCredentials:e.withCredentials,headers:new Ct.g(e.headers)});return this.http.request(i).subscribe((function(t){t.type===Ct.f.UploadProgress?(t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t,e.file)):t instanceof Ct.j&&e.onSuccess(t.body,e.file,t)}),(function(n){t.abort(e.file),e.onError(n,e.file)}))},e.prototype.clean=function(e){var t=this.reqs[e];t instanceof Ft.a&&t.unsubscribe(),delete this.reqs[e]},e.prototype.abort=function(e){var t=this;e?this.clean(e&&e.uid):Object.keys(this.reqs).forEach((function(e){return t.clean(e)}))},e.prototype.ngOnDestroy=function(){this.destroy=!0,this.abort()},e.\u0275fac=function(t){return new(t||e)(i.Tb(Ct.c,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["","nz-upload-btn",""]],viewQuery:function(e,t){var n;1&e&&i.Sc(fA,!0),2&e&&i.zc(n=i.ic())&&(t.file=n.first)},hostVars:6,hostBindings:function(e,t){1&e&&i.hc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))("drop",(function(e){return t.onFileDrop(e)}))("dragover",(function(e){return t.onFileDrop(e)})),2&e&&(i.Eb("tabindex","0")("role","button"),i.Jb("ant-upload",!0)("ant-upload-disabled",t.options.disabled))},inputs:{options:"options"},exportAs:["nzUploadBtn"],attrs:gA,ngContentSelectors:bA,decls:3,vars:4,consts:[["type","file",2,"display","none",3,"multiple","change"],["file",""]],template:function(e,t){1&e&&(i.rc(),i.Zb(0,"input",0,1),i.hc("change",(function(e){return t.onChange(e)})),i.Yb(),i.qc(2)),2&e&&(i.sc("multiple",t.options.multiple),i.Eb("accept",t.options.accept)("directory",t.options.directory?"directory":null)("webkitdirectory",t.options.directory?"webkitdirectory":null))},encapsulation:2}),e}(),CM=function(e){return!!e&&0===e.indexOf("image/")},SM=function(){function e(e,t,n,i){this.cdr=e,this.doc=t,this.ngZone=n,this.platform=i,this.list=[],this.locale={},this.iconRender=null}return Object.defineProperty(e.prototype,"showPic",{get:function(){return"picture"===this.listType||"picture-card"===this.listType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{set:function(e){this.list=e},enumerable:!0,configurable:!0}),e.prototype.genErr=function(e){return e.response&&"string"==typeof e.response?e.response:e.error&&e.error.statusText||this.locale.uploadError},e.prototype.extname=function(e){var t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},e.prototype.isImageUrl=function(e){if(CM(e.type))return!0;var t=e.thumbUrl||e.url||"";if(!t)return!1;var n=this.extname(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg)$/i.test(n))||!/^data:/.test(t)&&!n},e.prototype.getIconType=function(e){return this.showPic?e.isUploading||!e.thumbUrl&&!e.url?"uploading":"thumbnail":""},e.prototype.previewImage=function(e){var t=this;return new Promise((function(n){CM(e.type)?t.ngZone.runOutsideAngular((function(){var i=t.doc.createElement("canvas");i.width=200,i.height=200,i.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",t.doc.body.appendChild(i);var r=i.getContext("2d"),o=new Image;o.onload=function(){var e=o.width,a=o.height,s=200,c=200,u=0,l=0;e0&&-1===t.findIndex((function(e){return"limit"===e.name}))&&t.push({name:"limit",fn:function(t){return t.slice(-e.nzLimit)}}),this.nzSize>0&&-1===t.findIndex((function(e){return"size"===e.name}))&&t.push({name:"size",fn:function(t){return t.filter((function(t){return t.size/1024<=e.nzSize}))}}),this.nzFileType&&this.nzFileType.length>0&&-1===t.findIndex((function(e){return"type"===e.name}))){var n=this.nzFileType.split(",");t.push({name:"type",fn:function(e){return e.filter((function(e){return~n.indexOf(e.type)}))}})}return this._btnOptions={disabled:this.nzDisabled,accept:this.nzAccept,action:this.nzAction,directory:this.nzDirectory,openFileDialogOnClick:this.nzOpenFileDialogOnClick,beforeUpload:this.nzBeforeUpload,customRequest:this.nzCustomRequest,data:this.nzData,headers:this.nzHeaders,name:this.nzName,multiple:this.nzMultiple,withCredentials:this.nzWithCredentials,filters:t,transformFile:this.nzTransformFile,onStart:this.onStart,onProgress:this.onProgress,onSuccess:this.onSuccess,onError:this.onError},this},e.prototype.fileToObject=function(e){return{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.filename||e.name,size:e.size,type:e.type,uid:e.uid,response:e.response,error:e.error,percent:0,originFileObj:e}},e.prototype.getFileItem=function(e,t){return t.filter((function(t){return t.uid===e.uid}))[0]},e.prototype.removeFileItem=function(e,t){return t.filter((function(t){return t.uid!==e.uid}))},e.prototype.fileDrop=function(e){e.type!==this.dragState&&(this.dragState=e.type,this.setClassMap())},e.prototype.detectChangesList=function(){this.cdr.detectChanges(),this.listComp.detectChanges()},e.prototype.setClassMap=function(){var e=[];"drag"===this.nzType?(this.nzFileList.some((function(e){return"uploading"===e.status}))&&e.push(this.prefixCls+"-drag-uploading"),"dragover"===this.dragState&&e.push(this.prefixCls+"-drag-hover")):e=[this.prefixCls+"-select-"+this.nzListType],this.classList=Object(zt.g)([this.prefixCls,this.prefixCls+"-"+this.nzType],e,[this.nzDisabled&&this.prefixCls+"-disabled"||""]).filter((function(e){return!!e})),this.cdr.detectChanges()},e.prototype.ngOnInit=function(){var e=this;this.i18n$=this.i18n.localeChange.subscribe((function(){e.locale=e.i18n.getLocaleData("Upload"),e.detectChangesList()}))},e.prototype.ngOnChanges=function(){this.zipOptions().setClassMap()},e.prototype.ngOnDestroy=function(){this.i18n$.unsubscribe()},Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzLimit",void 0),Object(zt.b)([Object(es.b)(),Object(zt.d)("design:type",Object)],e.prototype,"nzSize",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDirectory",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzOpenFileDialogOnClick",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzMultiple",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzShowButton",void 0),Object(zt.b)([Object(es.a)(),Object(zt.d)("design:type",Object)],e.prototype,"nzWithCredentials",void 0),e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(Lp))},e.\u0275cmp=i.Nb({type:e,selectors:[["nz-upload"]],viewQuery:function(e,t){var n;1&e&&(i.Sc(rM,!0),i.Sc(oM,!0)),2&e&&(i.zc(n=i.ic())&&(t.uploadComp=n.first),i.zc(n=i.ic())&&(t.listComp=n.first))},hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("ant-upload-picture-card-wrapper","picture-card"===t.nzListType)},inputs:{nzType:"nzType",nzLimit:"nzLimit",nzSize:"nzSize",nzDirectory:"nzDirectory",nzOpenFileDialogOnClick:"nzOpenFileDialogOnClick",nzFilter:"nzFilter",nzFileList:"nzFileList",nzDisabled:"nzDisabled",nzListType:"nzListType",nzMultiple:"nzMultiple",nzName:"nzName",nzShowButton:"nzShowButton",nzWithCredentials:"nzWithCredentials",nzIconRender:"nzIconRender",nzShowUploadList:"nzShowUploadList",nzFileType:"nzFileType",nzAccept:"nzAccept",nzAction:"nzAction",nzBeforeUpload:"nzBeforeUpload",nzCustomRequest:"nzCustomRequest",nzData:"nzData",nzHeaders:"nzHeaders",nzRemove:"nzRemove",nzPreview:"nzPreview",nzPreviewFile:"nzPreviewFile",nzTransformFile:"nzTransformFile",nzDownload:"nzDownload"},outputs:{nzChange:"nzChange",nzFileListChange:"nzFileListChange"},exportAs:["nzUpload"],features:[i.Bb],ngContentSelectors:bA,decls:11,vars:2,consts:[["list",""],["con",""],["btn",""],[4,"ngIf","ngIfElse"],["select",""],["pic",""],[3,"locale","listType","items","icons","iconRender","previewFile","onPreview","onRemove","onDownload"],["listComp",""],[3,"ngClass"],["nz-upload-btn","",3,"options"],["uploadComp",""],[3,"ngTemplateOutlet"],[3,"ngClass","drop","dragover","dragleave"],["nz-upload-btn","",1,"ant-upload-btn",3,"options"],[1,"ant-upload-drag-container"]],template:function(e,t){if(1&e&&(i.rc(),i.Lc(0,sM,2,12,"ng-template",null,0,i.Mc),i.Lc(2,cM,1,0,"ng-template",null,1,i.Mc),i.Lc(4,lM,4,5,"ng-template",null,2,i.Mc),i.Lc(6,dM,7,4,"ng-container",3),i.Lc(7,mM,1,2,"ng-template",null,4,i.Mc),i.Lc(9,wM,2,2,"ng-template",null,5,i.Mc)),2&e){var n=i.Ac(8);i.Db(6),i.sc("ngIf","drag"===t.nzType)("ngIfElse",n)}},directives:[Vr.t,SM,Vr.q,OM,Vr.A],encapsulation:2,changeDetection:0}),e}(),TM=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,Xr.b,KT,B_,Fp,Ns.b]]}),e}(),_M=function(){function e(){Object(Hs.c)("The `NgZorroAntdModule` has been deprecated and will be removed in 10.0.0. Please use secondary entry instead.\ne.g. `import { NzButtonModule } from 'ng-zorro-antd/button';`")}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[Ds,Us,oc,iu,uu,fu,Du,Wu.c,Hu,vv,Gv,ly,By,Gy,rw,Ow,Eb,eO,rO,wO,xu.c,cm,FO,SO,Fp,Ns.b,Ec,BO,aC,ES,qS,YO.g,$S,Uz,ac.b,Wz,pT,UT,c_,g_,B_,Fb,Q_,kk,ov,Uk,aD,fC,SD,UD,XD,cN,RN,UN,md,cj,KT,Sw,Lj,zI,BI,dA,TM,Ud.b]}),e}(),kM=n("W6iN"),DM={AlertTriangle:'\n \n',AlertCircle:'\n \n',Archive:'\n \n',ArrowLeft:'\n \n',Book:'\n \n',Box:'\n \n',Briefcase:'\n \n',CheckCircle:'\n \n',ChevronDown:'\n \n',Circle:'\n \n',Clock:'\n \n',Code:'\n \n',Copy:'\n \n',Cpu:'\n \n',Camera:'\n \n',Disc:'\n \n',Download:'\n \n',Edit:'\n \n',Eye:'\n \n',EyeOff:'\n \n',File:'\n \n',FilePlus:'\n \n',Folder:'\n \n',FolderMinus:'\n \n',FolderPlus:'\n \n',Github:'\n \n',Grid:'\n \n',Heart:'\n \n',Home:'\n \n',Info:'\n \n',MoreVertical:'\n \n',MoreHorizontal:'\n \n',RefreshCcw:'\n \n',Settings:'\n \n',Save:'\n \n',Trash2:'\n \n',Loader:'\n \n',LogIn:'',Minimize2:'\n \n',PlusSquare:'\n \n',PlusCircle:'\n \n',Repeat:'\n \n',Sidebar:'\n \n',Sun:'\n \n',Terminal:'\n \n',Tag:'\n \n',Watch:'\n \n',X:'\n \n',XCircle:'\n \n',XSquare:'\n \n'},xM=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,kM.b.pick(DM)],kM.b]}),e}(),EM=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Nn.c.forRoot(),Br.b,Fr,Yr.T,Fo.c,Po.forRoot(),$a.forRoot({applyClass:"tooltip-content",trigger:"hover"}),Ga.c.forRoot(),_M,xM],Nn.c,Br.b,Fr,Yr.T,Po,Fo.c,$a,Ga.c,_M,xM]}),e}(),NM=n("/PH2"),jM=n("sia0"),IM=n("fYDj"),AM=n("FGPJ"),MM=n("o0su"),LM=function(){return(LM=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},FM=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},RM=n("m8Fq"),VM=function(){function e(e,t,n,i,r,a,s,c,u){var h=this;this.actions$=e,this.gqlService=t,this.notifyService=n,this.dbService=i,this.donationService=r,this.electronAppService=a,this.environmentService=s,this.preRequestService=c,this.store=u,this.sendQueryRequest$=this.actions$.pipe(hn(jM.r,jM.c),Object(NM.a)(this.store,(function(e,t){return{state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){return e.action.type===jM.c?(h.store.dispatch(new p(e.windowId)),Object(Ox.b)()):(e.data.query.query||"").trim()?Object(qr.a)(e):Object(Ox.b)()})),Object(sc.a)((function(e){return h.getPrerequestTransformedData$(e)})),Object(sc.a)((function(e){return e?Object(qr.a)(e).pipe(Object(sc.a)((function(e){var t=e.response,n=e.transformedData,i=(t.data.query.query||"").trim(),r=h.environmentService.hydrate(t.data.query.url),a=h.environmentService.hydrate(t.data.variables.variables),s=h.environmentService.hydrateHeaders(t.data.headers),c=t.data.query.selectedOperation;if(n&&(r=h.environmentService.hydrate(t.data.query.url,{activeEnvironment:n.environment}),a=h.environmentService.hydrate(t.data.variables.variables,{activeEnvironment:n.environment}),s=h.environmentService.hydrateHeaders(t.data.headers,{activeEnvironment:n.environment})),!r||!RM.isUri(r))return h.notifyService.error("The URL is invalid!"),h.store.dispatch(new p(t.windowId)),Object(Ox.b)();if(t.data.history.list.filter((function(e){return e.query&&e.query.trim()===i.trim()})).length||h.store.dispatch(new j(t.windowId,{query:i})),h.gqlService.isSubscriptionQuery(i))return o.a.log("Your query is a SUBSCRIPTION!!!"),h.store.dispatch(t.data.query.subscriptionUrl?new jM.Y(t.windowId):new z.k(t.windowId)),Object(Ox.b)();try{var u=h.gqlService.getSelectedOperationData({query:i,selectedOperation:c,selectIfOneOperation:!0,queryCursorIndex:t.data.query.queryEditorState&&t.data.query.queryEditorState.isFocused?t.data.query.queryEditorState.cursorIndex:void 0});if(h.store.dispatch(new jM.O(t.windowId,{operations:u.operations})),c=u.selectedOperation,u.requestSelectedOperationFromUser)return h.notifyService.error("You have more than one query operations.\n You need to select the one you want to run from the dropdown."),Object(Ox.b)()}catch(b){return h.store.dispatch(new jM.R(t.windowId,{selectedOperation:""})),h.notifyService.error(b.message),Object(Ox.b)()}h.store.dispatch(new l(t.windowId));var d=(new Date).getTime(),f=0,g="";try{a&&JSON.parse(a)}catch(b){return h.notifyService.error("Looks like your variables is not a valid JSON string."),h.store.dispatch(new p(t.windowId)),Object(Ox.b)()}return h.electronAppService.setHeaders(s),h.gqlService.hasInvalidFileVariable(t.data.variables.files)&&h.notifyService.error("\n You have some invalid file variables.

    \n You need to provide a file and file name, when uploading files.\n Check your files in the variables section.

    \n Note: Files don't persist after restarting Altair.\n ","Altair",{disableTimeOut:!0}),o.a.log("Sending.."),h.gqlService.sendRequest(r,{query:i,variables:a,headers:s,method:t.data.query.httpVerb,selectedOperation:c,files:t.data.variables.files,withCredentials:t.state.settings["request.withCredentials"]}).pipe(Object(Mt.a)((function(e){return f=e.status,g=e.statusText,e.body})),Object(Mt.a)((function(e){return new jM.P(e,t.windowId)})),Object(Lt.a)((function(e){var n="Server Error. Check that your server is up and running. You can check the console for more details on the network errors.";return o.a.log(e),f=e.status,g=e.statusText,e.status&&(n=e.error),Object(qr.a)(new jM.P(n,t.windowId))})),Object($r.a)((function(){var e=(new Date).getTime();h.store.dispatch(new jM.Q(t.windowId,{responseStatus:f,responseTime:e-d,responseStatusText:g})),h.store.dispatch(new p(t.windowId))})))})),Object(Lt.a)((function(e){return o.a.error("Error sending the request",e),Object(Ox.b)()}))):Object(Ox.b)()}))),this.showUrlSetAlert$=this.actions$.pipe(hn(jM.E),Object(sc.a)((function(e){var t=h.environmentService.hydrate(e.payload.url);return RM.isUri(t)?h.notifyService.success("URL has been set."):h.notifyService.error("The URL is invalid!"),Object(Ox.b)()}))),this.getGqlSchema$=this.actions$.pipe(hn(_.f,_.g),Object(sc.a)((function(e){var t=h.gqlService.getIntrospectionSchema(e.payload);return t?Object(qr.a)(new _.o(e.windowId,t)):Object(Ox.b)()}))),this.setSchemaSDL$=this.actions$.pipe(hn(_.i),Object(sc.a)((function(e){var t=e.payload;return t&&h.gqlService.getSDL(t).then((function(t){return h.store.dispatch(new _.p(e.windowId,{sdl:t}))})).catch((function(e){o.a.error(e);var t=e.message?e.message:e.toString();h.notifyService.error("Could not set schema SDL. Error: "+t)})),Object(Ox.b)()}))),this.loadSDLSchema$=this.actions$.pipe(hn(_.c),Object(sc.a)((function(e){return Object(W.h)({accept:".gql"}).then((function(t){try{var n=h.gqlService.sdlToSchema(t);if(n)return h.notifyService.success("Loaded schema successfully"),h.store.dispatch(new _.o(e.windowId,n))}catch(r){var i=r.message?r.message:r.toString();h.notifyService.error("There was a problem loading the schema. Error: "+i),o.a.error("Error while loading schema",r)}})),Object(Ox.b)()}))),this.getIntrospectionForUrl$=this.actions$.pipe(hn(jM.q),Object(NM.a)(this.store,(function(e,t){return{state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){return h.getPrerequestTransformedData$(e)})),Object(sc.a)((function(e){if(!e)return Object(Ox.b)();var t=e.response,n=e.transformedData,i=h.environmentService.hydrate(t.data.query.url),r=h.environmentService.hydrateHeaders(t.data.headers);return n&&(i=h.environmentService.hydrate(t.data.query.url,{activeEnvironment:n.environment}),r=h.environmentService.hydrateHeaders(t.data.headers,{activeEnvironment:n.environment})),i?(h.store.dispatch(new IM.e(t.windowId)),h.gqlService.getIntrospectionRequest(i,{method:t.data.query.httpVerb,headers:r,withCredentials:t.state.settings["request.withCredentials"]}).pipe(Object(Lt.a)((function(e){h.store.dispatch(new IM.f(t.windowId));var n=e.error||e,i=n.message?n.message:e.message?e.message:n.toString(),r=!0;return n.errors&&n.errors.forEach((function(e){"GRAPHQL_VALIDATION_ERROR"===e.code&&(r=!1)})),r?h.notifyService.error("\n Seems like something is broken. Please check that the URL is valid,\n and the server is up and running properly.\n
    \n "+i+"\n "):(h.store.dispatch(new _.k(!1,t.windowId)),h.notifyService.error("\n Looks like this server does not support introspection.\n Please check with the server administrator.\n ")),Object(Ox.b)()})),Object(Mt.a)((function(e){h.store.dispatch(new IM.f(t.windowId));var n=e.body&&e.body.data,i=e.headers&&e.headers.get("X-GraphQL-Event-Stream");return h.store.dispatch(new ze.j(t.windowId,{streamUrl:i})),i&&h.store.dispatch(new ze.k(t.windowId)),n?(h.store.dispatch(new _.k(!0,t.windowId)),h.store.dispatch(new _.n(t.windowId,{epoch:Date.now()})),new _.l(n,t.windowId)):new _.l(n,t.windowId)})),Object(Lt.a)((function(e){return o.a.error(e),h.notifyService.error(e.message),Object(Ox.b)()})))):Object(Ox.b)()}))),this.notifyExperimental$=this.actions$.pipe(hn("NOTIFY_EXPERIMENTAL"),Object(sc.a)((function(){return h.dbService.getItem("exp_add_query_seen").subscribe((function(e){e||(h.notifyService.info("\n This feature is experimental, and still in beta.\n Click here to submit bugs, improvements, etc.\n ",void 0,{tapToDismiss:!0,data:{url:"https://github.com/imolorhe/altair/issues/new"}}),h.dbService.setItem("exp_add_query_seen",!0))})),Object(Ox.b)()}))),this.downloadResult$=this.actions$.pipe(hn(jM.k),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){return Object(W.c)(e.data.query.response,e.data.layout.title),Object(Ox.b)()}))),this.startSubscription$=this.actions$.pipe(hn(jM.G),Object(NM.a)(this.store,(function(e,t){return{state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){return h.getPrerequestTransformedData$(e)})),Object(sc.a)((function(e){if(!e)return Object(Ox.b)();var t=e.response,n=e.transformedData,i=void 0,r=h.environmentService.hydrate(t.data.query.subscriptionUrl),a=h.environmentService.hydrate(t.data.query.query||""),s=h.environmentService.hydrate(t.data.variables.variables),c=void 0,u=t.data.query.selectedOperation;n&&(r=h.environmentService.hydrate(t.data.query.subscriptionUrl,{activeEnvironment:n.environment}),a=h.environmentService.hydrate(t.data.query.query||"",{activeEnvironment:n.environment}),s=h.environmentService.hydrate(t.data.variables.variables,{activeEnvironment:n.environment}));var l=function(e,n){return Array.isArray(e)&&(e=e[0]),h.notifyService.error("\n An error occurred in subscription.
    \n Error: "+(n=n||e.message||e.stack)+"\n "),h.store.dispatch(new jM.Z(t.windowId)),Object(Ox.b)()};try{s&&(c=JSON.parse(s))}catch(g){return l(g,"Your variables is not a valid JSON object.")}try{var p=h.gqlService.getSelectedOperationData({query:a,selectedOperation:u,queryCursorIndex:t.data.query.queryEditorState&&t.data.query.queryEditorState.isFocused?t.data.query.queryEditorState.cursorIndex:void 0,selectIfOneOperation:!0});h.store.dispatch(new jM.O(t.windowId,{operations:p.operations})),u=p.selectedOperation}catch(g){return h.store.dispatch(new jM.R(t.windowId,{selectedOperation:""})),h.notifyService.error(g.message),Object(Ox.b)()}try{h.gqlService.closeSubscriptionClient(t.data.query.subscriptionClient);try{var d=h.environmentService.hydrate(t.data.query.subscriptionConnectionParams);i=d?JSON.parse(d):void 0}catch(g){return h.store.dispatch(new z.k(t.windowId)),l(g,"Your connection parameters is not a valid JSON object.")}var f=h.gqlService.createSubscriptionClient(r,{connectionParams:i,connectionCallback:function(e){if(e)return o.a.log("Subscription connection error",e),l(e);o.a.log("Connected subscription.")}});return f.request({query:a,variables:c,operationName:u||void 0}).subscribe({next:function(e){var n="";try{n=JSON.stringify(e)}catch(g){o.a.error("Invalid subscription response format."),n="ERROR: Invalid subscription response format."}h.store.dispatch(new jM.b(t.windowId,{response:n,responseObj:e,responseTime:(new Date).getTime()})),h.notifyService.pushNotify(n,t.data.layout.title,{onclick:function(){h.store.dispatch(new L.l({windowId:t.windowId}))}}),o.a.log(e)},error:function(e){return o.a.log("Err",e),l(e)},complete:function(){o.a.log("Subscription complete.")}}),Object(qr.a)(new jM.S(t.windowId,{subscriptionClient:f}))}catch(g){return o.a.error("An error occurred starting the subscription.",g),l(g)}}))),this.stopSubscription$=this.actions$.pipe(hn(jM.H),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){return h.gqlService.closeSubscriptionClient(e.data.query.subscriptionClient),Object(qr.a)(new jM.S(e.windowId,{subscriptionClient:null}))}))),this.prettifyQuery$=this.actions$.pipe(hn(jM.m),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e,settings:t.settings}})),Object(sc.a)((function(e){return h.gqlService.prettify(e.data.query.query||"",e.settings.tabSize).then((function(t){if(t)return h.store.dispatch(new jM.L(t,e.windowId))})).catch((function(e){o.a.log(e);var t=e.message?e.message:e.toString();h.notifyService.error("Your query does not appear to be valid. Please check it. Error: "+t)})),Object(Ox.b)()}))),this.compressQuery$=this.actions$.pipe(hn(jM.d),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){return o.a.log("We compress.."),h.gqlService.compress(e.data.query.query).then((function(t){if(o.a.log("Compressed.."),t)return h.store.dispatch(new jM.L(t,e.windowId))})).catch((function(e){o.a.log(e);var t=e.message?e.message:e.toString();h.notifyService.error("Your query does not appear to be valid. Please check it. Error: "+t)})),Object(Ox.b)()}))),this.exportSDL$=this.actions$.pipe(hn(_.a),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){return e.data.schema.schema&&h.gqlService.getSDL(e.data.schema.schema).then((function(e){e&&Object(W.b)(e,"sdl",{fileType:"gql"})})).catch((function(e){var t=e.message?e.message:e.toString();h.notifyService.error("Could not export SDL. Your schema might be invalid. Error: "+t)})),Object(Ox.b)()}))),this.copyAsCurl$=this.actions$.pipe(hn(jM.f),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){var t=h.environmentService.hydrate(e.data.query.url),n=h.environmentService.hydrate(e.data.query.query||""),i=h.environmentService.hydrate(e.data.variables.variables);try{var r=Object(AM.a)({url:t,method:e.data.query.httpVerb,headers:e.data.headers.reduce((function(e,t){return e[t.key]=h.environmentService.hydrate(t.value),e}),{}),data:{query:n,variables:JSON.parse(i)}});o.a.log(r),Object(W.a)(r),h.notifyService.success("Copied cURL command to clipboard.")}catch(a){o.a.log("Error while copying as curl",a)}return Object(Ox.b)()}))),this.convertToNamedQuery$=this.actions$.pipe(hn(jM.e),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){try{var t=h.gqlService.nameQuery(e.data.query.query);if(t)return Object(qr.a)(new jM.L(t,e.windowId))}catch(i){o.a.log(i);var n=i.message?i.message:i.toString();h.notifyService.error("Your query does not appear to be valid. Please check it. Error: "+n)}return Object(Ox.b)()}))),this.refactorQuery$=this.actions$.pipe(hn(jM.o),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){try{if(e.data.query.query&&e.data.schema.schema){var t=h.gqlService.refactorQuery(e.data.query.query,e.data.schema.schema);if(t&&t.query){try{h.store.dispatch(new y.j(JSON.stringify(LM(LM({},JSON.parse(e.data.variables.variables)),t.variables),null,2),e.windowId))}catch(i){return h.notifyService.error("Looks like your variables are not formatted properly"),Object(Ox.b)()}return Object(qr.a)(new jM.L(t.query,e.windowId))}}}catch(r){o.a.log(r);var n=r.message?r.message:r.toString();h.notifyService.error("Your query does not appear to be valid. Please check it. Error: "+n)}return Object(Ox.b)()}))),this.showDonationAlert$=this.actions$.pipe(hn(jM.r),Object(sc.a)((function(){return h.donationService.trackAndCheckIfEligible().subscribe((function(e){e&&h.store.dispatch(new G)})),Object(Ox.b)()}))),this.startStreamClient$=this.actions$.pipe(hn(ze.e),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){if(!e.data.stream.url)return Object(Ox.b)();var t=new URL(h.environmentService.hydrate(e.data.query.url)),n=new URL(h.environmentService.hydrate(e.data.stream.url),t);if(t.host!==n.host)return h.notifyService.error("\n The stream and endpoint domains do not match. Please check your server implementation.\n ["+t.host+" != "+n.host+"]\n "),Object(Ox.b)();try{e.data.stream.client&&h.gqlService.closeStreamClient(e.data.stream.client);var i=h.gqlService.createStreamClient(n.href),r=e.action.payload.backoff||200;return i.addEventListener("change",(function(){h.store.dispatch(new jM.I(e.windowId))}),!1),i.addEventListener("open",(function(){h.store.dispatch(new ze.i(e.windowId,{failed:null})),h.store.dispatch(new ze.h(e.windowId,{connected:!0})),r=200}),!1),i.addEventListener("error",(function(t){h.store.dispatch(new ze.i(e.windowId,{failed:t}));var n=setTimeout((function(){r=Math.min(1.7*r,3e4),h.store.dispatch(new ze.k(e.windowId,{backoff:r})),clearTimeout(n)}),r)}),!1),Object(qr.a)(new ze.g(e.windowId,{streamClient:i}))}catch(a){return o.a.error("An error occurred starting the stream.",a),Object(Ox.b)()}}))),this.stopStreamClient$=this.actions$.pipe(hn(ze.f),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.windowId],windowId:e.windowId,action:e}})),Object(sc.a)((function(e){return e.data.stream.client&&h.gqlService.closeStreamClient(e.data.stream.client),Object(qr.a)(new ze.g(e.windowId,{streamClient:null}))})))}return e.prototype.getPrerequestTransformedData$=function(e){var t=this;return Object(qr.a)(e).pipe(Object(sc.a)((function(e){if(!e)return Object(Ox.b)();var n,i,r,a=(e.data.query.query||"").trim();return n=function(){return e.data.preRequest.enabled},i=_t.a.create((function(n){try{t.preRequestService.executeScript(e.data.preRequest.script,{environment:t.environmentService.getActiveEnvironment(),headers:e.data.headers,query:a,variables:e.data.variables.variables}).then((function(t){n.next({response:e,transformedData:t}),n.complete()})).catch((function(e){o.a.error(e),t.notifyService.error(e.message,"Pre-request error"),n.next(null),n.complete()}))}catch(i){o.a.error(i),t.notifyService.error(i.message,"Pre-request error"),n.next(null),n.complete()}})),r=Object(qr.a)({response:e,transformedData:null}),void 0===i&&(i=Ox.a),void 0===r&&(r=Ox.a),Object(Dt.a)((function(){return n()?i:r}))})))},e.\u0275fac=function(t){return new(t||e)(i.dc(pn),i.dc(MM.GqlService),i.dc(MM.NotifyService),i.dc(MM.DbService),i.dc(MM.DonationService),i.dc(MM.ElectronAppService),i.dc(MM.EnvironmentService),i.dc(MM.PreRequestService),i.dc(c.h))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),PM([an(),FM("design:type",_t.a)],e.prototype,"sendQueryRequest$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"showUrlSetAlert$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"getGqlSchema$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"setSchemaSDL$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"loadSDLSchema$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"getIntrospectionForUrl$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"notifyExperimental$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"downloadResult$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"startSubscription$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"stopSubscription$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"prettifyQuery$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"compressQuery$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"exportSDL$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"copyAsCurl$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"convertToNamedQuery$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"refactorQuery$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"showDonationAlert$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"startStreamClient$",void 0),PM([an(),FM("design:type",_t.a)],e.prototype,"stopStreamClient$",void 0),e}(),BM=n("QvHX"),YM=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},UM=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},HM=function(){for(var e=0,t=0,n=arguments.length;t=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ZM=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$M=function(){function e(e,t,n,i,r){var o=this;this.actions$=e,this.store=t,this.collectionService=n,this.windowService=i,this.notifyService=r,this.createCollectionAndSaveQueryToCollection$=this.actions$.pipe(hn("CREATE_COLLECTION_AND_SAVE_QUERY_TO_COLLECTION"),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e}})),Object(sc.a)((function(e){return o.windowService.getWindowExportData(e.windowId).subscribe((function(t){var n=t;e.action.payload.windowTitle&&(n.windowName=e.action.payload.windowTitle),o.collectionService.create({title:e.action.payload.collectionTitle,queries:[n]}).subscribe((function(){o.notifyService.success("Created collection."),o.store.dispatch(new se)}))})),Object(Ox.b)()}))),this.saveQueryToCollection$=this.actions$.pipe(hn("SAVE_QUERY_TO_COLLECTION"),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e}})),Object(sc.a)((function(e){return o.windowService.getWindowExportData(e.windowId).subscribe((function(t){var n=t;e.action.payload.windowTitle&&(n.windowName=e.action.payload.windowTitle),o.collectionService.addQuery(e.action.payload.collectionId,n).subscribe((function(){o.notifyService.success("Added query to collection."),o.store.dispatch(new se)}))})),Object(Ox.b)()}))),this.updateQueryInCollection$=this.actions$.pipe(hn("UPDATE_QUERY_IN_COLLECTION"),Object(NM.a)(this.store,(function(e,t){return{data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e}})),Object(sc.a)((function(e){return o.windowService.getWindowExportData(e.windowId).subscribe((function(t){e.data.layout.collectionId&&e.data.layout.windowIdInCollection&&o.collectionService.updateQuery(e.data.layout.collectionId,e.data.layout.windowIdInCollection,t).subscribe((function(){o.notifyService.success("Updated query in collection."),o.store.dispatch(new se)}))})),Object(Ox.b)()}))),this.loadCollections$=this.actions$.pipe(hn("LOAD_COLLECTIONS"),Object(sc.a)((function(e){return o.collectionService.getAll().pipe(Object(Mt.a)((function(e){return new re({collections:e})})))}))),this.deleteQueryFromCollection$=this.actions$.pipe(hn("DELETE_QUERY_FROM_COLLECTION"),Object(sc.a)((function(e){return o.collectionService.deleteQuery(e.payload.collectionId,e.payload.query).pipe(Object($r.a)((function(){return o.notifyService.success("Deleted query from collection.")})),Object(Mt.a)((function(){return new se})))}))),this.updateCollection$=this.actions$.pipe(hn("UPDATE_COLLECTION"),Object(sc.a)((function(e){return o.collectionService.updateCollection(e.payload.collectionId,e.payload.collection).pipe(Object($r.a)((function(){return o.notifyService.success("Updated collection.")})),Object(Mt.a)((function(){return new se})))}))),this.deleteCollection$=this.actions$.pipe(hn("DELETE_COLLECTION"),Object(sc.a)((function(e){return o.collectionService.deleteCollection(e.payload.collectionId).pipe(Object($r.a)((function(){return o.notifyService.success("Deleted query from collection.")})),Object(Mt.a)((function(){return new se})))}))),this.exportCollection$=this.actions$.pipe(hn("EXPORT_COLLECTION"),Object(sc.a)((function(e){return o.collectionService.getExportCollectionData(e.payload.collectionId).subscribe((function(e){e&&Object(W.c)(e,e.title,{fileType:"agc"})})),Object(Ox.b)()}))),this.importCollection$=this.actions$.pipe(hn("IMPORT_COLLECTION"),Object(sc.a)((function(){return Object(W.h)({accept:".agc"}).then((function(e){return o.collectionService.importCollectionDataFromJson(e).subscribe((function(){o.notifyService.success("Successfully imported collection."),o.store.dispatch(new se)}),(function(e){var t=e.message?e.message:e.toString();o.notifyService.error("Something went wrong importing collection. Error: "+t)}))})),Object(Ox.b)()})))}return e.\u0275fac=function(t){return new(t||e)(i.dc(pn),i.dc(c.h),i.dc(MM.QueryCollectionService),i.dc(MM.WindowService),i.dc(MM.NotifyService))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),qM([an(),ZM("design:type",_t.a)],e.prototype,"createCollectionAndSaveQueryToCollection$",void 0),qM([an(),ZM("design:type",_t.a)],e.prototype,"saveQueryToCollection$",void 0),qM([an(),ZM("design:type",_t.a)],e.prototype,"updateQueryInCollection$",void 0),qM([an(),ZM("design:type",_t.a)],e.prototype,"loadCollections$",void 0),qM([an(),ZM("design:type",_t.a)],e.prototype,"deleteQueryFromCollection$",void 0),qM([an(),ZM("design:type",_t.a)],e.prototype,"updateCollection$",void 0),qM([an(),ZM("design:type",_t.a)],e.prototype,"deleteCollection$",void 0),qM([an(),ZM("design:type",_t.a)],e.prototype,"exportCollection$",void 0),qM([an(),ZM("design:type",_t.a)],e.prototype,"importCollection$",void 0),e}(),GM=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}(),QM=n("VrN/"),XM=n.n(QM),KM=["ref"];function JM(e){return e?e.replace(/\r\n|\r/g,"\n"):e}var eL=function(){function e(e,t){this._differs=e,this._ngZone=t,this.className="",this.name="codemirror",this.autoFocus=!1,this.preserveScrollPosition=!1,this.cursorActivity=new i.n,this.focusChange=new i.n,this.scroll=new i.n,this.drop=new i.n,this.value="",this.disabled=!1,this.isFocused=!1,this.onChange=function(e){},this.onTouched=function(){}}var t;return t=e,Object.defineProperty(e.prototype,"options",{set:function(e){this._options=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"codeMirrorGlobal",{get:function(){return this._codeMirror||(this._codeMirror="undefined"!=typeof CodeMirror?CodeMirror:XM.a),this._codeMirror},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ref&&this._ngZone.runOutsideAngular((function(){e.codeMirror=e.codeMirrorGlobal.fromTextArea(e.ref.nativeElement,e._options),e.codeMirror.on("cursorActivity",(function(t){return e._ngZone.run((function(){return e.cursorActive(t)}))})),e.codeMirror.on("scroll",e.scrollChanged.bind(e)),e.codeMirror.on("blur",(function(){return e._ngZone.run((function(){return e.focusChanged(!1)}))})),e.codeMirror.on("focus",(function(){return e._ngZone.run((function(){return e.focusChanged(!0)}))})),e.codeMirror.on("change",(function(t,n){return e._ngZone.run((function(){return e.codemirrorValueChanged(t,n)}))})),e.codeMirror.on("drop",(function(t,n){e._ngZone.run((function(){return e.dropFiles(t,n)}))})),e.codeMirror.setValue(e.value)}))},e.prototype.ngDoCheck=function(){var e=this;if(this._differ){var t=this._differ.diff(this._options);t&&(t.forEachChangedItem((function(t){return e.setOptionIfChanged(t.key,t.currentValue)})),t.forEachAddedItem((function(t){return e.setOptionIfChanged(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){return e.setOptionIfChanged(t.key,t.currentValue)})))}},e.prototype.ngOnDestroy=function(){this.codeMirror&&this.codeMirror.toTextArea()},e.prototype.codemirrorValueChanged=function(e,t){"setValue"!==t.origin&&(this.value=e.getValue(),this.onChange(this.value))},e.prototype.setOptionIfChanged=function(e,t){this.codeMirror&&this.codeMirror.setOption(e,t)},e.prototype.focusChanged=function(e){this.onTouched(),this.isFocused=e,this.focusChange.emit(e)},e.prototype.scrollChanged=function(e){this.scroll.emit(e.getScrollInfo())},e.prototype.cursorActive=function(e){this.cursorActivity.emit(e)},e.prototype.dropFiles=function(e,t){this.drop.emit([e,t])},e.prototype.writeValue=function(e){if(null!=e)if(this.codeMirror){var t=this.codeMirror.getValue();if(e!==t&&JM(t)!==JM(e))if(this.value=e,this.preserveScrollPosition){var n=this.codeMirror.getScrollInfo();this.codeMirror.setValue(this.value),this.codeMirror.scrollTo(n.left,n.top)}else this.codeMirror.setValue(this.value)}else this.value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.setOptionIfChanged("readOnly",this.disabled)},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.t),i.Tb(i.z))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngx-codemirror"]],viewQuery:function(e,t){var n;1&e&&i.Jc(KM,!0),2&e&&i.zc(n=i.ic())&&(t.ref=n.first)},inputs:{className:"className",name:"name",autoFocus:"autoFocus",preserveScrollPosition:"preserveScrollPosition",options:"options"},outputs:{cursorActivity:"cursorActivity",focusChange:"focusChange",scroll:"scroll",drop:"drop"},features:[i.Cb([{provide:Ot.m,useExisting:Object(i.V)((function(){return t})),multi:!0}])],decls:3,vars:7,consts:[["autocomplete","off",3,"name","autofocus"],["ref",""]],template:function(e,t){1&e&&(i.Zb(0,"textarea",0,1),i.Nc(2," "),i.Yb()),2&e&&(i.Gb("ngx-codemirror ",t.className,""),i.Jb("ngx-codemirror--focused",t.isFocused),i.sc("name",t.name)("autofocus",t.autoFocus))},encapsulation:2,changeDetection:0}),e}(),tL=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}(),nL=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)}}),e}(),iL=(n("cokd"),n("m3Q/"),n("iCJ0"),n("SJVZ"),n("y8iW"),n("rt3J"),n("jXCp"),n("jDMi"),n("ELLl"),n("Ku0u"),n("C2zF"),n("uTOq"),n("cV09"),n("GP5n"),n("nHt3"),n("mki7"),n("O8+U"),n("HkoP"),n("HBFN"),n("Xkdu"),n("IQOa")),rL=["error","warning","information","hint"],oL={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};QM.registerHelper("lint","graphql",(function(e,t){var n=t.schema;try{return Object(iL.getDiagnostics)(e,n).map((function(e){return e.severity&&e.source&&{message:e.message,severity:rL[e.severity-1],type:oL[e.source],from:QM.Pos(e.range.start.line,e.range.start.character),to:QM.Pos(e.range.end.line,e.range.end.character)}}))}catch(i){return o.a.log(i),[]}})),QM.registerHelper("hint","graphql",(function(e,t){var n=t.schema;if(n){var i=e.getDoc().getCursor(),r=e.getTokenAt(i),o=Object(iL.getAutocompleteSuggestions)(n,e.getValue(),i,r),a=null!==r.type&&/"|\w/.test(r.string[0])?r.start:r.end,s={list:o.map((function(e){return{text:e.label,type:e.detail&&n.getType(e.detail.replace(/[\[\]!]/g,"")),description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,render:t.render||void 0,typeDetail:e.detail}})),from:{line:i.line,column:a},to:{line:i.line,column:r.end}};return s&&s.list&&s.list.length>0&&(s.from=QM.Pos(s.from.line,s.from.column),s.to=QM.Pos(s.to.line,s.to.column),QM.signal(e,"hasCompletion",e,s,r)),s}}));var aL=n("axIb"),sL=n("4MG8"),cL=function(e){return e instanceof aL.e?cL(e.ofType)+"!":e instanceof aL.d?"["+cL(e.ofType)+"]":'
    '+e.name+""},uL=function(e,t){if(void 0===t&&(t=!1),e){if(t)return e.refresh();if(e&&e.display.wrapper.offsetHeight&&e.display.lastWrapHeight!==e.display.wrapper.clientHeight)return e.refresh()}},lL=(n("+dQi"),["editor"]),pL=function(){function e(){this.variables="",this.variablesChange=new i.n,this.variableEditorConfig={mode:{name:"javascript",json:!0},lineWrapping:!0,lineNumbers:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,tabSize:4,indentUnit:4,matchBrackets:!0,autoCloseBrackets:!0,keyMap:"sublime",theme:"default variable-editor mousetrap",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}return e.prototype.ngOnChanges=function(){},e.prototype.ngDoCheck=function(){uL(this.editor&&this.editor.codeMirror)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-variables-editor"]],viewQuery:function(e,t){var n;1&e&&i.Jc(lL,!0),2&e&&i.zc(n=i.ic())&&(t.editor=n.first)},inputs:{variables:"variables"},outputs:{variablesChange:"variablesChange"},features:[i.Bb],decls:3,vars:2,consts:[[1,"set-variable-textarea","mousetrap",3,"options","ngModel","ngModelChange"],["editor",""]],template:function(e,t){1&e&&(i.Zb(0,"ngx-codemirror",0,1),i.hc("ngModelChange",(function(e){return t.variablesChange.emit(e)})),i.Yb(),i.Nc(2,"\n")),2&e&&i.sc("options",t.variableEditorConfig)("ngModel",t.variables)},directives:[eL,Ot.o,Ot.r],styles:[""]}),e}(),hL=n("pvWi"),dL=n("1UAX"),fL=["editor"];function gL(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",15),i.Nc(1,"\n "),i.Zb(2,"div",16),i.Nc(3,"\n "),i.Zb(4,"input",17),i.hc("ngModelChange",(function(e){i.Dc(n);var r=t.index;return i.kc().fileVariableNameChange.next({index:r,name:e})})),i.lc(5,"translate"),i.Yb(),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"div",18),i.Nc(9,"\n "),i.Zb(10,"input",19,20),i.hc("change",(function(){i.Dc(n);var e=t.index,r=i.Ac(11);return i.kc().fileVariableDataChange.next({index:e,fileData:r.files[0]})})),i.Yb(),i.Nc(12,"\n "),i.Yb(),i.Nc(13,"\n "),i.Zb(14,"div",21),i.hc("click",(function(){i.Dc(n);var e=t.index;return i.kc().deleteFileVariableChange.next({index:e})})),i.Nc(15,"\xd7"),i.Yb(),i.Nc(16,"\n "),i.Yb()}if(2&e){var r=t.$implicit;i.Db(4),i.tc("placeholder",i.mc(5,2,"FILE_NAME_PLACEHOLDER")),i.sc("ngModel",r.name)}}var bL=function(e){return{"show-variables":e}},mL=function(e){return{hide:e}},vL=n("i1zs"),yL=/^[a-zA-Z0-9_@(]$/,wL=function(){function e(e,t,n){var r=this;this.gqlService=e,this.notifyService=t,this.zone=n,this.query="",this.tabSize=2,this.addQueryDepthLimit=2,this.showVariableDialog=!1,this.sendRequest=new i.n,this.queryChange=new i.n,this.variablesChange=new i.n,this.toggleVariableDialog=new i.n,this.addFileVariableChange=new i.n,this.fileVariableNameChange=new i.n,this.fileVariableDataChange=new i.n,this.deleteFileVariableChange=new i.n,this.queryEditorStateChange=new i.n,this.showTokenInDocsChange=new i.n,this.editorConfig={mode:"graphql",lineWrapping:!0,lineNumbers:!0,foldGutter:!0,tabSize:this.tabSize,indentUnit:this.tabSize,extraKeys:{"Cmd-Space":function(e){return e.showHint({completeSingle:!0})},"Ctrl-Space":function(e){return e.showHint({completeSingle:!0})},"Alt-Space":function(e){return e.showHint({completeSingle:!0})},"Cmd-/":function(e){return e.execCommand("toggleComment")},"Ctrl-/":function(e){return e.execCommand("toggleComment")},"Alt-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-D":function(e){return r.zone.run((function(){return r.onShowInDocsByToken(e)}))},"Shift-Ctrl-Enter":function(e){return r.zone.run((function(){return r.onFillFields(e)}))}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,autoRefresh:!0,dragDrop:!1,lint:{},hintOptions:{completeSingle:!1,render:function(e,t,n){e.classList.add("query-editor__autocomplete-item"),e.innerHTML=('\n '+n.text+'\n '+n.typeDetail+"\n ").trim().replace(/ +/g," ")}},info:{onClick:function(e){return r.zone.run((function(){return r.onShowInDocsByReference(e)}))}},jump:{onClick:function(e){return r.zone.run((function(){return r.onShowInDocsByReference(e)}))}}},this.widgets=[],this.updateWidgetTimeout=null}return e.prototype.ngOnInit=function(){this.gqlSchema&&(this.editorConfig.lint={},this.editorConfig.tabSize=this.tabSize||2,this.editorConfig.indentUnit=this.tabSize||2,this.updateEditorSchema(this.gqlSchema))},e.prototype.ngAfterViewInit=function(){var e=this;this.editor&&(this.editor.codeMirror.on("keyup",(function(t,n){return e.onKeyUp(t,n)})),this.editor.codeMirror.on("focus",(function(t,n){return e.onEditorStateChange(t,n)})),this.editor.codeMirror.on("blur",(function(t,n){return e.onEditorStateChange(t,n)})),this.editor.codeMirror.on("cursorActivity",(function(t,n){return e.onEditorStateChange(t,n)})),this.editor.codeMirror.on("hasCompletion",(function(t,n){return e.onHasCompletion(t,n)})),this.editor.codeMirror.on("change",(function(t,n){return e.updateWidgets(t,n)})))},e.prototype.ngOnChanges=function(e){if(e&&e.gqlSchema&&e.gqlSchema.currentValue){this.updateEditorSchema(e.gqlSchema.currentValue);var t=this.gqlService.validateSchema(e.gqlSchema.currentValue);if(t.length){var n=t.map((function(e){return"

    "+e.message})).join("");this.notifyService.warning("\n The schema definition is invalid according to the GraphQL specs.\n Linting and other functionalities would be unavailable.\n "+n+"\n ","Altair",{disableTimeOut:!0})}}},e.prototype.ngDoCheck=function(){uL(this.editor&&this.editor.codeMirror)},e.prototype.onKeyUp=function(e,t){yL.test(t.key)&&this.editor.codeMirror.execCommand("autocomplete")},e.prototype.onEditorStateChange=function(e,t){var n=e.getDoc().getCursor(),i=e.getDoc().indexFromPos(n),r=e.hasFocus();this.queryEditorStateChange.next({isFocused:r,cursorIndex:i})},e.prototype.onShowInDocsByToken=function(e){var t=e.getDoc().getCursor(),n=e.getTokenAt(t),i=vL(this.gqlSchema,n.state);i.fieldDef&&i.parentType?this.showTokenInDocsChange.next({view:"field",parentType:i.parentType.inspect(),name:i.fieldDef.name}):i.type&&this.showTokenInDocsChange.next({view:"type",name:i.type.inspect()}),this.editor.codeMirror.getInputField().blur()},e.prototype.onShowInDocsByReference=function(e){e.field&&e.type?this.showTokenInDocsChange.next({view:"field",parentType:e.type.inspect(),name:e.field.name}):e.type&&this.showTokenInDocsChange.next({view:"type",name:e.type.inspect()})},e.prototype.onFillFields=function(e){var t=e.getDoc().getCursor(),n=e.getTokenAt(t),i=this.gqlSchema;if(i){var r=this.gqlService.fillAllFields(i,e.getValue(),t,n,{maxDepth:this.addQueryDepthLimit});this.queryChange.next(r.result);var o=setTimeout((function(){e.getDoc().setCursor(t),clearTimeout(o)}),1)}},e.prototype.onHasCompletion=function(e,t){var i=this;!function(e,t,i){void 0===i&&(i={});var r,o,a,s=n("VrN/"),c=i.onHintInformationRender,u=i.onClickHintInformation;s.on(t,"select",(function(e,t){var n=void 0;if(u&&(n=function(){return u(e.type)}),!r){var i,s=t.parentNode;s&&((r=document.createElement("div")).className="CodeMirror-hint-information",s.appendChild(r),(o=document.createElement("div")).className="CodeMirror-hint-deprecation",s.appendChild(o),(a=document.createElement("div")).className="CodeMirror-hint-fill-all-fields",a.innerHTML='\n Fill all fields\n Ctrl+Shift+Enter\n '.trim().replace(/ +/g," "),s.appendChild(a),s.addEventListener("DOMNodeRemoved",i=function(e){e.target===s&&(r&&n&&r.removeEventListener("click",n),s.removeEventListener("DOMNodeRemoved",i),r=null,o=null,a=null,i=void 0)}))}var l=e.description?sL(e.description):e.type&&e.type.description?sL(e.type.description):"Self descriptive.",p=e.type?''+cL(e.type)+"":"";if(r&&(r.innerHTML='

    '+("

    "===l.slice(0,3)?"

    "+p+l.slice(3):p+l)+"

    "),e.isDeprecated){var h=e.deprecationReason?sL(e.deprecationReason):"";o&&(o.innerHTML='Deprecated'+h,o.style.display="block")}else o&&(o.style.display="none");n&&r&&r.addEventListener("click",n),c&&c(r)}))}(0,t,{onClickHintInformation:function(e){if(i.gqlSchema){var t=i.gqlSchema.getType(e);t&&i.showTokenInDocsChange.next({view:"type",name:t.inspect()})}}})},e.prototype.updateWidgets=function(e,t){var n=this;this.zone.runOutsideAngular((function(){var t=[];clearTimeout(n.updateWidgetTimeout),n.updateWidgetTimeout=setTimeout((function(){try{var i=n.gqlService.parseQuery(e.getValue());i.definitions.forEach((function(e){"OperationDefinition"===e.kind&&(e.name&&e.name.value||1===i.definitions.length)&&(o.a.log("WIDGET",e),t.push({operation:e.operation,location:e.loc,operationName:e.name?e.name.value:""}))})),e.operation((function(){n.widgets.forEach((function(t){e.removeLineWidget(t),t.clear()})),n.widgets=[],t.forEach((function(t){var i=t.operationName,r=t.operation,a=t.location,s=document.createElement("div");s.innerHTML="► (Run "+r+(i?" "+i:"")+")",s.className="query-editor__line-widget",s.onclick=function(){n.zone.run((function(){return n.sendRequest.next({operationName:i})})),o.a.log("WIDGET listens")},n.widgets.push(e.addLineWidget(a.startToken.line-1,s,{above:!0}))}))}))}catch(r){}finally{clearTimeout(n.updateWidgetTimeout)}}),300)}))},e.prototype.updateEditorSchema=function(e){e&&(o.a.log("Updating schema...",e),this.editorConfig.lint.schema=e,this.editorConfig.hintOptions.schema=e,this.editorConfig.info.schema=e,this.editorConfig.jump.schema=e)},e.prototype.onResize=function(e){this.resizeFactor=e},e.prototype.trackByIndex=function(e){return e},e.\u0275fac=function(t){return new(t||e)(i.Tb(MM.GqlService),i.Tb(MM.NotifyService),i.Tb(i.z))},e.\u0275cmp=i.Nb({type:e,selectors:[["app-query-editor"]],viewQuery:function(e,t){var n;1&e&&i.Jc(fL,!0),2&e&&i.zc(n=i.ic())&&(t.editor=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&i.Kc("flex-grow",t.resizeFactor)},inputs:{query:"query",gqlSchema:"gqlSchema",tabSize:"tabSize",addQueryDepthLimit:"addQueryDepthLimit",variables:"variables",showVariableDialog:"showVariableDialog"},outputs:{sendRequest:"sendRequest",queryChange:"queryChange",variablesChange:"variablesChange",toggleVariableDialog:"toggleVariableDialog",addFileVariableChange:"addFileVariableChange",fileVariableNameChange:"fileVariableNameChange",fileVariableDataChange:"fileVariableDataChange",deleteFileVariableChange:"deleteFileVariableChange",queryEditorStateChange:"queryEditorStateChange",showTokenInDocsChange:"showTokenInDocsChange"},features:[i.Bb],decls:41,vars:21,consts:[[1,"query-editor-container"],[1,"query-editor__input",3,"ngModel","options","ngModelChange"],["editor",""],[1,"variables-editor-container",3,"ngClass"],["track-id","toggle_variables",1,"variables-editor--title",3,"click"],[1,"variables-editor-inner",3,"ngClass"],[1,"variables-editor-input-container"],[3,"variables","variablesChange"],[1,"variables-files-container"],["track-id","add_file_variable",1,"variables-add-files-button",3,"click"],["href","https://sirmuel.design/working-with-file-uploads-using-altair-graphql-d2f86dc8261f","target","_blank","rel","noopener"],["name","info"],[1,"variables-files-list"],["class","variables-file-item",4,"ngFor","ngForOf","ngForTrackBy"],[3,"resizeDirection","resizeChange"],[1,"variables-file-item"],[1,"variables-file-item-name-input-wrapper"],["type","text",1,"variables-file-item-name-input",3,"placeholder","ngModel","ngModelChange"],[1,"variables-file-item-input-wrapper"],["type","file",1,"variables-file-item-input",3,"change"],["fileEl",""],[1,"variables-file-item-input-delete",3,"click"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Nc(1,"\n "),i.Zb(2,"ngx-codemirror",1,2),i.hc("ngModelChange",(function(e){return t.query=e}))("ngModelChange",(function(e){return t.queryChange.emit(e)})),i.Yb(),i.Nc(4,"\n"),i.Yb(),i.Nc(5,"\n"),i.Zb(6,"div",3),i.Nc(7,"\n "),i.Zb(8,"div",4),i.hc("click",(function(e){return t.toggleVariableDialog.next(e)})),i.Nc(9),i.lc(10,"translate"),i.Yb(),i.Nc(11,"\n "),i.Zb(12,"div",5),i.Nc(13,"\n "),i.Zb(14,"div",6),i.Nc(15,"\n "),i.Zb(16,"app-variables-editor",7),i.hc("variablesChange",(function(e){return t.variablesChange.emit(e)})),i.Yb(),i.Nc(17,"\n "),i.Yb(),i.Nc(18,"\n "),i.Zb(19,"div",8),i.Nc(20,"\n "),i.Zb(21,"button",9),i.hc("click",(function(){return t.addFileVariableChange.next()})),i.Nc(22),i.lc(23,"translate"),i.Yb(),i.Nc(24,"\n\n "),i.Zb(25,"a",10),i.Nc(26,"\n "),i.Ub(27,"app-icon",11),i.Nc(28),i.lc(29,"translate"),i.Yb(),i.Nc(30,"\n\n "),i.Zb(31,"div",12),i.Nc(32,"\n "),i.Lc(33,gL,17,4,"div",13),i.Nc(34,"\n "),i.Yb(),i.Nc(35,"\n "),i.Yb(),i.Nc(36,"\n "),i.Yb(),i.Nc(37,"\n"),i.Yb(),i.Nc(38,"\n"),i.Zb(39,"app-flex-resizer",14),i.hc("resizeChange",(function(e){return t.onResize(e)})),i.Yb(),i.Nc(40,"\n")),2&e&&(i.Db(2),i.sc("ngModel",t.query)("options",t.editorConfig),i.Db(4),i.sc("ngClass",i.vc(17,bL,t.showVariableDialog)),i.Db(3),i.Oc(i.mc(10,11,"VARIABLES_TEXT")),i.Db(3),i.sc("ngClass",i.vc(19,mL,!t.showVariableDialog)),i.Db(4),i.sc("variables",null==t.variables?null:t.variables.variables),i.Db(6),i.Oc(i.mc(23,13,"ADD_FILES_TEXT")),i.Db(6),i.Pc("\n ",i.mc(29,15,"LEARN_MORE_TEXT"),"\n "),i.Db(5),i.sc("ngForOf",null==t.variables?null:t.variables.files)("ngForTrackBy",t.trackByIndex),i.Db(6),i.sc("resizeDirection","right"))},directives:[eL,Ot.o,Ot.r,Vr.q,pL,hL.a,Vr.s,dL.a,Ot.e],pipes:[Nn.d],styles:[""]}),e}();function OL(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"json"),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Pc(" ",i.mc(2,1,n.data.responseObj)," ")}}function CL(e,t){if(1&e&&(i.Xb(0),i.Nc(1),i.Wb()),2&e){var n=i.kc();i.Db(1),i.Pc(" ",n.data.response," ")}}n("iMDj");var SL=function(e){return{"subscription-result__list-item--expanded":e}},zL=function(){function e(){this.data={response:"",responseObj:null,responseTime:0},this.isExpanded=!1}return e.prototype.toggleExpanded=function(){this.isExpanded=!this.isExpanded},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-subscription-result-item"]],inputs:{data:"data"},decls:7,vars:9,consts:[[1,"subscription-result__list-item",3,"ngClass","click"],[1,"subscription-result__list-item-content"],[4,"ngIf"],[1,"subscription-result__list-item-time"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.hc("click",(function(){return t.toggleExpanded()})),i.Zb(1,"div",1),i.Lc(2,OL,3,3,"ng-container",2),i.Lc(3,CL,2,1,"ng-container",2),i.Yb(),i.Zb(4,"div",3),i.Nc(5),i.lc(6,"date"),i.Yb(),i.Yb()),2&e&&(i.sc("ngClass",i.vc(7,SL,t.isExpanded)),i.Db(2),i.sc("ngIf",t.data.responseObj),i.Db(1),i.sc("ngIf",!t.data.responseObj),i.Db(2),i.Oc(i.nc(6,4,t.data.responseTime,"mediumTime")))},directives:[Vr.q,Vr.t],pipes:[Vr.f,Vr.k],styles:[""],encapsulation:2}),e}(),TL=["editor"],_L=["subscriptionResponseList"];function kL(e,t){1&e&&(i.Zb(0,"div",29),i.Nc(1,"\n "),i.Zb(2,"div",30),i.Nc(3,"\n "),i.Zb(4,"div",31),i.Nc(5),i.lc(6,"translate"),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"div",32),i.Nc(9,"\n "),i.Zb(10,"div",5),i.Nc(11,"\n "),i.Ub(12,"div",33),i.Nc(13,"\n "),i.Ub(14,"div",34),i.Nc(15,"\n "),i.Ub(16,"div",34),i.Nc(17,"\n "),i.Ub(18,"div",34),i.Nc(19,"\n "),i.Yb(),i.Nc(20,"\n "),i.Zb(21,"div",9),i.Nc(22,"\n "),i.Ub(23,"div",34),i.Nc(24,"\n "),i.Yb(),i.Nc(25,"\n "),i.Yb(),i.Nc(26,"\n "),i.Yb(),i.Nc(27,"\n "),i.Yb()),2&e&&(i.Db(5),i.Pc("\n ",i.mc(6,1,"QUERY_RESULT_NO_RESULT_TEXT"),"\n "))}function DL(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",35),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc().actionButtonClickChange.next(e)})),i.Nc(1),i.Yb()}if(2&e){var r=t.$implicit;i.Db(1),i.Pc("\n ",r.text,"\n ")}}function xL(e,t){1&e&&i.Ub(0,"app-subscription-result-item",36),2&e&&i.sc("data",t.$implicit)}var EL=function(e){return{hide:e}},NL=function(e){return{"subscription-result__float-action-button--active":e}},jL=function(){function e(){this.queryResult="",this.responseTime=0,this.responseStatus=0,this.responseStatusText="",this.isSubscribed=!1,this.subscriptionResponses=[],this.subscriptionUrl="",this.tabSize=2,this.autoscrollSubscriptionResponses=!1,this.actionButtons=[],this.downloadResultChange=new i.n,this.stopSubscriptionChange=new i.n,this.clearSubscriptionChange=new i.n,this.autoscrollSubscriptionResponsesChange=new i.n,this.actionButtonClickChange=new i.n,this.resultEditorConfig={mode:"graphql-results",json:!0,tabSize:this.tabSize,indentUnit:this.tabSize,lineWrapping:!0,lineNumbers:!0,foldGutter:!0,readOnly:!0,dragDrop:!1,autoRefresh:!0,theme:"default query-result",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Alt-F":"findPersistent","Ctrl-F":"findPersistent"}}}return e.prototype.ngOnChanges=function(e){var t=this;if(e.subscriptionResponses&&e.subscriptionResponses.currentValue)var n=setTimeout((function(){t.subscriptionResponseList&&t.autoscrollSubscriptionResponses&&(t.subscriptionResponseList.nativeElement.scrollTop=t.subscriptionResponseList.nativeElement.scrollHeight),clearTimeout(n)}),50)},e.prototype.ngDoCheck=function(){uL(this.editor&&this.editor.codeMirror)},e.prototype.subscriptionResponseTrackBy=function(e,t){return t.responseTime},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-query-result"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(TL,!0),i.Jc(_L,!0)),2&e&&(i.zc(n=i.ic())&&(t.editor=n.first),i.zc(n=i.ic())&&(t.subscriptionResponseList=n.first))},inputs:{queryResult:"queryResult",responseTime:"responseTime",responseStatus:"responseStatus",responseStatusText:"responseStatusText",isSubscribed:"isSubscribed",subscriptionResponses:"subscriptionResponses",subscriptionUrl:"subscriptionUrl",tabSize:"tabSize",autoscrollSubscriptionResponses:"autoscrollSubscriptionResponses",actionButtons:"actionButtons"},outputs:{downloadResultChange:"downloadResultChange",stopSubscriptionChange:"stopSubscriptionChange",clearSubscriptionChange:"clearSubscriptionChange",autoscrollSubscriptionResponsesChange:"autoscrollSubscriptionResponsesChange",actionButtonClickChange:"actionButtonClickChange"},features:[i.Bb],decls:82,vars:37,consts:[[1,"query-result-container"],[1,"query-result__normal-container",3,"ngClass"],["class","query-result__none",4,"ngIf"],[1,"app-result",3,"ngClass"],[1,"response-stats"],[1,"left"],[1,"response-status-code","response-stats__item"],[1,"response-time","response-stats__item"],["name","clock"],[1,"right"],[1,"query-result__bottom-actions"],["track-id","download_result",1,"query-result__download-button",3,"click"],["name","download"],["class","query-result__download-button",3,"click",4,"ngFor","ngForOf"],[1,"app-query-result-textarea",3,"options","ngModel"],["editor",""],[1,"query-result__subscription-container",3,"ngClass"],[1,"subscription-result"],[1,"subscription-result__actions"],[1,"subscription-result__actions-left"],[1,"subscription-result__actions-url"],[1,"subscription-result__actions-right"],["track-id","clear_subscription",1,"subscription-button",3,"click"],["track-id","stop_subscription",1,"subscription-button","subscription-button--stop",3,"click"],[1,"subscription-result__list-wrapper"],["subscriptionResponseList",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[1,"subscription-result__float-actions"],[1,"subscription-result__float-action-button",3,"ngClass","click"],[1,"query-result__none"],[1,"query-result__none-inner"],[1,"query-result__none-subtext"],[1,"query-result__none-art"],[1,"query-result__none-art-button","send"],[1,"query-result__none-art-button"],[1,"query-result__download-button",3,"click"],[3,"data"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Nc(1,"\n "),i.Zb(2,"div",1),i.Nc(3,"\n "),i.Lc(4,kL,28,3,"div",2),i.Nc(5,"\n "),i.Nc(6,"\n "),i.Zb(7,"div",3),i.Nc(8,"\n "),i.Zb(9,"div",4),i.Nc(10,"\n "),i.Zb(11,"div",5),i.Nc(12,"\n "),i.Zb(13,"span",6),i.Nc(14),i.Yb(),i.Nc(15,"\n "),i.Zb(16,"span",7),i.Ub(17,"app-icon",8),i.Nc(18),i.Yb(),i.Nc(19,"\n "),i.Yb(),i.Nc(20,"\n "),i.Zb(21,"div",9),i.Nc(22,"\n "),i.Yb(),i.Nc(23,"\n "),i.Yb(),i.Nc(24,"\n "),i.Zb(25,"div",10),i.Nc(26,"\n "),i.Zb(27,"button",11),i.hc("click",(function(){return t.downloadResultChange.next()})),i.Nc(28,"\n "),i.Ub(29,"app-icon",12),i.Nc(30),i.lc(31,"translate"),i.Yb(),i.Nc(32,"\n "),i.Lc(33,DL,2,1,"button",13),i.Nc(34,"\n "),i.Yb(),i.Nc(35,"\n "),i.Ub(36,"ngx-codemirror",14,15),i.lc(38,"json"),i.Nc(39,"\n "),i.Yb(),i.Nc(40,"\n "),i.Yb(),i.Nc(41,"\n "),i.Zb(42,"div",16),i.Nc(43,"\n "),i.Zb(44,"div",17),i.Nc(45,"\n "),i.Zb(46,"div",18),i.Nc(47,"\n "),i.Zb(48,"div",19),i.Nc(49,"\n "),i.Zb(50,"div",20),i.Nc(51),i.Yb(),i.Nc(52,"\n "),i.Yb(),i.Nc(53,"\n "),i.Zb(54,"div",21),i.Nc(55,"\n "),i.Zb(56,"button",22),i.hc("click",(function(){return t.clearSubscriptionChange.next()})),i.Nc(57),i.lc(58,"translate"),i.Yb(),i.Nc(59,"\n "),i.Zb(60,"button",23),i.hc("click",(function(){return t.stopSubscriptionChange.next()})),i.Nc(61),i.lc(62,"translate"),i.Yb(),i.Nc(63,"\n "),i.Yb(),i.Nc(64,"\n "),i.Yb(),i.Nc(65,"\n "),i.Zb(66,"div",24,25),i.Nc(68,"\n "),i.Lc(69,xL,1,1,"app-subscription-result-item",26),i.Nc(70,"\n "),i.Yb(),i.Nc(71,"\n "),i.Zb(72,"div",27),i.Nc(73,"\n "),i.Zb(74,"button",28),i.hc("click",(function(){return t.autoscrollSubscriptionResponsesChange.next()})),i.Nc(75),i.lc(76,"translate"),i.Yb(),i.Nc(77,"\n "),i.Yb(),i.Nc(78,"\n "),i.Yb(),i.Nc(79,"\n "),i.Yb(),i.Nc(80,"\n"),i.Yb(),i.Nc(81,"\n")),2&e&&(i.Db(2),i.sc("ngClass",i.vc(29,EL,t.isSubscribed)),i.Db(2),i.sc("ngIf",!t.queryResult),i.Db(3),i.sc("ngClass",i.vc(31,EL,!t.queryResult)),i.Db(6),i.Eb("data-status-code",t.responseStatus),i.Db(1),i.Qc("",t.responseStatus," ",t.responseStatusText,""),i.Db(4),i.Pc(" ",t.responseTime,"ms"),i.Db(12),i.Pc("\n ",i.mc(31,19,"QUERY_RESULT_DOWNLOAD_RESULT_BUTTON"),"\n "),i.Db(3),i.sc("ngForOf",t.actionButtons),i.Db(3),i.sc("options",t.resultEditorConfig)("ngModel",i.mc(38,21,t.queryResult)),i.Db(6),i.sc("ngClass",i.vc(33,EL,!t.isSubscribed)),i.Db(9),i.Pc("\n ",t.subscriptionUrl,"\n "),i.Db(6),i.Oc(i.mc(58,23,"SUBSCRIPTIONS_CLEAR_TEXT")),i.Db(4),i.Oc(i.mc(62,25,"SUBSCRIPTIONS_STOP_TEXT")),i.Db(8),i.sc("ngForOf",t.subscriptionResponses)("ngForTrackBy",t.subscriptionResponseTrackBy),i.Db(5),i.sc("ngClass",i.vc(35,NL,t.autoscrollSubscriptionResponses)),i.Db(1),i.Pc("\n ",i.mc(76,27,"SUBSCRIPTIONS_AUTOSCROLL_TEXT"),"\n "))},directives:[Vr.q,Vr.t,hL.a,Vr.s,eL,Ot.o,Ot.r,zL],pipes:[Nn.d,Vr.k],styles:[""]}),e}(),IL=["fancyInputEl"],AL=["fancyInputHighlightsEl"];function ML(e,t){if(1&e&&(i.Zb(0,"span"),i.Nc(1),i.Yb()),2&e){var n=i.kc().$implicit;i.Db(1),i.Oc(n.content)}}function LL(e,t){if(1&e&&(i.Zb(0,"mark"),i.Nc(1),i.Yb()),2&e){var n=i.kc().$implicit;i.Db(1),i.Oc(n.content)}}function PL(e,t){if(1&e&&(i.Xb(0),i.Lc(1,ML,2,1,"span",7),i.Lc(2,LL,2,1,"mark",7),i.Wb()),2&e){var n=t.$implicit;i.Db(1),i.sc("ngIf",!n.type),i.Db(1),i.sc("ngIf","mark"===n.type)}}var FL=function(){function e(){this.placeholder="",this.blur=new i.n,this.submit=new i.n,this.highlightData={sections:[]},this.innerValue="",this.onTouchedCallback=function(){},this.onChangeCallback=function(){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this.innerValue},set:function(e){e!==this.innerValue&&(this.innerValue=e,this.onChangeCallback(e))},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){e!==this.innerValue&&(this.innerValue=e)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.ngOnInit=function(){var e=this;"firefox"===this.detectBrowser()&&this.fixFirefox();var t=setTimeout((function(){e.handleInput(),clearTimeout(t)}),1)},e.prototype.handleInput=function(){var e=this.fancyInputEl.nativeElement.value,t=this.getRanges(e,/{{\s*[\w\.]+\s*}}/g),n=this.removeStaggeredRanges(t),i=this.getBoundaries(n);this.highlightData.sections=this.generateHighlightSections(e,i),this.updateHighlighterScroll()},e.prototype.handleScroll=function(){o.a.log("scrolling input")},e.prototype.handleKeydown=function(){this.updateHighlighterScroll()},e.prototype.handleBlur=function(){this.updateHighlighterScroll(),this.onTouchedCallback(),this.blur.next(this.innerValue)},e.prototype.handleSubmit=function(){this.submit.next(this.innerValue)},e.prototype.blockContainerScroll=function(){},e.prototype.detectBrowser=function(){var e=window.navigator.userAgent.toLowerCase();return-1!==e.indexOf("firefox")?"firefox":e.match(/msie|trident\/7|edge/)?"ie":e.match(/ipad|iphone|ipod/)&&-1===e.indexOf("windows phone")?"ios":"other"},e.prototype.fixFirefox=function(){},e.prototype.getRanges=function(e,t){for(var n,i=[];null!==(n=t.exec(e))&&(i.push([n.index,n.index+n[0].length]),t.global););return i},e.prototype.removeStaggeredRanges=function(e){var t=[];return e.forEach((function(e){t.some((function(t){return(e[0]>t[0]&&e[0]t[0]&&e[1]1),i.Db(7),i.sc("ngForOf",t.queryOperations)("ngForTrackBy",t.queryOperationTrackBy)}},directives:[xu.b,xu.e,YO.c,Vr.s,Vr.t,FL,Ot.o,Ot.r,hL.a,Hd.a,YO.f,Za,Vr.q],pipes:[Nn.d],encapsulation:2}),e}();function nP(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",10),i.hc("click",(function(){i.Dc(n);var e=i.kc().$implicit;return i.kc().closeWindow(e)})),i.Nc(1,"\xd7"),i.Yb()}}var iP=function(e,t,n){return{windowId:e,wTitle:t,index:n}},rP=function(e){return{"window-switcher__input--editing":e}};function oP(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",6),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc().onClickWindow(e)}))("dblclick",(function(){i.Dc(n);var e=t.$implicit,r=i.Ac(3);return i.kc().editWindowNameInput(e,r)})),i.Nc(1,"\n \n "),i.Zb(2,"div",7,8),i.hc("blur",(function(){i.Dc(n);var e=t.$implicit,r=i.Ac(3);return i.kc().saveWindowName(e,r.innerText)}))("keydown.enter",(function(){i.Dc(n);var e=t.$implicit,r=i.Ac(3);return i.kc().saveWindowName(e,r.innerText)})),i.Nc(4),i.Yb(),i.Nc(5,"\n "),i.Lc(6,nP,2,0,"div",9),i.Nc(7,"\n "),i.Yb()}if(2&e){var r=t.$implicit,o=t.index,a=i.Ac(3),s=i.kc();i.sc("nzSelected",r===s.activeWindowId)("contextMenu",s.windowTabMenu)("contextMenuSubject",i.xc(7,iP,r,a,o)),i.Db(2),i.sc("ngClass",i.vc(11,rP,r===s.windowNameEditing)),i.Eb("contenteditable",r===s.windowNameEditing),i.Db(2),i.Oc(s.windows[r].layout.title),i.Db(2),i.sc("ngIf",s.windowIds.length>1)}}function aP(e,t){if(1&e){var n=i.ac();i.Zb(0,"li",11),i.hc("click",(function(e){return i.Dc(n),i.kc().newWindowChange.next(e)})),i.Nc(1),i.lc(2,"translate"),i.Yb()}2&e&&(i.sc("nzSelected",!1),i.Db(1),i.Pc("\n ",i.mc(2,2,"ADD_NEW_WINDOW_TEXT"),"\n "))}function sP(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span",12),i.Nc(2,"\n "),i.Ub(3,"app-icon",13),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"span",14),i.Nc(7),i.lc(8,"translate"),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(7),i.Pc("\n ",i.mc(8,1,"EDIT_WINDOW_TEXT"),"\n "))}function cP(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span",12),i.Nc(2,"\n "),i.Ub(3,"app-icon",15),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"span",14),i.Nc(7),i.lc(8,"translate"),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(7),i.Pc("\n ",i.mc(8,1,"DUPLICATE_WINDOW_TEXT"),"\n "))}function uP(e,t){}function lP(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span",12),i.Nc(2,"\n "),i.Ub(3,"app-icon",16),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"span",14),i.Nc(7),i.lc(8,"translate"),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(7),i.Pc("\n ",i.mc(8,1,"CLOSE_WINDOW_TEXT"),"\n "))}function pP(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span",12),i.Nc(2,"\n "),i.Ub(3,"app-icon",17),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"span",14),i.Nc(7),i.lc(8,"translate"),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(7),i.Pc("\n ",i.mc(8,1,"CLOSE_WINDOWS_TO_THE_RIGHT_TEXT"),"\n "))}function hP(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span",12),i.Nc(2,"\n "),i.Ub(3,"app-icon",17),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"span",14),i.Nc(7),i.lc(8,"translate"),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(7),i.Pc("\n ",i.mc(8,1,"CLOSE_OTHER_WINDOWS_TEXT"),"\n "))}function dP(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"span",12),i.Nc(2,"\n "),i.Ub(3,"app-icon",18),i.Nc(4,"\n "),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"span",14),i.Nc(7),i.lc(8,"translate"),i.Yb(),i.Nc(9,"\n ")),2&e&&(i.Db(7),i.Pc("\n ",i.mc(8,1,"REOPEN_CLOSED_WINDOW_TEXT"),"\n "))}function fP(e,t){if(1&e){var n=i.ac();i.Lc(0,dP,10,3,"ng-template",3),i.hc("execute",(function(){return i.Dc(n),i.kc().reopenClosedTab()}))}}var gP=function(){function e(e){this.altairConfig=e,this.windows={},this.windowIds=[],this.closedWindows=[],this.activeWindowId="",this.isElectron=!1,this.activeWindowChange=new i.n,this.newWindowChange=new i.n,this.removeWindowChange=new i.n,this.duplicateWindowChange=new i.n,this.windowNameChange=new i.n,this.repositionWindowChange=new i.n,this.reopenClosedWindowChange=new i.n,this.windowTabMenuData=[{name:"Edit"}],this.windowNameEditing="",this.maxWindowCount=this.altairConfig.max_windows,this.sortableOptions={}}return e.prototype.ngOnInit=function(){var e=this;this.sortableOptions={onUpdate:function(t){e.moveWindow(t.oldIndex,t.newIndex)}}},e.prototype.onClickWindow=function(e){this.activeWindowChange.next(e)},e.prototype.editWindowNameInput=function(e,t){this.windowNameEditing=e,t.setAttribute("contenteditable","contenteditable"),t.focus()},e.prototype.saveWindowName=function(e,t){this.windowNameChange.next({windowId:e,windowName:t}),this.windowNameEditing=""},e.prototype.moveWindow=function(e,t){this.repositionWindowChange.next({currentPosition:e,newPosition:t})},e.prototype.closeWindow=function(e){return this.removeWindowChange.next(e)},e.prototype.closeWindowsToTheRight=function(e){var t=this;if(!(e+1>=this.windowIds.length))return this.windowIds.filter((function(t,n){return n>e})).map((function(e){return t.closeWindow(e)}))},e.prototype.closeOtherWindows=function(e){var t=this;return this.windowIds.filter((function(t){return t!==e})).map((function(e){return t.closeWindow(e)}))},e.prototype.duplicateWindow=function(e){this.duplicateWindowChange.next(e)},e.prototype.reopenClosedTab=function(){this.reopenClosedWindowChange.emit()},e.prototype.log=function(e){o.a.log(e)},e.\u0275fac=function(t){return new(t||e)(i.Tb(s.a))},e.\u0275cmp=i.Nb({type:e,selectors:[["app-window-switcher"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Mo,!0),2&e&&i.zc(n=i.ic())&&(t.windowTabMenu=n.first)},inputs:{windows:"windows",windowIds:"windowIds",closedWindows:"closedWindows",activeWindowId:"activeWindowId",isElectron:"isElectron"},outputs:{activeWindowChange:"activeWindowChange",newWindowChange:"newWindowChange",removeWindowChange:"removeWindowChange",duplicateWindowChange:"duplicateWindowChange",windowNameChange:"windowNameChange",repositionWindowChange:"repositionWindowChange",reopenClosedWindowChange:"reopenClosedWindowChange"},decls:24,vars:4,consts:[["nz-menu","","nzMode","horizontal","sortablejs","",1,"app-header__menu","header-nav","window-switcher__container",3,"sortablejsOptions"],["nz-menu-item","","class","nav-link nav-text window-switcher",3,"nzSelected","contextMenu","contextMenuSubject","click","dblclick",4,"ngFor","ngForOf"],["nz-menu-item","","class","nav-link nav-text window-switcher window-switcher--new-window",3,"nzSelected","click",4,"ngIf"],["contextMenuItem","",3,"execute"],["contextMenuItem","","divider","true"],[4,"ngIf"],["nz-menu-item","",1,"nav-link","nav-text","window-switcher",3,"nzSelected","contextMenu","contextMenuSubject","click","dblclick"],[1,"window-switcher__input",3,"ngClass","blur","keydown.enter"],["wTitle",""],["track-id","close_window_tab","class","window-switcher__close",3,"click",4,"ngIf"],["track-id","close_window_tab",1,"window-switcher__close",3,"click"],["nz-menu-item","",1,"nav-link","nav-text","window-switcher","window-switcher--new-window",3,"nzSelected","click"],[1,"menu-icon"],["name","edit"],[1,"menu-text"],["name","copy"],["name","x-square"],["name","circle"],["name","plus-square"]],template:function(e,t){1&e&&(i.Zb(0,"ul",0),i.Nc(1,"\n "),i.Lc(2,oP,8,13,"li",1),i.Nc(3,"\n "),i.Lc(4,aP,3,4,"li",2),i.Nc(5,"\n"),i.Yb(),i.Nc(6,"\n"),i.Zb(7,"context-menu"),i.Nc(8,"\n "),i.Lc(9,sP,10,3,"ng-template",3),i.hc("execute",(function(e){return t.editWindowNameInput(e.item.windowId,e.item.wTitle)})),i.Nc(10,"\n "),i.Lc(11,cP,10,3,"ng-template",3),i.hc("execute",(function(e){return t.duplicateWindow(e.item.windowId)})),i.Nc(12,"\n "),i.Lc(13,uP,0,0,"ng-template",4),i.Nc(14,"\n "),i.Lc(15,lP,10,3,"ng-template",3),i.hc("execute",(function(e){return t.closeWindow(e.item.windowId)})),i.Nc(16,"\n "),i.Lc(17,pP,10,3,"ng-template",3),i.hc("execute",(function(e){return t.closeWindowsToTheRight(e.item.index)})),i.Nc(18,"\n "),i.Lc(19,hP,10,3,"ng-template",3),i.hc("execute",(function(e){return t.closeOtherWindows(e.item.windowId)})),i.Nc(20,"\n "),i.Lc(21,fP,1,0,void 0,5),i.Nc(22,"\n"),i.Yb(),i.Nc(23,"\n")),2&e&&(i.sc("sortablejsOptions",t.sortableOptions),i.Db(2),i.sc("ngForOf",t.windowIds),i.Db(2),i.sc("ngIf",t.windowIds.length-1})),h={list:p.length?p:l,from:QM.Pos(r,i),to:QM.Pos(r,n.end)};return QM.on(h,"close",(function(){EP(c)})),QM.on(h,"update",(function(){EP(c)})),QM.on(h,"select",(function(e,t){EP(c);var n=e.description;n&&t.parentElement&&(c=function(e,t,n){var i=function(e,t){for(var n=[],i=2;it.key?1:-1})).map((function(t){return t.$ref&&(t.ref=NP(t,e),t.ref&&t.ref.enum&&(t.refType="enum."+t.ref.type)),t})),this.formData=JSON.parse(JSON.stringify(this.data))},e.prototype.onInput=function(e,t){this.dataChange.next(this.formData)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-schema-form"]],inputs:{schema:"schema",data:"data"},outputs:{dataChange:"dataChange"},features:[i.Bb],decls:8,vars:1,consts:[[1,"ui-form-wrapper"],["nz-form",""],[3,"item","data","dataChange",4,"ngFor","ngForOf"],[3,"item","data","dataChange"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Nc(1,"\n "),i.Zb(2,"form",1),i.Nc(3,"\n "),i.Lc(4,$P,1,2,"app-schema-form-item",2),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n"),i.Yb(),i.Nc(7,"\n")),2&e&&(i.Db(4),i.sc("ngForOf",t.schemaProperties))},directives:[Ot.C,Ot.p,Ot.q,NO,Vr.s,qP],encapsulation:2,changeDetection:0}),e}(),XP=["editor"];function KP(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",4),i.Nc(2,"\n "),i.Zb(3,"div",5),i.Nc(4),i.lc(5,"translate"),i.Yb(),i.Nc(6),i.lc(7,"translate"),i.Yb(),i.Nc(8,"\n ")),2&e&&(i.Db(4),i.Oc(i.mc(5,2,"SETTINGS_TEXT")),i.Db(2),i.Pc("\n ",i.mc(7,4,"SETTINGS_SUB_TEXT"),"\n "))}function JP(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",9),i.Nc(1,"\n "),i.Zb(2,"app-schema-form",14),i.hc("dataChange",(function(e){return i.Dc(n),i.kc(2).onFormDataChange(e)})),i.Yb(),i.Nc(3,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Db(2),i.sc("schema",r.settingsSchema)("data",r.localSettings)}}function eF(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",9),i.Nc(1,"\n "),i.Zb(2,"ngx-codemirror",15,16),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc(2).onSettingsChange(e)})),i.Yb(),i.Nc(4,"\n "),i.Zb(5,"small"),i.Nc(6),i.lc(7,"translate"),i.Yb(),i.Nc(8,"\n "),i.Zb(9,"small"),i.Zb(10,"a",17),i.Nc(11,"Click here for available settings options"),i.Yb(),i.Yb(),i.Nc(12,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Db(2),i.sc("options",r.jsonEditorConfig)("ngModel",r.jsonSettings),i.Db(4),i.Oc(i.mc(7,3,"SETTINGS_SHOW_EDITOR_HINT"))}}function tF(e,t){if(1&e&&(i.Zb(0,"span",22),i.Nc(1),i.Yb()),2&e){var n=t.$implicit;i.Db(1),i.Oc(n)}}function nF(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"nz-list-item"),i.Nc(2,"\n "),i.Zb(3,"span",20),i.Nc(4),i.Yb(),i.Nc(5,"\n "),i.Lc(6,tF,2,1,"span",21),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n ")),2&e){var n=t.$implicit,r=i.kc(3);i.Db(4),i.Pc("\n ",n.description,"\n "),i.Db(2),i.sc("ngForOf",n.keys)("ngForTrackBy",r.trackByIndex)}}function iF(e,t){if(1&e&&(i.Zb(0,"nz-collapse-panel",10),i.Nc(1,"\n "),i.Zb(2,"nz-list",18),i.Nc(3,"\n "),i.Lc(4,nF,9,3,"ng-template",null,19,i.Mc),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Yb()),2&e){var n=t.$implicit,r=i.Ac(5);i.sc("nzHeader",n.title),i.Db(2),i.sc("nzDataSource",n.shortcuts)("nzRenderItem",r)}}function rF(e,t){if(1&e&&(i.Zb(0,"option",25),i.Nc(1),i.lc(2,"titlecase"),i.Yb()),2&e){var n=t.$implicit,r=i.kc(3);i.tc("value",n),i.sc("selected",n===(null==r.settings?null:r.settings.theme)),i.Db(1),i.Pc("\n ",i.mc(2,3,n),"\n ")}}function oF(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",9),i.Nc(1,"\n "),i.Zb(2,"label"),i.Nc(3),i.lc(4,"translate"),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"select",23),i.hc("change",(function(e){return i.Dc(n),i.kc(2).onSelectTheme(e.target.value)})),i.lc(7,"translate"),i.Nc(8,"\n "),i.Lc(9,rF,3,5,"option",24),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Db(3),i.Oc(i.mc(4,4,"SETTINGS_THEME_TEXT")),i.Db(3),i.Eb("aria-label",i.mc(7,6,"SETTINGS_THEME_TEXT")),i.Db(3),i.sc("ngForOf",r.themes)("ngForTrackBy",r.trackByIndex)}}function aF(e,t){if(1&e&&(i.Zb(0,"option",25),i.Nc(1),i.lc(2,"titlecase"),i.Yb()),2&e){var n=t.$implicit,r=i.kc(3);i.tc("value",n[0]),i.sc("selected",n[0]===(null==r.settings?null:r.settings.language)),i.Db(1),i.Pc("\n ",i.mc(2,3,n[1]),"\n ")}}function sF(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",9),i.Nc(1,"\n "),i.Zb(2,"label"),i.Nc(3),i.lc(4,"translate"),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"select",26),i.hc("change",(function(e){return i.Dc(n),i.kc(2).onSelectLanguage(e.target.value)})),i.lc(7,"translate"),i.Nc(8,"\n "),i.Lc(9,aF,3,5,"option",24),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Db(3),i.Oc(i.mc(4,4,"SETTINGS_LANGUAGE_TEXT")),i.Db(3),i.Eb("aria-label",i.mc(7,6,"SETTINGS_LANGUAGE_TEXT")),i.Db(3),i.sc("ngForOf",r.languages)("ngForTrackBy",r.trackByIndex)}}function cF(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",9),i.Nc(1,"\n "),i.Zb(2,"label"),i.Nc(3),i.lc(4,"translate"),i.Zb(5,"small"),i.Nc(6,"(Recommended: 3)"),i.Yb(),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"input",27),i.hc("change",(function(e){return i.Dc(n),i.kc(2).onChangeAddQueryDepthLimit(e.target.value)})),i.lc(9,"translate"),i.Yb(),i.Nc(10,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Db(3),i.Pc("",i.mc(4,3,"SETTINGS_ADD_QUERY_DEPTH_LIMIT_TEXT")," "),i.Db(5),i.sc("value",null==r.settings?null:r.settings.addQueryDepthLimit),i.Eb("aria-label",i.mc(9,5,"SETTINGS_ADD_QUERY_DEPTH_LIMIT_TEXT"))}}function uF(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",9),i.Nc(1,"\n "),i.Zb(2,"label"),i.Nc(3),i.lc(4,"translate"),i.Yb(),i.Nc(5,"\n "),i.Zb(6,"input",28),i.hc("change",(function(e){return i.Dc(n),i.kc(2).onChangeTabSize(e.target.value)})),i.lc(7,"translate"),i.Yb(),i.Nc(8,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Db(3),i.Oc(i.mc(4,3,"SETTINGS_TAB_SIZE_TEXT")),i.Db(3),i.sc("value",null==r.settings?null:r.settings.tabSize),i.Eb("aria-label",i.mc(7,5,"SETTINGS_TAB_SIZE_TEXT"))}}function lF(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",6),i.Nc(2,"\n "),i.Zb(3,"small"),i.Zb(4,"a",7),i.hc("click",(function(e){i.Dc(n);var t=i.kc();return e.preventDefault(),e.stopPropagation(),t.onToggleView()})),i.Nc(5),i.lc(6,"translate"),i.Yb(),i.Yb(),i.Nc(7,"\n "),i.Lc(8,JP,4,2,"div",8),i.Nc(9,"\n\n "),i.Lc(10,eF,13,5,"div",8),i.Nc(11,"\n\n "),i.Zb(12,"div",9),i.Nc(13,"\n "),i.Zb(14,"nz-collapse"),i.Nc(15,"\n "),i.Zb(16,"nz-collapse-panel",10),i.lc(17,"translate"),i.Nc(18,"\n "),i.Zb(19,"div"),i.Nc(20,"\n "),i.Zb(21,"nz-collapse",11),i.Nc(22,"\n "),i.Lc(23,iF,8,3,"nz-collapse-panel",12),i.Nc(24,"\n "),i.Yb(),i.Nc(25,"\n "),i.Yb(),i.Nc(26,"\n "),i.Yb(),i.Nc(27,"\n "),i.Yb(),i.Nc(28,"\n "),i.Zb(29,"div"),i.Nc(30,"\n "),i.Zb(31,"small"),i.Zb(32,"a",13),i.hc("click",(function(e){return i.Dc(n),i.kc().onResetApplicationData(e)})),i.Nc(33),i.lc(34,"translate"),i.Yb(),i.Yb(),i.Nc(35,"\n "),i.Yb(),i.Nc(36,"\n "),i.Yb(),i.Nc(37,"\n\n "),i.Lc(38,oF,12,8,"div",8),i.Nc(39,"\n\n "),i.Lc(40,sF,12,8,"div",8),i.Nc(41,"\n\n "),i.Lc(42,cF,11,7,"div",8),i.Nc(43,"\n\n "),i.Lc(44,uF,9,7,"div",8),i.Nc(45,"\n "),i.Yb(),i.Nc(46,"\n ")}if(2&e){var r=i.kc();i.Db(5),i.Oc(i.mc(6,12,"SETTINGS_TOGGLE_ADVANCED_MODE")),i.Db(3),i.sc("ngIf",r.showForm),i.Db(2),i.sc("ngIf",!r.showForm),i.Db(6),i.sc("nzHeader",i.mc(17,14,"SETTINGS_KEYBOARD_SHORTCUTS")),i.Db(5),i.sc("nzBordered",!1),i.Db(2),i.sc("ngForOf",r.shortcutCategories)("ngForTrackBy",r.trackByIndex),i.Db(10),i.Oc(i.mc(34,16,"SETTINGS_RESET_APPLICATION_DATA")),i.Db(5),i.sc("ngIf",!1),i.Db(2),i.sc("ngIf",!1),i.Db(2),i.sc("ngIf",!1),i.Db(2),i.sc("ngIf",!1)}}function pF(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",29),i.Nc(2,"\n "),i.Zb(3,"div",30),i.Nc(4,"\n "),i.Zb(5,"label"),i.Nc(6),i.lc(7,"translate"),i.Yb(),i.Nc(8,"\n "),i.Zb(9,"div"),i.Nc(10,"\n "),i.Zb(11,"small"),i.Nc(12),i.lc(13,"translate"),i.Zb(14,"a",31),i.Nc(15),i.lc(16,"translate"),i.Yb(),i.Yb(),i.Nc(17,"\n "),i.Yb(),i.Nc(18,"\n "),i.Yb(),i.Nc(19,"\n "),i.Zb(20,"button",32),i.hc("click",(function(){return i.Dc(n),i.kc().saveSettings()})),i.Nc(21),i.lc(22,"translate"),i.Yb(),i.Nc(23,"\n "),i.Yb(),i.Nc(24,"\n ")}if(2&e){var r=i.kc();i.Db(6),i.Qc("",i.mc(7,5,"SETTINGS_VERSION_TEXT")," ",r.appVersion,""),i.Db(6),i.Pc("",i.mc(13,7,"SETTINGS_HELP_WITH_TRANSLATIONS_TEXT")," "),i.Db(3),i.Oc(i.mc(16,9,"CLICK_HERE_TEXT")),i.Db(6),i.Oc(i.mc(22,11,"SAVE_BUTTON"))}}(GP=QM).registerHelper("lint","json",(function(e){var t=[];try{!xP(e)&&kP.errors&&(t=function(){for(var e=0,t=0,n=arguments.length;ti?1:ni?-1:ni?-1:ni?1:n=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);o>3&&a&&Object.defineProperty(t,n,a)}([function(e,t,n){var i=mF(n.value,{max:1});n.value=function(){return i.apply(this,arguments)}},vF("design:type",Function),vF("design:paramtypes",[Array,String]),vF("design:returntype",void 0)],e.prototype,"sortedCollectionQueries",null),e}();function _F(e,t){1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"translate"),i.Wb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"COLLECTIONS_SORT_BY_A_Z")))}function kF(e,t){1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"translate"),i.Wb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"COLLECTIONS_SORT_BY_Z_A")))}function DF(e,t){1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"translate"),i.Wb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"COLLECTIONS_SORT_BY_NEWEST")))}function xF(e,t){1&e&&(i.Xb(0),i.Nc(1),i.lc(2,"translate"),i.Wb()),2&e&&(i.Db(1),i.Oc(i.mc(2,1,"COLLECTIONS_SORT_BY_OLDEST")))}function EF(e,t){if(1&e){var n=i.ac();i.Zb(0,"app-query-collection-item",16),i.hc("selectQueryChange",(function(e){return i.Dc(n),i.kc().selectQueryChange.next(e)}))("deleteQueryChange",(function(e){return i.Dc(n),i.kc().deleteQueryChange.next(e)}))("deleteCollectionChange",(function(e){return i.Dc(n),i.kc().deleteCollectionChange.next(e)}))("editCollectionChange",(function(e){return i.Dc(n),i.kc().editCollectionChange.next(e)}))("exportCollectionChange",(function(e){return i.Dc(n),i.kc().exportCollectionChange.next(e)})),i.Yb()}2&e&&i.sc("collection",t.$implicit)}function NF(e,t){1&e&&(i.Zb(0,"div",17),i.Nc(1,"\n "),i.Zb(2,"div",18),i.Nc(3,"\n "),i.Ub(4,"app-icon",19),i.Nc(5,"\n "),i.Yb(),i.Nc(6,"\n "),i.Zb(7,"div",20),i.Nc(8),i.lc(9,"translate"),i.Yb(),i.Nc(10,"\n "),i.Yb()),2&e&&(i.Db(8),i.Pc("\n ",i.mc(9,1,"COLLECTIONS_EMPTY_TEXT"),"\n "))}var jF=function(e){return{"query-collections-wrapper--close":e}},IF=function(){function e(){this.showCollections=!0,this.collections=[],this.sortBy="",this.loadCollectionsChange=new i.n,this.selectQueryChange=new i.n,this.deleteQueryChange=new i.n,this.deleteCollectionChange=new i.n,this.editCollectionChange=new i.n,this.exportCollectionChange=new i.n,this.importCollectionChange=new i.n,this.sortCollectionsChange=new i.n}return e.prototype.ngOnInit=function(){this.loadCollectionsChange.next()},e.prototype.trackById=function(e,t){return t.id},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-query-collections"]],inputs:{showCollections:"showCollections",collections:"collections",sortBy:"sortBy"},outputs:{loadCollectionsChange:"loadCollectionsChange",selectQueryChange:"selectQueryChange",deleteQueryChange:"deleteQueryChange",deleteCollectionChange:"deleteCollectionChange",editCollectionChange:"editCollectionChange",exportCollectionChange:"exportCollectionChange",importCollectionChange:"importCollectionChange",sortCollectionsChange:"sortCollectionsChange"},decls:66,vars:31,consts:[[1,"query-collections-wrapper",3,"ngClass"],[1,"query-collections__inner"],[1,"query-collections__title"],[1,"query-collections__actions","clearfix"],["type","button",1,"icon-button",3,"popper","popperPlacement","click"],["name","log-in"],[1,"query-collections__actions--right"],["nz-dropdown","","nzTrigger","click","type","button",1,"icon-button",3,"nzDropdownMenu"],[3,"ngSwitch"],[4,"ngSwitchCase"],["docViewerMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click"],[1,"query-collections__items-wrapper"],[3,"collection","selectQueryChange","deleteQueryChange","deleteCollectionChange","editCollectionChange","exportCollectionChange",4,"ngFor","ngForOf","ngForTrackBy"],["class","query-collections__empty",4,"ngIf"],[3,"collection","selectQueryChange","deleteQueryChange","deleteCollectionChange","editCollectionChange","exportCollectionChange"],[1,"query-collections__empty"],[1,"query-collections__empty-icon"],["name","sidebar","size","40"],[1,"query-collections__empty-description"]],template:function(e,t){if(1&e&&(i.Zb(0,"div",0),i.Nc(1,"\n "),i.Zb(2,"div",1),i.Nc(3,"\n "),i.Zb(4,"div",2),i.Nc(5),i.lc(6,"translate"),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"div",3),i.Nc(9,"\n "),i.Zb(10,"button",4),i.hc("click",(function(){return t.importCollectionChange.next()})),i.lc(11,"translate"),i.Nc(12,"\n "),i.Ub(13,"app-icon",5),i.Nc(14,"\n "),i.Yb(),i.Nc(15,"\n "),i.Zb(16,"div",6),i.Nc(17,"\n "),i.Zb(18,"button",7),i.Nc(19,"\n "),i.Xb(20,8),i.Nc(21,"\n "),i.Lc(22,_F,3,3,"ng-container",9),i.Nc(23,"\n "),i.Lc(24,kF,3,3,"ng-container",9),i.Nc(25,"\n "),i.Lc(26,DF,3,3,"ng-container",9),i.Nc(27,"\n "),i.Lc(28,xF,3,3,"ng-container",9),i.Nc(29,"\n "),i.Wb(),i.Nc(30,"\n "),i.Yb(),i.Nc(31,"\n "),i.Zb(32,"nz-dropdown-menu",null,10),i.Nc(34,"\n "),i.Zb(35,"ul",11),i.Nc(36,"\n "),i.Zb(37,"li",12),i.hc("click",(function(){return t.sortCollectionsChange.next({sortBy:"a-z"})})),i.Nc(38),i.lc(39,"translate"),i.Yb(),i.Nc(40,"\n "),i.Zb(41,"li",12),i.hc("click",(function(){return t.sortCollectionsChange.next({sortBy:"z-a"})})),i.Nc(42),i.lc(43,"translate"),i.Yb(),i.Nc(44,"\n "),i.Zb(45,"li",12),i.hc("click",(function(){return t.sortCollectionsChange.next({sortBy:"newest"})})),i.Nc(46),i.lc(47,"translate"),i.Yb(),i.Nc(48,"\n "),i.Zb(49,"li",12),i.hc("click",(function(){return t.sortCollectionsChange.next({sortBy:"oldest"})})),i.Nc(50),i.lc(51,"translate"),i.Yb(),i.Nc(52,"\n "),i.Yb(),i.Nc(53,"\n "),i.Yb(),i.Nc(54,"\n "),i.Yb(),i.Nc(55,"\n "),i.Yb(),i.Nc(56,"\n "),i.Zb(57,"div",13),i.Nc(58,"\n "),i.Lc(59,EF,1,1,"app-query-collection-item",14),i.Nc(60,"\n "),i.Lc(61,NF,11,3,"div",15),i.Nc(62,"\n "),i.Yb(),i.Nc(63,"\n "),i.Yb(),i.Nc(64,"\n"),i.Yb(),i.Nc(65,"\n")),2&e){var n=i.Ac(33);i.sc("ngClass",i.vc(29,jF,!t.showCollections)),i.Db(5),i.Oc(i.mc(6,17,"COLLECTIONS_TEXT")),i.Db(5),i.sc("popper",i.mc(11,19,"COLLECTIONS_IMPORT_TEXT"))("popperPlacement","bottom"),i.Db(8),i.sc("nzDropdownMenu",n),i.Db(2),i.sc("ngSwitch",t.sortBy),i.Db(2),i.sc("ngSwitchCase","a-z"),i.Db(2),i.sc("ngSwitchCase","z-a"),i.Db(2),i.sc("ngSwitchCase","newest"),i.Db(2),i.sc("ngSwitchCase","oldest"),i.Db(10),i.Pc("\n ",i.mc(39,21,"COLLECTIONS_SORT_BY_A_Z"),"\n "),i.Db(4),i.Pc("\n ",i.mc(43,23,"COLLECTIONS_SORT_BY_Z_A"),"\n "),i.Db(4),i.Pc("\n ",i.mc(47,25,"COLLECTIONS_SORT_BY_NEWEST"),"\n "),i.Db(4),i.Pc("\n ",i.mc(51,27,"COLLECTIONS_SORT_BY_OLDEST"),"\n "),i.Db(9),i.sc("ngForOf",t.collections)("ngForTrackBy",t.trackById),i.Db(2),i.sc("ngIf",!(null!=t.collections&&t.collections.length))}},directives:[Vr.q,Za,hL.a,xu.b,Vr.x,Vr.y,xu.e,YO.c,Hd.a,YO.f,Vr.s,Vr.t,TF],pipes:[Nn.d],styles:[""]}),e}();function AF(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",4),i.Nc(2,"\n "),i.Zb(3,"div",5),i.Nc(4),i.Yb(),i.Nc(5),i.Yb(),i.Nc(6,"\n ")),2&e){var n=i.kc();i.Db(4),i.Oc(n.heading),i.Db(1),i.Pc("\n ",n.subheading,"\n ")}}function MF(e,t){1&e&&(i.Nc(0,"\n "),i.qc(1),i.Nc(2,"\n "))}function LF(e,t){if(1&e){var n=i.ac();i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div",7),i.Nc(3,"\n "),i.Zb(4,"button",8),i.hc("click",(function(e){return i.Dc(n),i.kc(2).toggleDialog.next(e)})),i.Nc(5),i.lc(6,"translate"),i.Yb(),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Wb()}2&e&&(i.Db(5),i.Oc(i.mc(6,1,"SAVE_BUTTON")))}function PF(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,LF,9,3,"ng-container",6),i.Nc(2,"\n ")),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",n.showFooter)}}var FF=["*"],RF=function(){function e(){this.showDialog=!1,this.heading="[DIALOG_HEADING]",this.subheading="[DIALOG_SUBHEADING]",this.showFooter=!0,this.toggleDialog=new i.n}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-dialog"]],inputs:{showDialog:"showDialog",heading:"heading",subheading:"subheading",showFooter:"showFooter"},outputs:{toggleDialog:"toggleDialog"},ngContentSelectors:FF,decls:12,vars:4,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[4,"ngIf"],[1,"app-dialog-footer"],[1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(i.rc(),i.Zb(0,"nz-modal",0),i.hc("nzVisibleChange",(function(e){return t.toggleDialog.next(e)}))("nzOnCancel",(function(){return t.toggleDialog.next()})),i.Nc(1,"\n "),i.Lc(2,AF,7,2,"ng-template",null,1,i.Mc),i.Nc(4,"\n\n "),i.Lc(5,MF,3,0,"ng-template",null,2,i.Mc),i.Nc(7,"\n\n "),i.Lc(8,PF,3,1,"ng-template",null,3,i.Mc),i.Nc(10,"\n"),i.Yb(),i.Nc(11,"\n")),2&e){var n=i.Ac(3),r=i.Ac(6),o=i.Ac(9);i.sc("nzVisible",t.showDialog)("nzTitle",n)("nzContent",r)("nzFooter",o)}},directives:[Fz,Vr.t],pipes:[Nn.d],styles:[""]}),e}();function VF(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",4),i.Nc(2,"\n "),i.Zb(3,"div",5),i.Nc(4),i.lc(5,"translate"),i.Yb(),i.Nc(6),i.lc(7,"translate"),i.Yb(),i.Nc(8,"\n ")),2&e&&(i.Db(4),i.Oc(i.mc(5,2,"EDIT_COLLECTION_TITLE_TEXT")),i.Db(2),i.Pc("\n ",i.mc(7,4,"EDIT_COLLECTION_TITLE_SUBTEXT"),"\n "))}function BF(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",7),i.Nc(1,"\n "),i.Zb(2,"div",8),i.Nc(3),i.lc(4,"translate"),i.Zb(5,"input",9),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc(2).collection.title=e})),i.Yb(),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Db(3),i.Pc("\n ",i.mc(4,2,"COLLECTION_TITLE_LABEL"),"\n "),i.Db(2),i.sc("ngModel",r.collection.title)}}function YF(e,t){if(1&e&&(i.Nc(0,"\n "),i.Lc(1,BF,8,4,"div",6),i.Nc(2,"\n ")),2&e){var n=i.kc();i.Db(1),i.sc("ngIf",n.collection)}}function UF(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",10),i.Nc(2,"\n "),i.Zb(3,"button",11),i.hc("click",(function(){return i.Dc(n),i.kc().updateCollection()})),i.Nc(4),i.lc(5,"translate"),i.Yb(),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n ")}2&e&&(i.Db(4),i.Oc(i.mc(5,1,"SAVE_BUTTON")))}var HF=function(){function e(){this.showEditCollectionDialog=!0,this.toggleDialogChange=new i.n,this.importCurlChange=new i.n,this.updateCollectionChange=new i.n}return e.prototype.ngOnInit=function(){},e.prototype.updateCollection=function(){this.toggleDialogChange.next(!1),this.updateCollectionChange.next({collection:this.collection})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-edit-collection-dialog"]],inputs:{showEditCollectionDialog:"showEditCollectionDialog",collection:"collection"},outputs:{toggleDialogChange:"toggleDialogChange",importCurlChange:"importCurlChange",updateCollectionChange:"updateCollectionChange"},decls:12,vars:4,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],["class","app-dialog-body",4,"ngIf"],[1,"app-dialog-body"],[1,"form-group"],["type","text",1,"dialog-input",3,"ngModel","ngModelChange"],[1,"app-dialog-footer"],["track-id","",1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(i.Zb(0,"nz-modal",0),i.hc("nzVisibleChange",(function(e){return t.toggleDialogChange.next(e)}))("nzOnCancel",(function(e){return t.toggleDialogChange.next(e)})),i.Nc(1,"\n "),i.Lc(2,VF,9,6,"ng-template",null,1,i.Mc),i.Nc(4,"\n\n "),i.Lc(5,YF,3,1,"ng-template",null,2,i.Mc),i.Nc(7,"\n\n "),i.Lc(8,UF,8,3,"ng-template",null,3,i.Mc),i.Nc(10,"\n"),i.Yb(),i.Nc(11,"\n")),2&e){var n=i.Ac(3),r=i.Ac(6),o=i.Ac(9);i.sc("nzVisible",t.showEditCollectionDialog)("nzTitle",n)("nzContent",r)("nzFooter",o)}},directives:[Fz,Vr.t,Ot.e,Ot.o,Ot.r],pipes:[Nn.d],styles:[""]}),e}(),WF=(n("0t4y"),["editor"]),qF=["subEnvironmentTitle"];function ZF(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",4),i.Nc(2,"\n "),i.Zb(3,"div",5),i.Nc(4),i.lc(5,"translate"),i.Yb(),i.Nc(6),i.lc(7,"translate"),i.Yb(),i.Nc(8,"\n ")),2&e&&(i.Db(4),i.Oc(i.mc(5,2,"ENVIRONMENTS_MANAGER_TEXT")),i.Db(2),i.Pc("\n ",i.mc(7,4,"ENVIRONMENTS_SUB_TEXT"),"\n "))}var $F=function(e){return{"environment-manager__list-item--selected":e}};function GF(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",20),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc(2).selectEnvironment(e.id)}))("dblclick",(function(){return i.Dc(n),i.kc(2).setFocusOnEnvironmentTitle()})),i.Nc(1),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc(2);i.sc("ngClass",i.vc(2,$F,o.selectedEnvironmentId===r.id)),i.Db(1),i.Oc(r.title)}}function QF(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",21),i.Nc(1,"\n "),i.Zb(2,"div",22),i.Nc(3,"\n "),i.Zb(4,"input",23,24),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc(2).editorTitle=e}))("ngModelChange",(function(e){return i.Dc(n),i.kc(2).onTitleChange(e)})),i.lc(6,"translate"),i.Yb(),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Zb(9,"div",25),i.Nc(10,"\n "),i.Zb(11,"button",26),i.hc("click",(function(){return i.Dc(n),i.kc(2).onDeleteSubEnvironment()})),i.Nc(12,"\n "),i.Ub(13,"app-icon",27),i.Nc(14,"\n "),i.Yb(),i.Nc(15,"\n "),i.Yb(),i.Nc(16,"\n "),i.Yb()}if(2&e){var r=i.kc(2);i.Db(4),i.tc("placeholder",i.mc(6,2,"SUB_ENVIRONMENT_TITLE_PLACEHOLDER")),i.sc("ngModel",r.editorTitle)}}function XF(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",6),i.Nc(2,"\n "),i.Zb(3,"div",7),i.Nc(4,"\n "),i.Zb(5,"div",8),i.Nc(6,"\n "),i.Zb(7,"div",9),i.Nc(8,"\n "),i.Zb(9,"div",10),i.Nc(10,"\n "),i.Zb(11,"div",11),i.hc("click",(function(){return i.Dc(n),i.kc().selectEnvironment("base")})),i.Nc(12),i.lc(13,"translate"),i.Yb(),i.Nc(14,"\n "),i.Yb(),i.Nc(15,"\n "),i.Zb(16,"div",10),i.Nc(17,"\n "),i.Zb(18,"div",12),i.Nc(19),i.lc(20,"translate"),i.Yb(),i.Nc(21,"\n "),i.Lc(22,GF,2,4,"div",13),i.Nc(23,"\n "),i.Yb(),i.Nc(24,"\n "),i.Zb(25,"div",14),i.Nc(26,"\n "),i.Zb(27,"button",15),i.hc("click",(function(){return i.Dc(n),i.kc().addSubEnvironmentChange.next()})),i.Nc(28),i.lc(29,"translate"),i.Yb(),i.Nc(30,"\n "),i.Yb(),i.Nc(31,"\n "),i.Yb(),i.Nc(32,"\n "),i.Zb(33,"div",16),i.Nc(34,"\n "),i.Lc(35,QF,17,4,"div",17),i.Nc(36,"\n "),i.Zb(37,"ngx-codemirror",18,19),i.hc("ngModelChange",(function(e){return i.Dc(n),i.kc().editorContent=e}))("ngModelChange",(function(e){return i.Dc(n),i.kc().onEditorChange(e)})),i.Yb(),i.Nc(39,"\n "),i.Yb(),i.Nc(40,"\n "),i.Yb(),i.Nc(41,"\n "),i.Yb(),i.Nc(42,"\n "),i.Yb(),i.Nc(43,"\n ")}if(2&e){var r=i.kc();i.Db(11),i.sc("ngClass",i.vc(15,$F,"base"===r.selectedEnvironmentId)),i.Db(1),i.Oc(i.mc(13,9,"BASE_ENVIRONMENT_TEXT")),i.Db(7),i.Oc(i.mc(20,11,"SUB_ENVIRONMENTS_HEADER")),i.Db(3),i.sc("ngForOf",null==r.environments?null:r.environments.subEnvironments)("ngForTrackBy",r.trackById),i.Db(6),i.Oc(i.mc(29,13,"ADD_SUB_ENVIRONMENT_BUTTON")),i.Db(7),i.sc("ngIf","base"!==r.selectedEnvironmentId),i.Db(2),i.sc("options",r.jsonEditorConfig)("ngModel",r.editorContent)}}function KF(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",28),i.Nc(2,"\n "),i.Zb(3,"div",29),i.Nc(4),i.lc(5,"translate"),i.Yb(),i.Nc(6,"\n "),i.Zb(7,"button",30),i.hc("click",(function(){return i.Dc(n),i.kc().toggleDialogChange.next(!1)})),i.Nc(8),i.lc(9,"translate"),i.Yb(),i.Nc(10,"\n "),i.Yb(),i.Nc(11,"\n ")}2&e&&(i.Db(4),i.Oc(i.mc(5,2,"ENVIRONMENT_VARIABLE_TIP")),i.Db(4),i.Oc(i.mc(9,4,"SAVE_BUTTON")))}window.jsonlint=window.jsonlint||{parser:{parse:function(e){try{return JSON.parse(e)}catch(t){this.parseError&&this.parseError("Invalid JSON",{loc:{first_line:1,first_column:1,last_line:1,last_column:1}})}}}};var JF=function(){function e(){this.showEnvironmentManager=!1,this.toggleDialogChange=new i.n,this.baseEnvironmentJsonChange=new i.n,this.subEnvironmentJsonChange=new i.n,this.subEnvironmentTitleChange=new i.n,this.addSubEnvironmentChange=new i.n,this.deleteSubEnvironmentChange=new i.n,this.jsonEditorConfig={mode:"application/json",json:!0,lint:!0,lineWrapping:!0,lineNumbers:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,autoCloseBrackets:!0,keyMap:"sublime",theme:"default environments-editor",gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{}},this.selectedEnvironmentId="base",this.editorContent="{}",this.editorTitle=""}return e.prototype.ngOnInit=function(){this.environments&&this.selectEnvironment(this.environments.activeSubEnvironment||"base")},e.prototype.ngDoCheck=function(){uL(this.editor&&this.editor.codeMirror)},e.prototype.ngOnChanges=function(e){var t=this;if(e.showEnvironmentManager&&e.showEnvironmentManager.currentValue)var n=setTimeout((function(){uL(t.editor&&t.editor.codeMirror,!0),clearTimeout(n)}),300)},e.prototype.onEditorChange=function(e){try{JSON.parse(e),"base"===this.selectedEnvironmentId?this.baseEnvironmentJsonChange.next({value:e}):this.subEnvironmentJsonChange.next({id:this.selectedEnvironmentId,value:e})}catch(t){}},e.prototype.onTitleChange=function(e){this.subEnvironmentTitleChange.next({id:this.selectedEnvironmentId,value:e})},e.prototype.selectEnvironment=function(e){var t=this;this.selectedEnvironmentId=e,this.selectedEnvironment="base"===this.selectedEnvironmentId?this.environments.base:this.environments.subEnvironments.find((function(e){return e.id===t.selectedEnvironmentId})),this.selectedEnvironment&&(this.editorContent=this.selectedEnvironment.variablesJson,this.editorTitle=this.selectedEnvironment.title)},e.prototype.setFocusOnEnvironmentTitle=function(){this.subEnvironmentTitleEl.nativeElement.focus()},e.prototype.onDeleteSubEnvironment=function(){confirm("Are you sure you want to delete this environment?")&&(this.deleteSubEnvironmentChange.next({id:this.selectedEnvironmentId}),this.selectEnvironment("base"))},e.prototype.trackById=function(e,t){return t.id},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-environment-manager"]],viewQuery:function(e,t){var n;1&e&&(i.Sc(WF,!0),i.Sc(qF,!0)),2&e&&(i.zc(n=i.ic())&&(t.editor=n.first),i.zc(n=i.ic())&&(t.subEnvironmentTitleEl=n.first))},inputs:{environments:"environments",showEnvironmentManager:"showEnvironmentManager"},outputs:{toggleDialogChange:"toggleDialogChange",baseEnvironmentJsonChange:"baseEnvironmentJsonChange",subEnvironmentJsonChange:"subEnvironmentJsonChange",subEnvironmentTitleChange:"subEnvironmentTitleChange",addSubEnvironmentChange:"addSubEnvironmentChange",deleteSubEnvironmentChange:"deleteSubEnvironmentChange"},features:[i.Bb],decls:12,vars:5,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzWidth","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],[1,"app-dialog-section"],[1,"environment-manager-wrapper"],[1,"environment-manager__list-wrapper"],[1,"environment-manager__list"],[1,"environment-manager__list-item",3,"ngClass","click"],[1,"environment-manager__list-title"],["class","environment-manager__list-item",3,"ngClass","click","dblclick",4,"ngFor","ngForOf","ngForTrackBy"],[1,"environment-manager__list-actions"],[1,"app-button","full-width",3,"click"],[1,"environment-manager__editor-wrapper"],["class","environment-manager__editor-meta",4,"ngIf"],[1,"environments-editor-textarea",3,"options","ngModel","ngModelChange"],["editor",""],[1,"environment-manager__list-item",3,"ngClass","click","dblclick"],[1,"environment-manager__editor-meta"],[1,"environment-manager__editor-meta-input-wrapper"],["type","text",1,"environment-manager__editor-meta-input",3,"placeholder","ngModel","ngModelChange"],["subEnvironmentTitle",""],[1,"environment-manager__editor-meta-actions"],[1,"app-button","icon-button",3,"click"],["name","trash-2"],[1,"app-dialog-footer"],[1,"environment-manager__tips","left"],["track-id","save_environments",1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(i.Zb(0,"nz-modal",0),i.hc("nzVisibleChange",(function(e){return t.toggleDialogChange.next(e)}))("nzOnCancel",(function(e){return t.toggleDialogChange.next(e)})),i.Nc(1,"\n "),i.Lc(2,ZF,9,6,"ng-template",null,1,i.Mc),i.Nc(4,"\n\n "),i.Lc(5,XF,44,17,"ng-template",null,2,i.Mc),i.Nc(7,"\n\n "),i.Lc(8,KF,12,6,"ng-template",null,3,i.Mc),i.Nc(10,"\n"),i.Yb(),i.Nc(11,"\n")),2&e){var n=i.Ac(3),r=i.Ac(6),o=i.Ac(9);i.sc("nzVisible",t.showEnvironmentManager)("nzTitle",n)("nzContent",r)("nzFooter",o)("nzWidth",870)}},directives:[Fz,Vr.q,Vr.s,Vr.t,eL,Ot.o,Ot.r,Ot.e,hL.a],pipes:[Nn.d],styles:[""]}),e}(),eR=["pluginElRef"],tR=function(e){return{"plugin__hide-content":e}},nR=function(){function e(){this.isAppended=!1}return e.prototype.ngOnChanges=function(){!this.isAppended&&this.pluginData&&this.pluginData.isActive&&this.appendPluginElement(),this.renderElement()},e.prototype.appendPluginElement=function(){if(this.pluginData){var e=this.pluginData.sidebar_opts&&this.pluginData.sidebar_opts.element_name||this.pluginData.name;if(this.pluginElement=document.createElement(e),!this.pluginElement)return void o.a.error('Plugin "'+e+'" does not have a custom element defined!');this.pluginElRef.nativeElement.appendChild(this.pluginElement),this.isAppended=!0}},e.prototype.renderElement=function(){this.pluginElement&&this.pluginData&&(this.pluginElement.props=this.pluginData.props)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-plugin-element"]],viewQuery:function(e,t){var n;1&e&&i.Jc(eR,!0),2&e&&i.zc(n=i.ic())&&(t.pluginElRef=n.first)},inputs:{pluginData:"pluginData"},features:[i.Bb],decls:3,vars:3,consts:[[1,"plugin__holder",3,"ngClass"],["pluginElRef",""]],template:function(e,t){1&e&&(i.Ub(0,"div",0,1),i.Nc(2,"\n")),2&e&&i.sc("ngClass",i.vc(1,tR,!t.pluginData||!t.pluginData.isActive))},directives:[Vr.q],encapsulation:2}),e}(),iR=(n("PJhV"),["editor"]),rR=function(){function e(){this.preRequest={},this.preRequestScriptChange=new i.n,this.preRequestEnabledChange=new i.n,this.preRequestEditorConfig={mode:"javascript",lineWrapping:!0,lineNumbers:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,autoCloseBrackets:!0,keyMap:"sublime",theme:"default pre-request-editor mousetrap",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete","Cmd-/":function(e){return e.execCommand("toggleComment")},"Ctrl-/":function(e){return e.execCommand("toggleComment")}},hintOptions:{completeSingle:!1,globalScope:Object.create(null,{altair:{value:Object.create(null,{helpers:{value:Object.create(null,{getEnvironment:{value:null},setEnvironment:{value:null},getCookie:{value:null},request:{value:null}})}})}})}}}return e.prototype.ngOnChanges=function(){},e.prototype.ngDoCheck=function(){uL(this.editor&&this.editor.codeMirror)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["app-pre-request-editor"]],viewQuery:function(e,t){var n;1&e&&i.Jc(iR,!0),2&e&&i.zc(n=i.ic())&&(t.editor=n.first)},inputs:{preRequest:"preRequest"},outputs:{preRequestScriptChange:"preRequestScriptChange",preRequestEnabledChange:"preRequestEnabledChange"},features:[i.Bb],decls:22,vars:9,consts:[[1,"pre-request-editor"],[1,"pre-request-editor__toggle-wrapper"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"pre-request-textarea","mousetrap",3,"options","ngModel","ngModelChange"],["editor",""],["href","https://altair.sirmuel.design/docs/features/prerequest-scripts.html","target","_blank"],["name","info"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Nc(1,"\n "),i.Zb(2,"div",1),i.Nc(3,"\n "),i.Zb(4,"label",2),i.hc("ngModelChange",(function(e){return t.preRequestEnabledChange.next(e)})),i.Nc(5),i.lc(6,"translate"),i.Yb(),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Zb(9,"ngx-codemirror",3,4),i.hc("ngModelChange",(function(e){return t.preRequestScriptChange.emit(e)})),i.Yb(),i.Nc(11,"\n \n "),i.Zb(12,"small"),i.Nc(13,"\n "),i.Zb(14,"a",5),i.Nc(15,"\n "),i.Ub(16,"app-icon",6),i.Nc(17),i.lc(18,"translate"),i.Yb(),i.Nc(19,"\n "),i.Yb(),i.Nc(20,"\n"),i.Yb(),i.Nc(21,"\n")),2&e&&(i.Db(4),i.sc("ngModel",t.preRequest.enabled),i.Db(1),i.Oc(i.mc(6,5,"PRE_REQUEST_ENABLE_TEXT")),i.Db(4),i.sc("options",t.preRequestEditorConfig)("ngModel",t.preRequest.script),i.Db(8),i.Pc("\n ",i.mc(18,7,"LEARN_MORE_TEXT"),"\n "))},directives:[Zy,Ot.o,Ot.r,eL,hL.a],pipes:[Nn.d],encapsulation:2}),e}(),oR=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,EM]]}),e}();function aR(e,t){1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",4),i.Nc(2,"\n "),i.Zb(3,"div",5),i.Nc(4),i.lc(5,"translate"),i.Yb(),i.Nc(6),i.lc(7,"translate"),i.Yb(),i.Nc(8,"\n ")),2&e&&(i.Db(4),i.Oc(i.mc(5,2,"PLUGINS_TEXT")),i.Db(2),i.Pc("\n ",i.mc(7,4,"PLUGINS_SUB_TEXT"),"\n "))}i.Gc(PP,[Vr.q,Vr.r,Vr.s,Vr.t,Vr.A,Vr.w,Vr.x,Vr.y,Vr.z,Vr.u,Vr.v,Ot.C,Ot.t,Ot.B,Ot.e,Ot.u,Ot.x,Ot.b,Ot.z,Ot.A,Ot.w,Ot.o,Ot.p,Ot.y,Ot.l,Ot.k,Ot.v,Ot.c,Ot.f,Ot.r,Ot.s,Ot.q,Nn.a,Pr,Lo,Mo,No,Fo.a,Fo.b,Za,qa,Ga.b,ks,Ys,ic,rc,eu,Jc,nu,Xc,cu,du,ku,Wu.a,Wu.b,Hd.a,Ud.a,Bu,Yu,Uu,mv,hv,fv,dv,gv,qv,Hv,$v,Zv,Wv,uy,ry,Vy,Zy,$y,qy,iw,nw,ww,bw,mw,yw,vw,db,kb,_b,xb,Db,Jw,Xw,iO,vO,YO.c,YO.f,YO.h,YO.d,YO.e,xu.b,xu.a,xu.e,xu.d,om,im,CO,OO,NO,jO,MO,AO,PO,LO,Ns.a,Tc,kc,Dc,_c,VO,rC,nC,eC,tC,iC,DS,SS,zS,TS,CS,xS,vS,gS,bS,mS,OS,wS,yS,_S,kS,WS,HS,BS,Fz,Pz,ac.a,lT,nT,iT,rT,oT,aT,sT,cT,uT,FT,s_,a_,d_,f_,V_,Pb,Ab,Lb,$_,Sk,yk,wk,vk,mk,bk,$m,Km,qm,tv,nv,iv,rv,Gm,Fk,Rk,Vk,Bk,Yk,eD,oD,Jk,rD,nD,dC,wD,OD,CD,YD,BD,QD,tN,UE,BE,HE,YE,rN,nN,iN,JE,RE,IE,aN,$E,qE,ZE,QE,WE,AN,IN,FN,LN,NN,MN,EN,jN,YN,bd,hd,oj,aj,XT,QT,Cw,Mj,SI,wI,bI,VI,hA,lA,pA,zM,hL.a,kM.a,QP,qP,AP,PP],[Vr.b,Vr.H,Vr.p,Vr.k,Vr.F,Vr.g,Vr.D,Vr.G,Vr.d,Vr.f,Vr.i,Vr.j,Vr.l,Nn.d,Yr.h,Yr.l,Yr.q,Yr.r,Yr.fb,Yr.sb,Yr.wb,Yr.Ab,Yr.Bb,Yr.Db,Yr.ab,Yr.mb,Yr.i,Yr.ob,Yr.jb,Yr.p,Yr.o,Yr.k,Yr.j,Yr.W,Yr.V,Yr.db,Yr.e,Yr.n,Yr.a,Yr.N,Yr.eb,Yr.hb,Yr.kb,Yr.lb,Yr.qb,Yr.vb,Yr.xb,Yr.yb,Yr.nb,Yr.c,Yr.L,Yr.O,Yr.zb,Yr.Q,Yr.tb,Yr.M,Yr.gb,Yr.P,Yr.Eb,Yr.R,Yr.S,Yr.Y,Yr.rb,Yr.m,Yr.ib,Yr.pb,Yr.bb,Yr.d,Yr.f,Yr.b,Yr.cb,Yr.v,Yr.F,Yr.J,Yr.I,Yr.x,Yr.G,Yr.u,Yr.H,Yr.y,Yr.z,Yr.B,Yr.w,Yr.D,Yr.A,Yr.E,Yr.C,Yr.K,Yr.Cb,Yr.X,Yr.Z,Yr.t,Yr.s,Yr.U,Yr.g,Yr.ub,Ga.a,Ga.d,Pp]);var sR=function(e){return{"plugin-manager__list-item--selected":e}};function cR(e,t){if(1&e){var n=i.ac();i.Zb(0,"div",13),i.hc("click",(function(){i.Dc(n);var e=t.$implicit;return i.kc(2).onSelectPlugin(e)})),i.Nc(1,"\n "),i.Zb(2,"div",14),i.Nc(3),i.Zb(4,"div",15),i.Nc(5),i.Yb(),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n "),i.Zb(8,"div",16),i.Nc(9),i.Yb(),i.Nc(10,"\n "),i.Yb()}if(2&e){var r=t.$implicit,o=i.kc(2);i.sc("ngClass",i.vc(4,sR,o.selectedPluginItem&&o.selectedPluginItem.name===r.name)),i.Db(3),i.Pc("\n ",(null==r||null==r.manifest?null:r.manifest.display_name)||r.name,"\n "),i.Db(2),i.Pc("\n ",(null==r||null==r.manifest?null:r.manifest.version)||r.version,"\n "),i.Db(4),i.Pc("\n ",(null==r||null==r.manifest?null:r.manifest.description)||r.description,"\n ")}}function uR(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",24),i.hc("click",(function(){i.Dc(n);var e=i.kc(3);return e.onAddPlugin(e.selectedPluginItem.name)})),i.Nc(1,"\n "),i.Ub(2,"app-icon",25),i.Nc(3),i.lc(4,"translate"),i.Yb()}2&e&&(i.Db(3),i.Pc("\n ",i.mc(4,1,"PLUGIN_ADD_BUTTON"),"\n "))}function lR(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",26),i.hc("click",(function(){i.Dc(n);var e=i.kc(3);return e.onRemovePlugin(e.selectedPluginItem.name)})),i.Nc(1,"\n "),i.Ub(2,"app-icon",27),i.Nc(3),i.lc(4,"translate"),i.Yb()}2&e&&(i.Db(3),i.Pc("\n ",i.mc(4,1,"PLUGIN_REMOVE_BUTTON"),"\n "))}function pR(e,t){if(1&e){var n=i.ac();i.Zb(0,"button",28),i.hc("click",(function(){return i.Dc(n),i.kc(3).onRestartApp()})),i.Nc(1),i.lc(2,"translate"),i.Yb()}2&e&&(i.Db(1),i.Pc("\n ",i.mc(2,1,"RESTART_TEXT"),"\n "))}function hR(e,t){if(1&e&&(i.Xb(0),i.Nc(1,"\n "),i.Zb(2,"div",17),i.Nc(3),i.Zb(4,"div",18),i.lc(5,"translate"),i.Nc(6),i.Yb(),i.Nc(7,"\n "),i.Yb(),i.Nc(8,"\n "),i.Zb(9,"div",19),i.Nc(10,"\n "),i.Lc(11,uR,5,3,"button",20),i.Nc(12,"\n "),i.Lc(13,lR,5,3,"button",21),i.Nc(14,"\n "),i.Lc(15,pR,3,3,"button",22),i.Nc(16,"\n "),i.Yb(),i.Nc(17,"\n "),i.Ub(18,"div",23),i.Nc(19,"\n "),i.Wb()),2&e){var n=i.kc(2);i.Db(3),i.Pc("\n ",(null==n.selectedPluginItem||null==n.selectedPluginItem.manifest?null:n.selectedPluginItem.manifest.display_name)||n.selectedPluginItem.name,"\n "),i.Db(1),i.Eb("title",i.mc(5,7,"PLUGIN_UNIQUE_NAME_TEXT")),i.Db(2),i.Pc("\n ",n.selectedPluginItem.name,"\n "),i.Db(5),i.sc("ngIf",!n.isPluginInstalled(n.selectedPluginItem.name)),i.Db(2),i.sc("ngIf",n.isPluginInstalled(n.selectedPluginItem.name)),i.Db(2),i.sc("ngIf",n.shouldRestart),i.Db(3),i.sc("data",n.selectedPluginItem.summary)}}function dR(e,t){if(1&e&&(i.Nc(0,"\n "),i.Zb(1,"div",6),i.Nc(2,"\n "),i.Zb(3,"div",7),i.Nc(4,"\n "),i.Zb(5,"div",8),i.Nc(6,"\n "),i.Zb(7,"div",9),i.Nc(8,"\n "),i.Lc(9,cR,11,6,"div",10),i.lc(10,"async"),i.Nc(11,"\n "),i.Yb(),i.Nc(12,"\n "),i.Zb(13,"div",11),i.Nc(14,"\n "),i.Lc(15,hR,20,9,"ng-container",12),i.Nc(16,"\n "),i.Yb(),i.Nc(17,"\n "),i.Yb(),i.Nc(18,"\n "),i.Yb(),i.Nc(19,"\n "),i.Yb(),i.Nc(20,"\n ")),2&e){var n=i.kc();i.Db(9),i.sc("ngForOf",i.mc(10,3,n.remotePlugins$))("ngForTrackBy",n.trackByName),i.Db(6),i.sc("ngIf",n.selectedPluginItem)}}function fR(e,t){if(1&e){var n=i.ac();i.Nc(0,"\n "),i.Zb(1,"div",29),i.Nc(2,"\n "),i.Zb(3,"button",30),i.hc("click",(function(){return i.Dc(n),i.kc().toggleDialogChange.next(!1)})),i.Nc(4),i.lc(5,"translate"),i.Yb(),i.Nc(6,"\n "),i.Yb(),i.Nc(7,"\n ")}2&e&&(i.Db(4),i.Oc(i.mc(5,1,"SAVE_BUTTON")))}var gR=function(){function e(e){this.pluginRegistry=e,this.showPluginManager=!1,this.toggleDialogChange=new i.n,this.settingsJsonChange=new i.n,this.shouldRestart=!1,this.remotePlugins$=this.pluginRegistry.getRemotePluginList().pipe(Object(Lt.a)((function(e){return Object(qr.a)(null)})),Object(Mt.a)((function(e){if(e)return e.items})))}return e.prototype.ngOnInit=function(){},e.prototype.onSelectPlugin=function(e){this.selectedPluginItem=e},e.prototype.isPluginInstalled=function(e){var t=this;return!!this.settings["plugin.list"]&&this.settings["plugin.list"].some((function(n){var i=t.pluginRegistry.getPluginInfoFromString(n);return!!i&&i.name===e}))},e.prototype.onAddPlugin=function(e){var t=JSON.parse(JSON.stringify(this.settings));t["plugin.list"]=t["plugin.list"]||[],t["plugin.list"].push(e),this.settingsJsonChange.next(JSON.stringify(t)),this.shouldRestart=!0},e.prototype.onRemovePlugin=function(e){var t=this,n=JSON.parse(JSON.stringify(this.settings));n["plugin.list"]=(n["plugin.list"]||[]).filter((function(n){var i=t.pluginRegistry.getPluginInfoFromString(n);if(i)return e!==i.name})),this.settingsJsonChange.next(JSON.stringify(n)),this.shouldRestart=!0},e.prototype.onRestartApp=function(){location.reload()},e.prototype.trackByName=function(e,t){return t.name},e.\u0275fac=function(t){return new(t||e)(i.Tb(MM.PluginRegistryService))},e.\u0275cmp=i.Nb({type:e,selectors:[["app-plugin-manager"]],inputs:{showPluginManager:"showPluginManager",settings:"settings"},outputs:{toggleDialogChange:"toggleDialogChange",settingsJsonChange:"settingsJsonChange"},decls:12,vars:5,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzWidth","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],[1,"app-dialog-section"],[1,"plugin-manager-wrapper"],[1,"plugin-manager__list"],["class","plugin-manager__list-item",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"plugin-manager__item-details"],[4,"ngIf"],[1,"plugin-manager__list-item",3,"ngClass","click"],[1,"plugin-manager__list-item-name"],[1,"plugin-manager__list-item-version"],[1,"plugin-manager__list-item-description"],[1,"plugin-manager__item-details-name"],[1,"plugin-manager__item-details-unique-name"],[1,"plugin-manager__item-details-actions"],["class","app-button active-grey",3,"click",4,"ngIf"],["class","app-button active-destructive",3,"click",4,"ngIf"],["class","app-button",3,"click",4,"ngIf"],["markdown","",1,"plugin-manager__item-details-summary",3,"data"],[1,"app-button","active-grey",3,"click"],["name","plus-circle"],[1,"app-button","active-destructive",3,"click"],["name","x-circle"],[1,"app-button",3,"click"],[1,"app-dialog-footer"],[1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(i.Zb(0,"nz-modal",0),i.hc("nzVisibleChange",(function(e){return t.toggleDialogChange.next(e)}))("nzOnCancel",(function(e){return t.toggleDialogChange.next(e)})),i.Nc(1,"\n "),i.Lc(2,aR,9,6,"ng-template",null,1,i.Mc),i.Nc(4,"\n\n "),i.Lc(5,dR,21,5,"ng-template",null,2,i.Mc),i.Nc(7,"\n\n "),i.Lc(8,fR,8,3,"ng-template",null,3,i.Mc),i.Nc(10,"\n"),i.Yb(),i.Nc(11,"\n")),2&e){var n=i.Ac(3),r=i.Ac(6),o=i.Ac(9);i.sc("nzVisible",t.showPluginManager)("nzTitle",n)("nzContent",r)("nzFooter",o)("nzWidth",870)}},directives:[Fz,Vr.s,Vr.t,Vr.q,Ga.b,hL.a],pipes:[Nn.d,Vr.b],encapsulation:2}),e}(),bR=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,tL,nL,GM,EM,oR]]}),e}(),mR=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,EM,bR]]}),e}(),vR=function(){function e(){}return e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({factory:function(t){return new(t||e)},imports:[[Vr.c,Ot.j,EM,bR]]}),e}(),yR=n("0zd0"),wR=n("VNr4"),OR=n("FDZY"),CR=n("VwhB"),SR=n("kRGt"),zR=n("xlYA"),TR=function(){function e(){this.onFileDropped=new i.n}return e.prototype.onDragOver=function(e){e.preventDefault(),e.stopPropagation()},e.prototype.onDragLeave=function(e){e.preventDefault(),e.stopPropagation()},e.prototype.ondrop=function(e){var t;e.preventDefault(),e.stopPropagation();var n=null===(t=e.dataTransfer)||void 0===t?void 0:t.files;n&&n.length>0&&this.onFileDropped.emit(n)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","appFileDrop",""]],hostBindings:function(e,t){1&e&&i.hc("dragover",(function(e){return t.onDragOver(e)}))("dragleave",(function(e){return t.onDragLeave(e)}))("drop",(function(e){return t.ondrop(e)}))},outputs:{onFileDropped:"onFileDropped"}}),e}(),_R=function(){function e(e){this.element=e,this.appSetCssVariables={}}return e.prototype.ngOnChanges=function(e){var t=this;e.appSetCssVariables&&Object.keys(this.appSetCssVariables).forEach((function(e){t.appSetCssVariables[e]?document.documentElement.style.setProperty(e,t.appSetCssVariables[e]):document.documentElement.style.removeProperty(e)}))},e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["","appSetCssVariables",""]],inputs:{appSetCssVariables:"appSetCssVariables"},features:[i.Bb]}),e}(),kR=n("J1Ni"),DR=n("9b6k"),xR=function(){return(xR=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(n("h9Dq").a),o=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.c(t,e),t}(n("CS9Q").a))(r)},zotm:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("rPjj"),r=n("Fxb1"),o=n("6blF");function a(e,t,n,a,s){if(void 0===s&&(s=new i.a(e,n,a)),!s.closed)return t instanceof o.a?t.subscribe(s):Object(r.a)(t)(s)}},zpYP:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return"object"==i(e)&&null!==e}n.d(t,"a",(function(){return r}))},"zrt+":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("6blF");function r(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},zs8F:function(e,t,n){"use strict";var i=n("GpRL"),r=n("lq5y"),o=Function.prototype.bind,a=Function.prototype.call,s=Object.keys,c=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(n,u){var l,p=arguments[2],h=arguments[3];return n=Object(r(n)),i(u),l=s(n),h&&l.sort("function"==typeof h?o.call(h,n):void 0),"function"!=typeof e&&(e=l[e]),a.call(e,l,(function(e,i){return c.call(n,e)?a.call(u,p,n[e],e,n,i):t}))}}},zsKT:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("y4cC");function r(e){return o(e.source,Object(i.a)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,i=s(n)+e.body,r=t.line-1,o=t.line+(e.locationOffset.line-1),c=t.column+(1===t.line?n:0),u="".concat(e.name,":").concat(o,":").concat(c,"\n"),l=i.split(/\r\n|[\n\r]/g),p=l[r];if(p.length>120){for(var h=Math.floor(c/80),d=c%80,f=[],g=0;g",this._properties=e&&e.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,e)}return e.assertZonePatched=function(){if(t.Promise!==M.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost 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.)")},Object.defineProperty(e,"root",{get:function(){for(var t=e.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"current",{get:function(){return j.zone},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return P},enumerable:!0,configurable:!0}),e.__load_patch=function(o,i){if(M.hasOwnProperty(o)){if(a)throw Error("Already loaded patch: "+o)}else if(!t["__Zone_disable_"+o]){var c="Zone:"+o;n(c),M[o]=i(t,e,C),r(c,c)}},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},e.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},e.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},e.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},e.prototype.run=function(t,e,n,r){j={parent:j,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{j=j.parent}},e.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),j={parent:j,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{j=j.parent}},e.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||b).name+"; Execution: "+this.name+")");if(t.state!==w||t.type!==A&&t.type!==O){var r=t.state!=_;r&&t._transitionTo(_,k),t.runCount++;var o=P;P=t,j={parent:j,zone:this};try{t.type==O&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==w&&t.state!==S&&(t.type==A||t.data&&t.data.isPeriodic?r&&t._transitionTo(k,_):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(w,_,w))),j=j.parent,P=o}}},e.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(E,w);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(r){throw t._transitionTo(S,E,w),this._zoneDelegate.handleError(this,r),r}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==E&&t._transitionTo(k,E),t},e.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new l(T,t,e,n,r,void 0))},e.prototype.scheduleMacroTask=function(t,e,n,r,o){return this.scheduleTask(new l(O,t,e,n,r,o))},e.prototype.scheduleEventTask=function(t,e,n,r,o){return this.scheduleTask(new l(A,t,e,n,r,o))},e.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||b).name+"; Execution: "+this.name+")");t._transitionTo(x,k,_);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(S,x),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(w,x),t.runCount=0,t},e.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})},t}(),l=function(){function e(n,r,o,i,a,c){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,!o)throw new Error("callback is not defined");this.callback=o;var u=this;this.invoke=n===A&&i&&i.useG?e.invokeTask:function(){return e.invokeTask.call(t,u,this,arguments)}}return e.invokeTask=function(t,e,n){t||(t=this),I++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==I&&m(),I--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(w,E)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==w&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},e}(),p=i("setTimeout"),h=i("Promise"),v=i("then"),d=[],g=!1;function y(e){if(0===I&&0===d.length)if(u||t[h]&&(u=t[h].resolve(0)),u){var n=u[v];n||(n=u.then),n.call(u,m)}else t[p](m,0);e&&d.push(e)}function m(){if(!g){for(g=!0;d.length;){var t=d;d=[];for(var e=0;e=0;n--)"function"==typeof t[n]&&(t[n]=u(t[n],e+"_"+n));return t}function g(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var y="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!("nw"in h)&&void 0!==h.process&&"[object process]"==={}.toString.call(h.process),b=!m&&!y&&!(!l||!p.HTMLElement),w=void 0!==h.process&&"[object process]"==={}.toString.call(h.process)&&!y&&!(!l||!p.HTMLElement),E={},k=function(t){if(t=t||h.event){var e=E[t.type];e||(e=E[t.type]=f("ON_PROPERTY"+t.type));var n,r=this||t.target||h,o=r[e];if(b&&r===p&&"error"===t.type){var i=t;!0===(n=o&&o.call(this,i.message,i.filename,i.lineno,i.colno,i.error))&&t.preventDefault()}else null==(n=o&&o.apply(this,arguments))||n||t.preventDefault();return n}};function _(n,r,o){var i=t(n,r);if(!i&&o&&t(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=f("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var c=i.get,u=i.set,s=r.substr(2),l=E[s];l||(l=E[s]=f("ON_PROPERTY"+s)),i.set=function(t){var e=this;e||n!==h||(e=h),e&&(e[l]&&e.removeEventListener(s,k),u&&u.apply(e,v),"function"==typeof t?(e[l]=t,e.addEventListener(s,k,!1)):e[l]=null)},i.get=function(){var t=this;if(t||n!==h||(t=h),!t)return null;var e=t[l];if(e)return e;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof t.removeAttribute&&t.removeAttribute(r),o}return null},e(n,r,i),n[a]=!0}}}function x(t,e,n){if(e)for(var r=0;r=0&&"function"==typeof r[i.cbIdx]?s(i.name,r[i.cbIdx],i,o):t.apply(e,r)}}))}function M(t,e){t[f("OriginalDelegate")]=e}var C=!1,j=!1;function P(){try{var t=p.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(e){}return!1}function I(){if(C)return j;C=!0;try{var t=p.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(j=!0)}catch(e){}return j}Zone.__load_patch("toString",(function(t){var e=Function.prototype.toString,n=f("OriginalDelegate"),r=f("Promise"),o=f("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=t[r];if(a)return e.call(a)}if(this===Error){var c=t[o];if(c)return e.call(c)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}}));var D=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){D=!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(wt){D=!1}var R={useG:!0},L={},F={},G=new RegExp("^"+c+"(\\w+)(true|false)$"),Z=f("propagationStopped");function z(t,e){var n=(e?e(t):t)+"false",r=(e?e(t):t)+"true",o=c+n,i=c+r;L[t]={},L[t].false=o,L[t].true=i}function q(t,e,r){var o=r&&r.add||"addEventListener",i=r&&r.rm||"removeEventListener",a=r&&r.listeners||"eventListeners",u=r&&r.rmAll||"removeAllListeners",s=f(o),l="."+o+":",p=function(t,e,n){if(!t.isRemoved){var r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var o=t.options;o&&"object"==typeof o&&o.once&&e[i].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,o)}},h=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[L[e.type].false];if(r)if(1===r.length)p(r[0],n,e);else for(var o=r.slice(),i=0;i1?new i(e,n):new i(e),s=t.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=t.ObjectCreate(u),c=u,[r,o,"send","close"].forEach((function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[e].apply(u,n)}}))):a=u,t.patchOnProperties(a,["close","error","message","open"],c),a};var a=e.WebSocket;for(var c in i)a[c]=i[c]}(t,e),Zone[t.symbol("patchEvents")]=!0}}Zone.__load_patch("util",(function(n,i,a){a.patchOnProperties=x,a.patchMethod=O,a.bindArguments=d,a.patchMacroTask=A;var s=i.__symbol__("BLACK_LISTED_EVENTS"),f=i.__symbol__("UNPATCHED_EVENTS");n[f]&&(n[s]=n[f]),n[s]&&(i[s]=i[f]=n[s]),a.patchEventPrototype=X,a.patchEventTarget=q,a.isIEOrEdge=I,a.ObjectDefineProperty=e,a.ObjectGetOwnPropertyDescriptor=t,a.ObjectCreate=r,a.ArraySlice=o,a.patchClass=T,a.wrapWithCurrentZone=u,a.filterProperties=ct,a.attachOriginToPatched=M,a._redefineProperty=Object.defineProperty,a.patchCallbacks=H,a.getGlobalObjects=function(){return{globalSources:F,zoneSymbolEventNames:L,eventNames:at,isBrowser:b,isMix:w,isNode:m,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:c,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})),function(t){t[(t.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var e=t.Zone;e.__load_patch("defineProperty",(function(t,e,n){n._redefineProperty=lt,ft()})),e.__load_patch("registerElement",(function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)})),e.__load_patch("EventTargetLegacy",(function(t,e,n){dt(t,n),gt(n,t)}))}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});var yt=f("zoneTask");function mt(t,e,n,r){var o=null,i=null;n+=r;var a={};function c(e){var n=e.data;return n.args[0]=function(){try{e.invoke.apply(this,arguments)}finally{e.data&&e.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[yt]=null))}},n.handleId=o.apply(t,n.args),e}function u(t){return i(t.data.handleId)}o=O(t,e+=r,(function(n){return function(o,i){if("function"==typeof i[0]){var f=s(e,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},c,u);if(!f)return f;var l=f.data.handleId;return"number"==typeof l?a[l]=f:l&&(l[yt]=f),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(f.ref=l.ref.bind(l),f.unref=l.unref.bind(l)),"number"==typeof l||l?l:f}return n.apply(t,i)}})),i=O(t,n,(function(e){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[yt])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[yt]=null),o.zone.cancelTask(o)):e.apply(t,r)}}))}function bt(t,e){if(!Zone[e.symbol("patchEventTarget")]){for(var n=e.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u=0;u0){var o=t.invoke;t.invoke=function(){for(var n=u[e.__symbol__("loadfalse")],i=0;i"+t+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var t,e;h=r?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=s("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[f]=t):n=h(),void 0===e?n:i(n,e)}},"2oRo":function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"33Wh":function(t,e,n){var r=n("yoRg"),o=n("eDl+");t.exports=Object.keys||function(t){return r(t,o)}},"3caY":function(t,e,n){var r=n("wA6s"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},"3vMK":function(t,e,n){"use strict";var r=n("6XUM"),o=n("/Ybd"),i=n("wIVT"),a=n("m41k")("hasInstance"),c=Function.prototype;a in c||o.f(c,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},"3xQm":function(t,e,n){var r,o,i,a,c,u,s,f,l=n("ocAm"),p=n("7gGY").f,h=n("ezU2"),v=n("Ox9q").set,d=n("tuHh"),g=l.MutationObserver||l.WebKitMutationObserver,y=l.process,m=l.Promise,b="process"==h(y),w=p(l,"queueMicrotask"),E=w&&w.value;E||(r=function(){var t,e;for(b&&(t=y.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(n){throw o?a():i=void 0,n}}i=void 0,t&&t.enter()},b?a=function(){y.nextTick(r)}:g&&!d?(c=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):m&&m.resolve?(s=m.resolve(void 0),f=s.then,a=function(){f.call(s,r)}):a=function(){v.call(l,r)}),t.exports=E||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},"48xZ":function(t,e,n){var r=n("n/2t"),o=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),u=i(2,127)*(2-c),s=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=o(t),f=r(t);return iu||n!=n?f*(1/0):f*n}},"4GtL":function(t,e,n){"use strict";var r=n("VCQ8"),o=n("7Oj1"),i=n("xpLY"),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),c=i(n.length),u=o(t,c),s=o(e,c),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?c:o(f,c))-s,c-u),p=1;for(s0;)s in n?n[u]=n[s]:delete n[u],u+=p,s+=p;return n}},"4Kt7":function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("sub")},{sub:function(){return o(this,"sub","","")}})},"4NCC":function(t,e,n){var r=n("ocAm"),o=n("jnLS").trim,i=n("xFZC"),a=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");t.exports=u?function(t,e){var n=o(String(t));return a(n,e>>>0||(c.test(n)?16:10))}:a},"4PyY":function(t,e,n){var r={};r[n("m41k")("toStringTag")]="z",t.exports="[object z]"===String(r)},"4WOD":function(t,e,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),c=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"4Xet":function(t,e,n){var r=n("0Dky");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"4axp":function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("blink")},{blink:function(){return o(this,"blink","","")}})},"5MmU":function(t,e,n){var r=n("m41k"),o=n("pz+c"),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},"5eAq":function(t,e,n){var r=n("wA6s"),o=n("vZCr");r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},"5y2d":function(t,e,n){var r=n("T69T"),o=n("/Ybd"),i=n("F26l"),a=n("ZRqE");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},"5zDw":function(t,e,n){var r=n("wA6s"),o=n("4NCC");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},"6CEi":function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").find,i=n("A1Hp"),a=n("w2hq"),c=!0,u=a("find");"find"in[]&&Array(1).find((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},"6CJb":function(t,e,n){"use strict";var r=n("rG8t");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},"6JNq":function(t,e,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s1?arguments[1]:void 0)}})},"6oxo":function(t,e,n){var r=n("wA6s"),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return o(t)/i}})},"6q6p":function(t,e,n){"use strict";var r=n("wA6s"),o=n("6XUM"),i=n("erNl"),a=n("7Oj1"),c=n("xpLY"),u=n("EMtK"),s=n("DYg9"),f=n("m41k"),l=n("lRyB"),p=n("w2hq"),h=l("slice"),v=p("slice",{ACCESSORS:!0,0:0,1:2}),d=f("species"),g=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!h||!v},{slice:function(t,e){var n,r,f,l=u(this),p=c(l.length),h=a(t,p),v=a(void 0===e?p:e,p);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(l,h,v);for(r=new(void 0===n?Array:n)(y(v-h,0)),f=0;h=0;)p[e]=s((n+=p[e])/t),n=n%t*1e7},y=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==p[t]){var n=String(p[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e};if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(h="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*f(2,69,1))-69)<0?u*f(2,-e,1):u/f(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=l;r>=7;)d(1e7,0),r-=7;for(d(f(10,r,1),0),r=e-1;r>=23;)g(1<<23),r-=23;g(1<0?h+((c=v.length)<=l?"0."+a.call("0",l-c)+v:v.slice(0,c-l)+"."+v.slice(c-l)):h+v}})},"8ydS":function(t,e,n){n("wA6s")({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},"93I0":function(t,e,n){var r=n("VpIT"),o=n("kOOl"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"94Vg":function(t,e,n){var r=n("E7aN"),o=n("OG5q"),i=n("aGCb"),a=n("/Ybd").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"9kNm":function(t,e,n){n("94Vg")("toPrimitive")},A1Hp:function(t,e,n){var r=n("m41k"),o=n("2RDa"),i=n("/Ybd"),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},A7hN:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("VCQ8"),a=n("wIVT"),c=n("cwa4");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},"Ay+M":function(t,e,n){var r=n("wA6s"),o=n("vZCr");r({global:!0,forced:parseFloat!=o},{parseFloat:o})},BTho:function(t,e,n){"use strict";var r=n("HAuM"),o=n("hh1v"),i=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;ot;)i(n,t,arguments[t++]);return n.length=e,n}})},BnCb:function(t,e,n){n("wA6s")({target:"Math",stat:!0},{sign:n("n/2t")})},Bs8V:function(t,e,n){var r=n("g6v/"),o=n("0eef"),i=n("XGwC"),a=n("/GqU"),c=n("wE6v"),u=n("UTVS"),s=n("DPsx"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(n){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},COcp:function(t,e,n){n("wA6s")({target:"Number",stat:!0},{isInteger:n("Nvxz")})},CW9j:function(t,e,n){"use strict";var r=n("F26l"),o=n("LdO1");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},CwIO:function(t,e,n){var r=n("wA6s"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,c=0,u=arguments.length,s=0;c0?(r=n/s)*r:n;return s===1/0?1/0:s*a(o)}})},"D+RQ":function(t,e,n){"use strict";var r=n("T69T"),o=n("ocAm"),i=n("MkZA"),a=n("2MGJ"),c=n("OG5q"),u=n("ezU2"),s=n("K6ZX"),f=n("LdO1"),l=n("rG8t"),p=n("2RDa"),h=n("KkqW").f,v=n("7gGY").f,d=n("/Ybd").f,g=n("jnLS").trim,y=o.Number,m=y.prototype,b="Number"==u(p(m)),w=function(t){var e,n,r,o,i,a,c,u,s=f(t,!1);if("string"==typeof s&&s.length>2)if(43===(e=(s=g(s)).charCodeAt(0))||45===e){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;co)return NaN;return parseInt(i,r)}return+s};if(i("Number",!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var E,k=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof k&&(b?l((function(){m.valueOf.call(n)})):"Number"!=u(n))?s(new y(w(e)),n,k):w(e)},_=r?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)c(y,E=_[x])&&!c(k,E)&&d(k,E,v(y,E));k.prototype=m,m.constructor=k,a(o,"Number",k)}},D3bo:function(t,e,n){var r,o,i=n("ocAm"),a=n("T/Kj"),c=i.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},D94X:function(t,e,n){var r=n("wA6s"),o=n("n/2t"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},DAme:function(t,e,n){"use strict";var r=n("8aNu"),o=n("M7Xk").getWeakData,i=n("F26l"),a=n("6XUM"),c=n("SM6+"),u=n("Rn6E"),s=n("kk6e"),f=n("OG5q"),l=n("XH/I"),p=l.set,h=l.getterFor,v=s.find,d=s.findIndex,g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=d(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,s){var l=t((function(t,r){c(t,l,e),p(t,{type:e,id:g++,frozen:void 0}),null!=r&&u(r,t[s],t,n)})),v=h(e),d=function(t,e,n){var r=v(t),a=o(i(e),!0);return!0===a?y(r).set(e,n):a[r.id]=n,t};return r(l.prototype,{delete:function(t){var e=v(this);if(!a(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!a(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&f(n,e.id)}}),r(l.prototype,n?{get:function(t){var e=v(this);if(a(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return d(this,t,e)}}:{add:function(t){return d(this,t,!0)}}),l}}},DGHb:function(t,e,n){"use strict";var r=n("wA6s"),o=n("rG8t"),i=n("VCQ8"),a=n("LdO1");r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},DPsx:function(t,e,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},DYg9:function(t,e,n){"use strict";var r=n("LdO1"),o=n("/Ybd"),i=n("uSMZ");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},Djps:function(t,e,n){n("wA6s")({target:"Math",stat:!0},{log1p:n("O3xq")})},DscF:function(t,e,n){var r=n("wA6s"),o=n("w4Hq"),i=n("A1Hp");r({target:"Array",proto:!0},{fill:o}),i("fill")},E7aN:function(t,e,n){var r=n("ocAm");t.exports=r},E8Ab:function(t,e,n){"use strict";var r=n("Neub"),o=n("6XUM"),i=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},EMtK:function(t,e,n){var r=n("tUdv"),o=n("hmpk");t.exports=function(t){return r(o(t))}},EQZg:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},ERXZ:function(t,e,n){n("94Vg")("match")},EntM:function(t,e,n){var r=n("wA6s"),o=n("T69T");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n("5y2d")})},"Ew/G":function(t,e,n){var r=n("E7aN"),o=n("ocAm"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},"F/TS":function(t,e,n){var r=n("mN5b"),o=n("pz+c"),i=n("m41k")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},F26l:function(t,e,n){var r=n("6XUM");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},F4rZ:function(t,e,n){"use strict";var r=n("wA6s"),o=n("rG8t"),i=n("erNl"),a=n("6XUM"),c=n("VCQ8"),u=n("xpLY"),s=n("DYg9"),f=n("JafA"),l=n("lRyB"),p=n("m41k"),h=n("D3bo"),v=p("isConcatSpreadable"),d=h>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=l("concat"),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!d||!g},{concat:function(t){var e,n,r,o,i,a=c(this),l=f(a,0),p=0;for(e=-1,r=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,p++,i)}return l.length=p,l}})},FU1i:function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").map,i=n("lRyB"),a=n("w2hq"),c=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!c||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"FeI/":function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").every,i=n("6CJb"),a=n("w2hq"),c=i("every"),u=a("every");r({target:"Array",proto:!0,forced:!c||!u},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},Fqhe:function(t,e,n){var r=n("ocAm"),o=n("aJMj");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},"G+Rx":function(t,e,n){var r=n("0GbY");t.exports=r("document","documentElement")},"G/JM":function(t,e,n){n("I+eb")({target:"Reflect",stat:!0},{ownKeys:n("Vu81")})},G1Vw:function(t,e,n){"use strict";var r,o,i,a=n("wIVT"),c=n("aJMj"),u=n("OG5q"),s=n("m41k"),f=n("g9hI"),l=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),f||u(r,l)||c(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},G7bs:function(t,e,n){var r=n("vDBE"),o=n("hmpk"),i=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},HAuM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},HSQg:function(t,e,n){"use strict";n("SC6u");var r=n("2MGJ"),o=n("rG8t"),i=n("m41k"),a=n("qjkP"),c=n("aJMj"),u=i("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),h=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,l){var v=i(t),d=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[v]=/./[v]),n.exec=function(){return e=!0,null},n[v](""),!e}));if(!d||!g||"replace"===t&&(!s||!f||p)||"split"===t&&!h){var y=/./[v],m=n(v,""[t],(function(t,e,n,r,o){return e.exec===a?d&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=m[1];r(String.prototype,t,m[0]),r(RegExp.prototype,v,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}l&&c(RegExp.prototype[v],"sham",!0)}},HYAF:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"I+eb":function(t,e,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),c=n("zk60"),u=n("6JNq"),s=n("lMq5");t.exports=function(t,e){var n,f,l,p,h,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(h=o(n,f))&&h.value:n[f],!s(d?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(n,f,p,t)}}},I8vh:function(t,e,n){var r=n("ppGB"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},IBH3:function(t,e,n){"use strict";var r=n("tcQx"),o=n("VCQ8"),i=n("ipMl"),a=n("5MmU"),c=n("xpLY"),u=n("DYg9"),s=n("F/TS");t.exports=function(t){var e,n,f,l,p,h,v=o(t),d="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=s(v),w=0;if(m&&(y=r(y,g>2?arguments[2]:void 0,2)),null==b||d==Array&&a(b))for(n=new d(e=c(v.length));e>w;w++)h=m?y(v[w],w):v[w],u(n,w,h);else for(p=(l=b.call(v)).next,n=new d;!(f=p.call(l)).done;w++)h=m?i(l,y,[f.value,w],!0):f.value,u(n,w,h);return n.length=w,n}},IPby:function(t,e,n){var r=n("wA6s"),o=n("EMtK"),i=n("xpLY");r({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(e[c++])),c1?arguments[1]:void 0)}})},IXlp:function(t,e,n){var r=n("wA6s"),o=n("O3xq"),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+u:o(t-1+c(t-1)*c(t+1))}})},IzYO:function(t,e,n){var r=n("wA6s"),o=n("cZY6"),i=n("rG8t"),a=n("6XUM"),c=n("M7Xk").onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(t){return u&&a(t)?u(c(t)):t}})},J4zY:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("fixed")},{fixed:function(){return o(this,"tt","","")}})},JBy8:function(t,e,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},JHhb:function(t,e,n){"use strict";var r=n("Ew/G"),o=n("/Ybd"),i=n("m41k"),a=n("T69T"),c=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&(0,o.f)(e,c,{configurable:!0,get:function(){return this}})}},JI1L:function(t,e,n){var r=n("6XUM");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},JafA:function(t,e,n){var r=n("6XUM"),o=n("erNl"),i=n("m41k")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},JhPs:function(t,e,n){var r=n("wA6s"),o=n("pn4C");r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},JkSk:function(t,e,n){"use strict";var r=n("rG8t");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"Jt/z":function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").findIndex,i=n("A1Hp"),a=n("w2hq"),c=!0,u=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},K1Z7:function(t,e,n){"use strict";var r=n("HSQg"),o=n("F26l"),i=n("xpLY"),a=n("hmpk"),c=n("dPn5"),u=n("unYP");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;for(var l,p=[],h=0;null!==(l=u(a,s));){var v=String(l[0]);p[h]=v,""===v&&(a.lastIndex=c(s,i(a.lastIndex),f)),h++}return 0===h?null:p}]}))},K1dl:function(t,e,n){var r=n("ocAm");t.exports=r.Promise},K6ZX:function(t,e,n){var r=n("6XUM"),o=n("7/lX");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},KBkW:function(t,e,n){var r=n("ocAm"),o=n("Fqhe"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},KMug:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("6XUM"),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},KkqW:function(t,e,n){var r=n("vVmn"),o=n("aAjO").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},KlhL:function(t,e,n){"use strict";var r=n("T69T"),o=n("rG8t"),i=n("ZRqE"),a=n("busr"),c=n("gn9T"),u=n("VCQ8"),s=n("tUdv"),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,f=1,l=a.f,p=c.f;o>f;)for(var h,v=s(arguments[f++]),d=l?i(v).concat(l(v)):i(v),g=d.length,y=0;g>y;)h=d[y++],r&&!p.call(v,h)||(n[h]=v[h]);return n}:f},KsdI:function(t,e,n){n("94Vg")("iterator")},L4l2:function(t,e,n){"use strict";var r=n("wA6s"),o=n("s8qp"),i=n("hmpk");r({target:"String",proto:!0,forced:!n("0Ds2")("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},LRWt:function(t,e,n){n("F4rZ"),n("NX+v"),n("SNUk"),n("c/8x"),n("0luR"),n("Pfbg"),n("V+F/"),n("KsdI"),n("ERXZ"),n("YOJ4"),n("S3W2"),n("8+YH"),n("uKyN"),n("Vi1R"),n("9kNm"),n("ZQqA"),n("815a"),n("OVXS"),n("8CeQ");var r=n("E7aN");t.exports=r.Symbol},LdO1:function(t,e,n){var r=n("6XUM");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},M1AK:function(t,e,n){var r=n("wA6s"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},M7Xk:function(t,e,n){var r=n("yQMY"),o=n("6XUM"),i=n("OG5q"),a=n("/Ybd").f,c=n("SDMg"),u=n("cZY6"),s=c("meta"),f=0,l=Object.isExtensible||function(){return!0},p=function(t){a(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},h=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!l(t))return"F";if(!e)return"E";p(t)}return t[s].objectID},getWeakData:function(t,e){if(!i(t,s)){if(!l(t))return!0;if(!e)return!1;p(t)}return t[s].weakData},onFreeze:function(t){return u&&h.REQUIRED&&l(t)&&!i(t,s)&&p(t),t}};r[s]=!0},MjoC:function(t,e,n){var r=n("T69T"),o=n("/Ybd").f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},MkZA:function(t,e,n){var r=n("rG8t"),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},"N+g0":function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},NIlc:function(t,e,n){var r=n("OG5q"),o=n("76gj"),i=n("7gGY"),a=n("/Ybd");t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},O741:function(t,e,n){var r=n("hh1v");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},OG5q:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},OVXS:function(t,e,n){n("shqn")(Math,"Math",!0)},OXtp:function(t,e,n){var r=n("EMtK"),o=n("xpLY"),i=n("7Oj1"),a=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},OjQg:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},Ox9q:function(t,e,n){var r,o,i,a=n("ocAm"),c=n("rG8t"),u=n("ezU2"),s=n("tcQx"),f=n("149L"),l=n("qx7X"),p=n("tuHh"),h=a.location,v=a.setImmediate,d=a.clearImmediate,g=a.process,y=a.MessageChannel,m=a.Dispatch,b=0,w={},E=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},k=function(t){return function(){E(t)}},_=function(t){E(t.data)},x=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};v&&d||(v=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return w[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},d=function(t){delete w[t]},"process"==u(g)?r=function(t){g.nextTick(k(t))}:m&&m.now?r=function(t){m.now(k(t))}:y&&!p?(i=(o=new y).port2,o.port1.onmessage=_,r=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(x)?r="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),E(t)}}:function(t){setTimeout(k(t),0)}:(r=x,a.addEventListener("message",_,!1))),t.exports={set:v,clear:d}},PbJR:function(t,e,n){var r=n("wA6s"),o=n("4NCC");r({global:!0,forced:parseInt!=o},{parseInt:o})},Pf6x:function(t,e,n){n("wA6s")({target:"Math",stat:!0},{fround:n("48xZ")})},Pfbg:function(t,e,n){n("94Vg")("hasInstance")},PmIt:function(t,e,n){"use strict";var r=n("HSQg"),o=n("1p6F"),i=n("F26l"),a=n("hmpk"),c=n("p82S"),u=n("dPn5"),s=n("xpLY"),f=n("unYP"),l=n("qjkP"),p=n("rG8t"),h=[].push,v=Math.min,d=!p((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var c,u,s,f=[],p=0,v=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(c=l.call(v,r))&&!((u=v.lastIndex)>p&&(f.push(r.slice(p,c.index)),c.length>1&&c.index=i));)v.lastIndex===c.index&&v.lastIndex++;return p===r.length?!s&&v.test("")||f.push(""):f.push(r.slice(p)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var l=i(t),p=String(this),h=c(l,RegExp),g=l.unicode,y=new h(d?l:"^(?:"+l.source+")",(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(d?"y":"g")),m=void 0===o?4294967295:o>>>0;if(0===m)return[];if(0===p.length)return null===f(y,p)?[p]:[];for(var b=0,w=0,E=[];w1?arguments[1]:void 0)}})},QFgE:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},QUoj:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},"QVG+":function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("6XUM"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},QcXc:function(t,e,n){var r=n("xpLY"),o=n("EMWV"),i=n("hmpk"),a=Math.ceil,c=function(t){return function(e,n,c){var u,s,f=String(i(e)),l=f.length,p=void 0===c?" ":String(c),h=r(n);return h<=l||""==p?f:((s=o.call(p,a((u=h-l)/p.length))).length>u&&(s=s.slice(0,u)),t?f+s:s+f)}};t.exports={start:c(!1),end:c(!0)}},Qo9l:function(t,e,n){var r=n("2oRo");t.exports=r},RCvO:function(t,e,n){n("wA6s")({target:"Object",stat:!0,sham:!n("T69T")},{create:n("2RDa")})},RK3t:function(t,e,n){var r=n("0Dky"),o=n("xrYK"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"Rj+b":function(t,e,n){"use strict";var r=n("2MGJ"),o=n("F26l"),i=n("rG8t"),a=n("x0kV"),c=RegExp.prototype,u=c.toString;(i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))||"toString"!=u.name)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in c)?a.call(t):n)}),{unsafe:!0})},Rn6E:function(t,e,n){var r=n("F26l"),o=n("5MmU"),i=n("xpLY"),a=n("tcQx"),c=n("F/TS"),u=n("ipMl"),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var p,h,v,d,g,y,m,b=a(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(t.length);d>v;v++)if((g=f?b(r(m=t[v])[0],m[1]):b(t[v]))&&g instanceof s)return g;return new s(!1)}p=h.call(t)}for(y=p.next;!(m=y.call(p)).done;)if("object"==typeof(g=u(p,b,m.value,f))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(t){return new s(!0,t)}},S3W2:function(t,e,n){n("94Vg")("replace")},S3Yw:function(t,e,n){"use strict";var r=n("HSQg"),o=n("F26l"),i=n("VCQ8"),a=n("xpLY"),c=n("vDBE"),u=n("hmpk"),s=n("dPn5"),f=n("unYP"),l=Math.max,p=Math.min,h=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,m=g?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!g&&y||"string"==typeof r&&-1===r.indexOf(m)){var i=n(e,t,this,r);if(i.done)return i.value}var u=o(t),h=String(this),v="function"==typeof r;v||(r=String(r));var d=u.global;if(d){var w=u.unicode;u.lastIndex=0}for(var E=[];;){var k=f(u,h);if(null===k)break;if(E.push(k),!d)break;""===String(k[0])&&(u.lastIndex=s(h,a(u.lastIndex),w))}for(var _,x="",S=0,T=0;T=S&&(x+=h.slice(S,A)+I,S=A+O.length)}return x+h.slice(S)}];function b(t,n,r,o,a,c){var u=r+t.length,s=o.length,f=d;return void 0!==a&&(a=i(a),f=v),e.call(c,f,(function(e,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var l=h(f/10);return 0===l?e:l<=s?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):e}c=o[f-1]}return void 0===c?"":c}))}}))},S58s:function(t,e,n){var r=n("wA6s"),o=n("pn4C"),i=Math.cosh,a=Math.abs,c=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(t){var e=o(a(t)-1)+1;return(e+1/(e*c*c))*(c/2)}})},SC6u:function(t,e,n){"use strict";var r=n("wA6s"),o=n("qjkP");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},SDMg:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"SM6+":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},SNUk:function(t,e,n){"use strict";var r=n("wA6s"),o=n("ocAm"),i=n("Ew/G"),a=n("g9hI"),c=n("T69T"),u=n("U+kB"),s=n("i85Z"),f=n("rG8t"),l=n("OG5q"),p=n("erNl"),h=n("6XUM"),v=n("F26l"),d=n("VCQ8"),g=n("EMtK"),y=n("LdO1"),m=n("uSMZ"),b=n("2RDa"),w=n("ZRqE"),E=n("KkqW"),k=n("TzEA"),_=n("busr"),x=n("7gGY"),S=n("/Ybd"),T=n("gn9T"),O=n("aJMj"),A=n("2MGJ"),M=n("yIiL"),C=n("/AsP"),j=n("yQMY"),P=n("SDMg"),I=n("m41k"),D=n("aGCb"),N=n("94Vg"),R=n("shqn"),L=n("XH/I"),F=n("kk6e").forEach,G=C("hidden"),Z=I("toPrimitive"),z=L.set,q=L.getterFor("Symbol"),U=Object.prototype,X=o.Symbol,H=i("JSON","stringify"),V=x.f,Y=S.f,W=k.f,B=T.f,J=M("symbols"),Q=M("op-symbols"),K=M("string-to-symbol-registry"),$=M("symbol-to-string-registry"),tt=M("wks"),et=o.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=c&&f((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=V(U,e);r&&delete U[e],Y(t,e,n),r&&t!==U&&Y(U,e,r)}:Y,ot=function(t,e){var n=J[t]=b(X.prototype);return z(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},it=s?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof X},at=function(t,e,n){t===U&&at(Q,e,n),v(t);var r=y(e,!0);return v(n),l(J,r)?(n.enumerable?(l(t,G)&&t[G][r]&&(t[G][r]=!1),n=b(n,{enumerable:m(0,!1)})):(l(t,G)||Y(t,G,m(1,{})),t[G][r]=!0),rt(t,r,n)):Y(t,r,n)},ct=function(t,e){v(t);var n=g(e),r=w(n).concat(lt(n));return F(r,(function(e){c&&!ut.call(n,e)||at(t,e,n[e])})),t},ut=function(t){var e=y(t,!0),n=B.call(this,e);return!(this===U&&l(J,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(J,e)||l(this,G)&&this[G][e])||n)},st=function(t,e){var n=g(t),r=y(e,!0);if(n!==U||!l(J,r)||l(Q,r)){var o=V(n,r);return!o||!l(J,r)||l(n,G)&&n[G][r]||(o.enumerable=!0),o}},ft=function(t){var e=W(g(t)),n=[];return F(e,(function(t){l(J,t)||l(j,t)||n.push(t)})),n},lt=function(t){var e=t===U,n=W(e?Q:g(t)),r=[];return F(n,(function(t){!l(J,t)||e&&!l(U,t)||r.push(J[t])})),r};u||(A((X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=P(t),n=function(t){this===U&&n.call(Q,t),l(this,G)&&l(this[G],e)&&(this[G][e]=!1),rt(this,e,m(1,t))};return c&&nt&&rt(U,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return q(this).tag})),A(X,"withoutSetter",(function(t){return ot(P(t),t)})),T.f=ut,S.f=at,x.f=st,E.f=k.f=ft,_.f=lt,D.f=function(t){return ot(I(t),t)},c&&(Y(X.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||A(U,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:X}),F(w(tt),(function(t){N(t)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(l(K,e))return K[e];var n=X(e);return K[e]=n,$[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l($,t))return $[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:at,defineProperties:ct,getOwnPropertyDescriptor:st}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:f((function(){_.f(1)}))},{getOwnPropertySymbols:function(t){return _.f(d(t))}}),H&&r({target:"JSON",stat:!0,forced:!u||f((function(){var t=X();return"[null]"!=H([t])||"{}"!=H({a:t})||"{}"!=H(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(h(e)||void 0!==t)&&!it(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!it(e))return e}),o[1]=e,H.apply(null,o)}}),X.prototype[Z]||O(X.prototype,Z,X.prototype.valueOf),R(X,"Symbol"),j[G]=!0},SdaC:function(t,e,n){var r=n("wA6s"),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?i:o)(t)}})},SkA5:function(t,e,n){n("pv2x"),n("SuFq"),n("PzqY"),n("rBZX"),n("XUE8"),n("nkod"),n("f3jH"),n("x2An"),n("25bX"),n("G/JM"),n("1t3B"),n("ftMj"),n("i5pp");var r=n("Qo9l");t.exports=r.Reflect},SuFq:function(t,e,n){var r=n("I+eb"),o=n("0GbY"),i=n("HAuM"),a=n("glrk"),c=n("hh1v"),u=n("fHMY"),s=n("BTho"),f=n("0Dky"),l=o("Reflect","construct"),p=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),h=!f((function(){l((function(){}))})),v=p||h;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(h&&!p)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var o=n.prototype,f=u(c(o)?o:Object.prototype),v=Function.apply.call(t,f,e);return c(v)?v:f}})},"T/Kj":function(t,e,n){var r=n("Ew/G");t.exports=r("navigator","userAgent")||""},T4tC:function(t,e,n){var r=n("T69T"),o=n("ocAm"),i=n("MkZA"),a=n("K6ZX"),c=n("/Ybd").f,u=n("KkqW").f,s=n("1p6F"),f=n("x0kV"),l=n("JkSk"),p=n("2MGJ"),h=n("rG8t"),v=n("XH/I").set,d=n("JHhb"),g=n("m41k")("match"),y=o.RegExp,m=y.prototype,b=/a/g,w=/a/g,E=new y(b)!==b,k=l.UNSUPPORTED_Y;if(r&&i("RegExp",!E||k||h((function(){return w[g]=!1,y(b)!=b||y(w)==w||"/a/i"!=y(b,"i")})))){for(var _=function(t,e){var n,r=this instanceof _,o=s(t),i=void 0===e;if(!r&&o&&t.constructor===_&&i)return t;E?o&&!i&&(t=t.source):t instanceof _&&(i&&(e=f.call(t)),t=t.source),k&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var c=a(E?new y(t,e):y(t,e),r?this:m,_);return k&&n&&v(c,{sticky:n}),c},x=function(t){t in _||c(_,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},S=u(y),T=0;S.length>T;)x(S[T++]);m.constructor=_,_.prototype=m,p(o,"RegExp",_)}d("RegExp")},T69T:function(t,e,n){var r=n("rG8t");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},TWQb:function(t,e,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},TzEA:function(t,e,n){var r=n("EMtK"),o=n("KkqW").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(e){return a.slice()}}(t):o(r(t))}},"U+kB":function(t,e,n){var r=n("rG8t");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},UMSQ:function(t,e,n){var r=n("ppGB"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},UTVS:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"V+F/":function(t,e,n){n("94Vg")("isConcatSpreadable")},VCQ8:function(t,e,n){var r=n("hmpk");t.exports=function(t){return Object(r(t))}},Vi1R:function(t,e,n){n("94Vg")("split")},ViWx:function(t,e,n){"use strict";var r=n("wdMf"),o=n("nIH4");t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},VmbE:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("strike")},{strike:function(){return o(this,"strike","","")}})},VpIT:function(t,e,n){var r=n("xDBR"),o=n("xs3f");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(t,e,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},W0ke:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},WEX0:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("link")},{link:function(t){return o(this,"a","href",t)}})},WEpO:function(t,e,n){var r=n("wA6s"),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},WKvG:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("fontcolor")},{fontcolor:function(t){return o(this,"font","color",t)}})},WLa2:function(t,e,n){var r=n("wA6s"),o=n("6XUM"),i=n("M7Xk").onFreeze,a=n("cZY6"),c=n("rG8t"),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:c((function(){u(1)})),sham:!a},{preventExtensions:function(t){return u&&o(t)?u(i(t)):t}})},WijE:function(t,e,n){"use strict";var r=n("wA6s"),o=n("ZJLg"),i=n("wIVT"),a=n("7/lX"),c=n("shqn"),u=n("aJMj"),s=n("2MGJ"),f=n("m41k"),l=n("g9hI"),p=n("pz+c"),h=n("G1Vw"),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=f("iterator"),y=function(){return this};t.exports=function(t,e,n,f,h,m,b){o(n,e,f);var w,E,k,_=function(t){if(t===h&&A)return A;if(!d&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},x=e+" Iterator",S=!1,T=t.prototype,O=T[g]||T["@@iterator"]||h&&T[h],A=!d&&O||_(h),M="Array"==e&&T.entries||O;if(M&&(w=i(M.call(new t)),v!==Object.prototype&&w.next&&(l||i(w)===v||(a?a(w,v):"function"!=typeof w[g]&&u(w,g,y)),c(w,x,!0,!0),l&&(p[x]=y))),"values"==h&&O&&"values"!==O.name&&(S=!0,A=function(){return O.call(this)}),l&&!b||T[g]===A||u(T,g,A),p[e]=A,h)if(E={values:_("values"),keys:m?A:_("keys"),entries:_("entries")},b)for(k in E)(d||S||!(k in T))&&s(T,k,E[k]);else r({target:e,proto:!0,forced:d||S},E);return E}},WnNu:function(t,e,n){n("wA6s")({target:"Object",stat:!0},{setPrototypeOf:n("7/lX")})},XEin:function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").some,i=n("6CJb"),a=n("w2hq"),c=i("some"),u=a("some");r({target:"Array",proto:!0,forced:!c||!u},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},XGwC:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"XH/I":function(t,e,n){var r,o,i,a=n("yaK9"),c=n("ocAm"),u=n("6XUM"),s=n("aJMj"),f=n("OG5q"),l=n("/AsP"),p=n("yQMY");if(a){var h=new(0,c.WeakMap),v=h.get,d=h.has,g=h.set;r=function(t,e){return g.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return d.call(h,t)}}else{var y=l("state");p[y]=!0,r=function(t,e){return s(t,y,e),e},o=function(t){return f(t,y)?t[y]:{}},i=function(t){return f(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},XUE8:function(t,e,n){var r=n("I+eb"),o=n("hh1v"),i=n("glrk"),a=n("UTVS"),c=n("Bs8V"),u=n("4WOD");r({target:"Reflect",stat:!0},{get:function t(e,n){var r,s,f=arguments.length<3?e:arguments[2];return i(e)===f?e[n]:(r=c.f(e,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(f):o(s=u(e))?t(s,n,f):void 0}})},XdSI:function(t,e,n){var r=n("T69T"),o=n("rG8t"),i=n("qx7X");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},Xm88:function(t,e,n){var r=n("wA6s"),o=n("rCRE");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},Y5OV:function(t,e,n){var r=n("aJMj"),o=n("CW9j"),i=n("m41k")("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},YOJ4:function(t,e,n){n("94Vg")("matchAll")},Yg8j:function(t,e,n){var r=n("ocAm").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},Yu3F:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("bold")},{bold:function(){return o(this,"b","","")}})},ZBUp:function(t,e,n){n("wA6s")({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},ZJLg:function(t,e,n){"use strict";var r=n("G1Vw").IteratorPrototype,o=n("2RDa"),i=n("uSMZ"),a=n("shqn"),c=n("pz+c"),u=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,s,!1,!0),c[s]=u,t}},ZQqA:function(t,e,n){n("94Vg")("toStringTag")},ZRqE:function(t,e,n){var r=n("vVmn"),o=n("aAjO");t.exports=Object.keys||function(t){return r(t,o)}},aAjO:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},aGCb:function(t,e,n){var r=n("m41k");e.f=r},aJMj:function(t,e,n){var r=n("T69T"),o=n("/Ybd"),i=n("uSMZ");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},aTTg:function(t,e,n){var r=n("wA6s"),o=n("pn4C"),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},aVe3:function(t,e){(function(){"use strict";var t=window.Document.prototype.createElement,e=window.Document.prototype.createElementNS,n=window.Document.prototype.importNode,r=window.Document.prototype.prepend,o=window.Document.prototype.append,i=window.DocumentFragment.prototype.prepend,a=window.DocumentFragment.prototype.append,c=window.Node.prototype.cloneNode,u=window.Node.prototype.appendChild,s=window.Node.prototype.insertBefore,f=window.Node.prototype.removeChild,l=window.Node.prototype.replaceChild,p=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),h=window.Element.prototype.attachShadow,v=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),d=window.Element.prototype.getAttribute,g=window.Element.prototype.setAttribute,y=window.Element.prototype.removeAttribute,m=window.Element.prototype.getAttributeNS,b=window.Element.prototype.setAttributeNS,w=window.Element.prototype.removeAttributeNS,E=window.Element.prototype.insertAdjacentElement,k=window.Element.prototype.insertAdjacentHTML,_=window.Element.prototype.prepend,x=window.Element.prototype.append,S=window.Element.prototype.before,T=window.Element.prototype.after,O=window.Element.prototype.replaceWith,A=window.Element.prototype.remove,M=window.HTMLElement,C=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),j=window.HTMLElement.prototype.insertAdjacentElement,P=window.HTMLElement.prototype.insertAdjacentHTML,I=new Set;function D(t){var e=I.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!e&&t}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(t){return I.add(t)}));var N=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function R(t){var e=t.isConnected;if(void 0!==e)return e;if(N(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function L(t){var e=t.children;if(e)return Array.prototype.slice.call(e);for(e=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&e.push(t);return e}function F(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function G(){var t=!(null==it||!it.noDocumentConstructionObserver),e=!(null==it||!it.shadyDomFastWalk);this.h=[],this.a=[],this.f=!1,this.shadyDomFastWalk=e,this.C=!t}function Z(t,e,n,r){var o=window.ShadyDom;if(t.shadyDomFastWalk&&o&&o.inUse){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e.querySelectorAll)for(t=o.nativeMethods.querySelectorAll.call(e,"*"),e=0;e=51&&/native code/.test(G))return!1;var t=G.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[D]=e,!(t.then((function(){}))instanceof e)})),B=W||!k((function(t){G.all(t).catch((function(){}))})),J=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Q=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;S((function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var c,u,s,f=r[a++],l=i?f.ok:f.fail,p=f.resolve,h=f.reject,v=f.domain;try{l?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?c=o:(v&&v.enter(),c=l(o),v&&(v.exit(),s=!0)),c===f.promise?h(Z("Promise-chain cycle")):(u=J(c))?u.call(c,p,h):p(c)):h(o)}catch(d){v&&!s&&v.exit(),h(d)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&$(t,e)}))}},K=function(t,e,n){var r,o;Y?((r=z.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},(o=s["on"+t])?o(r):"unhandledrejection"===t&&O("Unhandled promise rejection",n)},$=function(t,e){x.call(s,(function(){var n,r=e.value;if(tt(e)&&(n=M((function(){V?q.emit("unhandledRejection",r,t):K("unhandledrejection",t,r)})),e.rejection=V||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){x.call(s,(function(){V?q.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Q(t,e,!0))},ot=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Z("Promise can't be resolved itself");var o=J(n);o?S((function(){var r={done:!1};try{o.call(n,nt(ot,t,r,e),nt(rt,t,r,e))}catch(i){rt(t,r,i,e)}})):(e.value=n,e.state=1,Q(t,e,!1))}catch(i){rt(t,{done:!1},i,e)}}};W&&(G=function(t){m(this,G,N),y(t),r.call(this);var e=R(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(n){rt(this,e,n)}},(r=function(t){L(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(G.prototype,{then:function(t,e){var n=F(this),r=X(_(this,G));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=V?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=R(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},A.f=X=function(t){return t===G||t===i?new o(t):H(t)},u||"function"!=typeof l||(a=l.prototype.then,p(l.prototype,"then",(function(t,e){var n=this;return new G((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof U&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T(G,U.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:W},{Promise:G}),v(G,N,!1,!0),d(N),i=f(N),c({target:N,stat:!0,forced:W},{reject:function(t){var e=X(this);return e.reject.call(void 0,t),e.promise}}),c({target:N,stat:!0,forced:u||W},{resolve:function(t){return T(u&&this===i?G:this,t)}}),c({target:N,stat:!0,forced:B},{all:function(t){var e=this,n=X(e),r=n.resolve,o=n.reject,i=M((function(){var n=y(e.resolve),i=[],a=0,c=1;E(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=X(e),r=n.reject,o=M((function(){var o=y(e.resolve);E(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},busE:function(t,e,n){var r=n("2oRo"),o=n("kRJp"),i=n("UTVS"),a=n("zk60"),c=n("iSVu"),u=n("afO8"),s=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(u?!p&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},busr:function(t,e){e.f=Object.getOwnPropertySymbols},"c/8x":function(t,e,n){n("94Vg")("asyncIterator")},cJLW:function(t,e,n){var r=n("wA6s"),o=n("T69T");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n("/Ybd").f})},cZY6:function(t,e,n){var r=n("rG8t");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},cwa4:function(t,e,n){var r=n("rG8t");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},d8Sw:function(t,e,n){var r=n("rG8t");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},"dBg+":function(t,e){e.f=Object.getOwnPropertySymbols},dI74:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("sup")},{sup:function(){return o(this,"sup","","")}})},dPn5:function(t,e,n){"use strict";var r=n("G7bs").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"eDl+":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},erNl:function(t,e,n){var r=n("ezU2");t.exports=Array.isArray||function(t){return"Array"==r(t)}},ewvW:function(t,e,n){var r=n("HYAF");t.exports=function(t){return Object(r(t))}},ezU2:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},f3jH:function(t,e,n){var r=n("I+eb"),o=n("glrk"),i=n("4WOD");r({target:"Reflect",stat:!0,sham:!n("4Xet")},{getPrototypeOf:function(t){return i(o(t))}})},f5p1:function(t,e,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(t,e,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),c=n("0BK2"),u=n("G+Rx"),s=n("zBJ4"),f=n("93I0")("IE_PROTO"),l=function(){},p=function(t){return"