mongoku 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -32
- package/build/client/_app/immutable/assets/0.BHsXFfsc.css +1 -0
- package/build/client/_app/immutable/assets/0.BHsXFfsc.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BHsXFfsc.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.CRKE8WvY.css +1 -0
- package/build/client/_app/immutable/assets/3.CRKE8WvY.css.br +2 -0
- package/build/client/_app/immutable/assets/3.CRKE8WvY.css.gz +0 -0
- package/build/client/_app/immutable/assets/6.DawdmtJd.css +1 -0
- package/build/client/_app/immutable/assets/6.DawdmtJd.css.br +2 -0
- package/build/client/_app/immutable/assets/6.DawdmtJd.css.gz +0 -0
- package/build/client/_app/immutable/assets/Panel.BDHMtO-3.css +1 -0
- package/build/client/_app/immutable/assets/Panel.BDHMtO-3.css.br +0 -0
- package/build/client/_app/immutable/assets/Panel.BDHMtO-3.css.gz +0 -0
- package/build/client/_app/immutable/assets/PrettyJson.CtngcfyW.css +1 -0
- package/build/client/_app/immutable/assets/PrettyJson.CtngcfyW.css.br +0 -0
- package/build/client/_app/immutable/assets/PrettyJson.CtngcfyW.css.gz +0 -0
- package/build/client/_app/immutable/assets/cuprum-cyrillic-400-normal.Cnibl3-L.woff2 +0 -0
- package/build/client/_app/immutable/assets/cuprum-cyrillic-400-normal.RKIjpA76.woff +0 -0
- package/build/client/_app/immutable/assets/cuprum-cyrillic-ext-400-normal.CT5q4ZVh.woff2 +0 -0
- package/build/client/_app/immutable/assets/cuprum-cyrillic-ext-400-normal.iCCFJ4Gn.woff +0 -0
- package/build/client/_app/immutable/assets/cuprum-latin-400-normal.Cbwtr8a4.woff +0 -0
- package/build/client/_app/immutable/assets/cuprum-latin-400-normal.CjFvNwMJ.woff2 +0 -0
- package/build/client/_app/immutable/assets/cuprum-latin-ext-400-normal.BWTJtpjo.woff2 +0 -0
- package/build/client/_app/immutable/assets/cuprum-latin-ext-400-normal.BZXayy47.woff +0 -0
- package/build/client/_app/immutable/assets/cuprum-vietnamese-400-normal.uXRi1gw5.woff +0 -0
- package/build/client/_app/immutable/assets/rajdhani-devanagari-400-normal.BdIzgbsr.woff +0 -0
- package/build/client/_app/immutable/assets/rajdhani-devanagari-400-normal.CTuj2HZW.woff2 +0 -0
- package/build/client/_app/immutable/assets/rajdhani-latin-400-normal.C6_q4usG.woff +0 -0
- package/build/client/_app/immutable/assets/rajdhani-latin-400-normal.CurJOxDW.woff2 +0 -0
- package/build/client/_app/immutable/assets/rajdhani-latin-ext-400-normal.DACPYgMx.woff2 +0 -0
- package/build/client/_app/immutable/assets/rajdhani-latin-ext-400-normal.Der7ynDE.woff +0 -0
- package/build/client/_app/immutable/chunks/B-Z1NsR7.js +1 -0
- package/build/client/_app/immutable/chunks/B-Z1NsR7.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-Z1NsR7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEuO9qGi.js +1 -0
- package/build/client/_app/immutable/chunks/BEuO9qGi.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEuO9qGi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BN_N9-2s.js +1 -0
- package/build/client/_app/immutable/chunks/BN_N9-2s.js.br +0 -0
- package/build/client/_app/immutable/chunks/BN_N9-2s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BuIrCFA_.js +1 -0
- package/build/client/_app/immutable/chunks/BuIrCFA_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuIrCFA_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C9b4uNov.js +1 -0
- package/build/client/_app/immutable/chunks/C9b4uNov.js.br +0 -0
- package/build/client/_app/immutable/chunks/C9b4uNov.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIYBIyvN.js +1 -0
- package/build/client/_app/immutable/chunks/CIYBIyvN.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIYBIyvN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWUhQKKC.js +1 -0
- package/build/client/_app/immutable/chunks/CWUhQKKC.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWUhQKKC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrJSDly5.js +2 -0
- package/build/client/_app/immutable/chunks/CrJSDly5.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrJSDly5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRy_44ib.js +1 -0
- package/build/client/_app/immutable/chunks/DRy_44ib.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRy_44ib.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DS5yzhLt.js +1 -0
- package/build/client/_app/immutable/chunks/DS5yzhLt.js.br +0 -0
- package/build/client/_app/immutable/chunks/DS5yzhLt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZSJW-Zm.js +1 -0
- package/build/client/_app/immutable/chunks/DZSJW-Zm.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZSJW-Zm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dbyirw23.js +14 -0
- package/build/client/_app/immutable/chunks/Dbyirw23.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dbyirw23.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DsnmJJEf.js +1 -0
- package/build/client/_app/immutable/chunks/DsnmJJEf.js.br +2 -0
- package/build/client/_app/immutable/chunks/DsnmJJEf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DzSHMQR7.js +1 -0
- package/build/client/_app/immutable/chunks/DzSHMQR7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DzSHMQR7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/W-qL5_8w.js +1 -0
- package/build/client/_app/immutable/chunks/W-qL5_8w.js.br +0 -0
- package/build/client/_app/immutable/chunks/W-qL5_8w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/aB6hH3ax.js +3 -0
- package/build/client/_app/immutable/chunks/aB6hH3ax.js.br +0 -0
- package/build/client/_app/immutable/chunks/aB6hH3ax.js.gz +0 -0
- package/build/client/_app/immutable/chunks/nJ6DKbk8.js +1 -0
- package/build/client/_app/immutable/chunks/nJ6DKbk8.js.br +0 -0
- package/build/client/_app/immutable/chunks/nJ6DKbk8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zeTqHWB5.js +2 -0
- package/build/client/_app/immutable/chunks/zeTqHWB5.js.br +0 -0
- package/build/client/_app/immutable/chunks/zeTqHWB5.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CW91YXu8.js +2 -0
- package/build/client/_app/immutable/entry/app.CW91YXu8.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CW91YXu8.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CidwPVgO.js +1 -0
- package/build/client/_app/immutable/entry/start.CidwPVgO.js.br +2 -0
- package/build/client/_app/immutable/entry/start.CidwPVgO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.B2lBDs71.js +1 -0
- package/build/client/_app/immutable/nodes/0.B2lBDs71.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.B2lBDs71.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CueZCvtl.js +1 -0
- package/build/client/_app/immutable/nodes/1.CueZCvtl.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CueZCvtl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.alYAlI3j.js +1 -0
- package/build/client/_app/immutable/nodes/3.alYAlI3j.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.alYAlI3j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BqBphmVX.js +1 -0
- package/build/client/_app/immutable/nodes/4.BqBphmVX.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BqBphmVX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BkAWRgl4.js +1 -0
- package/build/client/_app/immutable/nodes/5.BkAWRgl4.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BkAWRgl4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.KI4mq5ln.js +1 -0
- package/build/client/_app/immutable/nodes/6.KI4mq5ln.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.KI4mq5ln.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Brjrw0K8.js +1 -0
- package/build/client/_app/immutable/nodes/7.Brjrw0K8.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Brjrw0K8.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/robots.txt +3 -0
- package/build/env.js +45 -0
- package/build/handler.js +1376 -0
- package/build/index.js +334 -0
- package/build/server/chunks/0-BGoFMRn2.js +21 -0
- package/build/server/chunks/0-BGoFMRn2.js.map +1 -0
- package/build/server/chunks/1-Ch0AY58K.js +9 -0
- package/build/server/chunks/1-Ch0AY58K.js.map +1 -0
- package/build/server/chunks/2-B39zPvzn.js +19 -0
- package/build/server/chunks/2-B39zPvzn.js.map +1 -0
- package/build/server/chunks/3-Bmk9Qof9.js +69 -0
- package/build/server/chunks/3-Bmk9Qof9.js.map +1 -0
- package/build/server/chunks/4-DnpScx2e.js +57 -0
- package/build/server/chunks/4-DnpScx2e.js.map +1 -0
- package/build/server/chunks/5-Bw8bTTBj.js +39 -0
- package/build/server/chunks/5-Bw8bTTBj.js.map +1 -0
- package/build/server/chunks/6-D8zNoyW_.js +197 -0
- package/build/server/chunks/6-D8zNoyW_.js.map +1 -0
- package/build/server/chunks/7-Cim4qVL3.js +42 -0
- package/build/server/chunks/7-Cim4qVL3.js.map +1 -0
- package/build/server/chunks/JsonEncoder-jJ2OBaud.js +62 -0
- package/build/server/chunks/JsonEncoder-jJ2OBaud.js.map +1 -0
- package/build/server/chunks/Panel-DTdYk-gk.js +37 -0
- package/build/server/chunks/Panel-DTdYk-gk.js.map +1 -0
- package/build/server/chunks/PrettyJson-wIuHvehp.js +290 -0
- package/build/server/chunks/PrettyJson-wIuHvehp.js.map +1 -0
- package/build/server/chunks/TooltipTable-J278e1CA.js +15 -0
- package/build/server/chunks/TooltipTable-J278e1CA.js.map +1 -0
- package/build/server/chunks/_layout.svelte-D7RD9tLN.js +108 -0
- package/build/server/chunks/_layout.svelte-D7RD9tLN.js.map +1 -0
- package/build/server/chunks/_page.svelte-4PYYtPii.js +119 -0
- package/build/server/chunks/_page.svelte-4PYYtPii.js.map +1 -0
- package/build/server/chunks/_page.svelte-Be5VTn1e.js +82 -0
- package/build/server/chunks/_page.svelte-Be5VTn1e.js.map +1 -0
- package/build/server/chunks/_page.svelte-DIPUjSjm.js +118 -0
- package/build/server/chunks/_page.svelte-DIPUjSjm.js.map +1 -0
- package/build/server/chunks/_page.svelte-DZ59Sr3N.js +192 -0
- package/build/server/chunks/_page.svelte-DZ59Sr3N.js.map +1 -0
- package/build/server/chunks/_page.svelte-sdKGQrEF.js +91 -0
- package/build/server/chunks/_page.svelte-sdKGQrEF.js.map +1 -0
- package/build/server/chunks/_server.ts-BIRebnb3.js +20 -0
- package/build/server/chunks/_server.ts-BIRebnb3.js.map +1 -0
- package/build/server/chunks/_server.ts-MnKJDybo.js +19 -0
- package/build/server/chunks/_server.ts-MnKJDybo.js.map +1 -0
- package/build/server/chunks/_server.ts-Tog8k3Mh.js +52 -0
- package/build/server/chunks/_server.ts-Tog8k3Mh.js.map +1 -0
- package/build/server/chunks/client-BZtxOgbR.js +7 -0
- package/build/server/chunks/client-BZtxOgbR.js.map +1 -0
- package/build/server/chunks/client2-LilSGYJA.js +26 -0
- package/build/server/chunks/client2-LilSGYJA.js.map +1 -0
- package/build/server/chunks/context-BU6gUbSI.js +137 -0
- package/build/server/chunks/context-BU6gUbSI.js.map +1 -0
- package/build/server/chunks/error.svelte-BfneeC-d.js +16 -0
- package/build/server/chunks/error.svelte-BfneeC-d.js.map +1 -0
- package/build/server/chunks/exports-DiyTWREe.js +198 -0
- package/build/server/chunks/exports-DiyTWREe.js.map +1 -0
- package/build/server/chunks/filters-CbFjTNFI.js +25 -0
- package/build/server/chunks/filters-CbFjTNFI.js.map +1 -0
- package/build/server/chunks/hooks.server-DNhdbQNi.js +7 -0
- package/build/server/chunks/hooks.server-DNhdbQNi.js.map +1 -0
- package/build/server/chunks/index-Djsj11qr.js +214 -0
- package/build/server/chunks/index-Djsj11qr.js.map +1 -0
- package/build/server/chunks/index-XFKuhGxM.js +68 -0
- package/build/server/chunks/index-XFKuhGxM.js.map +1 -0
- package/build/server/chunks/index3-CUhdJ7wv.js +24 -0
- package/build/server/chunks/index3-CUhdJ7wv.js.map +1 -0
- package/build/server/chunks/mongo-dLmCShL_.js +234 -0
- package/build/server/chunks/mongo-dLmCShL_.js.map +1 -0
- package/build/server/chunks/notifications.svelte-CrTIrfvL.js +38 -0
- package/build/server/chunks/notifications.svelte-CrTIrfvL.js.map +1 -0
- package/build/server/chunks/routing-zIlQn_LN.js +899 -0
- package/build/server/chunks/routing-zIlQn_LN.js.map +1 -0
- package/build/server/chunks/server2-DfQrrcsk.js +23 -0
- package/build/server/chunks/server2-DfQrrcsk.js.map +1 -0
- package/build/server/chunks/state.svelte-s-CFCWQX.js +9 -0
- package/build/server/chunks/state.svelte-s-CFCWQX.js.map +1 -0
- package/build/server/index.js +7451 -0
- package/build/server/index.js.map +1 -0
- package/build/server/manifest.js +107 -0
- package/build/server/manifest.js.map +1 -0
- package/build/shims.js +32 -0
- package/dist/cli.js +118 -47
- package/package.json +80 -38
- package/dist/app/3rdpartylicenses.txt +0 -403
- package/dist/app/index.html +0 -14
- package/dist/app/main.b6ca51a4b392e286bb41.js +0 -1
- package/dist/app/polyfills.9d6088873d2a3c33ec93.js +0 -1
- package/dist/app/runtime.26209474bfa8dc87a77c.js +0 -1
- package/dist/app/styles.9e36674febaa92f30d0e.css +0 -6
- package/dist/lib/Collection.js +0 -74
- package/dist/lib/Database.js +0 -55
- package/dist/lib/Factory.js +0 -31
- package/dist/lib/HostsManager.js +0 -79
- package/dist/lib/JsonEncoder.js +0 -59
- package/dist/lib/MongoManager.js +0 -119
- package/dist/lib/Server.js +0 -45
- package/dist/lib/Utils.js +0 -20
- package/dist/routes/api.js +0 -191
- package/dist/server.js +0 -56
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+U4B":function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(8),s=n(15);function a(t,e,n){var s=null,a=function(t,e){n&&n(t,e),s&&s.visit(t,e)},l="function"==typeof n?a:null,u=!1;if(e){var c="boolean"==typeof e.attachComment&&e.attachComment;((u="boolean"==typeof e.comment&&e.comment)||c)&&((s=new r.CommentHandler).attach=c,e.comment=!0,l=a)}var h,p=!1;e&&"string"==typeof e.sourceType&&(p="module"===e.sourceType),h=e&&"boolean"==typeof e.jsx&&e.jsx?new i.JSXParser(t,e,l):new o.Parser(t,e,l);var d=p?h.parseModule():h.parseScript();return u&&s&&(d.comments=s.comments),h.config.tokens&&(d.tokens=h.tokens),h.config.tolerant&&(d.errors=h.errorHandler.errors),d}e.parse=a,e.parseModule=function(t,e,n){var r=e||{};return r.sourceType="module",a(t,r,n)},e.parseScript=function(t,e,n){var r=e||{};return r.sourceType="script",a(t,r,n)},e.tokenize=function(t,e,n){var r,i=new s.Tokenizer(t,e);r=[];try{for(;;){var o=i.getNextToken();if(!o)break;n&&(o=n(o)),r.push(o)}}catch(a){i.errorHandler.tolerate(a)}return i.errorHandler.tolerant&&(r.errors=i.errors()),r};var l=n(2);e.Syntax=l.Syntax,e.version="4.0.1"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=function(){function t(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return t.prototype.insertInnerComments=function(t,e){if(t.type===r.Syntax.BlockStatement&&0===t.body.length){for(var n=[],i=this.leading.length-1;i>=0;--i){var o=this.leading[i];e.end.offset>=o.start&&(n.unshift(o.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(t.innerComments=n)}},t.prototype.findTrailingComments=function(t){var e=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=t.end.offset&&e.unshift(r.comment)}return this.trailing.length=0,e}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var o=i.node.trailingComments[0];o&&o.range[0]>=t.end.offset&&(e=i.node.trailingComments,delete i.node.trailingComments)}return e},t.prototype.findLeadingComments=function(t){for(var e,n=[];this.stack.length>0&&(o=this.stack[this.stack.length-1])&&o.start>=t.start.offset;)e=o.node,this.stack.pop();if(e){for(var r=(e.leadingComments?e.leadingComments.length:0)-1;r>=0;--r){var i=e.leadingComments[r];i.range[1]<=t.start.offset&&(n.unshift(i),e.leadingComments.splice(r,1))}return e.leadingComments&&0===e.leadingComments.length&&delete e.leadingComments,n}for(r=this.leading.length-1;r>=0;--r){var o;(o=this.leading[r]).start<=t.start.offset&&(n.unshift(o.comment),this.leading.splice(r,1))}return n},t.prototype.visitNode=function(t,e){if(!(t.type===r.Syntax.Program&&t.body.length>0)){this.insertInnerComments(t,e);var n=this.findTrailingComments(e),i=this.findLeadingComments(e);i.length>0&&(t.leadingComments=i),n.length>0&&(t.trailingComments=n),this.stack.push({node:t,start:e.start.offset})}},t.prototype.visitComment=function(t,e){var n="L"===t.type[0]?"Line":"Block",r={type:n,value:t.value};if(t.range&&(r.range=t.range),t.loc&&(r.loc=t.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:t.value,range:[e.start.offset,e.end.offset]},start:e.start.offset};t.loc&&(i.comment.loc=t.loc),t.type=n,this.leading.push(i),this.trailing.push(i)}},t.prototype.visit=function(t,e){"LineComment"===t.type?this.visitComment(t,e):"BlockComment"===t.type?this.visitComment(t,e):this.attach&&this.visitNode(t,e)},t}();e.CommentHandler=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),s=n(5),a=n(6),l=n(7),u=n(8),c=n(13),h=n(14);function p(t){var e;switch(t.type){case a.JSXSyntax.JSXIdentifier:e=t.name;break;case a.JSXSyntax.JSXNamespacedName:var n=t;e=p(n.namespace)+":"+p(n.name);break;case a.JSXSyntax.JSXMemberExpression:var r=t;e=p(r.object)+"."+p(r.property)}return e}c.TokenName[100]="JSXIdentifier",c.TokenName[101]="JSXText";var d=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():t.prototype.parsePrimaryExpression.call(this)},e.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},e.prototype.finishJSX=function(){this.nextToken()},e.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},e.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},e.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},e.prototype.scanXHTMLEntity=function(t){for(var e="&",n=!0,r=!1,i=!1,s=!1;!this.scanner.eof()&&n&&!r;){var a=this.scanner.source[this.scanner.index];if(a===t)break;if(r=";"===a,e+=a,++this.scanner.index,!r)switch(e.length){case 2:i="#"===a;break;case 3:i&&(n=(s="x"===a)||o.Character.isDecimalDigit(a.charCodeAt(0)),i=i&&!s);break;default:n=(n=n&&!(i&&!o.Character.isDecimalDigit(a.charCodeAt(0))))&&!(s&&!o.Character.isHexDigit(a.charCodeAt(0)))}}if(n&&r&&e.length>2){var l=e.substr(1,e.length-2);i&&l.length>1?e=String.fromCharCode(parseInt(l.substr(1),10)):s&&l.length>2?e=String.fromCharCode(parseInt("0"+l.substr(1),16)):i||s||!h.XHTMLEntities[l]||(e=h.XHTMLEntities[l])}return e},e.prototype.lexJSX=function(){var t=this.scanner.source.charCodeAt(this.scanner.index);if(60===t||62===t||47===t||58===t||61===t||123===t||125===t)return{type:7,value:i=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===t||39===t){for(var e=this.scanner.index,n=this.scanner.source[this.scanner.index++],r="";!this.scanner.eof()&&(l=this.scanner.source[this.scanner.index++])!==n;)r+="&"===l?this.scanXHTMLEntity(n):l;return{type:8,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}if(46===t){var i,s=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2);return e=this.scanner.index,this.scanner.index+=(i=46===s&&46===a?"...":".").length,{type:7,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}if(96===t)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(o.Character.isIdentifierStart(t)&&92!==t){for(e=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var l=this.scanner.source.charCodeAt(this.scanner.index);if(o.Character.isIdentifierPart(l)&&92!==l)++this.scanner.index;else{if(45!==l)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(e,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index}}return this.scanner.lex()},e.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var t=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(t)),t},e.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var t=this.scanner.index,e="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,e+=n,o.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var r={type:101,value:e,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index};return e.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(r)),r},e.prototype.peekJSXToken=function(){var t=this.scanner.saveState();this.scanner.scanComments();var e=this.lexJSX();return this.scanner.restoreState(t),e},e.prototype.expectJSX=function(t){var e=this.nextJSXToken();7===e.type&&e.value===t||this.throwUnexpectedToken(e)},e.prototype.matchJSX=function(t){var e=this.peekJSXToken();return 7===e.type&&e.value===t},e.prototype.parseJSXIdentifier=function(){var t=this.createJSXNode(),e=this.nextJSXToken();return 100!==e.type&&this.throwUnexpectedToken(e),this.finalize(t,new s.JSXIdentifier(e.value))},e.prototype.parseJSXElementName=function(){var t=this.createJSXNode(),e=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=e;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new s.JSXNamespacedName(n,r))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=e;this.expectJSX(".");var o=this.parseJSXIdentifier();e=this.finalize(t,new s.JSXMemberExpression(i,o))}return e},e.prototype.parseJSXAttributeName=function(){var t,e=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=n;this.expectJSX(":");var i=this.parseJSXIdentifier();t=this.finalize(e,new s.JSXNamespacedName(r,i))}else t=n;return t},e.prototype.parseJSXStringLiteralAttribute=function(){var t=this.createJSXNode(),e=this.nextJSXToken();8!==e.type&&this.throwUnexpectedToken(e);var n=this.getTokenRaw(e);return this.finalize(t,new l.Literal(e.value,n))},e.prototype.parseJSXExpressionAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var e=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new s.JSXExpressionContainer(e))},e.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},e.prototype.parseJSXNameValueAttribute=function(){var t=this.createJSXNode(),e=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(t,new s.JSXAttribute(e,n))},e.prototype.parseJSXSpreadAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var e=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new s.JSXSpreadAttribute(e))},e.prototype.parseJSXAttributes=function(){for(var t=[];!this.matchJSX("/")&&!this.matchJSX(">");){var e=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();t.push(e)}return t},e.prototype.parseJSXOpeningElement=function(){var t=this.createJSXNode();this.expectJSX("<");var e=this.parseJSXElementName(),n=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new s.JSXOpeningElement(e,r,n))},e.prototype.parseJSXBoundaryElement=function(){var t=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var e=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(t,new s.JSXClosingElement(e))}var n=this.parseJSXElementName(),r=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new s.JSXOpeningElement(n,i,r))},e.prototype.parseJSXEmptyExpression=function(){var t=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(t,new s.JSXEmptyExpression)},e.prototype.parseJSXExpressionContainer=function(){var t,e=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(t=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),t=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(e,new s.JSXExpressionContainer(t))},e.prototype.parseJSXChildren=function(){for(var t=[];!this.scanner.eof();){var e=this.createJSXChildNode(),n=this.nextJSXText();if(n.start<n.end){var r=this.getTokenRaw(n),i=this.finalize(e,new s.JSXText(n.value,r));t.push(i)}if("{"!==this.scanner.source[this.scanner.index])break;var o=this.parseJSXExpressionContainer();t.push(o)}return t},e.prototype.parseComplexJSXElement=function(t){for(var e=[];!this.scanner.eof();){t.children=t.children.concat(this.parseJSXChildren());var n=this.createJSXChildNode(),r=this.parseJSXBoundaryElement();if(r.type===a.JSXSyntax.JSXOpeningElement){var i=r;if(i.selfClosing){var o=this.finalize(n,new s.JSXElement(i,[],null));t.children.push(o)}else e.push(t),t={node:n,opening:i,closing:null,children:[]}}if(r.type===a.JSXSyntax.JSXClosingElement){t.closing=r;var l=p(t.opening.name);if(l!==p(t.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",l),!(e.length>0))break;o=this.finalize(t.node,new s.JSXElement(t.opening,t.children,t.closing)),(t=e[e.length-1]).children.push(o),e.pop()}}return t},e.prototype.parseJSXElement=function(){var t=this.createJSXNode(),e=this.parseJSXOpeningElement(),n=[],r=null;if(!e.selfClosing){var i=this.parseComplexJSXElement({node:t,opening:e,closing:r,children:n});n=i.children,r=i.closing}return this.finalize(t,new s.JSXElement(e,n,r))},e.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var t=this.parseJSXElement();return this.finishJSX(),t},e.prototype.isStartOfExpression=function(){return t.prototype.isStartOfExpression.call(this)||this.match("<")},e}(u.Parser);e.JSXParser=d},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var 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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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\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-\uA7AD\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\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\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]|\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\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\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\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\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\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-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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\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\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[\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]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\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]|\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]|\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\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};e.Character={fromCodePoint:function(t){return t<65536?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))},isWhiteSpace:function(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0},isLineTerminator:function(t){return 10===t||13===t||8232===t||8233===t},isIdentifierStart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&n.NonAsciiIdentifierStart.test(e.Character.fromCodePoint(t))},isIdentifierPart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&n.NonAsciiIdentifierPart.test(e.Character.fromCodePoint(t))},isDecimalDigit:function(t){return t>=48&&t<=57},isHexDigit:function(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102},isOctalDigit:function(t){return t>=48&&t<=55}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6);e.JSXClosingElement=function(t){this.type=r.JSXSyntax.JSXClosingElement,this.name=t},e.JSXElement=function(t,e,n){this.type=r.JSXSyntax.JSXElement,this.openingElement=t,this.children=e,this.closingElement=n},e.JSXEmptyExpression=function(){this.type=r.JSXSyntax.JSXEmptyExpression},e.JSXExpressionContainer=function(t){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=t},e.JSXIdentifier=function(t){this.type=r.JSXSyntax.JSXIdentifier,this.name=t},e.JSXMemberExpression=function(t,e){this.type=r.JSXSyntax.JSXMemberExpression,this.object=t,this.property=e},e.JSXAttribute=function(t,e){this.type=r.JSXSyntax.JSXAttribute,this.name=t,this.value=e},e.JSXNamespacedName=function(t,e){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=t,this.name=e},e.JSXOpeningElement=function(t,e,n){this.type=r.JSXSyntax.JSXOpeningElement,this.name=t,this.selfClosing=e,this.attributes=n},e.JSXSpreadAttribute=function(t){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=t},e.JSXText=function(t,e){this.type=r.JSXSyntax.JSXText,this.value=t,this.raw=e}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);e.ArrayExpression=function(t){this.type=r.Syntax.ArrayExpression,this.elements=t},e.ArrayPattern=function(t){this.type=r.Syntax.ArrayPattern,this.elements=t},e.ArrowFunctionExpression=function(t,e,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=e,this.generator=!1,this.expression=n,this.async=!1},e.AssignmentExpression=function(t,e,n){this.type=r.Syntax.AssignmentExpression,this.operator=t,this.left=e,this.right=n},e.AssignmentPattern=function(t,e){this.type=r.Syntax.AssignmentPattern,this.left=t,this.right=e},e.AsyncArrowFunctionExpression=function(t,e,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=e,this.generator=!1,this.expression=n,this.async=!0},e.AsyncFunctionDeclaration=function(t,e,n){this.type=r.Syntax.FunctionDeclaration,this.id=t,this.params=e,this.body=n,this.generator=!1,this.expression=!1,this.async=!0},e.AsyncFunctionExpression=function(t,e,n){this.type=r.Syntax.FunctionExpression,this.id=t,this.params=e,this.body=n,this.generator=!1,this.expression=!1,this.async=!0},e.AwaitExpression=function(t){this.type=r.Syntax.AwaitExpression,this.argument=t},e.BinaryExpression=function(t,e,n){this.type="||"===t||"&&"===t?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=t,this.left=e,this.right=n},e.BlockStatement=function(t){this.type=r.Syntax.BlockStatement,this.body=t},e.BreakStatement=function(t){this.type=r.Syntax.BreakStatement,this.label=t},e.CallExpression=function(t,e){this.type=r.Syntax.CallExpression,this.callee=t,this.arguments=e},e.CatchClause=function(t,e){this.type=r.Syntax.CatchClause,this.param=t,this.body=e},e.ClassBody=function(t){this.type=r.Syntax.ClassBody,this.body=t},e.ClassDeclaration=function(t,e,n){this.type=r.Syntax.ClassDeclaration,this.id=t,this.superClass=e,this.body=n},e.ClassExpression=function(t,e,n){this.type=r.Syntax.ClassExpression,this.id=t,this.superClass=e,this.body=n},e.ComputedMemberExpression=function(t,e){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=t,this.property=e},e.ConditionalExpression=function(t,e,n){this.type=r.Syntax.ConditionalExpression,this.test=t,this.consequent=e,this.alternate=n},e.ContinueStatement=function(t){this.type=r.Syntax.ContinueStatement,this.label=t},e.DebuggerStatement=function(){this.type=r.Syntax.DebuggerStatement},e.Directive=function(t,e){this.type=r.Syntax.ExpressionStatement,this.expression=t,this.directive=e},e.DoWhileStatement=function(t,e){this.type=r.Syntax.DoWhileStatement,this.body=t,this.test=e},e.EmptyStatement=function(){this.type=r.Syntax.EmptyStatement},e.ExportAllDeclaration=function(t){this.type=r.Syntax.ExportAllDeclaration,this.source=t},e.ExportDefaultDeclaration=function(t){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=t},e.ExportNamedDeclaration=function(t,e,n){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=t,this.specifiers=e,this.source=n},e.ExportSpecifier=function(t,e){this.type=r.Syntax.ExportSpecifier,this.exported=e,this.local=t},e.ExpressionStatement=function(t){this.type=r.Syntax.ExpressionStatement,this.expression=t},e.ForInStatement=function(t,e,n){this.type=r.Syntax.ForInStatement,this.left=t,this.right=e,this.body=n,this.each=!1},e.ForOfStatement=function(t,e,n){this.type=r.Syntax.ForOfStatement,this.left=t,this.right=e,this.body=n},e.ForStatement=function(t,e,n,i){this.type=r.Syntax.ForStatement,this.init=t,this.test=e,this.update=n,this.body=i},e.FunctionDeclaration=function(t,e,n,i){this.type=r.Syntax.FunctionDeclaration,this.id=t,this.params=e,this.body=n,this.generator=i,this.expression=!1,this.async=!1},e.FunctionExpression=function(t,e,n,i){this.type=r.Syntax.FunctionExpression,this.id=t,this.params=e,this.body=n,this.generator=i,this.expression=!1,this.async=!1},e.Identifier=function(t){this.type=r.Syntax.Identifier,this.name=t},e.IfStatement=function(t,e,n){this.type=r.Syntax.IfStatement,this.test=t,this.consequent=e,this.alternate=n},e.ImportDeclaration=function(t,e){this.type=r.Syntax.ImportDeclaration,this.specifiers=t,this.source=e},e.ImportDefaultSpecifier=function(t){this.type=r.Syntax.ImportDefaultSpecifier,this.local=t},e.ImportNamespaceSpecifier=function(t){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=t},e.ImportSpecifier=function(t,e){this.type=r.Syntax.ImportSpecifier,this.local=t,this.imported=e},e.LabeledStatement=function(t,e){this.type=r.Syntax.LabeledStatement,this.label=t,this.body=e},e.Literal=function(t,e){this.type=r.Syntax.Literal,this.value=t,this.raw=e},e.MetaProperty=function(t,e){this.type=r.Syntax.MetaProperty,this.meta=t,this.property=e},e.MethodDefinition=function(t,e,n,i,o){this.type=r.Syntax.MethodDefinition,this.key=t,this.computed=e,this.value=n,this.kind=i,this.static=o},e.Module=function(t){this.type=r.Syntax.Program,this.body=t,this.sourceType="module"},e.NewExpression=function(t,e){this.type=r.Syntax.NewExpression,this.callee=t,this.arguments=e},e.ObjectExpression=function(t){this.type=r.Syntax.ObjectExpression,this.properties=t},e.ObjectPattern=function(t){this.type=r.Syntax.ObjectPattern,this.properties=t},e.Property=function(t,e,n,i,o,s){this.type=r.Syntax.Property,this.key=e,this.computed=n,this.value=i,this.kind=t,this.method=o,this.shorthand=s},e.RegexLiteral=function(t,e,n,i){this.type=r.Syntax.Literal,this.value=t,this.raw=e,this.regex={pattern:n,flags:i}},e.RestElement=function(t){this.type=r.Syntax.RestElement,this.argument=t},e.ReturnStatement=function(t){this.type=r.Syntax.ReturnStatement,this.argument=t},e.Script=function(t){this.type=r.Syntax.Program,this.body=t,this.sourceType="script"},e.SequenceExpression=function(t){this.type=r.Syntax.SequenceExpression,this.expressions=t},e.SpreadElement=function(t){this.type=r.Syntax.SpreadElement,this.argument=t},e.StaticMemberExpression=function(t,e){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=t,this.property=e},e.Super=function(){this.type=r.Syntax.Super},e.SwitchCase=function(t,e){this.type=r.Syntax.SwitchCase,this.test=t,this.consequent=e},e.SwitchStatement=function(t,e){this.type=r.Syntax.SwitchStatement,this.discriminant=t,this.cases=e},e.TaggedTemplateExpression=function(t,e){this.type=r.Syntax.TaggedTemplateExpression,this.tag=t,this.quasi=e},e.TemplateElement=function(t,e){this.type=r.Syntax.TemplateElement,this.value=t,this.tail=e},e.TemplateLiteral=function(t,e){this.type=r.Syntax.TemplateLiteral,this.quasis=t,this.expressions=e},e.ThisExpression=function(){this.type=r.Syntax.ThisExpression},e.ThrowStatement=function(t){this.type=r.Syntax.ThrowStatement,this.argument=t},e.TryStatement=function(t,e,n){this.type=r.Syntax.TryStatement,this.block=t,this.handler=e,this.finalizer=n},e.UnaryExpression=function(t,e){this.type=r.Syntax.UnaryExpression,this.operator=t,this.argument=e,this.prefix=!0},e.UpdateExpression=function(t,e,n){this.type=r.Syntax.UpdateExpression,this.operator=t,this.argument=e,this.prefix=n},e.VariableDeclaration=function(t,e){this.type=r.Syntax.VariableDeclaration,this.declarations=t,this.kind=e},e.VariableDeclarator=function(t,e){this.type=r.Syntax.VariableDeclarator,this.id=t,this.init=e},e.WhileStatement=function(t,e){this.type=r.Syntax.WhileStatement,this.test=t,this.body=e},e.WithStatement=function(t,e){this.type=r.Syntax.WithStatement,this.object=t,this.body=e},e.YieldExpression=function(t,e){this.type=r.Syntax.YieldExpression,this.argument=t,this.delegate=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(10),o=n(11),s=n(7),a=n(12),l=n(2),u=n(13),c=function(){function t(t,e,n){void 0===e&&(e={}),this.config={range:"boolean"==typeof e.range&&e.range,loc:"boolean"==typeof e.loc&&e.loc,source:null,tokens:"boolean"==typeof e.tokens&&e.tokens,comment:"boolean"==typeof e.comment&&e.comment,tolerant:"boolean"==typeof e.tolerant&&e.tolerant},this.config.loc&&e.source&&null!==e.source&&(this.config.source=String(e.source)),this.delegate=n,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(t,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return t.prototype.throwError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=Array.prototype.slice.call(arguments,1),o=t.replace(/%(\d)/g,function(t,e){return r.assert(e<i.length,"Message reference must be in range"),i[e]});throw this.errorHandler.createError(this.lastMarker.index,this.lastMarker.line,this.lastMarker.column+1,o)},t.prototype.tolerateError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=Array.prototype.slice.call(arguments,1),o=t.replace(/%(\d)/g,function(t,e){return r.assert(e<i.length,"Message reference must be in range"),i[e]});this.errorHandler.tolerateError(this.lastMarker.index,this.scanner.lineNumber,this.lastMarker.column+1,o)},t.prototype.unexpectedTokenError=function(t,e){var n,r=e||o.Messages.UnexpectedToken;return t?(e||(r=2===t.type?o.Messages.UnexpectedEOS:3===t.type?o.Messages.UnexpectedIdentifier:6===t.type?o.Messages.UnexpectedNumber:8===t.type?o.Messages.UnexpectedString:10===t.type?o.Messages.UnexpectedTemplate:o.Messages.UnexpectedToken,4===t.type&&(this.scanner.isFutureReservedWord(t.value)?r=o.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(t.value)&&(r=o.Messages.StrictReservedWord))),n=t.value):n="ILLEGAL",r=r.replace("%0",n),t&&"number"==typeof t.lineNumber?this.errorHandler.createError(t.start,t.lineNumber,t.start-(this.lastMarker.index-this.lastMarker.column)+1,r):this.errorHandler.createError(this.lastMarker.index,this.lastMarker.line,this.lastMarker.column+1,r)},t.prototype.throwUnexpectedToken=function(t,e){throw this.unexpectedTokenError(t,e)},t.prototype.tolerateUnexpectedToken=function(t,e){this.errorHandler.tolerate(this.unexpectedTokenError(t,e))},t.prototype.collectComments=function(){if(this.config.comment){var t=this.scanner.scanComments();if(t.length>0&&this.delegate)for(var e=0;e<t.length;++e){var n=t[e],r=void 0;r={type:n.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(n.slice[0],n.slice[1])},this.config.range&&(r.range=n.range),this.config.loc&&(r.loc=n.loc),this.delegate(r,{start:{line:n.loc.start.line,column:n.loc.start.column,offset:n.range[0]},end:{line:n.loc.end.line,column:n.loc.end.column,offset:n.range[1]}})}}else this.scanner.scanComments()},t.prototype.getTokenRaw=function(t){return this.scanner.source.slice(t.start,t.end)},t.prototype.convertToken=function(t){var e={type:u.TokenName[t.type],value:this.getTokenRaw(t)};return this.config.range&&(e.range=[t.start,t.end]),this.config.loc&&(e.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===t.type&&(e.regex={pattern:t.pattern,flags:t.flags}),e},t.prototype.nextToken=function(){var t=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var e=this.scanner.lex();return this.hasLineTerminator=t.lineNumber!==e.lineNumber,e&&this.context.strict&&3===e.type&&this.scanner.isStrictModeReservedWord(e.value)&&(e.type=4),this.lookahead=e,this.config.tokens&&2!==e.type&&this.tokens.push(this.convertToken(e)),t},t.prototype.nextRegexToken=function(){this.collectComments();var t=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(t))),this.lookahead=t,this.nextToken(),t},t.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},t.prototype.startNode=function(t,e){void 0===e&&(e=0);var n=t.start-t.lineStart,r=t.lineNumber;return n<0&&(n+=e,r--),{index:t.start,line:r,column:n}},t.prototype.finalize=function(t,e){return this.config.range&&(e.range=[t.index,this.lastMarker.index]),this.config.loc&&(e.loc={start:{line:t.line,column:t.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(e.loc.source=this.config.source)),this.delegate&&this.delegate(e,{start:{line:t.line,column:t.column,offset:t.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}}),e},t.prototype.expect=function(t){var e=this.nextToken();7===e.type&&e.value===t||this.throwUnexpectedToken(e)},t.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var t=this.lookahead;7===t.type&&","===t.value?this.nextToken():7===t.type&&";"===t.value?(this.nextToken(),this.tolerateUnexpectedToken(t)):this.tolerateUnexpectedToken(t,o.Messages.UnexpectedToken)}else this.expect(",")},t.prototype.expectKeyword=function(t){var e=this.nextToken();4===e.type&&e.value===t||this.throwUnexpectedToken(e)},t.prototype.match=function(t){return 7===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchKeyword=function(t){return 4===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchContextualKeyword=function(t){return 3===this.lookahead.type&&this.lookahead.value===t},t.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var t=this.lookahead.value;return"="===t||"*="===t||"**="===t||"/="===t||"%="===t||"+="===t||"-="===t||"<<="===t||">>="===t||">>>="===t||"&="===t||"^="===t||"|="===t},t.prototype.isolateCoverGrammar=function(t){var e=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=t.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=e,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=r,i},t.prototype.inheritCoverGrammar=function(t){var e=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=t.call(this);return this.context.isBindingElement=this.context.isBindingElement&&e,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,i},t.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},t.prototype.parsePrimaryExpression=function(){var t,e,n,r=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(r,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),n=this.getTokenRaw(e),t=this.finalize(r,new s.Literal(e.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),n=this.getTokenRaw(e),t=this.finalize(r,new s.Literal("true"===e.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,e=this.nextToken(),n=this.getTokenRaw(e),t=this.finalize(r,new s.Literal(null,n));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,e=this.nextRegexToken(),n=this.getTokenRaw(e),t=this.finalize(r,new s.RegexLiteral(e.regex,n,e.pattern,e.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(r,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(r,new s.ThisExpression)):t=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},t.prototype.parseSpreadElement=function(){var t=this.createNode();this.expect("...");var e=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(t,new s.SpreadElement(e))},t.prototype.parseArrayInitializer=function(){var t=this.createNode(),e=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),e.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),e.push(n)}else e.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(t,new s.ArrayExpression(e))},t.prototype.parsePropertyMethod=function(t){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var e=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=t.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&t.firstRestricted&&this.tolerateUnexpectedToken(t.firstRestricted,t.message),this.context.strict&&t.stricted&&this.tolerateUnexpectedToken(t.stricted,t.message),this.context.strict=e,this.context.allowStrictDirective=n,r},t.prototype.parsePropertyMethodFunction=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),r=this.parsePropertyMethod(n);return this.context.allowYield=e,this.finalize(t,new s.FunctionExpression(null,n.params,r,!1))},t.prototype.parsePropertyMethodAsyncFunction=function(){var t=this.createNode(),e=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=e,this.context.await=n,this.finalize(t,new s.AsyncFunctionExpression(null,r.params,i))},t.prototype.parseObjectPropertyKey=function(){var t,e=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,o.Messages.StrictOctalLiteral);var r=this.getTokenRaw(n);t=this.finalize(e,new s.Literal(n.value,r));break;case 3:case 1:case 5:case 4:t=this.finalize(e,new s.Identifier(n.value));break;case 7:"["===n.value?(t=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):t=this.throwUnexpectedToken(n);break;default:t=this.throwUnexpectedToken(n)}return t},t.prototype.isPropertyKey=function(t,e){return t.type===l.Syntax.Identifier&&t.name===e||t.type===l.Syntax.Literal&&t.value===e},t.prototype.parseObjectProperty=function(t){var e,n=this.createNode(),r=this.lookahead,i=null,a=null,l=!1,u=!1,c=!1,h=!1;if(3===r.type){var p=r.value;this.nextToken(),l=this.match("["),i=(h=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new s.Identifier(p))}else this.match("*")?this.nextToken():(l=this.match("["),i=this.parseObjectPropertyKey());var d=this.qualifiedPropertyName(this.lookahead);if(3===r.type&&!h&&"get"===r.value&&d)e="get",l=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===r.type&&!h&&"set"===r.value&&d)e="set",l=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===r.type&&"*"===r.value&&d)e="init",l=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0;else if(i||this.throwUnexpectedToken(this.lookahead),e="init",this.match(":")&&!h)!l&&this.isPropertyKey(i,"__proto__")&&(t.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),t.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0;else if(3===r.type)if(p=this.finalize(n,new s.Identifier(r.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),c=!0;var f=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(n,new s.AssignmentPattern(p,f))}else c=!0,a=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new s.Property(e,i,l,a,u,c))},t.prototype.parseObjectInitializer=function(){var t=this.createNode();this.expect("{");for(var e=[],n={value:!1};!this.match("}");)e.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(t,new s.ObjectExpression(e))},t.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,"Template literal must start with a template head");var t=this.createNode(),e=this.nextToken();return this.finalize(t,new s.TemplateElement({raw:e.value,cooked:e.cooked},e.tail))},t.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var t=this.createNode(),e=this.nextToken();return this.finalize(t,new s.TemplateElement({raw:e.value,cooked:e.cooked},e.tail))},t.prototype.parseTemplateLiteral=function(){var t=this.createNode(),e=[],n=[],r=this.parseTemplateHead();for(n.push(r);!r.tail;)e.push(this.parseExpression()),r=this.parseTemplateElement(),n.push(r);return this.finalize(t,new s.TemplateLiteral(n,e))},t.prototype.reinterpretExpressionAsPattern=function(t){switch(t.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:t.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(t.argument);break;case l.Syntax.ArrayExpression:t.type=l.Syntax.ArrayPattern;for(var e=0;e<t.elements.length;e++)null!==t.elements[e]&&this.reinterpretExpressionAsPattern(t.elements[e]);break;case l.Syntax.ObjectExpression:for(t.type=l.Syntax.ObjectPattern,e=0;e<t.properties.length;e++)this.reinterpretExpressionAsPattern(t.properties[e].value);break;case l.Syntax.AssignmentExpression:t.type=l.Syntax.AssignmentPattern,delete t.operator,this.reinterpretExpressionAsPattern(t.left)}},t.prototype.parseGroupExpression=function(){var t;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),t={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var e=this.lookahead,n=[];if(this.match("..."))t=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),t={type:"ArrowParameterPlaceHolder",params:[t],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,t=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(t);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o<i.length;o++)this.reinterpretExpressionAsPattern(i[o]);r=!0,t={type:"ArrowParameterPlaceHolder",params:i,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.push(this.parseRestElement(n)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o<i.length;o++)this.reinterpretExpressionAsPattern(i[o]);r=!0,t={type:"ArrowParameterPlaceHolder",params:i,async:!1}}else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(r)break}r||(t=this.finalize(this.startNode(e),new s.SequenceExpression(i)))}if(!r){if(this.expect(")"),this.match("=>")&&(t.type===l.Syntax.Identifier&&"yield"===t.name&&(r=!0,t={type:"ArrowParameterPlaceHolder",params:[t],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),t.type===l.Syntax.SequenceExpression)for(o=0;o<t.expressions.length;o++)this.reinterpretExpressionAsPattern(t.expressions[o]);else this.reinterpretExpressionAsPattern(t);t={type:"ArrowParameterPlaceHolder",params:t.type===l.Syntax.SequenceExpression?t.expressions:[t],async:!1}}this.context.isBindingElement=!1}}}return t},t.prototype.parseArguments=function(){this.expect("(");var t=[];if(!this.match(")"))for(;;){var e=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(t.push(e),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),t},t.prototype.isIdentifierName=function(t){return 3===t.type||4===t.type||1===t.type||5===t.type},t.prototype.parseIdentifierName=function(){var t=this.createNode(),e=this.nextToken();return this.isIdentifierName(e)||this.throwUnexpectedToken(e),this.finalize(t,new s.Identifier(e.value))},t.prototype.parseNewExpression=function(){var t,e=this.createNode(),n=this.parseIdentifierName();if(r.assert("new"===n.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var i=this.parseIdentifierName();t=new s.MetaProperty(n,i)}else this.throwUnexpectedToken(this.lookahead);else{var o=this.isolateCoverGrammar(this.parseLeftHandSideExpression),a=this.match("(")?this.parseArguments():[];t=new s.NewExpression(o,a),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(e,t)},t.prototype.parseAsyncArgument=function(){var t=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,t},t.prototype.parseAsyncArguments=function(){this.expect("(");var t=[];if(!this.match(")"))for(;;){var e=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(t.push(e),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),t},t.prototype.parseLeftHandSideExpressionAllowCall=function(){var t,e=this.lookahead,n=this.matchContextualKeyword("async"),r=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(t=this.createNode(),this.nextToken(),t=this.finalize(t,new s.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):t=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();t=this.finalize(this.startNode(e),new s.StaticMemberExpression(t,i))}else if(this.match("(")){var o=n&&e.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var a=o?this.parseAsyncArguments():this.parseArguments();if(t=this.finalize(this.startNode(e),new s.CallExpression(t,a)),o&&this.match("=>")){for(var l=0;l<a.length;++l)this.reinterpretExpressionAsPattern(a[l]);t={type:"ArrowParameterPlaceHolder",params:a,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),i=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),t=this.finalize(this.startNode(e),new s.ComputedMemberExpression(t,i));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var u=this.parseTemplateLiteral();t=this.finalize(this.startNode(e),new s.TaggedTemplateExpression(t,u))}return this.context.allowIn=r,t},t.prototype.parseSuper=function(){var t=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(t,new s.Super)},t.prototype.parseLeftHandSideExpression=function(){r.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var t=this.startNode(this.lookahead),e=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var n=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),e=this.finalize(t,new s.ComputedMemberExpression(e,n))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),n=this.parseIdentifierName(),e=this.finalize(t,new s.StaticMemberExpression(e,n));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var i=this.parseTemplateLiteral();e=this.finalize(t,new s.TaggedTemplateExpression(e,i))}return e},t.prototype.parseUpdateExpression=function(){var t,e=this.lookahead;if(this.match("++")||this.match("--")){var n=this.startNode(e),r=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&t.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(o.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),t=this.finalize(n,new s.UpdateExpression(r.value,t,a=!0)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(t=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&t.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(o.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=this.nextToken().value,a=!1;t=this.finalize(this.startNode(e),new s.UpdateExpression(i,t,a))}return t},t.prototype.parseAwaitExpression=function(){var t=this.createNode();this.nextToken();var e=this.parseUnaryExpression();return this.finalize(t,new s.AwaitExpression(e))},t.prototype.parseUnaryExpression=function(){var t;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var e=this.startNode(this.lookahead),n=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),t=this.finalize(e,new s.UnaryExpression(n.value,t)),this.context.strict&&"delete"===t.operator&&t.argument.type===l.Syntax.Identifier&&this.tolerateError(o.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else t=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return t},t.prototype.parseExponentiationExpression=function(){var t=this.lookahead,e=this.inheritCoverGrammar(this.parseUnaryExpression);if(e.type!==l.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=e,r=this.isolateCoverGrammar(this.parseExponentiationExpression);e=this.finalize(this.startNode(t),new s.BinaryExpression("**",n,r))}return e},t.prototype.binaryPrecedence=function(t){var e=t.value;return 7===t.type?this.operatorPrecedence[e]||0:4===t.type&&("instanceof"===e||this.context.allowIn&&"in"===e)?7:0},t.prototype.parseBinaryExpression=function(){var t=this.lookahead,e=this.inheritCoverGrammar(this.parseExponentiationExpression),n=this.lookahead,r=this.binaryPrecedence(n);if(r>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[t,this.lookahead],o=e,a=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[o,n.value,a],u=[r];!((r=this.binaryPrecedence(this.lookahead))<=0);){for(;l.length>2&&r<=u[u.length-1];){a=l.pop();var c=l.pop();u.pop(),o=l.pop(),i.pop();var h=this.startNode(i[i.length-1]);l.push(this.finalize(h,new s.BinaryExpression(c,o,a)))}l.push(this.nextToken().value),u.push(r),i.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=l.length-1;e=l[p];for(var d=i.pop();p>1;){var f=i.pop();h=this.startNode(f,d&&d.lineStart),e=this.finalize(h,new s.BinaryExpression(c=l[p-1],l[p-2],e)),p-=2,d=f}}return e},t.prototype.parseConditionalExpression=function(){var t=this.lookahead,e=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new s.ConditionalExpression(e,r,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return e},t.prototype.checkPatternParam=function(t,e){switch(e.type){case l.Syntax.Identifier:this.validateParam(t,e,e.name);break;case l.Syntax.RestElement:this.checkPatternParam(t,e.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(t,e.left);break;case l.Syntax.ArrayPattern:for(var n=0;n<e.elements.length;n++)null!==e.elements[n]&&this.checkPatternParam(t,e.elements[n]);break;case l.Syntax.ObjectPattern:for(n=0;n<e.properties.length;n++)this.checkPatternParam(t,e.properties[n].value)}t.simple=t.simple&&e instanceof s.Identifier},t.prototype.reinterpretAsCoverFormalsList=function(t){var e,n=[t],r=!1;switch(t.type){case l.Syntax.Identifier:break;case"ArrowParameterPlaceHolder":n=t.params,r=t.async;break;default:return null}e={simple:!0,paramSet:{}};for(var i=0;i<n.length;++i)(s=n[i]).type===l.Syntax.AssignmentPattern?s.right.type===l.Syntax.YieldExpression&&(s.right.argument&&this.throwUnexpectedToken(this.lookahead),s.right.type=l.Syntax.Identifier,s.right.name="yield",delete s.right.argument,delete s.right.delegate):r&&s.type===l.Syntax.Identifier&&"await"===s.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(e,s),n[i]=s;if(this.context.strict||!this.context.allowYield)for(i=0;i<n.length;++i){var s;(s=n[i]).type===l.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}return e.message===o.Messages.StrictParamDupe&&this.throwUnexpectedToken(this.context.strict?e.stricted:e.firstRestricted,e.message),{simple:e.simple,params:n,stricted:e.stricted,firstRestricted:e.firstRestricted,message:e.message}},t.prototype.parseAssignmentExpression=function(){var t;if(!this.context.allowYield&&this.matchKeyword("yield"))t=this.parseYieldExpression();else{var e=this.lookahead,n=e;if(t=this.parseConditionalExpression(),3===n.type&&n.lineNumber===this.lookahead.lineNumber&&"async"===n.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var r=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(r),t={type:"ArrowParameterPlaceHolder",params:[r],async:!0}}if("ArrowParameterPlaceHolder"===t.type||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=t.async,a=this.reinterpretAsCoverFormalsList(t);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var u=this.context.strict,c=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var h=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=i;var d=this.startNode(e);this.expect("=>");var f=void 0;if(this.match("{")){var m=this.context.allowIn;this.context.allowIn=!0,f=this.parseFunctionSourceElements(),this.context.allowIn=m}else f=this.isolateCoverGrammar(this.parseAssignmentExpression);var g=f.type!==l.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),t=this.finalize(d,i?new s.AsyncArrowFunctionExpression(a.params,f,g):new s.ArrowFunctionExpression(a.params,f,g)),this.context.strict=u,this.context.allowStrictDirective=c,this.context.allowYield=h,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&t.type===l.Syntax.Identifier){var v=t;this.scanner.isRestrictedWord(v.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(v.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(t):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var y=(n=this.nextToken()).value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new s.AssignmentExpression(y,t,b)),this.context.firstCoverInitializedNameError=null}}return t},t.prototype.parseExpression=function(){var t=this.lookahead,e=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(e);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(t),new s.SequenceExpression(n))}return e},t.prototype.parseStatementListItem=function(){var t;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),t=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),t=this.parseImportDeclaration();break;case"const":t=this.parseLexicalDeclaration({inFor:!1});break;case"function":t=this.parseFunctionDeclaration();break;case"class":t=this.parseClassDeclaration();break;case"let":t=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:t=this.parseStatement()}else t=this.parseStatement();return t},t.prototype.parseBlock=function(){var t=this.createNode();this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseStatementListItem());return this.expect("}"),this.finalize(t,new s.BlockStatement(e))},t.prototype.parseLexicalBinding=function(t,e){var n=this.createNode(),r=this.parsePattern([],t);this.context.strict&&r.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(o.Messages.StrictVarName);var i=null;return"const"===t?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!e.inFor&&r.type!==l.Syntax.Identifier||this.match("="))&&(this.expect("="),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new s.VariableDeclarator(r,i))},t.prototype.parseBindingList=function(t,e){for(var n=[this.parseLexicalBinding(t,e)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(t,e));return n},t.prototype.isLexicalDeclaration=function(){var t=this.scanner.saveState();this.scanner.scanComments();var e=this.scanner.lex();return this.scanner.restoreState(t),3===e.type||7===e.type&&"["===e.value||7===e.type&&"{"===e.value||4===e.type&&"let"===e.value||4===e.type&&"yield"===e.value},t.prototype.parseLexicalDeclaration=function(t){var e=this.createNode(),n=this.nextToken().value;r.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var i=this.parseBindingList(n,t);return this.consumeSemicolon(),this.finalize(e,new s.VariableDeclaration(i,n))},t.prototype.parseBindingRestElement=function(t,e){var n=this.createNode();this.expect("...");var r=this.parsePattern(t,e);return this.finalize(n,new s.RestElement(r))},t.prototype.parseArrayPattern=function(t,e){var n=this.createNode();this.expect("[");for(var r=[];!this.match("]");)if(this.match(","))this.nextToken(),r.push(null);else{if(this.match("...")){r.push(this.parseBindingRestElement(t,e));break}r.push(this.parsePatternWithDefault(t,e)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new s.ArrayPattern(r))},t.prototype.parsePropertyPattern=function(t,e){var n,r,i=this.createNode(),o=!1,a=!1;if(3===this.lookahead.type){var l=this.lookahead;n=this.parseVariableIdentifier();var u=this.finalize(i,new s.Identifier(l.value));if(this.match("=")){t.push(l),a=!0,this.nextToken();var c=this.parseAssignmentExpression();r=this.finalize(this.startNode(l),new s.AssignmentPattern(u,c))}else this.match(":")?(this.expect(":"),r=this.parsePatternWithDefault(t,e)):(t.push(l),a=!0,r=u)}else o=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),r=this.parsePatternWithDefault(t,e);return this.finalize(i,new s.Property("init",n,o,r,!1,a))},t.prototype.parseObjectPattern=function(t,e){var n=this.createNode(),r=[];for(this.expect("{");!this.match("}");)r.push(this.parsePropertyPattern(t,e)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new s.ObjectPattern(r))},t.prototype.parsePattern=function(t,e){var n;return this.match("[")?n=this.parseArrayPattern(t,e):this.match("{")?n=this.parseObjectPattern(t,e):(!this.matchKeyword("let")||"const"!==e&&"let"!==e||this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),t.push(this.lookahead),n=this.parseVariableIdentifier(e)),n},t.prototype.parsePatternWithDefault=function(t,e){var n=this.lookahead,r=this.parsePattern(t,e);if(this.match("=")){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,r=this.finalize(this.startNode(n),new s.AssignmentPattern(r,o))}return r},t.prototype.parseVariableIdentifier=function(t){var e=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==t)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(e,new s.Identifier(n.value))},t.prototype.parseVariableDeclaration=function(t){var e=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var r=null;return this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===l.Syntax.Identifier||t.inFor||this.expect("="),this.finalize(e,new s.VariableDeclarator(n,r))},t.prototype.parseVariableDeclarationList=function(t){var e={inFor:t.inFor},n=[];for(n.push(this.parseVariableDeclaration(e));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(e));return n},t.prototype.parseVariableStatement=function(){var t=this.createNode();this.expectKeyword("var");var e=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(e,"var"))},t.prototype.parseEmptyStatement=function(){var t=this.createNode();return this.expect(";"),this.finalize(t,new s.EmptyStatement)},t.prototype.parseExpressionStatement=function(){var t=this.createNode(),e=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ExpressionStatement(e))},t.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},t.prototype.parseIfStatement=function(){var t,e=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(e,new s.IfStatement(r,t,n))},t.prototype.parseDoWhileStatement=function(){var t=this.createNode();this.expectKeyword("do");var e=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=e,this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(t,new s.DoWhileStatement(n,r))},t.prototype.parseWhileStatement=function(){var t,e=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var r=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=r}return this.finalize(e,new s.WhileStatement(n,t))},t.prototype.parseForStatement=function(){var t,e,n,r=null,i=null,a=null,u=!0,c=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){r=this.createNode(),this.nextToken();var h=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=h,1===p.length&&this.matchKeyword("in")){var d=p[0];d.init&&(d.id.type===l.Syntax.ArrayPattern||d.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),r=this.finalize(r,new s.VariableDeclaration(p,"var")),this.nextToken(),t=r,e=this.parseExpression(),r=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(r=this.finalize(r,new s.VariableDeclaration(p,"var")),this.nextToken(),t=r,e=this.parseAssignmentExpression(),r=null,u=!1):(r=this.finalize(r,new s.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){r=this.createNode();var f=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(h=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(f,{inFor:!0}),this.context.allowIn=h,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(r=this.finalize(r,new s.VariableDeclaration(p,f)),this.nextToken(),t=r,e=this.parseExpression(),r=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(r=this.finalize(r,new s.VariableDeclaration(p,f)),this.nextToken(),t=r,e=this.parseAssignmentExpression(),r=null,u=!1):(this.consumeSemicolon(),r=this.finalize(r,new s.VariableDeclaration(p,f)))):(r=this.finalize(r,new s.Identifier(f)),this.nextToken(),t=r,e=this.parseExpression(),r=null)}else{var m=this.lookahead;if(h=this.context.allowIn,this.context.allowIn=!1,r=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in"))this.context.isAssignmentTarget&&r.type!==l.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(r),t=r,e=this.parseExpression(),r=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&r.type!==l.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(r),t=r,e=this.parseAssignmentExpression(),r=null,u=!1;else{if(this.match(",")){for(var g=[r];this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));r=this.finalize(this.startNode(m),new s.SequenceExpression(g))}this.expect(";")}}if(void 0===t&&(this.match(";")||(i=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var v=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=v}return this.finalize(c,void 0===t?new s.ForStatement(r,i,a,n):u?new s.ForInStatement(t,e,n):new s.ForOfStatement(t,e,n))},t.prototype.parseContinueStatement=function(){var t=this.createNode();this.expectKeyword("continue");var e=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();e=n,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+n.name)||this.throwError(o.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==e||this.context.inIteration||this.throwError(o.Messages.IllegalContinue),this.finalize(t,new s.ContinueStatement(e))},t.prototype.parseBreakStatement=function(){var t=this.createNode();this.expectKeyword("break");var e=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+n.name)||this.throwError(o.Messages.UnknownLabel,n.name),e=n}return this.consumeSemicolon(),null!==e||this.context.inIteration||this.context.inSwitch||this.throwError(o.Messages.IllegalBreak),this.finalize(t,new s.BreakStatement(e))},t.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var t=this.createNode();this.expectKeyword("return");var e=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ReturnStatement(e))},t.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var t,e=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(e,new s.WithStatement(n,t))},t.prototype.parseSwitchCase=function(){var t,e=this.createNode();this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(e,new s.SwitchCase(t,n))},t.prototype.parseSwitchStatement=function(){var t=this.createNode();this.expectKeyword("switch"),this.expect("(");var e=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var r=[],i=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(i&&this.throwError(o.Messages.MultipleDefaultsInSwitch),i=!0),r.push(a)}return this.expect("}"),this.context.inSwitch=n,this.finalize(t,new s.SwitchStatement(e,r))},t.prototype.parseLabelledStatement=function(){var t,e=this.createNode(),n=this.parseExpression();if(n.type===l.Syntax.Identifier&&this.match(":")){this.nextToken();var r=n,i="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(o.Messages.Redeclaration,"Label",r.name),this.context.labelSet[i]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var u=this.lookahead,c=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(u,o.Messages.StrictFunction):c.generator&&this.tolerateUnexpectedToken(u,o.Messages.GeneratorInLegacyContext),a=c}else a=this.parseStatement();delete this.context.labelSet[i],t=new s.LabeledStatement(r,a)}else this.consumeSemicolon(),t=new s.ExpressionStatement(n);return this.finalize(e,t)},t.prototype.parseThrowStatement=function(){var t=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var e=this.parseExpression();return this.consumeSemicolon(),this.finalize(t,new s.ThrowStatement(e))},t.prototype.parseCatchClause=function(){var t=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var e=[],n=this.parsePattern(e),r={},i=0;i<e.length;i++){var a="$"+e[i].value;Object.prototype.hasOwnProperty.call(r,a)&&this.tolerateError(o.Messages.DuplicateBinding,e[i].value),r[a]=!0}this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictCatchVariable),this.expect(")");var u=this.parseBlock();return this.finalize(t,new s.CatchClause(n,u))},t.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},t.prototype.parseTryStatement=function(){var t=this.createNode();this.expectKeyword("try");var e=this.parseBlock(),n=this.matchKeyword("catch")?this.parseCatchClause():null,r=this.matchKeyword("finally")?this.parseFinallyClause():null;return n||r||this.throwError(o.Messages.NoCatchOrFinally),this.finalize(t,new s.TryStatement(e,n,r))},t.prototype.parseDebuggerStatement=function(){var t=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(t,new s.DebuggerStatement)},t.prototype.parseStatement=function(){var t;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:t=this.parseExpressionStatement();break;case 7:var e=this.lookahead.value;t="{"===e?this.parseBlock():"("===e?this.parseExpressionStatement():";"===e?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:t=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":t=this.parseBreakStatement();break;case"continue":t=this.parseContinueStatement();break;case"debugger":t=this.parseDebuggerStatement();break;case"do":t=this.parseDoWhileStatement();break;case"for":t=this.parseForStatement();break;case"function":t=this.parseFunctionDeclaration();break;case"if":t=this.parseIfStatement();break;case"return":t=this.parseReturnStatement();break;case"switch":t=this.parseSwitchStatement();break;case"throw":t=this.parseThrowStatement();break;case"try":t=this.parseTryStatement();break;case"var":t=this.parseVariableStatement();break;case"while":t=this.parseWhileStatement();break;case"with":t=this.parseWithStatement();break;default:t=this.parseExpressionStatement()}break;default:t=this.throwUnexpectedToken(this.lookahead)}return t},t.prototype.parseFunctionSourceElements=function(){var t=this.createNode();this.expect("{");var e=this.parseDirectivePrologues(),n=this.context.labelSet,r=this.context.inIteration,i=this.context.inSwitch,o=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)e.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=n,this.context.inIteration=r,this.context.inSwitch=i,this.context.inFunctionBody=o,this.finalize(t,new s.BlockStatement(e))},t.prototype.validateParam=function(t,e,n){var r="$"+n;this.context.strict?(this.scanner.isRestrictedWord(n)&&(t.stricted=e,t.message=o.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(t.paramSet,r)&&(t.stricted=e,t.message=o.Messages.StrictParamDupe)):t.firstRestricted||(this.scanner.isRestrictedWord(n)?(t.firstRestricted=e,t.message=o.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(n)?(t.firstRestricted=e,t.message=o.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(t.paramSet,r)&&(t.stricted=e,t.message=o.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(t.paramSet,r,{value:!0,enumerable:!0,writable:!0,configurable:!0}):t.paramSet[r]=!0},t.prototype.parseRestElement=function(t){var e=this.createNode();this.expect("...");var n=this.parsePattern(t);return this.match("=")&&this.throwError(o.Messages.DefaultRestParameter),this.match(")")||this.throwError(o.Messages.ParameterAfterRestParameter),this.finalize(e,new s.RestElement(n))},t.prototype.parseFormalParameter=function(t){for(var e=[],n=this.match("...")?this.parseRestElement(e):this.parsePatternWithDefault(e),r=0;r<e.length;r++)this.validateParam(t,e[r],e[r].value);t.simple=t.simple&&n instanceof s.Identifier,t.params.push(n)},t.prototype.parseFormalParameters=function(t){var e;if(e={simple:!0,params:[],firstRestricted:t},this.expect("("),!this.match(")"))for(e.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(e),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:e.simple,params:e.params,stricted:e.stricted,firstRestricted:e.firstRestricted,message:e.message}},t.prototype.matchAsyncFunction=function(){var t=this.matchContextualKeyword("async");if(t){var e=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();this.scanner.restoreState(e),t=e.lineNumber===n.lineNumber&&4===n.type&&"function"===n.value}return t},t.prototype.parseFunctionDeclaration=function(t){var e=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var r,i=!n&&this.match("*");i&&this.nextToken();var a=null,l=null;if(!t||!this.match("(")){var u=this.lookahead;a=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(u.value)&&this.tolerateUnexpectedToken(u,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(u.value)?(l=u,r=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(u.value)&&(l=u,r=o.Messages.StrictReservedWord)}var c=this.context.await,h=this.context.allowYield;this.context.await=n,this.context.allowYield=!i;var p=this.parseFormalParameters(l),d=p.params,f=p.stricted;l=p.firstRestricted,p.message&&(r=p.message);var m=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var v=this.parseFunctionSourceElements();return this.context.strict&&l&&this.throwUnexpectedToken(l,r),this.context.strict&&f&&this.tolerateUnexpectedToken(f,r),this.context.strict=m,this.context.allowStrictDirective=g,this.context.await=c,this.context.allowYield=h,this.finalize(e,n?new s.AsyncFunctionDeclaration(a,d,v):new s.FunctionDeclaration(a,d,v,i))},t.prototype.parseFunctionExpression=function(){var t=this.createNode(),e=this.matchContextualKeyword("async");e&&this.nextToken(),this.expectKeyword("function");var n,r=!e&&this.match("*");r&&this.nextToken();var i,a=null,l=this.context.await,u=this.context.allowYield;if(this.context.await=e,this.context.allowYield=!r,!this.match("(")){var c=this.lookahead;a=this.context.strict||r||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(c.value)&&this.tolerateUnexpectedToken(c,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(c.value)?(i=c,n=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(c.value)&&(i=c,n=o.Messages.StrictReservedWord)}var h=this.parseFormalParameters(i),p=h.params,d=h.stricted;i=h.firstRestricted,h.message&&(n=h.message);var f=this.context.strict,m=this.context.allowStrictDirective;this.context.allowStrictDirective=h.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&i&&this.throwUnexpectedToken(i,n),this.context.strict&&d&&this.tolerateUnexpectedToken(d,n),this.context.strict=f,this.context.allowStrictDirective=m,this.context.await=l,this.context.allowYield=u,this.finalize(t,e?new s.AsyncFunctionExpression(a,p,g):new s.FunctionExpression(a,p,g,r))},t.prototype.parseDirective=function(){var t=this.lookahead,e=this.createNode(),n=this.parseExpression(),r=n.type===l.Syntax.Literal?this.getTokenRaw(t).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(e,r?new s.Directive(n,r):new s.ExpressionStatement(n))},t.prototype.parseDirectivePrologues=function(){for(var t=null,e=[];;){var n=this.lookahead;if(8!==n.type)break;var r=this.parseDirective();e.push(r);var i=r.directive;if("string"!=typeof i)break;"use strict"===i?(this.context.strict=!0,t&&this.tolerateUnexpectedToken(t,o.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(n,o.Messages.IllegalLanguageModeDirective)):!t&&n.octal&&(t=n)}return e},t.prototype.qualifiedPropertyName=function(t){switch(t.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===t.value}return!1},t.prototype.parseGetterMethod=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();n.params.length>0&&this.tolerateError(o.Messages.BadGetterArity);var r=this.parsePropertyMethod(n);return this.context.allowYield=e,this.finalize(t,new s.FunctionExpression(null,n.params,r,!1))},t.prototype.parseSetterMethod=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(o.Messages.BadSetterArity):n.params[0]instanceof s.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var r=this.parsePropertyMethod(n);return this.context.allowYield=e,this.finalize(t,new s.FunctionExpression(null,n.params,r,!1))},t.prototype.parseGeneratorMethod=function(){var t=this.createNode(),e=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var r=this.parsePropertyMethod(n);return this.context.allowYield=e,this.finalize(t,new s.FunctionExpression(null,n.params,r,!0))},t.prototype.isStartOfExpression=function(){var t=!0,e=this.lookahead.value;switch(this.lookahead.type){case 7:t="["===e||"("===e||"{"===e||"+"===e||"-"===e||"!"===e||"~"===e||"++"===e||"--"===e||"/"===e||"/="===e;break;case 4:t="class"===e||"delete"===e||"function"===e||"let"===e||"new"===e||"super"===e||"this"===e||"typeof"===e||"void"===e||"yield"===e}return t},t.prototype.parseYieldExpression=function(){var t=this.createNode();this.expectKeyword("yield");var e=null,n=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),e=this.parseAssignmentExpression()):this.isStartOfExpression()&&(e=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(t,new s.YieldExpression(e,n))},t.prototype.parseClassElement=function(t){var e=this.lookahead,n=this.createNode(),r="",i=null,a=null,l=!1,u=!1,c=!1,h=!1;if(this.match("*"))this.nextToken();else if(l=this.match("["),"static"===(i=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(e=this.lookahead,c=!0,l=this.match("["),this.match("*")?this.nextToken():i=this.parseObjectPropertyKey()),3===e.type&&!this.hasLineTerminator&&"async"===e.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(h=!0,e=this.lookahead,i=this.parseObjectPropertyKey(),3===e.type&&"constructor"===e.value&&this.tolerateUnexpectedToken(e,o.Messages.ConstructorIsAsync))}var d=this.qualifiedPropertyName(this.lookahead);return 3===e.type?"get"===e.value&&d?(r="get",l=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===e.value&&d&&(r="set",l=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===e.type&&"*"===e.value&&d&&(r="init",l=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0),!r&&i&&this.match("(")&&(r="init",a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0),r||this.throwUnexpectedToken(this.lookahead),"init"===r&&(r="method"),l||(c&&this.isPropertyKey(i,"prototype")&&this.throwUnexpectedToken(e,o.Messages.StaticPrototype),!c&&this.isPropertyKey(i,"constructor")&&(("method"!==r||!u||a&&a.generator)&&this.throwUnexpectedToken(e,o.Messages.ConstructorSpecialMethod),t.value?this.throwUnexpectedToken(e,o.Messages.DuplicateConstructor):t.value=!0,r="constructor")),this.finalize(n,new s.MethodDefinition(i,l,a,r,c))},t.prototype.parseClassElementList=function(){var t=[],e={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():t.push(this.parseClassElement(e));return this.expect("}"),t},t.prototype.parseClassBody=function(){var t=this.createNode(),e=this.parseClassElementList();return this.finalize(t,new s.ClassBody(e))},t.prototype.parseClassDeclaration=function(t){var e=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=t&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=n,this.finalize(e,new s.ClassDeclaration(r,i,o))},t.prototype.parseClassExpression=function(){var t=this.createNode(),e=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=e,this.finalize(t,new s.ClassExpression(n,r,i))},t.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var t=this.createNode(),e=this.parseDirectivePrologues();2!==this.lookahead.type;)e.push(this.parseStatementListItem());return this.finalize(t,new s.Module(e))},t.prototype.parseScript=function(){for(var t=this.createNode(),e=this.parseDirectivePrologues();2!==this.lookahead.type;)e.push(this.parseStatementListItem());return this.finalize(t,new s.Script(e))},t.prototype.parseModuleSpecifier=function(){var t=this.createNode();8!==this.lookahead.type&&this.throwError(o.Messages.InvalidModuleSpecifier);var e=this.nextToken(),n=this.getTokenRaw(e);return this.finalize(t,new s.Literal(e.value,n))},t.prototype.parseImportSpecifier=function(){var t,e,n=this.createNode();return 3===this.lookahead.type?(e=t=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),e=this.parseVariableIdentifier())):(e=t=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),e=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new s.ImportSpecifier(e,t))},t.prototype.parseNamedImports=function(){this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),t},t.prototype.parseImportDefaultSpecifier=function(){var t=this.createNode(),e=this.parseIdentifierName();return this.finalize(t,new s.ImportDefaultSpecifier(e))},t.prototype.parseImportNamespaceSpecifier=function(){var t=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var e=this.parseIdentifierName();return this.finalize(t,new s.ImportNamespaceSpecifier(e))},t.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var t,e=this.createNode();this.expectKeyword("import");var n=[];return 8===this.lookahead.type?t=this.parseModuleSpecifier():(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.lookahead.value),this.nextToken(),t=this.parseModuleSpecifier()),this.consumeSemicolon(),this.finalize(e,new s.ImportDeclaration(n,t))},t.prototype.parseExportSpecifier=function(){var t=this.createNode(),e=this.parseIdentifierName(),n=e;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(t,new s.ExportSpecifier(e,n))},t.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var t,e=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);t=this.finalize(e,new s.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),t=this.finalize(e,new s.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),t=this.finalize(e,new s.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),t=this.finalize(e,new s.ExportDefaultDeclaration(n)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new s.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new s.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),t=this.finalize(e,new s.ExportNamedDeclaration(n,[],null));else{var i=[],a=null,l=!1;for(this.expect("{");!this.match("}");)l=l||this.matchKeyword("default"),i.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),a=this.parseModuleSpecifier(),this.consumeSemicolon()):l?this.throwError(this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),t=this.finalize(e,new s.ExportNamedDeclaration(null,i,a))}return t},t}();e.Parser=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assert=function(t,e){if(!t)throw new Error("ASSERT: "+e)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.errors=[],this.tolerant=!1}return t.prototype.recordError=function(t){this.errors.push(t)},t.prototype.tolerate=function(t){if(!this.tolerant)throw t;this.recordError(t)},t.prototype.constructError=function(t,e){var n=new Error(t);try{throw n}catch(r){Object.create&&Object.defineProperty&&(n=Object.create(r),Object.defineProperty(n,"column",{value:e}))}return n},t.prototype.createError=function(t,e,n,r){var i=this.constructError("Line "+e+": "+r,n);return i.index=t,i.lineNumber=e,i.description=r,i},t.prototype.throwError=function(t,e,n,r){throw this.createError(t,e,n,r)},t.prototype.tolerateError=function(t,e,n,r){var i=this.createError(t,e,n,r);if(!this.tolerant)throw i;this.recordError(i)},t}();e.ErrorHandler=n},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(4),o=n(11);function s(t){return"0123456789abcdef".indexOf(t.toLowerCase())}function a(t){return"01234567".indexOf(t)}var l=function(){function t(t,e){this.source=t,this.errorHandler=e,this.trackComment=!1,this.isModule=!1,this.length=t.length,this.index=0,this.lineNumber=t.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return t.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},t.prototype.restoreState=function(t){this.index=t.index,this.lineNumber=t.lineNumber,this.lineStart=t.lineStart},t.prototype.eof=function(){return this.index>=this.length},t.prototype.throwUnexpectedToken=function(t){return void 0===t&&(t=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.tolerateUnexpectedToken=function(t){void 0===t&&(t=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.skipSingleLineComment=function(t){var e,n,r=[];for(this.trackComment&&(r=[],e=this.index-t,n={start:{line:this.lineNumber,column:this.index-this.lineStart-t},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(o))return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart-1},r.push({multiLine:!1,slice:[e+t,this.index-1],range:[e,this.index-1],loc:n})),13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,r}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},r.push({multiLine:!1,slice:[e+t,this.index],range:[e,this.index],loc:n})),r},t.prototype.skipMultiLineComment=function(){var t,e,n=[];for(this.trackComment&&(n=[],t=this.index-2,e={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(r))13===r&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===r){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(e.end={line:this.lineNumber,column:this.index-this.lineStart},n.push({multiLine:!0,slice:[t+2,this.index-2],range:[t,this.index],loc:e})),n;++this.index}else++this.index}return this.trackComment&&(e.end={line:this.lineNumber,column:this.index-this.lineStart},n.push({multiLine:!0,slice:[t+2,this.index],range:[t,this.index],loc:e})),this.tolerateUnexpectedToken(),n},t.prototype.scanComments=function(){var t;this.trackComment&&(t=[]);for(var e=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(n))++this.index;else if(i.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,e=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var r=this.skipSingleLineComment(2);this.trackComment&&(t=t.concat(r)),e=!0}else{if(42!==n)break;this.index+=2,r=this.skipMultiLineComment(),this.trackComment&&(t=t.concat(r))}else if(e&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,r=this.skipSingleLineComment(3),this.trackComment&&(t=t.concat(r))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,r=this.skipSingleLineComment(4),this.trackComment&&(t=t.concat(r))}}return t},t.prototype.isFutureReservedWord=function(t){switch(t){case"enum":case"export":case"import":case"super":return!0;default:return!1}},t.prototype.isStrictModeReservedWord=function(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},t.prototype.isRestrictedWord=function(t){return"eval"===t||"arguments"===t},t.prototype.isKeyword=function(t){switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}},t.prototype.codePointAt=function(t){var e=this.source.charCodeAt(t);if(e>=55296&&e<=56319){var n=this.source.charCodeAt(t+1);n>=56320&&n<=57343&&(e=1024*(e-55296)+n-56320+65536)}return e},t.prototype.scanHexEscape=function(t){for(var e="u"===t?4:2,n=0,r=0;r<e;++r){if(this.eof()||!i.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;n=16*n+s(this.source[this.index++])}return String.fromCharCode(n)},t.prototype.scanUnicodeCodePointEscape=function(){var t=this.source[this.index],e=0;for("}"===t&&this.throwUnexpectedToken();!this.eof()&&(t=this.source[this.index++],i.Character.isHexDigit(t.charCodeAt(0)));)e=16*e+s(t);return(e>1114111||"}"!==t)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(e)},t.prototype.getIdentifier=function(){for(var t=this.index++;!this.eof();){var e=this.source.charCodeAt(this.index);if(92===e)return this.index=t,this.getComplexIdentifier();if(e>=55296&&e<57343)return this.index=t,this.getComplexIdentifier();if(!i.Character.isIdentifierPart(e))break;++this.index}return this.source.slice(t,this.index)},t.prototype.getComplexIdentifier=function(){var t,e=this.codePointAt(this.index),n=i.Character.fromCodePoint(e);for(this.index+=n.length,92===e&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&i.Character.isIdentifierStart(t.charCodeAt(0))||this.throwUnexpectedToken(),n=t);!this.eof()&&(e=this.codePointAt(this.index),i.Character.isIdentifierPart(e));)n+=t=i.Character.fromCodePoint(e),this.index+=t.length,92===e&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,t=this.scanUnicodeCodePointEscape()):null!==(t=this.scanHexEscape("u"))&&"\\"!==t&&i.Character.isIdentifierPart(t.charCodeAt(0))||this.throwUnexpectedToken(),n+=t);return n},t.prototype.octalToDecimal=function(t){var e="0"!==t,n=a(t);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(e=!0,n=8*n+a(this.source[this.index++]),"0123".indexOf(t)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+a(this.source[this.index++]))),{code:n,octal:e}},t.prototype.scanIdentifier=function(){var t,e=this.index,n=92===this.source.charCodeAt(e)?this.getComplexIdentifier():this.getIdentifier();if(3!=(t=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&e+n.length!==this.index){var r=this.index;this.index=e,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=r}return{type:t,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},t.prototype.scanPunctuator=function(){var t=this.index,e=this.source[this.index];switch(e){case"(":case"{":"{"===e&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,e="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(e=this.source.substr(this.index,4))?this.index+=4:"==="===(e=e.substr(0,3))||"!=="===e||">>>"===e||"<<="===e||">>="===e||"**="===e?this.index+=3:"&&"===(e=e.substr(0,2))||"||"===e||"=="===e||"!="===e||"+="===e||"-="===e||"*="===e||"/="===e||"++"===e||"--"===e||"<<"===e||">>"===e||"&="===e||"|="===e||"^="===e||"%="===e||"<="===e||">="===e||"=>"===e||"**"===e?this.index+=2:"<>=!+-*%&|^/".indexOf(e=this.source[this.index])>=0&&++this.index}return this.index===t&&this.throwUnexpectedToken(),{type:7,value:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanHexLiteral=function(t){for(var e="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)e+=this.source[this.index++];return 0===e.length&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+e,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanBinaryLiteral=function(t){for(var e,n="";!this.eof()&&("0"===(e=this.source[this.index])||"1"===e);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(e=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(e)||i.Character.isDecimalDigit(e))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanOctalLiteral=function(t,e){var n="",r=!1;for(i.Character.isOctalDigit(t.charCodeAt(0))?(r=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return r||0!==n.length||this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},t.prototype.isImplicitOctalLiteral=function(){for(var t=this.index+1;t<this.length;++t){var e=this.source[t];if("8"===e||"9"===e)return!1;if(!i.Character.isOctalDigit(e.charCodeAt(0)))return!0}return!0},t.prototype.scanNumericLiteral=function(){var t=this.index,e=this.source[t];r.assert(i.Character.isDecimalDigit(e.charCodeAt(0))||"."===e,"Numeric literal must start with a decimal digit or a decimal point");var n="";if("."!==e){if(n=this.source[this.index++],e=this.source[this.index],"0"===n){if("x"===e||"X"===e)return++this.index,this.scanHexLiteral(t);if("b"===e||"B"===e)return++this.index,this.scanBinaryLiteral(t);if("o"===e||"O"===e)return this.scanOctalLiteral(e,t);if(e&&i.Character.isOctalDigit(e.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(e,t)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];e=this.source[this.index]}if("."===e){for(n+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];e=this.source[this.index]}if("e"===e||"E"===e)if(n+=this.source[this.index++],"+"!==(e=this.source[this.index])&&"-"!==e||(n+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanStringLiteral=function(){var t=this.index,e=this.source[t];r.assert("'"===e||'"'===e,"String literal must starts with a quote"),++this.index;for(var n=!1,s="";!this.eof();){var a=this.source[this.index++];if(a===e){e="";break}if("\\"===a)if((a=this.source[this.index++])&&i.Character.isLineTerminator(a.charCodeAt(0)))++this.lineNumber,"\r"===a&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(a){case"u":if("{"===this.source[this.index])++this.index,s+=this.scanUnicodeCodePointEscape();else{var l=this.scanHexEscape(a);null===l&&this.throwUnexpectedToken(),s+=l}break;case"x":var u=this.scanHexEscape(a);null===u&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),s+=u;break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"b":s+="\b";break;case"f":s+="\f";break;case"v":s+="\v";break;case"8":case"9":s+=a,this.tolerateUnexpectedToken();break;default:if(a&&i.Character.isOctalDigit(a.charCodeAt(0))){var c=this.octalToDecimal(a);n=c.octal||n,s+=String.fromCharCode(c.code)}else s+=a}else{if(i.Character.isLineTerminator(a.charCodeAt(0)))break;s+=a}}return""!==e&&(this.index=t,this.throwUnexpectedToken()),{type:8,value:s,octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanTemplate=function(){var t="",e=!1,n=this.index,r="`"===this.source[n],s=!1,a=2;for(++this.index;!this.eof();){var l=this.source[this.index++];if("`"===l){a=1,s=!0,e=!0;break}if("$"===l){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,e=!0;break}t+=l}else if("\\"===l)if(l=this.source[this.index++],i.Character.isLineTerminator(l.charCodeAt(0)))++this.lineNumber,"\r"===l&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(l){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+="\t";break;case"u":if("{"===this.source[this.index])++this.index,t+=this.scanUnicodeCodePointEscape();else{var u=this.index,c=this.scanHexEscape(l);null!==c?t+=c:(this.index=u,t+=l)}break;case"x":var h=this.scanHexEscape(l);null===h&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),t+=h;break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:"0"===l?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral),t+="\0"):i.Character.isOctalDigit(l.charCodeAt(0))?this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral):t+=l}else i.Character.isLineTerminator(l.charCodeAt(0))?(++this.lineNumber,"\r"===l&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,t+="\n"):t+=l}return e||this.throwUnexpectedToken(),r||this.curlyStack.pop(),{type:10,value:this.source.slice(n+1,this.index-a),cooked:t,head:r,tail:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},t.prototype.testRegExp=function(t,e){var n=t,r=this;e.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(t,e,n){var i=parseInt(e||n,16);return i>1114111&&r.throwUnexpectedToken(o.Messages.InvalidRegExp),i<=65535?String.fromCharCode(i):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(n)}catch(i){this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(t,e)}catch(s){return null}},t.prototype.scanRegExpBody=function(){var t=this.source[this.index];r.assert("/"===t,"Regular expression literal must start with a slash");for(var e=this.source[this.index++],n=!1,s=!1;!this.eof();)if(e+=t=this.source[this.index++],"\\"===t)t=this.source[this.index++],i.Character.isLineTerminator(t.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),e+=t;else if(i.Character.isLineTerminator(t.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(n)"]"===t&&(n=!1);else{if("/"===t){s=!0;break}"["===t&&(n=!0)}return s||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),e.substr(1,e.length-2)},t.prototype.scanRegExpFlags=function(){for(var t="";!this.eof();){var e=this.source[this.index];if(!i.Character.isIdentifierPart(e.charCodeAt(0)))break;if(++this.index,"\\"!==e||this.eof())t+=e;else if("u"===(e=this.source[this.index])){++this.index;var n=this.index,r=this.scanHexEscape("u");if(null!==r)for(t+=r;n<this.index;++n);else this.index=n,t+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return t},t.prototype.scanRegExp=function(){var t=this.index,e=this.scanRegExpBody(),n=this.scanRegExpFlags();return{type:9,value:"",pattern:e,flags:n,regex:this.testRegExp(e,n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var t=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(t)?this.scanIdentifier():40===t||41===t||59===t?this.scanPunctuator():39===t||34===t?this.scanStringLiteral():46===t?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(t)?this.scanNumericLiteral():96===t||125===t&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():t>=55296&&t<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},t}();e.Scanner=l},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenName={},e.TokenName[1]="Boolean",e.TokenName[2]="<end>",e.TokenName[3]="Identifier",e.TokenName[4]="Keyword",e.TokenName[5]="Null",e.TokenName[6]="Numeric",e.TokenName[7]="Punctuator",e.TokenName[8]="String",e.TokenName[9]="RegularExpression",e.TokenName[10]="Template"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(10),i=n(12),o=n(13),s=function(){function t(){this.values=[],this.curly=this.paren=-1}return t.prototype.beforeFunctionExpression=function(t){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(t)>=0},t.prototype.isRegexStart=function(){var t=this.values[this.values.length-1],e=null!==t;switch(t){case"this":case"]":e=!1;break;case")":var n=this.values[this.paren-1];e="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(e=!1,"function"===this.values[this.curly-3])e=!!(r=this.values[this.curly-4])&&!this.beforeFunctionExpression(r);else if("function"===this.values[this.curly-4]){var r;e=!(r=this.values[this.curly-5])||!this.beforeFunctionExpression(r)}}return e},t.prototype.push=function(t){7===t.type||4===t.type?("{"===t.value?this.curly=this.values.length:"("===t.value&&(this.paren=this.values.length),this.values.push(t.value)):this.values.push(null)},t}(),a=function(){function t(t,e){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=!!e&&"boolean"==typeof e.tolerant&&e.tolerant,this.scanner=new i.Scanner(t,this.errorHandler),this.scanner.trackComment=!!e&&"boolean"==typeof e.comment&&e.comment,this.trackRange=!!e&&"boolean"==typeof e.range&&e.range,this.trackLoc=!!e&&"boolean"==typeof e.loc&&e.loc,this.buffer=[],this.reader=new s}return t.prototype.errors=function(){return this.errorHandler.errors},t.prototype.getNextToken=function(){if(0===this.buffer.length){var t=this.scanner.scanComments();if(this.scanner.trackComment)for(var e=0;e<t.length;++e){var n=t[e],r=this.scanner.source.slice(n.slice[0],n.slice[1]),i={type:n.multiLine?"BlockComment":"LineComment",value:r};this.trackRange&&(i.range=n.range),this.trackLoc&&(i.loc=n.loc),this.buffer.push(i)}if(!this.scanner.eof()){var s=void 0;this.trackLoc&&(s={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var a="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(a);var l={type:o.TokenName[a.type],value:this.scanner.source.slice(a.start,a.end)};this.trackRange&&(l.range=[a.start,a.end]),this.trackLoc&&(s.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},l.loc=s),9===a.type&&(l.regex={pattern:a.pattern,flags:a.flags}),this.buffer.push(l)}}return this.buffer.shift()},t}();e.Tokenizer=a}])},t.exports=r()},"+dQi":function(t,e,n){!function(t){"use strict";t.defineMode("javascript",function(e,n){var r,i,o=e.indentUnit,s=n.statementIndent,a=n.jsonld,l=n.json||a,u=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,h=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),i=t("keyword d"),o=t("operator"),s={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,d=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function f(t,e,n){return r=t,i=n,e}function m(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,i=!1;if(a&&"@"==t.peek()&&t.match(d))return e.tokenize=m,f("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(e.tokenize=m),f("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d+(?:[eE][+\-]?\d+)?/))return f("number","number");if("."==r&&t.match(".."))return f("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return f(r);if("="==r&&t.eat(">"))return f("=>","operator");if("0"==r&&t.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return f("number","number");if(/\d/.test(r))return t.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),f("number","number");if("/"==r)return t.eat("*")?(e.tokenize=g,g(t,e)):t.eat("/")?(t.skipToEnd(),f("comment","comment")):Jt(t,e,1)?(function(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f("regexp","string-2")):(t.eat("="),f("operator","operator",t.current()));if("`"==r)return e.tokenize=v,v(t,e);if("#"==r)return t.skipToEnd(),f("error","error");if(p.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),f("operator","operator",t.current());if(c.test(r)){t.eatWhile(c);var i=t.current();if("."!=e.lastType){if(h.propertyIsEnumerable(i)){var o=h[i];return f(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return f("async","keyword",i)}return f("variable","variable",i)}}function g(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return f("comment","comment")}function v(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==n}return f("quasi","string-2",t.current())}var y="([{}])";function b(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var i=0,o=!1,s=n-1;s>=0;--s){var a=t.string.charAt(s),l=y.indexOf(a);if(l>=0&&l<3){if(!i){++s;break}if(0==--i){"("==a&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(c.test(a))o=!0;else{if(/["'\/]/.test(a))return;if(o&&!i){++s;break}}}o&&!i&&(e.fatArrowAt=s)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function C(t,e){for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}var _={state:null,column:null,marked:null,cc:null};function D(){for(var t=arguments.length-1;t>=0;t--)_.cc.push(arguments[t])}function S(){return D.apply(null,arguments),!0}function E(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function k(t){var e=_.state;if(_.marked="def",e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=function t(e,n){if(n){if(n.block){var r=t(e,n.prev);return r?r==n.prev?n:new O(r,n.vars,!0):null}return E(e,n.vars)?n:new O(n.prev,new T(e,n.vars),!1)}return null}(t,e.context);if(null!=r)return void(e.context=r)}else if(!E(t,e.localVars))return void(e.localVars=new T(t,e.localVars));n.globalVars&&!E(t,e.globalVars)&&(e.globalVars=new T(t,e.globalVars))}function A(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function O(t,e,n){this.prev=t,this.vars=e,this.block=n}function T(t,e){this.name=t,this.next=e}var M=new T("this",new T("arguments",null));function P(){_.state.context=new O(_.state.context,_.state.localVars,!1),_.state.localVars=M}function F(){_.state.context=new O(_.state.context,_.state.localVars,!0),_.state.localVars=null}function N(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}function I(t,e){var n=function(){var n=_.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,_.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function R(){var t=_.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function L(t){return function e(n){return n==t?S():";"==t||"}"==n||")"==n||"]"==n?D():S(e)}}function j(t,e){return"var"==t?S(I("vardef",e),yt,L(";"),R):"keyword a"==t?S(I("form"),z,j,R):"keyword b"==t?S(I("form"),j,R):"keyword d"==t?_.stream.match(/^\s*$/,!1)?S():S(I("stat"),W,L(";"),R):"debugger"==t?S(L(";")):"{"==t?S(I("}"),F,st,R,N):";"==t?S():"if"==t?("else"==_.state.lexical.info&&_.state.cc[_.state.cc.length-1]==R&&_.state.cc.pop()(),S(I("form"),z,j,R,Dt)):"function"==t?S(At):"for"==t?S(I("form"),St,j,R):"class"==t||u&&"interface"==e?(_.marked="keyword",S(I("form","class"==t?t:e),Ft,R)):"variable"==t?u&&"declare"==e?(_.marked="keyword",S(j)):u&&("module"==e||"enum"==e||"type"==e)&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword","enum"==e?S(Gt):"type"==e?S(Tt,L("operator"),ct,L(";")):S(I("form"),bt,L("{"),I("}"),st,R,R)):u&&"namespace"==e?(_.marked="keyword",S(I("form"),V,j,R)):u&&"abstract"==e?(_.marked="keyword",S(j)):S(I("stat"),Q):"switch"==t?S(I("form"),z,L("{"),I("}","switch"),F,st,R,R,N):"case"==t?S(V,L(":")):"default"==t?S(L(":")):"catch"==t?S(I("form"),P,B,j,R,N):"export"==t?S(I("stat"),Lt,R):"import"==t?S(I("stat"),Bt,R):"async"==t?S(j):"@"==e?S(V,j):D(I("stat"),V,L(";"),R)}function B(t){if("("==t)return S(Mt,L(")"))}function V(t,e){return H(t,e,!1)}function U(t,e){return H(t,e,!0)}function z(t){return"("!=t?D():S(I(")"),V,L(")"),R)}function H(t,e,n){if(_.state.fatArrowAt==_.stream.start){var r=n?$:q;if("("==t)return S(P,I(")"),it(Mt,")"),R,L("=>"),r,N);if("variable"==t)return D(P,bt,L("=>"),r,N)}var i=n?X:G;return x.hasOwnProperty(t)?S(i):"function"==t?S(At,i):"class"==t||u&&"interface"==e?(_.marked="keyword",S(I("form"),Pt,R)):"keyword c"==t||"async"==t?S(n?U:V):"("==t?S(I(")"),W,L(")"),R,i):"operator"==t||"spread"==t?S(n?U:V):"["==t?S(I("]"),Wt,R,i):"{"==t?ot(et,"}",null,i):"quasi"==t?D(J,i):"new"==t?S(function(t){return function(e){return"."==e?S(t?Y:Z):"variable"==e&&u?S(mt,t?X:G):D(t?U:V)}}(n)):"import"==t?S(V):S()}function W(t){return t.match(/[;\}\)\],]/)?D():D(V)}function G(t,e){return","==t?S(V):X(t,e,!1)}function X(t,e,n){var r=0==n?G:X,i=0==n?V:U;return"=>"==t?S(P,n?$:q,N):"operator"==t?/\+\+|--/.test(e)||u&&"!"==e?S(r):u&&"<"==e&&_.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?S(I(">"),it(ct,">"),R,r):"?"==e?S(V,L(":"),i):S(i):"quasi"==t?D(J,r):";"!=t?"("==t?ot(U,")","call",r):"."==t?S(tt,r):"["==t?S(I("]"),W,L("]"),R,r):u&&"as"==e?(_.marked="keyword",S(ct,r)):"regexp"==t?(_.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),S(i)):void 0:void 0}function J(t,e){return"quasi"!=t?D():"${"!=e.slice(e.length-2)?S(J):S(V,K)}function K(t){if("}"==t)return _.marked="string-2",_.state.tokenize=v,S(J)}function q(t){return b(_.stream,_.state),D("{"==t?j:V)}function $(t){return b(_.stream,_.state),D("{"==t?j:U)}function Z(t,e){if("target"==e)return _.marked="keyword",S(G)}function Y(t,e){if("target"==e)return _.marked="keyword",S(X)}function Q(t){return":"==t?S(R,j):D(G,L(";"),R)}function tt(t){if("variable"==t)return _.marked="property",S()}function et(t,e){return"async"==t?(_.marked="property",S(et)):"variable"==t||"keyword"==_.style?(_.marked="property","get"==e||"set"==e?S(nt):(u&&_.state.fatArrowAt==_.stream.start&&(n=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+n[0].length),S(rt))):"number"==t||"string"==t?(_.marked=a?"property":_.style+" property",S(rt)):"jsonld-keyword"==t?S(rt):u&&A(e)?(_.marked="keyword",S(et)):"["==t?S(V,at,L("]"),rt):"spread"==t?S(U,rt):"*"==e?(_.marked="keyword",S(et)):":"==t?D(rt):void 0;var n}function nt(t){return"variable"!=t?D(rt):(_.marked="property",S(At))}function rt(t){return":"==t?S(U):"("==t?D(At):void 0}function it(t,e,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var s=_.state.lexical;return"call"==s.info&&(s.pos=(s.pos||0)+1),S(function(n,r){return n==e||r==e?D():D(t)},r)}return i==e||o==e?S():n&&n.indexOf(";")>-1?D(t):S(L(e))}return function(n,i){return n==e||i==e?S():D(t,r)}}function ot(t,e,n){for(var r=3;r<arguments.length;r++)_.cc.push(arguments[r]);return S(I(e,n),it(t,e),R)}function st(t){return"}"==t?S():D(j,st)}function at(t,e){if(u){if(":"==t||"in"==e)return S(ct);if("?"==e)return S(at)}}function lt(t){if(u&&":"==t)return _.stream.match(/^\s*\w+\s+is\b/,!1)?S(V,ut,ct):S(ct)}function ut(t,e){if("is"==e)return _.marked="keyword",S()}function ct(t,e){return"keyof"==e||"typeof"==e||"infer"==e?(_.marked="keyword",S("typeof"==e?U:ct)):"variable"==t||"void"==e?(_.marked="type",S(ft)):"|"==e||"&"==e?S(ct):"string"==t||"number"==t||"atom"==t?S(ft):"["==t?S(I("]"),it(ct,"]",","),R,ft):"{"==t?S(I("}"),it(pt,"}",",;"),R,ft):"("==t?S(it(dt,")"),ht,ft):"<"==t?S(it(ct,">"),ct):void 0}function ht(t){if("=>"==t)return S(ct)}function pt(t,e){return"variable"==t||"keyword"==_.style?(_.marked="property",S(pt)):"?"==e||"number"==t||"string"==t?S(pt):":"==t?S(ct):"["==t?S(L("variable"),at,L("]"),pt):"("==t?D(Ot,pt):void 0}function dt(t,e){return"variable"==t&&_.stream.match(/^\s*[?:]/,!1)||"?"==e?S(dt):":"==t?S(ct):"spread"==t?S(dt):D(ct)}function ft(t,e){return"<"==e?S(I(">"),it(ct,">"),R,ft):"|"==e||"."==t||"&"==e?S(ct):"["==t?S(ct,L("]"),ft):"extends"==e||"implements"==e?(_.marked="keyword",S(ct)):"?"==e?S(ct,L(":"),ct):void 0}function mt(t,e){if("<"==e)return S(I(">"),it(ct,">"),R,ft)}function gt(){return D(ct,vt)}function vt(t,e){if("="==e)return S(ct)}function yt(t,e){return"enum"==e?(_.marked="keyword",S(Gt)):D(bt,at,Ct,_t)}function bt(t,e){return u&&A(e)?(_.marked="keyword",S(bt)):"variable"==t?(k(e),S()):"spread"==t?S(bt):"["==t?ot(wt,"]"):"{"==t?ot(xt,"}"):void 0}function xt(t,e){return"variable"!=t||_.stream.match(/^\s*:/,!1)?("variable"==t&&(_.marked="property"),"spread"==t?S(bt):"}"==t?D():"["==t?S(V,L("]"),L(":"),xt):S(L(":"),bt,Ct)):(k(e),S(Ct))}function wt(){return D(bt,Ct)}function Ct(t,e){if("="==e)return S(U)}function _t(t){if(","==t)return S(yt)}function Dt(t,e){if("keyword b"==t&&"else"==e)return S(I("form","else"),j,R)}function St(t,e){return"await"==e?S(St):"("==t?S(I(")"),Et,R):void 0}function Et(t){return"var"==t?S(yt,kt):"variable"==t?S(kt):D(kt)}function kt(t,e){return")"==t?S():";"==t?S(kt):"in"==e||"of"==e?(_.marked="keyword",S(V,kt)):D(V,kt)}function At(t,e){return"*"==e?(_.marked="keyword",S(At)):"variable"==t?(k(e),S(At)):"("==t?S(P,I(")"),it(Mt,")"),R,lt,j,N):u&&"<"==e?S(I(">"),it(gt,">"),R,At):void 0}function Ot(t,e){return"*"==e?(_.marked="keyword",S(Ot)):"variable"==t?(k(e),S(Ot)):"("==t?S(P,I(")"),it(Mt,")"),R,lt,N):u&&"<"==e?S(I(">"),it(gt,">"),R,Ot):void 0}function Tt(t,e){return"keyword"==t||"variable"==t?(_.marked="type",S(Tt)):"<"==e?S(I(">"),it(gt,">"),R):void 0}function Mt(t,e){return"@"==e&&S(V,Mt),"spread"==t?S(Mt):u&&A(e)?(_.marked="keyword",S(Mt)):u&&"this"==t?S(at,Ct):D(bt,at,Ct)}function Pt(t,e){return"variable"==t?Ft(t,e):Nt(t,e)}function Ft(t,e){if("variable"==t)return k(e),S(Nt)}function Nt(t,e){return"<"==e?S(I(">"),it(gt,">"),R,Nt):"extends"==e||"implements"==e||u&&","==t?("implements"==e&&(_.marked="keyword"),S(u?ct:V,Nt)):"{"==t?S(I("}"),It,R):void 0}function It(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||u&&A(e))&&_.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(_.marked="keyword",S(It)):"variable"==t||"keyword"==_.style?(_.marked="property",S(u?Rt:At,It)):"number"==t||"string"==t?S(u?Rt:At,It):"["==t?S(V,at,L("]"),u?Rt:At,It):"*"==e?(_.marked="keyword",S(It)):u&&"("==t?D(Ot,It):";"==t||","==t?S(It):"}"==t?S():"@"==e?S(V,It):void 0}function Rt(t,e){if("?"==e)return S(Rt);if(":"==t)return S(ct,Ct);if("="==e)return S(U);var n=_.state.lexical.prev;return D(n&&"interface"==n.info?Ot:At)}function Lt(t,e){return"*"==e?(_.marked="keyword",S(Ht,L(";"))):"default"==e?(_.marked="keyword",S(V,L(";"))):"{"==t?S(it(jt,"}"),Ht,L(";")):D(j)}function jt(t,e){return"as"==e?(_.marked="keyword",S(L("variable"))):"variable"==t?D(U,jt):void 0}function Bt(t){return"string"==t?S():"("==t?D(V):D(Vt,Ut,Ht)}function Vt(t,e){return"{"==t?ot(Vt,"}"):("variable"==t&&k(e),"*"==e&&(_.marked="keyword"),S(zt))}function Ut(t){if(","==t)return S(Vt,Ut)}function zt(t,e){if("as"==e)return _.marked="keyword",S(Vt)}function Ht(t,e){if("from"==e)return _.marked="keyword",S(V)}function Wt(t){return"]"==t?S():D(it(U,"]"))}function Gt(){return D(I("form"),bt,L("{"),I("}"),it(Xt,"}"),R,R)}function Xt(){return D(bt,Ct)}function Jt(t,e,n){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return N.lex=!0,R.lex=!0,{startState:function(t){var e={tokenize:m,lastType:"sof",cc:[],lexical:new w((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new O(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),b(t,e)),e.tokenize!=g&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(t,e,n,r,i){var o=t.cc;for(_.state=t,_.stream=i,_.marked=null,_.cc=o,_.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():l?V:j)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return _.marked?_.marked:"variable"==n&&C(t,r)?"variable-2":e}}(e,n,r,i,t))},indent:function(e,r){if(e.tokenize==g)return t.Pass;if(e.tokenize!=m)return 0;var i,a=r&&r.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(r))for(var u=e.cc.length-1;u>=0;--u){var c=e.cc[u];if(c==R)l=l.prev;else if(c!=Dt)break}for(;("stat"==l.type||"form"==l.type)&&("}"==a||(i=e.cc[e.cc.length-1])&&(i==G||i==X)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;s&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var h=l.type,d=a==h;return"vardef"==h?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==h&&"{"==a?l.indented:"form"==h?l.indented+o:"stat"==h?l.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||p.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?s||o:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:a,jsonMode:l,expressionAllowed:Jt,skipExpression:function(t){var e=t.cc[t.cc.length-1];e!=V&&e!=U||t.cc.pop()}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("VrN/"))},"+umK":function(t,e,n){"use strict";function r(){}n.d(e,"a",function(){return r})},0:function(t,e,n){t.exports=n("zUnb")},"2Bdj":function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},"6ahw":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("iLxQ"),i=n("DKTb"),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},"6blF":function(t,e,n){"use strict";var r=n("FFOo"),i=n("L/V9"),o=n("6ahw"),s=n("xTla"),a=n("y3By"),l=n("iLxQ");n.d(e,"a",function(){return u});var u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var s=this.operator,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a.add(s?s.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof r.a?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=c(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:Object(a.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=c(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function c(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},"8g8A":function(t,e,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(e,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},DKTb:function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},FFOo:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),i=n("2Bdj"),o=n("6ahw"),s=n("pugT"),a=n("L/V9"),l=n("iLxQ"),u=n("DKTb"),c=function(t){function e(n,r,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.a;break;case 1:if(!n){s.destination=o.a;break}if("object"==typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,n,r,i)}return s}return r.c(e,t),e.prototype[a.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(s.a),h=function(t){function e(e,n,r,s){var a,l=t.call(this)||this;l._parentSubscriber=e;var u=l;return Object(i.a)(n)?a=n:n&&(a=n.next,r=n.error,s=n.complete,n!==o.a&&(u=Object.create(n),Object(i.a)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(l))),l._context=u,l._next=a,l._error=r,l._complete=s,l}return r.c(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;l.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=l.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};l.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),l.a.useDeprecatedSynchronousErrorHandling)throw n;Object(u.a)(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!l.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return l.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(u.a)(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},K9Ia:function(t,e,n){"use strict";var r=n("mrSG"),i=n("6blF"),o=n("FFOo"),s=n("pugT"),a=n("8g8A"),l=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.c(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(s.a),u=n("L/V9");n.d(e,"b",function(){return c}),n.d(e,"a",function(){return h});var c=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.c(e,t),e}(o.a),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.c(e,t),e.prototype[u.a]=function(){return new c(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.a;return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.isStopped?(t.complete(),s.a.EMPTY):(this.observers.push(t),new l(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i.a),p=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.c(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.a.EMPTY},e}(h)},KWWs:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("K9Ia"),i=function(){function t(){this.notificationsSource=new r.a,this.notifications=this.notificationsSource.asObservable()}return t.prototype.notifyError=function(t){this.notificationsSource.next({type:"error",message:t})},t}()},"L/V9":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},McSo:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return r})},"VrN/":function(t,e,n){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),s=r||i||o,a=s&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),u=l&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\//.test(t),h=/Opera\//.test(t),p=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),f=/PhantomJS/.test(t),m=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),g=/Android/.test(t),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=m||/Mac/.test(e),b=/\bCrOS\b/.test(t),x=/win/i.test(e),w=h&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(h=!1,l=!0);var C=y&&(u||h&&(null==w||w<12.11)),_=n||s&&a>=9;function D(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var S,E=function(t,e){var n=t.className,r=D(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function k(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function A(t,e){return k(t).appendChild(e)}function O(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)i.appendChild(e[o]);return i}function T(t,e,n,r){var i=O(t,e,n,r);return i.setAttribute("role","presentation"),i}function M(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function P(){var t;try{t=document.activeElement}catch(xe){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function F(t,e){var n=t.className;D(e).test(n)||(t.className+=(n?" ":"")+e)}function N(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!D(n[r]).test(e)&&(e+=" "+n[r]);return e}S=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(xe){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var I=function(t){t.select()};function R(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function L(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function j(t,e,n,r,i){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=r||0,s=i||0;;){var a=t.indexOf("\t",o);if(a<0||a>=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}m?I=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(I=function(t){try{t.select()}catch(e){}});var B=function(){this.id=null};function V(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}B.prototype.set=function(t,e){clearTimeout(this.id),this.id=setTimeout(e,t)};var U=30,z={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},W={origin:"*mouse"},G={origin:"+move"};function X(t,e,n){for(var r=0,i=0;;){var o=t.indexOf("\t",r);-1==o&&(o=t.length);var s=o-r;if(o==t.length||i+s>=e)return r+Math.min(s,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var J=[""];function K(t){for(;J.length<=t;)J.push(q(J)+" ");return J[t]}function q(t){return t[t.length-1]}function $(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function Z(){}function Y(t,e){var n;return Object.create?n=Object.create(t):(Z.prototype=t,n=new Z),e&&L(e,n),n}var Q=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||Q.test(t))}function et(t,e){return e?!!(e.source.indexOf("\\w")>-1&&tt(t))||e.test(t):tt(t)}function nt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var rt=/[\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 it(t){return t.charCodeAt(0)>=768&&rt.test(t)}function ot(t,e,n){for(;(n<0?e>0:e<t.length)&&it(t.charAt(e));)e+=n;return e}function st(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}function at(t,e,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=T("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=T("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=T("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: "+U+"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"),s&&a<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&v||(i.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(i.wrapper):t(i.wrapper)),i.viewFrom=i.viewTo=e.first,i.reportedViewFrom=i.reportedViewTo=e.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 lt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e<o){n=i;break}e-=o}return n.lines[e]}function ut(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,function(t){var o=t.text;i==n.line&&(o=o.slice(0,n.ch)),i==e.line&&(o=o.slice(e.ch)),r.push(o),++i}),r}function ct(t,e,n){var r=[];return t.iter(e,n,function(t){r.push(t.text)}),r}function ht(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function pt(t){if(null==t.parent)return null;for(var e=t.parent,n=V(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;r.children[i]!=e;++i)n+=r.children[i].chunkSize();return n+e.first}function dt(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],o=i.height;if(e<o){t=i;continue t}e-=o,n+=i.chunkSize()}return n}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s].height;if(e<a)break;e-=a}return n+s}function ft(t,e){return e>=t.first&&e<t.first+t.size}function mt(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function gt(t,e,n){if(void 0===n&&(n=null),!(this instanceof gt))return new gt(t,e,n);this.line=t,this.ch=e,this.sticky=n}function vt(t,e){return t.line-e.line||t.ch-e.ch}function yt(t,e){return t.sticky==e.sticky&&0==vt(t,e)}function bt(t){return gt(t.line,t.ch)}function xt(t,e){return vt(t,e)<0?e:t}function wt(t,e){return vt(t,e)<0?t:e}function Ct(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function _t(t,e){if(e.line<t.first)return gt(t.first,0);var n=t.first+t.size-1;return e.line>n?gt(n,lt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?gt(t.line,e):n<0?gt(t.line,0):t}(e,lt(t,e.line).text.length)}function Dt(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=_t(t,e[r]);return n}var St=!1,Et=!1;function kt(t,e,n){this.marker=t,this.from=e,this.to=n}function At(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Ot(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function Tt(t,e){if(e.full)return null;var n=ft(t,e.from.line)&<(t,e.from.line).markedSpans,r=ft(t,e.to.line)&<(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,o=e.to.ch,s=0==vt(e.from,e.to),a=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],s=o.marker;null!=o.from&&!(s.inclusiveLeft?o.from<=e:o.from<e)&&(o.from!=e||"bookmark"!=s.type||n&&o.marker.insertLeft)||(r||(r=[])).push(new kt(s,o.from,null==o.to||(s.inclusiveRight?o.to>=e:o.to>e)?null:o.to))}return r}(n,i,s),l=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],s=o.marker;(null==o.to||(s.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft))&&(r||(r=[])).push(new kt(s,null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e)?null:o.from-e,null==o.to?null:o.to-e))}return r}(r,o,s),u=1==e.text.length,c=q(e.text).length+(u?i:0);if(a)for(var h=0;h<a.length;++h){var p=a[h];if(null==p.to){var d=At(l,p.marker);d?u&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(l)for(var f=0;f<l.length;++f){var m=l[f];null!=m.to&&(m.to+=c),null==m.from?At(a,m.marker)||(m.from=c,u&&(a||(a=[])).push(m)):(m.from+=c,u&&(a||(a=[])).push(m))}a&&(a=Mt(a)),l&&l!=a&&(l=Mt(l));var g=[a];if(!u){var v,y=e.text.length-2;if(y>0&&a)for(var b=0;b<a.length;++b)null==a[b].to&&(v||(v=[])).push(new kt(a[b].marker,null,null));for(var x=0;x<y;++x)g.push(v);g.push(l)}return g}function Mt(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Pt(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function Ft(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Nt(t){return t.inclusiveLeft?-1:0}function It(t){return t.inclusiveRight?1:0}function Rt(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),o=vt(r.from,i.from)||Nt(t)-Nt(e);return o?-o:vt(r.to,i.to)||It(t)-It(e)||e.id-t.id}function Lt(t,e){var n,r=Et&&t.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(e?i.from:i.to)&&(!n||Rt(n,i.marker)<0)&&(n=i.marker);return n}function jt(t){return Lt(t,!0)}function Bt(t){return Lt(t,!1)}function Vt(t,e){var n,r=Et&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!n||Rt(n,o.marker)<0)&&(n=o.marker)}return n}function Ut(t,e,n,r,i){var o=lt(t,e),s=Et&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var u=l.marker.find(0),c=vt(u.from,n)||Nt(l.marker)-Nt(i),h=vt(u.to,r)||It(l.marker)-It(i);if(!(c>=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?vt(u.to,n)>=0:vt(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?vt(u.from,r)<=0:vt(u.from,r)<0)))return!0}}}function zt(t){for(var e;e=jt(t);)t=e.find(-1,!0).line;return t}function Ht(t,e){var n=lt(t,e),r=zt(n);return n==r?e:pt(r)}function Wt(t,e){if(e>t.lastLine())return e;var n,r=lt(t,e);if(!Gt(t,r))return e;for(;n=Bt(r);)r=n.find(1,!0).line;return pt(r)+1}function Gt(t,e){var n=Et&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Xt(t,e,r))return!0}}function Xt(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return Xt(t,r.line,At(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,o=0;o<e.markedSpans.length;++o)if((i=e.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Xt(t,e,i))return!0}function Jt(t){for(var e=0,n=(t=zt(t)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==n)break;e+=a.height}return e}function Kt(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=jt(r);){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=t;e=Bt(r);){var o=e.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function qt(t){var e=t.display,n=t.doc;e.maxLine=lt(n,n.first),e.maxLineLength=Kt(e.maxLine),e.maxLineChanged=!0,n.iter(function(t){var n=Kt(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}var $t=null;function Zt(t,e,n){var r;$t=null;for(var i=0;i<t.length;++i){var o=t[i];if(o.from<e&&o.to>e)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:$t=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:$t=i)}return null!=r?r:$t}var Yt=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(t,e,n){this.level=t,this.from=e,this.to=n}return function(s,a){var l,u="ltr"==a?"L":"R";if(0==s.length||"ltr"==a&&!t.test(s))return!1;for(var c=s.length,h=[],p=0;p<c;++p)h.push((l=s.charCodeAt(p))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var d=0,f=u;d<c;++d){var m=h[d];"m"==m?h[d]=f:f=m}for(var g=0,v=u;g<c;++g){var y=h[g];"1"==y&&"r"==v?h[g]="n":n.test(y)&&(v=y,"r"==y&&(h[g]="R"))}for(var b=1,x=h[0];b<c-1;++b){var w=h[b];"+"==w&&"1"==x&&"1"==h[b+1]?h[b]="1":","!=w||x!=h[b+1]||"1"!=x&&"n"!=x||(h[b]=x),x=w}for(var C=0;C<c;++C){var _=h[C];if(","==_)h[C]="N";else if("%"==_){var D=void 0;for(D=C+1;D<c&&"%"==h[D];++D);for(var S=C&&"!"==h[C-1]||D<c&&"1"==h[D]?"1":"N",E=C;E<D;++E)h[E]=S;C=D-1}}for(var k=0,A=u;k<c;++k){var O=h[k];"L"==A&&"1"==O?h[k]="L":n.test(O)&&(A=O)}for(var T=0;T<c;++T)if(e.test(h[T])){var M=void 0;for(M=T+1;M<c&&e.test(h[M]);++M);for(var P="L"==(T?h[T-1]:u),F=P==("L"==(M<c?h[M]:u))?P?"L":"R":u,N=T;N<M;++N)h[N]=F;T=M-1}for(var I,R=[],L=0;L<c;)if(r.test(h[L])){var j=L;for(++L;L<c&&r.test(h[L]);++L);R.push(new o(0,j,L))}else{var B=L,V=R.length;for(++L;L<c&&"L"!=h[L];++L);for(var U=B;U<L;)if(i.test(h[U])){B<U&&R.splice(V,0,new o(1,B,U));var z=U;for(++U;U<L&&i.test(h[U]);++U);R.splice(V,0,new o(2,z,U)),B=U}else++U;B<L&&R.splice(V,0,new o(1,B,L))}return"ltr"==a&&(1==R[0].level&&(I=s.match(/^\s+/))&&(R[0].from=I[0].length,R.unshift(new o(0,0,I[0].length))),1==q(R).level&&(I=s.match(/\s+$/))&&(q(R).to-=I[0].length,R.push(new o(0,c-I[0].length,c)))),"rtl"==a?R.reverse():R}}();function Qt(t,e){var n=t.order;return null==n&&(n=t.order=Yt(t.text,e)),n}var te=[],ee=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||te).concat(n)}};function ne(t,e){return t._handlers&&t._handlers[e]||te}function re(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var o=V(i,n);o>-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function ie(t,e){var n=ne(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function oe(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),ie(t,n||e.type,t,e),he(e)||e.codemirrorIgnore}function se(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==V(n,e[r])&&n.push(e[r])}function ae(t,e){return ne(t,e).length>0}function le(t){t.prototype.on=function(t,e){ee(this,t,e)},t.prototype.off=function(t,e){re(this,t,e)}}function ue(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function ce(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function he(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function pe(t){ue(t),ce(t)}function de(t){return t.target||t.srcElement}function fe(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var me,ge,ve=function(){if(s&&a<9)return!1;var t=O("div");return"draggable"in t||"dragDrop"in t}();function ye(t){if(null==me){var e=O("span","\u200b");A(t,O("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(me=e.offsetWidth<=1&&e.offsetHeight>2&&!(s&&a<8))}var n=me?O("span","\u200b"):O("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function be(t){if(null!=ge)return ge;var e=A(t,document.createTextNode("A\u062eA")),n=S(e,0,1).getBoundingClientRect(),r=S(e,1,2).getBoundingClientRect();return k(t),!(!n||n.left==n.right)&&(ge=r.right-n.right<3)}var xe,we=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ce=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(xe){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(xe){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},_e="oncopy"in(xe=O("div"))||(xe.setAttribute("oncopy","return;"),"function"==typeof xe.oncopy),De=null,Se={},Ee={};function ke(t){if("string"==typeof t&&Ee.hasOwnProperty(t))t=Ee[t];else if(t&&"string"==typeof t.name&&Ee.hasOwnProperty(t.name)){var e=Ee[t.name];"string"==typeof e&&(e={name:e}),(t=Y(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return ke("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return ke("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ae(t,e){e=ke(e);var n=Se[e.name];if(!n)return Ae(t,"text/plain");var r=n(t,e);if(Oe.hasOwnProperty(e.name)){var i=Oe[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)r[s]=e.modeProps[s];return r}var Oe={};function Te(t,e){L(e,Oe.hasOwnProperty(t)?Oe[t]:Oe[t]={})}function Me(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Pe(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Fe(t,e,n){return!t.startState||t.startState(e,n)}var Ne=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Ne.prototype.eol=function(){return this.pos>=this.string.length},Ne.prototype.sol=function(){return this.pos==this.lineStart},Ne.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ne.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ne.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Ne.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Ne.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Ne.prototype.skipToEnd=function(){this.pos=this.string.length},Ne.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Ne.prototype.backUp=function(t){this.pos-=t},Ne.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=j(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},Ne.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},Ne.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},Ne.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ne.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Ne.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Ne.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var Ie=function(t,e){this.state=t,this.lookAhead=e},Re=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Le(t,e,n,r){var i=[t.state.modeGen],o={};Xe(t,e.text,t.doc.mode,n,function(t,e){return i.push(t,e)},o,r);for(var s=n.state,a=function(r){n.baseTokens=i;var a=t.state.overlays[r],l=1,u=0;n.state=!0,Xe(t,e.text,a.mode,n,function(t,e){for(var n=l;u<t;){var r=i[l];r>t&&i.splice(l,1,t,i[l+1],r),l+=2,u=Math.min(t,r)}if(e)if(a.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+e}},o),n.state=s,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)a(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function je(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=Be(t,pt(e)),i=e.text.length>t.options.maxHighlightLength&&Me(t.doc.mode,r.state),o=Le(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Be(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new Re(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=lt(o,a-1),u=l.stateAfter;if(u&&(!n||a+(u instanceof Ie?u.lookAhead:0)<=o.modeFrontier))return a;var c=j(l.text,null,t.options.tabSize);(null==i||r>c)&&(i=a-1,r=c)}return i}(t,e,n),s=o>r.first&<(r,o-1).stateAfter,a=s?Re.fromSaved(r,s,o):new Re(r,Fe(r.mode),o);return r.iter(o,e,function(n){Ve(t,n.text,a);var r=a.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?a.save():null,a.nextLine()}),n&&(r.modeFrontier=a.line),a}function Ve(t,e,n,r){var i=t.doc.mode,o=new Ne(e,t.options.tabSize,n);for(o.start=o.pos=r||0,""==e&&Ue(i,n.state);!o.eol();)ze(i,o,n.state),o.start=o.pos}function Ue(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Pe(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function ze(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Pe(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}Re.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},Re.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Re.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Re.fromSaved=function(t,e,n){return e instanceof Ie?new Re(t,Me(t.mode,e.state),n,e.lookAhead):new Re(t,Me(t.mode,e),n)},Re.prototype.save=function(t){var e=!1!==t?Me(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ie(e,this.maxLookAhead):e};var He=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function We(t,e,n,r){var i,o,s=t.doc,a=s.mode,l=lt(s,(e=_t(s,e)).line),u=Be(t,e.line,n),c=new Ne(l.text,t.options.tabSize,u);for(r&&(o=[]);(r||c.pos<e.ch)&&!c.eol();)c.start=c.pos,i=ze(a,c,u.state),r&&o.push(new He(c,i,Me(s.mode,u.state)));return r?o:new He(c,i,u.state)}function Ge(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(e[r])||(e[r]+=" "+n[2])}return t}function Xe(t,e,n,r,i,o,s){var a=n.flattenSpans;null==a&&(a=t.options.flattenSpans);var l,u=0,c=null,h=new Ne(e,t.options.tabSize,r),p=t.options.addModeClass&&[null];for(""==e&&Ge(Ue(n,r.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(a=!1,s&&Ve(t,e,r,h.pos),h.pos=e.length,l=null):l=Ge(ze(n,h,r.state,p),o),p){var d=p[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!a||c!=l){for(;u<h.start;)i(u=Math.min(h.start,u+5e3),c);c=l}h.start=h.pos}for(;u<h.pos;){var f=Math.min(h.pos,u+5e3);i(f,c),u=f}}var Je=function(t,e,n){this.text=t,Ft(this,e),this.height=n?n(this):1};function Ke(t){t.parent=null,Pt(t)}Je.prototype.lineNo=function(){return pt(this)},le(Je);var qe={},$e={};function Ze(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?$e:qe;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Ye(t,e){var n=T("span",null,null,l?"padding-right: .1px":null),r={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,s=void 0;r.pos=0,r.addToken=tn,be(t.display.measure)&&(s=Qt(o,t.doc.direction))&&(r.addToken=en(r.addToken,s)),r.map=[],rn(o,r,je(t,o,e!=t.display.externalMeasured&&pt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=N(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(ye(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ie(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function Qe(t){var e=O("span","\u2022","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function tn(t,e,n,r,i,o,l){if(e){var u,c=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var o=t.charAt(i);" "!=o||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(o="\xa0"),r+=o,n=" "==o}return r}(e,t.trailingSpace):e,h=t.cm.state.specialChars,p=!1;if(h.test(e)){u=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var f=h.exec(e),m=f?f.index-d:e.length-d;if(m){var g=document.createTextNode(c.slice(d,d+m));u.appendChild(s&&a<9?O("span",[g]):g),t.map.push(t.pos,t.pos+m,g),t.col+=m,t.pos+=m}if(!f)break;d+=m+1;var v=void 0;if("\t"==f[0]){var y=t.cm.options.tabSize,b=y-t.col%y;(v=u.appendChild(O("span",K(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=b}else"\r"==f[0]||"\n"==f[0]?((v=u.appendChild(O("span","\r"==f[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",f[0]),t.col+=1):((v=t.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),u.appendChild(s&&a<9?O("span",[v]):v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,u=document.createTextNode(c),t.map.push(t.pos,t.pos+e.length,u),s&&a<9&&(p=!0),t.pos+=e.length;if(t.trailingSpace=32==c.charCodeAt(e.length-1),n||r||i||p||o){var x=n||"";r&&(x+=r),i&&(x+=i);var w=O("span",[u],x,o);if(l)for(var C in l)l.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&w.setAttribute(C,l[C]);return t.content.appendChild(w)}t.content.appendChild(u)}}function en(t,e){return function(n,r,i,o,s,a,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var h=void 0,p=0;p<e.length&&!((h=e[p]).to>u&&h.from<=u);p++);if(h.to>=c)return t(n,r,i,o,s,a,l);t(n,r.slice(0,h.to-u),i,o,null,a,l),o=null,r=r.slice(h.to-u),u=h.to}}}function nn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function rn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var s,a,l,u,c,h,p,d=i.length,f=0,m=1,g="",v=0;;){if(v==f){l=u=c=a="",p=null,h=null,v=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var w=r[x],C=w.marker;if("bookmark"==C.type&&w.from==f&&C.widgetNode)y.push(C);else if(w.from<=f&&(null==w.to||w.to>f||C.collapsed&&w.to==f&&w.from==f)){if(null!=w.to&&w.to!=f&&v>w.to&&(v=w.to,u=""),C.className&&(l+=" "+C.className),C.css&&(a=(a?a+";":"")+C.css),C.startStyle&&w.from==f&&(c+=" "+C.startStyle),C.endStyle&&w.to==v&&(b||(b=[])).push(C.endStyle,w.to),C.title&&((p||(p={})).title=C.title),C.attributes)for(var _ in C.attributes)(p||(p={}))[_]=C.attributes[_];C.collapsed&&(!h||Rt(h.marker,C)<0)&&(h=w)}else w.from>f&&v>w.from&&(v=w.from)}if(b)for(var D=0;D<b.length;D+=2)b[D+1]==v&&(u+=" "+b[D]);if(!h||h.from==f)for(var S=0;S<y.length;++S)nn(e,0,y[S]);if(h&&(h.from||0)==f){if(nn(e,(null==h.to?d+1:h.to)-f,h.marker,null==h.from),null==h.to)return;h.to==f&&(h=!1)}}if(f>=d)break;for(var E=Math.min(d,v);;){if(g){var k=f+g.length;if(!h){var A=k>E?g.slice(0,E-f):g;e.addToken(e,A,s?s+l:l,c,f+A.length==v?u:"",a,p)}if(k>=E){g=g.slice(E-f),f=E;break}f=k,c=""}g=i.slice(o,o=n[m++]),s=Ze(n[m++],e.cm.options)}}else for(var O=1;O<n.length;O+=2)e.addToken(e,i.slice(o,o=n[O]),Ze(n[O+1],e.cm.options))}function on(t,e,n){this.line=e,this.rest=function(t){for(var e,n;e=Bt(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}(e),this.size=this.rest?pt(q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Gt(t,e)}function sn(t,e,n){for(var r,i=[],o=e;o<n;o=r){var s=new on(t.doc,lt(t.doc,o),o);r=o+s.size,i.push(s)}return i}var an=null,ln=null;function un(t,e){var n=ne(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:ln?r=ln:(r=ln=[],setTimeout(cn,0));for(var o=function(t){r.push(function(){return n[t].apply(null,i)})},s=0;s<n.length;++s)o(s)}}function cn(){var t=ln;ln=null;for(var e=0;e<t.length;++e)t[e]()}function hn(t,e,n,r){for(var i=0;i<e.changes.length;i++){var o=e.changes[i];"text"==o?fn(t,e):"gutter"==o?gn(t,e,n,r):"class"==o?mn(t,e):"widget"==o&&vn(t,e,r)}e.changes=null}function pn(t){return t.node==t.text&&(t.node=O("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),s&&a<8&&(t.node.style.zIndex=2)),t.node}function dn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):Ye(t,e)}function fn(t,e){var n=e.text.className,r=dn(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,mn(t,e)):n&&(e.text.className=n)}function mn(t,e){!function(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=pn(e);e.background=r.insertBefore(O("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?pn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className=""),e.text.className=(e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass)||""}function gn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=pn(e);e.gutterBackground=O("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var s=pn(e),a=e.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(a),s.insertBefore(a,e.text),e.line.gutterClass&&(a.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=a.appendChild(O("div",mt(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.options.gutters.length;++l){var u=t.options.gutters[l],c=o.hasOwnProperty(u)&&o[u];c&&a.appendChild(O("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function vn(t,e,n){e.alignable&&(e.alignable=null);for(var r=e.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&e.node.removeChild(r);bn(t,e,n)}function yn(t,e,n,r){var i=dn(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),mn(t,e),gn(t,e,n,r),bn(t,e,r),e.node}function bn(t,e,n){if(xn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)xn(t,e.rest[r],e,n,!1)}function xn(t,e,n,r,i){if(e.widgets)for(var o=pn(n),s=0,a=e.widgets;s<a.length;++s){var l=a[s],u=O("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),wn(l,u,n,r),t.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),un(l,"redraw")}}function wn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function Cn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!M(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),A(e.display.measure,O("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function _n(t,e){for(var n=de(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Dn(t){return t.lineSpace.offsetTop}function Sn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function En(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=A(t.measure,O("pre","x")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function kn(t){return U-t.display.nativeBarWidth}function An(t){return t.display.scroller.clientWidth-kn(t)-t.display.barWidth}function On(t){return t.display.scroller.clientHeight-kn(t)-t.display.barHeight}function Tn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(pt(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Mn(t,e,n,r){return Nn(t,Fn(t,e),n,r)}function Pn(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[ur(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Fn(t,e){var n=pt(e),r=Pn(t,n);r&&!r.text?r=null:r&&r.changes&&(hn(t,r,n,ir(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var n=pt(e=zt(e)),r=t.display.externalMeasured=new on(t.doc,e,n);r.lineN=n;var i=r.built=Ye(t,r);return r.text=i.pre,A(t.display.lineMeasure,i.pre),r}(t,e));var i=Tn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Nn(t,e,n,r,i){e.before&&(n=-1);var o,l=n+(r||"");return e.cache.hasOwnProperty(l)?o=e.cache[l]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,n){var r=t.options.lineWrapping,i=r&&An(t);if(!e.measure.heights||r&&e.measure.width!=i){var o=e.measure.heights=[];if(r){e.measure.width=i;for(var s=e.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],u=s[a+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=Ln(e.map,n,r),l=o.node,u=o.start,c=o.end,h=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;u&&it(e.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&it(e.line.text.charAt(o.coverStart+c));)++c;if((i=s&&a<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():jn(S(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,h="right"}s&&a<11&&(i=function(e,n){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=De)return De;var n=A(t.display.measure,O("span","x")),r=n.getBoundingClientRect(),i=S(n,0,1).getBoundingClientRect();return De=Math.abs(r.left-i.left)>1}())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 d;u>0&&(h=r="right"),i=t.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!u&&(!i||!i.left&&!i.right)){var f=l.parentNode.getClientRects()[0];i=f?{left:f.left,right:f.left+rr(t.display),top:f.top,bottom:f.bottom}:Rn}for(var m=i.top-e.rect.top,g=i.bottom-e.rect.top,v=(m+g)/2,y=e.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var x={left:("right"==h?i.right:i.left)-e.rect.left,right:("left"==h?i.left:i.right)-e.rect.left,top:b?y[b-1]:0,bottom:y[b]};return i.left||i.right||(x.bogus=!0),t.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}(t,e,n,r)).bogus||(e.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var In,Rn={left:0,right:0,top:0,bottom:0};function Ln(t,e,n){for(var r,i,o,s,a,l,u=0;u<t.length;u+=3)if(l=t[u+1],e<(a=t[u])?(i=0,o=1,s="left"):e<l?o=1+(i=e-a):(u==t.length-3||e==l&&t[u+3]>e)&&(i=(o=l-a)-1,e>=l&&(s="right")),null!=i){if(r=t[u+2],a==l&&n==(r.insertLeft?"left":"right")&&(s=n),"left"==n&&0==i)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)r=t[2+(u-=3)],s="left";if("right"==n&&i==l-a)for(;u<t.length-3&&t[u+3]==t[u+4]&&!t[u+5].insertLeft;)r=t[(u+=3)+2],s="right";break}return{node:r,start:i,end:o,collapse:s,coverStart:a,coverEnd:l}}function jn(t,e){var n=Rn;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var i=t.length-1;i>=0&&(n=t[i]).left==n.right;i--);return n}function Bn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Vn(t){t.display.externalMeasure=null,k(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Bn(t.display.view[e])}function Un(t){Vn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function zn(){return c&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Hn(){return c&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Wn(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=Cn(t.widgets[n]));return e}function Gn(t,e,n,r,i){if(!i){var o=Wn(e);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var s=Jt(e);if("local"==r?s+=Dn(t.display):s-=t.display.viewOffset,"page"==r||"window"==r){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==r?0:Hn());var l=a.left+("window"==r?0:zn());n.left+=l,n.right+=l}return n.top+=s,n.bottom+=s,n}function Xn(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=zn(),i-=Hn();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:r-s.left,top:i-s.top}}function Jn(t,e,n,r,i){return r||(r=lt(t.doc,e.line)),Gn(t,r,Mn(t,r,e.ch,i),n)}function Kn(t,e,n,r,i,o){function s(e,s){var a=Nn(t,i,e,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,Gn(t,r,a,n)}r=r||lt(t.doc,e.line),i||(i=Fn(t,r));var a=Qt(r,t.doc.direction),l=e.ch,u=e.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!a)return s("before"==u?l-1:l,"before"==u);function c(t,e,n){return s(n?t-1:t,1==a[e].level!=n)}var h=Zt(a,l,u),p=$t,d=c(l,h,"before"==u);return null!=p&&(d.other=c(l,p,"before"!=u)),d}function qn(t,e){var n=0;e=_t(t.doc,e),t.options.lineWrapping||(n=rr(t.display)*e.ch);var r=lt(t.doc,e.line),i=Jt(r)+Dn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function $n(t,e,n,r,i){var o=gt(t,e,n);return o.xRel=i,r&&(o.outside=!0),o}function Zn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return $n(r.first,0,null,!0,-1);var i=dt(r,n),o=r.first+r.size-1;if(i>o)return $n(r.first+r.size-1,lt(r,o).text.length,null,!0,1);e<0&&(e=0);for(var s=lt(r,i);;){var a=er(t,s,i,e,n),l=Vt(s,a.ch+(a.xRel>0?1:0));if(!l)return a;var u=l.find(1);if(u.line==i)return u;s=lt(r,i=u.line)}}function Yn(t,e,n,r){r-=Wn(e);var i=e.text.length,o=st(function(e){return Nn(t,n,e-1).bottom<=r},i,0);return{begin:o,end:i=st(function(e){return Nn(t,n,e).top>r},o,i)}}function Qn(t,e,n,r){return n||(n=Fn(t,e)),Yn(t,e,n,Gn(t,e,Nn(t,n,r),"line").top)}function tr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function er(t,e,n,r,i){i-=Jt(e);var o=Fn(t,e),s=Wn(e),a=0,l=e.text.length,u=!0,c=Qt(e,t.doc.direction);if(c){var h=(t.options.lineWrapping?function(t,e,n,r,i,o,s){var a=Yn(t,e,r,s),l=a.begin,u=a.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,h=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=u||d.to<=l)){var f=Nn(t,r,1!=d.level?Math.min(u,d.to)-1:Math.max(l,d.from)).right,m=f<o?o-f+1e9:f-o;(!c||h>m)&&(c=d,h=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}:function(t,e,n,r,i,o,s){var a=st(function(a){var l=i[a],u=1!=l.level;return tr(Kn(t,gt(n,u?l.to:l.from,u?"before":"after"),"line",e,r),o,s,!0)},0,i.length-1),l=i[a];if(a>0){var u=1!=l.level,c=Kn(t,gt(n,u?l.from:l.to,u?"after":"before"),"line",e,r);tr(c,o,s,!0)&&c.top>s&&(l=i[a-1])}return l})(t,e,n,o,c,r,i);a=(u=1!=h.level)?h.from:h.to-1,l=u?h.to:h.from-1}var p,d,f=null,m=null,g=st(function(e){var n=Nn(t,o,e);return n.top+=s,n.bottom+=s,!!tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(f=e,m=n),!0)},a,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=f+(b?0:1),d=b?"after":"before",p=y?m.left:m.right}else{u||g!=l&&g!=a||g++,d=0==g?"after":g==e.text.length?"before":Nn(t,o,g-(u?1:0)).bottom+s<=i==u?"after":"before";var x=Kn(t,gt(n,g,d),"line",e,o);p=x.left,v=i<x.top||i>=x.bottom}return $n(n,g=ot(e.text,g,1),d,v,r-p)}function nr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==In){In=O("pre");for(var e=0;e<49;++e)In.appendChild(document.createTextNode("x")),In.appendChild(O("br"));In.appendChild(document.createTextNode("x"))}A(t.measure,In);var n=In.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),k(t.measure),n||1}function rr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=O("span","xxxxxxxxxx"),n=O("pre",[e]);A(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function ir(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s)n[t.options.gutters[s]]=o.offsetLeft+o.clientLeft+i,r[t.options.gutters[s]]=o.clientWidth;return{fixedPos:or(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function or(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function sr(t){var e=nr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/rr(t.display)-3);return function(i){if(Gt(t.doc,i))return 0;var o=0;if(i.widgets)for(var s=0;s<i.widgets.length;s++)i.widgets[s].height&&(o+=i.widgets[s].height);return n?o+(Math.ceil(i.text.length/r)||1)*e:o+e}}function ar(t){var e=t.doc,n=sr(t);e.iter(function(t){var e=n(t);e!=t.height&&ht(t,e)})}function lr(t,e,n,r){var i=t.display;if(!n&&"true"==de(e).getAttribute("cm-not-content"))return null;var o,s,a=i.lineSpace.getBoundingClientRect();try{o=e.clientX-a.left,s=e.clientY-a.top}catch(e){return null}var l,u=Zn(t,o,s);if(r&&1==u.xRel&&(l=lt(t.doc,u.line).text).length==u.ch){var c=j(l,l.length,t.options.tabSize)-l.length;u=gt(u.line,Math.max(0,Math.round((o-En(t.display).left)/rr(t.display))-c))}return u}function ur(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function cr(t){t.display.input.showSelection(t.display.input.prepareSelection())}function hr(t,e){void 0===e&&(e=!0);for(var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),s=0;s<n.sel.ranges.length;s++)if(e||s!=n.sel.primIndex){var a=n.sel.ranges[s];if(!(a.from().line>=t.display.viewTo||a.to().line<t.display.viewFrom)){var l=a.empty();(l||t.options.showCursorWhenSelecting)&&pr(t,a.head,i),l||fr(t,a,o)}}return r}function pr(t,e,n){var r=Kn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(O("div","\xa0","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var o=n.appendChild(O("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function dr(t,e){return t.top-e.top||t.left-e.left}function fr(t,e,n){var r=t.display,i=t.doc,o=document.createDocumentFragment(),s=En(t.display),a=s.left,l=Math.max(r.sizerWidth,An(t)-r.sizer.offsetLeft)-s.right,u="ltr"==i.direction;function c(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n height: "+(r-e)+"px"))}function h(e,n,r){var o,s,h=lt(i,e),p=h.text.length;function d(n,r){return Jn(t,gt(e,n),"div",h,r)}function f(e,n,r){var i=Qn(t,h,null,e),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1),o)[o]}var m=Qt(h,i.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;o<t.length;++o){var s=t[o];(s.from<n&&s.to>e||e==n&&s.to==e)&&(r(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(m,n||0,null==r?p:r,function(t,e,i,h){var g="ltr"==i,v=d(t,g?"left":"right"),y=d(e-1,g?"right":"left"),b=null==n&&0==t,x=null==r&&e==p,w=0==h,C=!m||h==m.length-1;if(y.top-v.top<=3){var _=(u?b:x)&&w?a:(g?v:y).left;c(_,v.top,((u?x:b)&&C?l:(g?y:v).right)-_,v.bottom)}else{var D,S,E,k;g?(D=u&&b&&w?a:v.left,S=u?l:f(t,i,"before"),E=u?a:f(e,i,"after"),k=u&&x&&C?l:y.right):(D=u?f(t,i,"before"):a,S=!u&&b&&w?l:v.right,E=!u&&x&&C?a:y.left,k=u?f(e,i,"after"):l),c(D,v.top,S-D,v.bottom),v.bottom<y.top&&c(a,v.bottom,null,y.top),c(E,y.top,k-E,y.bottom)}(!o||dr(v,o)<0)&&(o=v),dr(y,o)<0&&(o=y),(!s||dr(v,s)<0)&&(s=v),dr(y,s)<0&&(s=y)}),{start:o,end:s}}var p=e.from(),d=e.to();if(p.line==d.line)h(p.line,p.ch,d.ch);else{var f=lt(i,p.line),m=lt(i,d.line),g=zt(f)==zt(m),v=h(p.line,p.ch,g?f.text.length+1:null).end,y=h(d.line,g?0:null,d.ch).start;g&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(a,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(a,v.bottom,null,y.top)}n.appendChild(o)}function mr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function gr(t){t.state.focused||(t.display.input.focus(),yr(t))}function vr(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,br(t))},100)}function yr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(ie(t,"focus",t,e),t.state.focused=!0,F(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),mr(t))}function br(t,e){t.state.delayingBlurEvent||(t.state.focused&&(ie(t,"blur",t,e),t.state.focused=!1,E(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function xr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r<e.view.length;r++){var i=e.view[r],o=t.options.lineWrapping,l=void 0,u=0;if(!i.hidden){if(s&&a<8){var c=i.node.offsetTop+i.node.offsetHeight;l=c-n,n=c}else{var h=i.node.getBoundingClientRect();l=h.bottom-h.top,!o&&i.text.firstChild&&(u=i.text.firstChild.getBoundingClientRect().right-h.left-1)}var p=i.line.height-l;if((p>.005||p<-.005)&&(ht(i.line,l),wr(i.line),i.rest))for(var d=0;d<i.rest.length;d++)wr(i.rest[d]);if(u>t.display.sizerWidth){var f=Math.ceil(u/rr(t.display));f>t.display.maxLineLength&&(t.display.maxLineLength=f,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function wr(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Cr(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-Dn(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,o=dt(e,r),s=dt(e,i);if(n&&n.ensure){var a=n.ensure.from.line,l=n.ensure.to.line;a<o?(o=a,s=dt(e,Jt(lt(e,a))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=s&&(o=dt(e,Jt(lt(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function _r(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=or(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",s=0;s<n.length;s++)if(!n[s].hidden){t.options.fixedGutter&&(n[s].gutter&&(n[s].gutter.style.left=o),n[s].gutterBackground&&(n[s].gutterBackground.style.left=o));var a=n[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function Dr(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=mt(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,s=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-s)+1,r.lineNumWidth=r.lineNumInnerWidth+s,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ui(t),!0}return!1}function Sr(t,e){var n=t.display,r=nr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=On(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+Sn(n),l=e.bottom>a-r;if(e.top<i)s.scrollTop=e.top<r?0:e.top;else if(e.bottom>i+o){var u=Math.min(e.top,(l?a:e.bottom)-o);u!=i&&(s.scrollTop=u)}var c=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,h=An(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),p=e.right-e.left>h;return p&&(e.right=e.left+h),e.left<10?s.scrollLeft=0:e.left<c?s.scrollLeft=Math.max(0,e.left-(p?0:10)):e.right>h+c-3&&(s.scrollLeft=e.right+(p?0:10)-h),s}function Er(t,e){null!=e&&(Or(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function kr(t){Or(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Ar(t,e,n){null==e&&null==n||Or(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Or(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Tr(t,qn(t,e.from),qn(t,e.to),e.margin))}function Tr(t,e,n,r){var i=Sr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Ar(t,i.scrollLeft,i.scrollTop)}function Mr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||li(t,{top:e}),Pr(t,e,!0),n&&li(t),ri(t,100))}function Pr(t,e,n){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Fr(t,e,n,r){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,_r(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Nr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+Sn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+kn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Ir=function(t,e,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,t(r),t(i),ee(r,"scroll",function(){r.clientHeight&&e(r.scrollTop,"vertical")}),ee(i,"scroll",function(){i.clientWidth&&e(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ir.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;return n?(this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0",this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+(t.viewHeight-(e?r:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),e?(this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+(t.viewWidth-t.barLeft-(n?r:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Ir.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ir.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ir.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=y&&!d?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Ir.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)})},Ir.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Rr=function(){};function Lr(t,e){e||(e=Nr(t));var n=t.display.barWidth,r=t.display.barHeight;jr(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&xr(t),jr(t,Nr(t)),n=t.display.barWidth,r=t.display.barHeight}function jr(t,e){var n=t.display,r=n.scrollbars.update(e);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&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Rr.prototype.update=function(){return{bottom:0,right:0}},Rr.prototype.setScrollLeft=function(){},Rr.prototype.setScrollTop=function(){},Rr.prototype.clear=function(){};var Br={native:Ir,null:Rr};function Vr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&E(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Br[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ee(e,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?Fr(t,e):Mr(t,e)},t),t.display.scrollbars.addClass&&F(t.display.wrapper,t.display.scrollbars.addClass)}var Ur=0;function zr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++Ur},e=t.curOp,an?an.ops.push(e):e.ownsGroup=an={ops:[e],delayedCallbacks:[]}}function Hr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}(n)}finally{an=null,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,n=0;n<e.length;n++)Wr(e[n]);for(var r=0;r<e.length;r++)(i=e[r]).updatedDisplay=i.mustUpdate&&si(i.cm,i.update);for(var i,o=0;o<e.length;o++)Gr(e[o]);for(var s=0;s<e.length;s++)Xr(e[s]);for(var a=0;a<e.length;a++)Jr(e[a])}(t)}(n)}}(e)}function Wr(t){var e=t.cm,n=e.display;!function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=kn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=kn(t)+"px",e.scrollbarsClipped=!0)}(e),t.updateMaxLine&&qt(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new oi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Gr(t){var e=t.cm,n=e.display;t.updatedDisplay&&xr(e),t.barMeasure=Nr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Mn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+kn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-An(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Xr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Fr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==P();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Lr(e,t.barMeasure),t.updatedDisplay&&ci(e,t.barMeasure),t.selectionChanged&&mr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&gr(t.cm)}function Jr(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&ai(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Pr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Fr(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!oe(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!f){var o=O("div","\u200b",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Dn(t.display))+"px;\n height: "+(e.bottom-e.top+kn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?gt(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?gt(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=Kn(t,e),l=n&&n!=e?Kn(t,n):a,u=Sr(t,i={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-r,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+r}),c=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=u.scrollTop&&(Mr(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&(Fr(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(s=!0)),!s)break}return i}(e,_t(r,t.scrollToPos.from),_t(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var s=0;s<i.length;++s)i[s].lines.length||ie(i[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&ie(o[a],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&ie(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Kr(t,e){if(t.curOp)return e();zr(t);try{return e()}finally{Hr(t)}}function qr(t,e){return function(){if(t.curOp)return e.apply(t,arguments);zr(t);try{return e.apply(t,arguments)}finally{Hr(t)}}}function $r(t){return function(){if(this.curOp)return t.apply(this,arguments);zr(this);try{return t.apply(this,arguments)}finally{Hr(this)}}}function Zr(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);zr(e);try{return t.apply(this,arguments)}finally{Hr(e)}}}function Yr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Et&&Ht(t.doc,e)<i.viewTo&&ti(t);else if(n<=i.viewFrom)Et&&Wt(t.doc,n+r)>i.viewFrom?ti(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)ti(t);else if(e<=i.viewFrom){var o=ei(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):ti(t)}else if(n>=i.viewTo){var s=ei(t,e,e,-1);s?(i.view=i.view.slice(0,s.index),i.viewTo=s.lineN):ti(t)}else{var a=ei(t,e,e,-1),l=ei(t,n,n+r,1);a&&l?(i.view=i.view.slice(0,a.index).concat(sn(t,a.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):ti(t)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:e<u.lineN+u.size&&(i.externalMeasured=null))}function Qr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var o=r.view[ur(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==V(s,n)&&s.push(n)}}}function ti(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ei(t,e,n,r){var i,o=ur(t,e),s=t.display.view;if(!Et||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=e){if(r>0){if(o==s.length-1)return null;i=a+s[o].size-e,o++}else i=a-e;e+=i,n+=i}for(;Ht(t.doc,n)!=n;){if(o==(r<0?0:s.length-1))return null;n+=r*s[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function ni(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function ri(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,R(ii,t))}function ii(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=Be(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),function(o){if(r.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Me(e.mode,r.state):null,l=Le(t,o,r,!0);a&&(r.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!h&&p<s.length;++p)h=s[p]!=o.styles[p];h&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=t.options.maxHighlightLength&&Ve(t,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(t,t.options.workDelay),!0}),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Kr(t,function(){for(var e=0;e<i.length;e++)Qr(t,i[e],"text")})}}var oi=function(t,e,n){var r=t.display;this.viewport=e,this.visible=Cr(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=An(t),this.force=n,this.dims=ir(t),this.events=[]};function si(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return ti(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==ni(t))return!1;Dr(t)&&(ti(t),e.dims=ir(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),s=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(i,n.viewTo)),Et&&(o=Ht(t.doc,o),s=Wt(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=sn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=sn(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(ur(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(sn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(t,n)))),r.viewTo=n}(t,o,s),n.viewOffset=Jt(lt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var u=ni(t);if(!a&&0==u&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(t){if(t.hasFocus())return null;var e=P();if(!e||!M(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&M(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return u>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,s=o.firstChild;function a(e){var n=e.nextSibling;return l&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var u=r.view,c=r.viewFrom,h=0;h<u.length;h++){var p=u[h];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;s!=p.node;)s=a(s);var d=i&&null!=e&&e<=c&&p.lineNumber;p.changes&&(V(p.changes,"gutter")>-1&&(d=!1),hn(t,p,c,n)),d&&(k(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(mt(t.options,c)))),s=p.node.nextSibling}else{var f=yn(t,p,c,n);o.insertBefore(f,s)}c+=p.size}for(;s;)s=a(s)}(t,n.updateLineNumbers,e.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=P()&&(t.activeElt.focus(),t.anchorNode&&M(document.body,t.anchorNode)&&M(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(c),k(n.cursorDiv),k(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ri(t,400)),n.updateLineNumbers=null,!0}function ai(t,e){for(var n=e.viewport,r=!0;(r&&t.options.lineWrapping&&e.oldDisplayWidth!=An(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Sn(t.display)-On(t),n.top)}),e.visible=Cr(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&si(t,e);r=!1){xr(t);var i=Nr(t);cr(t),Lr(t,i),ci(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function li(t,e){var n=new oi(t,e);if(si(t,n)){xr(t),ai(t,n);var r=Nr(t);cr(t),Lr(t,r),ci(t,r),n.finish()}}function ui(t){t.display.sizer.style.marginLeft=t.display.gutters.offsetWidth+"px"}function ci(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+kn(t)+"px"}function hi(t){var e=t.display.gutters,n=t.options.gutters;k(e);for(var r=0;r<n.length;++r){var i=n[r],o=e.appendChild(O("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(t.display.lineGutter=o,o.style.width=(t.display.lineNumWidth||1)+"px")}e.style.display=r?"":"none",ui(t)}function pi(t){var e=V(t.gutters,"CodeMirror-linenumbers");-1==e&&t.lineNumbers?t.gutters=t.gutters.concat(["CodeMirror-linenumbers"]):e>-1&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}oi.prototype.signal=function(t,e){ae(t,e)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ie.apply(null,this.events[t])};var di=0,fi=null;function mi(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function gi(t){var e=mi(t);return e.x*=fi,e.y*=fi,e}function vi(t,e){var r=mi(e),i=r.x,o=r.y,s=t.display,a=s.scroller,u=a.scrollHeight>a.clientHeight;if(i&&a.scrollWidth>a.clientWidth||o&&u){if(o&&y&&l)t:for(var c=e.target,p=s.view;c!=a;c=c.parentNode)for(var d=0;d<p.length;d++)if(p[d].node==c){t.display.currentWheelTarget=c;break t}if(i&&!n&&!h&&null!=fi)return o&&u&&Mr(t,Math.max(0,a.scrollTop+o*fi)),Fr(t,Math.max(0,a.scrollLeft+i*fi)),(!o||o&&u)&&ue(e),void(s.wheelStartX=null);if(o&&null!=fi){var f=o*fi,m=t.doc.scrollTop,g=m+s.wrapper.clientHeight;f<0?m=Math.max(0,m+f-50):g=Math.min(t.doc.height,g+f+50),li(t,{top:m,bottom:g})}di<20&&(null==s.wheelStartX?(s.wheelStartX=a.scrollLeft,s.wheelStartY=a.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var t=a.scrollLeft-s.wheelStartX,e=a.scrollTop-s.wheelStartY,n=e&&s.wheelDY&&e/s.wheelDY||t&&s.wheelDX&&t/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(fi=(fi*di+n)/(di+1),++di)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}s?fi=-.53:n?fi=15:c?fi=-.7:p&&(fi=-1/3);var yi=function(t,e){this.ranges=t,this.primIndex=e};yi.prototype.primary=function(){return this.ranges[this.primIndex]},yi.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!yt(n.anchor,r.anchor)||!yt(n.head,r.head))return!1}return!0},yi.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new bi(bt(this.ranges[e].anchor),bt(this.ranges[e].head));return new yi(t,this.primIndex)},yi.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},yi.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(vt(e,r.from())>=0&&vt(t,r.to())<=0)return n}return-1};var bi=function(t,e){this.anchor=t,this.head=e};function xi(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort(function(t,e){return vt(t.from(),e.from())}),n=V(e,i);for(var o=1;o<e.length;o++){var s=e[o],a=e[o-1],l=vt(a.to(),s.from());if(r&&!s.empty()?l>0:l>=0){var u=wt(a.from(),s.from()),c=xt(a.to(),s.to()),h=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,e.splice(--o,2,new bi(h?c:u,h?u:c))}}return new yi(e,n)}function wi(t,e){return new yi([new bi(t,e||t)],0)}function Ci(t){return t.text?gt(t.from.line+t.text.length-1,q(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function _i(t,e){if(vt(t,e.from)<0)return t;if(vt(t,e.to)<=0)return Ci(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Ci(e).ch-e.to.ch),gt(n,r)}function Di(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new bi(_i(i.anchor,e),_i(i.head,e)))}return xi(t.cm,n,t.sel.primIndex)}function Si(t,e,n){return t.line==e.line?gt(n.line,t.ch-e.ch+n.ch):gt(n.line+(t.line-e.line),t.ch)}function Ei(t){t.doc.mode=Ae(t.options,t.doc.modeOption),ki(t)}function ki(t){t.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ri(t,100),t.state.modeGen++,t.curOp&&Yr(t)}function Ai(t,e){return 0==e.from.ch&&0==e.to.ch&&""==q(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Oi(t,e,n,r){function i(t){return n?n[t]:null}function o(t,n,i){!function(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Pt(t),Ft(t,n);var i=r?r(t):1;i!=t.height&&ht(t,i)}(t,n,i,r),un(t,"change",t,e)}function s(t,e){for(var n=[],o=t;o<e;++o)n.push(new Je(u[o],i(o),r));return n}var a=e.from,l=e.to,u=e.text,c=lt(t,a.line),h=lt(t,l.line),p=q(u),d=i(u.length-1),f=l.line-a.line;if(e.full)t.insert(0,s(0,u.length)),t.remove(u.length,t.size-u.length);else if(Ai(t,e)){var m=s(0,u.length-1);o(h,h.text,d),f&&t.remove(a.line,f),m.length&&t.insert(a.line,m)}else if(c==h)if(1==u.length)o(c,c.text.slice(0,a.ch)+p+c.text.slice(l.ch),d);else{var g=s(1,u.length-1);g.push(new Je(p+c.text.slice(l.ch),d,r)),o(c,c.text.slice(0,a.ch)+u[0],i(0)),t.insert(a.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,a.ch)+u[0]+h.text.slice(l.ch),i(0)),t.remove(a.line+1,f);else{o(c,c.text.slice(0,a.ch)+u[0],i(0)),o(h,p+h.text.slice(l.ch),d);var v=s(1,u.length-1);f>1&&t.remove(a.line+1,f-1),t.insert(a.line+1,v)}un(t,"change",t,e)}function Ti(t,e,n){!function t(r,i,o){if(r.linked)for(var s=0;s<r.linked.length;++s){var a=r.linked[s];if(a.doc!=i){var l=o&&a.sharedHist;n&&!l||(e(a.doc,l),t(a.doc,r,l))}}}(t,null,!0)}function Mi(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,ar(t),Ei(t),Pi(t),t.options.lineWrapping||qt(t),t.options.mode=e.modeOption,Yr(t)}function Pi(t){("rtl"==t.doc.direction?F:E)(t.display.lineDiv,"CodeMirror-rtl")}function Fi(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function Ni(t,e){var n={from:bt(e.from),to:Ci(e),text:ut(t,e.from,e.to)};return ji(t,n,e.from.line,e.to.line+1),Ti(t,function(t){return ji(t,n,e.from.line,e.to.line+1)},!0),n}function Ii(t){for(;t.length&&q(t).ranges;)t.pop()}function Ri(t,e,n,r){var i=t.history;i.undone.length=0;var o,s,a=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>a-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Ii(t.done),q(t.done)):t.done.length&&!q(t.done).ranges?q(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),q(t.done)):void 0}(i,i.lastOp==r)))s=q(o.changes),0==vt(e.from,e.to)&&0==vt(e.from,s.to)?s.to=Ci(e):o.changes.push(Ni(t,e));else{var l=q(i.done);for(l&&l.ranges||Li(t.sel,i.done),o={changes:[Ni(t,e)],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=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,s||ie(t,"historyAdded")}function Li(t,e){var n=q(e);n&&n.ranges&&n.equals(t)||e.push(t)}function ji(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o})}function Bi(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Vi(t,e){var n=function(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(Bi(n[i]));return r}(t,e),r=Tt(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],s=r[i];if(o&&s)t:for(var a=0;a<s.length;++a){for(var l=s[a],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue t;o.push(l)}else s&&(n[i]=s)}return n}function Ui(t,e,n){for(var r=[],i=0;i<t.length;++i){var o=t[i];if(o.ranges)r.push(n?yi.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];r.push({changes:a});for(var l=0;l<s.length;++l){var u=s[l],c=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),e)for(var h in u)(c=h.match(/^spans_(\d+)$/))&&V(e,Number(c[1]))>-1&&(q(a)[h]=u[h],delete u[h])}}}return r}function zi(t,e,n,r){if(r){var i=t.anchor;if(n){var o=vt(e,i)<0;o!=vt(n,i)<0?(i=e,e=n):o!=vt(e,n)<0&&(e=n)}return new bi(i,e)}return new bi(n||e,e)}function Hi(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ki(t,new yi([zi(t.sel.primary(),e,n,i)],0),r)}function Wi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)r[o]=zi(t.sel.ranges[o],e[o],null,i);Ki(t,xi(t.cm,r,t.sel.primIndex),n)}function Gi(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,Ki(t,xi(t.cm,i,t.sel.primIndex),r)}function Xi(t,e,n,r){Ki(t,wi(e,n),r)}function Ji(t,e,n){var r=t.history.done,i=q(r);i&&i.ranges?(r[r.length-1]=e,qi(t,e,n)):Ki(t,e,n)}function Ki(t,e,n){qi(t,e,n),function(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,q(i.done),e))?i.done[i.done.length-1]=e:Li(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ii(i.undone)}(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function qi(t,e,n){(ae(t,"beforeSelectionChange")||t.cm&&ae(t.cm,"beforeSelectionChange"))&&(e=function(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new bi(_t(t,e[n].anchor),_t(t,e[n].head))},origin:n&&n.origin};return ie(t,"beforeSelectionChange",t,r),t.cm&&ie(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?xi(t.cm,r.ranges,r.ranges.length-1):e}(t,e,n));var r=n&&n.bias||(vt(e.primary().head,t.sel.primary().head)<0?-1:1);$i(t,Yi(t,e,r,!0)),n&&!1===n.scroll||!t.cm||kr(t.cm)}function $i(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,se(t.cm)),un(t,"cursorActivity",t))}function Zi(t){$i(t,Yi(t,t.sel,null,!1))}function Yi(t,e,n,r){for(var i,o=0;o<e.ranges.length;o++){var s=e.ranges[o],a=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=to(t,s.anchor,a&&a.anchor,n,r),u=to(t,s.head,a&&a.head,n,r);(i||l!=s.anchor||u!=s.head)&&(i||(i=e.ranges.slice(0,o)),i[o]=new bi(l,u))}return i?xi(t.cm,i,e.primIndex):e}function Qi(t,e,n,r,i){var o=lt(t,e.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker;if((null==a.from||(l.inclusiveLeft?a.from<=e.ch:a.from<e.ch))&&(null==a.to||(l.inclusiveRight?a.to>=e.ch:a.to>e.ch))){if(i&&(ie(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var u=l.find(r<0?1:-1),c=void 0;if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(u=eo(t,u,-r,u&&u.line==e.line?o:null)),u&&u.line==e.line&&(c=vt(u,n))&&(r<0?c<0:c>0))return Qi(t,u,e,r,i)}var h=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(h=eo(t,h,r,h.line==e.line?o:null)),h?Qi(t,h,e,r,i):null}}return e}function to(t,e,n,r,i){var o=r||1;return Qi(t,e,n,o,i)||!i&&Qi(t,e,n,o,!0)||Qi(t,e,n,-o,i)||!i&&Qi(t,e,n,-o,!0)||(t.cantEdit=!0,gt(t.first,0))}function eo(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?_t(t,gt(e.line-1)):null:n>0&&e.ch==(r||lt(t,e.line)).text.length?e.line<t.first+t.size-1?gt(e.line+1,0):null:new gt(e.line,e.ch+n)}function no(t){t.setSelection(gt(t.firstLine(),0),gt(t.lastLine()),H)}function ro(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,o){e&&(r.from=_t(t,e)),n&&(r.to=_t(t,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ie(t,"beforeChange",t,r),t.cm&&ie(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function io(t,e,n){if(t.cm){if(!t.cm.curOp)return qr(t.cm,io)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(ae(t,"beforeChange")||t.cm&&ae(t.cm,"beforeChange"))||(e=ro(t,e,!0))){var r=St&&!n&&function(t,e,n){var r=null;if(t.iter(e.line,n.line+1,function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=V(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:e,to:n}],o=0;o<r.length;++o)for(var s=r[o],a=s.find(0),l=0;l<i.length;++l){var u=i[l];if(!(vt(u.to,a.from)<0||vt(u.from,a.to)>0)){var c=[l,1],h=vt(u.from,a.from),p=vt(u.to,a.to);(h<0||!s.inclusiveLeft&&!h)&&c.push({from:u.from,to:a.from}),(p>0||!s.inclusiveRight&&!p)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)oo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else oo(t,e)}}function oo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=vt(e.from,e.to)){var n=Di(t,e);Ri(t,e,n,t.cm?t.cm.curOp.id:NaN),lo(t,e,n,Tt(t,e));var r=[];Ti(t,function(t,n){n||-1!=V(r,t.history)||(po(t.history,e),r.push(t.history)),lo(t,e,null,Tt(t,e))})}}function so(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,s=t.sel,a="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,u=0;u<a.length&&(i=a[u],n?!i.ranges||i.equals(t.sel):i.ranges);u++);if(u!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=a.pop()).ranges){if(r)return void a.push(i);break}if(Li(i,l),n&&!i.equals(t.sel))return void Ki(t,i,{clearRedo:!1});s=i}var c=[];Li(s,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var h=ae(t,"beforeChange")||t.cm&&ae(t.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=e,h&&!ro(t,r,!1))return a.length=0,{};c.push(Ni(t,r));var o=n?Di(t,r):q(a);lo(t,r,o,Vi(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:Ci(r)});var s=[];Ti(t,function(t,e){e||-1!=V(s,t.history)||(po(t.history,r),s.push(t.history)),lo(t,r,null,Vi(t,r))})},d=i.changes.length-1;d>=0;--d){var f=p(d);if(f)return f.v}}}}function ao(t,e){if(0!=e&&(t.first+=e,t.sel=new yi($(t.sel.ranges,function(t){return new bi(gt(t.anchor.line+e,t.anchor.ch),gt(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){Yr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)Qr(t.cm,r,"gutter")}}function lo(t,e,n,r){if(t.cm&&!t.cm.curOp)return qr(t.cm,lo)(t,e,n,r);if(e.to.line<t.first)ao(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);ao(t,i),e={from:gt(t.first,0),to:gt(e.to.line+i,e.to.ch),text:[q(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:gt(o,lt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=ut(t,e.from,e.to),n||(n=Di(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=pt(zt(lt(r,o.line))),r.iter(l,s.line+1,function(t){if(t==i.maxLine)return a=!0,!0})),r.sel.contains(e.from,e.to)>-1&&se(t),Oi(r,e,n,sr(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,function(t){var e=Kt(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=lt(t,r).stateAfter;if(i&&(!(i instanceof Ie)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(r,o.line),ri(t,400);var u=e.text.length-(s.line-o.line)-1;e.full?Yr(t):o.line!=s.line||1!=e.text.length||Ai(t.doc,e)?Yr(t,o.line,s.line+1,u):Qr(t,o.line,"text");var c=ae(t,"changes"),h=ae(t,"change");if(h||c){var p={from:o,to:s,text:e.text,removed:e.removed,origin:e.origin};h&&un(t,"change",t,p),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(p)}t.display.selForContextMenu=null}(t.cm,e,r):Oi(t,e,r),qi(t,n,H)}}function uo(t,e,n,r,i){var o;r||(r=n),vt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),io(t,{from:n,to:r,text:e,origin:i})}function co(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function ho(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i],s=!0;if(o.ranges){o.copied||((o=t[i]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)co(o.ranges[a].anchor,e,n,r),co(o.ranges[a].head,e,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=gt(u.from.line+r,u.from.ch),u.to=gt(u.to.line+r,u.to.ch);else if(e<=u.to.line){s=!1;break}}s||(t.splice(0,i+1),i=0)}}}function po(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;ho(t.done,n,r,i),ho(t.undone,n,r,i)}function fo(t,e,n,r){var i=e,o=e;return"number"==typeof e?o=lt(t,Ct(t,e)):i=pt(e),null==i?null:(r(o,i)&&t.cm&&Qr(t.cm,i,n),o)}function mo(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function go(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}bi.prototype.from=function(){return wt(this.anchor,this.head)},bi.prototype.to=function(){return xt(this.anchor,this.head)},bi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},mo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,Ke(i),un(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},go.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var o=Math.min(e,i-t),s=r.height;if(r.removeInner(t,o),this.height-=s-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(e-=o))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof mo))){var a=[];this.collapse(a),this.children=[new mo(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<=o){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var s=i.lines.length%25+25,a=s;a<i.lines.length;){var l=new mo(i.lines.slice(a,a+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,s),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new go(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=V(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new go(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<o){var s=Math.min(e,o-t);if(i.iterN(t,s,n))return!0;if(0==(e-=s))break;t=0}else t-=o}}};var vo=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function yo(t,e,n){Jt(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Er(t,n)}vo.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=pt(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var o=Cn(this);ht(n,Math.max(0,n.height-o)),t&&(Kr(t,function(){yo(t,n,-o),Qr(t,r,"widget")}),un(t,"lineWidgetCleared",t,this,r))}},vo.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Cn(this)-e;i&&(Gt(this.doc,r)||ht(r,r.height+i),n&&Kr(n,function(){n.curOp.forceUpdate=!0,yo(n,r,i),un(n,"lineWidgetChanged",n,t,pt(r))}))},le(vo);var bo=0,xo=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++bo};function wo(t,e,n,r,i){if(r&&r.shared)return function(t,e,n,r,i){(r=L(r)).shared=!1;var o=[wo(t,e,n,r,i)],s=o[0],a=r.widgetNode;return Ti(t,function(t){a&&(r.widgetNode=a.cloneNode(!0)),o.push(wo(t,_t(t,e),_t(t,n),r,i));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;s=q(o)}),new Co(o,s)}(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return qr(t.cm,wo)(t,e,n,r,i);var o=new xo(t,i),s=vt(e,n);if(r&&L(r,o,!1),s>0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ut(t,e.line,e,n,o)||e.line!=n.line&&Ut(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Et=!0}o.addToHistory&&Ri(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var a,l=e.line,u=t.cm;if(t.iter(l,n.line+1,function(t){u&&o.collapsed&&!u.options.lineWrapping&&zt(t)==u.display.maxLine&&(a=!0),o.collapsed&&l!=e.line&&ht(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new kt(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l}),o.collapsed&&t.iter(e.line,n.line+1,function(e){Gt(t,e)&&ht(e,0)}),o.clearOnEnter&&ee(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(St=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++bo,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)Yr(u,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=e.line;c<=n.line;c++)Qr(u,c,"text");o.atomic&&Zi(u.doc),un(u,"markerAdded",u,o)}return o}xo.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&zr(t),ae(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var s=this.lines[o],a=At(s.markedSpans,this);t&&!this.collapsed?Qr(t,pt(s),"text"):t&&(null!=a.to&&(i=pt(s)),null!=a.from&&(r=pt(s))),s.markedSpans=Ot(s.markedSpans,a),null==a.from&&this.collapsed&&!Gt(this.doc,s)&&t&&ht(s,nr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=zt(this.lines[l]),c=Kt(u);c>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Yr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Zi(t.doc)),t&&un(t,"markerCleared",t,this,r,i),e&&Hr(t),this.parent&&this.parent.clear()}},xo.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],s=At(o.markedSpans,this);if(null!=s.from&&(n=gt(e?o:pt(o),s.from),-1==t))return n;if(null!=s.to&&(r=gt(e?o:pt(o),s.to),1==t))return r}return n&&{from:n,to:r}},xo.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Kr(r,function(){var i=e.line,o=pt(e.line),s=Pn(r,o);if(s&&(Bn(s),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Gt(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var l=Cn(n)-a;l&&ht(i,i.height+l)}un(r,"markerChanged",r,t)})},xo.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=V(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},xo.prototype.detachLine=function(t){if(this.lines.splice(V(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},le(xo);var Co=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function _o(t){return t.findMarks(gt(t.first,0),t.clipPos(gt(t.lastLine())),function(t){return t.parent})}function Do(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];Ti(n.primary.doc,function(t){return r.push(t)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==V(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}Co.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();un(this,"clear")}},Co.prototype.find=function(t,e){return this.primary.find(t,e)},le(Co);var So=0,Eo=function(t,e,n,r,i){if(!(this instanceof Eo))return new Eo(t,e,n,r,i);null==n&&(n=0),go.call(this,[new mo([new Je("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=gt(n,0);this.sel=wi(o),this.history=new Fi(null),this.id=++So,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Oi(this,{from:o,to:o,text:t}),Ki(this,wi(o),H)};Eo.prototype=Y(go.prototype,{constructor:Eo,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=ct(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:Zr(function(t){var e=gt(this.first,0),n=this.first+this.size-1;io(this,{from:e,to:gt(n,lt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Ar(this.cm,0,0),Ki(this,wi(e),H)}),replaceRange:function(t,e,n,r){uo(this,t,e=_t(this,e),n=n?_t(this,n):e,r)},getRange:function(t,e,n){var r=ut(this,_t(this,t),_t(this,e));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(ft(this,t))return lt(this,t)},getLineNumber:function(t){return pt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=lt(this,t)),zt(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return _t(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zr(function(t,e,n){Xi(this,_t(this,"number"==typeof t?gt(t,e||0):t),null,n)}),setSelection:Zr(function(t,e,n){Xi(this,_t(this,t),_t(this,e||t),n)}),extendSelection:Zr(function(t,e,n){Hi(this,_t(this,t),e&&_t(this,e),n)}),extendSelections:Zr(function(t,e){Wi(this,Dt(this,t),e)}),extendSelectionsBy:Zr(function(t,e){Wi(this,Dt(this,$(this.sel.ranges,t)),e)}),setSelections:Zr(function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new bi(_t(this,t[i].anchor),_t(this,t[i].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),Ki(this,xi(this.cm,r,e),n)}}),addSelection:Zr(function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new bi(_t(this,t),_t(this,e||t))),Ki(this,xi(this.cm,r,r.length-1),n)}),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=ut(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=ut(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:Zr(function(t,e,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var s=i.ranges[o];r[o]={from:s.from(),to:s.to(),text:this.splitLines(t[o]),origin:n}}for(var a=e&&"end"!=e&&function(t,e,n){for(var r=[],i=gt(t.first,0),o=i,s=0;s<e.length;s++){var a=e[s],l=Si(a.from,i,o),u=Si(Ci(a),i,o);if(i=a.to,o=u,"around"==n){var c=t.sel.ranges[s],h=vt(c.head,c.anchor)<0;r[s]=new bi(h?u:l,h?l:u)}else r[s]=new bi(l,l)}return new yi(r,t.sel.primIndex)}(this,r,e),l=r.length-1;l>=0;l--)io(this,r[l]);a?Ji(this,a):this.cm&&kr(this.cm)}),undo:Zr(function(){so(this,"undo")}),redo:Zr(function(){so(this,"redo")}),undoSelection:Zr(function(){so(this,"undo",!0)}),redoSelection:Zr(function(){so(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){this.history=new Fi(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ui(this.history.done),undone:Ui(this.history.undone)}},setHistory:function(t){var e=this.history=new Fi(this.history.maxGeneration);e.done=Ui(t.done.slice(0),null,!0),e.undone=Ui(t.undone.slice(0),null,!0)},setGutterMarker:Zr(function(t,e,n){return fo(this,t,"gutter",function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&nt(r)&&(t.gutterMarkers=null),!0})}),clearGutter:Zr(function(t){var e=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[t]&&fo(e,n,"gutter",function(){return n.gutterMarkers[t]=null,nt(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(t){var e;if("number"==typeof t){if(!ft(this,t))return null;if(e=t,!(t=lt(this,t)))return null}else if(null==(e=pt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Zr(function(t,e,n){return fo(this,t,"gutter"==e?"gutter":"class",function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(D(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0})}),removeLineClass:Zr(function(t,e,n){return fo(this,t,"gutter"==e?"gutter":"class",function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var o=i.match(D(n));if(!o)return!1;var s=o.index+o[0].length;t[r]=i.slice(0,o.index)+(o.index&&s!=i.length?" ":"")+i.slice(s)||null}return!0})}),addLineWidget:Zr(function(t,e,n){return function(t,e,n,r){var i=new vo(t,n,r),o=t.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),fo(t,e,"widget",function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!Gt(t,e)){var r=Jt(e)<t.scrollTop;ht(e,e.height+Cn(i)),r&&Er(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&un(o,"lineWidgetAdded",o,i,"number"==typeof e?e:pt(e)),i}(this,t,e,n)}),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return wo(this,_t(this,t),_t(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return wo(this,t=_t(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=lt(this,(t=_t(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=_t(this,t),e=_t(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var l=s[a];null!=l.to&&i==t.line&&t.ch>=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)}),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>t)return e=t,!0;t-=o,++n}),_t(this,gt(n,e))},indexFromPos:function(t){var e=(t=_t(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,function(t){e+=t.text.length+n}),e},copy:function(t){var e=new Eo(ct(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new Eo(ct(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),o=t.clipPos(i.from),s=t.clipPos(i.to);if(vt(o,s)){var a=wo(t,o,s,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}(r,_o(this)),r},unlinkDoc:function(t){if(t instanceof ws&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Do(_o(this));break}if(t.history==this.history){var n=[t.id];Ti(t,function(t){return n.push(t.id)},!0),t.history=new Fi(null),t.history.done=Ui(this.history.done,n),t.history.undone=Ui(this.history.undone,n)}},iterLinkedDocs:function(t){Ti(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):we(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Zr(function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(t){return t.order=null}),this.cm&&Kr(e=this.cm,function(){Pi(e),Yr(e)}))})}),Eo.prototype.eachLine=Eo.prototype.iter;var ko=0;function Ao(t){var e=this;if(Oo(e),!oe(e,t)&&!_n(e.display,t)){ue(t),s&&(ko=+new Date);var n=lr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,l=function(t,r){if(!e.options.allowDropFileTypes||-1!=V(e.options.allowDropFileTypes,t.type)){var s=new FileReader;s.onload=qr(e,function(){var t=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(t)&&(t=""),o[r]=t,++a==i){var l={from:n=_t(e.doc,n),to:n,text:e.doc.splitLines(o.join(e.doc.lineSeparator())),origin:"paste"};io(e.doc,l),Ji(e.doc,wi(n,Ci(l)))}}),s.readAsText(t)}},u=0;u<i;++u)l(r[u],u);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout(function(){return e.display.input.focus()},20);try{var c=t.dataTransfer.getData("Text");if(c){var h;if(e.state.draggingText&&!e.state.draggingText.copy&&(h=e.listSelections()),qi(e.doc,wi(n,n)),h)for(var p=0;p<h.length;++p)uo(e.doc,"",h[p].anchor,h[p].head,"drag");e.replaceSelection(c,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Oo(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function To(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var e=0;e<n.length;e++)t(n[e])})}}var Mo=!1;function Po(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Fo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},No=0;No<10;No++)Fo[No+48]=Fo[No+96]=String(No);for(var Io=65;Io<=90;Io++)Fo[Io]=String.fromCharCode(Io);for(var Ro=1;Ro<=12;Ro++)Fo[Ro+111]=Fo[Ro+63235]="F"+Ro;var Lo={};function jo(t){var e,n,r,i,o=t.split(/-(?!$)/);t=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))e=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Bo(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=$(n.split(" "),jo),o=0;o<i.length;o++){var s=void 0,a=void 0;o==i.length-1?(a=i.join(" "),s=r):(a=i.slice(0,o+1).join(" "),s="...");var l=e[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else e[a]=s}delete t[n]}for(var u in e)t[u]=e[u];return t}function Vo(t,e,n,r){var i=(e=Wo(e)).call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Vo(t,e.fallthrough,n,r);for(var o=0;o<e.fallthrough.length;o++){var s=Vo(t,e.fallthrough[o],n,r);if(s)return s}}}function Uo(t){var e="string"==typeof t?t:Fo[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function zo(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(C?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(C?e.ctrlKey:e.metaKey)&&"Cmd"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function Ho(t,e){if(h&&34==t.keyCode&&t.char)return!1;var n=Fo[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),zo(n,t,e))}function Wo(t){return"string"==typeof t?Lo[t]:t}function Go(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=e(n[i]);r.length&&vt(o.from,q(r).to)<=0;){var s=r.pop();if(vt(s.from,o.from)<0){o.from=s.from;break}}r.push(o)}Kr(t,function(){for(var e=r.length-1;e>=0;e--)uo(t.doc,"",r[e].from,r[e].to,"+delete");kr(t)})}function Xo(t,e,n){var r=ot(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Jo(t,e,n){var r=Xo(t,e.ch,n);return null==r?null:new gt(e.line,r,n<0?"after":"before")}function Ko(t,e,n,r,i){if(t){var o=Qt(n,e.doc.direction);if(o){var s,a=i<0?q(o):o[0],l=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var u=Fn(e,n),c=Nn(e,u,s=i<0?n.text.length-1:0).top;s=st(function(t){return Nn(e,u,t).top==c},i<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Xo(n,s,1))}else s=i<0?a.to:a.from;return new gt(r,s,l)}}return new gt(r,i<0?n.text.length:0,i<0?"before":"after")}Lo.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"},Lo.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"},Lo.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"},Lo.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"]},Lo.default=y?Lo.macDefault:Lo.pcDefault;var qo={selectAll:no,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),H)},killLine:function(t){return Go(t,function(e){if(e.empty()){var n=lt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:gt(e.head.line+1,0)}:{from:e.head,to:gt(e.head.line,n)}}return{from:e.from(),to:e.to()}})},deleteLine:function(t){return Go(t,function(e){return{from:gt(e.from().line,0),to:_t(t.doc,gt(e.to().line+1,0))}})},delLineLeft:function(t){return Go(t,function(t){return{from:gt(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(t){return Go(t,function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}})},delWrappedLineRight:function(t){return Go(t,function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(gt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(gt(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return $o(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return Zo(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(e){return function(t,e){var n=lt(t.doc,e),r=function(t){for(var e;e=Bt(t);)t=e.find(1,!0).line;return t}(n);return r!=n&&(e=pt(r)),Ko(!0,t,n,e,-1)}(t,e.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")},G)},goLineLeft:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")},G)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?Zo(t,e.head):r},G)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),s=j(t.getLine(o.line),o.ch,r);e.push(K(r-s%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Kr(t,function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,o=lt(t.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new gt(i.line,i.ch-1)),i.ch>0)i=new gt(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),gt(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var s=lt(t.doc,i.line-1).text;s&&(i=new gt(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),gt(i.line-1,s.length-1),i,"+transpose"))}n.push(new bi(i,i))}t.setSelections(n)})},newlineAndIndent:function(t){return Kr(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);kr(t)})},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function $o(t,e){var n=lt(t.doc,e),r=zt(n);return r!=n&&(e=pt(r)),Ko(!0,t,r,e,1)}function Zo(t,e){var n=$o(t,e.line),r=lt(t.doc,n.line),i=Qt(r,t.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/));return gt(n.line,e.line==n.line&&e.ch<=o&&e.ch?0:o,n.sticky)}return n}function Yo(t,e,n){if("string"==typeof e&&!(e=qo[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=z}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}var Qo=new B;function ts(t,e,n,r){var i=t.state.keySeq;if(i){if(Uo(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:Qo.set(50,function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())}),es(t,i+" "+e,n,r))return!0}return es(t,e,n,r)}function es(t,e,n,r){var i=function(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=Vo(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&Vo(e,t.options.extraKeys,n,t)||Vo(e,t.options.keyMap,n,t)}(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&un(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(ue(n),mr(t)),!!i}function ns(t,e){var n=Ho(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?ts(t,"Shift-"+n,e,function(e){return Yo(t,e,!0)})||ts(t,n,e,function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return Yo(t,e)}):ts(t,n,e,function(e){return Yo(t,e)}))}var rs=null;function is(t){var e=this;if(e.curOp.focus=P(),!oe(e,t)){s&&a<11&&27==t.keyCode&&(t.returnValue=!1);var n=t.keyCode;e.display.shift=16==n||t.shiftKey;var r=ns(e,t);h&&(rs=r?n:null,!r&&88==n&&!_e&&(y?t.metaKey:t.ctrlKey)&&e.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(E(e,"CodeMirror-crosshair"),re(document,"keyup",n),re(document,"mouseover",n))}F(e,"CodeMirror-crosshair"),ee(document,"keyup",n),ee(document,"mouseover",n)}(e)}}function os(t){16==t.keyCode&&(this.doc.sel.shift=!1),oe(this,t)}function ss(t){var e=this;if(!(_n(e.display,t)||oe(e,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(h&&n==rs)return rs=null,void ue(t);if(!h||t.which&&!(t.which<10)||!ns(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(t,e,n){return ts(t,"'"+n+"'",e,function(e){return Yo(t,e,!0)})}(e,t,i)||e.display.input.onKeyPress(t))}}}var as,ls,us=function(t,e,n){this.time=t,this.pos=e,this.button=n};function cs(t){var e=this,n=e.display;if(!(oe(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,_n(n,t))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!ds(e,t)){var r=lr(e,t),i=fe(t),o=r?function(t,e){var n=+new Date;return ls&&ls.compare(n,t,e)?(as=ls=null,"triple"):as&&as.compare(n,t,e)?(ls=new us(n,t,e),as=null,"double"):(as=new us(n,t,e),ls=null,"single")}(r,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&function(t,e,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ts(t,zo(o=(1==e?"Left":2==e?"Middle":"Right")+o,i),i,function(e){if("string"==typeof e&&(e=qo[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=z}finally{t.state.suppressEdits=!1}return r})}(e,i,r,o,t)||(1==i?r?function(t,e,n,r){s?setTimeout(R(gr,t),0):t.curOp.focus=P();var i,o=function(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};return null==i.unit&&(i.unit=(b?n.shiftKey&&n.metaKey:n.altKey)?"rectangle":"single"==e?"char":"double"==e?"word":"line"),(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(t,n,r),u=t.doc.sel;t.options.dragDrop&&ve&&!t.isReadOnly()&&"single"==n&&(i=u.contains(e))>-1&&(vt((i=u.ranges[i]).from(),e)<0||e.xRel>0)&&(vt(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,u=qr(t,function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,re(i.wrapper.ownerDocument,"mouseup",u),re(i.wrapper.ownerDocument,"mousemove",c),re(i.scroller,"dragstart",h),re(i.scroller,"drop",u),o||(ue(e),r.addNew||Hi(t.doc,n,null,null,r.extend),l||s&&9==a?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ee(i.wrapper.ownerDocument,"mouseup",u),ee(i.wrapper.ownerDocument,"mousemove",c),ee(i.scroller,"dragstart",h),ee(i.scroller,"drop",u),vr(t),setTimeout(function(){return i.input.focus()},20)}(t,r,e,o):function(t,e,n,r){var i=t.display,o=t.doc;ue(e);var s,a,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),s=a>-1?u[a]:new bi(n,n)):(s=o.sel.primary(),a=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new bi(n,n)),n=lr(t,e,!0,!0),a=-1;else{var c=hs(t,n,r.unit);s=r.extend?zi(s,c.anchor,c.head,r.extend):c}r.addNew?-1==a?(a=u.length,Ki(o,xi(t,u.concat([s]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&"char"==r.unit&&!r.extend?(Ki(o,xi(t,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Gi(o,a,s,W):(a=0,Ki(o,new yi([s],0),W),l=o.sel);var h=n,p=i.wrapper.getBoundingClientRect(),d=0;function f(e){t.state.selectingText=!1,d=1/0,ue(e),i.input.focus(),re(i.wrapper.ownerDocument,"mousemove",m),re(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var m=qr(t,function(e){0!==e.buttons&&fe(e)?function e(u){var c=++d,f=lr(t,u,!0,"rectangle"==r.unit);if(f)if(0!=vt(f,h)){t.curOp.focus=P(),function(e){if(0!=vt(h,e))if(h=e,"rectangle"==r.unit){for(var i=[],u=t.options.tabSize,c=j(lt(o,n.line).text,n.ch,u),p=j(lt(o,e.line).text,e.ch,u),d=Math.min(c,p),f=Math.max(c,p),m=Math.min(n.line,e.line),g=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=g;m++){var v=lt(o,m).text,y=X(v,d,u);d==f?i.push(new bi(gt(m,y),gt(m,y))):v.length>y&&i.push(new bi(gt(m,y),gt(m,X(v,f,u))))}i.length||i.push(new bi(n,n)),Ki(o,xi(t,l.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,x=s,w=hs(t,e,r.unit),C=x.anchor;vt(w.anchor,C)>0?(b=w.head,C=wt(x.from(),w.anchor)):(b=w.anchor,C=xt(x.to(),w.head));var _=l.ranges.slice(0);_[a]=function(t,e){var n=e.anchor,r=e.head,i=lt(t.doc,n.line);if(0==vt(n,r)&&n.sticky==r.sticky)return e;var o=Qt(i);if(!o)return e;var s=Zt(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l,u=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=Zt(o,r.ch,r.sticky),h=c-s||(r.ch-n.ch)*(1==a.level?-1:1);l=c==u-1||c==u?h<0:h>0}var p=o[u+(l?-1:0)],d=l==(1==p.level),f=d?p.from:p.to,m=d?"after":"before";return n.ch==f&&n.sticky==m?e:new bi(new gt(n.line,f,m),r)}(t,new bi(_t(o,C),b)),Ki(o,xi(t,_,a),W)}}(f);var m=Cr(i,o);(f.line>=m.to||f.line<m.from)&&setTimeout(qr(t,function(){d==c&&e(u)}),150)}else{var g=u.clientY<p.top?-20:u.clientY>p.bottom?20:0;g&&setTimeout(qr(t,function(){d==c&&(i.scroller.scrollTop+=g,e(u))}),50)}}(e):f(e)}),g=qr(t,f);t.state.selectingText=g,ee(i.wrapper.ownerDocument,"mousemove",m),ee(i.wrapper.ownerDocument,"mouseup",g)}(t,r,e,o)}(e,r,o,t):de(t)==n.scroller&&ue(t):2==i?(r&&Hi(e.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(_?e.display.input.onContextMenu(t):vr(e)))}}function hs(t,e,n){if("char"==n)return new bi(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new bi(gt(e.line,0),_t(t.doc,gt(e.line+1,0)));var r=n(t,e);return new bi(r.from,r.to)}function ps(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(e){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&ue(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!ae(t,n))return he(e);o-=a.top-s.viewOffset;for(var l=0;l<t.options.gutters.length;++l){var u=s.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return ie(t,n,t,dt(t.doc,o),t.options.gutters[l],e),he(e)}}function ds(t,e){return ps(t,e,"gutterClick",!0)}function fs(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(t)}us.prototype.compare=function(t,e,n){return this.time+400>t&&0==vt(e,this.pos)&&n==this.button};var ms={toString:function(){return"CodeMirror.Init"}},gs={},vs={};function ys(t){hi(t),Yr(t),_r(t)}function bs(t,e,n){if(!e!=!(n&&n!=ms)){var r=t.display.dragFunctions,i=e?ee:re;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function xs(t){t.options.lineWrapping?(F(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(E(t.display.wrapper,"CodeMirror-wrap"),qt(t)),ar(t),Yr(t),Un(t),setTimeout(function(){return Lr(t)},100)}function ws(t,e){var n=this;if(!(this instanceof ws))return new ws(t,e);this.options=e=e?L(e):{},L(gs,e,!1),pi(e);var r=e.value;"string"==typeof r?r=new Eo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new ws.inputStyles[e.inputStyle](this),o=this.display=new at(t,r,i);for(var u in o.wrapper.CodeMirror=this,hi(this),fs(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Vr(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 B,keySeq:null,specialChars:null},e.autofocus&&!v&&o.input.focus(),s&&a<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(t){var e=t.display;ee(e.scroller,"mousedown",qr(t,cs)),ee(e.scroller,"dblclick",s&&a<11?qr(t,function(e){if(!oe(t,e)){var n=lr(t,e);if(n&&!ds(t,e)&&!_n(t.display,e)){ue(e);var r=t.findWordAt(n);Hi(t.doc,r.anchor,r.head)}}}):function(e){return oe(t,e)||ue(e)}),ee(e.scroller,"contextmenu",function(e){return function(t,e){_n(t.display,e)||function(t,e){return!!ae(t,"gutterContextMenu")&&ps(t,e,"gutterContextMenu",!1)}(t,e)||oe(t,e,"contextmenu")||_||t.display.input.onContextMenu(e)}(t,e)});var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout(function(){return e.activeTouch=null},1e3),(r=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}ee(e.scroller,"touchstart",function(i){if(!oe(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!ds(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}}),ee(e.scroller,"touchmove",function(){e.activeTouch&&(e.activeTouch.moved=!0)}),ee(e.scroller,"touchend",function(n){var r=e.activeTouch;if(r&&!_n(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var s,a=t.coordsChar(e.activeTouch,"page");s=!r.prev||o(r,r.prev)?new bi(a,a):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(a):new bi(gt(a.line,0),_t(t.doc,gt(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),ue(n)}i()}),ee(e.scroller,"touchcancel",i),ee(e.scroller,"scroll",function(){e.scroller.clientHeight&&(Mr(t,e.scroller.scrollTop),Fr(t,e.scroller.scrollLeft,!0),ie(t,"scroll",t))}),ee(e.scroller,"mousewheel",function(e){return vi(t,e)}),ee(e.scroller,"DOMMouseScroll",function(e){return vi(t,e)}),ee(e.wrapper,"scroll",function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0}),e.dragFunctions={enter:function(e){oe(t,e)||pe(e)},over:function(e){oe(t,e)||(function(t,e){var n=lr(t,e);if(n){var r=document.createDocumentFragment();pr(t,n,r),t.display.dragCursor||(t.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),A(t.display.dragCursor,r)}}(t,e),pe(e))},start:function(e){return function(t,e){if(s&&(!t.state.draggingText||+new Date-ko<100))pe(e);else if(!oe(t,e)&&!_n(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!p)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}(t,e)},drop:qr(t,Ao),leave:function(e){oe(t,e)||Oo(t)}};var l=e.input.getField();ee(l,"keyup",function(e){return os.call(t,e)}),ee(l,"keydown",qr(t,is)),ee(l,"keypress",qr(t,ss)),ee(l,"focus",function(e){return yr(t,e)}),ee(l,"blur",function(e){return br(t,e)})}(this),function(){var t;Mo||(ee(window,"resize",function(){null==t&&(t=setTimeout(function(){t=null,To(Po)},100))}),ee(window,"blur",function(){return To(br)}),Mo=!0)}(),zr(this),this.curOp.forceUpdate=!0,Mi(this,r),e.autofocus&&!v||this.hasFocus()?setTimeout(R(yr,this),20):br(this),vs)vs.hasOwnProperty(u)&&vs[u](n,e[u],ms);Dr(this),e.finishInit&&e.finishInit(this);for(var c=0;c<Cs.length;++c)Cs[c](n);Hr(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}ws.defaults=gs,ws.optionHandlers=vs;var Cs=[];function _s(t,e,n,r){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Be(t,e).state:n="prev");var s=t.options.tabSize,a=lt(o,e),l=j(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&((u=o.mode.indent(i,a.text.slice(c.length),a.text))==z||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>o.first?j(lt(o,e-1).text,null,s):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var h="",p=0;if(t.options.indentWithTabs)for(var d=Math.floor(u/s);d;--d)p+=s,h+="\t";if(p<u&&(h+=K(u-p)),h!=c)return uo(o,h,gt(e,0),gt(e,c.length),"+input"),a.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var m=o.sel.ranges[f];if(m.head.line==e&&m.head.ch<c.length){var g=gt(e,c.length);Gi(o,f,new bi(g,g));break}}}ws.defineInitHook=function(t){return Cs.push(t)};var Ds=null;function Ss(t){Ds=t}function Es(t,e,n,r,i){var o=t.doc;t.display.shift=!1,r||(r=o.sel);var s=+new Date-200,a="paste"==i||t.state.pasteIncoming>s,l=we(e),u=null;if(a&&r.ranges.length>1)if(Ds&&Ds.text.join("\n")==e){if(r.ranges.length%Ds.text.length==0){u=[];for(var c=0;c<Ds.text.length;c++)u.push(o.splitLines(Ds.text[c]))}}else l.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(u=$(l,function(t){return[t]}));for(var h=t.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var d=r.ranges[p],f=d.from(),m=d.to();d.empty()&&(n&&n>0?f=gt(f.line,f.ch-n):t.state.overwrite&&!a?m=gt(m.line,Math.min(lt(o,m.line).text.length,m.ch+q(l).length)):a&&Ds&&Ds.lineWise&&Ds.text.join("\n")==e&&(f=m=gt(f.line,0)));var g={from:f,to:m,text:u?u[p%u.length]:l,origin:i||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};io(t.doc,g),un(t,"inputRead",t,g)}e&&!a&&As(t,e),kr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function ks(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Kr(e,function(){return Es(e,n,0,null,"paste")}),!0}function As(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.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=t.getModeAt(i.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(e.indexOf(o.electricChars.charAt(a))>-1){s=_s(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(lt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(s=_s(t,i.head.line,"smart"));s&&un(t,"electricInput",t,i.head.line)}}}function Os(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,o={anchor:gt(i,0),head:gt(i+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function Ts(t,e,n,r){t.setAttribute("autocorrect",!!n),t.setAttribute("autocapitalize",!!r),t.setAttribute("spellcheck",!!e)}function Ms(){var t=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=O("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),m&&(t.style.border="1px solid black"),Ts(t),e}function Ps(t,e,n,r,i){var o=e,s=n,a=lt(t,e.line);function l(r){var o,s;if(null==(o=i?function(t,e,n,r){var i=Qt(e,t.doc.direction);if(!i)return Jo(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Zt(i,n.ch,n.sticky),s=i[o];if("ltr"==t.doc.direction&&s.level%2==0&&(r>0?s.to>n.ch:s.from<n.ch))return Jo(e,n,r);var a,l=function(t,n){return Xo(e,t instanceof gt?t.ch:t,n)},u=function(n){return t.options.lineWrapping?(a=a||Fn(t,e),Qn(t,e,a,n)):{begin:0,end:e.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==s.level){var h=1==s.level==r<0,p=l(n,h?1:-1);if(null!=p&&(h?p<=s.to&&p<=c.end:p>=s.from&&p>=c.begin))return new gt(n.line,p,h?"before":"after")}var d=function(t,e,r){for(var o=function(t,e){return e?new gt(n.line,l(t,1),"before"):new gt(n.line,t,"after")};t>=0&&t<i.length;t+=e){var s=i[t],a=e>0==(1!=s.level),u=a?r.begin:l(r.end,-1);if(s.from<=u&&u<s.to)return o(u,a);if(u=a?s.from:l(s.to,-1),r.begin<=u&&u<r.end)return o(u,a)}},f=d(o+r,r,c);if(f)return f;var m=r>0?c.end:l(c.begin,-1);return null==m||r>0&&m==e.text.length||!(f=d(r>0?0:i.length-1,r,u(m)))?null:f}(t.cm,a,e,n):Jo(a,e,n))){if(r||(s=e.line+n)<t.first||s>=t.first+t.size||(e=new gt(s,e.ch,e.sticky),!(a=lt(t,s))))return!1;e=Ko(i,t.cm,a,e.line,n)}else e=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,c="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;!(n<0)||l(!p);p=!1){var d=a.text.charAt(e.ch)||"\n",f=et(d,h)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||p||f||(f="s"),u&&u!=f){n<0&&(n=1,l(),e.sticky="after");break}if(f&&(u=f),n>0&&!l(!p))break}var m=to(t,e,o,s,!0);return yt(o,m)&&(m.hitSide=!0),m}function Fs(t,e,n,r){var i,o,s=t.doc,a=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*nr(t.display),3);i=(n>0?e.bottom:e.top)+n*u}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Zn(t,a,i)).outside;){if(n<0?i<=0:i>=s.height){o.hitSide=!0;break}i+=5*n}return o}var Ns=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Is(t,e){var n=Pn(t,e.line);if(!n||n.hidden)return null;var r=lt(t.doc,e.line),i=Tn(n,r,e.line),o=Qt(r,t.doc.direction),s="left";o&&(s=Zt(o,e.ch)%2?"right":"left");var a=Ln(i.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Rs(t,e){return e&&(t.bad=!0),t}function Ls(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Rs(t.clipPos(gt(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var o=t.display.view[i];if(o.node==r)return js(o,e,n)}}function js(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!M(r,e))return Rs(gt(pt(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var o=t.rest?q(t.rest):t.line;return Rs(gt(pt(o),o.text.length),i)}var s=3==e.nodeType?e:null,a=e;for(s||1!=e.childNodes.length||3!=e.firstChild.nodeType||(s=e.firstChild,n&&(n=s.nodeValue.length));a.parentNode!=r;)a=a.parentNode;var l=t.measure,u=l.maps;function c(e,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],s=0;s<o.length;s+=3){var a=o[s+2];if(a==e||a==n){var c=pt(i<0?t.line:t.rest[i]),h=o[s]+r;return(r<0||a!=e)&&(h=o[s+(r?1:0)]),gt(c,h)}}}var h=c(s,a,n);if(h)return Rs(h,i);for(var p=a.nextSibling,d=s?s.nodeValue.length-n:0;p;p=p.nextSibling){if(h=c(p,p.firstChild,0))return Rs(gt(h.line,h.ch-d),i);d+=p.textContent.length}for(var f=a.previousSibling,m=n;f;f=f.previousSibling){if(h=c(f,f.firstChild,-1))return Rs(gt(h.line,h.ch+m),i);m+=f.textContent.length}}Ns.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function o(t){if(!oe(r,t)){if(r.somethingSelected())Ss({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Os(r);Ss({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation(function(){r.setSelections(e.ranges,0,H),r.replaceSelection("",null,"cut")})}if(t.clipboardData){t.clipboardData.clearData();var o=Ds.text.join("\n");if(t.clipboardData.setData("Text",o),t.clipboardData.getData("Text")==o)return void t.preventDefault()}var s=Ms(),a=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),a.value=Ds.text.join("\n");var l=document.activeElement;I(a),setTimeout(function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()},50)}}Ts(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ee(i,"paste",function(t){oe(r,t)||ks(t,r)||a<=11&&setTimeout(qr(r,function(){return e.updateFromDOM()}),20)}),ee(i,"compositionstart",function(t){e.composing={data:t.data,done:!1}}),ee(i,"compositionupdate",function(t){e.composing||(e.composing={data:t.data,done:!1})}),ee(i,"compositionend",function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)}),ee(i,"touchstart",function(){return n.forceCompositionEnd()}),ee(i,"input",function(){e.composing||e.readFromDOMSoon()}),ee(i,"copy",o),ee(i,"cut",o)},Ns.prototype.prepareSelection=function(){var t=hr(this.cm,!1);return t.focus=this.cm.state.focused,t},Ns.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ns.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ns.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),o=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var s=Ls(e,t.anchorNode,t.anchorOffset),a=Ls(e,t.focusNode,t.focusOffset);if(!s||s.bad||!a||a.bad||0!=vt(wt(s,a),i)||0!=vt(xt(s,a),o)){var l=e.display.view,u=i.line>=e.display.viewFrom&&Is(e,i)||{node:l[0].measure.map[2],offset:0},c=o.line<e.display.viewTo&&Is(e,o);if(!c){var h=l[l.length-1].measure,p=h.maps?h.maps[h.maps.length-1]:h.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(u&&c){var d,f=t.rangeCount&&t.getRangeAt(0);try{d=S(u.node,u.offset,c.offset,c.node)}catch(xe){}d&&(!n&&e.state.focused?(t.collapse(u.node,u.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),f&&null==t.anchorNode?t.addRange(f):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Ns.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},Ns.prototype.showMultipleSelections=function(t){A(this.cm.display.cursorDiv,t.cursors),A(this.cm.display.selectionDiv,t.selection)},Ns.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ns.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return M(this.div,e)},Ns.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ns.prototype.blur=function(){this.div.blur()},Ns.prototype.getField=function(){return this.div},Ns.prototype.supportsTouch=function(){return!0},Ns.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Kr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},Ns.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ns.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(g&&c&&this.cm.options.gutters.length&&function(e){for(var n=t.anchorNode;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}())return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ls(e,t.anchorNode,t.anchorOffset),r=Ls(e,t.focusNode,t.focusOffset);n&&r&&Kr(e,function(){Ki(e.doc,wi(n,r),H),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)})}}},Ns.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>r.firstLine()&&(s=gt(s.line-1,lt(r.doc,s.line-1).length)),a.ch==lt(r.doc,a.line).text.length&&a.line<r.lastLine()&&(a=gt(a.line+1,0)),s.line<i.viewFrom||a.line>i.viewTo-1)return!1;s.line==i.viewFrom||0==(t=ur(r,s.line))?(e=pt(i.view[0].line),n=i.view[0].node):(e=pt(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,u,c=ur(r,a.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=pt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var h=r.doc.splitLines(function(t,e,n,r,i){var o="",s=!1,a=t.doc.lineSeparator(),l=!1;function u(){s&&(o+=a,l&&(o+=a),s=l=!1)}function c(t){t&&(u(),o+=t)}function h(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void c(n);var o,p=e.getAttribute("cm-marker");if(p){var d=t.findMarks(gt(r,0),gt(i+1,0),(g=+p,function(t){return t.id==g}));return void(d.length&&(o=d[0].find(0))&&c(ut(t.doc,o.from,o.to).join(a)))}if("false"==e.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;f&&u();for(var m=0;m<e.childNodes.length;m++)h(e.childNodes[m]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),f&&(s=!0)}else 3==e.nodeType&&c(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;h(e),e!=n;)e=e.nextSibling,l=!1;return o}(r,n,u,e,l)),p=ut(r.doc,gt(e,0),gt(l,lt(r.doc,l).text.length));h.length>1&&p.length>1;)if(q(h)==q(p))h.pop(),p.pop(),l--;else{if(h[0]!=p[0])break;h.shift(),p.shift(),e++}for(var d=0,f=0,m=h[0],g=p[0],v=Math.min(m.length,g.length);d<v&&m.charCodeAt(d)==g.charCodeAt(d);)++d;for(var y=q(h),b=q(p),x=Math.min(y.length-(1==h.length?d:0),b.length-(1==p.length?d:0));f<x&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)++f;if(1==h.length&&1==p.length&&e==s.line)for(;d&&d>s.ch&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)d--,f++;h[h.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var w=gt(e,d),C=gt(l,p.length?q(p).length-f:0);return h.length>1||h[0]||vt(w,C)?(uo(r.doc,h,w,C,"+input"),!0):void 0},Ns.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ns.prototype.reset=function(){this.forceCompositionEnd()},Ns.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ns.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},Ns.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Kr(this.cm,function(){return Yr(t.cm)})},Ns.prototype.setUneditable=function(t){t.contentEditable="false"},Ns.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||qr(this.cm,Es)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Ns.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Ns.prototype.onContextMenu=function(){},Ns.prototype.resetPosition=function(){},Ns.prototype.needsContentAttribute=!0;var Bs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};Bs.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!oe(r,t)){if(r.somethingSelected())Ss({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Os(r);Ss({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,H):(n.prevInput="",i.value=e.text.join("\n"),I(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(i.style.width="0px"),ee(i,"input",function(){s&&a>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()}),ee(i,"paste",function(t){oe(r,t)||ks(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),ee(i,"cut",o),ee(i,"copy",o),ee(t.scroller,"paste",function(e){if(!_n(t,e)&&!oe(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}}),ee(t.lineSpace,"selectstart",function(e){_n(t,e)||ue(e)}),ee(i,"compositionstart",function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ee(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Bs.prototype.createField=function(t){this.wrapper=Ms(),this.textarea=this.wrapper.firstChild},Bs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=hr(t);if(t.options.moveInputWithCursor){var i=Kn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+s.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+s.left-o.left))}return r},Bs.prototype.showSelection=function(t){var e=this.cm.display;A(e.cursorDiv,t.cursors),A(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Bs.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&I(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},Bs.prototype.getField=function(){return this.textarea},Bs.prototype.supportsTouch=function(){return!1},Bs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||P()!=this.textarea))try{this.textarea.focus()}catch(xe){}},Bs.prototype.blur=function(){this.textarea.blur()},Bs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bs.prototype.receivedFocus=function(){this.slowPoll()},Bs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Bs.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))})},Bs.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Ce(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Kr(e,function(){Es(e,i.slice(l),r.length-l,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Bs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bs.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},Bs.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=lr(n,t),u=r.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&qr(n,Ki)(n.doc,wi(o),H);var c,p=i.style.cssText,d=e.wrapper.style.cssText,f=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-f.top-5)+"px; left: "+(t.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),s&&a>=9&&g(),_){pe(t);var m=function(){re(window,"mouseup",m),setTimeout(v,20)};ee(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="\u200b"+(t?i.value:"");i.value="\u21da",i.value=o,e.prevInput=t?"":"\u200b",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,i.style.cssText=p,s&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!s||s&&a<9)&&g();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==e.prevInput?qr(n,no)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Bs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},Bs.prototype.setUneditable=function(){},Bs.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=ms&&i(t,e,n)}:i)}t.defineOption=n,t.Init=ms,n("value","",function(t,e){return t.setValue(e)},!0),n("mode",null,function(t,e){t.doc.modeOption=e,Ei(t)},!0),n("indentUnit",2,Ei,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(t){ki(t),Un(t),Yr(t)},!0),n("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter(function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(gt(r,o))}r++});for(var i=n.length-1;i>=0;i--)uo(t.doc,e,n[i],gt(n[i].line,n[i].ch+e.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=ms&&t.refresh()}),n("specialCharPlaceholder",Qe,function(t){return t.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),n("autocorrect",!1,function(t,e){return t.getInputField().autocorrect=e},!0),n("autocapitalize",!1,function(t,e){return t.getInputField().autocapitalize=e},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(t){fs(t),ys(t)},!0),n("keyMap","default",function(t,e,n){var r=Wo(e),i=n!=ms&&Wo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,xs,!0),n("gutters",[],function(t){pi(t.options),ys(t)},!0),n("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?or(t.display)+"px":"0",t.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(t){return Lr(t)},!0),n("scrollbarStyle","native",function(t){Vr(t),Lr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),n("lineNumbers",!1,function(t){pi(t.options),ys(t)},!0),n("firstLineNumber",1,ys,!0),n("lineNumberFormatter",function(t){return t},ys,!0),n("showCursorWhenSelecting",!1,cr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(t,e){"nocursor"==e&&(br(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),n("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),n("dragDrop",!0,bs),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,ki,!0),n("addModeClass",!1,ki,!0),n("pollInterval",100),n("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),n("historyEventDelay",1250),n("viewportMargin",10,function(t){return t.refresh()},!0),n("maxHighlightLength",1e4,ki,!0),n("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),n("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),n("autofocus",null),n("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0),n("phrases",null)}(ws),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&qr(this,e[t])(this,n,i),ie(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Wo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:$r(function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");!function(t,e,n){for(var r=0,i=n(e);r<t.length&&n(t[r])<=i;)r++;t.splice(r,0,e)}(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},function(t){return t.priority}),this.state.modeGen++,Yr(this)}),removeOverlay:$r(function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void Yr(this)}}),indentLine:$r(function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),ft(this.doc,t)&&_s(this,t,e,n)}),indentSelection:$r(function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(_s(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&kr(this));else{var o=i.from(),s=i.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l<n;++l)_s(this,l,t);var u=this.doc.sel.ranges;0==o.ch&&e.length==u.length&&u[r].from().ch>0&&Gi(this.doc,r,new bi(o,u[r].to()),H)}}}),getTokenAt:function(t,e){return We(this,t,e)},getLineTokens:function(t,e){return We(this,gt(t),e,!0)},getTokenTypeAt:function(t){t=_t(this.doc,t);var e,n=je(this,lt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=r+i>>1;if((s?n[2*s-1]:0)>=o)i=s;else{if(!(n[2*s+1]<o)){e=n[2*s+2];break}r=s+1}}var a=e?e.indexOf("overlay "):-1;return a<0?e:0==a?null:e.slice(0,a-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],o=this.getModeAt(t);if("string"==typeof o[e])i[o[e]]&&r.push(i[o[e]]);else if(o[e])for(var s=0;s<o[e].length;s++){var a=i[o[e][s]];a&&r.push(a)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==V(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(t,e){var n=this.doc;return Be(this,(t=Ct(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Kn(this,null==t?n.head:"object"==typeof t?_t(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return Jn(this,_t(this.doc,t),e||"page")},coordsChar:function(t,e){return Zn(this,(t=Xn(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=Xn(this,{top:t,left:0},e||"page").top,dt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,i=!0),r=lt(this.doc,t)}else r=t;return Gn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-Jt(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(t,e,n,r,i){var o,s=this.display,a=(t=Kn(this,_t(this.doc,t))).bottom,l=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),s.sizer.appendChild(e),"over"==r)a=t.top;else if("above"==r||"near"==r){var u=Math.max(s.wrapper.clientHeight,this.doc.height),c=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>u)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=u&&(a=t.bottom),l+e.offsetWidth>c&&(l=c-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==i?(l=s.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(s.sizer.clientWidth-e.offsetWidth)/2),e.style.left=l+"px"),n&&(null!=(o=Sr(this,{left:l,top:a,right:l+e.offsetWidth,bottom:a+e.offsetHeight})).scrollTop&&Mr(this,o.scrollTop),null!=o.scrollLeft&&Fr(this,o.scrollLeft))},triggerOnKeyDown:$r(is),triggerOnKeyPress:$r(ss),triggerOnKeyUp:os,triggerOnMouseDown:$r(cs),execCommand:function(t){if(qo.hasOwnProperty(t))return qo[t].call(null,this)},triggerElectric:$r(function(t){As(this,t)}),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=_t(this.doc,t),s=0;s<e&&!(o=Ps(this.doc,o,i,n,r)).hitSide;++s);return o},moveH:$r(function(t,e){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Ps(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()},G)}),deleteH:$r(function(t,e){var n=this.doc;this.doc.sel.somethingSelected()?n.replaceSelection("",null,"+delete"):Go(this,function(r){var i=Ps(n,r.head,t,e,!1);return t<0?{from:i,to:r.head}:{from:r.head,to:i}})}),findPosV:function(t,e,n,r){var i=1,o=r;e<0&&(i=-1,e=-e);for(var s=_t(this.doc,t),a=0;a<e;++a){var l=Kn(this,s,"div");if(null==o?o=l.left:l.left=o,(s=Fs(this,l,i,n)).hitSide)break}return s},moveV:$r(function(t,e){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(s){if(o)return t<0?s.from():s.to();var a=Kn(n,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),i.push(a.left);var l=Fs(n,a,t,e);return"page"==e&&s==r.sel.primary()&&Er(n,Jn(n,l,"div").top-a.top),l},G),i.length)for(var s=0;s<r.sel.ranges.length;s++)r.sel.ranges[s].goalColumn=i[s]}),findWordAt:function(t){var e=lt(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var o=e.charAt(n),s=et(o,i)?function(t){return et(t,i)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!et(t)};n>0&&s(e.charAt(n-1));)--n;for(;r<e.length&&s(e.charAt(r));)++r}return new bi(gt(t.line,n),gt(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),ie(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:$r(function(t,e){Ar(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-kn(this)-this.display.barHeight,width:t.scrollWidth-kn(this)-this.display.barWidth,clientHeight:On(this),clientWidth:An(this)}},scrollIntoView:$r(function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:gt(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){Or(t),t.curOp.scrollToPos=e}(this,t):Tr(this,t.from,t.to,t.margin)}),setSize:$r(function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&Vn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){Qr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,ie(this,"refresh",this)}),operation:function(t){return Kr(this,t)},startOperation:function(){return zr(this)},endOperation:function(){return Hr(this)},refresh:$r(function(){var t=this.display.cachedTextHeight;Yr(this),this.curOp.forceUpdate=!0,Un(this),Ar(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this),(null==t||Math.abs(t-nr(this.display))>.5)&&ar(this),ie(this,"refresh",this)}),swapDoc:$r(function(t){var e=this.doc;return e.cm=null,Mi(this,t),Un(this),this.display.input.reset(),Ar(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,e),e}),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},le(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(ws);var Vs="iter insert remove copy getEditor constructor".split(" ");for(var Us in Eo.prototype)Eo.prototype.hasOwnProperty(Us)&&V(Vs,Us)<0&&(ws.prototype[Us]=function(t){return function(){return t.apply(this.doc,arguments)}}(Eo.prototype[Us]));return le(Eo),ws.inputStyles={textarea:Bs,contenteditable:Ns},ws.defineMode=function(t){ws.defaults.mode||"null"==t||(ws.defaults.mode=t),(function(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Se[t]=e}).apply(this,arguments)},ws.defineMIME=function(t,e){Ee[t]=e},ws.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),ws.defineMIME("text/plain","null"),ws.defineExtension=function(t,e){ws.prototype[t]=e},ws.defineDocExtension=function(t,e){Eo.prototype[t]=e},ws.fromTextArea=function(t,e){if((e=e?L(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=P();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=a.getValue()}var i;if(t.form&&(ee(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(xe){}}e.finishInit=function(e){e.save=r,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,r(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(re(t.form,"submit",r),"function"==typeof t.form.submit&&(t.form.submit=i))}},t.style.display="none";var a=ws(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return a},function(t){t.off=re,t.on=ee,t.wheelEventPixels=gi,t.Doc=Eo,t.splitLines=we,t.countColumn=j,t.findColumn=X,t.isWordChar=tt,t.Pass=z,t.signal=ie,t.Line=Je,t.changeEnd=Ci,t.scrollbarModel=Br,t.Pos=gt,t.cmpPos=vt,t.modes=Se,t.mimeModes=Ee,t.resolveMode=ke,t.getMode=Ae,t.modeExtensions=Oe,t.extendMode=Te,t.copyState=Me,t.startState=Fe,t.innerMode=Pe,t.commands=qo,t.keyMap=Lo,t.keyName=Ho,t.isModifierKey=Uo,t.lookupKey=Vo,t.normalizeKeyMap=Bo,t.StringStream=Ne,t.SharedTextMarker=Co,t.TextMarker=xo,t.LineWidget=vo,t.e_preventDefault=ue,t.e_stopPropagation=ce,t.e_stop=pe,t.addClass=F,t.contains=M,t.rmClass=E,t.keyNames=Fo}(ws),ws.version="5.44.0",ws}()},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},"i+I1":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return JsonParserService});var esprima__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("+U4B"),esprima__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(esprima__WEBPACK_IMPORTED_MODULE_0__),_notifications_service__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("KWWs"),JsonParserService=function(){function JsonParserService(t){this.notifService=t}return JsonParserService.prototype.reportError=function(t){this.notifService.notifyError(t)},JsonParserService.prototype.buildObject=function(node){switch(node.type){case"ObjectExpression":for(var obj={},_i=0,_a=node.properties;_i<_a.length;_i++){var prop=_a[_i],name_1=void 0;if("Identifier"===prop.key.type)name_1=prop.key.name;else{if("Literal"!==prop.key.type)return this.reportError('Expected "Identifier" but received: '+prop.key.type),null;name_1=prop.key.value}obj[name_1]=this.buildObject(prop.value)}return obj;case"ArrayExpression":for(var obj=[],_b=0,_c=node.elements;_b<_c.length;_b++){var prop=_c[_b];obj.push(this.buildObject(prop))}return obj;case"Literal":return node.value instanceof RegExp?{$type:"RegExp",$value:{$pattern:node.value.source,$flags:node.value.flags}}:node.value;case"UnaryExpression":var arg=this.buildObject(node.argument),exp=node.prefix?""+node.operator+arg:""+arg+node.operator;return eval(exp);case"NewExpression":case"CallExpression":var authorizedCalls=["ObjectId","Date","RegExp"],callee="Identifier"===node.callee.type?node.callee.name:null;if(callee&&authorizedCalls.includes(callee)){if("RegExp"===callee){var _d=node.arguments.map(this.buildObject.bind(this)),pattern=_d[0],flags=_d[1];return{$type:"RegExp",$value:{$pattern:pattern,$flags:flags}}}return{$type:callee,$value:this.buildObject(node.arguments[0])}}return this.reportError("Unknown "+node.type+": "+callee),null;default:return this.reportError("Sorry but "+node.type+" are not authorized"),null}},JsonParserService.prototype.parse=function(t,e){var n,r=this;void 0===e&&(e=!0);var i=function(i){if(e)return r.reportError("Error while parsing: "+t),console.log(i,n),null;throw i};try{if("Program"!==(n=Object(esprima__WEBPACK_IMPORTED_MODULE_0__.parseScript)("var __JSON__ = "+t+";",{tolerant:!0})).type)return i();var o=n.body[0];if("VariableDeclaration"!==o.type)return i();var s=o.declarations[0].init;return"ObjectExpression"!==s.type?i():this.buildObject(s)}catch(a){return i(a)}},JsonParserService}()},iLxQ:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},isby:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},mrSG:function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s}),n.d(e,"e",function(){return a}),n.d(e,"d",function(){return l}),n.d(e,"h",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return h});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};function s(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function a(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function h(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}},pugT:function(t,e,n){"use strict";var r=n("isby"),i=n("McSo"),o=n("2Bdj");function s(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}s.prototype=Object.create(Error.prototype);var a=s;n.d(e,"a",function(){return l});var l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,s=this._parents,l=this._unsubscribe,c=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,p=s?s.length:0;n;)n.remove(this),n=++h<p&&s[h]||null;if(Object(o.a)(l))try{l.call(this)}catch(f){e=!0,t=f instanceof a?u(f.errors):[f]}if(Object(r.a)(c))for(h=-1,p=c.length;++h<p;){var d=c[h];if(Object(i.a)(d))try{d.unsubscribe()}catch(f){e=!0,t=t||[],f instanceof a?t=t.concat(u(f.errors)):t.push(f)}}if(e)throw new a(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var i=this._subscriptions;i?i.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=((e=new t).closed=!0,e),t}();function u(t){return t.reduce(function(t,e){return t.concat(e instanceof a?e.errors:e)},[])}},xTla:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},y3By:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n("+umK");function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:r.a}},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("mrSG"),i=n("pugT"),o=n("K9Ia"),s=n("6blF");function a(t){return t&&"function"==typeof t.schedule}var l=n("FFOo"),u=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.c(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(l.a),c=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},h=n("DKTb"),p=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,h.a),e}};function d(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var f=d(),m=function(t){return function(e){for(var n=t[f]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},g=n("xTla"),v=function(t){return function(e){var n=t[g.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},y=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function b(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var x=n("McSo"),w=function(t){if(t instanceof s.a)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[g.a])return v(t);if(y(t))return c(t);if(b(t))return p(t);if(t&&"function"==typeof t[f])return m(t);var e=Object(x.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function C(t,e,n,r,i){if(void 0===i&&(i=new u(t,n,r)),!i.closed)return w(e)(i)}var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.c(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(l.a);function D(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new S(t,e))}}var S=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new E(t,this.project,this.thisArg))},t}(),E=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.c(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(l.a);function k(t,e){return new s.a(e?function(n){var r=new i.a,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:c(t))}function A(t,e){if(!e)return t instanceof s.a?t:new s.a(w(t));if(null!=t){if(function(t){return t&&"function"==typeof t[g.a]}(t))return function(t,e){return new s.a(e?function(n){var r=new i.a;return r.add(e.schedule(function(){var i=t[g.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:v(t))}(t,e);if(b(t))return function(t,e){return new s.a(e?function(n){var r=new i.a;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:p(t))}(t,e);if(y(t))return k(t,e);if(function(t){return t&&"function"==typeof t[f]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new s.a(e?function(n){var r,o=new i.a;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[f](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}}))})),o}:m(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function O(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(O(function(n,r){return A(t(n,r)).pipe(D(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new T(t,n))})}var T=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new M(t,this.project,this.concurrent))},t}(),M=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.c(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new u(this,void 0,void 0);this.destination.add(r),C(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(_);function P(t){return t}function F(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),O(P,t)}function N(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return a(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof s.a?t[0]:F(n)(k(t,r))}function I(){return function(t){return t.lift(new R(t))}}var R=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new L(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),L=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.c(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(l.a),j=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.c(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new i.a).add(this.source.subscribe(new V(this.getSubject(),this))),t.closed?(this._connection=null,t=i.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return I()(this)},e}(s.a).prototype,B={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:j._subscribe},_isComplete:{value:j._isComplete,writable:!0},getSubject:{value:j.getSubject},connect:{value:j.connect},refCount:{value:j.refCount}},V=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.c(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);function U(){return new o.a}function z(){return function(t){return I()((e=U,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,B);return r.source=t,r.subjectFactory=n,r})(t));var e}}function H(t){for(var e in t)if(t[e]===H)return e;throw Error("Could not find renamed property on target object.")}function W(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}var G=H({ngInjectableDef:H}),X=H({ngBaseDef:H});function J(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function K(t){return t&&t.hasOwnProperty(G)?t[G]:null}var q=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?J({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),$="__parameters__",Z="__prop__metadata__";function Y(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var i=t.apply(void 0,Object(r.g)(e));for(var o in i)this[o]=i[o]}}}function Q(t,e,n){var i=Y(e);function o(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof o)return i.apply(this,e),this;var s=new((t=o).bind.apply(t,Object(r.g)([void 0],e)));return a.annotation=s,a;function a(t,e,n){for(var r=t.hasOwnProperty($)?t[$]:Object.defineProperty(t,$,{value:[]})[$];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(s),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}function tt(t,e,n,i){var o=Y(e);function s(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof s)return o.apply(this,e),this;var a=new((t=s).bind.apply(t,Object(r.g)([void 0],e)));return function(t,n){var o=t.constructor,s=o.hasOwnProperty(Z)?o[Z]:Object.defineProperty(o,Z,{value:{}})[Z];s[n]=s.hasOwnProperty(n)&&s[n]||[],s[n].unshift(a),i&&i.apply(void 0,Object(r.g)([t,n],e))}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s}var et=new q("AnalyzeForEntryComponents"),nt="undefined"!=typeof window&&window,rt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,it="undefined"!=typeof global&&global||nt||rt,ot=Promise.resolve(0),st=null;function at(){if(!st){var t=it.Symbol;if(t&&t.iterator)st=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(st=r)}}return st}function lt(t){"undefined"==typeof Zone?ot.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function ut(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function ct(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(ct).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}var ht=H({__forward_ref__:H});function pt(t){return t.__forward_ref__=pt,t.toString=function(){return ct(this())},t}function dt(t){var e=t;return"function"==typeof e&&e.hasOwnProperty(ht)&&e.__forward_ref__===pt?e():t}var ft,mt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),gt=Q("Inject",function(t){return{token:t}}),vt=Q("Optional"),yt=Q("Self"),bt=Q("SkipSelf"),xt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({}),wt=void 0;function Ct(t){var e=wt;return wt=t,e}function _t(t,e){return void 0===e&&(e=xt.Default),(ft||function(t,e){if(void 0===e&&(e=xt.Default),void 0===wt)throw new Error("inject() must be called from an injection context");return null===wt?function(t,e,n){var r=K(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&xt.Optional)return null;throw new Error("Injector: NOT_FOUND ["+ct(t)+"]")}(t,0,e):wt.get(t,e&xt.Optional?null:void 0,e)})(t,e)}var Dt=/([A-Z])/g;function St(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Et(t,e){var n=Ot(t),r=Ot(e);return n&&r?function(t,e,n){for(var r=t[at()](),i=e[at()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,Et):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||ut(t,e)}var kt=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),At=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Ot(t){return!!Tt(t)&&(Array.isArray(t)||!(t instanceof Map)&&at()in t)}function Tt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}var Pt="__source",Ft=new Object,Nt=new q("INJECTOR"),It=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Ft),e===Ft)throw new Error("NullInjectorError: No provider for "+ct(t)+"!");return e},t}(),Rt=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Xt(t,e):new Xt(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=Ft,t.NULL=new It,t.ngInjectableDef=J({providedIn:"any",factory:function(){return _t(Nt)}}),t.__NG_ELEMENT_ID__=function(){return Lt()},t}(),Lt=Mt,jt=function(t){return t},Bt=[],Vt=jt,Ut=function(){return Array.prototype.slice.call(arguments)},zt=H({provide:String,useValue:H}),Ht=Rt.NULL,Wt=/\n/gm,Gt="\u0275",Xt=function(){function t(t,e,n){void 0===e&&(e=Ht),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(Rt,{token:Rt,fn:jt,deps:Bt,value:this,useNew:!1}),r.set(Nt,{token:Nt,fn:jt,deps:Bt,value:this,useNew:!1}),function t(e,n){if(n)if((n=dt(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw qt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw qt("Unexpected provider",n);var i=dt(n.provide),o=function(t){var e=function(t){var e=Bt,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((l=dt(n[r]))instanceof Array)for(var o=0,s=l;o<s.length;o++){var a=s[o];a instanceof vt||a==vt?i|=1:a instanceof bt||a==bt?i&=-3:a instanceof yt||a==yt?i&=-5:l=a instanceof gt?a.token:dt(a)}e.push({token:l,options:i})}}else if(t.useExisting){var l;e=[{token:l=dt(t.useExisting),options:6}]}else if(!(n||zt in t))throw qt("'deps' required",t);return e}(t),n=jt,r=Bt,i=!1,o=dt(t.provide);if(zt in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=dt(t.useClass);else{if("function"!=typeof o)throw qt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=o}return{deps:e,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var s=e.get(i);if(s){if(s.fn!==Ut)throw Jt(i)}else e.set(i,s={token:n.provide,deps:[],useNew:!1,fn:Ut,value:Bt});s.deps.push({token:i=n,options:6})}var a=e.get(i);if(a&&a.fn==Ut)throw Jt(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=xt.Default);var i=this._records.get(t);try{return function t(e,n,i,o,s,a){try{return function(e,n,i,o,s,a){var l,u;if(!n||a&xt.SkipSelf)a&xt.Self||(u=o.get(e,s,xt.Default));else{if((u=n.value)==Vt)throw Error(Gt+"Circular dependency");if(u===Bt){n.value=Vt;var c=n.useNew,h=n.fn,p=n.deps,d=Bt;if(p.length){d=[];for(var f=0;f<p.length;f++){var m=p[f],g=m.options,v=2&g?i.get(m.token):void 0;d.push(t(m.token,v,i,v||4&g?o:Ht,1&g?null:Rt.THROW_IF_NOT_FOUND,xt.Default))}}n.value=u=c?new((l=h).bind.apply(l,Object(r.g)([void 0],d))):h.apply(void 0,d)}}return u}(e,n,i,o,s,a)}catch(l){throw l instanceof Error||(l=new Error(l)),(l.ngTempTokenPath=l.ngTempTokenPath||[]).unshift(e),n&&n.value==Vt&&(n.value=Bt),l}}(t,i,this._records,this.parent,e,n)}catch(s){var o=s.ngTempTokenPath;throw t[Pt]&&o.unshift(t[Pt]),s.message=Kt("\n"+s.message,o,this.source),s.ngTokenPath=o,s.ngTempTokenPath=null,s}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(ct(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Jt(t){return qt("Cannot mix multi providers and regular providers",t)}function Kt(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Gt?t.substr(2):t;var r=ct(e);if(e instanceof Array)r=e.map(ct).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):ct(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Wt,"\n ")}function qt(t,e){return new Error(Kt(t,e))}var $t=new q("The presence of this token marks an injector as being the root injector."),Zt=function(){return function(){}}(),Yt=function(){return function(){}}();function Qt(t){var e=Error("No component factory found for "+ct(t)+". Did you add it to @NgModule.entryComponents?");return e[te]=t,e}var te="ngComponent",ee=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Qt(t)},t}(),ne=function(){function t(){}return t.NULL=new ee,t}(),re=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Qt(t);return new ie(e,this._ngModule)},t}(),ie=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return Object(r.c)(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Yt),oe=function(){return function(){}}(),se=function(){return function(){}}(),ae=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return le(t)},t}(),le=Mt,ue=function(){return function(){}}(),ce=function(){return function(){}}(),he=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),pe=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return de()},t}(),de=Mt,fe=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),me=function(){return function(){}}(),ge=new(function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}())("7.2.9"),ve=!0,ye=!1;function be(){return ye=!0,ve}var xe=function(){function t(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var r=e.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.removeAttribute(r)}for(var i=t.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},t}(),we=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Ce=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function _e(t){return(t=String(t)).match(we)||t.match(Ce)?t:(be()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function De(t){var e,n,i={};try{for(var o=Object(r.h)(t.split(",")),s=o.next();!s.done;s=o.next())i[s.value]=!0}catch(a){e={error:a}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}function Se(){for(var t,e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o={};try{for(var s=Object(r.h)(n),a=s.next();!a.done;a=s.next()){var l=a.value;for(var u in l)l.hasOwnProperty(u)&&(o[u]=!0)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return o}var Ee,ke=De("area,br,col,hr,img,wbr"),Ae=De("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Oe=De("rp,rt"),Te=Se(Oe,Ae),Me=Se(ke,Se(Ae,De("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Se(Oe,De("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Te),Pe=De("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fe=De("srcset"),Ne=Se(Pe,Fe,De("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),Ie=De("script,style,template"),Re=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild,n=!0;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var e,n=t.nodeName.toLowerCase();if(!Me.hasOwnProperty(n))return this.sanitizedSomething=!0,!Ie.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var r=t.attributes,i=0;i<r.length;i++){var o=r.item(i),s=o.name,a=s.toLowerCase();if(Ne.hasOwnProperty(a)){var l=o.value;Pe[a]&&(l=_e(l)),Fe[a]&&(e=l,l=(e=String(e)).split(",").map(function(t){return _e(t.trim())}).join(", ")),this.buf.push(" ",s,'="',Be(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Me.hasOwnProperty(e)&&!ke.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Be(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Le=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,je=/([^\#-~ |!])/g;function Be(t){return t.replace(/&/g,"&").replace(Le,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(je,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function Ve(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ue=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(r.c)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,s=function(t){return null},a=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(s=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var l=t.prototype.subscribe.call(this,o,s,a);return e instanceof i.a&&e.add(l),l},e}(o.a),ze=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return He(t,ae)},t}(),He=Mt,We=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"),Ge=/^url\(([^)]+)\)$/,Xe=function(){return function(){}}(),Je=tt("Input",function(t){return{bindingPropertyName:t}},void 0,function(t){return function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=t.constructor;i.hasOwnProperty(X)||function(t){var e=t.constructor,n=e.ngBaseDef,r=e.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(W(r.inputs,n.inputs),W(r.outputs,n.outputs),W(r.declaredInputs,n.declaredInputs))}(t),(function(t){return t.inputs||{}}(i.ngBaseDef))[e]=n[0]}}()),Ke=tt("HostBinding",function(t){return{hostPropertyName:t}}),qe="ngDebugContext",$e="ngOriginalError",Ze="ngErrorLogger";function Ye(t){return t[qe]}function Qe(t){return t[$e]}function tn(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,Object(r.g)(e))}var en=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t[Ze]||tn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?Ye(t)?Ye(t):this._findContext(Qe(t)):null},t.prototype._findOriginalError=function(t){for(var e=Qe(t);e&&Qe(e);)e=Qe(e);return e},t}();function nn(t){return!!t&&"function"==typeof t.then}function rn(t){return!!t&&"function"==typeof t.subscribe}var on=new q("Application Initializer"),sn=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();nn(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t}(),an=new q("AppId");function ln(){return""+un()+un()+un()}function un(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var cn=new q("Platform Initializer"),hn=new q("Platform ID"),pn=new q("appBootstrapListener"),dn=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();function fn(){throw new Error("Runtime compiler is not loaded")}var mn,gn,vn=fn,yn=fn,bn=fn,xn=fn,wn=function(){function t(){this.compileModuleSync=vn,this.compileModuleAsync=yn,this.compileModuleAndAllComponentsSync=bn,this.compileModuleAndAllComponentsAsync=xn}return t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t}(),Cn=function(){return function(){}}();function _n(){var t=it.wtf;return!(!t||!(mn=t.trace)||(gn=mn.events,0))}var Dn=_n();function Sn(t,e){return null}var En=Dn?function(t,e){return void 0===e&&(e=null),gn.createScope(t,e)}:function(t,e){return Sn},kn=Dn?function(t,e){return mn.leaveScope(t,e),e}:function(t,e){return e},An=function(){function t(t){var e,n=t.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ue(!1),this.onMicrotaskEmpty=new Ue(!1),this.onStable=new Ue(!1),this.onError=new Ue(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,i,o,s){try{return Pn(e),t.invokeTask(r,i,o,s)}finally{Fn(e)}},onInvoke:function(t,n,r,i,o,s,a){try{return Pn(e),t.invoke(r,i,o,s,a)}finally{Fn(e)}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?(e.hasPendingMicrotasks=i.microTask,Mn(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.runOutsideAngular(function(){return e.onError.emit(i)}),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Tn,On,On);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function On(){}var Tn={};function Mn(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Pn(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Fn(t){t._nesting--,Mn(t)}var Nn,In=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ue,this.onMicrotaskEmpty=new Ue,this.onStable=new Ue,this.onError=new Ue}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),Rn=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){e.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){An.assertNotInAngularZone(),lt(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())lt(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,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(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Ln=function(){function t(){this._applications=new Map,jn.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),jn.findTestabilityInTree(this,t,e)},Object(r.b)([Object(r.d)("design:paramtypes",[])],t)}(),jn=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Bn=new q("AllowMultipleToken"),Vn=function(){return function(t,e){this.name=t,this.token=e}}();function Un(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new q(r);return function(e){void 0===e&&(e=[]);var o=zn();if(!o||o.injector.get(Bn,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var s=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(Nn&&!Nn.destroyed&&!Nn.injector.get(Bn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Nn=t.get(Hn);var e=t.get(cn,null);e&&e.forEach(function(t){return t()})}(Rt.create({providers:s,name:r}))}return function(t){var e=zn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function zn(){return Nn&&!Nn.destroyed?Nn:null}var Hn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new In:("zone.js"===n?void 0:n)||new An({enableLongStackTrace:be()}),o=[{provide:An,useValue:i}];return i.run(function(){var e=Rt.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),s=n.injector.get(en,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Xn(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){s.handleError(t)}})}),function(t,e,i){try{var o=((s=n.injector.get(sn)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return nn(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(a){throw e.runOutsideAngular(function(){return t.handleError(a)}),a}var s}(s,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Wn({},e);return function(t,e,n){return t.get(Cn).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Gn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+ct(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Wn(t,e){return Array.isArray(e)?e.reduce(Wn,t):Object(r.a)({},t,e)}var Gn=function(){function t(t,e,n,r,i,o){var a=this;this._zone=t,this._console=e,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=be(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var l=new s.a(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new s.a(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){An.assertNotInAngularZone(),lt(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){An.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=N(l,u.pipe(z()))}var e;return e=t,t.prototype.bootstrap=function(t,e){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=t instanceof Yt?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof ie?null:this._injector.get(oe),o=n.create(Rt.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(Rn,null);return s&&o.injector.get(Ln).registerApplication(o.location.nativeElement,s),this._loadComponent(o),be()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,kn(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Xn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(pn,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Xn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=En("ApplicationRef#tick()"),t}();function Xn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Jn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Ue,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[at()]=function(){return this._results[at()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),Kn=function(){return function(){}}(),qn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},$n=function(){function t(t,e){this._compiler=t,this._config=e||qn}return t.prototype.load=function(t){return this._compiler instanceof wn?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=Object(r.f)(t.split("#"),2),o=i[0],s=i[1];return void 0===s&&(s="default"),n("crnd")(o).then(function(t){return t[s]}).then(function(t){return Zn(t,o,s)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(r.f)(t.split("#"),2),i=e[0],o=e[1],s="NgFactory";return void 0===o&&(o="default",s=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[o+s]}).then(function(t){return Zn(t,i,o)})},t}();function Zn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Yn=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Qn(t,ae)},t}(),Qn=Mt,tr=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return er()},t}(),er=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},nr=function(){return function(t,e){this.name=t,this.callback=e}}(),rr=function(){function t(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof ir&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),ir=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(r.c)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,i=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,Object(r.g)([o+1,0],e)),e.forEach(function(e){e.parent&&e.parent.removeChild(e),t.parent=i}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof ir&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof ir&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof ir&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(rr),or=new Map,sr=function(t){return or.get(t)||null};function ar(t){or.set(t.nativeNode,t)}var lr=function(){function t(){}return t.prototype.supports=function(t){return Ot(t)},t.prototype.create=function(t){return new cr(t)},t}(),ur=function(t,e){return e},cr=function(){function t(t){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=t||ur}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<fr(n,r,i)?e:n,s=fr(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var l=s-r,u=a-r;if(l!=u){for(var c=0;c<l;c++){var h=c<i.length?i[c]:i[c]=0,p=h+c;u<=p&&p<l&&(i[c]=h+1)}i[o.previousIndex]=u-l}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!Ot(t))throw new Error("Error trying to diff '"+ct(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(var a=0;a<this.length;a++)i=this._trackByFn(a,r=t[a]),null!==o&&ut(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),ut(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[at()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&ut(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),ut(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(ut(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(ut(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new hr(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new dr),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new dr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),hr=function(){return function(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),pr=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&ut(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),dr=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new pr,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function fr(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var mr=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Tt(t)},t.prototype.create=function(){return new gr},t}(),gr=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Tt(t)))throw new Error("Error trying to diff '"+ct(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new vr(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){ut(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),vr=function(){return function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),yr=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new bt,new vt]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t.ngInjectableDef=J({providedIn:"root",factory:function(){return new t([new lr])}}),t}(),br=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new bt,new vt]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t.ngInjectableDef=J({providedIn:"root",factory:function(){return new t([new mr])}}),t}(),xr=[new mr],wr=new yr([new lr]),Cr=new br(xr),_r=Un(null,"core",[{provide:hn,useValue:"unknown"},{provide:Hn,deps:[Rt]},{provide:Ln,deps:[]},{provide:dn,deps:[]}]),Dr=new q("LocaleId");function Sr(){return wr}function Er(){return Cr}function kr(t){return t||"en-US"}var Ar=function(){return function(t){}}();function Or(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Tr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Mr(t,e){return t.nodes[e]}function Pr(t,e){return t.nodes[e]}function Fr(t,e){return t.nodes[e]}function Nr(t,e){return t.nodes[e]}function Ir(t,e){return t.nodes[e]}var Rr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Lr(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" 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 ?"),function(t,e){var n=new Error(t);return jr(n,e),n}(i,t)}function jr(t,e){t[qe]=e,t[Ze]=e.logError.bind(e)}function Br(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Vr=function(){},Ur=new Map;function zr(t){var e=Ur.get(t);return e||(e=ct(t)+"_"+Ur.size,Ur.set(t,e)),e}function Hr(t,e,n,r){if(kt.isWrapped(r)){r=kt.unwrap(r);var i=t.def.nodes[e].bindingIndex+n,o=kt.unwrap(t.oldValues[i]);t.oldValues[i]=new kt(o)}return r}var Wr="$$undefined",Gr="$$empty";function Xr(t){return{id:Wr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var Jr=0;function Kr(t,e,n,r){return!(!(2&t.state)&&ut(t.oldValues[e.bindingIndex+n],r))}function qr(t,e,n,r){return!!Kr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function $r(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Et(i,r)){var o=e.bindings[n].name;throw Lr(Rr.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function Zr(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Yr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Qr(t,e,n,r){try{return Zr(33554432&t.def.nodes[e].flags?Pr(t,e).componentView:t),Rr.handleEvent(t,e,n,r)}catch(i){t.root.errorHandler.handleError(i)}}function ti(t){return t.parent?Pr(t.parent,t.parentNodeDef.nodeIndex):null}function ei(t){return t.parent?t.parentNodeDef.parent:null}function ni(t,e){switch(201347067&e.flags){case 1:return Pr(t,e.nodeIndex).renderElement;case 2:return Mr(t,e.nodeIndex).renderText}}function ri(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ii(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function oi(t){return 1<<t%32}function si(t){var e={},n=0,i={};return t&&t.forEach(function(t){var o=Object(r.f)(t,2),s=o[0],a=o[1];"number"==typeof s?(e[s]=a,n|=oi(s)):i[s]=a}),{matchedQueries:e,references:i,matchedQueryIds:n}}function ai(t,e){return t.map(function(t){var n,i,o;return Array.isArray(t)?(o=(n=Object(r.f)(t,2))[0],i=n[1]):(o=0,i=t),i&&("function"==typeof i||"object"==typeof i)&&e&&Object.defineProperty(i,Pt,{value:e,configurable:!0}),{flags:o,token:i,tokenKey:zr(i)}})}function li(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===mt.Native?Pr(t,n.renderParent.nodeIndex).renderElement:void 0:e}var ui=new WeakMap;function ci(t){var e=ui.get(t);return e||((e=t(function(){return Vr})).factory=t,ui.set(t,e)),e}function hi(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(ni(t,t.def.lastRenderRootNode))),pi(t,e,0,t.def.nodes.length-1,n,r,i)}function pi(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var l=t.def.nodes[a];11&l.flags&&fi(t,l,e,i,o,s),a+=l.childCount}}function di(t,e,n,r,i,o){for(var s=t;s&&!ri(s);)s=s.parent;for(var a=s.parent,l=ei(s),u=l.nodeIndex+l.childCount,c=l.nodeIndex+1;c<=u;c++){var h=a.def.nodes[c];h.ngContentIndex===e&&fi(a,h,n,r,i,o),c+=h.childCount}if(!a.parent){var p=t.root.projectableNodes[e];if(p)for(c=0;c<p.length;c++)mi(t,p[c],n,r,i,o)}}function fi(t,e,n,r,i,o){if(8&e.flags)di(t,e.ngContent.index,n,r,i,o);else{var s=ni(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&mi(t,s,n,r,i,o),32&e.bindingFlags&&mi(Pr(t,e.nodeIndex).componentView,s,n,r,i,o)):mi(t,s,n,r,i,o),16777216&e.flags)for(var a=Pr(t,e.nodeIndex).viewContainer._embeddedViews,l=0;l<a.length;l++)hi(a[l],n,r,i,o);1&e.flags&&!e.element.name&&pi(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function mi(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}var gi=/^:([^:]+):(.+)$/;function vi(t){if(":"===t[0]){var e=t.match(gi);return[e[1],e[2]]}return["",t]}function yi(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function bi(t,e,n,r,i,o,s,a,l,u,c,h,p,d,f,m,g,v,y,b){switch(t){case 1:return e+xi(n)+r;case 2:return e+xi(n)+r+xi(i)+o;case 3:return e+xi(n)+r+xi(i)+o+xi(s)+a;case 4:return e+xi(n)+r+xi(i)+o+xi(s)+a+xi(l)+u;case 5:return e+xi(n)+r+xi(i)+o+xi(s)+a+xi(l)+u+xi(c)+h;case 6:return e+xi(n)+r+xi(i)+o+xi(s)+a+xi(l)+u+xi(c)+h+xi(p)+d;case 7:return e+xi(n)+r+xi(i)+o+xi(s)+a+xi(l)+u+xi(c)+h+xi(p)+d+xi(f)+m;case 8:return e+xi(n)+r+xi(i)+o+xi(s)+a+xi(l)+u+xi(c)+h+xi(p)+d+xi(f)+m+xi(g)+v;case 9:return e+xi(n)+r+xi(i)+o+xi(s)+a+xi(l)+u+xi(c)+h+xi(p)+d+xi(f)+m+xi(g)+v+xi(y)+b;default:throw new Error("Does not support more than 9 expressions")}}function xi(t){return null!=t?t.toString():""}function wi(t,e,n,r,i,o){t|=1;var s=si(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s.matchedQueries,matchedQueryIds:s.matchedQueryIds,references:s.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?ci(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Vr},provider:null,text:null,query:null,ngContent:null}}function Ci(t,e,n,i,o,s,a,l,u,c,h,p){var d;void 0===a&&(a=[]),c||(c=Vr);var f=si(n),m=f.matchedQueries,g=f.references,v=f.matchedQueryIds,y=null,b=null;s&&(y=(d=Object(r.f)(vi(s),2))[0],b=d[1]),l=l||[];for(var x=new Array(l.length),w=0;w<l.length;w++){var C=Object(r.f)(l[w],3),_=C[0],D=C[1],S=C[2],E=Object(r.f)(vi(D),2),k=E[0],A=E[1],O=void 0,T=void 0;switch(15&_){case 4:T=S;break;case 1:case 8:O=S}x[w]={flags:_,ns:k,name:A,nonMinifiedName:A,securityContext:O,suffix:T}}u=u||[];var M=new Array(u.length);for(w=0;w<u.length;w++){var P=Object(r.f)(u[w],2);M[w]={type:0,target:P[0],eventName:P[1],propName:null}}var F=(a=a||[]).map(function(t){var e=Object(r.f)(t,2),n=e[0],i=e[1],o=Object(r.f)(vi(n),2);return[o[0],o[1],i]});return p=function(t){if(t&&t.id===Wr){var e=null!=t.encapsulation&&t.encapsulation!==mt.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Jr++:Gr}return t&&t.id===Gr&&(t=null),t||null}(p),h&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:m,matchedQueryIds:v,references:g,ngContentIndex:i,childCount:o,bindings:x,bindingFlags:yi(x),outputs:M,element:{ns:y,name:b,attrs:F,template:null,componentProvider:null,componentView:h||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:c||Vr},provider:null,text:null,query:null,ngContent:null}}function _i(t,e,n){var i,o=n.element,s=t.root.selectorOrNode,a=t.renderer;if(t.parent||!s){i=o.name?a.createElement(o.name,o.ns):a.createComment("");var l=li(t,e,n);l&&a.appendChild(l,i)}else i=a.selectRootElement(s,!!o.componentRendererType&&o.componentRendererType.encapsulation===mt.ShadowDom);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=Object(r.f)(o.attrs[u],3);a.setAttribute(i,c[1],c[2],c[0])}return i}function Di(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Si(t,n.nodeIndex,(h=o.eventName,(c=o.target)?c+":"+h:h)),a=o.target,l=t;"component"===o.target&&(a=null,l=e);var u=l.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=u}var c,h}function Si(t,e,n){return function(r){return Qr(t,e,n,r)}}function Ei(t,e,n,r){if(!qr(t,e,n,r))return!1;var i=e.bindings[n],o=Pr(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var l=t.renderer;null!=o?l.setAttribute(n,i,a,r):l.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function(t,e,n,r,i){var o=t.root.sanitizer.sanitize(fe.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}var ki=new Object,Ai=zr(Rt),Oi=zr(Nt),Ti=zr(oe);function Mi(t,e,n,r){return n=dt(n),{index:-1,deps:ai(r,ct(e)),flags:t,token:e,value:n}}function Pi(t,e,n){void 0===n&&(n=Rt.THROW_IF_NOT_FOUND);var r,i,o=Ct(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var s=e.tokenKey;switch(s){case Ai:case Oi:case Ti:return t}var a,l=t._def.providersByKey[s];if(l){var u=t._providers[l.index];return void 0===u&&(u=t._providers[l.index]=Fi(t,l)),u===ki?void 0:u}if((a=K(e.token))&&(r=t,null!=(i=a).providedIn&&(function(t,e){return t._def.modules.indexOf(i.providedIn)>-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:e.token},t._providers[c]=ki,t._providers[c]=Fi(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Ct(o)}}function Fi(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var i=n.length;switch(i){case 0:return new e;case 1:return new e(Pi(t,n[0]));case 2:return new e(Pi(t,n[0]),Pi(t,n[1]));case 3:return new e(Pi(t,n[0]),Pi(t,n[1]),Pi(t,n[2]));default:for(var o=new Array(i),s=0;s<i;s++)o[s]=Pi(t,n[s]);return new(e.bind.apply(e,Object(r.g)([void 0],o)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var i=n.length;switch(i){case 0:return e();case 1:return e(Pi(t,n[0]));case 2:return e(Pi(t,n[0]),Pi(t,n[1]));case 3:return e(Pi(t,n[0]),Pi(t,n[1]),Pi(t,n[2]));default:for(var o=Array(i),s=0;s<i;s++)o[s]=Pi(t,n[s]);return e.apply(void 0,Object(r.g)(o))}}(t,e.value,e.deps);break;case 2048:n=Pi(t,e.deps[0]);break;case 256:n=e.value}return n===ki||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?ki:n}function Ni(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,ji(n,e),Rr.dirtyParentQueries(r),Ri(r),r}function Ii(t,e,n){var r=e?ni(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);hi(n,2,i,o,void 0)}function Ri(t){hi(t,3,null,null,void 0)}function Li(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ji(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Bi=new Object;function Vi(t,e,n,r,i,o){return new Ui(t,e,n,r,i,o)}var Ui=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Object(r.c)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=ci(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=Rr.createRootView(t,e||[],n,i,r,Bi),a=Fr(s,o).instance;return n&&s.renderer.setAttribute(Pr(s,0).renderElement,"ng-version",ge.full),new zi(s,new Xi(s),a)},e}(Yt),zi=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,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)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ae(Pr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new $i(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Zt);function Hi(t,e,n){return new Wi(t,e,n)}var Wi=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new ae(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new $i(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=ei(t),t=t.parent;return t?new $i(t,e):new $i(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Ni(this._data,t);Rr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Xi(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof ie||(i=o.get(oe));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,s=t;return o=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=o.length),(i=s._view).viewContainerParent=this._view,Li(o,r,i),function(t,e){var n=ti(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),Rr.dirtyParentQueries(i),Ii(n,r>0?o[r-1]:null,i),s.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,s,a=this._embeddedViews.indexOf(t._view);return i=e,s=(o=(n=this._data).viewContainer._embeddedViews)[r=a],ji(o,r),null==i&&(i=o.length),Li(o,i,s),Rr.dirtyParentQueries(s),Ri(s),Ii(n,i>0?o[i-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Ni(this._data,t);e&&Rr.destroyView(e)},t.prototype.detach=function(t){var e=Ni(this._data,t);return e?new Xi(e):null},t}();function Gi(t){return new Xi(t)}var Xi=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return hi(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Zr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Rr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Rr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Rr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ri(this._view),Rr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Ji(t,e){return new Ki(t,e)}var Ki=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.c)(e,t),e.prototype.createEmbeddedView=function(t){return new Xi(Rr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ae(Pr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(ze);function qi(t,e){return new $i(t,e)}var $i=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Rt.THROW_IF_NOT_FOUND),Rr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:zr(t)},e)},t}();function Zi(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Pr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Mr(t,n.nodeIndex).renderText;if(20240&n.flags)return Fr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Yi(t){return new Qi(t.renderer)}var Qi=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(r.f)(vi(e),2),i=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var i=Object(r.f)(vi(e),2),o=i[0],s=i[1];null!=n?this.delegate.setAttribute(t,s,n,o):this.delegate.removeAttribute(t,s,o)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function to(t,e,n,r){return new eo(t,e,n,r)}var eo=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Fi(t,i))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=Rt.THROW_IF_NOT_FOUND),void 0===n&&(n=xt.Default);var r=0;return n&xt.SkipSelf?r|=1:n&xt.Self&&(r|=4),Pi(this,{token:t,tokenKey:zr(t),flags:r},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(ne)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+ct(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=t._providers[i];if(o&&o!==ki){var s=o.ngOnDestroy;"function"!=typeof s||r.has(o)||(s.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),no=zr(ue),ro=zr(pe),io=zr(ae),oo=zr(Yn),so=zr(ze),ao=zr(tr),lo=zr(Rt),uo=zr(Nt);function co(t,e,n,i,o,s,a,l){var u=[];if(a)for(var c in a){var h=Object(r.f)(a[c],2);u[h[0]]={flags:8,name:c,nonMinifiedName:h[1],ns:null,securityContext:null,suffix:null}}var p=[];if(l)for(var d in l)p.push({type:1,propName:d,target:null,eventName:l[d]});return fo(t,e|=16384,n,i,o,o,s,u,p)}function ho(t,e,n){return fo(-1,t|=16,null,0,e,e,n)}function po(t,e,n,r,i){return fo(-1,t,e,0,n,r,i)}function fo(t,e,n,r,i,o,s,a,l){var u=si(n),c=u.matchedQueries,h=u.references,p=u.matchedQueryIds;l||(l=[]),a||(a=[]),o=dt(o);var d=ai(s,ct(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:h,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:yi(a),outputs:l,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function mo(t,e){return bo(t,e)}function go(t,e){for(var n=t;n.parent&&!ri(n);)n=n.parent;return xo(n.parent,ei(n),!0,e.provider.value,e.provider.deps)}function vo(t,e){var n=xo(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r<e.outputs.length;r++){var i=e.outputs[r],o=n[i.propName];if(!rn(o))throw new Error("@Output "+i.propName+" not initialized in '"+n.constructor.name+"'.");var s=o.subscribe(yo(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+r]=s.unsubscribe.bind(s)}return n}function yo(t,e,n){return function(r){return Qr(t,e,n,r)}}function bo(t,e){var n=(8192&e.flags)>0,i=e.provider;switch(201347067&e.flags){case 512:return xo(t,e.parent,n,i.value,i.deps);case 1024:return function(t,e,n,i,o){var s=o.length;switch(s){case 0:return i();case 1:return i(Co(t,e,n,o[0]));case 2:return i(Co(t,e,n,o[0]),Co(t,e,n,o[1]));case 3:return i(Co(t,e,n,o[0]),Co(t,e,n,o[1]),Co(t,e,n,o[2]));default:for(var a=Array(s),l=0;l<s;l++)a[l]=Co(t,e,n,o[l]);return i.apply(void 0,Object(r.g)(a))}}(t,e.parent,n,i.value,i.deps);case 2048:return Co(t,e.parent,n,i.deps[0]);case 256:return i.value}}function xo(t,e,n,i,o){var s=o.length;switch(s){case 0:return new i;case 1:return new i(Co(t,e,n,o[0]));case 2:return new i(Co(t,e,n,o[0]),Co(t,e,n,o[1]));case 3:return new i(Co(t,e,n,o[0]),Co(t,e,n,o[1]),Co(t,e,n,o[2]));default:for(var a=new Array(s),l=0;l<s;l++)a[l]=Co(t,e,n,o[l]);return new(i.bind.apply(i,Object(r.g)([void 0],a)))}}var wo={};function Co(t,e,n,r,i){if(void 0===i&&(i=Rt.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;s===ao&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var a=t;a;){if(e)switch(s){case no:return Yi(_o(a,e,n));case ro:return _o(a,e,n).renderer;case io:return new ae(Pr(a,e.nodeIndex).renderElement);case oo:return Pr(a,e.nodeIndex).viewContainer;case so:if(e.element.template)return Pr(a,e.nodeIndex).template;break;case ao:return Gi(_o(a,e,n));case lo:case uo:return qi(a,e);default:var l=(n?e.element.allProviders:e.element.publicProviders)[s];if(l){var u=Fr(a,l.nodeIndex);return u||(u={instance:bo(a,l)},a.nodes[l.nodeIndex]=u),u.instance}}n=ri(a),e=ei(a),a=a.parent,4&r.flags&&(a=null)}var c=o.root.injector.get(r.token,wo);return c!==wo||i===wo?c:o.root.ngModule.injector.get(r.token,i)}function _o(t,e,n){var r;if(n)r=Pr(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!ri(r);)r=r.parent;return r}function Do(t,e,n,r,i,o){if(32768&n.flags){var s=Pr(t,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var a=kt.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new At(a,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function So(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&e&&ko(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=Eo(t,s,e,r)),s=s.parent}}function Eo(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&ko(t,i,o.flags&n,r++),i+=o.childCount}return r}function ko(t,e,n,r){var i=Fr(t,e);if(i){var o=i.instance;o&&(Rr.setCurrentNode(t,e),1048576&n&&Tr(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Tr(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Ao(t,e,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:oi(e),bindings:r},ngContent:null}}function Oo(t){for(var e=t.def.nodeMatchedQueries;t.parent&&ii(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&Ir(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&Ir(t,i).setDirty(),i+=o.childCount}}function To(t,e){var n=Ir(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Mo(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Fr(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=Mo(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,l=0;l<s.length;l++){var u=s[l],c=void 0;switch(u.bindingType){case 0:c=n.first;break;case 1:c=n,a=!0}r[u.propName]=c}a&&n.notifyOnChanges()}}function Mo(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(Po(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var l=Pr(t,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(Mo(t,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var u=l.viewContainer._embeddedViews,c=0;c<u.length;c++){var h=u[c],p=ti(h);p&&p===l&&Mo(h,0,h.def.nodes.length-1,r,i)}var d=l.template._projectedViews;if(d)for(c=0;c<d.length;c++){var f=d[c];Mo(f,0,f.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function Po(t,e,n){if(null!=n)switch(n){case 1:return Pr(t,e.nodeIndex).renderElement;case 0:return new ae(Pr(t,e.nodeIndex).renderElement);case 2:return Pr(t,e.nodeIndex).template;case 3:return Pr(t,e.nodeIndex).viewContainer;case 4:return Fr(t,e.nodeIndex).instance}}function Fo(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function No(t,e,n){var r=li(t,e,n);r&&di(t,n.ngContent.index,1,r,null,void 0)}function Io(t,e){return Lo(128,t,new Array(e+1))}function Ro(t,e){for(var n=Object.keys(e),r=n.length,i=new Array(r),o=0;o<r;o++){var s=n[o];i[e[s]]=s}return Lo(64,t,i)}function Lo(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:yi(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function jo(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Bo(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=li(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function Vo(t,e){return(null!=t?t.toString():"")+e.suffix}function Uo(t,e,n,r){for(var i=0,o=0,s=0,a=0,l=0,u=null,c=null,h=!1,p=!1,d=null,f=0;f<e.length;f++){var m=e[f];if(m.nodeIndex=f,m.parent=u,m.bindingIndex=i,m.outputIndex=o,m.renderParent=c,s|=m.flags,l|=m.matchedQueryIds,m.element){var g=m.element;g.publicProviders=u?u.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,h=!1,p=!1,m.element.template&&(l|=m.element.template.nodeMatchedQueries)}if(Ho(u,m,e.length),i+=m.bindings.length,o+=m.outputs.length,!c&&3&m.flags&&(d=m),20224&m.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var v=0!=(32768&m.flags);0==(8192&m.flags)||v?u.element.publicProviders[zr(m.provider.token)]=m:(p||(p=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[zr(m.provider.token)]=m),v&&(u.element.componentProvider=m)}if(u?(u.childFlags|=m.flags,u.directChildFlags|=m.flags,u.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(u.childMatchedQueries|=m.element.template.nodeMatchedQueries)):a|=m.flags,m.childCount>0)u=m,zo(m)||(c=m);else for(;u&&f===u.nodeIndex+u.childCount;){var y=u.parent;y&&(y.childFlags|=u.childFlags,y.childMatchedQueries|=u.childMatchedQueries),c=(u=y)&&zo(u)?u.renderParent:u}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Vr,updateRenderer:r||Vr,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function zo(t){return 0!=(1&t.flags)&&null===t.element.name}function Ho(t,e,n){var r=e.element&&e.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 "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Wo(t,e,n,r){var i=Jo(t.root,t.renderer,t,e,n);return Ko(i,t.component,r),qo(i),i}function Go(t,e,n){var r=Jo(t,t.renderer,null,null,e);return Ko(r,n,n),qo(r),r}function Xo(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,Jo(t.root,i,t,e.element.componentProvider,n)}function Jo(t,e,n,r,i){var o=new Array(i.nodes.length),s=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:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function Ko(t,e,n){t.component=e,t.context=n}function qo(t){var e;ri(t)&&(e=Pr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];Rr.setCurrentNode(t,i);var s=void 0;switch(201347067&o.flags){case 1:var a=_i(t,e,o),l=void 0;if(33554432&o.flags){var u=ci(o.element.componentView);l=Rr.createComponentView(t,o,u,a)}Di(t,l,o,a),s={renderElement:a,componentView:l,viewContainer:null,template:o.element.template?Ji(t,o):void 0},16777216&o.flags&&(s.viewContainer=Hi(t,o,s));break;case 2:s=Bo(t,e,o);break;case 512:case 1024:case 2048:case 256:(s=r[i])||4096&o.flags||(s={instance:mo(t,o)});break;case 16:s={instance:go(t,o)};break;case 16384:(s=r[i])||(s={instance:vo(t,o)}),32768&o.flags&&Ko(Pr(t,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new Jn;break;case 8:No(t,e,o),s=void 0}r[i]=s}is(t,rs.CreateViewNodes),ls(t,201326592,268435456,0)}function $o(t){Qo(t),Rr.updateDirectives(t,1),os(t,rs.CheckNoChanges),Rr.updateRenderer(t,1),is(t,rs.CheckNoChanges),t.state&=-97}function Zo(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Or(t,0,256),Qo(t),Rr.updateDirectives(t,0),os(t,rs.CheckAndUpdate),ls(t,67108864,536870912,0);var e=Or(t,256,512);So(t,2097152|(e?1048576:0)),Rr.updateRenderer(t,0),is(t,rs.CheckAndUpdate),ls(t,134217728,536870912,0),So(t,8388608|((e=Or(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Or(t,768,1024)}function Yo(t,e,n,i,o,s,a,l,u,c,h,p,d){return 0===n?function(t,e,n,r,i,o,s,a,l,u,c,h){switch(201347067&e.flags){case 1:return function(t,e,n,r,i,o,s,a,l,u,c,h){var p=e.bindings.length,d=!1;return p>0&&Ei(t,e,0,n)&&(d=!0),p>1&&Ei(t,e,1,r)&&(d=!0),p>2&&Ei(t,e,2,i)&&(d=!0),p>3&&Ei(t,e,3,o)&&(d=!0),p>4&&Ei(t,e,4,s)&&(d=!0),p>5&&Ei(t,e,5,a)&&(d=!0),p>6&&Ei(t,e,6,l)&&(d=!0),p>7&&Ei(t,e,7,u)&&(d=!0),p>8&&Ei(t,e,8,c)&&(d=!0),p>9&&Ei(t,e,9,h)&&(d=!0),d}(t,e,n,r,i,o,s,a,l,u,c,h);case 2:return function(t,e,n,r,i,o,s,a,l,u,c,h){var p=!1,d=e.bindings,f=d.length;if(f>0&&qr(t,e,0,n)&&(p=!0),f>1&&qr(t,e,1,r)&&(p=!0),f>2&&qr(t,e,2,i)&&(p=!0),f>3&&qr(t,e,3,o)&&(p=!0),f>4&&qr(t,e,4,s)&&(p=!0),f>5&&qr(t,e,5,a)&&(p=!0),f>6&&qr(t,e,6,l)&&(p=!0),f>7&&qr(t,e,7,u)&&(p=!0),f>8&&qr(t,e,8,c)&&(p=!0),f>9&&qr(t,e,9,h)&&(p=!0),p){var m=e.text.prefix;f>0&&(m+=Vo(n,d[0])),f>1&&(m+=Vo(r,d[1])),f>2&&(m+=Vo(i,d[2])),f>3&&(m+=Vo(o,d[3])),f>4&&(m+=Vo(s,d[4])),f>5&&(m+=Vo(a,d[5])),f>6&&(m+=Vo(l,d[6])),f>7&&(m+=Vo(u,d[7])),f>8&&(m+=Vo(c,d[8])),f>9&&(m+=Vo(h,d[9]));var g=Mr(t,e.nodeIndex).renderText;t.renderer.setValue(g,m)}return p}(t,e,n,r,i,o,s,a,l,u,c,h);case 16384:return function(t,e,n,r,i,o,s,a,l,u,c,h){var p=Fr(t,e.nodeIndex),d=p.instance,f=!1,m=void 0,g=e.bindings.length;return g>0&&Kr(t,e,0,n)&&(f=!0,m=Do(t,p,e,0,n,m)),g>1&&Kr(t,e,1,r)&&(f=!0,m=Do(t,p,e,1,r,m)),g>2&&Kr(t,e,2,i)&&(f=!0,m=Do(t,p,e,2,i,m)),g>3&&Kr(t,e,3,o)&&(f=!0,m=Do(t,p,e,3,o,m)),g>4&&Kr(t,e,4,s)&&(f=!0,m=Do(t,p,e,4,s,m)),g>5&&Kr(t,e,5,a)&&(f=!0,m=Do(t,p,e,5,a,m)),g>6&&Kr(t,e,6,l)&&(f=!0,m=Do(t,p,e,6,l,m)),g>7&&Kr(t,e,7,u)&&(f=!0,m=Do(t,p,e,7,u,m)),g>8&&Kr(t,e,8,c)&&(f=!0,m=Do(t,p,e,8,c,m)),g>9&&Kr(t,e,9,h)&&(f=!0,m=Do(t,p,e,9,h,m)),m&&d.ngOnChanges(m),65536&e.flags&&Tr(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),f}(t,e,n,r,i,o,s,a,l,u,c,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,s,a,l,u,c,h){var p=e.bindings,d=!1,f=p.length;if(f>0&&qr(t,e,0,n)&&(d=!0),f>1&&qr(t,e,1,r)&&(d=!0),f>2&&qr(t,e,2,i)&&(d=!0),f>3&&qr(t,e,3,o)&&(d=!0),f>4&&qr(t,e,4,s)&&(d=!0),f>5&&qr(t,e,5,a)&&(d=!0),f>6&&qr(t,e,6,l)&&(d=!0),f>7&&qr(t,e,7,u)&&(d=!0),f>8&&qr(t,e,8,c)&&(d=!0),f>9&&qr(t,e,9,h)&&(d=!0),d){var m=Nr(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(p.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=i),f>3&&(g[3]=o),f>4&&(g[4]=s),f>5&&(g[5]=a),f>6&&(g[6]=l),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[p[0].name]=n),f>1&&(g[p[1].name]=r),f>2&&(g[p[2].name]=i),f>3&&(g[p[3].name]=o),f>4&&(g[p[4].name]=s),f>5&&(g[p[5].name]=a),f>6&&(g[p[6].name]=l),f>7&&(g[p[7].name]=u),f>8&&(g[p[8].name]=c),f>9&&(g[p[9].name]=h);break;case 128:var v=n;switch(f){case 1:g=v.transform(n);break;case 2:g=v.transform(r);break;case 3:g=v.transform(r,i);break;case 4:g=v.transform(r,i,o);break;case 5:g=v.transform(r,i,o,s);break;case 6:g=v.transform(r,i,o,s,a);break;case 7:g=v.transform(r,i,o,s,a,l);break;case 8:g=v.transform(r,i,o,s,a,l,u);break;case 9:g=v.transform(r,i,o,s,a,l,u,c);break;case 10:g=v.transform(r,i,o,s,a,l,u,c,h)}}m.value=g}return d}(t,e,n,r,i,o,s,a,l,u,c,h);default:throw"unreachable"}}(t,e,i,o,s,a,l,u,c,h,p,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i<n.length;i++)Ei(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)qr(t,e,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=Vo(n[o],r[o]);s=e.text.prefix+s;var a=Mr(t,e.nodeIndex).renderText;t.renderer.setValue(a,s)}return i}(t,e,n);case 16384:return function(t,e,n){for(var r=Fr(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)Kr(t,e,a,n[a])&&(o=!0,s=Do(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),65536&e.flags&&Tr(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var i=e.bindings,o=!1,s=0;s<n.length;s++)qr(t,e,s,n[s])&&(o=!0);if(o){var a=Nr(t,e.nodeIndex),l=void 0;switch(201347067&e.flags){case 32:l=n;break;case 64:for(l={},s=0;s<n.length;s++)l[i[s].name]=n[s];break;case 128:var u=n[0],c=n.slice(1);l=u.transform.apply(u,Object(r.g)(c))}a.value=l}return o}(t,e,n);default:throw"unreachable"}}(t,e,i)}function Qo(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=Pr(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,Yr(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function ts(t,e,n,r,i,o,s,a,l,u,c,h,p){return 0===n?function(t,e,n,r,i,o,s,a,l,u,c,h){var p=e.bindings.length;p>0&&$r(t,e,0,n),p>1&&$r(t,e,1,r),p>2&&$r(t,e,2,i),p>3&&$r(t,e,3,o),p>4&&$r(t,e,4,s),p>5&&$r(t,e,5,a),p>6&&$r(t,e,6,l),p>7&&$r(t,e,7,u),p>8&&$r(t,e,8,c),p>9&&$r(t,e,9,h)}(t,e,r,i,o,s,a,l,u,c,h,p):function(t,e,n){for(var r=0;r<n.length;r++)$r(t,e,r,n[r])}(t,e,r),!1}function es(t,e){if(Ir(t,e.nodeIndex).dirty)throw Lr(Rr.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function ns(t){if(!(128&t.state)){if(os(t,rs.Destroy),is(t,rs.Destroy),So(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=ti(t);if(e){var n=e.template._projectedViews;n&&(ji(n,n.indexOf(t)),Rr.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Pr(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Mr(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&Ir(t,n).destroy()}}(t),ri(t)&&t.renderer.destroy(),t.state|=128}}var rs=function(t){return t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy",t}({});function is(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?ss(Pr(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function os(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Pr(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)ss(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function ss(t,e){var n=t.state;switch(e){case rs.CheckNoChanges:0==(128&n)&&(12==(12&n)?$o(t):64&n&&as(t,rs.CheckNoChangesProjectedViews));break;case rs.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?$o(t):64&n&&as(t,e));break;case rs.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Zo(t):64&n&&as(t,rs.CheckAndUpdateProjectedViews));break;case rs.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Zo(t):64&n&&as(t,e));break;case rs.Destroy:ns(t);break;case rs.CreateViewNodes:qo(t)}}function as(t,e){os(t,e),is(t,e)}function ls(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(Rr.setCurrentNode(t,s.nodeIndex),r){case 0:To(t,s);break;case 1:es(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}var us=!1;function cs(t,e,n,r,i,o){var s=i.injector.get(ce);return Go(ps(t,i,s,e,n),r,o)}function hs(t,e,n,r,i,o){var s=i.injector.get(ce),a=ps(t,i,new Ws(s),e,n),l=Cs(r);return zs(Ms.create,Go,null,[a,l,o])}function ps(t,e,n,r,i){var o=e.injector.get(me),s=e.injector.get(en),a=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:s}}function ds(t,e,n,r){var i=Cs(n);return zs(Ms.create,Wo,null,[t,e,i,r])}function fs(t,e,n,r){return n=ys.get(e.element.componentProvider.provider.token)||Cs(n),zs(Ms.create,Xo,null,[t,e,n,r])}function ms(t,e,n,r){return to(t,e,n,function(t){var e=function(t){var e=!1,n=!1;return 0===gs.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=gs.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){vs.forEach(function(r,i){K(i).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),n=e.hasDeprecatedOverrides;return e.hasOverrides?(function(t){for(var e=0;e<t.providers.length;e++){var r=t.providers[e];n&&(r.flags|=4096);var i=gs.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=ai(i.deps),r.value=i.value)}if(vs.size>0){var o=new Set(t.modules);vs.forEach(function(e,r){if(o.has(K(r).providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:ai(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[zr(r)]=i}})}}(t=t.factory(function(){return Vr})),t):t}(r))}var gs=new Map,vs=new Map,ys=new Map;function bs(t){var e;gs.set(t.token,t),"function"==typeof t.token&&(e=K(t.token))&&"function"==typeof e.providedIn&&vs.set(t.token,t)}function xs(t,e){var n=ci(e.viewDefFactory),r=ci(n.nodes[0].element.componentView);ys.set(t,r)}function ws(){gs.clear(),vs.clear(),ys.clear()}function Cs(t){if(0===gs.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&gs.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Vr});for(var n=0;n<e.length;n++)r(t,e[n]);return t;function r(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=gs.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=ai(o.deps),i.value=o.value)}}}}function _s(t,e,n,r,i,o,s,a,l,u,c,h,p){var d=t.def.nodes[e];return Yo(t,d,n,r,i,o,s,a,l,u,c,h,p),224&d.flags?Nr(t,e).value:void 0}function Ds(t,e,n,r,i,o,s,a,l,u,c,h,p){var d=t.def.nodes[e];return ts(t,d,n,r,i,o,s,a,l,u,c,h,p),224&d.flags?Nr(t,e).value:void 0}function Ss(t){return zs(Ms.detectChanges,Zo,null,[t])}function Es(t){return zs(Ms.checkNoChanges,$o,null,[t])}function ks(t){return zs(Ms.destroy,ns,null,[t])}var As,Os,Ts,Ms=function(t){return t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent",t}({});function Ps(t,e){Os=t,Ts=e}function Fs(t,e,n,r){return Ps(t,e),zs(Ms.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Ns(t,e){if(128&t.state)throw Br(Ms[As]);return Ps(t,js(t,0)),t.def.updateDirectives(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Rs(t,s,r,i):Ls(t,s,r,i),16384&s.flags&&Ps(t,js(t,n)),224&s.flags?Nr(t,s.nodeIndex).value:void 0},t)}function Is(t,e){if(128&t.state)throw Br(Ms[As]);return Ps(t,Bs(t,0)),t.def.updateRenderer(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Rs(t,s,r,i):Ls(t,s,r,i),3&s.flags&&Ps(t,Bs(t,n)),224&s.flags?Nr(t,s.nodeIndex).value:void 0},t)}function Rs(t,e,n,i){if(Yo.apply(void 0,Object(r.g)([t,e,n],i))){var o=1===n?i[0]:i;if(16384&e.flags){for(var s={},a=0;a<e.bindings.length;a++){var l=e.bindings[a],u=o[a];8&l.flags&&(s[(d=l.nonMinifiedName,"ng-reflect-"+d.replace(/[$@]/g,"_").replace(Dt,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()}))]=St(u))}var c=e.parent,h=Pr(t,c.nodeIndex).renderElement;if(c.element.name)for(var p in s)null!=(u=s[p])?t.renderer.setAttribute(h,p,u):t.renderer.removeAttribute(h,p);else t.renderer.setValue(h,"bindings="+JSON.stringify(s,null,2))}}var d}function Ls(t,e,n,i){ts.apply(void 0,Object(r.g)([t,e,n],i))}function js(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Bs(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Vs=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ei(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Pr(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return qi(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Us(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Us(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!ri(t);)t=t.parent;return t.parent?Pr(t.parent,ei(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ni(this.view,this.nodeDef):ni(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var s=function(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),a=-1;e.factory(function(){var e;return++a===s?(e=t.error).bind.apply(e,Object(r.g)([t],i)):Vr}),a<s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,Object(r.g)(i)))},t}();function Us(t,e,n){for(var r in e.references)n[r]=Po(t,e,e.references[r])}function zs(t,e,n,r){var i=As,o=Os,s=Ts;try{As=t;var a=e.apply(n,r);return Os=o,Ts=s,As=i,a}catch(l){if(Ye(l)||!Os)throw l;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),jr(t,e),t}(l,Hs())}}function Hs(){return Os?new Vs(Os,Ts):null}var Ws=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Gs(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),Gs=function(){function t(t){this.delegate=t,this.debugContextFactory=Hs,this.data=this.delegate.data}return t.prototype.createDebugContext=function(t){return this.debugContextFactory(t)},t.prototype.destroyNode=function(t){!function(t){or.delete(t.nativeNode)}(sr(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=this.createDebugContext(n);if(r){var i=new ir(n,null,r);i.name=t,ar(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&ar(new rr(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&ar(new rr(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=sr(t),r=sr(e);n&&r&&n instanceof ir&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=sr(t),i=sr(e),o=sr(n);r&&i&&r instanceof ir&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=sr(t),r=sr(e);n&&r&&n instanceof ir&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t,e){var n=this.delegate.selectRootElement(t,e),r=Hs();return r&&ar(new ir(n,null,r)),n},t.prototype.setAttribute=function(t,e,n,r){var i=sr(t);i&&i instanceof ir&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=sr(t);r&&r instanceof ir&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=sr(t);n&&n instanceof ir&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=sr(t);n&&n instanceof ir&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=sr(t);i&&i instanceof ir&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=sr(t);r&&r instanceof ir&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=sr(t);r&&r instanceof ir&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=sr(t);r&&r.listeners.push(new nr(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();function Xs(t,e,n){return new Js(t,e,n)}var Js=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return Object(r.c)(e,t),e.prototype.create=function(t){!function(){if(!us){us=!0;var t=be()?{setCurrentNode:Ps,createRootView:hs,createEmbeddedView:ds,createComponentView:fs,createNgModuleRef:ms,overrideProvider:bs,overrideComponentView:xs,clearOverrides:ws,checkAndUpdateView:Ss,checkNoChangesView:Es,destroyView:ks,createDebugContext:function(t,e){return new Vs(t,e)},handleEvent:Fs,updateDirectives:Ns,updateRenderer:Is}:{setCurrentNode:function(){},createRootView:cs,createEmbeddedView:Wo,createComponentView:Xo,createNgModuleRef:to,overrideProvider:Vr,overrideComponentView:Vr,clearOverrides:Vr,checkAndUpdateView:Zo,checkNoChangesView:$o,destroyView:ns,createDebugContext:function(t,e){return new Vs(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?_s:Ds,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?_s:Ds,t)}};Rr.setCurrentNode=t.setCurrentNode,Rr.createRootView=t.createRootView,Rr.createEmbeddedView=t.createEmbeddedView,Rr.createComponentView=t.createComponentView,Rr.createNgModuleRef=t.createNgModuleRef,Rr.overrideProvider=t.overrideProvider,Rr.overrideComponentView=t.overrideComponentView,Rr.clearOverrides=t.clearOverrides,Rr.checkAndUpdateView=t.checkAndUpdateView,Rr.checkNoChangesView=t.checkNoChangesView,Rr.destroyView=t.destroyView,Rr.resolveDep=Co,Rr.createDebugContext=t.createDebugContext,Rr.handleEvent=t.handleEvent,Rr.updateDirectives=t.updateDirectives,Rr.updateRenderer=t.updateRenderer,Rr.dirtyParentQueries=Oo}}();var e=function(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(ci(this._ngModuleDefFactory));return Rr.createNgModuleRef(this.moduleType,t||Rt.NULL,this._bootstrapComponents,e)},e}(se),Ks=function(){return function(){}}(),qs=function(){return function(){}}(),$s=new q("Location Initialized"),Zs=function(){return function(){}}(),Ys=new q("appBaseHref"),Qs=function(){function t(t){var n=this;this._subject=new Ue,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(ta(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ta(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function ta(t){return t.replace(/\/index.html$/,"")}var ea=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(r.c)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Qs.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Qs.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Qs.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Zs),na=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,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(r.c)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Qs.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Qs.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Qs.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Qs.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Zs),ra=void 0,ia=["en",[["a","p"],["AM","PM"],ra],[["AM","PM"],ra,ra],[["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"]],ra,[["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"]],ra,[["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}",ra,"{1} 'at' {0}",ra],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],oa={},sa=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),aa=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),la=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),ua=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),ca=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function ha(t,e,n){var r=xa(t),i=ya([r[3],r[4]],e);return ya(i,n)}function pa(t,e,n){var r=xa(t),i=ya([r[5],r[6]],e);return ya(i,n)}function da(t,e){return ya(xa(t)[10],e)}function fa(t,e){return ya(xa(t)[11],e)}function ma(t,e){return ya(xa(t)[12],e)}function ga(t,e){var n=xa(t),r=n[13][e];if(void 0===r){if(e===ca.CurrencyDecimal)return n[13][ca.Decimal];if(e===ca.CurrencyGroup)return n[13][ca.Group]}return r}function va(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function ya(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function ba(t){var e=Object(r.f)(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function xa(t){var e=t.toLowerCase().replace(/_/g,"-"),n=oa[e];if(n)return n;var r=e.split("-")[0];if(n=oa[r])return n;if("en"===r)return ia;throw new Error('Missing locale data for the locale "'+t+'".')}var wa=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ca={},_a=/((?:[^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]*)/,Da=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Sa=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Ea=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function ka(t,e,n,i){var o=function(t){if(ja(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=Object(r.f)(t.split("-").map(function(t){return+t}),3);return new Date(i[0],i[1]-1,i[2])}if(e=t.match(wa))return function(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,l,u),e}(e)}var o=new Date(t);if(!ja(o))throw new Error('Unable to convert "'+t+'" into a date');return o}(t);e=function t(e,n){var r=function(t){return xa(t)[0]}(e);if(Ca[r]=Ca[r]||{},Ca[r][n])return Ca[r][n];var i="";switch(n){case"shortDate":i=da(e,ua.Short);break;case"mediumDate":i=da(e,ua.Medium);break;case"longDate":i=da(e,ua.Long);break;case"fullDate":i=da(e,ua.Full);break;case"shortTime":i=fa(e,ua.Short);break;case"mediumTime":i=fa(e,ua.Medium);break;case"longTime":i=fa(e,ua.Long);break;case"fullTime":i=fa(e,ua.Full);break;case"short":var o=t(e,"shortTime"),s=t(e,"shortDate");i=Aa(ma(e,ua.Short),[o,s]);break;case"medium":var a=t(e,"mediumTime"),l=t(e,"mediumDate");i=Aa(ma(e,ua.Medium),[a,l]);break;case"long":var u=t(e,"longTime"),c=t(e,"longDate");i=Aa(ma(e,ua.Long),[u,c]);break;case"full":var h=t(e,"fullTime"),p=t(e,"fullDate");i=Aa(ma(e,ua.Full),[h,p])}return i&&(Ca[r][n]=i),i}(n,e)||e;for(var s,a=[];e;){if(!(s=_a.exec(e))){a.push(e);break}var l=(a=a.concat(s.slice(1))).pop();if(!l)break;e=l}var u=o.getTimezoneOffset();i&&(u=La(i,u),o=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(La(e,r)-r))}(o,i));var c="";return a.forEach(function(t){var e=function(t){if(Ra[t])return Ra[t];var e;switch(t){case"G":case"GG":case"GGG":e=Ma(Ea.Eras,la.Abbreviated);break;case"GGGG":e=Ma(Ea.Eras,la.Wide);break;case"GGGGG":e=Ma(Ea.Eras,la.Narrow);break;case"y":e=Ta(Sa.FullYear,1,0,!1,!0);break;case"yy":e=Ta(Sa.FullYear,2,0,!0,!0);break;case"yyy":e=Ta(Sa.FullYear,3,0,!1,!0);break;case"yyyy":e=Ta(Sa.FullYear,4,0,!1,!0);break;case"M":case"L":e=Ta(Sa.Month,1,1);break;case"MM":case"LL":e=Ta(Sa.Month,2,1);break;case"MMM":e=Ma(Ea.Months,la.Abbreviated);break;case"MMMM":e=Ma(Ea.Months,la.Wide);break;case"MMMMM":e=Ma(Ea.Months,la.Narrow);break;case"LLL":e=Ma(Ea.Months,la.Abbreviated,aa.Standalone);break;case"LLLL":e=Ma(Ea.Months,la.Wide,aa.Standalone);break;case"LLLLL":e=Ma(Ea.Months,la.Narrow,aa.Standalone);break;case"w":e=Ia(1);break;case"ww":e=Ia(2);break;case"W":e=Ia(1,!0);break;case"d":e=Ta(Sa.Date,1);break;case"dd":e=Ta(Sa.Date,2);break;case"E":case"EE":case"EEE":e=Ma(Ea.Days,la.Abbreviated);break;case"EEEE":e=Ma(Ea.Days,la.Wide);break;case"EEEEE":e=Ma(Ea.Days,la.Narrow);break;case"EEEEEE":e=Ma(Ea.Days,la.Short);break;case"a":case"aa":case"aaa":e=Ma(Ea.DayPeriods,la.Abbreviated);break;case"aaaa":e=Ma(Ea.DayPeriods,la.Wide);break;case"aaaaa":e=Ma(Ea.DayPeriods,la.Narrow);break;case"b":case"bb":case"bbb":e=Ma(Ea.DayPeriods,la.Abbreviated,aa.Standalone,!0);break;case"bbbb":e=Ma(Ea.DayPeriods,la.Wide,aa.Standalone,!0);break;case"bbbbb":e=Ma(Ea.DayPeriods,la.Narrow,aa.Standalone,!0);break;case"B":case"BB":case"BBB":e=Ma(Ea.DayPeriods,la.Abbreviated,aa.Format,!0);break;case"BBBB":e=Ma(Ea.DayPeriods,la.Wide,aa.Format,!0);break;case"BBBBB":e=Ma(Ea.DayPeriods,la.Narrow,aa.Format,!0);break;case"h":e=Ta(Sa.Hours,1,-12);break;case"hh":e=Ta(Sa.Hours,2,-12);break;case"H":e=Ta(Sa.Hours,1);break;case"HH":e=Ta(Sa.Hours,2);break;case"m":e=Ta(Sa.Minutes,1);break;case"mm":e=Ta(Sa.Minutes,2);break;case"s":e=Ta(Sa.Seconds,1);break;case"ss":e=Ta(Sa.Seconds,2);break;case"S":e=Ta(Sa.FractionalSeconds,1);break;case"SS":e=Ta(Sa.FractionalSeconds,2);break;case"SSS":e=Ta(Sa.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Pa(Da.Short);break;case"ZZZZZ":e=Pa(Da.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Pa(Da.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Pa(Da.Long);break;default:return null}return Ra[t]=e,e}(t);c+=e?e(o,n,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Aa(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Oa(t,e,n,r,i){void 0===n&&(n="-");var o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var s=String(t);s.length<e;)s="0"+s;return r&&(s=s.substr(s.length-e)),o+s}function Ta(t,e,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=!1),function(o,s){var a,l=function(t,e){switch(t){case Sa.FullYear:return e.getFullYear();case Sa.Month:return e.getMonth();case Sa.Date:return e.getDate();case Sa.Hours:return e.getHours();case Sa.Minutes:return e.getMinutes();case Sa.Seconds:return e.getSeconds();case Sa.FractionalSeconds:return e.getMilliseconds();case Sa.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,o);if((n>0||l>-n)&&(l+=n),t===Sa.Hours)0===l&&-12===n&&(l=12);else if(t===Sa.FractionalSeconds)return a=e,Oa(l,3).substr(0,a);var u=ga(s,ca.MinusSign);return Oa(l,e,u,r,i)}}function Ma(t,e,n,r){return void 0===n&&(n=aa.Format),void 0===r&&(r=!1),function(i,o){return function(t,e,n,r,i,o){switch(n){case Ea.Months:return pa(e,i,r)[t.getMonth()];case Ea.Days:return ha(e,i,r)[t.getDay()];case Ea.DayPeriods:var s=t.getHours(),a=t.getMinutes();if(o){var l,u=function(t){var e=xa(t);return va(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?ba(t):[ba(t[0]),ba(t[1])]})}(e),c=function(t,e,n){var r=xa(t);va(r);var i=ya([r[19][0],r[19][1]],e)||[];return ya(i,n)||[]}(e,i,r);if(u.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],i=r.hours;s>=n.hours&&a>=n.minutes&&(s<i||s===i&&a<r.minutes)&&(l=c[e])}else t.hours===s&&t.minutes===a&&(l=c[e])}),l)return l}return function(t,e,n){var r=xa(t),i=ya([r[1],r[2]],e);return ya(i,n)}(e,i,r)[s<12?0:1];case Ea.Eras:return function(t,e){return ya(xa(t)[7],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(i,o,t,e,n,r)}}function Pa(t){return function(e,n,r){var i=-1*r,o=ga(n,ca.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Da.Short:return(i>=0?"+":"")+Oa(s,2,o)+Oa(Math.abs(i%60),2,o);case Da.ShortGMT:return"GMT"+(i>=0?"+":"")+Oa(s,1,o);case Da.Long:return"GMT"+(i>=0?"+":"")+Oa(s,2,o)+":"+Oa(Math.abs(i%60),2,o);case Da.Extended:return 0===r?"Z":(i>=0?"+":"")+Oa(s,2,o)+":"+Oa(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}var Fa=0,Na=4;function Ia(t,e){return void 0===e&&(e=!1),function(n,r){var i,o,s,a;if(e){var l=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,u=n.getDate();i=1+Math.floor((u+l)/7)}else{var c=(s=n.getFullYear(),a=new Date(s,Fa,1).getDay(),new Date(s,0,1+(a<=Na?Na:Na+7)-a)),h=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(Na-o.getDay()))).getTime()-c.getTime();i=1+Math.round(h/6048e5)}return Oa(i,t,ga(r,ca.MinusSign))}}var Ra={};function La(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function ja(t){return t instanceof Date&&!isNaN(t.valueOf())}var Ba=new q("UseV4Plurals"),Va=function(){return function(){}}(),Ua=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(r.c)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return xa(t)[18]}(e||this.locale)(t)){case sa.Zero:return"zero";case sa.One:return"one";case sa.Two:return"two";case sa.Few:return"few";case sa.Many:return"many";default:return"other"}},e}(Va);function za(t,e){var n,i;e=encodeURIComponent(e);try{for(var o=Object(r.h)(t.split(";")),s=o.next();!s.done;s=o.next()){var a=s.value,l=a.indexOf("="),u=Object(r.f)(-1==l?[a,""]:[a.slice(0,l),a.slice(l+1)],2),c=u[1];if(u[0].trim()===e)return decodeURIComponent(c)}}catch(h){n={error:h}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}var Ha=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Wa=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){be()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Ha(null,e._ngForOf,-1,-1),i),s=new Ga(t,o);n.push(s)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),s=new Ga(t,o),n.push(s))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.context.ngForOf=this._ngForOf}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.ngTemplateContextGuard=function(t,e){return!0},t}(),Ga=function(){return function(t,e){this.record=t,this.view=e}}(),Xa=function(){function t(t,e){this._viewContainer=t,this._context=new Ja,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){Ka("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){Ka("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t.ngTemplateGuard_ngIf=function(t,e){return!0},t}(),Ja=function(){return function(){this.$implicit=null,this.ngIf=null}}();function Ka(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+ct(e)+"'.")}var qa=function(){function t(t){this._viewContainerRef=t}return t.prototype.ngOnChanges=function(t){this._shouldRecreateView(t)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},t.prototype._shouldRecreateView=function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)},t.prototype._hasContextShapeChanged=function(t){var e,n,i=Object.keys(t.previousValue||{}),o=Object.keys(t.currentValue||{});if(i.length===o.length){try{for(var s=Object(r.h)(o),a=s.next();!a.done;a=s.next())if(-1===i.indexOf(a.value))return!0}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return!1}return!0},t.prototype._updateExistingContext=function(t){var e,n;try{for(var i=Object(r.h)(Object.keys(t)),o=i.next();!o.done;o=i.next()){var s=o.value;this._viewRef.context[s]=this.ngTemplateOutletContext[s]}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t}(),$a=function(){function t(t){this.locale=t}var e;return e=t,t.prototype.transform=function(t,n,r,i){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;try{return ka(t,n,i||this.locale,r)}catch(o){throw Error("InvalidPipeArgument: '"+o.message+"' for pipe '"+ct(e)+"'")}},t}(),Za=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}(),Ya=function(){return function(){}}(),Qa=new q("DocumentToken"),tl="server",el=function(){function t(){}return t.ngInjectableDef=J({providedIn:"root",factory:function(){return new nl(_t(Qa),window)}}),t}(),nl=function(){function t(t,e){this.document=t,this.window=e,this.offset=function(){return[0,0]}}return t.prototype.setOffset=function(t){this.offset=Array.isArray(t)?function(){return t}:t},t.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},t.prototype.scrollToPosition=function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])},t.prototype.scrollToAnchor=function(t){if(this.supportScrollRestoration()){var e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='"+t+"']");if(n)return void this.scrollToElement(n)}},t.prototype.setHistoryScrollRestoration=function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}},t.prototype.scrollToElement=function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])},t.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}},t}(),rl=new s.a(function(t){return t.complete()});function il(t){return t?function(t){return new s.a(function(e){return t.schedule(function(){return e.complete()})})}(t):rl}function ol(t){var e=new s.a(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function sl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(a(n)?t.pop():n=void 0,t.length){case 0:return il(n);case 1:return n?k(t,n):ol(t[0]);default:return k(t,n)}}var al=n("8g8A"),ll=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.c(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new al.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.a);function ul(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}ul.prototype=Object.create(Error.prototype);var cl=ul,hl=n("isby"),pl={};function dl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return a(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(hl.a)(t[0])&&(t=t[0]),k(t,r).lift(new fl(n))}var fl=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new ml(t,this.resultSelector))},t}(),ml=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.c(e,t),e.prototype._next=function(t){this.values.push(pl),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(C(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=this.toRespond?o[n]===pl?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(_);function gl(t){return new s.a(function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?A(n):il()).subscribe(e)})}function vl(){return F(1)}function yl(t,e){return function(n){return n.lift(new bl(t,e))}}var bl=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new xl(t,this.predicate,this.thisArg))},t}(),xl=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.c(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(l.a);function wl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}wl.prototype=Object.create(Error.prototype);var Cl=wl;function _l(t){return function(e){return 0===t?il():e.lift(new Dl(t))}}var Dl=function(){function t(t){if(this.total=t,this.total<0)throw new Cl}return t.prototype.call=function(t,e){return e.subscribe(new Sl(t,this.total))},t}(),Sl=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.c(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(l.a),El=n("+umK"),kl=n("2Bdj");function Al(t,e,n){return function(r){return r.lift(new Ol(t,e,n))}}var Ol=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Tl(t,this.nextOrObserver,this.error,this.complete))},t}(),Tl=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=El.a,o._tapError=El.a,o._tapComplete=El.a,o._tapError=r||El.a,o._tapComplete=i||El.a,Object(kl.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||El.a,o._tapError=n.error||El.a,o._tapComplete=n.complete||El.a),o}return r.c(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(l.a),Ml=function(t){return void 0===t&&(t=Pl),Al({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Pl(){return new cl}function Fl(t){return void 0===t&&(t=null),function(e){return e.lift(new Nl(t))}}var Nl=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Il(t,this.defaultValue))},t}(),Il=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.c(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(l.a);function Rl(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?yl(function(e,n){return t(e,n,r)}):P,_l(1),n?Fl(e):Ml(function(){return new cl}))}}function Ll(t){return function(e){var n=new jl(t),r=e.lift(n);return n.caught=r}}var jl=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Bl(t,this.selector,this.caught))},t}(),Bl=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.c(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(i){return void t.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new u(this,void 0,void 0);this.add(r),C(this,n,void 0,void 0,r)}},e}(_);function Vl(t){return function(e){return 0===t?il():e.lift(new Ul(t))}}var Ul=function(){function t(t){if(this.total=t,this.total<0)throw new Cl}return t.prototype.call=function(t,e){return e.subscribe(new zl(t,this.total))},t}(),zl=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.c(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(l.a);function Hl(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?yl(function(e,n){return t(e,n,r)}):P,Vl(1),n?Fl(e):Ml(function(){return new cl}))}}var Wl=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new Gl(t,this.predicate,this.thisArg,this.source))},t}(),Gl=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.c(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(l.a);function Xl(t,e){return"function"==typeof e?function(n){return n.pipe(Xl(function(n,r){return A(t(n,r)).pipe(D(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new Jl(t))}}var Jl=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Kl(t,this.project))},t}(),Kl=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.c(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new u(this,void 0,void 0);this.destination.add(i),this.innerSubscription=C(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(_);function ql(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new $l(t,e,n))}}var $l=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Zl(t,this.accumulator,this.seed,this.hasSeed))},t}(),Zl=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.c(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(l.a);function Yl(t,e){return O(t,e,1)}var Ql=n("y3By"),tu=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new eu(t,this.callback))},t}(),eu=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new i.a(n)),r}return r.c(e,t),e}(l.a),nu=null;function ru(){return nu}var iu,ou={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},su={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},au={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};it.Node&&(iu=it.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var lu,uu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,nu||(nu=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var i;(i=t)[e].apply(i,Object(r.g)(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return ou},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return iu.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n.item(r);e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.getAttribute("href")},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&au.hasOwnProperty(e)&&(e=au[e]))}return su[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=cu||(cu=document.querySelector("base"))?cu.getAttribute("href"):null;return null==n?null:(e=n,lu||(lu=document.createElement("a")),lu.setAttribute("href",e),"/"===lu.pathname.charAt(0)?lu.pathname:"/"+lu.pathname)},e.prototype.resetBaseElement=function(){cu=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return za(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(s){e._animationPrefix=null,e._transitionEnd=null}return e}return Object(r.c)(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}())),cu=null,hu=Qa;function pu(){return!!window.history.pushState}var du=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return Object(r.c)(e,t),e.prototype._init=function(){this.location=ru().getLocation(),this._history=ru().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return ru().getBaseHref(this._doc)},e.prototype.onPopState=function(t){ru().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){ru().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){pu()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){pu()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},Object(r.b)([Object(r.e)(0,gt(hu)),Object(r.d)("design:paramtypes",[Object])],e)}(qs),fu=new q("TRANSITION_ID"),mu=[{provide:on,useFactory:function(t,e,n){return function(){n.get(sn).donePromise.then(function(){var n=ru();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}},deps:[fu,hu,Rt],multi:!0}],gu=function(){function t(){}return t.init=function(){var e;e=new t,jn=e},t.prototype.addToWindow=function(t){it.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},it.getAllAngularTestabilities=function(){return t.getAllTestabilities()},it.getAllAngularRootElements=function(){return t.getAllRootElements()},it.frameworkStabilizers||(it.frameworkStabilizers=[]),it.frameworkStabilizers.push(function(t){var e=it.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?ru().isShadowRoot(e)?this.findTestabilityInTree(t,ru().getHost(e),!0):this.findTestabilityInTree(t,ru().parentElement(e),!0):null},t}();function vu(t,e){"undefined"!=typeof COMPILED&&COMPILED||((it.ng=it.ng||{})[t]=e)}var yu={ApplicationRef:Gn,NgZone:An};function bu(t){return sr(t)}var xu=new q("EventManagerPlugins"),wu=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}(),Cu=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=ru().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),_u=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}(),Du=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return Object(r.c)(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return ru().remove(t)})},e}(_u),Su={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Eu=/%COMP%/g,ku="_nghost-%COMP%",Au="_ngcontent-%COMP%";function Ou(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?Ou(t,i,n):(i=i.replace(Eu,t),n.push(i))}return n}function Tu(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var Mu=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new Pu(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case mt.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new Ru(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case mt.Native:case mt.ShadowDom:return new Lu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=Ou(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}(),Pu=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(Su[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=Su[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=Su[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&he.DashCase?t.style.setProperty(e,n,r&he.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&he.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){Nu(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return Nu(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Tu(n)):this.eventManager.addEventListener(t,e,Tu(n))},t}(),Fu="@".charCodeAt(0);function Nu(t,e){if(t.charCodeAt(0)===Fu)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var Iu,Ru=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=Ou(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=Au.replace(Eu,r.id),i.hostAttr=ku.replace(Eu,r.id),i}return Object(r.c)(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(Pu),Lu=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=i.encapsulation===mt.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=Ou(i.id,i.styles,[]),a=0;a<s.length;a++){var l=document.createElement("style");l.textContent=s[a],o.shadowRoot.appendChild(l)}return o}return Object(r.c)(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(Pu),ju="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},Bu=ju("addEventListener"),Vu=ju("removeEventListener"),Uu={},zu="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[ju("BLACK_LISTED_EVENTS")]&&(Iu={});var Hu=function(t){return!!Iu&&Iu.hasOwnProperty(t)},Wu=function(t){var e=Uu[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==t[zu];o++){var s;(s=i[o]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},Gu=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.ngZone=n,r&&function(t){return t===tl}(r)||i.patchEvent(),i}return Object(r.c)(e,t),e.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[zu]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=n;if(!t[Bu]||An.isInAngularZone()&&!Hu(e))t.addEventListener(e,i,!1);else{var o=Uu[e];o||(o=Uu[e]=ju("ANGULAR"+e+"FALSE"));var s=t[o],a=s&&s.length>0;s||(s=t[o]=[]);var l=Hu(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:l,handler:i});else{for(var u=!1,c=0;c<s.length;c++)if(s[c].handler===i){u=!0;break}u||s.push({zone:l,handler:i})}a||t[Bu](e,Wu,!1)}return function(){return r.removeEventListener(t,e,i)}},e.prototype.removeEventListener=function(t,e,n){var r=t[Vu];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);var i=Uu[e],o=i&&t[i];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);for(var s=!1,a=0;a<o.length;a++)if(o[a].handler===n){s=!0,o.splice(a,1);break}s?0===o.length&&r.apply(t,[e,Wu,!1]):t.removeEventListener.apply(t,[e,n,!1])},e}(Cu),Xu={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Ju=new q("HammerGestureConfig"),Ku=new q("HammerLoader"),qu=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t}(),$u=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._config=n,o.console=r,o.loader=i,o}return Object(r.c)(e,t),e.prototype.supports=function(t){return!(!Xu.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var o=!1,s=function(){o=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=function(){});o||(s=r.addEventListener(t,e,n))}).catch(function(){r.console.warn('The "'+e+'" event cannot be bound because the custom Hammer.JS loader failed.'),s=function(){}}),function(){s()}}return i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){o.off(e,s),"function"==typeof o.destroy&&o.destroy()}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(Cu),Zu=["alt","control","meta","shift"],Yu={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Qu=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.c)(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ru().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(Zu.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=ru().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Zu.forEach(function(r){r!=n&&(0,Yu[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Cu),tc=function(){return function(){}}(),ec=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.c)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case fe.NONE:return e;case fe.HTML:return e instanceof rc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Ee=Ee||new xe(t);var r=e?String(e):"";n=Ee.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=Ee.getInertBodyElement(r)}while(r!==o);var s=new Re,a=s.sanitizeChildren(Ve(n)||n);return be()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var l=Ve(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case fe.STYLE:return e instanceof ic?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Ge);return e&&_e(e[1])===e[1]||t.match(We)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(be()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case fe.SCRIPT:if(e instanceof oc)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case fe.URL:return e instanceof ac||e instanceof sc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_e(String(e)));case fe.RESOURCE_URL:if(e instanceof ac)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof nc)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new rc(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ic(t)},e.prototype.bypassSecurityTrustScript=function(t){return new oc(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new sc(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ac(t)},e}(tc),nc=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),rc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(nc),ic=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(nc),oc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(nc),sc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(nc),ac=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(nc),lc=Un(_r,"browser",[{provide:hn,useValue:"browser"},{provide:cn,useValue:function(){uu.makeCurrent(),gu.init()},multi:!0},{provide:qs,useClass:du,deps:[hu]},{provide:hu,useFactory:function(){return document},deps:[]}]);function uc(){return new en}var cc=function(){function t(t){if(t)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 e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:an,useValue:t.appId},{provide:fu,useExisting:an},mu]}},t}();"undefined"!=typeof window&&window;var hc=function(){return function(t,e){this.id=t,this.url=e}}(),pc=function(t){function e(e,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return Object(r.c)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(hc),dc=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return Object(r.c)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(hc),fc=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return Object(r.c)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(hc),mc=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return Object(r.c)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(hc),gc=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(r.c)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(hc),vc=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(r.c)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(hc),yc=function(t){function e(e,n,r,i,o){var s=t.call(this,e,n)||this;return s.urlAfterRedirects=r,s.state=i,s.shouldActivate=o,s}return Object(r.c)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(hc),bc=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(r.c)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(hc),xc=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(r.c)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(hc),wc=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Cc=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),_c=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Dc=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Sc=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Ec=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),kc=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),Ac=function(){return function(){}}(),Oc="primary",Tc=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function Mc(t){return new Tc(t)}var Pc="ngNavigationCancelingError";function Fc(t){var e=Error("NavigationCancelingError: "+t);return e[Pc]=!0,e}function Nc(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}var Ic=function(){return function(t,e){this.routes=t,this.module=e}}();function Rc(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];Lc(r,jc(e,r))}}function Lc(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==Oc)throw new Error("Invalid configuration of route '"+e+"': a componentless route without children or loadChildren cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&Rc(t.children,e)}function jc(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function Bc(t){var e=t.children&&t.children.map(Bc),n=e?Object(r.a)({},t,{children:e}):Object(r.a)({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Oc&&(n.component=Ac),n}function Vc(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(t[n=r[o]]!==e[n])return!1;return!0}function Uc(t){return Array.prototype.concat.apply([],t)}function zc(t){return t.length>0?t[t.length-1]:null}function Hc(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Wc(t){return rn(t)?t:nn(t)?A(Promise.resolve(t)):sl(t)}function Gc(t,e,n){return n?function(t,e){return Vc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!qc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!qc(s=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!qc(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var s=i.slice(0,n.segments.length),a=i.slice(n.segments.length);return!!qc(n.segments,s)&&!!n.children[Oc]&&e(n.children[Oc],r,a)}(e,n,n.segments)}(t.root,e.root)}var Xc=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Mc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Qc.serialize(this)},t}(),Jc=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Hc(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return th(this)},t}(),Kc=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Mc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return sh(this)},t}();function qc(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function $c(t,e){var n=[];return Hc(t.children,function(t,r){r===Oc&&(n=n.concat(e(t,r)))}),Hc(t.children,function(t,r){r!==Oc&&(n=n.concat(e(t,r)))}),n}var Zc=function(){return function(){}}(),Yc=function(){function t(){}return t.prototype.parse=function(t){var e=new hh(t);return new Xc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return th(e);if(n){var r=e.children[Oc]?t(e.children[Oc],!1):"",i=[];return Hc(e.children,function(e,n){n!==Oc&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=$c(e,function(n,r){return r===Oc?[t(e.children[Oc],!1)]:[r+":"+t(n,!1)]});return th(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return nh(t)+"="+nh(e)}).join("&"):nh(t)+"="+nh(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Qc=new Yc;function th(t){return t.segments.map(function(t){return sh(t)}).join("/")}function eh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nh(t){return eh(t).replace(/%3B/gi,";")}function rh(t){return eh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ih(t){return decodeURIComponent(t)}function oh(t){return ih(t.replace(/\+/g,"%20"))}function sh(t){return""+rh(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+rh(t)+"="+rh(e[t])}).join(""));var e}var ah=/^[^\/()?;=#]+/;function lh(t){var e=t.match(ah);return e?e[0]:""}var uh=/^[^=?&#]+/,ch=/^[^?&#]+/,hh=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Jc([],{}):new Jc([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Oc]=new Jc(t,e)),n},t.prototype.parseSegment=function(){var t=lh(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Kc(ih(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=lh(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=lh(this.remaining);r&&this.capture(n=r)}t[ih(e)]=ih(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(uh))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(ch);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=oh(n),s=oh(r);if(t.hasOwnProperty(o)){var a=t[o];Array.isArray(a)||(t[o]=a=[a]),a.push(s)}else t[o]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=lh(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Oc);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Oc]:new Jc([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),ph=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=dh(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=dh(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=fh(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return fh(t,this._root).map(function(t){return t.value})},t}();function dh(t,e){var n,i;if(t===e.value)return e;try{for(var o=Object(r.h)(e.children),s=o.next();!s.done;s=o.next()){var a=dh(t,s.value);if(a)return a}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}function fh(t,e){var n,i;if(t===e.value)return[e];try{for(var o=Object(r.h)(e.children),s=o.next();!s.done;s=o.next()){var a=fh(t,s.value);if(a.length)return a.unshift(e),a}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return[]}var mh=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function gh(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var vh=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,_h(r,e),r}return Object(r.c)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(ph);function yh(t,e){var n=function(t,e){var n=new wh([],{},{},"",{},Oc,e,null,t.root,-1,{});return new Ch("",new mh(n,[]))}(t,e),r=new ll([new Kc("",{})]),i=new ll({}),o=new ll({}),s=new ll({}),a=new ll(""),l=new bh(r,i,s,a,o,Oc,e,n.root);return l.snapshot=n.root,new vh(new mh(l,[]),n)}var bh=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(D(function(t){return Mc(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(D(function(t){return Mc(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function xh(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var o=n[i],s=n[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(s.component)break;i--}}return function(t){return t.reduce(function(t,e){return{params:Object(r.a)({},t.params,e.params),data:Object(r.a)({},t.data,e.data),resolve:Object(r.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var wh=function(){function t(t,e,n,r,i,o,s,a,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Mc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Mc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Ch=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,_h(r,n),r}return Object(r.c)(e,t),e.prototype.toString=function(){return Dh(this._root)},e}(ph);function _h(t,e){e.value._routerState=t,e.children.forEach(function(e){return _h(t,e)})}function Dh(t){var e=t.children.length>0?" { "+t.children.map(Dh).join(", ")+" } ":"";return""+t.value+e}function Sh(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Vc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Vc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!Vc(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Vc(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Eh(t,e){var n,r;return Vc(t.params,e.params)&&qc(n=t.url,r=e.url)&&n.every(function(t,e){return Vc(t.parameters,r[e].parameters)})&&!(!t.parent!=!e.parent)&&(!t.parent||Eh(t.parent,e.parent))}function kh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ah(t,e,n,r,i){var o={};return r&&Hc(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),new Xc(n.root===t?e:function t(e,n,r){var i={};return Hc(e.children,function(e,o){i[o]=e===n?r:t(e,n,r)}),new Jc(e.segments,i)}(n.root,t,e),o,i)}var Oh=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&kh(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==zc(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Th=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Mh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Oc]:""+t}function Ph(t,e,n){if(t||(t=new Jc([],{})),0===t.segments.length&&t.hasChildren())return Fh(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=Mh(n[r]),l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Lh(a,l,s))return o;r+=2}else{if(!Lh(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new Jc(t.segments.slice(0,r.pathIndex),{});return o.children[Oc]=new Jc(t.segments.slice(r.pathIndex),t.children),Fh(o,0,i)}return r.match&&0===i.length?new Jc(t.segments,{}):r.match&&!t.hasChildren()?Nh(t,e,n):r.match?Fh(t,0,i):Nh(t,e,n)}function Fh(t,e,n){if(0===n.length)return new Jc(t.segments,{});var r=function(t){var e,n;return"object"!=typeof t[0]?((e={})[Oc]=t,e):void 0===t[0].outlets?((n={})[Oc]=t,n):t[0].outlets}(n),i={};return Hc(r,function(n,r){null!==n&&(i[r]=Ph(t.children[r],e,n))}),Hc(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new Jc(t.segments,i)}function Nh(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=Ih(n[i].outlets);return new Jc(r,o)}if(0===i&&kh(n[0]))r.push(new Kc(t.segments[e].path,n[0])),i++;else{var s=Mh(n[i]),a=i<n.length-1?n[i+1]:null;s&&a&&kh(a)?(r.push(new Kc(s,Rh(a))),i+=2):(r.push(new Kc(s,{})),i++)}}return new Jc(r,{})}function Ih(t){var e={};return Hc(t,function(t,n){null!==t&&(e[n]=Nh(new Jc([],{}),0,t))}),e}function Rh(t){var e={};return Hc(t,function(t,n){return e[n]=""+t}),e}function Lh(t,e,n){return t==n.path&&Vc(e,n.parameters)}var jh=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Sh(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=gh(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),Hc(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=gh(t),o=t.value.component?r.children:e;Hc(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=gh(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new Ec(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Dc(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(Sh(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component)if(o=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),Bh(s.route)}else{var a=function(t){for(var e=r.snapshot.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,n)},t}();function Bh(t){Sh(t.value),t.children.forEach(Bh)}function Vh(t){return"function"==typeof t}function Uh(t){return t instanceof Xc}var zh=function(){return function(t){this.segmentGroup=t||null}}(),Hh=function(){return function(t){this.urlTree=t}}();function Wh(t){return new s.a(function(e){return e.error(new zh(t))})}function Gh(t){return new s.a(function(e){return e.error(new Hh(t))})}function Xh(t){return new s.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var Jh=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(oe)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Oc).pipe(D(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Ll(function(e){if(e instanceof Hh)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof zh)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Oc).pipe(D(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Ll(function(t){if(t instanceof zh)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,i=t.segments.length>0?new Jc([],((r={})[Oc]=t,r)):t;return new Xc(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(D(function(t){return new Jc([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return sl({});var o=[],s=[],a={};return Hc(n,function(n,i){var l,u,c=(l=i,u=n,r.expandSegmentGroup(t,e,u,l)).pipe(D(function(t){return a[i]=t}));i===Oc?o.push(c):s.push(c)}),sl.apply(null,o.concat(s)).pipe(vl(),Rl(),D(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,o,s){var a=this;return sl.apply(void 0,Object(r.g)(n)).pipe(D(function(r){return a.expandSegmentAgainstRoute(t,e,n,r,i,o,s).pipe(Ll(function(t){if(t instanceof zh)return sl(null);throw t}))}),vl(),Hl(function(t){return!!t}),Ll(function(t,n){if(t instanceof cl||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,i,o))return sl(new Jc([],{}));throw new zh(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return Zh(r)!==o?Wh(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Wh(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Gh(o):this.lineralizeSegments(n,o).pipe(O(function(n){var o=new Jc(n,{});return i.expandSegment(t,o,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=Kh(e,r,i),l=a.consumedSegments,u=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Wh(e);var h=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?Gh(h):this.lineralizeSegments(r,h).pipe(O(function(r){return s.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(D(function(t){return n._loadedConfig=t,new Jc(i,{})})):sl(new Jc(i,{}));var s=Kh(e,n,i),a=s.consumedSegments,l=s.lastChild;if(!s.matched)return Wh(e);var u=i.slice(l);return this.getChildConfig(t,n,i).pipe(O(function(t){var n=t.module,i=t.routes,s=function(t,e,n,i){return n.length>0&&function(t,e,n){return i.some(function(n){return $h(t,e,n)&&Zh(n)!==Oc})}(t,n)?{segmentGroup:qh(new Jc(e,function(t,e){var n,i,o={};o[Oc]=e;try{for(var s=Object(r.h)(t),a=s.next();!a.done;a=s.next()){var l=a.value;""===l.path&&Zh(l)!==Oc&&(o[Zh(l)]=new Jc([],{}))}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o}(i,new Jc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return i.some(function(n){return $h(t,e,n)})}(t,n)?{segmentGroup:qh(new Jc(t.segments,function(t,e,n,i){var o,s,a={};try{for(var l=Object(r.h)(n),u=l.next();!u.done;u=l.next()){var c=u.value;$h(t,e,c)&&!i[Zh(c)]&&(a[Zh(c)]=new Jc([],{}))}}catch(h){o={error:h}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return Object(r.a)({},i,a)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,u,i),l=s.segmentGroup,c=s.slicedSegments;return 0===c.length&&l.hasChildren()?o.expandChildren(n,i,l).pipe(D(function(t){return new Jc(a,t)})):0===i.length&&0===c.length?sl(new Jc(a,{})):o.expandSegment(n,l,i,c,Oc,!0).pipe(D(function(t){return new Jc(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?sl(new Ic(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?sl(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?A(i).pipe(D(function(r){var i,o=t.get(r);if(function(t){return t&&Vh(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Vh(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return Wc(i)})).pipe(vl(),(r=function(t){return!0===t},function(t){return t.lift(new Wl(r,void 0,t))})):sl(!0)}(t.injector,e,n).pipe(O(function(n){return n?r.configLoader.load(t.injector,e).pipe(D(function(t){return e._loadedConfig=t,t})):function(t){return new s.a(function(e){return e.error(Fc("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):sl(new Ic([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return sl(n);if(r.numberOfChildren>1||!r.children[Oc])return Xh(t.redirectTo);r=r.children[Oc]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Xc(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Hc(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return Hc(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new Jc(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,i,o=0;try{for(var s=Object(r.h)(e),a=s.next();!a.done;a=s.next()){var l=a.value;if(l.path===t.path)return e.splice(o),l;o++}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return t},t}();function Kh(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Nc)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function qh(t){if(1===t.numberOfChildren&&t.children[Oc]){var e=t.children[Oc];return new Jc(t.segments.concat(e.segments),e.children)}return t}function $h(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Zh(t){return t.outlet||Oc}var Yh=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Qh=function(){return function(t,e){this.component=t,this.route=e}}();function tp(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function ep(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=gh(e);return t.children.forEach(function(t){!function(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!qc(t.url,e.url);case"pathParamsOrQueryParamsChange":return!qc(t.url,e.url)||!Vc(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Eh(t,e)||!Vc(t.queryParams,e.queryParams);case"paramsChange":default:return!Eh(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Yh(r)):(o.data=s.data,o._resolvedData=s._resolvedData),ep(t,e,o.component?a?a.children:null:n,r,i),l&&i.canDeactivateChecks.push(new Qh(a&&a.outlet&&a.outlet.component||null,s))}else s&&np(e,a,i),i.canActivateChecks.push(new Yh(r)),ep(t,null,o.component?a?a.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),Hc(o,function(t,e){return np(t,n.getContext(e),i)}),i}function np(t,e,n){var r=gh(t),i=t.value;Hc(r,function(t,r){np(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Qh(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var rp=Symbol("INITIAL_VALUE");function ip(){return Xl(function(t){return dl.apply(void 0,Object(r.g)(t.map(function(t){return t.pipe(Vl(1),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];a(n)?t.pop():n=null;var r=t.length;return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return vl()(sl.apply(void 0,t))}(1!==r||n?r>0?k(t,n):il(n):ol(t[0]),e)}}(rp))}))).pipe(ql(function(t,e){var n=!1;return e.reduce(function(t,r,i){if(t!==rp)return t;if(r===rp&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||Uh(r))return r}return t},t)},rp),yl(function(t){return t!==rp}),D(function(t){return Uh(t)?t:!0===t}),Vl(1))})}function op(t,e){return null!==t&&e&&e(new Sc(t)),sl(!0)}function sp(t,e){return null!==t&&e&&e(new _c(t)),sl(!0)}function ap(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?sl(r.map(function(r){return gl(function(){var i,o=tp(r,e,n);if(function(t){return t&&Vh(t.canActivate)}(o))i=Wc(o.canActivate(e,t));else{if(!Vh(o))throw new Error("Invalid CanActivate guard");i=Wc(o(e,t))}return i.pipe(Hl())})})).pipe(ip()):sl(!0)}function lp(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return gl(function(){return sl(e.guards.map(function(i){var o,s=tp(i,e.node,n);if(function(t){return t&&Vh(t.canActivateChild)}(s))o=Wc(s.canActivateChild(r,t));else{if(!Vh(s))throw new Error("Invalid CanActivateChild guard");o=Wc(s(r,t))}return o.pipe(Hl())})).pipe(ip())})});return sl(i).pipe(ip())}var up=function(){return function(){}}(),cp=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=dp(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Oc),n=new wh([],Object.freeze({}),Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},Oc,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new mh(n,e),o=new Ch(this.url,i);return this.inheritParamsAndData(o._root),sl(o)}catch(a){return new s.a(function(t){return t.error(a)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=xh(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=$c(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===Oc?-1:e.value.outlet===Oc?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,i){var o,s;try{for(var a=Object(r.h)(t),l=a.next();!l.done;l=a.next()){var u=l.value;try{return this.processSegmentAgainstRoute(u,e,n,i)}catch(c){if(!(c instanceof up))throw c}}}catch(h){o={error:h}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new up},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new up;if((t.outlet||Oc)!==i)throw new up;var o,s=[],a=[];if("**"===t.path){var l=n.length>0?zc(n).parameters:{};o=new wh(n,l,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,gp(t),i,t.component,t,hp(e),pp(e)+n.length,vp(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new up;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||Nc)(n,t,e);if(!i)throw new up;var o={};Hc(i.posParams,function(t,e){o[e]=t.path});var s=i.consumed.length>0?Object(r.a)({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(e,t,n);s=u.consumedSegments,a=n.slice(u.lastChild),o=new wh(s,u.parameters,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,gp(t),i,t.component,t,hp(e),pp(e)+s.length,vp(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=dp(e,s,a,c,this.relativeLinkResolution),p=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&p.hasChildren()){var f=this.processChildren(c,p);return[new mh(o,f)]}if(0===c.length&&0===d.length)return[new mh(o,[])];var m=this.processSegment(c,p,d,Oc);return[new mh(o,m)]},t}();function hp(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function pp(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function dp(t,e,n,i,o){if(n.length>0&&function(t,e,n){return i.some(function(n){return fp(t,e,n)&&mp(n)!==Oc})}(t,n)){var s=new Jc(e,function(t,e,n,i){var o,s,a={};a[Oc]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var l=Object(r.h)(n),u=l.next();!u.done;u=l.next()){var c=u.value;if(""===c.path&&mp(c)!==Oc){var h=new Jc([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,a[mp(c)]=h}}}catch(p){o={error:p}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return a}(t,e,i,new Jc(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return i.some(function(n){return fp(t,e,n)})}(t,n)){var a=new Jc(t.segments,function(t,e,n,i,o,s){var a,l,u={};try{for(var c=Object(r.h)(i),h=c.next();!h.done;h=c.next()){var p=h.value;if(fp(t,n,p)&&!o[mp(p)]){var d=new Jc([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===s?t.segments.length:e.length,u[mp(p)]=d}}}catch(f){a={error:f}}finally{try{h&&!h.done&&(l=c.return)&&l.call(c)}finally{if(a)throw a.error}}return Object(r.a)({},o,u)}(t,e,n,i,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var l=new Jc(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function fp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function mp(t){return t.outlet||Oc}function gp(t){return t.data||{}}function vp(t){return t.resolve||{}}function yp(t,e,n,r){var i=tp(t,e,r);return Wc(i.resolve?i.resolve(e,n):i(e,n))}function bp(t){return function(e){return e.pipe(Xl(function(e){var n=t(e);return n?A(n).pipe(D(function(){return e})):A([e])}))}}var xp=function(){return function(){}}(),wp=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Cp=new q("ROUTES"),_p=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(D(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Ic(Uc(i.injector.get(Cp)).map(Bc),i)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?A(this.loader.load(t)):Wc(t()).pipe(O(function(t){return t instanceof se?sl(t):A(e.compiler.compileModuleAsync(t))}))},t}(),Dp=function(){return function(){}}(),Sp=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Ep(t){throw t}function kp(t,e,n){return e.parse("/")}function Ap(t,e){return sl(null)}var Op=function(){function t(t,e,n,r,i,s,a,l){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new o.a,this.errorHandler=Ep,this.malformedUriErrorHandler=kp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ap,afterPreactivation:Ap},this.urlHandlingStrategy=new Sp,this.routeReuseStrategy=new wp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(oe),this.console=i.get(dn);var c=i.get(An);this.isNgZoneEnabled=c instanceof An,this.resetConfig(l),this.currentUrlTree=new Xc(new Jc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _p(s,a,function(t){return u.triggerEvent(new wc(t))},function(t){return u.triggerEvent(new Cc(t))}),this.routerState=yh(this.currentUrlTree,this.rootComponentType),this.transitions=new ll({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 t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(yl(function(t){return 0!==t.id}),D(function(t){return Object(r.a)({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Al(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object(r.a)({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Xl(function(t){var i,o,s,a,l=!1,u=!1;return sl(t).pipe(Xl(function(t){var i,o,s,a,l=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||l)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return sl(t).pipe(Xl(function(t){var r=e.transitions.getValue();return n.next(new pc(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?rl:[t]}),Xl(function(t){return Promise.resolve(t)}),(i=e.ngModule.injector,o=e.configLoader,s=e.urlSerializer,a=e.config,function(t){return t.pipe(Xl(function(t){return function(e,n,r,i,o){return new Jh(e,n,r,t.extractedUrl,o).apply()}(i,o,s,0,a).pipe(D(function(e){return Object(r.a)({},t,{urlAfterRedirects:e})}))}))}),Al(function(t){e.currentNavigation=Object(r.a)({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,i,o,s){return function(i){return i.pipe(O(function(i){return function(t,e,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new cp(t,e,n,r,i,o).recognize()}(t,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,e.serializeUrl(a)),o,s).pipe(D(function(t){return Object(r.a)({},i,{targetSnapshot:t})}));var a}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Al(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id),e.browserUrlTree=t.urlAfterRedirects)}),Al(function(t){var r=new gc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(l&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.extractedUrl,c=t.source,h=t.restoredState,p=t.extras,d=new pc(t.id,e.serializeUrl(u),c,h);n.next(d);var f=yh(u,e.rootComponentType).snapshot;return sl(Object(r.a)({},t,{targetSnapshot:f,urlAfterRedirects:u,extras:Object(r.a)({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),rl}),bp(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Al(function(t){var n=new vc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),D(function(t){return Object(r.a)({},t,{guards:(n=t.targetSnapshot,i=t.currentSnapshot,o=e.rootContexts,s=n._root,ep(s,i?i._root:null,o,[s.value]))});var n,i,o,s}),function(t,e){return function(n){return n.pipe(O(function(n){var i=n.targetSnapshot,o=n.currentSnapshot,s=n.guards,a=s.canActivateChecks,l=s.canDeactivateChecks;return 0===l.length&&0===a.length?sl(Object(r.a)({},n,{guardsResult:!0})):function(t,e,n,r){return A(l).pipe(O(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?sl(o.map(function(o){var s,a=tp(o,e,i);if(function(t){return t&&Vh(t.canDeactivate)}(a))s=Wc(a.canDeactivate(t,e,n,r));else{if(!Vh(a))throw new Error("Invalid CanDeactivate guard");s=Wc(a(t,e,n,r))}return s.pipe(Hl())})).pipe(ip()):sl(!0)}(t.component,t.route,n,e,r)}),Hl(function(t){return!0!==t},!0))}(0,i,o,t).pipe(O(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return A(a).pipe(Yl(function(e){return A([sp(e.route.parent,r),op(e.route,r),lp(t,e.path,n),ap(t,e.route,n)]).pipe(vl(),Hl(function(t){return!0!==t},!0))}),Hl(function(t){return!0!==t},!0))}(i,0,t,e):sl(n)}),D(function(t){return Object(r.a)({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Al(function(t){if(Uh(t.guardsResult)){var n=Fc('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),Al(function(t){var n=new yc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),yl(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new fc(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),bp(function(t){if(t.guards.canActivateChecks.length)return sl(t).pipe(Al(function(t){var n=new bc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(O(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?A(o).pipe(Yl(function(t){return function(t,n,i,o){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return sl({});if(1===i.length){var o=i[0];return yp(t[o],e,n,r).pipe(D(function(t){var e;return(e={})[o]=t,e}))}var s={};return A(i).pipe(O(function(i){return yp(t[i],e,n,r).pipe(D(function(t){return s[i]=t,t}))})).pipe(Rl(),D(function(){return s}))}(t._resolve,t,e,o).pipe(D(function(e){return t._resolvedData=e,t.data=Object(r.a)({},t.data,xh(t,i).resolve),null}))}(t.route,0,n,i)}),function(t,e){return arguments.length>=2?function(e){return Object(Ql.a)(ql(t,void 0),_l(1),Fl(void 0))(e)}:function(e){return Object(Ql.a)(ql(function(e,n,r){return t(e)}),_l(1))(e)}}(function(t,e){return t}),D(function(e){return t})):sl(t)}))}),Al(function(t){var n=new xc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,i}),bp(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),D(function(t){var n,i,o,s=(o=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){(u=i.value)._futureSnapshot=n.value;var o=function(e,n,i){return n.children.map(function(n){var o,s;try{for(var a=Object(r.h)(i.children),l=a.next();!l.done;l=a.next()){var u=l.value;if(e.shouldReuseRoute(u.value.snapshot,n.value))return t(e,n,u)}}catch(c){o={error:c}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,i);return new mh(u,o)}var s=e.retrieve(n.value);if(s){var a=s.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,a),a}var l,u=new bh(new ll((l=n.value).url),new ll(l.params),new ll(l.queryParams),new ll(l.fragment),new ll(l.data),l.outlet,l.component,l);return o=n.children.map(function(n){return t(e,n)}),new mh(u,o)}(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(i=t.currentRouterState)?i._root:void 0),new vh(o,n));return Object(r.a)({},t,{targetRouterState:s})}),Al(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),(o=e.rootContexts,s=e.routeReuseStrategy,a=function(t){return e.triggerEvent(t)},D(function(t){return new jh(s,t.targetRouterState,t.currentRouterState,a).activate(o),t})),Al({next:function(){l=!0},complete:function(){l=!0}}),(i=function(){if(!l&&!u){e.resetUrlToCurrentUrlTree();var r=new fc(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID "+t.id+" is not equal to the current navigation id "+e.navigationId);n.next(r),t.resolve(!1)}e.currentNavigation=null},function(t){return t.lift(new tu(i))}),Ll(function(r){if(u=!0,(a=r)&&a[Pc]){var i=Uh(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new fc(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),t.resolve(!1),i&&e.navigateByUrl(r.url)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var s=new mc(t.id,e.serializeUrl(t.extractedUrl),r);n.next(s);try{t.resolve(e.errorHandler(r))}catch(l){t.reject(l)}}var a;return rl}))}))},t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.getTransition=function(){return this.transitions.value},t.prototype.setTransition=function(t){this.transitions.next(Object(r.a)({},this.getTransition(),t))},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?e.state:null;setTimeout(function(){t.scheduleNavigation(n,r,i,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.getCurrentNavigation=function(){return this.currentNavigation},t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){Rc(t),this.config=t.map(Bc),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,i=e.queryParams,o=e.fragment,s=e.preserveQueryParams,a=e.queryParamsHandling,l=e.preserveFragment;be()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=l?this.currentUrlTree.fragment:o,h=null;if(a)switch(a){case"merge":h=Object(r.a)({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=s?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,o){if(0===n.length)return Ah(e.root,e.root,e,i,o);var s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Oh(!0,0,t);var e=0,n=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var s={};return Hc(i.outlets,function(t,e){s[e]="string"==typeof t?t.split("/"):t}),Object(r.g)(t,[{outlets:s}])}if(i.segmentPath)return Object(r.g)(t,[i.segmentPath])}return"string"!=typeof i?Object(r.g)(t,[i]):0===o?(i.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):Object(r.g)(t,[i])},[]);return new Oh(n,e,i)}(n);if(s.toRoot())return Ah(e.root,new Jc([],{}),e,i,o);var a=function(t,n,r){if(t.isAbsolute)return new Th(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Th(r.snapshot._urlSegment,!0,0);var i=kh(t.commands[0])?0:1;return function(e,n,o){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+i,l=t.numberOfDoubleDots;l>a;){if(l-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new Th(s,!1,a-l)}()}(s,0,t),l=a.processChildren?Fh(a.segmentGroup,a.index,s.commands):Ph(a.segmentGroup,a.index,s.commands);return Ah(a.segmentGroup,l,e,i,o)}(u,this.currentUrlTree,t,h,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),be()&&this.isNgZoneEnabled&&!An.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Uh(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(Uh(t))return Gc(this.currentUrlTree,t,e);var n=this.parseUrl(t);return Gc(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!=r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new dc(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})},t.prototype.scheduleNavigation=function(t,e,n,r){var i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,s=null,a=new Promise(function(t,e){o=t,s=e}),l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:s,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(function(t){return Promise.reject(t)})},t.prototype.setBrowserUrl=function(t,e,n,i){var o=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(o)||e?this.location.replaceState(o,"",Object(r.a)({},i,{navigationId:n})):this.location.go(o,"",Object(r.a)({},i,{navigationId:n}))},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),Tp=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof dc&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){be()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:Mp(this.skipLocationChange),replaceUrl:Mp(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Mp(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Mp(this.preserveFragment)})},enumerable:!0,configurable:!0}),Object(r.b)([Ke("attr.target"),Je(),Object(r.d)("design:type",String)],t.prototype,"target",void 0),t}();function Mp(t){return""===t||!!t}var Pp=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Fp,this.attachRef=null}}(),Fp=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new Pp,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Np=function(){function t(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ue,this.deactivateEvents=new Ue,this.name=r||Oc,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Ip(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}(),Ip=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===bh?this.route:t===Fp?this.childContexts:this.parent.get(t,e)},t}(),Rp=function(){return function(){}}(),Lp=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(Ll(function(){return sl(null)}))},t}(),jp=function(){function t(){}return t.prototype.preload=function(t,e){return sl(null)},t}(),Bp=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new _p(e,n,function(e){return t.triggerEvent(new wc(e))},function(e){return t.triggerEvent(new Cc(e))})}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(yl(function(t){return t instanceof dc}),Yl(function(){return t.preload()})).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(oe);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var n,i,o=[];try{for(var s=Object(r.h)(e),a=s.next();!a.done;a=s.next()){var l=a.value;if(l.loadChildren&&!l.canLoad&&l._loadedConfig){var u=l._loadedConfig;o.push(this.processRoutes(u.module,u.routes))}else l.loadChildren&&!l.canLoad?o.push(this.preloadConfig(t,l)):l.children&&o.push(this.processRoutes(t,l.children))}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return A(o).pipe(F(),D(function(t){}))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){return n.loader.load(t.injector,e).pipe(O(function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)}))})},t}(),Vp=function(){function t(t,e,n){void 0===n&&(n={}),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return t.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},t.prototype.createScrollEvents=function(){var t=this;return this.router.events.subscribe(function(e){e instanceof pc?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof dc&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})},t.prototype.consumeScrollEvents=function(){var t=this;return this.router.events.subscribe(function(e){e instanceof kc&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})},t.prototype.scheduleScrollEvent=function(t,e){this.router.triggerEvent(new kc(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))},t.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},t}(),Up=new q("ROUTER_CONFIGURATION"),zp=new q("ROUTER_FORROOT_GUARD"),Hp=[Qs,{provide:Zc,useClass:Yc},{provide:Op,useFactory:$p,deps:[Gn,Zc,Fp,Qs,Rt,Xe,wn,Cp,Up,[Dp,new vt],[xp,new vt]]},Fp,{provide:bh,useFactory:Zp,deps:[Op]},{provide:Xe,useClass:$n},Bp,jp,Lp,{provide:Up,useValue:{enableTracing:!1}}];function Wp(){return new Vn("Router",Op)}var Gp=function(){function t(t,e){}var e;return e=t,t.forRoot=function(t,n){return{ngModule:e,providers:[Hp,qp(t),{provide:zp,useFactory:Kp,deps:[[Op,new vt,new bt]]},{provide:Up,useValue:n||{}},{provide:Zs,useFactory:Jp,deps:[qs,[new gt(Ys),new vt],Up]},{provide:Vp,useFactory:Xp,deps:[Op,el,Up]},{provide:Rp,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:jp},{provide:Vn,multi:!0,useFactory:Wp},[Yp,{provide:on,multi:!0,useFactory:Qp,deps:[Yp]},{provide:ed,useFactory:td,deps:[Yp]},{provide:pn,multi:!0,useExisting:ed}]]}},t.forChild=function(t){return{ngModule:e,providers:[qp(t)]}},t}();function Xp(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Vp(t,e,n)}function Jp(t,e,n){return void 0===n&&(n={}),n.useHash?new ea(t,e):new na(t,e)}function Kp(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function qp(t){return[{provide:et,multi:!0,useValue:t},{provide:Cp,multi:!0,useValue:t}]}function $p(t,e,n,r,i,o,s,a,l,u,c){void 0===l&&(l={});var h=new Op(null,e,n,r,i,o,s,Uc(a));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){var p=ru();h.events.subscribe(function(t){p.logGroup("Router Event: "+t.constructor.name),p.log(t.toString()),p.log(t),p.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function Zp(t){return t.routerState.root}var Yp=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.a}return t.prototype.appInitializer=function(){var t=this;return this.injector.get($s,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(Op),i=t.injector.get(Up);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?sl(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Up),n=this.injector.get(Bp),r=this.injector.get(Vp),i=this.injector.get(Op),o=this.injector.get(Gn);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();function Qp(t){return t.appInitializer.bind(t)}function td(t){return t.bootstrapListener.bind(t)}var ed=new q("Router Initializer"),nd=function(){function t(t,e){this.route=t,this.renderer=e,this.breadcrumbs=[]}return t.prototype.ngOnInit=function(){localStorage.getItem("theme")==this.otherTheme&&this.switchTheme(this.otherTheme)},t.prototype.ngAfterViewChecked=function(){var t=this;this.route.events.subscribe(function(e){if(e instanceof gc){var n=e.state.root.firstChild.params,r=[];if(n.server){var i=n.server;if(r.push({name:i,href:"/servers/"+i+"/databases",active:!1}),n.database){var o=n.database;if(r.push({name:o,href:"/servers/"+i+"/databases/"+o+"/collections",active:!1}),n.collection){var s=n.collection;r.push({name:s,href:"/servers/"+i+"/databases/"+o+"/collections/"+s,active:!1}),n.document&&r.push({name:n.document,active:!1})}}}r.length>0&&(r[r.length-1].href=void 0,r[r.length-1].active=!0),t.breadcrumbs=r}})},Object.defineProperty(t.prototype,"otherTheme",{get:function(){return document.body.classList.contains("theme-light")?"Dark":"Light"},enumerable:!0,configurable:!0}),t.prototype.switchTheme=function(t){"Dark"===t?this.renderer.removeClass(document.body,"theme-light"):this.renderer.addClass(document.body,"theme-light"),localStorage.setItem("theme",t)},t}(),rd=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var s=C(r,n[o],null,o);s&&r.add(s)}return r}return r.c(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,i=r.length;t._hasValue?(this.completed++,this.completed===i&&(n===i&&e.next(r),e.complete())):e.complete()},e}(_),id=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),od=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(id);function sd(t){return null==t||0===t.length}var ad=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,ld=function(){function t(){}return t.min=function(t){return function(e){if(sd(e.value)||sd(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(sd(e.value)||sd(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return sd(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return sd(t.value)?null:ad.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(sd(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(sd(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(ud);return 0==e.length?null:function(t){return hd(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(ud);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Object(hl.a)(n[0])&&(n=n[0]),0===n.length?rl:e?t(n).pipe(D(function(t){return e.apply(void 0,t)})):new s.a(function(t){return new rd(t,n)})}(function(t,n){return e.map(function(e){return e(t)})}(t).map(cd)).pipe(D(hd))}},t}();function ud(t){return null!=t}function cd(t){var e=nn(t)?A(t):t;if(!rn(e))throw new Error("Expected validator to return Promise or Observable.");return e}function hd(t){var e=t.reduce(function(t,e){return null!=e?Object(r.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}var pd=new q("NgValueAccessor"),dd=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),fd=new q("CompositionEventMode"),md=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=ru()?ru().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function gd(t){return t.validate?function(e){return t.validate(e)}:t}function vd(t){return t.validate?function(e){return t.validate(e)}:t}var yd=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function bd(){throw new Error("unimplemented")}var xd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(r.c)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return bd()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return bd()},enumerable:!0,configurable:!0}),e}(id),wd=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),Cd=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(xd),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.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: <input type="radio" formControlName="food" name="food">\n ')},t}(),_d=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Dd='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Sd='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>';function Ed(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var kd=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=ut}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Ed(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var i=Object(r.h)(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var s=o.value;if(this._compareWith(this._optionMap.get(s),t))return s}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),Ad=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Ed(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function Od(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var Td=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=ut}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var s=i.item(o),a=e._getOptionValue(s.value);r.push(a)}else for(i=n.options,o=0;o<i.length;o++)(s=i.item(o)).selected&&(a=e._getOptionValue(s.value),r.push(a));e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){var e,n;try{for(var i=Object(r.h)(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var s=o.value;if(this._compareWith(this._optionMap.get(s)._value,t))return s}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}(),Md=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(Od(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(Od(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function Pd(t,e){return Object(r.g)(e.path,[t])}function Fd(t,e){t||Id(e,"Cannot find control with"),e.valueAccessor||Id(e,"No value accessor for form control with"),t.validator=ld.compose([t.validator,e.validator]),t.asyncValidator=ld.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Nd(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Nd(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function Nd(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Id(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Rd(t){return null!=t?ld.compose(t.map(gd)):null}function Ld(t){return null!=t?ld.composeAsync(t.map(vd)):null}var jd=[dd,_d,yd,kd,Td,Cd],Bd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return Pd(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Rd(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Ld(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(od),Vd=function(t){function e(e){return t.call(this,e)||this}return Object(r.c)(e,t),e}(function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}());function Ud(t){var e=Hd(t)?t.validators:t;return Array.isArray(e)?Rd(e):e||null}function zd(t,e){var n=Hd(e)?e.asyncValidators:t;return Array.isArray(n)?Ld(n):n||null}function Hd(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Wd=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=Ud(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=zd(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(r.a)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(r.a)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=cd(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof Xd?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof Jd&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new Ue,this.statusChanges=new Ue},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){Hd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),Gd=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,Ud(n),zd(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.c)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.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))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(Wd),Xd=function(t){function e(e,n,r){var i=t.call(this,Ud(n),zd(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.c)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof Gd?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){var t,e;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){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Wd),Jd=function(t){function e(e,n,r){var i=t.call(this,Ud(n),zd(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.c)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Gd?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;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){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Wd),Kd=Promise.resolve(null),qd=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Ue,r.form=new Xd({},Rd(e),Ld(n)),r}return Object(r.c)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Kd.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Fd(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Kd.then(function(){var n,r,i=e._findContainer(t.path);i&&i.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;Kd.then(function(){var n=e._findContainer(t.path),r=new Xd({});(function(t,e){null==t&&Id(e,"Cannot find control with"),t.validator=ld.compose([t.validator,e.validator]),t.asyncValidator=ld.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Kd.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Kd.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(od),$d=function(){function t(){}return t.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 \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\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 <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')},t.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 "+Dd+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Sd)},t.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: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.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 "+Dd+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Sd)},t.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 <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")},t}(),Zd=new q("NgFormSelectorWarning"),Yd=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}var n;return Object(r.c)(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof qd||$d.modelGroupParentException()},e}(Bd),Qd=Promise.resolve(null),tf=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.control=new Gd,o._registered=!1,o.update=new Ue,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Id(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){var o;e.constructor===md?n=e:(o=e,jd.some(function(t){return o.constructor===t})?(r&&Id(t,"More than one built-in value accessor matches form control with"),r=e):(i&&Id(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(Id(t,"No valid value accessor for form control with"),null)}(o,i),o}return Object(r.c)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!ut(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?Pd(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Rd(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Ld(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){Fd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Yd)&&this._parent instanceof Bd?$d.formGroupNameException():this._parent instanceof Yd||this._parent instanceof qd||$d.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||$d.missingNameException()},e.prototype._updateValue=function(t){var e=this;Qd.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Qd.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(xd),ef=function(){return function(){}}(),nf=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:Zd,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}(),rf=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.c(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.c(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i.a)),of=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),sf=new(function(t){function e(n,r){void 0===r&&(r=of.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.c(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(of))(rf);function af(t,e,n,r){return Object(kl.a)(n)&&(r=n,n=void 0),r?af(t,e,n).pipe(D(function(t){return Object(hl.a)(t)?r.apply(void 0,t):r(t)})):new s.a(function(r){!function t(e,n,r,i,o){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,o),s=function(){return a.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,r),s=function(){return l.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,r),s=function(){return u.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c<h;c++)t(e[c],n,r,i,o)}i.add(s)}(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}var lf=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new uf(t))},t}(),uf=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.c(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=C(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(_);function cf(t){return function(e){return e.lift(new hf(t))}}var hf=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new pf(t),r=C(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),pf=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.c(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(_);function df(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new mf(t,n))}}var ff,mf=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new gf(t,this.observables,this.project))},t}(),gf=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var a=n[s];i.add(C(i,a,a,s))}return i}return r.c(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(_);ff||(ff={});var vf=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t;switch(this.kind){case"N":return sl(this.value);case"E":return t=this.error,new s.a(function(e){return e.error(t)});case"C":return il()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function yf(t,e){void 0===e&&(e=sf);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new bf(r,e))}}var bf=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new xf(t,this.delay,this.scheduler))},t}(),xf=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.c(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&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(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new wf(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(vf.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(vf.createComplete()),this.unsubscribe()},e}(l.a),wf=function(){return function(t,e){this.time=t,this.notification=e}}();function Cf(t){return parseInt(""+t,10)}function _f(t){return null!=t?""+t:""}function Df(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function Sf(t){return null!=t}function Ef(t,e){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(e)>=0}var kf=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Af=function(){function t(){this.dismissible=!0,this.type="warning"}return t.ngInjectableDef=J({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Of=function(){function t(t,e,n){this._renderer=e,this._element=n,this.close=new Ue,this.dismissible=t.dismissible,this.type=t.type}return t.prototype.closeHandler=function(){this.close.emit(null)},t.prototype.ngOnChanges=function(t){var e=t.type;e&&!e.firstChange&&(this._renderer.removeClass(this._element.nativeElement,"alert-"+e.previousValue),this._renderer.addClass(this._element.nativeElement,"alert-"+e.currentValue))},t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"alert-"+this.type)},t}(),Tf=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Mf=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Pf=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Ff=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Nf=function(){function t(t,e,n){this.year=Df(t)?t:null,this.month=Df(e)?e:null,this.day=Df(n)?n:null}return t.from=function(e){return e instanceof t?e:e?new t(e.year,e.month,e.day):null},t.prototype.equals=function(t){return t&&this.year===t.year&&this.month===t.month&&this.day===t.day},t.prototype.before=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day<t.day:this.month<t.month:this.year<t.year)},t.prototype.after=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day>t.day:this.month>t.month:this.year>t.year)},t}();function If(t){return new Nf(t.getFullYear(),t.getMonth()+1,t.getDate())}function Rf(t){var e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function Lf(){return new Bf}var jf=function(){function t(){}return t.ngInjectableDef=J({factory:Lf,token:t,providedIn:"root"}),t}(),Bf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDaysPerWeek=function(){return 7},e.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},e.prototype.getWeeksPerMonth=function(){return 6},e.prototype.getNext=function(t,e,n){void 0===e&&(e="d"),void 0===n&&(n=1);var r=Rf(t);switch(e){case"y":return new Nf(t.year+n,1,1);case"m":r=new Date(t.year,t.month+n-1,1,12);break;case"d":r.setDate(r.getDate()+n);break;default:return t}return If(r)},e.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},e.prototype.getWeekday=function(t){var e=Rf(t).getDay();return 0===e?7:e},e.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=Rf(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));var r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1},e.prototype.getToday=function(){return If(new Date)},e.prototype.isValid=function(t){if(!(t&&Df(t.year)&&Df(t.month)&&Df(t.day)))return!1;if(0===t.year)return!1;var e=Rf(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day},e}(jf);function Vf(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function Uf(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t}function zf(t,e){var n=e.minDate,r=e.maxDate,i=e.disabled,o=e.markDisabled;return!(!Sf(t)||i||o&&o(t,{year:t.year,month:t.month})||n&&t.before(n)||r&&t.after(r))}var Hf=function(){function t(){}return t.prototype.getDayNumerals=function(t){return""+t.day},t.prototype.getWeekNumerals=function(t){return""+t},t.prototype.getYearNumerals=function(t){return""+t},t.ngInjectableDef=J({factory:function(){return t=_t(Dr),new Wf(t);var t},token:t,providedIn:"root"}),t}(),Wf=function(t){function e(e){var n=t.call(this)||this;n._locale=e;var r=ha(e,aa.Standalone,la.Short);return n._weekdaysShort=r.map(function(t,e){return r[(e+1)%7]}),n._monthsShort=pa(e,aa.Standalone,la.Abbreviated),n._monthsFull=pa(e,aa.Standalone,la.Wide),n}return Object(r.c)(e,t),e.prototype.getWeekdayShortName=function(t){return this._weekdaysShort[t-1]},e.prototype.getMonthShortName=function(t){return this._monthsShort[t-1]},e.prototype.getMonthFullName=function(t){return this._monthsFull[t-1]},e.prototype.getDayAriaLabel=function(t){return ka(new Date(t.year,t.month-1,t.day),"fullDate",this._locale)},e}(Hf),Gf=function(){function t(t,e){this._calendar=t,this._i18n=e,this._model$=new o.a,this._select$=new o.a,this._state={disabled:!1,displayMonths:1,firstDayOfWeek:1,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectBoxes:{years:[],months:[]},selectedDate:null}}return Object.defineProperty(t.prototype,"model$",{get:function(){return this._model$.pipe(yl(function(t){return t.months.length>0}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"select$",{get:function(){return this._select$.pipe(yl(function(t){return null!==t}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dayTemplateData",{set:function(t){this._state.dayTemplateData!==t&&this._nextState({dayTemplateData:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._state.disabled!==t&&this._nextState({disabled:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayMonths",{set:function(t){Df(t=Cf(t))&&t>0&&this._state.displayMonths!==t&&this._nextState({displayMonths:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstDayOfWeek",{set:function(t){Df(t=Cf(t))&&t>=0&&this._state.firstDayOfWeek!==t&&this._nextState({firstDayOfWeek:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusVisible",{set:function(t){this._state.focusVisible===t||this._state.disabled||this._nextState({focusVisible:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{set:function(t){var e=this.toValidDate(t,null);Vf(this._state.maxDate,e)&&this._nextState({maxDate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markDisabled",{set:function(t){this._state.markDisabled!==t&&this._nextState({markDisabled:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{set:function(t){var e=this.toValidDate(t,null);Vf(this._state.minDate,e)&&this._nextState({minDate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigation",{set:function(t){this._state.navigation!==t&&this._nextState({navigation:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outsideDays",{set:function(t){this._state.outsideDays!==t&&this._nextState({outsideDays:t})},enumerable:!0,configurable:!0}),t.prototype.focus=function(t){!this._state.disabled&&this._calendar.isValid(t)&&Vf(this._state.focusDate,t)&&this._nextState({focusDate:t})},t.prototype.focusMove=function(t,e){this.focus(this._calendar.getNext(this._state.focusDate,t,e))},t.prototype.focusSelect=function(){zf(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})},t.prototype.open=function(t){var e=this.toValidDate(t,this._calendar.getToday());this._state.disabled||this._nextState({firstDate:e})},t.prototype.reset=function(t){this._state=t},t.prototype.select=function(t,e){void 0===e&&(e={});var n=this.toValidDate(t,null);this._state.disabled||(Vf(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&&zf(n,this._state)&&this._select$.next(n))},t.prototype.toValidDate=function(t,e){var n=Nf.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e},t.prototype._nextState=function(t){var e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)},t.prototype._patchContexts=function(t){var e=t.months,n=t.displayMonths,r=t.selectedDate,i=t.focusDate,o=t.focusVisible,s=t.disabled,a=t.outsideDays;t.months.forEach(function(t){t.weeks.forEach(function(l){l.days.forEach(function(l){i&&(l.context.focused=i.equals(l.date)&&o),l.tabindex=!s&&l.date.equals(i)&&i.month===t.number?0:-1,!0===s&&(l.context.disabled=!0),void 0!==r&&(l.context.selected=null!==r&&r.equals(l.date)),t.number!==l.date.month&&(l.hidden="hidden"===a||"collapsed"===a||n>1&&l.date.after(e[0].firstDate)&&l.date.before(e[n-1].lastDate))})})})},t.prototype._updateState=function(t){var e,n,r=Object.assign({},this._state,t),i=r.firstDate;if(("minDate"in t||"maxDate"in t)&&(function(t,e){if(e&&t&&e.before(t))throw new Error("'maxDate' "+e+" should be greater than 'minDate' "+t)}(r.minDate,r.maxDate),r.focusDate=Uf(r.focusDate,r.minDate,r.maxDate),r.firstDate=Uf(r.firstDate,r.minDate,r.maxDate),i=r.focusDate),"disabled"in t&&(r.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(i=r.selectedDate),"focusVisible"in t)return r;if("focusDate"in t&&(r.focusDate=Uf(r.focusDate,r.minDate,r.maxDate),i=r.focusDate,0!==r.months.length&&!r.focusDate.before(r.firstDate)&&!r.focusDate.after(r.lastDate)))return r;if("firstDate"in t&&(r.firstDate=Uf(r.firstDate,r.minDate,r.maxDate),i=r.firstDate),i){var o=function(t,e,n,r,i){var o=n.displayMonths,s=n.months,a=s.splice(0,s.length);return Array.from({length:o},function(n,r){var o=t.getNext(e,"m",r);if(s[r]=null,!i){var l=a.findIndex(function(t){return t.firstDate.equals(o)});-1!==l&&(s[r]=a.splice(l,1)[0])}return o}).forEach(function(e,i){null===s[i]&&(s[i]=function(t,e,n,r,i){void 0===i&&(i={});var o=n.dayTemplateData,s=n.minDate,a=n.maxDate,l=n.firstDayOfWeek,u=n.markDisabled,c=n.outsideDays,h=t.getToday();i.firstDate=null,i.lastDate=null,i.number=e.month,i.year=e.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],e=function(t,e,n){var r=t.getDaysPerWeek(),i=new Nf(e.year,e.month,1),o=t.getWeekday(i)%r;return t.getPrev(i,"d",(r+o-n)%r)}(t,e,l);for(var p=0;p<t.getWeeksPerMonth();p++){var d=i.weeks[p];d||(d=i.weeks[p]={number:0,days:[],collapsed:!0});for(var f=d.days,m=0;m<t.getDaysPerWeek();m++){0===p&&(i.weekdays[m]=t.getWeekday(e));var g=new Nf(e.year,e.month,e.day),v=t.getNext(g),y=r.getDayAriaLabel(g),b=!!(s&&g.before(s)||a&&g.after(a));!b&&u&&(b=u(g,{month:i.number,year:i.year}));var x=g.equals(h),w=o?o(g,{month:i.number,year:i.year}):void 0;null===i.firstDate&&g.month===i.number&&(i.firstDate=g),g.month===i.number&&v.month!==i.number&&(i.lastDate=g);var C=f[m];C||(C=f[m]={}),C.date=g,C.context=Object.assign(C.context||{},{$implicit:g,date:g,data:w,currentMonth:i.number,disabled:b,focused:!1,selected:!1,today:x}),C.tabindex=-1,C.ariaLabel=y,C.hidden=!1,e=v}d.number=t.getWeekNumber(f.map(function(t){return t.date}),l),d.collapsed="collapsed"===c&&f[0].date.month!==i.number&&f[f.length-1].date.month!==i.number}return i}(t,e,n,r,a.shift()||{}))}),s}(this._calendar,i,r,this._i18n,"dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t);r.months=o,r.firstDate=o.length>0?o[0].firstDate:void 0,r.lastDate=o.length>0?o[o.length-1].lastDate:void 0,"selectedDate"in t&&!zf(r.selectedDate,r)&&(r.selectedDate=null),"firstDate"in t&&(void 0===r.focusDate||r.focusDate.before(r.firstDate)||r.focusDate.after(r.lastDate))&&(r.focusDate=i);var s=!this._state.firstDate||this._state.firstDate.year!==r.firstDate.year,a=!this._state.firstDate||this._state.firstDate.month!==r.firstDate.month;"select"===r.navigation?(("minDate"in t||"maxDate"in t||0===r.selectBoxes.years.length||s)&&(r.selectBoxes.years=function(t,e,n){if(!t)return[];var r=e&&e.year||t.year-10;return Array.from({length:(n&&n.year||t.year+10)-r+1},function(t,e){return r+e})}(r.firstDate,r.minDate,r.maxDate)),("minDate"in t||"maxDate"in t||0===r.selectBoxes.months.length||s)&&(r.selectBoxes.months=function(t,e,n,r){if(!e)return[];var i=t.getMonths(e.year);if(n&&e.year===n.year){var o=i.findIndex(function(t){return t===n.month});i=i.slice(o)}return r&&e.year===r.year&&(o=i.findIndex(function(t){return t===r.month}),i=i.slice(0,o+1)),i}(this._calendar,r.firstDate,r.minDate,r.maxDate))):r.selectBoxes={years:[],months:[]},"arrows"!==r.navigation&&"select"!==r.navigation||!(a||s||"minDate"in t||"maxDate"in t||"disabled"in t)||(r.prevDisabled=r.disabled||(e=r.minDate,n=this._calendar.getPrev(r.firstDate,"m"),e&&(n.year===e.year&&n.month<e.month||n.year<e.year&&1===e.month)),r.nextDisabled=r.disabled||function(t,e,n){return n&&t.getNext(r.lastDate,"m").after(n)}(this._calendar,0,r.maxDate))}return r},t}(),Xf=function(){var t={Tab:9,Enter:13,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40};return t[t.Tab]="Tab",t[t.Enter]="Enter",t[t.Escape]="Escape",t[t.Space]="Space",t[t.PageUp]="PageUp",t[t.PageDown]="PageDown",t[t.End]="End",t[t.Home]="Home",t[t.ArrowLeft]="ArrowLeft",t[t.ArrowUp]="ArrowUp",t[t.ArrowRight]="ArrowRight",t[t.ArrowDown]="ArrowDown",t}(),Jf=function(){function t(t,e){var n=this;this._service=t,this._calendar=e,t.model$.subscribe(function(t){n._minDate=t.minDate,n._maxDate=t.maxDate,n._firstViewDate=t.firstDate,n._lastViewDate=t.lastDate})}return t.prototype.processKey=function(t){switch(t.which){case Xf.PageUp:this._service.focusMove(t.shiftKey?"y":"m",-1);break;case Xf.PageDown:this._service.focusMove(t.shiftKey?"y":"m",1);break;case Xf.End:this._service.focus(t.shiftKey?this._maxDate:this._lastViewDate);break;case Xf.Home:this._service.focus(t.shiftKey?this._minDate:this._firstViewDate);break;case Xf.ArrowLeft:this._service.focusMove("d",-1);break;case Xf.ArrowUp:this._service.focusMove("d",-this._calendar.getDaysPerWeek());break;case Xf.ArrowRight:this._service.focusMove("d",1);break;case Xf.ArrowDown:this._service.focusMove("d",this._calendar.getDaysPerWeek());break;case Xf.Enter:case Xf.Space:this._service.focusSelect();break;default:return}t.preventDefault(),t.stopPropagation()},t}(),Kf=function(){var t={PREV:0,NEXT:1};return t[t.PREV]="PREV",t[t.NEXT]="NEXT",t}(),qf=function(){function t(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}return t.ngInjectableDef=J({factory:function(){return new t},token:t,providedIn:"root"}),t}();function $f(){return new Yf}var Zf=function(){function t(){}return t.ngInjectableDef=J({factory:$f,token:t,providedIn:"root"}),t}(),Yf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.fromModel=function(t){return t&&Df(t.year)&&Df(t.month)&&Df(t.day)?{year:t.year,month:t.month,day:t.day}:null},e.prototype.toModel=function(t){return t&&Df(t.year)&&Df(t.month)&&Df(t.day)?{year:t.year,month:t.month,day:t.day}:null},e}(Zf),Qf=function(){function t(t,e,n,r,i,s,a,l,u){var c=this;this._keyMapService=t,this._service=e,this._calendar=n,this.i18n=r,this._cd=s,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=u,this._destroyed$=new o.a,this.navigate=new Ue,this.select=new Ue,this.onChange=function(t){},this.onTouched=function(){},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(function(t){return c[t]=i[t]}),e.select$.pipe(cf(this._destroyed$)).subscribe(function(t){c.select.emit(t)}),e.model$.pipe(cf(this._destroyed$)).subscribe(function(t){var e=t.firstDate,n=c.model?c.model.firstDate:null,r=!1;if(e.equals(n)||(c.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:e.year,month:e.month},preventDefault:function(){return r=!0}}),!r||null===n)){var i=t.selectedDate,o=t.focusDate,a=c.model?c.model.focusDate:null;c.model=t,Vf(i,c._controlValue)&&(c._controlValue=i,c.onTouched(),c.onChange(c._ngbDateAdapter.toModel(i))),Vf(o,a)&&a&&t.focusVisible&&c.focus(),s.markForCheck()}else c._service.reset(c.model)})}return t.prototype.focus=function(){var t=this;this._ngZone.onStable.asObservable().pipe(Vl(1)).subscribe(function(){var e=t._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})},t.prototype.navigateTo=function(t){this._service.open(Nf.from(t?t.day?t:Object(r.a)({},t,{day:1}):null))},t.prototype.ngAfterContentInit=function(){var t=this;this._ngZone.runOutsideAngular(function(){N(af(t._monthsEl.nativeElement,"focusin"),af(t._monthsEl.nativeElement,"focusout")).pipe(yl(function(t){var e=t.relatedTarget;return!(Ef(t.target,"ngb-dp-day")&&Ef(e,"ngb-dp-day"))}),cf(t._destroyed$)).subscribe(function(e){var n=e.type;return t._ngZone.run(function(){return t._service.focusVisible="focusin"===n})})})},t.prototype.ngOnDestroy=function(){this._destroyed$.next()},t.prototype.ngOnInit=function(){var t=this;void 0===this.model&&(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(function(e){return t._service[e]=t[e]}),this.navigateTo(this.startDate))},t.prototype.ngOnChanges=function(t){var e=this;["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(function(e){return e in t}).forEach(function(t){return e._service[t]=e[t]}),"startDate"in t&&this.navigateTo(this.startDate)},t.prototype.onDateSelect=function(t){this._service.focus(t),this._service.select(t,{emitEvent:!0})},t.prototype.onKeyDown=function(t){this._keyMapService.processKey(t)},t.prototype.onNavigateDateSelect=function(t){this._service.open(t)},t.prototype.onNavigateEvent=function(t){switch(t){case Kf.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Kf.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._service.disabled=t},t.prototype.writeValue=function(t){this._controlValue=Nf.from(this._ngbDateAdapter.fromModel(t)),this._service.select(this._controlValue)},t}(),tm=function(){function t(t){this.i18n=t,this.select=new Ue}return t.prototype.doSelect=function(t){t.context.disabled||t.hidden||this.select.emit(t.date)},t}(),em=function(){return function(t){this.i18n=t,this.navigation=Kf,this.months=[],this.navigate=new Ue,this.select=new Ue}}(),nm=function(t,e){return!!e&&e.some(function(e){return e.contains(t)})},rm=!1;function im(t,e,n,i,o,s,a){n&&t.runOutsideAngular(function(){var l=af(e,"keydown").pipe(cf(o),yl(function(t){return t.which===Xf.Escape})),u=af(e,rm?"touchstart":"mousedown").pipe(D(function(t){var e=t.target;return(!(t instanceof MouseEvent)||2!==t.button&&!nm(e,a))&&("inside"===n?nm(e,s):"outside"!==n||!nm(e,s))}),cf(o));(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!Object(hl.a)(t[0]))return t[0];t=t[0]}return k(t,void 0).lift(new lf)})([l,af(e,rm?"touchend":"mouseup").pipe(df(u),yl(function(t){return Object(r.f)(t,2)[1]}),yf(rm?16:0),cf(o))]).subscribe(function(){return t.run(i)})})}"undefined"!=typeof navigator&&(rm=!!navigator.userAgent&&/iPad|iPhone|iPod/.test(navigator.userAgent));var om=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function sm(t){var e=Array.from(t.querySelectorAll(om)).filter(function(t){return-1!==t.tabIndex});return[e[0],e[e.length-1]]}var am=function(t,e,n){void 0===n&&(n=!1);var i=af(t,"focusin").pipe(cf(e),D(function(t){return t.target}));af(t,"keydown").pipe(cf(e),yl(function(t){return t.which===Xf.Tab}),df(i)).subscribe(function(e){var n=Object(r.f)(e,2),i=n[0],o=n[1],s=Object(r.f)(sm(t),2),a=s[0],l=s[1];o!==a&&o!==t||!i.shiftKey||(l.focus(),i.preventDefault()),o!==l||i.shiftKey||(a.focus(),i.preventDefault())}),n&&af(t,"click").pipe(cf(e),df(i),D(function(t){return t[1]})).subscribe(function(t){return t.focus()})},lm=/\s+/,um=new(function(){function t(){}return t.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},t.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){var n;void 0===e&&(e=!0);var r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n={top:(n=t.getBoundingClientRect()).top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{var i=this.offsetParent(t);n=this.offset(t,!1),i!==document.documentElement&&(r=this.offset(i,!1)),r.top+=i.clientTop,r.left+=i.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft,o={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o},t.prototype.positionElements=function(t,e,n,i){var o=Object(r.f)(n.split("-"),2),s=o[0],a=void 0===s?"top":s,l=o[1],u=void 0===l?"center":l,c=i?this.offset(t,!1):this.position(t,!1),h=this.getAllStyles(e),p=parseFloat(h.marginTop),d=parseFloat(h.marginBottom),f=parseFloat(h.marginLeft),m=parseFloat(h.marginRight),g=0,v=0;switch(a){case"top":g=c.top-(e.offsetHeight+p+d);break;case"bottom":g=c.top+c.height;break;case"left":v=c.left-(e.offsetWidth+f+m);break;case"right":v=c.left+c.width}switch(u){case"top":g=c.top;break;case"bottom":g=c.top+c.height-e.offsetHeight;break;case"left":v=c.left;break;case"right":v=c.left+c.width-e.offsetWidth;break;case"center":"top"===a||"bottom"===a?v=c.left+c.width/2-e.offsetWidth/2:g=c.top+c.height/2-e.offsetHeight/2}e.style.transform="translate("+v+"px, "+g+"px)";var y=e.getBoundingClientRect(),b=document.documentElement,x=window.innerHeight||b.clientHeight,w=window.innerWidth||b.clientWidth;return y.left>=0&&y.top>=0&&y.right<=w&&y.bottom<=x},t}());function cm(t,e,n,i,o){var s,a,l=Array.isArray(n)?n:n.split(lm),u=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],c=e.classList,h=function(t){var e=Object(r.f)(t.split("-"),2),n=e[0],i=e[1],s=[];return o&&(s.push(o+"-"+n),i&&s.push(o+"-"+n+"-"+i),s.forEach(function(t){c.add(t)})),s};o&&u.forEach(function(t){c.remove(o+"-"+t)});var p=l.findIndex(function(t){return"auto"===t});p>=0&&u.forEach(function(t){null==l.find(function(e){return-1!==e.search("^"+t)})&&l.splice(p++,1,t)});var d,f=e.style;f.position="absolute",f.top="0",f.left="0";var m=!1;try{for(var g=Object(r.h)(l),v=g.next();!v.done;v=g.next()){var y=h(d=v.value);if(um.positionElements(t,e,d,i)){m=!0;break}o&&y.forEach(function(t){c.remove(t)})}}catch(b){s={error:b}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}return m||(h(d=l[0]),um.positionElements(t,e,d,i)),d}var hm=function(){function t(t){this.i18n=t}return t.prototype.isMuted=function(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)},t}(),pm=function(){function t(t){this.i18n=t,this.select=new Ue}return t.prototype.changeMonth=function(t){this.select.emit(new Nf(this.date.year,Cf(t),1))},t.prototype.changeYear=function(t){this.select.emit(new Nf(Cf(t),this.date.month,1))},t}(),dm=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),fm=function(){function t(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}return t.ngInjectableDef=J({factory:function(){return new t},token:t,providedIn:"root"}),t}(),mm=function(){function t(t,e,n){this.dropdown=t,this._elementRef=e,this._renderer=n,this.placement="bottom",this.isOpen=!1}return t.prototype.getNativeElement=function(){return this._elementRef.nativeElement},t.prototype.position=function(t,e){this.applyPlacement(cm(t,this._elementRef.nativeElement,e))},t.prototype.applyPlacement=function(t){this._renderer.removeClass(this._elementRef.nativeElement.parentNode,"dropup"),this._renderer.removeClass(this._elementRef.nativeElement.parentNode,"dropdown"),this.placement=t,-1!==t.search("^top")?this._renderer.addClass(this._elementRef.nativeElement.parentNode,"dropup"):this._renderer.addClass(this._elementRef.nativeElement.parentNode,"dropdown")},t}(),gm=function(){function t(t,e){this.dropdown=t,this._elementRef=e,this.anchorEl=e.nativeElement}return t.prototype.getNativeElement=function(){return this._elementRef.nativeElement},t}(),vm=function(){function t(t,e,n,r,i,s){var a=this;this._changeDetector=t,this._document=n,this._ngZone=r,this._elementRef=i,this._renderer=s,this._closed$=new o.a,this._open=!1,this.openChange=new Ue,this.placement=e.placement,this.container=e.container,this.autoClose=e.autoClose,this._zoneSubscription=r.onStable.subscribe(function(){a._positionMenu()})}return t.prototype.ngOnInit=function(){this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},t.prototype.ngOnChanges=function(t){t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.isFirstChange&&this._applyPlacementClasses()},t.prototype.isOpen=function(){return this._open},t.prototype.open=function(){this._open||(this._open=!0,this._applyContainer(this.container),this._positionMenu(),this.openChange.emit(!0),this._setCloseHandlers())},t.prototype._setCloseHandlers=function(){var t=this;im(this._ngZone,this._document,this.autoClose,function(){return t.close()},this._closed$,this._menu?[this._menu.getNativeElement()]:[],this._anchor?[this._anchor.getNativeElement()]:[])},t.prototype.close=function(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.ngOnDestroy=function(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()},t.prototype.onKeyDown=function(t){var e=this,n=this._getMenuElements(),r=-1,i=!1,o=this._isEventFromToggle(t);if(o||n.forEach(function(n,o){n.contains(t.target)&&(i=!0),n===e._document.activeElement&&(r=o)}),o||i){switch(this.isOpen()||this.open(),t.which){case Xf.ArrowDown:r=Math.min(r+1,n.length-1);break;case Xf.ArrowUp:if(this._isDropup()&&-1===r){r=n.length-1;break}r=Math.max(r-1,0);break;case Xf.Home:r=0;break;case Xf.End:r=n.length-1}n[r].focus(),t.preventDefault()}},t.prototype._isDropup=function(){return this._elementRef.nativeElement.classList.contains("dropup")},t.prototype._isEventFromToggle=function(t){return this._anchor.getNativeElement().contains(t.target)},t.prototype._getMenuElements=function(){return null==this._menu?[]:this._menu.menuItems.filter(function(t){return!t.disabled}).map(function(t){return t.elementRef.nativeElement})},t.prototype._positionMenu=function(){this.isOpen()&&this._menu&&this._applyPlacementClasses(cm(this._anchor.anchorEl,this._bodyContainer||this._menuElement.nativeElement,this.placement,"body"===this.container))},t.prototype._resetContainer=function(){var t=this._renderer;if(this._menuElement){var e=this._menuElement.nativeElement;t.appendChild(this._elementRef.nativeElement,e),t.removeStyle(e,"position"),t.removeStyle(e,"transform")}this._bodyContainer&&(t.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)},t.prototype._applyContainer=function(t){if(void 0===t&&(t=null),this._resetContainer(),"body"===t){var e=this._renderer,n=this._menuElement.nativeElement,r=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(r,"position","absolute"),e.setStyle(n,"position","static"),e.appendChild(r,n),e.appendChild(this._document.body,r)}},t.prototype._applyPlacementClasses=function(t){if(this._menu){t||(t=Array.isArray(this.placement)?this.placement[0]:this.placement);var e=this._renderer,n=this._elementRef.nativeElement;e.removeClass(n,"dropup"),e.removeClass(n,"dropdown"),this.placement=t,this._menu.placement=t;var r=-1!==t.search("^top")?"dropup":"dropdown";e.addClass(n,r);var i=this._bodyContainer;i&&(e.removeClass(i,"dropup"),e.removeClass(i,"dropdown"),e.addClass(i,r))}},t}(),ym=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),bm=function(){function t(){this.backdrop=!0,this.keyboard=!0}return t.ngInjectableDef=J({factory:function(){return new t},token:t,providedIn:"root"}),t}(),xm=function(){return function(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}(),wm=function(){function t(t,e,n,r,i){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=r,this._componentFactoryResolver=i}return t.prototype.open=function(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),0,this._injector,this._contentRef.nodes)),this._windowRef},t.prototype.close=function(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef=null))},t.prototype._getContentRef=function(t,e){if(t){if(t instanceof ze){var n=this._viewContainerRef.createEmbeddedView(t,e);return new xm([n.rootNodes],n)}return new xm([[this._renderer.createText(""+t)]])}return new xm([])},t}(),Cm=function(){},_m=function(){function t(t){this._document=t}return t.prototype.compensate=function(){return this._isPresent()?this._adjustBody(this._getWidth()):Cm},t.prototype._adjustBody=function(t){var e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=r+t+"px",function(){return e.style["padding-right"]=n}},t.prototype._isPresent=function(){var t=this._document.body.getBoundingClientRect();return t.left+t.right<window.innerWidth},t.prototype._getWidth=function(){var t=this._document.createElement("div");t.className="modal-scrollbar-measure";var e=this._document.body;e.appendChild(t);var n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n},t.ngInjectableDef=J({factory:function(){return new t(_t(Qa))},token:t,providedIn:"root"}),t}(),Dm=function(){return function(){}}(),Sm=function(){function t(){}return t.prototype.close=function(t){},t.prototype.dismiss=function(t){},t}(),Em=function(){function t(t,e,n,r){var i=this;this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,t.instance.dismissEvent.subscribe(function(t){i.dismiss(t)}),this.result=new Promise(function(t,e){i._resolve=t,i._reject=e}),this.result.then(null,function(){})}return Object.defineProperty(t.prototype,"componentInstance",{get:function(){if(this._contentRef.componentRef)return this._contentRef.componentRef.instance},enumerable:!0,configurable:!0}),t.prototype.close=function(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())},t.prototype._dismiss=function(t){this._reject(t),this._removeModalElements()},t.prototype.dismiss=function(t){var e=this;if(this._windowCmptRef)if(this._beforeDismiss){var n=this._beforeDismiss();n&&n.then?n.then(function(n){!1!==n&&e._dismiss(t)},function(){}):!1!==n&&this._dismiss(t)}else this._dismiss(t)},t.prototype._removeModalElements=function(){var t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){var e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null},t}(),km=function(){var t={BACKDROP_CLICK:0,ESC:1};return t[t.BACKDROP_CLICK]="BACKDROP_CLICK",t[t.ESC]="ESC",t}(),Am=function(){function t(t,e){this._document=t,this._elRef=e,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ue}return t.prototype.backdropClick=function(t){!0===this.backdrop&&this._elRef.nativeElement===t.target&&this.dismiss(km.BACKDROP_CLICK)},t.prototype.escKey=function(t){this.keyboard&&!t.defaultPrevented&&this.dismiss(km.ESC)},t.prototype.dismiss=function(t){this.dismissEvent.emit(t)},t.prototype.ngOnInit=function(){this._elWithFocus=this._document.activeElement},t.prototype.ngAfterViewInit=function(){if(!this._elRef.nativeElement.contains(document.activeElement)){var t=this._elRef.nativeElement.querySelector("[ngbAutofocus]"),e=sm(this._elRef.nativeElement)[0];(t||e||this._elRef.nativeElement).focus()}},t.prototype.ngOnDestroy=function(){var t=this._document.body,e=this._elWithFocus;(e&&e.focus&&t.contains(e)?e:t).focus(),this._elWithFocus=null},t}(),Om=function(){function t(t,e,n,r,i){var s=this;this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=r,this._rendererFactory=i,this._activeWindowCmptHasChanged=new o.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","backdrop","centered","keyboard","size","windowClass"],this._windowCmpts=[],this._activeWindowCmptHasChanged.subscribe(function(){if(s._windowCmpts.length){var t=s._windowCmpts[s._windowCmpts.length-1];am(t.location.nativeElement,s._activeWindowCmptHasChanged),s._revertAriaHidden(),s._setAriaHidden(t.location.nativeElement)}})}return t.prototype.open=function(t,e,n,r){var i=this,o=Sf(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),a=this._scrollBar.compensate(),l=function(){i._modalRefs.length||(s.removeClass(i._document.body,"modal-open"),i._revertAriaHidden())};if(!o)throw new Error('The specified modal container "'+(r.container||"body")+'" was not found in the DOM.');var u=new Sm,c=this._getContentRef(t,r.injector||e,n,u),h=!1!==r.backdrop?this._attachBackdrop(t,o):null,p=this._attachWindowComponent(t,o,c),d=new Em(p,c,h,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(p),d.result.then(a,a),d.result.then(l,l),u.close=function(t){d.close(t)},u.dismiss=function(t){d.dismiss(t)},this._applyWindowOptions(p.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),h&&h.instance&&this._applyBackdropOptions(h.instance,r),d},t.prototype.dismissAll=function(t){this._modalRefs.forEach(function(e){return e.dismiss(t)})},t.prototype.hasOpenModals=function(){return this._modalRefs.length>0},t.prototype._attachBackdrop=function(t,e){var n=t.resolveComponentFactory(Dm).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n},t.prototype._attachWindowComponent=function(t,e,n){var r=t.resolveComponentFactory(Am).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r},t.prototype._applyWindowOptions=function(t,e){this._windowAttributes.forEach(function(n){Sf(e[n])&&(t[n]=e[n])})},t.prototype._applyBackdropOptions=function(t,e){this._backdropAttributes.forEach(function(n){Sf(e[n])&&(t[n]=e[n])})},t.prototype._getContentRef=function(t,e,n,r){return n?n instanceof ze?this._createFromTemplateRef(n,r):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,r):new xm([])},t.prototype._createFromTemplateRef=function(t,e){var n=t.createEmbeddedView({$implicit:e,close:function(t){e.close(t)},dismiss:function(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new xm([n.rootNodes],n)},t.prototype._createFromString=function(t){var e=this._document.createTextNode(""+t);return new xm([[e]])},t.prototype._createFromComponent=function(t,e,n,r){var i=t.resolveComponentFactory(n),o=Rt.create({providers:[{provide:Sm,useValue:r}],parent:e}),s=i.create(o);return this._applicationRef.attachView(s.hostView),new xm([[s.location.nativeElement]],s.hostView,s)},t.prototype._setAriaHidden=function(t){var e=this,n=t.parentElement;n&&t!==this._document.body&&(Array.from(n.children).forEach(function(n){n!==t&&"SCRIPT"!==n.nodeName&&(e._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))},t.prototype._revertAriaHidden=function(){this._ariaHiddenValues.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()},t.prototype._registerModalRef=function(t){var e=this,n=function(){var n=e._modalRefs.indexOf(t);n>-1&&e._modalRefs.splice(n,1)};this._modalRefs.push(t),t.result.then(n,n)},t.prototype._registerWindowCmpt=function(t){var e=this;this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(function(){var n=e._windowCmpts.indexOf(t);n>-1&&(e._windowCmpts.splice(n,1),e._activeWindowCmptHasChanged.next())})},t.ngInjectableDef=J({factory:function(){return new t(_t(Gn),_t(Nt),_t(Qa),_t(_m),_t(ce))},token:t,providedIn:"root"}),t}(),Tm=function(){function t(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}return t.prototype.open=function(t,e){void 0===e&&(e={});var n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)},t.prototype.dismissAll=function(t){this._modalStack.dismissAll(t)},t.prototype.hasOpenModals=function(){return this._modalStack.hasOpenModals()},t.ngInjectableDef=J({factory:function(){return new t(_t(ne),_t(Nt),_t(Om),_t(bm))},token:t,providedIn:"root"}),t}(),Mm=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Pm=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Fm=function(){function t(t,e){this.open=t,this.close=e,e||(this.close=t)}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}(),Nm={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Im=function(t){return t>0?yf(t):function(t){return t}};function Rm(t,e,n,r,i,o,a,l){void 0===a&&(a=0),void 0===l&&(l=0);var u=function(t,e){void 0===e&&(e=Nm);var n=(t||"").trim();if(0===n.length)return[];var r=n.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var n=e[t[0]]||t;return new Fm(n[0],n[1])}),i=r.filter(function(t){return t.isManual()});if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===u.length&&u[0].isManual())return function(){};var c=function(t,e,n,r){return new s.a(function(i){var o=[],s=function(){return i.next(!0)},a=function(){return i.next(!1)},l=function(){return i.next(!r())};return n.forEach(function(n){n.open===n.close?o.push(t.listen(e,n.open,l)):o.push(t.listen(e,n.open,s),t.listen(e,n.close,a))}),function(){o.forEach(function(t){return t()})}})}(t,e,u,r).pipe(function(t,e,n){return function(r){var i=null,o=r.pipe(D(function(t){return{open:t}}),yl(function(t){var e=n();return e===t.open||i&&i.open!==e?(i&&i.open!==t.open&&(i=null),!1):(i=t,!0)}),z());return N(o.pipe(yl(function(t){return t.open}),Im(t)),o.pipe(yl(function(t){return!t.open}),Im(e))).pipe(yl(function(t){return t===i&&(i=null,t.open!==n())}),D(function(t){return t.open}))}}(a,l,r)).subscribe(function(t){return t?i():o()});return function(){return c.unsubscribe()}}var Lm=function(){function t(){this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}return t.ngInjectableDef=J({factory:function(){return new t},token:t,providedIn:"root"}),t}(),jm=0,Bm=function(){function t(){}return t.prototype.isTitleTemplate=function(){return this.title instanceof ze},t}(),Vm=function(){function t(t,e,n,r,i,o,s,a,l){var u=this;this._elementRef=t,this._renderer=e,this._ngZone=s,this._document=a,this._changeDetector=l,this.shown=new Ue,this.hidden=new Ue,this._ngbPopoverWindowId="ngb-popover-"+jm++,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new wm(Bm,n,i,e,r),this._zoneSubscription=s.onStable.subscribe(function(){u._windowRef&&cm(u._elementRef.nativeElement,u._windowRef.location.nativeElement,u.placement,"body"===u.container,"bs-popover")})}return t.prototype._isDisabled=function(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle},t.prototype.open=function(t){var e=this;this._windowRef||this._isDisabled()||(this._windowRef=this._popupService.open(this.ngbPopover,t),this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=t,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.markForCheck(),im(this._ngZone,this._document,this.autoClose,function(){return e.close()},this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())},t.prototype.close=function(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=Rm(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)},t.prototype.ngOnChanges=function(t){(t.ngbPopover||t.popoverTitle||t.disablePopover)&&this._isDisabled()&&this.close()},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t}(),Um=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),zm=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Hm=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Wm=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Gm=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Xm=function(){function t(){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}return t.ngInjectableDef=J({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Jm=0,Km=function(){return function(){}}(),qm=function(){function t(t,e,n,r,i,o,s,a,l){var u=this;this._elementRef=t,this._renderer=e,this._ngZone=s,this._document=a,this._changeDetector=l,this.shown=new Ue,this.hidden=new Ue,this._ngbTooltipWindowId="ngb-tooltip-"+Jm++,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new wm(Km,n,i,e,r),this._zoneSubscription=s.onStable.subscribe(function(){u._windowRef&&cm(u._elementRef.nativeElement,u._windowRef.location.nativeElement,u.placement,"body"===u.container,"bs-tooltip")})}return Object.defineProperty(t.prototype,"ngbTooltip",{get:function(){return this._ngbTooltip},set:function(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()},enumerable:!0,configurable:!0}),t.prototype.open=function(t){var e=this;this._windowRef||!this._ngbTooltip||this.disableTooltip||(this._windowRef=this._popupService.open(this._ngbTooltip,t),this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.markForCheck(),im(this._ngZone,this._document,this.autoClose,function(){return e.close()},this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())},t.prototype.close=function(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=Rm(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t}(),$m=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Zm=function(){function t(){this.highlightClass="ngb-highlight"}return t.prototype.ngOnChanges=function(t){var e,n=_f(this.result),r=n.toLowerCase(),i=_f(this.term).toLowerCase(),o=0;this.parts=i.length>0?r.split(new RegExp("("+(e=i,e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))+")")).map(function(t){var e=n.substr(o,t.length);return o+=t.length,e}):[n]},t}(),Ym=function(){function t(){this.activeIdx=0,this.focusFirst=!0,this.formatter=_f,this.selectEvent=new Ue,this.activeChangeEvent=new Ue}return t.prototype.hasActive=function(){return this.activeIdx>-1&&this.activeIdx<this.results.length},t.prototype.getActive=function(){return this.results[this.activeIdx]},t.prototype.markActive=function(t){this.activeIdx=t,this._activeChanged()},t.prototype.next=function(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()},t.prototype.prev=function(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()},t.prototype.resetActive=function(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()},t.prototype.select=function(t){this.selectEvent.emit(t)},t.prototype.ngOnInit=function(){this.resetActive()},t.prototype._activeChanged=function(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)},t}(),Qm=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),tg=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),eg=Xr({encapsulation:2,styles:["ngb-alert{display:block}"],data:{}});function ng(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.closeHandler()&&r),r},null,null)),(t()(),Ci(1,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),jo(-1,null,["\xd7"]))],null,null)}function rg(t){return Uo(2,[(t()(),wi(16777216,null,null,1,null,ng)),co(1,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),Fo(null,0)],function(t,e){t(e,1,0,e.component.dismissible)},null)}function ig(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-alert",[["class","alert"],["role","alert"]],[[2,"alert-dismissible",null]],null,null,rg,eg)),co(1,638976,null,0,Of,[Af,pe,ae],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,Zi(e,1).dismissible)})}var og=Vi("ngb-alert",Of,ig,{dismissible:"dismissible",type:"type"},{close:"close"},["*"]),sg=Xr({encapsulation:2,styles:["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"],data:{}});function ag(t){return Uo(0,[(t()(),Ci(0,0,null,null,0,"div",[["class","ngb-dp-weekday ngb-dp-showweek"]],null,null,null,null,null))],null,null)}function lg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"div",[["class","ngb-dp-weekday small"]],null,null,null,null,null)),(t()(),jo(1,null,[" "," "]))],null,function(t,e){t(e,1,0,e.component.i18n.getWeekdayShortName(e.context.$implicit))})}function ug(t){return Uo(0,[(t()(),Ci(0,0,null,null,4,"div",[["class","ngb-dp-week ngb-dp-weekdays bg-light"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,ag)),co(2,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,lg)),co(4,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.showWeekNumbers),t(e,4,0,n.month.weekdays)},null)}function cg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"div",[["class","ngb-dp-week-number small text-muted"]],null,null,null,null,null)),(t()(),jo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.i18n.getWeekNumerals(e.parent.parent.context.$implicit.number))})}function hg(t){return Uo(0,[(t()(),wi(0,null,null,0))],null,null)}function pg(t){return Uo(0,[(t()(),wi(16777216,null,null,1,null,hg)),co(1,540672,null,0,qa,[Yn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),(t()(),wi(0,null,null,0))],function(t,e){t(e,1,0,e.parent.context.$implicit.context,e.component.dayTemplate)},null)}function dg(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"div",[["class","ngb-dp-day"],["role","gridcell"]],[[2,"disabled",null],[8,"tabIndex",0],[2,"hidden",null],[2,"ngb-dp-today",null],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.doSelect(t.context.$implicit)&&r),r},null,null)),(t()(),wi(16777216,null,null,1,null,pg)),co(2,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,!e.context.$implicit.hidden)},function(t,e){t(e,0,0,e.context.$implicit.context.disabled,e.context.$implicit.tabindex,e.context.$implicit.hidden,e.context.$implicit.context.today,e.context.$implicit.ariaLabel)})}function fg(t){return Uo(0,[(t()(),Ci(0,0,null,null,4,"div",[["class","ngb-dp-week"],["role","row"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,cg)),co(2,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,dg)),co(4,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.showWeekNumbers),t(e,4,0,e.parent.context.$implicit.days)},null)}function mg(t){return Uo(0,[(t()(),wi(16777216,null,null,1,null,fg)),co(1,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(0,null,null,0))],function(t,e){t(e,1,0,!e.context.$implicit.collapsed)},null)}function gg(t){return Uo(0,[(t()(),wi(16777216,null,null,1,null,ug)),co(1,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,mg)),co(3,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.showWeekdays),t(e,3,0,n.month.weeks)},null)}var vg=Xr({encapsulation:2,styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],data:{}});function yg(t){return Uo(2,[(t()(),jo(0,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n.i18n.getDayNumerals(n.date))})}var bg=Xr({encapsulation:2,styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"],data:{}});function xg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-datepicker-navigation-select",[["class","ngb-dp-navigation-select"]],null,[[null,"select"]],function(t,e,n){var r=!0;return"select"===e&&(r=!1!==t.component.select.emit(n)&&r),r},Og,Eg)),co(1,49152,null,0,pm,[Hf],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],years:[3,"years"]},{select:"select"})],function(t,e){var n=e.component;t(e,1,0,n.date,n.disabled,n.selectBoxes.months,n.selectBoxes.years)},null)}function wg(t){return Uo(0,[(t()(),Ci(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function Cg(t){return Uo(0,[(t()(),Ci(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function _g(t){return Uo(0,[(t()(),wi(16777216,null,null,1,null,wg)),co(1,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(2,0,null,null,1,"div",[["class","ngb-dp-month-name"]],null,null,null,null,null)),(t()(),jo(3,null,[" "," "," "])),(t()(),wi(16777216,null,null,1,null,Cg)),co(5,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(0,null,null,0))],function(t,e){var n=e.component;t(e,1,0,e.context.index>0),t(e,5,0,e.context.index!==n.months.length-1)},function(t,e){var n=e.component;t(e,3,0,n.i18n.getMonthFullName(e.context.$implicit.number,e.context.$implicit.year),n.i18n.getYearNumerals(e.context.$implicit.year))})}function Dg(t){return Uo(0,[(t()(),wi(16777216,null,null,1,null,_g)),co(1,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),wi(0,null,null,0))],function(t,e){t(e,1,0,e.component.months)},null)}function Sg(t){return Uo(2,[(t()(),Ci(0,0,null,null,2,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"button",[["aria-label","Previous month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Previous month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==i.navigate.emit(i.navigation.PREV)&&r),r},null,null)),(t()(),Ci(2,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,xg)),co(4,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,Dg)),co(6,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(7,0,null,null,2,"div",[["class","ngb-dp-arrow right"]],null,null,null,null,null)),(t()(),Ci(8,0,null,null,1,"button",[["aria-label","Next month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Next month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==i.navigate.emit(i.navigation.NEXT)&&r),r},null,null)),(t()(),Ci(9,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.showSelect),t(e,6,0,!n.showSelect)},function(t,e){var n=e.component;t(e,1,0,n.prevDisabled),t(e,8,0,n.nextDisabled)})}var Eg=Xr({encapsulation:2,styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"],data:{}});function kg(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"option",[],[[1,"aria-label",0]],null,null,null,null)),co(1,147456,null,0,Ad,[ae,pe,[8,null]],{value:[0,"value"]},null),co(2,147456,null,0,Md,[ae,pe,[8,null]],{value:[0,"value"]},null),(t()(),jo(3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){var n=e.component;t(e,0,0,n.i18n.getMonthFullName(e.context.$implicit,null==n.date?null:n.date.year)),t(e,3,0,n.i18n.getMonthShortName(e.context.$implicit,null==n.date?null:n.date.year))})}function Ag(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"option",[],null,null,null,null,null)),co(1,147456,null,0,Ad,[ae,pe,[8,null]],{value:[0,"value"]},null),co(2,147456,null,0,Md,[ae,pe,[8,null]],{value:[0,"value"]},null),(t()(),jo(3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){t(e,3,0,e.component.i18n.getYearNumerals(e.context.$implicit))})}function Og(t){return Uo(2,[(t()(),Ci(0,0,null,null,2,"select",[["aria-label","Select month"],["class","custom-select"],["title","Select month"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==t.component.changeMonth(n.target.value)&&r),r},null,null)),(t()(),wi(16777216,null,null,1,null,kg)),co(2,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),Ci(3,0,null,null,2,"select",[["aria-label","Select year"],["class","custom-select"],["title","Select year"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==t.component.changeYear(n.target.value)&&r),r},null,null)),(t()(),wi(16777216,null,null,1,null,Ag)),co(5,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.months),t(e,5,0,n.years)},function(t,e){var n=e.component;t(e,0,0,n.disabled,null==n.date?null:n.date.month),t(e,3,0,n.disabled,null==n.date?null:n.date.year)})}var Tg=Xr({encapsulation:2,styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}.ngb-dp-month{pointer-events:none}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}ngb-datepicker-month-view{pointer-events:auto}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month>.ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month>ngb-datepicker-month-view>.ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month>ngb-datepicker-month-view>.ngb-dp-week:last-child{padding-bottom:.25rem}.ngb-dp-months{display:-ms-flexbox;display:flex}"],data:{}});function Mg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"div",[["class","btn-light"],["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"active",null]],null,null,yg,vg)),co(1,49152,null,0,hm,[Hf],{currentMonth:[0,"currentMonth"],date:[1,"date"],disabled:[2,"disabled"],focused:[3,"focused"],selected:[4,"selected"]},null)],function(t,e){t(e,1,0,e.context.currentMonth,e.context.date,e.context.disabled,e.context.focused,e.context.selected)},function(t,e){t(e,0,0,Zi(e,1).selected,Zi(e,1).selected,Zi(e,1).isMuted(),Zi(e,1).isMuted(),Zi(e,1).focused)})}function Pg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-datepicker-navigation",[],null,[[null,"navigate"],[null,"select"]],function(t,e,n){var r=!0,i=t.component;return"navigate"===e&&(r=!1!==i.onNavigateEvent(n)&&r),"select"===e&&(r=!1!==i.onNavigateDateSelect(n)&&r),r},Sg,bg)),co(1,49152,null,0,em,[Hf],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],showSelect:[3,"showSelect"],prevDisabled:[4,"prevDisabled"],nextDisabled:[5,"nextDisabled"],selectBoxes:[6,"selectBoxes"]},{navigate:"navigate",select:"select"})],function(t,e){var n=e.component;t(e,1,0,n.model.firstDate,n.model.disabled,n.model.months,"select"===n.model.navigation,n.model.prevDisabled,n.model.nextDisabled,n.model.selectBoxes)},null)}function Fg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"div",[["class","ngb-dp-month-name bg-light"]],null,null,null,null,null)),(t()(),jo(1,null,[" "," "," "]))],null,function(t,e){var n=e.component;t(e,1,0,n.i18n.getMonthFullName(e.parent.context.$implicit.number,e.parent.context.$implicit.year),n.i18n.getYearNumerals(e.parent.context.$implicit.year))})}function Ng(t){return Uo(0,[(t()(),Ci(0,0,null,null,4,"div",[["class","ngb-dp-month"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Fg)),co(2,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(3,0,null,null,1,"ngb-datepicker-month-view",[["role","grid"]],null,[[null,"select"]],function(t,e,n){var r=!0;return"select"===e&&(r=!1!==t.component.onDateSelect(n)&&r),r},gg,sg)),co(4,49152,null,0,tm,[Hf],{dayTemplate:[0,"dayTemplate"],month:[1,"month"],showWeekdays:[2,"showWeekdays"],showWeekNumbers:[3,"showWeekNumbers"]},{select:"select"})],function(t,e){var n=e.component;t(e,2,0,"none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),t(e,4,0,n.dayTemplate||Zi(e.parent,1),e.context.$implicit,n.showWeekdays,n.showWeekNumbers)},null)}function Ig(t){return Uo(0,[(t()(),wi(0,null,null,0))],null,null)}function Rg(t){return Uo(2,[Ao(402653184,1,{_monthsEl:0}),(t()(),wi(0,[["dt",2]],null,0,null,Mg)),(t()(),Ci(2,0,null,null,2,"div",[["class","ngb-dp-header bg-light"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Pg)),co(4,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(5,0,[[1,0],["months",1]],null,2,"div",[["class","ngb-dp-months"]],null,[[null,"keydown"]],function(t,e,n){var r=!0;return"keydown"===e&&(r=!1!==t.component.onKeyDown(n)&&r),r},null,null)),(t()(),wi(16777216,null,null,1,null,Ng)),co(7,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),wi(16777216,null,null,1,null,Ig)),co(9,540672,null,0,qa,[Yn],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(t,e){var n=e.component;t(e,4,0,"none"!==n.navigation),t(e,7,0,n.model.months),t(e,9,0,n.footerTemplate)},null)}function Lg(t){return Uo(0,[(t()(),Ci(0,0,null,null,4,"ngb-datepicker",[],null,null,null,Rg,Tg)),po(5120,null,pd,function(t){return[t]},[Qf]),po(512,null,Gf,Gf,[jf,Hf]),po(512,null,Jf,Jf,[Gf,jf]),co(4,1818624,null,0,Qf,[Jf,Gf,jf,Hf,qf,tr,ae,Zf,An],null,null)],function(t,e){t(e,4,0)},null)}var jg=Vi("ngb-datepicker",Qf,Lg,{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},{navigate:"navigate",select:"select"},[]),Bg=Xr({encapsulation:2,styles:["ngb-popover-window.bs-popover-bottom .arrow,ngb-popover-window.bs-popover-top .arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left .arrow,ngb-popover-window.bs-popover-top-left .arrow{left:2em}ngb-popover-window.bs-popover-bottom-right .arrow,ngb-popover-window.bs-popover-top-right .arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left .arrow,ngb-popover-window.bs-popover-right .arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top .arrow,ngb-popover-window.bs-popover-right-top .arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom .arrow,ngb-popover-window.bs-popover-right-bottom .arrow{top:auto;bottom:.7em}"],data:{}});function Vg(t){return Uo(0,[(t()(),jo(0,null,["",""]))],null,function(t,e){t(e,0,0,e.component.title)})}function Ug(t){return Uo(0,[(t()(),wi(0,null,null,0))],null,null)}function zg(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"h3",[["class","popover-header"]],null,null,null,null,null)),(t()(),wi(0,[["simpleTitle",2]],null,0,null,Vg)),(t()(),wi(16777216,null,null,1,null,Ug)),co(3,540672,null,0,qa,[Yn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null)],function(t,e){var n=e.component;t(e,3,0,n.context,n.isTitleTemplate()?n.title:Zi(e,1))},null)}function Hg(t){return Uo(2,[(t()(),Ci(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,zg)),co(2,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(3,0,null,null,1,"div",[["class","popover-body"]],null,null,null,null,null)),Fo(null,0)],function(t,e){t(e,2,0,null!=e.component.title)},null)}function Wg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-popover-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,Hg,Bg)),co(1,49152,null,0,Bm,[],null,null)],null,function(t,e){t(e,0,0,"popover"+(Zi(e,1).popoverClass?" "+Zi(e,1).popoverClass:""),Zi(e,1).id)})}var Gg=Vi("ngb-popover-window",Bm,Wg,{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},{},["*"]),Xg=Xr({encapsulation:2,styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],data:{}});function Jg(t){return Uo(2,[(t()(),Ci(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"div",[["class","tooltip-inner"]],null,null,null,null,null)),Fo(null,0)],null,null)}function Kg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-tooltip-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,Jg,Xg)),co(1,49152,null,0,Km,[],null,null)],null,function(t,e){t(e,0,0,"tooltip show"+(Zi(e,1).tooltipClass?" "+Zi(e,1).tooltipClass:""),Zi(e,1).id)})}var qg=Vi("ngb-tooltip-window",Km,Kg,{id:"id",tooltipClass:"tooltipClass"},{},["*"]),$g=Xr({encapsulation:2,styles:[],data:{}});function Zg(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-highlight",[],null,null,null,av,rv)),co(1,573440,null,0,Zm,[],{result:[0,"result"],term:[1,"term"]},null)],function(t,e){var n=e.context.formatter(e.context.result);t(e,1,0,n,e.context.term)},null)}function Yg(t){return Uo(0,[(t()(),wi(0,null,null,0))],null,null)}function Qg(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"button",[["class","dropdown-item"],["role","option"],["type","button"]],[[8,"id",0],[2,"active",null]],[[null,"mouseenter"],[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==i.markActive(t.context.index)&&r),"click"===e&&(r=!1!==i.select(t.context.$implicit)&&r),r},null,null)),(t()(),wi(16777216,null,null,2,null,Yg)),co(2,540672,null,0,qa,[Yn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),Ro(3,{result:0,term:1,formatter:2})],function(t,e){var n=e.component,r=t(e,3,0,e.context.$implicit,n.term,n.formatter);t(e,2,0,r,n.resultTemplate||Zi(e.parent,0))},function(t,e){var n=e.component;t(e,0,0,n.id+"-"+e.context.index,e.context.index===n.activeIdx)})}function tv(t){return Uo(0,[(t()(),wi(0,[["rt",2]],null,0,null,Zg)),(t()(),wi(16777216,null,null,1,null,Qg)),co(2,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.results)},null)}function ev(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-typeahead-window",[["class","dropdown-menu show"],["role","listbox"]],[[8,"id",0]],[[null,"mousedown"]],function(t,e,n){var r=!0;return"mousedown"===e&&(r=!1!==n.preventDefault()&&r),r},tv,$g)),co(1,114688,null,0,Ym,[],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,Zi(e,1).id)})}var nv=Vi("ngb-typeahead-window",Ym,ev,{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate"},{selectEvent:"select",activeChangeEvent:"activeChange"},[]),rv=Xr({encapsulation:2,styles:[".ngb-highlight{font-weight:700}"],data:{}});function iv(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),jo(1,null,["",""]))],null,function(t,e){t(e,0,0,e.component.highlightClass),t(e,1,0,e.parent.context.$implicit)})}function ov(t){return Uo(0,[(t()(),jo(0,null,["",""]))],null,function(t,e){t(e,0,0,e.parent.context.$implicit)})}function sv(t){return Uo(0,[(t()(),wi(16777216,null,null,1,null,iv)),co(1,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),wi(0,[["even",2]],null,0,null,ov))],function(t,e){t(e,1,0,e.context.odd,Zi(e,2))},null)}function av(t){return Uo(2,[(t()(),wi(16777216,null,null,1,null,sv)),co(1,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,1,0,e.component.parts)},null)}var lv=Xr({encapsulation:2,styles:[],data:{}});function uv(t){return Uo(0,[],null,null)}function cv(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-modal-backdrop",[["style","z-index: 1050"]],[[8,"className",0]],null,null,uv,lv)),co(1,49152,null,0,Dm,[],null,null)],null,function(t,e){t(e,0,0,"modal-backdrop fade show"+(Zi(e,1).backdropClass?" "+Zi(e,1).backdropClass:""))})}var hv=Vi("ngb-modal-backdrop",Dm,cv,{backdropClass:"backdropClass"},{},[]),pv=Xr({encapsulation:2,styles:[],data:{}});function dv(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"div",[["role","document"]],[[8,"className",0]],null,null,null,null)),(t()(),Ci(1,0,null,null,1,"div",[["class","modal-content"]],null,null,null,null,null)),Fo(null,0)],null,function(t,e){var n=e.component;t(e,0,0,"modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":""))})}function fv(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ngb-modal-window",[["role","dialog"],["tabindex","-1"]],[[8,"className",0],[1,"aria-modal",0],[1,"aria-labelledby",0]],[[null,"keyup.esc"],[null,"click"]],function(t,e,n){var r=!0;return"keyup.esc"===e&&(r=!1!==Zi(t,1).escKey(n)&&r),"click"===e&&(r=!1!==Zi(t,1).backdropClick(n)&&r),r},dv,pv)),co(1,4440064,null,0,Am,[Qa,ae],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,"modal fade show d-block"+(Zi(e,1).windowClass?" "+Zi(e,1).windowClass:""),!0,Zi(e,1).ariaLabelledBy)})}var mv=Vi("ngb-modal-window",Am,fv,{ariaLabelledBy:"ariaLabelledBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",size:"size",windowClass:"windowClass"},{dismissEvent:"dismiss"},["*"]),gv=Xr({encapsulation:2,styles:[],data:{}});function vv(t){return Uo(0,[(t()(),Ci(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),co(1,212992,null,0,Np,[Fp,Yn,ne,[8,null],tr],null,null)],function(t,e){t(e,1,0)},null)}function yv(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"ng-component",[],null,null,null,vv,gv)),co(1,49152,null,0,Ac,[],null,null)],null,null)}var bv=Vi("ng-component",Ac,yv,{},{},[]),xv=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),wv=Xr({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block;width:100%;min-width:500px;border:1px solid var(--color-3);border-radius:5px;position:relative;margin-bottom:24px}[border=false][_nghost-%COMP%]{border:0}[_nghost-%COMP%] .panel-title[_ngcontent-%COMP%]{background-color:var(--panel-title);color:var(--text);border-radius:4px 4px 0 0;padding:12px 22px;font-size:18px;text-transform:uppercase}[_nghost-%COMP%] .panel-body[_ngcontent-%COMP%]{background-color:var(--panel-body);border-radius:0 0 4px 4px;color:var(--text);overflow-x:auto}[_nghost-%COMP%] .panel-body.no-title[_ngcontent-%COMP%]{border-radius:4px}"]],data:{}});function Cv(t){return Uo(0,[(t()(),Ci(0,0,[["title",1]],null,1,"div",[["class","panel-title"]],[[8,"hidden",0]],null,null,null,null)),Fo(null,0),(t()(),Ci(2,0,null,null,1,"div",[["class","panel-body"]],[[2,"no-title",null]],null,null,null,null)),Fo(null,1)],null,function(t,e){t(e,0,0,0===Zi(e,0).children.length),t(e,2,0,0===Zi(e,0).children.length)})}function _v(t){return t?t.replace(/\r\n|\r/g,"\n"):t}var Dv=function(){function t(t,e){this._differs=t,this._ngZone=e,this.className="",this.name="codemirror",this.autoFocus=!1,this.preserveScrollPosition=!1,this.cursorActivity=new Ue,this.focusChange=new Ue,this.scroll=new Ue,this.value="",this.disabled=!1,this.isFocused=!1,this.onChange=function(t){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"options",{set:function(t){this._options=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;if(this.ref){var e=n("VrN/").fromTextArea;this._ngZone.runOutsideAngular(function(){t.codeMirror=e(t.ref.nativeElement,t._options),t.codeMirror.on("cursorActivity",function(e){return t._ngZone.run(function(){return t.cursorActive(e)})}),t.codeMirror.on("scroll",t.scrollChanged.bind(t)),t.codeMirror.on("blur",function(){return t._ngZone.run(function(){return t.focusChanged(!1)})}),t.codeMirror.on("focus",function(){return t._ngZone.run(function(){return t.focusChanged(!0)})}),t.codeMirror.on("change",function(e,n){return t._ngZone.run(function(){return t.codemirrorValueChanged(e,n)})}),t.codeMirror.setValue(t.value)})}},t.prototype.ngDoCheck=function(){var t=this;if(this._differ){var e=this._differ.diff(this._options);e&&(e.forEachChangedItem(function(e){return t.setOptionIfChanged(e.key,e.currentValue)}),e.forEachAddedItem(function(e){return t.setOptionIfChanged(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){return t.setOptionIfChanged(e.key,e.currentValue)}))}},t.prototype.ngOnDestroy=function(){this.codeMirror&&this.codeMirror.toTextArea()},t.prototype.codemirrorValueChanged=function(t,e){"setValue"!==e.origin&&(this.value=t.getValue(),this.onChange(this.value))},t.prototype.setOptionIfChanged=function(t,e){this.codeMirror&&this.codeMirror.setOption(t,e)},t.prototype.focusChanged=function(t){this.onTouched(),this.isFocused=t,this.focusChange.emit(t)},t.prototype.scrollChanged=function(t){this.scroll.emit(t.getScrollInfo())},t.prototype.cursorActive=function(t){this.cursorActivity.emit(t)},t.prototype.writeValue=function(t){if(null!=t)if(this.codeMirror){var e=this.codeMirror.getValue();if(t!==e&&_v(e)!==_v(t))if(this.value=t,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=t},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t,this.setOptionIfChanged("readOnly",this.disabled)},t}(),Sv=function(){return function(){}}(),Ev=Xr({encapsulation:2,styles:[],data:{}});function kv(t){return Uo(2,[Ao(402653184,1,{ref:0}),(t()(),Ci(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)),(t()(),jo(-1,null,[" "]))],null,function(t,e){var n=e.component;t(e,1,0,n.name,bi(1,"ngx-codemirror ",n.className,""),n.isFocused,n.autoFocus)})}var Av=n("i+I1"),Ov=n("KWWs"),Tv=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Mv=/^https?:\/\/[^\s]+$/,Pv="$A-Z_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\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\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\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-\u0c33\u0c35-\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-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\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-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\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",Fv=RegExp("^["+Pv+"]["+Pv+"0-9\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19b0-\u19c0\u19c8\u19c9\u19d0-\u19d9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f1\ua900-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f]*$"),Nv=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/,Iv={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},Rv=function(t){var e=Iv[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},Lv=function(){function t(t,e,n,r,i){this.el=t,this.renderer=e,this.jsonParser=n,this.notifService=r,this.zone=i,this.autoCollapse=!1,this.go=new Ue,this.edit=new Ue,this.remove=new Ue,this.gap="",this.listener=null,this.editJson="",this.editorVisible=!1,this.removing=!1,this.editorOptions={lineNumbers:!0,theme:"mongoku",mode:"javascript",smartIndent:!1,extraKeys:{"Ctrl-Enter":this.outsideSave.bind(this),"Cmd-Enter":this.outsideSave.bind(this)}}}return t.prototype.ngOnInit=function(){var t=this.createView("_",{_:this.json}),e=this.el.nativeElement.querySelector(".pretty-json");this.renderer.appendChild(e,t),this.listener=this.renderer.listen(this.el.nativeElement,"click",this.collapse.bind(this))},t.prototype.ngOnDestroy=function(){this.listener&&this.listener()},t.prototype.enableEditor=function(){this.collapseAll(!1),this.editJson=this.el.nativeElement.querySelector(".pretty-json").innerText.replace(/(\s{2,})\n/g,"$1"),this.editorVisible=!0},t.prototype.disableEditor=function(){this.editorVisible=!1,this.editJson=""},t.prototype.updateEditor=function(){var t=this;this.el.nativeElement.querySelectorAll(".CodeMirror-lines .CodeMirror-code > div.error").forEach(function(e){return t.renderer.removeClass(e,"error")})},t.prototype.outsideSave=function(){var t=this;this.zone.run(function(){t.save()})},t.prototype.save=function(){try{var t=this.jsonParser.parse(this.editJson,!1);this.disableEditor(),this.edit.emit(t)}catch(n){if("number"==typeof n.lineNumber){var e=this.el.nativeElement.querySelector(".CodeMirror-lines .CodeMirror-code > div:nth-child("+n.lineNumber+")");this.renderer.addClass(e,"error")}this.notifService.notifyError('"'+n.description+'" at column '+n.column)}},t.prototype.showRemove=function(){this.removing=!0},t.prototype.cancelRemove=function(){this.removing=!1},t.prototype.confirmRemove=function(){this.remove.emit()},t.prototype.goToDocument=function(t){t.preventDefault(),this.go.emit(this.json._id.$value)},t.prototype.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},t.prototype.element=function(t,e,n){var r=this.renderer.createElement(t);if(e)for(var i=0,o=e.split(" ");i<o.length;i++)this.renderer.addClass(r,o[i]);return n&&("string"==typeof n&&(n=this.text(n)),this.renderer.appendChild(r,n)),r},t.prototype.span=function(t,e){return this.element("span",t,e)},t.prototype.text=function(t){return this.renderer.createText(t)},t.prototype.quote=function(t){var e,n=this.span("value quoted");return Tv.lastIndex=0,Tv.test(t)&&(t=t.replace(Tv,Rv)),Mv.test(t)?(e=this.element("a","string"),this.renderer.setAttribute(e,"href",t)):e=this.span("string"),this.renderer.appendChild(e,this.text(t)),this.renderer.appendChild(n,this.text('"')),this.renderer.appendChild(n,e),this.renderer.appendChild(n,this.text('"')),n},t.prototype.prop=function(t){return!Nv.test(t)&&Fv.test(t)||(t='"'+t.replace(Tv,Rv)+'"'),this.element("var",null,t)},t.prototype.fnCall=function(t,e,n){var r=this,i=this.span("call "+n);return this.renderer.appendChild(i,this.text(t+"(")),e.forEach(function(t,n){r.renderer.appendChild(i,t),n<e.length-1&&r.renderer.appendChild(i,r.text(", "))}),this.renderer.appendChild(i,this.text(")")),i},t.prototype.createView=function(t,e){var n,r=this.gap,i=e[t];switch(this.isObject(i)&&"function"==typeof i.toJSON&&(i=i.toJSON(t)),typeof i){case"string":return this.quote(i);case"number":return this.span("value number",isFinite(i)?String(i):"non-finite");case"boolean":return this.span("value boolean",String(i));case"object":if(null===i)return this.span("value null","null");if("ObjectId"===i.$type)return this.fnCall("ObjectId",[this.quote(i.$value)],"function");if("Date"===i.$type)return this.fnCall("Date",[this.quote(i.$value)],"function");if("RegExp"===i.$type)return this.span("value regexp","/"+i.$value.$pattern+"/"+i.$value.$flags);if(this.gap+=" ",Array.isArray(i)){if(0===i.length)return this.gap=r,this.span("value array","[]");var o=this.span("value array");o.collapsible=!0,this.renderer.appendChild(o,this.text("[\n"+this.gap));for(var s=this.text(",\n"+this.gap),a=0;a<i.length;a++)a>0&&this.renderer.appendChild(o,s.cloneNode(!1)),this.renderer.appendChild(o,this.createView(a,i)||this.span("value null","null"));return this.renderer.appendChild(o,this.text("\n"+r+"]")),this.gap=r,o}var l=[],u=this.text(": ");for(var c in i)if(Object.hasOwnProperty.call(i,c)){var h=this.createView(c,i);if(h){var p=this.span(n="prop"+(h.collapsible?" collapsible":"")+(h.collapsible&&this.autoCollapse?" collapsed":""));if(h.collapsible&&this.renderer.appendChild(p,this.element("button")),this.renderer.appendChild(p,this.prop(c)),this.renderer.appendChild(p,u.cloneNode(!1)),this.renderer.appendChild(p,h),h.collapsible){var d=h.classList.contains("object"),f=this.span("e");this.renderer.appendChild(f,this.text(d?"{ ":"[ ")),this.renderer.appendChild(f,this.span("summary",this.text("..."))),this.renderer.appendChild(f,this.text(d?" }":" ]")),this.renderer.appendChild(p,f)}l.push(p)}}if(n="value object",0===l.length)return this.gap=r,this.span(n,this.text("{}"));var m=this.span(n);m.collapsible=!0,this.renderer.appendChild(m,this.text("{\n"+this.gap));var g=this.text(",\n"+this.gap);for(a=0;a<l.length;a++)a>0&&this.renderer.appendChild(m,g.cloneNode(!0)),this.renderer.appendChild(m,l[a]);return this.renderer.appendChild(m,this.text("\n"+r+"}")),this.gap=r,m}},t.prototype.collapseAll=function(t){var e=this;void 0===t&&(t=!0),this.el.nativeElement.querySelectorAll(".collapsible").forEach(function(n){t?e.renderer.addClass(n,"collapsed"):e.renderer.removeClass(n,"collapsed")})},t.prototype.collapse=function(t){var e=t.target.parentNode;e.classList.contains("e")&&(e=e.parentNode),e.classList.contains("collapsible")&&(e.classList.contains("collapsed")?this.renderer.removeClass(e,"collapsed"):this.renderer.addClass(e,"collapsed"))},t}(),jv=Xr({encapsulation:0,styles:[[".object-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.object-info[_ngcontent-%COMP%] .objectid[_ngcontent-%COMP%]{font-size:1.2em}.object-info[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{margin-left:20px;font-size:.7em;color:var(--text-darker)}.object-info[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:none}.object-info[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]{margin-left:10px;padding:2px 5px 0}[_nghost-%COMP%]:hover .object-info[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:initial}.editor[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;z-index:100;width:100%;top:0}.editor.visible[_ngcontent-%COMP%]{display:block}.editor-actions[_ngcontent-%COMP%]{position:absolute;z-index:10;right:20px;top:15px}.editor-actions[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]{margin-left:10px;padding:2px 5px 0}.remove-layer[_ngcontent-%COMP%]{position:absolute;z-index:10;top:0;left:0;width:100%;height:100%;border-radius:5px;background:var(--text-inverse);opacity:.7}.remove-layer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text);text-align:center;margin-top:20px;font-size:2em}.remove-layer[_ngcontent-%COMP%] .remove-actions[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;display:flex;justify-content:center;align-items:center}.remove-layer[_ngcontent-%COMP%] .remove-actions[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:20px}.pretty-json[_ngcontent-%COMP%]{font-family:'Source Code Pro',monospace;position:relative;white-space:pre;font-size:.9em;padding:0 22px 22px;display:block;line-height:1.3}.pretty-json[_ngcontent-%COMP%] .null[_ngcontent-%COMP%]{color:var(--code-null)}.pretty-json[_ngcontent-%COMP%] .boolean[_ngcontent-%COMP%]{color:var(--code-boolean)}.pretty-json[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]{color:var(--code-numbers)}.pretty-json[_ngcontent-%COMP%] .quoted[_ngcontent-%COMP%], .pretty-json[_ngcontent-%COMP%] .quoted[_ngcontent-%COMP%] .string[_ngcontent-%COMP%]{color:var(--code-string)}.pretty-json[_ngcontent-%COMP%] .quoted[_ngcontent-%COMP%] .string[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .pretty-json[_ngcontent-%COMP%] .quoted[_ngcontent-%COMP%] .string[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:var(--code-string);text-decoration:underline}.pretty-json[_ngcontent-%COMP%] .quoted[_ngcontent-%COMP%] .string[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active, .pretty-json[_ngcontent-%COMP%] .quoted[_ngcontent-%COMP%] .string[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--code-links)}.pretty-json[_ngcontent-%COMP%] .regexp[_ngcontent-%COMP%]{color:var(--code-regexp)}.pretty-json[_ngcontent-%COMP%] .function[_ngcontent-%COMP%]{color:var(--code-function)}.pretty-json[_ngcontent-%COMP%] var[_ngcontent-%COMP%]{color:var(--code-namespace);font-style:normal}.pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%]{position:relative}.pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] .e[_ngcontent-%COMP%]{display:none;cursor:pointer}.pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] .e[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%], .pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] .e[_ngcontent-%COMP%] q[_ngcontent-%COMP%]{color:var(--code-summary);font-style:italic}.pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] .collapser[_ngcontent-%COMP%], .pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;cursor:pointer;position:absolute;height:16px;width:16px;left:-20px;top:2px;padding:0;font-size:0;line-height:0;color:transparent;overflow:hidden}.pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] .collapser[_ngcontent-%COMP%]:after, .pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:after{display:block;position:absolute;left:4px;top:6px;height:0;width:0;content:' ';border:4px solid transparent;border-top-color:var(--text)}.pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] .collapser[_ngcontent-%COMP%]:active:after, .pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] .collapser[_ngcontent-%COMP%]:hover:after, .pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active:after, .pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover:after{border-top-color:var(--text)}.pretty-json[_ngcontent-%COMP%] .prop[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;background-color:transparent}.pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:after{left:6px;top:4px;border-top-color:transparent;border-left-color:var(--text)}.pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:active:after, .pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover:after{border-top-color:transparent;border-left-color:var(--text)}.pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] .e[_ngcontent-%COMP%]{display:inline}.pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] .c[_ngcontent-%COMP%]:after, .pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] .collapser[_ngcontent-%COMP%]:after{top:4px;border-top-color:transparent;border-left-color:var(--text)}.pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] .c[_ngcontent-%COMP%]:active:after, .pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] .c[_ngcontent-%COMP%]:hover:after, .pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] .collapser[_ngcontent-%COMP%]:active:after, .pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] .collapser[_ngcontent-%COMP%]:hover:after{border-top-color:transparent;border-left-color:var(--text)}.pretty-json[_ngcontent-%COMP%] .prop.collapsed[_ngcontent-%COMP%] > .value[_ngcontent-%COMP%]{height:0;width:0;overflow:hidden;display:inline-block;visibility:hidden}"]],data:{}});function Bv(t){return Uo(0,[ho(0,$a,[Dr]),(t()(),Ci(1,0,null,null,35,"panel",[["full-width","true"]],null,null,null,Cv,wv)),co(2,114688,null,0,xv,[],null,null),(t()(),Ci(3,0,null,0,12,"div",[["class","title"]],null,null,null,null,null)),(t()(),Ci(4,0,null,null,11,"div",[["class","object-info"]],null,null,null,null,null)),(t()(),Ci(5,0,null,null,5,"div",[["class","objectid"]],null,null,null,null,null)),(t()(),Ci(6,0,null,null,1,"a",[["href","#"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.goToDocument(n)&&r),r},null,null)),(t()(),jo(7,null,["",""])),(t()(),Ci(8,0,null,null,2,"span",[["class","date"]],null,null,null,null,null)),(t()(),jo(9,null,["",""])),Io(10,2),(t()(),Ci(11,0,null,null,4,"div",[["class","actions"]],null,null,null,null,null)),(t()(),Ci(12,0,null,null,1,"div",[["class","btn btn-outline-light btn-sm"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.enableEditor()&&r),r},null,null)),(t()(),jo(-1,null,["Edit"])),(t()(),Ci(14,0,null,null,1,"div",[["class","btn btn-outline-danger btn-sm"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.showRemove()&&r),r},null,null)),(t()(),jo(-1,null,["Remove"])),(t()(),Ci(16,0,null,1,11,"div",[["class","editor"]],[[2,"visible",null]],null,null,null,null)),(t()(),Ci(17,0,null,null,4,"div",[["class","editor-actions"]],null,null,null,null,null)),(t()(),Ci(18,0,null,null,1,"div",[["class","btn btn-outline-success btn-sm"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.save()&&r),r},null,null)),(t()(),jo(-1,null,["Save"])),(t()(),Ci(20,0,null,null,1,"div",[["class","btn btn-outline-light btn-sm"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.disableEditor()&&r),r},null,null)),(t()(),jo(-1,null,["Cancel"])),(t()(),Ci(22,0,null,null,5,"ngx-codemirror",[],[[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,"cursorActivity"]],function(t,e,n){var r=!0,i=t.component;return"ngModelChange"===e&&(r=!1!==(i.editJson=n)&&r),"cursorActivity"===e&&(r=!1!==i.updateEditor()&&r),r},kv,Ev)),co(23,4636672,null,0,Dv,[br,An],{options:[0,"options"]},{cursorActivity:"cursorActivity"}),po(1024,null,pd,function(t){return[t]},[Dv]),co(25,671744,null,0,tf,[[8,null],[8,null],[8,null],[6,pd]],{model:[0,"model"]},{update:"ngModelChange"}),po(2048,null,xd,null,[tf]),co(27,16384,null,0,Vd,[[4,xd]],null,null),(t()(),Ci(28,0,null,1,7,"div",[["class","remove-layer"]],[[8,"hidden",0]],null,null,null,null)),(t()(),Ci(29,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),jo(-1,null,["Are you sure?"])),(t()(),Ci(31,0,null,null,4,"div",[["class","remove-actions"]],null,null,null,null,null)),(t()(),Ci(32,0,null,null,1,"div",[["class","btn btn-danger"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.confirmRemove()&&r),r},null,null)),(t()(),jo(-1,null,["Yes - Remove"])),(t()(),Ci(34,0,null,null,1,"div",[["class","btn btn-success"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.cancelRemove()&&r),r},null,null)),(t()(),jo(-1,null,["No - Cancel"])),(t()(),Ci(36,0,null,1,0,"div",[["class","pretty-json"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,2,0),t(e,23,0,n.editorOptions),t(e,25,0,n.editJson)},function(t,e){var n=e.component;t(e,7,0,n.json._id.$value);var r=Hr(e,9,0,t(e,10,0,Zi(e,0),n.json._id.$date,"long"));t(e,9,0,r),t(e,16,0,n.editorVisible),t(e,22,0,Zi(e,27).ngClassUntouched,Zi(e,27).ngClassTouched,Zi(e,27).ngClassPristine,Zi(e,27).ngClassDirty,Zi(e,27).ngClassValid,Zi(e,27).ngClassInvalid,Zi(e,27).ngClassPending),t(e,28,0,!n.removing)})}var Vv=function(){function t(t,e){this.http=t,this.notifService=e,this.apiBaseUrl="/api"}return t.prototype.handleError=function(t){var e=t.error.message||t.name+": "+t.statusText;return this.notifService.notifyError(e),sl({ok:!1,message:e})},t.prototype.get=function(t,e){var n=this;return this.http.get(t,e).pipe(Ll(function(t){return n.handleError(t)}))},t.prototype.post=function(t,e,n){var r=this;return this.http.post(t,e,n).pipe(Ll(function(t){return r.handleError(t)}))},t.prototype.put=function(t,e,n){var r=this;return this.http.put(t,e,n).pipe(Ll(function(t){return r.handleError(t)}))},t.prototype.delete=function(t,e){var n=this;return this.http.delete(t,e).pipe(Ll(function(t){return n.handleError(t)}))},t.prototype.getServers=function(){return this.get(this.apiBaseUrl+"/servers")},t.prototype.addServer=function(t){return this.put(this.apiBaseUrl+"/servers",{url:t})},t.prototype.removeServer=function(t){return this.delete(this.apiBaseUrl+"/servers/"+t)},t.prototype.getDatabases=function(t){return this.get(this.apiBaseUrl+"/servers/"+t+"/databases")},t.prototype.getCollections=function(t,e){return this.get(this.apiBaseUrl+"/servers/"+t+"/databases/"+e+"/collections")},t.prototype.getDocument=function(t,e,n,r){return this.get(this.apiBaseUrl+"/servers/"+t+"/databases/"+e+"/collections/"+n+"/documents/"+r)},t.prototype.query=function(t,e,n,r,i,o,s){return void 0===o&&(o=0),void 0===s&&(s=20),this.get(this.apiBaseUrl+"/servers/"+t+"/databases/"+e+"/collections/"+n+"/query",{params:{q:r,sort:i,skip:""+o,limit:""+s}})},t.prototype.update=function(t,e,n,r,i){return this.post(this.apiBaseUrl+"/servers/"+t+"/databases/"+e+"/collections/"+n+"/documents/"+r,i)},t.prototype.remove=function(t,e,n,r){return this.delete(this.apiBaseUrl+"/servers/"+t+"/databases/"+e+"/collections/"+n+"/documents/"+r)},t.prototype.count=function(t,e,n,r){return this.get(this.apiBaseUrl+"/servers/"+t+"/databases/"+e+"/collections/"+n+"/count",{params:{q:r}})},t}(),Uv=function(){function t(t,e,n,r){this.router=t,this.activatedRoute=e,this.mongodb=n,this.notifService=r,this.loading=!0}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.paramMap.subscribe(function(e){t.server=e.get("server"),t.database=e.get("database"),t.collection=e.get("collection"),t.document=e.get("document"),t.get()})},t.prototype.get=function(){var t=this;this.mongodb.getDocument(this.server,this.database,this.collection,this.document).subscribe(function(e){t.loading=!1,t.item=e.document})},t.prototype.editDocument=function(t){var e=this,n=this.item&&this.item._id&&this.item._id.$value;(t&&t._id&&t._id.$value)===n?(this.loading=!0,this.mongodb.update(this.server,this.database,this.collection,n,t).subscribe(function(t){e.loading=!1,e.item=t.update})):this.notifService.notifyError("ObjectId changed. This is not supported, updated canceled.")},t.prototype.remove=function(){var t=this;this.mongodb.remove(this.server,this.database,this.collection,this.document).subscribe(function(e){t.item=null,t.router.navigate(["servers",t.server,"databases",t.database,"collections",t.collection])})},t}(),zv=Xr({encapsulation:0,styles:[[""]],data:{}});function Hv(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"pretty-json",[],null,[[null,"edit"],[null,"remove"]],function(t,e,n){var r=!0,i=t.component;return"edit"===e&&(r=!1!==i.editDocument(n)&&r),"remove"===e&&(r=!1!==i.remove()&&r),r},Bv,jv)),co(1,245760,null,0,Lv,[ae,pe,Av.a,Ov.a,An],{json:[0,"json"]},{edit:"edit",remove:"remove"})],function(t,e){t(e,1,0,e.component.item)},null)}function Wv(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"div",[["class","col-md-12"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Hv)),co(2,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.item)},null)}function Gv(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"div",[["class","row explore-component"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Wv)),co(2,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,!e.component.loading)},null)}function Xv(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"app-document",[],null,null,null,Gv,zv)),co(1,114688,null,0,Uv,[Op,bh,Vv,Ov.a],null,null)],function(t,e){t(e,1,0)},null)}var Jv=Vi("app-document",Uv,Xv,{},{},[]),Kv=function(){function t(){}return t.prototype.pad=function(t){return t<1e3&&t>=100?""+t:t<100&&t>=10?"0"+t:t<10&&t>=0?"00"+t:void 0},t.prototype.transform=function(t){"string"==typeof t&&(t=parseFloat(t));for(var e=[];t>1e3;){var n=t%1e3;e.unshift(this.pad(n)),t-=n,t/=1e3}var r=""+t;return e.length>0&&(r+=","+e.join(",")),r},t}(),qv=function(){function t(){this.search=new Ue,this.ready=!1,this.defaults={query:"{}",limit:20,skip:0,sort:""},this.show={limit:!1,skip:!1,sort:!1}}return t.prototype.ngOnInit=function(){for(var t=0,e=Object.entries(this.defaults);t<e.length;t++){var n=e[t],r=n[0],i=n[1];typeof this.params[r]!=typeof i&&(this.params[r]=i),this.params[r]!==i&&(this.show[r]=!0)}this.ready=!0,this.go()},t.prototype.ngOnChanges=function(){this.ready&&this.go()},t.prototype.toggle=function(t,e){this.show[e]=t,t||this.params[e]===this.defaults[e]||(this.params[e]=this.defaults[e],this.go())},t.prototype.canAddParams=function(){return Object.values(this.show).some(function(t){return!t})},t.prototype.go=function(){""===this.params.query&&(this.params.query="{}"),this.search.emit()},t.prototype.keyPress=function(t){13===t.keyCode&&this.go()},t}(),$v=Xr({encapsulation:0,styles:[[".search-box[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:stretch;width:100%;color:var(--text);position:relative;margin-bottom:24px}.search-box.dropdown[_ngcontent-%COMP%]{margin:0}.search-box[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{left:70%!important;right:22px!important;top:40px!important}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%]{flex-grow:1}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{display:flex;align-items:stretch;width:100%;height:40px}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{min-width:100px;display:flex;justify-content:center;align-items:center;border:1px solid var(--color-4);border-bottom-width:0;background-color:var(--color-1)}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-family:'Source Code Pro',monospace;color:var(--text);flex-grow:1;border:0;border-top:1px solid var(--color-4);background-color:var(--color-3);padding-left:10px}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:0}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{padding:9px;background:var(--color-4);opacity:1;text-shadow:none;color:var(--text)}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]:hover{opacity:.8}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:last-child input[_ngcontent-%COMP%]{border-top:1px solid var(--color-4);border-bottom:1px solid var(--color-4)}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:first-child .label[_ngcontent-%COMP%]{border-top-left-radius:5px}.search-box[_ngcontent-%COMP%] .params-group[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:last-child .label[_ngcontent-%COMP%]{border-bottom-left-radius:5px;border-bottom-width:1px}.search-box[_ngcontent-%COMP%] .add-param[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] .confirm-search[_ngcontent-%COMP%]{width:50px;display:flex;align-items:center;justify-content:center;font-weight:700;background-color:var(--color-1)}.search-box[_ngcontent-%COMP%] .add-param[_ngcontent-%COMP%]{border-radius:0;font-size:2em;line-height:.8em;border:1px solid var(--color-4);border-right:0}.search-box[_ngcontent-%COMP%] .confirm-search[_ngcontent-%COMP%]{border-radius:0 5px 5px 0;border:1px solid var(--color-4)}"]],data:{}});function Zv(t){return Uo(0,[(t()(),Ci(0,0,null,null,10,"div",[["class","input-group"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"div",[["class","label"]],null,null,null,null,null)),(t()(),jo(-1,null,["Sort:"])),(t()(),Ci(3,0,null,null,5,"input",[["type","text"]],[[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,"keypress"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==Zi(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Zi(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Zi(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Zi(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(i.params.sort=n)&&r),"keypress"===e&&(r=!1!==i.keyPress(n)&&r),r},null,null)),co(4,16384,null,0,md,[pe,ae,[2,fd]],null,null),po(1024,null,pd,function(t){return[t]},[md]),co(6,671744,null,0,tf,[[8,null],[8,null],[8,null],[6,pd]],{model:[0,"model"]},{update:"ngModelChange"}),po(2048,null,xd,null,[tf]),co(8,16384,null,0,Vd,[[4,xd]],null,null),(t()(),Ci(9,0,null,null,1,"div",[["class","close"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggle(!1,"sort")&&r),r},null,null)),(t()(),jo(-1,null,["\xd7"]))],function(t,e){t(e,6,0,e.component.params.sort)},function(t,e){t(e,3,0,Zi(e,8).ngClassUntouched,Zi(e,8).ngClassTouched,Zi(e,8).ngClassPristine,Zi(e,8).ngClassDirty,Zi(e,8).ngClassValid,Zi(e,8).ngClassInvalid,Zi(e,8).ngClassPending)})}function Yv(t){return Uo(0,[(t()(),Ci(0,0,null,null,11,"div",[["class","input-group"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"div",[["class","label"]],null,null,null,null,null)),(t()(),jo(-1,null,["Skip:"])),(t()(),Ci(3,0,null,null,6,"input",[["type","number"]],[[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,"keypress"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==Zi(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Zi(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Zi(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Zi(t,4)._compositionEnd(n.target.value)&&r),"change"===e&&(r=!1!==Zi(t,5).onChange(n.target.value)&&r),"input"===e&&(r=!1!==Zi(t,5).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==Zi(t,5).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(i.params.skip=n)&&r),"keypress"===e&&(r=!1!==i.keyPress(n)&&r),r},null,null)),co(4,16384,null,0,md,[pe,ae,[2,fd]],null,null),co(5,16384,null,0,yd,[pe,ae],null,null),po(1024,null,pd,function(t,e){return[t,e]},[md,yd]),co(7,671744,null,0,tf,[[8,null],[8,null],[8,null],[6,pd]],{model:[0,"model"]},{update:"ngModelChange"}),po(2048,null,xd,null,[tf]),co(9,16384,null,0,Vd,[[4,xd]],null,null),(t()(),Ci(10,0,null,null,1,"div",[["class","close"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggle(!1,"skip")&&r),r},null,null)),(t()(),jo(-1,null,["\xd7"]))],function(t,e){t(e,7,0,e.component.params.skip)},function(t,e){t(e,3,0,Zi(e,9).ngClassUntouched,Zi(e,9).ngClassTouched,Zi(e,9).ngClassPristine,Zi(e,9).ngClassDirty,Zi(e,9).ngClassValid,Zi(e,9).ngClassInvalid,Zi(e,9).ngClassPending)})}function Qv(t){return Uo(0,[(t()(),Ci(0,0,null,null,11,"div",[["class","input-group"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"div",[["class","label"]],null,null,null,null,null)),(t()(),jo(-1,null,["Limit:"])),(t()(),Ci(3,0,null,null,6,"input",[["type","number"]],[[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,"keypress"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==Zi(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Zi(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Zi(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Zi(t,4)._compositionEnd(n.target.value)&&r),"change"===e&&(r=!1!==Zi(t,5).onChange(n.target.value)&&r),"input"===e&&(r=!1!==Zi(t,5).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==Zi(t,5).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(i.params.limit=n)&&r),"keypress"===e&&(r=!1!==i.keyPress(n)&&r),r},null,null)),co(4,16384,null,0,md,[pe,ae,[2,fd]],null,null),co(5,16384,null,0,yd,[pe,ae],null,null),po(1024,null,pd,function(t,e){return[t,e]},[md,yd]),co(7,671744,null,0,tf,[[8,null],[8,null],[8,null],[6,pd]],{model:[0,"model"]},{update:"ngModelChange"}),po(2048,null,xd,null,[tf]),co(9,16384,null,0,Vd,[[4,xd]],null,null),(t()(),Ci(10,0,null,null,1,"div",[["class","close"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggle(!1,"limit")&&r),r},null,null)),(t()(),jo(-1,null,["\xd7"]))],function(t,e){t(e,7,0,e.component.params.limit)},function(t,e){t(e,3,0,Zi(e,9).ngClassUntouched,Zi(e,9).ngClassTouched,Zi(e,9).ngClassPristine,Zi(e,9).ngClassDirty,Zi(e,9).ngClassValid,Zi(e,9).ngClassInvalid,Zi(e,9).ngClassPending)})}function ty(t){return Uo(0,[(t()(),Ci(0,0,null,null,15,"div",[["class","search-box"],["ngbDropdown",""]],[[2,"show",null]],[[null,"keydown.ArrowUp"],[null,"keydown.ArrowDown"],[null,"keydown.Home"],[null,"keydown.End"]],function(t,e,n){var r=!0;return"keydown.ArrowUp"===e&&(r=!1!==Zi(t,1).onKeyDown(n)&&r),"keydown.ArrowDown"===e&&(r=!1!==Zi(t,1).onKeyDown(n)&&r),"keydown.Home"===e&&(r=!1!==Zi(t,1).onKeyDown(n)&&r),"keydown.End"===e&&(r=!1!==Zi(t,1).onKeyDown(n)&&r),r},null,null)),co(1,737280,[["dropdwn",4]],3,vm,[tr,fm,Qa,An,ae,pe],null,null),Ao(335544320,1,{_menu:0}),Ao(335544320,2,{_menuElement:0}),Ao(335544320,3,{_anchor:0}),(t()(),Ci(5,0,null,null,1,"button",[["aria-haspopup","true"],["class","dropdown-toggle"],["hidden",""],["id","addQueryParamDropdown"],["ngbDropdownAnchor",""]],[[1,"aria-expanded",0]],null,null,null,null)),co(6,16384,[[3,4]],0,gm,[vm,ae],null,null),(t()(),Ci(7,0,[[2,0]],null,8,"div",[["aria-labelledby","addQueryParamDropdown"],["ngbDropdownMenu",""]],[[2,"dropdown-menu",null],[2,"show",null],[1,"x-placement",0]],null,null,null,null)),co(8,16384,[[1,4]],1,mm,[vm,ae,pe],null,null),Ao(603979776,4,{menuItems:1}),(t()(),Ci(10,0,null,null,1,"a",[["class","dropdown-item"]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggle(!0,"sort")&&r),r},null,null)),(t()(),jo(-1,null,["Sort"])),(t()(),Ci(12,0,null,null,1,"a",[["class","dropdown-item"]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggle(!0,"skip")&&r),r},null,null)),(t()(),jo(-1,null,["Skip"])),(t()(),Ci(14,0,null,null,1,"a",[["class","dropdown-item"]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggle(!0,"limit")&&r),r},null,null)),(t()(),jo(-1,null,["Limit"])),(t()(),Ci(16,0,null,null,20,"div",[["class","search-box"]],null,null,null,null,null)),(t()(),Ci(17,0,null,null,15,"div",[["class","params-group"]],null,null,null,null,null)),(t()(),Ci(18,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(t()(),Ci(19,0,null,null,1,"div",[["class","label"]],null,null,null,null,null)),(t()(),jo(-1,null,["Query:"])),(t()(),Ci(21,0,null,null,5,"input",[["type","text"]],[[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,"keypress"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==Zi(t,22)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Zi(t,22).onTouched()&&r),"compositionstart"===e&&(r=!1!==Zi(t,22)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Zi(t,22)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(i.params.query=n)&&r),"keypress"===e&&(r=!1!==i.keyPress(n)&&r),r},null,null)),co(22,16384,null,0,md,[pe,ae,[2,fd]],null,null),po(1024,null,pd,function(t){return[t]},[md]),co(24,671744,null,0,tf,[[8,null],[8,null],[8,null],[6,pd]],{model:[0,"model"]},{update:"ngModelChange"}),po(2048,null,xd,null,[tf]),co(26,16384,null,0,Vd,[[4,xd]],null,null),(t()(),wi(16777216,null,null,1,null,Zv)),co(28,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,Yv)),co(30,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,Qv)),co(32,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(33,0,null,null,1,"div",[["class","add-param btn"]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(n.stopPropagation(),r=!1!==Zi(t,1).open()&&r),r},null,null)),(t()(),jo(-1,null,[" + "])),(t()(),Ci(35,0,null,null,1,"div",[["class","confirm-search btn"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.go()&&r),r},null,null)),(t()(),jo(-1,null,[" GO! "]))],function(t,e){var n=e.component;t(e,1,0),t(e,24,0,n.params.query),t(e,28,0,n.show.sort),t(e,30,0,n.show.skip),t(e,32,0,n.show.limit)},function(t,e){var n=e.component;t(e,0,0,Zi(e,1).isOpen()),t(e,5,0,Zi(e,6).dropdown.isOpen()),t(e,7,0,!0,Zi(e,8).dropdown.isOpen(),Zi(e,8).placement),t(e,10,0,n.show.sort),t(e,12,0,n.show.skip),t(e,14,0,n.show.limit),t(e,21,0,Zi(e,26).ngClassUntouched,Zi(e,26).ngClassTouched,Zi(e,26).ngClassPristine,Zi(e,26).ngClassDirty,Zi(e,26).ngClassValid,Zi(e,26).ngClassInvalid,Zi(e,26).ngClassPending),t(e,33,0,!n.canAddParams())})}var ey=function(){function t(t,e,n,r,i){this.activatedRoute=t,this.router=e,this.mongoDb=n,this.jsonParser=r,this.notifService=i,this.loading={content:!0,count:!0},this.count={total:0,start:0},this.items=[]}return t.prototype.ngOnInit=function(){var t=this;dl(this.activatedRoute.paramMap,this.activatedRoute.queryParamMap).subscribe(function(e){var n,r,i,o,s=e[0],a=e[1];t.server=s.get("server"),t.database=s.get("database"),t.collection=s.get("collection"),a.has("query")&&(n=a.get("query")),a.has("sort")&&(r=a.get("sort")),a.has("skip")&&(o=parseInt(a.get("skip"),10)),a.has("limit")&&(i=parseInt(a.get("limit"),10)),t.params={query:n,sort:r,limit:i,skip:o}})},t.prototype.update=function(t){var e=this;if(void 0===t&&(t=!0),this.params&&this.params.query){var n=JSON.stringify(this.jsonParser.parse(this.params.query)),r=""!==this.params.sort?JSON.stringify(this.jsonParser.parse(this.params.sort)):"{}";n&&r&&(t&&this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:this.params}),this.loading.content=!0,this.loading.count=!0,this.items=[],this.count.total=0,this.mongoDb.query(this.server,this.database,this.collection,n,r,this.params.skip,this.params.limit).subscribe(function(t){e.loading.content=!1,t.ok&&(e.items=t.results)}),this.mongoDb.count(this.server,this.database,this.collection,n).subscribe(function(t){e.loading.count=!1,t.ok&&(e.count.total=t.count,e.count.start=e.params.skip)}))}},t.prototype.go=function(t){this.router.navigate(["servers",this.server,"databases",this.database,"collections",this.collection,"documents",t])},t.prototype.editDocument=function(t,e){var n=this,r=t&&t.$value;(e&&e._id&&e._id.$value)===r?this.mongoDb.update(this.server,this.database,this.collection,r,e).subscribe(function(t){n.items.forEach(function(e,i){(e&&e._id&&e._id.$value)===r&&(n.items[i]=t.update)})}):this.notifService.notifyError("ObjectId changed. This is not supported, updated canceled.")},t.prototype.remove=function(t){var e=this,n=t&&t.$value;n&&this.mongoDb.remove(this.server,this.database,this.collection,n).subscribe(function(t){var r=e.items.findIndex(function(t){return t._id&&t._id.$value&&t._id.$value===n});e.items.splice(r,1)})},Object.defineProperty(t.prototype,"hasNext",{get:function(){return this.count.start+this.items.length<this.count.total},enumerable:!0,configurable:!0}),t.prototype.next=function(){this.params.skip=this.params.skip+this.params.limit,this.update()},Object.defineProperty(t.prototype,"hasPrevious",{get:function(){return this.count.start>0},enumerable:!0,configurable:!0}),t.prototype.previous=function(){this.params.skip=Math.max(0,this.params.skip-this.params.limit),this.update()},t}(),ny=Xr({encapsulation:0,styles:[[".row.explore-component[_ngcontent-%COMP%] h1.loading[_ngcontent-%COMP%]{margin:0}.row.explore-component[_ngcontent-%COMP%] .loading[_ngcontent-%COMP%]{padding:10px}.row.explore-component[_ngcontent-%COMP%] .infos[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:space-between}.row.explore-component[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{font-size:1.3em;color:var(--text);margin-top:5px}.row.explore-component[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]{margin-left:10px}"]],data:{}});function ry(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.previous()&&r),r},null,null)),(t()(),jo(-1,null,[" Previous "]))],null,null)}function iy(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.next()&&r),r},null,null)),(t()(),jo(-1,null,[" Next "]))],null,null)}function oy(t){return Uo(0,[(t()(),Ci(0,0,null,null,14,"panel",[],null,null,null,Cv,wv)),co(1,114688,null,0,xv,[],null,null),(t()(),Ci(2,0,null,1,12,"div",[["class","infos"]],null,null,null,null,null)),(t()(),Ci(3,0,null,null,6,"div",[["class","summary"]],null,null,null,null,null)),(t()(),Ci(4,0,null,null,3,"span",[],[[8,"hidden",0]],null,null,null,null)),(t()(),jo(5,null,[""," - "," of "])),Io(6,1),Io(7,1),(t()(),jo(8,null,[""," Documents "])),Io(9,1),(t()(),Ci(10,0,null,null,4,"div",[["class","actions"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,ry)),co(12,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,iy)),co(14,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0),t(e,12,0,n.hasPrevious),t(e,14,0,n.hasNext)},function(t,e){var n=e.component;t(e,4,0,0==n.count.total);var r=Hr(e,5,0,t(e,6,0,Zi(e.parent,0),n.count.start+1)),i=Hr(e,5,1,t(e,7,0,Zi(e.parent,0),n.count.start+n.items.length));t(e,5,0,r,i);var o=Hr(e,8,0,t(e,9,0,Zi(e.parent,0),n.count.total));t(e,8,0,o)})}function sy(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"pretty-json",[["autoCollapse","true"]],[[8,"hidden",0]],[[null,"go"],[null,"edit"],[null,"remove"]],function(t,e,n){var r=!0,i=t.component;return"go"===e&&(r=!1!==i.go(n)&&r),"edit"===e&&(r=!1!==i.editDocument(t.context.$implicit._id,n)&&r),"remove"===e&&(r=!1!==i.remove(t.context.$implicit._id)&&r),r},Bv,jv)),co(1,245760,null,0,Lv,[ae,pe,Av.a,Ov.a,An],{json:[0,"json"],autoCollapse:[1,"autoCollapse"]},{go:"go",edit:"edit",remove:"remove"})],function(t,e){t(e,1,0,e.context.$implicit,"true")},function(t,e){t(e,0,0,e.component.loading.content)})}function ay(t){return Uo(0,[ho(0,Kv,[]),(t()(),Ci(1,0,null,null,11,"div",[["class","row explore-component"]],null,null,null,null,null)),(t()(),Ci(2,0,null,null,10,"div",[["class","col-md-12"]],null,null,null,null,null)),(t()(),Ci(3,0,null,null,1,"search-box",[],null,[[null,"search"],[null,"paramsChange"]],function(t,e,n){var r=!0,i=t.component;return"search"===e&&(r=!1!==i.update()&&r),"paramsChange"===e&&(r=!1!==(i.params=n)&&r),r},ty,$v)),co(4,638976,null,0,qv,[],{params:[0,"params"]},{search:"search"}),(t()(),wi(16777216,null,null,1,null,oy)),co(6,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(7,0,null,null,3,"panel",[],[[8,"hidden",0]],null,null,Cv,wv)),co(8,114688,null,0,xv,[],null,null),(t()(),Ci(9,0,null,1,1,"h1",[["class","center loading"]],null,null,null,null,null)),(t()(),jo(-1,null,[" Loading... "])),(t()(),wi(16777216,null,null,1,null,sy)),co(12,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,4,0,n.params),t(e,6,0,n.params&&!n.loading.count),t(e,8,0),t(e,12,0,n.items)},function(t,e){t(e,7,0,!e.component.loading.content)})}function ly(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"app-explore",[],null,null,null,ay,ny)),co(1,114688,null,0,ey,[bh,Op,Vv,Av.a,Ov.a],null,null)],function(t,e){t(e,1,0)},null)}var uy=Vi("app-explore",ey,ly,{},{},[]),cy=function(){function t(){this.units=["B","KB","MB","GB","TB","PB"]}return t.prototype.transform=function(t){for(var e=t||0,n=0,r=0,i=this.units;r<i.length&&e/1024>1;r++)e/=1024,n++;return e.toFixed(2)+" "+this.units[n]},t}(),hy=function(){function t(t,e){this.activatedRoute=t,this.mongoDb=e,this.collections=[],this.loading=!0}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.paramMap.subscribe(function(e){t.server=e.get("server"),t.database=e.get("database"),t.mongoDb.getCollections(t.server,t.database).subscribe(function(e){t.loading=!1,Array.isArray(e)&&(t.collections=e)})})},t.prototype.indexName=function(t){for(var e=t.replace(/_id/g,"$id").split("_"),n={};e.length>0;){var r=e.shift().replace(/\$id/g,"_id"),i=parseInt(e.shift(),10)||1;n[r]=i}return n},t.prototype.toggle=function(t,e){t.isOpen()?t.close():void 0!==e&&t.open(e)},t.prototype.toggleStats=function(t,e){this.toggle(t,{stats:e})},t.prototype.toggleIndexes=function(t,e){var n=this,r=Object.entries(e.indexSizes),i=r.map(function(t){var e=t[1];return{name:n.indexName(t[0]),size:e}}).filter(function(t,e){return e<20});this.toggle(t,{indexes:i,clipped:r.length-i.length})},t}(),py=Xr({encapsulation:0,styles:[[".row.collections-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{margin-bottom:0;color:var(--text)}.row.collections-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .row.collections-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 22px}.row.collections-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:var(--color-3)}"]],data:{}});function dy(t){return Uo(0,[(t()(),Ci(0,0,null,null,16,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),Ci(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Zi(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),co(3,671744,null,0,Tp,[Op,bh,Zs],{routerLink:[0,"routerLink"]},null),(t()(),jo(4,null,["",""])),(t()(),Ci(5,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(6,null,["",""])),Io(7,1),(t()(),Ci(8,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),Ci(9,16777216,null,null,2,"span",[["class","dotted"],["placement","auto right"],["triggers","manual"]],null,[[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==i.toggleIndexes(Zi(t,10),t.context.$implicit)&&r),"mouseleave"===e&&(r=!1!==i.toggle(Zi(t,10))&&r),r},null,null)),co(10,737280,[["p1",4]],0,Vm,[ae,pe,Rt,ne,Yn,Lm,An,Qa,tr],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(t()(),jo(11,null,["",""])),(t()(),Ci(12,0,null,null,4,"td",[],null,null,null,null,null)),(t()(),Ci(13,16777216,null,null,3,"span",[["class","dotted"],["placement","auto right"],["triggers","manual"]],null,[[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==i.toggleStats(Zi(t,14),t.context.$implicit)&&r),"mouseleave"===e&&(r=!1!==i.toggle(Zi(t,14))&&r),r},null,null)),co(14,737280,[["p2",4]],0,Vm,[ae,pe,Rt,ne,Yn,Lm,An,Qa,tr],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(t()(),jo(15,null,["",""])),Io(16,1)],function(t,e){var n=e.component;t(e,3,0,bi(3,"/servers/",n.server,"/databases/",n.database,"/collections/",e.context.$implicit.name,"")),t(e,10,0,Zi(e.parent,24),"auto right","manual"),t(e,14,0,Zi(e.parent,25),"auto right","manual")},function(t,e){t(e,2,0,Zi(e,3).target,Zi(e,3).href),t(e,4,0,e.context.$implicit.name);var n=Hr(e,6,0,t(e,7,0,Zi(e.parent,0),e.context.$implicit.count));t(e,6,0,n),t(e,11,0,e.context.$implicit.nIndexes);var r=Hr(e,15,0,t(e,16,0,Zi(e.parent,1),e.context.$implicit.size));t(e,15,0,r)})}function fy(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,2,"td",[["colspan","4"]],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"div",[["class","center"]],null,null,null,null,null)),(t()(),jo(-1,null,["No collections..."]))],null,null)}function my(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,2,"td",[["colspan","4"]],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"div",[["class","center"]],null,null,null,null,null)),(t()(),jo(-1,null,["Loading..."]))],null,null)}function gy(t){return Uo(0,[(t()(),Ci(0,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(2,null,["",""])),ho(0,Za,[]),(t()(),Ci(4,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(5,null,["",""])),Io(6,1)],null,function(t,e){t(e,2,0,Hr(e,2,0,Zi(e,3).transform(e.context.$implicit.name)));var n=Hr(e,5,0,t(e,6,0,Zi(e.parent.parent,1),e.context.$implicit.size));t(e,5,0,n)})}function vy(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"td",[["colspan","2"]],null,null,null,null,null)),(t()(),jo(2,null,[""," more items..."]))],null,function(t,e){t(e,2,0,e.parent.context.clipped)})}function yy(t){return Uo(0,[(t()(),Ci(0,0,null,null,10,"table",[["class","sm"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,4,"thead",[],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["Index"])),(t()(),Ci(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["Size"])),(t()(),Ci(6,0,null,null,4,"tbody",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,gy)),co(8,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),wi(16777216,null,null,1,null,vy)),co(10,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,8,0,e.context.indexes),t(e,10,0,e.context.clipped)},null)}function by(t){return Uo(0,[(t()(),Ci(0,0,null,null,25,"table",[["class","sm"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,24,"tbody",[],null,null,null,null,null)),(t()(),Ci(2,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(3,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(-1,null,["Average obj. size"])),(t()(),Ci(5,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(6,null,["",""])),Io(7,1),(t()(),Ci(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(-1,null,["Data size"])),(t()(),Ci(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(12,null,["",""])),Io(13,1),(t()(),Ci(14,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(-1,null,["Storage size"])),(t()(),Ci(17,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(18,null,["",""])),Io(19,1),(t()(),Ci(20,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(-1,null,["Index size"])),(t()(),Ci(23,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(24,null,["",""])),Io(25,1)],null,function(t,e){var n=Hr(e,6,0,t(e,7,0,Zi(e.parent,1),e.context.stats.avgObjSize));t(e,6,0,n);var r=Hr(e,12,0,t(e,13,0,Zi(e.parent,1),e.context.stats.dataSize));t(e,12,0,r);var i=Hr(e,18,0,t(e,19,0,Zi(e.parent,1),e.context.stats.storageSize));t(e,18,0,i);var o=Hr(e,24,0,t(e,25,0,Zi(e.parent,1),e.context.stats.totalIndexSize));t(e,24,0,o)})}function xy(t){return Uo(0,[ho(0,Kv,[]),ho(0,cy,[]),(t()(),Ci(2,0,null,null,23,"div",[["class","row collections-component"]],null,null,null,null,null)),(t()(),Ci(3,0,null,null,20,"panel",[],null,null,null,Cv,wv)),co(4,114688,null,0,xv,[],null,null),(t()(),Ci(5,0,null,0,1,"div",[["class","title"]],null,null,null,null,null)),(t()(),jo(6,null,[""," Collections"])),(t()(),Ci(7,0,null,1,16,"table",[["class","table table-hover"]],null,null,null,null,null)),(t()(),Ci(8,0,null,null,8,"thead",[],null,null,null,null,null)),(t()(),Ci(9,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["name"])),(t()(),Ci(11,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["documents"])),(t()(),Ci(13,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["indexes"])),(t()(),Ci(15,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["size"])),(t()(),Ci(17,0,null,null,6,"tbody",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,dy)),co(19,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),wi(16777216,null,null,1,null,fy)),co(21,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,my)),co(23,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(0,[["popIndexes",2]],null,0,null,yy)),(t()(),wi(0,[["popStats",2]],null,0,null,by))],function(t,e){var n=e.component;t(e,4,0),t(e,19,0,n.collections),t(e,21,0,0==n.collections.length&&!n.loading),t(e,23,0,n.loading)},function(t,e){t(e,6,0,e.component.database)})}function wy(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"app-collections",[],null,null,null,xy,py)),co(1,114688,null,0,hy,[bh,Vv],null,null)],function(t,e){t(e,1,0)},null)}var Cy=Vi("app-collections",hy,wy,{},{},[]),_y=function(){function t(t,e){this.activatedRoute=t,this.mongoDb=e,this.databases=[],this.loading=!0}return t.prototype.ngOnInit=function(){var t=this;this.activatedRoute.paramMap.subscribe(function(e){t.server=e.get("server"),t.mongoDb.getDatabases(t.server).subscribe(function(e){t.loading=!1,Array.isArray(e)&&(t.databases=e)})})},t.prototype.toggle=function(t,e){t.isOpen()?t.close():void 0!==e&&t.open(e)},t.prototype.toggleStats=function(t,e){this.toggle(t,{stats:e})},t.prototype.toggleCollection=function(t,e){var n=e.filter(function(t,e){return e<20});this.toggle(t,{collection:n,clipped:e.length-n.length})},t}(),Dy=Xr({encapsulation:0,styles:[[".row.databases-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{margin-bottom:0;color:var(--text)}.row.databases-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .row.databases-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 22px}.row.databases-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:var(--color-3)}"]],data:{}});function Sy(t){return Uo(0,[(t()(),Ci(0,0,null,null,13,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),Ci(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Zi(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),co(3,671744,null,0,Tp,[Op,bh,Zs],{routerLink:[0,"routerLink"]},null),(t()(),jo(4,null,["",""])),(t()(),Ci(5,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),Ci(6,16777216,null,null,2,"span",[["class","dotted"],["placement","auto right"],["triggers","manual"]],null,[[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==i.toggleCollection(Zi(t,7),t.context.$implicit.collections)&&r),"mouseleave"===e&&(r=!1!==i.toggle(Zi(t,7))&&r),r},null,null)),co(7,737280,[["p1",4]],0,Vm,[ae,pe,Rt,ne,Yn,Lm,An,Qa,tr],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(t()(),jo(8,null,["",""])),(t()(),Ci(9,0,null,null,4,"td",[],null,null,null,null,null)),(t()(),Ci(10,16777216,null,null,3,"span",[["class","dotted"],["placement","auto right"],["triggers","manual"]],null,[[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==i.toggleStats(Zi(t,11),t.context.$implicit)&&r),"mouseleave"===e&&(r=!1!==i.toggle(Zi(t,11))&&r),r},null,null)),co(11,737280,[["p2",4]],0,Vm,[ae,pe,Rt,ne,Yn,Lm,An,Qa,tr],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(t()(),jo(12,null,["",""])),Io(13,1)],function(t,e){t(e,3,0,bi(2,"/servers/",e.component.server,"/databases/",e.context.$implicit.name,"/collections")),t(e,7,0,Zi(e.parent,21),"auto right","manual"),t(e,11,0,Zi(e.parent,22),"auto right","manual")},function(t,e){t(e,2,0,Zi(e,3).target,Zi(e,3).href),t(e,4,0,e.context.$implicit.name),t(e,8,0,e.context.$implicit.collections.length);var n=Hr(e,12,0,t(e,13,0,Zi(e.parent,0),e.context.$implicit.size));t(e,12,0,n)})}function Ey(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,2,"td",[["colspan","3"]],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"div",[["class","center"]],null,null,null,null,null)),(t()(),jo(-1,null,["No databases..."]))],null,null)}function ky(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,2,"td",[["colspan","3"]],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"div",[["class","center"]],null,null,null,null,null)),(t()(),jo(-1,null,["Loading..."]))],null,null)}function Ay(t){return Uo(0,[(t()(),Ci(0,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(2,null,["",""])),(t()(),Ci(3,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(4,null,["",""])),Io(5,1)],null,function(t,e){t(e,2,0,e.context.$implicit.name);var n=Hr(e,4,0,t(e,5,0,Zi(e.parent.parent,0),e.context.$implicit.size));t(e,4,0,n)})}function Oy(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"td",[["colspan","2"]],null,null,null,null,null)),(t()(),jo(2,null,[""," more items..."]))],null,function(t,e){t(e,2,0,e.parent.context.clipped)})}function Ty(t){return Uo(0,[(t()(),Ci(0,0,null,null,10,"table",[["class","sm"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,4,"thead",[],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["Collections"])),(t()(),Ci(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["Size"])),(t()(),Ci(6,0,null,null,4,"tbody",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Ay)),co(8,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),wi(16777216,null,null,1,null,Oy)),co(10,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,8,0,e.context.collection),t(e,10,0,e.context.clipped)},null)}function My(t){return Uo(0,[(t()(),Ci(0,0,null,null,25,"table",[["class","sm"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,24,"tbody",[],null,null,null,null,null)),(t()(),Ci(2,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(3,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(-1,null,["Average obj. size"])),(t()(),Ci(5,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(6,null,["",""])),Io(7,1),(t()(),Ci(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(-1,null,["Data size"])),(t()(),Ci(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(12,null,["",""])),Io(13,1),(t()(),Ci(14,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(-1,null,["Storage size"])),(t()(),Ci(17,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(18,null,["",""])),Io(19,1),(t()(),Ci(20,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Ci(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(-1,null,["Index size"])),(t()(),Ci(23,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(24,null,["",""])),Io(25,1)],null,function(t,e){var n=Hr(e,6,0,t(e,7,0,Zi(e.parent,0),e.context.stats.avgObjSize));t(e,6,0,n);var r=Hr(e,12,0,t(e,13,0,Zi(e.parent,0),e.context.stats.dataSize));t(e,12,0,r);var i=Hr(e,18,0,t(e,19,0,Zi(e.parent,0),e.context.stats.storageSize));t(e,18,0,i);var o=Hr(e,24,0,t(e,25,0,Zi(e.parent,0),e.context.stats.totalIndexSize));t(e,24,0,o)})}function Py(t){return Uo(0,[ho(0,cy,[]),(t()(),Ci(1,0,null,null,21,"div",[["class","row databases-component"]],null,null,null,null,null)),(t()(),Ci(2,0,null,null,18,"panel",[],null,null,null,Cv,wv)),co(3,114688,null,0,xv,[],null,null),(t()(),Ci(4,0,null,0,1,"div",[["class","title"]],null,null,null,null,null)),(t()(),jo(5,null,[""," Databases"])),(t()(),Ci(6,0,null,1,14,"table",[["class","table table-hover"]],null,null,null,null,null)),(t()(),Ci(7,0,null,null,6,"thead",[],null,null,null,null,null)),(t()(),Ci(8,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["name"])),(t()(),Ci(10,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["collections"])),(t()(),Ci(12,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["size"])),(t()(),Ci(14,0,null,null,6,"tbody",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Sy)),co(16,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),wi(16777216,null,null,1,null,Ey)),co(18,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,ky)),co(20,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(0,[["popCollection",2]],null,0,null,Ty)),(t()(),wi(0,[["popStats",2]],null,0,null,My))],function(t,e){var n=e.component;t(e,3,0),t(e,16,0,n.databases),t(e,18,0,0==n.databases.length&&!n.loading),t(e,20,0,n.loading)},function(t,e){t(e,5,0,e.component.server)})}function Fy(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"app-databases",[],null,null,null,Py,Dy)),co(1,114688,null,0,_y,[bh,Vv],null,null)],function(t,e){t(e,1,0)},null)}var Ny=Vi("app-databases",_y,Fy,{},{},[]),Iy=function(){function t(){}return t.prototype.transform=function(t,e){var n=(t||"").split(":");return"27017"==n[1]?n[0]:t},t}(),Ry=function(){function t(t,e){this.mongoDb=t,this.modalService=e,this.servers=[],this.loading=!0,this.adding=!1,this.newServer=""}return t.prototype.ngOnInit=function(){this.refresh()},t.prototype.refresh=function(){var t=this;this.loading=!0,this.mongoDb.getServers().subscribe(function(e){t.loading=!1,Array.isArray(e)&&(t.servers=e)})},t.prototype.toggle=function(t,e){if(t.isOpen())t.close();else if(void 0!==e){var n=e.filter(function(t,e){return e<20});t.open({collection:n,clipped:e.length-n.length})}},t.prototype.addServer=function(){var t=this;this.mongoDb.addServer(this.newServer).subscribe(function(e){e.ok&&(t.newServer="",t.adding=!1,t.refresh())})},t.prototype.removeServer=function(t,e){var n=this;this.modalService.open(t,{centered:!0}).result.then(function(t){t&&n.mongoDb.removeServer(e.name).subscribe(function(t){t.ok&&n.refresh()})},function(t){})},t}(),Ly=Xr({encapsulation:0,styles:[[".row.servers-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{margin-bottom:0;color:var(--text)}.row.servers-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .row.servers-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 22px 8px;vertical-align:middle}.row.servers-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:var(--color-3)}.row.servers-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.actions[_ngcontent-%COMP%]{max-width:160px;width:120px}.row.servers-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.actions[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0}.row.servers-component[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td.actions[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:1}.row.servers-component[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.row.servers-component[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex}.row.servers-component[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:10px}.row.servers-component[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{outline:0;width:300px;border-radius:5px;font-size:.9em;padding:3px 10px 0}.row.servers-component[_ngcontent-%COMP%] .badge.badge-danger[_ngcontent-%COMP%]{margin-right:10px}"]],data:{}});function jy(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),jo(-1,null,["Cancel"]))],null,null)}function By(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),jo(-1,null,["Add Server"]))],null,null)}function Vy(t){return Uo(0,[(t()(),Ci(0,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,5,"input",[["placeholder","user:password@hostname:port"],["type","text"]],[[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(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==Zi(t,2)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Zi(t,2).onTouched()&&r),"compositionstart"===e&&(r=!1!==Zi(t,2)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Zi(t,2)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(i.newServer=n)&&r),r},null,null)),co(2,16384,null,0,md,[pe,ae,[2,fd]],null,null),po(1024,null,pd,function(t){return[t]},[md]),co(4,671744,null,0,tf,[[8,null],[8,null],[8,null],[6,pd]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),po(2048,null,xd,null,[tf]),co(6,16384,null,0,Vd,[[4,xd]],null,null)],function(t,e){var n=e.component;t(e,4,0,n.loading,n.newServer)},function(t,e){t(e,1,0,Zi(e,6).ngClassUntouched,Zi(e,6).ngClassTouched,Zi(e,6).ngClassPristine,Zi(e,6).ngClassDirty,Zi(e,6).ngClassValid,Zi(e,6).ngClassInvalid,Zi(e,6).ngClassPending)})}function Uy(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"button",[["class","btn btn-outline-success btn-sm"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.addServer()&&r),r},null,null)),(t()(),jo(-1,null,[" Add "]))],null,function(t,e){var n=e.component;t(e,0,0,!n.newServer.length||n.loading)})}function zy(t){return Uo(0,[(t()(),Ci(0,0,null,null,4,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Zi(t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),co(1,671744,null,0,Tp,[Op,bh,Zs],{routerLink:[0,"routerLink"]},null),Io(2,1),(t()(),jo(3,null,["",""])),Io(4,1)],function(t,e){var n=bi(1,"/servers/",Hr(e,1,0,t(e,2,0,Zi(e.parent.parent,0),e.parent.context.$implicit.name)),"/databases");t(e,1,0,n)},function(t,e){t(e,0,0,Zi(e,1).target,Zi(e,1).href);var n=Hr(e,3,0,t(e,4,0,Zi(e.parent.parent,0),e.parent.context.$implicit.name));t(e,3,0,n)})}function Hy(t){return Uo(0,[(t()(),Ci(0,0,null,null,5,"span",[["class","error"]],null,null,null,null,null)),(t()(),Ci(1,16777216,null,null,2,"span",[["class","badge badge-danger"],["placement","bottom"]],null,null,null,null,null)),co(2,212992,null,0,qm,[ae,pe,Rt,ne,Yn,Xm,An,Qa,tr],{placement:[0,"placement"],ngbTooltip:[1,"ngbTooltip"]},null),(t()(),jo(-1,null,["Error"])),(t()(),jo(4,null,[" "," "])),Io(5,1)],function(t,e){t(e,2,0,"bottom",e.parent.context.$implicit.error.message)},function(t,e){var n=Hr(e,4,0,t(e,5,0,Zi(e.parent.parent,0),e.parent.context.$implicit.name));t(e,4,0,n)})}function Wy(t){return Uo(0,[(t()(),Ci(0,16777216,null,null,2,"span",[["class","dotted"],["placement","right"],["triggers","manual"]],null,[[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==i.toggle(Zi(t,1),t.parent.context.$implicit.databases)&&r),"mouseleave"===e&&(r=!1!==i.toggle(Zi(t,1))&&r),r},null,null)),co(1,737280,[["p1",4]],0,Vm,[ae,pe,Rt,ne,Yn,Lm,An,Qa,tr],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(t()(),jo(2,null,["",""])),(t()(),wi(0,null,null,0))],function(t,e){t(e,1,0,Zi(e.parent.parent,34),"right","manual")},function(t,e){t(e,2,0,e.parent.context.$implicit.databases.length)})}function Gy(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),jo(1,null,["",""])),Io(2,1)],null,function(t,e){var n=Hr(e,1,0,t(e,2,0,Zi(e.parent.parent,1),e.parent.context.$implicit.size));t(e,1,0,n)})}function Xy(t){return Uo(0,[(t()(),Ci(0,0,null,null,14,"tr",[],[[8,"hidden",0]],null,null,null,null)),(t()(),Ci(1,0,null,null,4,"td",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,zy)),co(3,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,Hy)),co(5,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(6,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Wy)),co(8,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(9,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Gy)),co(11,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(12,0,null,null,2,"td",[["class","actions"]],null,null,null,null,null)),(t()(),Ci(13,0,null,null,1,"button",[["class","btn btn-outline-danger btn-sm"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.removeServer(Zi(t.parent,35),t.context.$implicit)&&r),r},null,null)),(t()(),jo(-1,null,[" Remove from list "]))],function(t,e){t(e,3,0,!e.context.$implicit.error),t(e,5,0,e.context.$implicit.error),t(e,8,0,e.context.$implicit.databases),t(e,11,0,e.context.$implicit.databases)},function(t,e){t(e,0,0,e.component.loading)})}function Jy(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,2,"td",[["colspan","4"]],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"div",[["class","center"]],null,null,null,null,null)),(t()(),jo(-1,null,["No servers..."]))],null,null)}function Ky(t){return Uo(0,[(t()(),Ci(0,0,null,null,3,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,2,"td",[["colspan","4"]],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"div",[["class","center"]],null,null,null,null,null)),(t()(),jo(-1,null,["Loading..."]))],null,null)}function qy(t){return Uo(0,[(t()(),Ci(0,0,null,null,7,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(2,null,["",""])),(t()(),Ci(3,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),jo(4,null,["",""])),(t()(),Ci(5,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),jo(6,null,["",""])),Io(7,1)],null,function(t,e){t(e,2,0,e.context.$implicit.name),t(e,4,0,e.context.$implicit.collections.length);var n=Hr(e,6,0,t(e,7,0,Zi(e.parent.parent,1),e.context.$implicit.size));t(e,6,0,n)})}function $y(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"td",[["colspan","3"]],null,null,null,null,null)),(t()(),jo(2,null,[""," more items..."]))],null,function(t,e){t(e,2,0,e.parent.context.clipped)})}function Zy(t){return Uo(0,[(t()(),Ci(0,0,null,null,12,"table",[["class","sm"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,6,"thead",[],null,null,null,null,null)),(t()(),Ci(2,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["Database"])),(t()(),Ci(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["Collections"])),(t()(),Ci(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["Size"])),(t()(),Ci(8,0,null,null,4,"tbody",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,qy)),co(10,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),wi(16777216,null,null,1,null,$y)),co(12,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,10,0,e.context.collection),t(e,12,0,e.context.clipped)},null)}function Yy(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"div",[["class","modal-body"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),jo(-1,null,[" Are you sure you wan't to remove this server? This will only remove it from this list. You can add it back "])),(t()(),Ci(3,0,null,null,4,"div",[["class","modal-footer"]],null,null,null,null,null)),(t()(),Ci(4,0,null,null,1,"button",[["class","btn btn-default btn-sm"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.context.$implicit.close(!1)&&r),r},null,null)),(t()(),jo(-1,null,["No"])),(t()(),Ci(6,0,null,null,1,"button",[["class","btn btn-outline-danger btn-sm"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.context.$implicit.close(!0)&&r),r},null,null)),(t()(),jo(-1,null,["Yes"]))],null,null)}function Qy(t){return Uo(0,[ho(0,Iy,[]),ho(0,cy,[]),(t()(),Ci(2,0,null,null,33,"div",[["class","row servers-component"]],null,null,null,null,null)),(t()(),Ci(3,0,null,null,30,"panel",[],null,null,null,Cv,wv)),co(4,114688,null,0,xv,[],null,null),(t()(),Ci(5,0,null,0,12,"div",[["class","title"]],null,null,null,null,null)),(t()(),Ci(6,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),jo(-1,null,["Servers"])),(t()(),Ci(8,0,null,null,9,"div",[["class","actions"]],null,null,null,null,null)),(t()(),Ci(9,0,null,null,4,"button",[["class","btn btn-default btn-sm"]],null,[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=0!=(i.adding=!i.adding)&&r),r},null,null)),(t()(),wi(16777216,null,null,1,null,jy)),co(11,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,By)),co(13,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,Vy)),co(15,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,Uy)),co(17,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),Ci(18,0,null,1,15,"table",[["class","table table-hover"]],null,null,null,null,null)),(t()(),Ci(19,0,null,null,7,"thead",[],null,null,null,null,null)),(t()(),Ci(20,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["name"])),(t()(),Ci(22,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["databases"])),(t()(),Ci(24,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),jo(-1,null,["size"])),(t()(),Ci(26,0,null,null,0,"th",[],null,null,null,null,null)),(t()(),Ci(27,0,null,null,6,"tbody",[],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,Xy)),co(29,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),wi(16777216,null,null,1,null,Jy)),co(31,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,Ky)),co(33,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(0,[["popContent",2]],null,0,null,Zy)),(t()(),wi(0,[["confirmRemoval",2]],null,0,null,Yy))],function(t,e){var n=e.component;t(e,4,0),t(e,11,0,n.adding),t(e,13,0,!n.adding),t(e,15,0,n.adding),t(e,17,0,n.adding),t(e,29,0,n.servers),t(e,31,0,0==n.servers.length&&!n.loading),t(e,33,0,n.loading)},null)}function tb(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"app-servers",[],null,null,null,Qy,Ly)),co(1,114688,null,0,Ry,[Vv,Tm],null,null)],function(t,e){t(e,1,0)},null)}var eb=Vi("app-servers",Ry,tb,{},{},[]),nb=function(){function t(t){this.notifService=t,this._notifications=[]}return Object.defineProperty(t.prototype,"notifications",{get:function(){return Object.values(this._notifications)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.notifService.notifications.subscribe(function(e){t._notifications[e.message]=e,setTimeout(function(){t._notifications[e.message].show=!0},10)})},t.prototype.dismiss=function(t){var e=this;this._notifications[t.message].show=!1,setTimeout(function(){delete e._notifications[t.message]},200)},t}(),rb=Xr({encapsulation:0,styles:[[".notifications-manager[_ngcontent-%COMP%]{position:absolute;top:80px;right:10px;max-width:500px;z-index:150}.notifications-manager[_ngcontent-%COMP%] .notification[_ngcontent-%COMP%]{position:relative;padding:10px 30px;margin-bottom:10px;word-wrap:break-word;opacity:0;transition:opacity linear .2s;background:var(--color-1);border:1px solid var(--color-3);border-radius:5px;color:var(--text-lighter)}.notifications-manager[_ngcontent-%COMP%] .notification.error[_ngcontent-%COMP%]{background:var(--error)}.notifications-manager[_ngcontent-%COMP%] .notification.show[_ngcontent-%COMP%]{opacity:1}.notifications-manager[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{color:var(--text-lighter);text-shadow:none;position:absolute;top:0;right:5px}"]],data:{}});function ib(t){return Uo(0,[(t()(),Ci(0,0,null,null,4,"div",[],[[8,"className",0],[2,"show",null]],null,null,null,null)),(t()(),Ci(1,0,null,null,1,"div",[["class","content"]],null,null,null,null,null)),(t()(),jo(2,null,["",""])),(t()(),Ci(3,0,null,null,1,"div",[["class","close"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.dismiss(t.context.$implicit)&&r),r},null,null)),(t()(),jo(-1,null,["\xd7"]))],null,function(t,e){t(e,0,0,bi(1,"notification ",e.context.$implicit.type,""),e.context.$implicit.show),t(e,2,0,e.context.$implicit.message)})}function ob(t){return Uo(0,[(t()(),Ci(0,0,null,null,2,"div",[["class","notifications-manager"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,ib)),co(2,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.notifications)},null)}var sb=Xr({encapsulation:0,styles:[[".navbar[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%]{margin-bottom:0}.navbar[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:var(--text)}.navbar[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-item.active[_ngcontent-%COMP%]{color:var(--text-darker)}.navbar-brand[_ngcontent-%COMP%]{color:var(--text)}.navbar-brand[_ngcontent-%COMP%]:hover{color:var(--text-lighter)}.container-fluid[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding-top:25px;padding-bottom:150px}"]],data:{}});function ab(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"a",[],[[8,"href",4]],null,null,null,null)),(t()(),jo(1,null,["",""]))],null,function(t,e){t(e,0,0,e.parent.context.$implicit.href),t(e,1,0,e.parent.context.$implicit.name)})}function lb(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),jo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.parent.context.$implicit.name)})}function ub(t){return Uo(0,[(t()(),Ci(0,0,null,null,4,"li",[["class","breadcrumb-item"]],[[2,"active",null]],null,null,null,null)),(t()(),wi(16777216,null,null,1,null,ab)),co(2,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null),(t()(),wi(16777216,null,null,1,null,lb)),co(4,16384,null,0,Xa,[Yn,ze],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.context.$implicit.href),t(e,4,0,!e.context.$implicit.href)},function(t,e){t(e,0,0,e.context.$implicit.active)})}function cb(t){return Uo(0,[(t()(),Ci(0,0,null,null,8,"nav",[["class","navbar navbar-expand-lg navbar-dark bg-dark"]],null,null,null,null,null)),(t()(),Ci(1,0,null,null,1,"a",[["class","navbar-brand"],["href","/"]],null,null,null,null,null)),(t()(),jo(-1,null,["Mongoku"])),(t()(),Ci(3,0,null,null,3,"nav",[["aria-label","breadcrumb"]],null,null,null,null,null)),(t()(),Ci(4,0,null,null,2,"ol",[["class","breadcrumb bg-dark"]],null,null,null,null,null)),(t()(),wi(16777216,null,null,1,null,ub)),co(6,278528,null,0,Wa,[Yn,ze,yr],{ngForOf:[0,"ngForOf"]},null),(t()(),Ci(7,0,null,null,1,"button",[["class","ml-auto btn btn-default btn-sm"]],null,[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==i.switchTheme(i.otherTheme)&&r),r},null,null)),(t()(),jo(8,null,[" Switch to "," "])),(t()(),Ci(9,0,null,null,1,"notifications",[],null,null,null,ob,rb)),co(10,114688,null,0,nb,[Ov.a],null,null),(t()(),Ci(11,0,null,null,4,"div",[["class","container-fluid"]],null,null,null,null,null)),(t()(),Ci(12,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),(t()(),Ci(13,0,null,null,2,"div",[["class","col-md-10 offset-md-1 col-xs-12 content"]],null,null,null,null,null)),(t()(),Ci(14,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),co(15,212992,null,0,Np,[Fp,Yn,ne,[8,null],tr],null,null)],function(t,e){t(e,6,0,e.component.breadcrumbs),t(e,10,0),t(e,15,0)},function(t,e){t(e,8,0,e.component.otherTheme)})}function hb(t){return Uo(0,[(t()(),Ci(0,0,null,null,1,"content",[],null,null,null,cb,sb)),co(1,8503296,null,0,nd,[Op,pe],null,null)],function(t,e){t(e,1,0)},null)}var pb=Vi("content",nd,hb,{},{},[]),db=function(){return function(){}}(),fb=function(){return function(){}}(),mb=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,Object(r.g)(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var s=this.headers.get(e);if(!s)return;0===(s=s.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),gb=function(){function t(){}return t.prototype.encodeKey=function(t){return vb(t)},t.prototype.encodeValue=function(t){return vb(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function vb(t){return encodeURIComponent(t).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 yb=function(){function t(t){void 0===t&&(t={});var e,n,i,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new gb,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=Object(r.f)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),s=o[0],a=o[1],l=i.get(s)||[];l.push(a),i.set(s,l)}),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function bb(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function xb(t){return"undefined"!=typeof Blob&&t instanceof Blob}function wb(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Cb=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){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 mb),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s<e.length-1?"&":"")+o}}else this.params=new yb,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:bb(this.body)||xb(this.body)||wb(this.body)||"string"==typeof this.body?this.body:this.body instanceof yb?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:wb(this.body)?null:xb(this.body)?this.body.type||null:bb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof yb?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,l=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},l)),e.setParams&&(u=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},u)),new t(n,r,o,{params:u,headers:l,reportProgress:a,responseType:i,withCredentials:s})},t}(),_b=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),Db=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new mb,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),Sb=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=_b.ResponseHeader,n}return Object(r.c)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Db),Eb=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=_b.Response,n.body=void 0!==e.body?e.body:null,n}return Object(r.c)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Db),kb=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(r.c)(e,t),e}(Db);function Ab(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Ob=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof Cb)r=t;else{var o;o=n.headers instanceof mb?n.headers:new mb(n.headers);var s=void 0;n.params&&(s=n.params instanceof yb?n.params:new yb({fromObject:n.params})),r=new Cb(t,e,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=sl(r).pipe(Yl(function(t){return i.handler.handle(t)}));if(t instanceof Cb||"events"===n.observe)return a;var l=a.pipe(yl(function(t){return t instanceof Eb}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(D(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(D(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(D(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(D(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new yb).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Ab(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Ab(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Ab(n,e))},t}(),Tb=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Mb=new q("HTTP_INTERCEPTORS"),Pb=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Fb=/^\)\]\}',?\n/,Nb=function(){return function(){}}(),Ib=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Rb=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new s.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var s=t.serializeBody(),a=null,l=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new mb(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return a=new Sb({headers:i,status:e,statusText:n,url:o})},u=function(){var e=l(),i=e.headers,o=e.status,s=e.statusText,a=e.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"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(Fb,"");try{u=""!==u?JSON.parse(u):null}catch(p){u=h,c&&(c=!1,u={error:p,text:u})}}c?(n.next(new Eb({body:u,headers:i,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new kb({error:u,headers:i,status:o,statusText:s,url:a||void 0}))},c=function(t){var e=l().url,i=new kb({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,p=function(e){h||(n.next(l()),h=!0);var i={type:_b.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:_b.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",p),null!==s&&r.upload&&r.upload.addEventListener("progress",d)),r.send(s),n.next({type:_b.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",p),null!==s&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},t}(),Lb=new q("XSRF_COOKIE_NAME"),jb=new q("XSRF_HEADER_NAME"),Bb=function(){return function(){}}(),Vb=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=za(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),Ub=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),zb=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Mb,[]);this.chain=e.reduceRight(function(t,e){return new Tb(t,e)},this.backend)}return this.chain.handle(t)},t}(),Hb=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:Ub,useClass:Pb}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:Lb,useValue:t.cookieName}:[],t.headerName?{provide:jb,useValue:t.headerName}:[]]}},t}(),Wb=function(){return function(){}}(),Gb=function(){return function(){}}(),Xb=(n("+dQi"),function(){return function(){}}()),Jb=function(){return function(){}}(),Kb=function(){return function(){}}(),qb=function(){return function(){}}(),$b=Xs(Ks,[nd],function(t){return function(t){for(var e={},n=[],r=!1,i=0;i<t.length;i++){var o=t[i];o.token===$t&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,e[zr(o.token)]=o}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:r}}([Mi(512,ne,re,[[8,[og,jg,hv,mv,Gg,qg,nv,bv,Jv,uy,Cy,Ny,eb,pb]],[3,ne],oe]),Mi(5120,Dr,kr,[[3,Dr]]),Mi(4608,Va,Ua,[Dr,[2,Ba]]),Mi(5120,an,ln,[]),Mi(5120,yr,Sr,[]),Mi(5120,br,Er,[]),Mi(4608,tc,ec,[Qa]),Mi(6144,me,null,[tc]),Mi(4608,Ju,qu,[]),Mi(5120,xu,function(t,e,n,r,i,o,s,a){return[new Gu(t,e,n),new Qu(r),new $u(i,o,s,a)]},[Qa,An,hn,Qa,Qa,Ju,dn,[2,Ku]]),Mi(4608,wu,wu,[xu,An]),Mi(135680,Du,Du,[Qa]),Mi(4608,Mu,Mu,[wu,Du]),Mi(6144,ce,null,[Mu]),Mi(6144,_u,null,[Du]),Mi(4608,Rn,Rn,[An]),Mi(4608,wd,wd,[]),Mi(4608,Tm,Tm,[ne,Rt,Om,bm]),Mi(5120,bh,Zp,[Op]),Mi(4608,jp,jp,[]),Mi(6144,Rp,null,[jp]),Mi(135680,Bp,Bp,[Op,Xe,wn,Rt,Rp]),Mi(4608,Lp,Lp,[]),Mi(5120,Vp,Xp,[Op,el,Up]),Mi(5120,ed,td,[Yp]),Mi(5120,pn,function(t){return[t]},[ed]),Mi(4608,Bb,Vb,[Qa,hn,Lb]),Mi(4608,Ub,Ub,[Bb,jb]),Mi(5120,Mb,function(t){return[t]},[Ub]),Mi(4608,Ib,Ib,[]),Mi(6144,Nb,null,[Ib]),Mi(4608,Rb,Rb,[Nb]),Mi(6144,fb,null,[Rb]),Mi(4608,db,zb,[fb,Rt]),Mi(4608,Ob,Ob,[db]),Mi(4608,Ov.a,Ov.a,[]),Mi(4608,Vv,Vv,[Ob,Ov.a]),Mi(4608,Av.a,Av.a,[Ov.a]),Mi(1073742336,Ya,Ya,[]),Mi(1024,en,uc,[]),Mi(1024,Vn,function(){return[Wp()]},[]),Mi(512,Yp,Yp,[Rt]),Mi(1024,on,function(t,e){return[(n=t,vu("probe",bu),vu("coreTokens",Object(r.a)({},yu,(n||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return bu}),Qp(e)];var n},[[2,Vn],Yp]),Mi(512,sn,sn,[[2,on]]),Mi(131584,Gn,Gn,[An,dn,Rt,en,ne,sn]),Mi(1073742336,Ar,Ar,[Gn]),Mi(1073742336,cc,cc,[[3,cc]]),Mi(1073742336,kf,kf,[]),Mi(1073742336,Tf,Tf,[]),Mi(1073742336,Mf,Mf,[]),Mi(1073742336,Pf,Pf,[]),Mi(1073742336,Ff,Ff,[]),Mi(1073742336,ef,ef,[]),Mi(1073742336,nf,nf,[]),Mi(1073742336,dm,dm,[]),Mi(1073742336,ym,ym,[]),Mi(1073742336,Mm,Mm,[]),Mi(1073742336,Pm,Pm,[]),Mi(1073742336,Um,Um,[]),Mi(1073742336,zm,zm,[]),Mi(1073742336,Hm,Hm,[]),Mi(1073742336,Wm,Wm,[]),Mi(1073742336,Gm,Gm,[]),Mi(1073742336,$m,$m,[]),Mi(1073742336,Qm,Qm,[]),Mi(1073742336,tg,tg,[]),Mi(1024,zp,Kp,[[3,Op]]),Mi(512,Zc,Yc,[]),Mi(512,Fp,Fp,[]),Mi(256,Up,{enableTracing:!1},[]),Mi(1024,Zs,Jp,[qs,[2,Ys],Up]),Mi(512,Qs,Qs,[Zs]),Mi(512,wn,wn,[]),Mi(512,Xe,$n,[wn,[2,Kn]]),Mi(1024,Cp,function(){return[[{path:"servers/:server/databases/:database/collections/:collection/documents/:document",component:Uv},{path:"servers/:server/databases/:database/collections/:collection",component:ey},{path:"servers/:server/databases/:database/collections",component:hy},{path:"servers/:server/databases/:database",redirectTo:"/servers/:server/databases/:database/collections"},{path:"servers/:server/databases",component:_y},{path:"servers/:server",redirectTo:"/servers/:server/databases"},{path:"servers",component:Ry},{path:"",redirectTo:"/servers",pathMatch:"full"}]]},[]),Mi(1024,Op,$p,[Gn,Zc,Fp,Qs,Rt,Xe,wn,Cp,Up,[2,Dp],[2,xp]]),Mi(1073742336,Gp,Gp,[[2,zp],[2,Op]]),Mi(1073742336,Gb,Gb,[]),Mi(1073742336,Sv,Sv,[]),Mi(1073742336,Xb,Xb,[]),Mi(1073742336,Hb,Hb,[]),Mi(1073742336,Wb,Wb,[]),Mi(1073742336,Jb,Jb,[]),Mi(1073742336,Kb,Kb,[]),Mi(1073742336,qb,qb,[]),Mi(1073742336,Ks,Ks,[]),Mi(256,$t,!0,[]),Mi(256,Lb,"XSRF-TOKEN",[]),Mi(256,jb,"X-XSRF-TOKEN",[])])});(function(){if(ye)throw new Error("Cannot enable prod mode after platform setup.");ve=!1})(),lc().bootstrapModuleFactory($b).catch(function(t){return console.log(t)})}},[[0,0]]]);
|