record-editor
Version:
Editor (used in inspirehep.net) for JSON documents with bibliographic metadata
1 lines • 1.29 MB
JavaScript
webpackJsonp([6],{"+1Pc":function(t,e,r){"use strict";r.d(e,"a",function(){return u});var n,o=r("/oeL"),i=r("k+Qn"),a=r("xAMi"),s=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=function(t){function e(e,r,n,o){var i=t.call(this)||this;return i.domUtilService=e,i.pathUtilService=r,i.jsonStoreService=n,i.changeDetectorRef=o,i.patches=[],i}return s(e,t),e.prototype.ngOnInit=function(){var t=this;this.jsonStoreService.patchesByPath$.map(function(t){return Object.keys(t).map(function(e){return t[e]}).reduce(function(t,e){return t.concat(e)},[])}).takeUntil(this.isDestroyed).subscribe(function(e){t.patches=e,t.changeDetectorRef.markForCheck()})},e.prototype.focusPatch=function(t){this.domUtilService.focusPatch(t)},e.prototype.acceptAll=function(){var t=this;this.patches.forEach(function(e){return t.jsonStoreService.applyPatch(e)})},e.prototype.rejectAll=function(){var t=this;this.patches.forEach(function(e){return t.jsonStoreService.rejectPatch(e)})},e}(i.a);u.decorators=[{type:o.l,args:[{selector:"patches-console-tab",styles:[".list-group-item { cursor: pointer; color: #0074D9; } .list-group-item:hover { background-color: #faebcc; text-decoration: underline; } ",".fa-bolt { color: #e67e22; } .icon-padding-left { padding-left: 8px; } .all-actions-container { padding: 8px; } .all-actions-container > button { margin-right: 4px; margin-left: 4px; } "],template:'<ng-template tabHeading> <i class="fa fa-bolt"></i> Conflicts <span class="badge">{{patches.length}}</span> </ng-template> <div *ngIf="patches && patches.length > 0" class="all-actions-container"> <button class="btn btn-success" (click)="acceptAll()">Accept All<i class="fa fa-check icon-padding-left"></i></button> <button class="btn btn-danger" (click)="rejectAll()">Reject All<i class="fa fa-times icon-padding-left"></i></button> </div> <ul class="list-group"> <li *ngFor="let patch of patches" class="list-group-item" (click)="focusPatch(patch)"> <i class="fa fa-bolt"></i> {{patch.path}} - {{patch.op}} </li> </ul> ',changeDetection:o.i.OnPush}]}],u.ctorParameters=function(){return[{type:a.d},{type:a.n},{type:a.h},{type:o.j}]}},"+GRi":function(t,e,r){var n=r("Wo2w"),o=r("Wy9r");t.exports=function(t){return n(o(t))}},"+Q6C":function(t,e,r){var n=r("CDXM"),o=r("6De9").f,i=r("+pQw");n(n.S,"Reflect",{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},"+aW+":function(t,e,r){"use strict";var n=r("CDXM"),o=r("uNkO"),i=r("RT4T"),a=r("umMR"),s=[].sort,u=[1,2,3];n(n.P+n.F*(a(function(){u.sort(void 0)})||!a(function(){u.sort(null)})||!r("bhtb")(s)),"Array",{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},"+c1l":function(t,e,r){var n=r("CDXM");n(n.S+n.F*!r("V+0c"),"Object",{defineProperty:r("tose").f})},"+cbn":function(t,e,r){"use strict";r.d(e,"a",function(){return o});var n=r("/oeL"),o=function(){function t(){this.value=!1,this.onText="ON",this.offText="OFF",this.onColor="#0088cc",this.offColor="#eceeef",this.valueChange=new n.r}return t.prototype.onToggle=function(){this.value=!this.value,this.valueChange.emit(this.value)},Object.defineProperty(t.prototype,"color",{get:function(){return this.value?this.onColor:this.offColor},enumerable:!0,configurable:!0}),t}();o.decorators=[{type:n.l,args:[{selector:"slide-toggle",changeDetection:n.i.OnPush,template:'<label class="switch"> <input class="switch-input" type="checkbox" [checked]="value" (change)="onToggle()"/> <span class="switch-label" [attr.data-on]="onText" [attr.data-off]="offText" [style.background]="color"></span> <span class="switch-handle"></span> </label>',styles:['.switch { position: relative; display: block; width: 100px; height: 30px; padding: 3px; margin: 2px; background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px); background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px); border-radius: 18px; box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05); cursor: pointer; box-sizing:content-box; } .switch-input { position: absolute; top: 0; left: 0; opacity: 0; box-sizing:content-box; } .switch-label { position: relative; display: block; height: inherit; font-size: 10px; text-transform: uppercase; border-radius: inherit; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15); box-sizing:content-box; } .switch-label:before, .switch-label:after { position: absolute; top: 50%; margin-top: -.5em; line-height: 1; -webkit-transition: inherit; -moz-transition: inherit; -o-transition: inherit; transition: inherit; box-sizing:content-box; } .switch-label:before { content: attr(data-off); right: 11px; color: #aaaaaa; text-shadow: 0 1px rgba(255, 255, 255, 0.5); } .switch-label:after { content: attr(data-on); left: 11px; color: #FFFFFF; text-shadow: 0 1px rgba(0, 0, 0, 0.2); opacity: 0; } .switch-input:checked ~ .switch-label { background: #E1B42B; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2); } .switch-input:checked ~ .switch-label:before { opacity: 0; } .switch-input:checked ~ .switch-label:after { opacity: 1; } .switch-handle { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0); background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0); border-radius: 100%; box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); } .switch-handle:before { content: ""; position: absolute; top: 50%; left: 50%; margin: -6px 0 0 -6px; width: 12px; height: 12px; background: linear-gradient(to bottom, #eeeeee, #FFFFFF); background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF); border-radius: 6px; box-shadow: inset 0 1px rgba(0, 0, 0, 0.02); } .switch-input:checked ~ .switch-handle { left: 74px; box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2); } .switch-label, .switch-handle { transition: All 0.3s ease; -webkit-transition: All 0.3s ease; -moz-transition: All 0.3s ease; -o-transition: All 0.3s ease; }']}]}],o.ctorParameters=function(){return[]},o.propDecorators={value:[{type:n.z}],onText:[{type:n.z}],offText:[{type:n.z}],onColor:[{type:n.z}],valueChange:[{type:n.K}]}},"+iEx":function(t,e,r){r("fHxy"),r("5GJ3"),r("X0O/"),r("HCkn"),r("ncNB"),r("soMw"),r("8sYH"),r("IJ3P"),r("t6ta"),t.exports=r("b4gG").Reflect},"+pQw":function(t,e,r){var n=r("JXkd");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},"/3zX":function(t,e){function r(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}function n(t,e){var n=[],o=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+o.slice(0,r(n,e)).join(".")+"]"}),function(i,a){if(n.length>0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?o.splice(s,1/0,i):o.push(i),~r(n,a)&&(a=e.call(this,i,a))}else n.push(a);return null==t?a instanceof Error?function(t){var e={stack:t.stack,message:t.message,name:t.name};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}(a):a:t.call(this,i,a)}}(t.exports=function(t,e,r,o){return JSON.stringify(t,n(e,o),r)}).getSerialize=n},"/Aon":function(t,e,r){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},"/JsI":function(t,e,r){var n=r("CDXM");n(n.S+n.F,"Object",{assign:r("rIdM")})},"/Mgt":function(t,e,r){var n=r("CDXM");n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"/NeN":function(t,e,r){"use strict";t.exports=function(t,e,r){var n,o=" ",i=t.level,a=t.dataLevel,s=t.schema[e],u=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,p="data"+(a||""),h=t.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+t.util.getData(s.$data,a,t.dataPathArr)+"; ",n="schema"+i):n=s;var f="maxLength"==e?">":"<";o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===t.opts.unicode?o+=" "+p+".length ":o+=" ucs2length("+p+") ",o+=" "+f+" "+n+") { ";var d=e,y=y||[];y.push(o),o="",!1!==t.createErrors?(o+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==t.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==e?"longer":"shorter",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" characters' "),t.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+u:""+s,o+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var v=o;return o=y.pop(),!t.compositeRule&&l?t.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},"/XRd":function(t,e,r){var n=r("tose"),o=r("CDXM"),i=r("+pQw"),a=r("A1WY");o(o.S+o.F*r("umMR")(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,r){i(t),e=a(e,!0),i(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},"/XUI":function(t,e,r){"use strict";r.d(e,"a",function(){return o});var n=r("/oeL"),o=function(){function t(){this.placement="top",this.triggers="hover focus"}return t.decorators=[{type:n.w}],t.ctorParameters=function(){return[]},t}()},"/oeL":function(t,e,r){"use strict";(function(t){r.d(e,"g",function(){return Ne}),r.d(e,"_8",function(){return Te}),r.d(e,"_11",function(){return Ae}),r.d(e,"_7",function(){return Me}),r.d(e,"H",function(){return je}),r.d(e,"c",function(){return Ut}),r.d(e,"M",function(){return $t}),r.d(e,"L",function(){return Gt}),r.d(e,"b",function(){return Wt}),r.d(e,"d",function(){return Vt}),r.d(e,"e",function(){return Bt}),r.d(e,"_10",function(){return ir}),r.d(e,"_0",function(){return we}),r.d(e,"_13",function(){return xe}),r.d(e,"C",function(){return Tr}),r.d(e,"f",function(){return Rr}),r.d(e,"r",function(){return ve}),r.d(e,"q",function(){return ct}),r.d(e,"T",function(){return Nr}),r.d(e,"U",function(){return Dr}),r.d(e,"a",function(){return E}),r.d(e,"h",function(){return k}),r.d(e,"n",function(){return T}),r.d(e,"_2",function(){return j}),r.d(e,"_3",function(){return A}),r.d(e,"l",function(){return D}),r.d(e,"o",function(){return R}),r.d(e,"t",function(){return L}),r.d(e,"u",function(){return V}),r.d(e,"z",function(){return F}),r.d(e,"K",function(){return z}),r.d(e,"N",function(){return N}),r.d(e,"D",function(){return B}),r.d(e,"_5",function(){return U}),r.d(e,"_1",function(){return q}),r.d(e,"_9",function(){return J}),r.d(e,"y",function(){return rt}),r.d(e,"O",function(){return Dt}),r.d(e,"x",function(){return u}),r.d(e,"v",function(){return K}),r.d(e,"J",function(){return $}),r.d(e,"w",function(){return G}),r.d(e,"V",function(){return W}),r.d(e,"W",function(){return Q}),r.d(e,"s",function(){return X}),r.d(e,"I",function(){return me}),r.d(e,"P",function(){return Le}),r.d(e,"Q",function(){return Ue}),r.d(e,"R",function(){return Ve}),r.d(e,"S",function(){return Be}),r.d(e,"k",function(){return Jt}),r.d(e,"m",function(){return oe}),r.d(e,"p",function(){return qe}),r.d(e,"E",function(){return le}),r.d(e,"G",function(){return ce}),r.d(e,"F",function(){return He}),r.d(e,"X",function(){return We}),r.d(e,"Y",function(){return $e}),r.d(e,"Z",function(){return Xe}),r.d(e,"_4",function(){return Je}),r.d(e,"i",function(){return M}),r.d(e,"j",function(){return Ze}),r.d(e,"A",function(){return Sr}),r.d(e,"B",function(){return xr}),r.d(e,"_6",function(){return ur}),r.d(e,"_12",function(){return Or}),r.d(e,"_26",function(){return lr}),r.d(e,"_15",function(){return Qt}),r.d(e,"_14",function(){return se}),r.d(e,"_24",function(){return p}),r.d(e,"_31",function(){return y}),r.d(e,"_43",function(){return v}),r.d(e,"_27",function(){return Lt}),r.d(e,"_28",function(){return zt}),r.d(e,"_16",function(){return On}),r.d(e,"_17",function(){return Wn}),r.d(e,"_18",function(){return ea}),r.d(e,"_19",function(){return Zr}),r.d(e,"_20",function(){return go}),r.d(e,"_22",function(){return Tn}),r.d(e,"_25",function(){return En}),r.d(e,"_33",function(){return zn}),r.d(e,"_34",function(){return Fn}),r.d(e,"_35",function(){return Vo}),r.d(e,"_36",function(){return io}),r.d(e,"_38",function(){return bo}),r.d(e,"_41",function(){return _o}),r.d(e,"_37",function(){return qo}),r.d(e,"_39",function(){return Ho}),r.d(e,"_40",function(){return Uo}),r.d(e,"_42",function(){return Do}),r.d(e,"_44",function(){return $o}),r.d(e,"_45",function(){return Qr}),r.d(e,"_46",function(){return Qo}),r.d(e,"_29",function(){return jr}),r.d(e,"_30",function(){return Mr}),r.d(e,"_32",function(){return Ir}),r.d(e,"_21",function(){return Fe}),r.d(e,"_23",function(){return qt});var n=r("6Xbx"),o=r("AP4T"),i=r("2kLc"),a=r("URbD"),s=r("TO51"),u=function(t){function e(e){return t.call(this,e)||this}return n.a(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}()),c="undefined"!==typeof window&&window,l="undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,p=c||"undefined"!==typeof t&&t||l,h=null;function f(){if(!h){var t=p.Symbol;if(t&&t.iterator)h=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),r=0;r<e.length;++r){var n=e[r];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(h=n)}}return h}function d(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function y(t,e){return t===e||"number"===typeof t&&"number"===typeof e&&isNaN(t)&&isNaN(e)}function v(t){if("string"===typeof t)return t;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 r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}var m=0,g=p.Reflect;function b(t){return"function"===typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function _(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+v(t)+" as constructor");if("function"===typeof t)return t;if(Array.isArray(t)){var r=t,n=r.length-1,o=t[n];if("function"!==typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+v(o)+"'");if(n!=o.length)throw new Error("Number of annotations ("+n+") does not match number of arguments ("+o.length+") in the function: "+v(o));for(var i=[],a=0,s=r.length-1;a<s;a++){var u=[];i.push(u);var c=r[a];if(Array.isArray(c))for(var l=0;l<c.length;l++)u.push(b(c[l]));else"function"===typeof c?u.push(b(c)):u.push(c)}return g.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+v(t)+"'")}function w(t){var e=_(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),r=e.prototype;if(t.hasOwnProperty("extends")){if("function"!==typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+v(t.extends));e.prototype=r=Object.create(t.extends.prototype)}for(var n in t)"extends"!==n&&"prototype"!==n&&t.hasOwnProperty(n)&&(r[n]=_(t[n],n));this&&this.annotations instanceof Array&&g.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+m++),e}function S(t,e,r,n){var o=x(e);function i(t){if(!g||!g.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),r="function"===typeof this&&Array.isArray(this.annotations)?this.annotations:[];r.push(e);var a=function(t){var r=g.getOwnMetadata("annotations",t)||[];return r.push(e),g.defineMetadata("annotations",r,t),t};return a.annotations=r,a.Class=w,n&&n(a),a}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function x(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=t.apply(void 0,e);for(var o in n)this[o]=n[o]}}}function P(t,e,r){var n=x(e);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof o)return n.apply(this,t),this;var r=new(o.bind.apply(o,[void 0].concat(t)));return i.annotation=r,i;function i(t,e,n){for(var o=g.getOwnMetadata("parameters",t)||[];o.length<=n;)o.push(null);return o[n]=o[n]||[],o[n].push(r),g.defineMetadata("parameters",o,t),t}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function C(t,e,r){var n=x(e);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof o)return n.apply(this,t),this;var r=new(o.bind.apply(o,[void 0].concat(t)));return function(t,e){var n=g.getOwnMetadata("propMetadata",t.constructor)||{};n[e]=n.hasOwnProperty(e)&&n[e]||[],n[e].unshift(r),g.defineMetadata("propMetadata",n,t.constructor)}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}var E=new u("AnalyzeForEntryComponents"),k=P("Attribute",function(t){return{attributeName:t}}),O=function(){return function(){}}(),T=C("ContentChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},O),A=(C("ContentChild",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},O),C("ViewChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},O)),j=C("ViewChild",function(t,e){return Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},O),M={OnPush:0,Default:1};M[M.OnPush]="OnPush",M[M.Default]="Default";var I={};I.CheckOnce=0,I.Checked=1,I.CheckAlways=2,I.Detached=3,I.Errored=4,I.Destroyed=5,I[I.CheckOnce]="CheckOnce",I[I.Checked]="Checked",I[I.CheckAlways]="CheckAlways",I[I.Detached]="Detached",I[I.Errored]="Errored",I[I.Destroyed]="Destroyed";var R=S("Directive",function(t){return void 0===t&&(t={}),t}),D=S("Component",function(t){return void 0===t&&(t={}),Object.assign({changeDetection:M.Default},t)},R),N=S("Pipe",function(t){return Object.assign({pure:!0},t)}),F=C("Input",function(t){return{bindingPropertyName:t}}),z=C("Output",function(t){return{bindingPropertyName:t}}),L=C("HostBinding",function(t){return{hostPropertyName:t}}),V=C("HostListener",function(t,e){return{eventName:t,args:e}}),B=S("NgModule",function(t){return t}),U={Emulated:0,Native:1,None:2};U[U.Emulated]="Emulated",U[U.Native]="Native",U[U.None]="None";var q=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),H=new q("4.4.7"),K=P("Inject",function(t){return{token:t}}),$=P("Optional"),G=S("Injectable"),W=P("Self"),Q=P("SkipSelf"),X=P("Host");function J(t){return t.__forward_ref__=J,t.toString=function(){return v(this())},t}function Z(t){return"function"===typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===J?t():t}var Y=new Object,tt=Y,et=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Y),e===Y)throw new Error("No provider for "+v(t)+"!");return e},t}(),rt=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();rt.THROW_IF_NOT_FOUND=Y,rt.NULL=new et;var nt="ngDebugContext",ot="ngOriginalError",it="ngErrorLogger";function at(t){return t[nt]}function st(t){return t[ot]}function ut(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.error.apply(t,e)}var ct=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),r=this._findContext(t),n=function(t){return t[it]||ut}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),r&&n(this._console,"ERROR CONTEXT",r)},t.prototype._findContext=function(t){return t?at(t)?at(t):this._findContext(st(t)):null},t.prototype._findOriginalError=function(t){for(var e=st(t);e&&st(e);)e=st(e);return e},t}();function lt(t){return t.length>1?" ("+function(t){for(var e=[],r=0;r<t.length;++r){if(e.indexOf(t[r])>-1)return e.push(t[r]),e;e.push(t[r])}return e}(t.slice().reverse()).map(function(t){return v(t.token)}).join(" -> ")+")":""}function pt(t,e,r,n){var o=[e],i=r(o),a=n?function(t,e){var r=t+" caused by: "+(e instanceof Error?e.message:e),n=Error(r);return n[ot]=e,n}(i,n):Error(i);return a.addKey=ht,a.keys=o,a.injectors=[t],a.constructResolvingMessage=r,a[ot]=n,a}function ht(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function ft(t,e){for(var r=[],n=0,o=e.length;n<o;n++){var i=e[n];i&&0!=i.length?r.push(i.map(v).join(" ")):r.push("?")}return Error("Cannot resolve all parameters for '"+v(t)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+v(t)+"' is decorated with Injectable.")}var dt=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return v(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return yt.get(Z(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return yt.numberOfKeys},enumerable:!0,configurable:!0}),t}(),yt=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof dt)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new dt(t,dt.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),vt=Function;function mt(t){return"function"===typeof t}var gt=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,bt=function(){function t(t){this._reflect=t||p.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var r;r="undefined"===typeof t?new Array(e.length):new Array(t.length);for(var n=0;n<r.length;n++)"undefined"===typeof t?r[n]=[]:t[n]!=Object?r[n]=[t[n]]:r[n]=[],e&&null!=e[n]&&(r[n]=r[n].concat(e[n]));return r},t.prototype._ownParameters=function(t,e){if(gt.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var r=t.ctorParameters;if(r&&r!==e.ctorParameters){var n="function"===typeof r?r():r,o=n.map(function(t){return t&&t.type}),i=n.map(function(t){return t&&_t(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){i=this._reflect.getOwnMetadata("parameters",t);if((o=this._reflect.getOwnMetadata("design:paramtypes",t))||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!mt(t))return[];var e=wt(t),r=this._ownParameters(t,e);return r||e===Object||(r=this.parameters(e)),r||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var r=t.annotations;return"function"===typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==e.decorators?_t(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!mt(t))return[];var e=wt(t),r=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(r)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var r=t.propMetadata;return"function"===typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var n=t.propDecorators,o={};return Object.keys(n).forEach(function(t){o[t]=_t(n[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!mt(t))return{};var e=wt(t),r={};if(e!==Object){var n=this.propMetadata(e);Object.keys(n).forEach(function(t){r[t]=n[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];r.hasOwnProperty(t)&&e.push.apply(e,r[t]),e.push.apply(e,o[t]),r[t]=e}),r},t.prototype.hasLifecycleHook=function(t,e){return t instanceof vt&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){return new Function("o","args","if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);")},t.prototype.importUri=function(t){return"object"===typeof t&&t.filePath?t.filePath:"./"+v(t)},t.prototype.resourceUri=function(t){return"./"+v(t)},t.prototype.resolveIdentifier=function(t,e,r,n){return n},t.prototype.resolveEnum=function(t,e){return t[e]},t}();function _t(t){return t?t.map(function(t){var e=t.type.annotationCls,r=t.args?t.args:[];return new(e.bind.apply(e,[void 0].concat(r)))}):[]}function wt(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}var St=function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,r,n){return this.reflectionCapabilities.resolveIdentifier(t,e,r,n)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}(),xt=new St(new bt),Pt=function(){function t(t,e,r){this.key=t,this.optional=e,this.visibility=r}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Ct=[],Et=function(){function t(t,e,r){this.key=t,this.resolvedFactories=e,this.multiProvider=r}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),kt=function(){return function(t,e){this.factory=t,this.dependencies=e}}();function Ot(t){var e,r;if(t.useClass){var n=Z(t.useClass);e=xt.factory(n),r=jt(n)}else t.useExisting?(e=function(t){return t},r=[Pt.fromKey(dt.get(t.useExisting))]):t.useFactory?(e=t.useFactory,r=function(t,e){if(e){var r=e.map(function(t){return[t]});return e.map(function(e){return Mt(t,e,r)})}return jt(t)}(t.useFactory,t.deps)):(e=function(){return t.useValue},r=Ct);return new kt(e,r)}function Tt(t){return new Et(dt.get(t.provide),[Ot(t)],t.multi||!1)}function At(t){var e=function(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=e.get(n.key.id);if(o){if(n.multiProvider!==o.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+o+" "+n);if(n.multiProvider)for(var i=0;i<n.resolvedFactories.length;i++)o.resolvedFactories.push(n.resolvedFactories[i]);else e.set(n.key.id,n)}else{var a=void 0;a=n.multiProvider?new Et(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,a)}}return e}(function t(e,r){e.forEach(function(e){if(e instanceof vt)r.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)r.push(e);else{if(!(e instanceof Array))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);t(e,r)}});return r}(t,[]).map(Tt),new Map);return Array.from(e.values())}function jt(t){var e=xt.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw ft(t,e);return e.map(function(r){return Mt(t,r,e)})}function Mt(t,e,r){var n=null,o=!1;if(!Array.isArray(e))return It(e instanceof K?e.token:e,o,null);for(var i=null,a=0;a<e.length;++a){var s=e[a];s instanceof vt?n=s:s instanceof K?n=s.token:s instanceof $?o=!0:s instanceof W||s instanceof Q?i=s:s instanceof u&&(n=s)}if(null!=(n=Z(n)))return It(n,o,i);throw ft(t,r)}function It(t,e,r){return new Pt(dt.get(t),e,r)}var Rt=new Object,Dt=function(){function t(){}return t.resolve=function(t){return At(t)},t.resolveAndCreate=function(e,r){var n=t.resolve(e);return t.fromResolvedProviders(n,r)},t.fromResolvedProviders=function(t,e){return new Nt(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),Nt=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var r=t.length;this.keyIds=new Array(r),this.objs=new Array(r);for(var n=0;n<r;n++)this.keyIds[n]=t[n].key.id,this.objs[n]=Rt}return t.prototype.get=function(t,e){return void 0===e&&(e=tt),this._getByKey(dt.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=Dt.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var r=new t(e);return r._parent=this,r},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(Dt.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw function(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw e=this,r=t.key,pt(e,r,function(t){return"Cannot instantiate cyclic dependency!"+lt(t)});var e,r;return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),r=0;r<t.resolvedFactories.length;++r)e[r]=this._instantiate(t,t.resolvedFactories[r]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var r,n,o,i,a,s=this,u=e.factory;try{r=e.dependencies.map(function(t){return s._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{n=u.apply(void 0,r)}catch(e){throw o=this,i=e,e.stack,a=t.key,pt(o,a,function(t){var e=v(t[0].token);return i.message+": Error during instantiation of "+e+"!"+lt(t)+"."},i)}return n},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:tt)},t.prototype._getByKey=function(t,e,r){return t===Ft?this:e instanceof W?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Rt&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Rt},t.prototype._throwOrNull=function(t,e){if(e!==tt)return e;throw function(t,e){return pt(t,e,function(t){return"No provider for "+v(t[0].token)+"!"+lt(t)})}(this,t)},t.prototype._getByKeySelf=function(t,e){var r=this._getObjByKeyId(t.id);return r!==Rt?r:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,r,n){var o;for(o=n instanceof Q?this._parent:this;o instanceof t;){var i=o,a=i._getObjByKeyId(e.id);if(a!==Rt)return a;o=i._parent}return null!==o?o.get(e.token,r):this._throwOrNull(e,r)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function(t,e){for(var r=new Array(t._providers.length),n=0;n<t._providers.length;++n)r[n]=e(t.getProviderAtIndex(n));return r}(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),Ft=dt.get(rt);function zt(t){return!!t&&"function"===typeof t.then}function Lt(t){return!!t&&"function"===typeof t.subscribe}var Vt=new u("Application Initializer"),Bt=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(t,r){e.resolve=t,e.reject=r})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],r=function(){t._done=!0,t.resolve()};if(this.appInits)for(var n=0;n<this.appInits.length;n++){var o=this.appInits[n]();zt(o)&&e.push(o)}Promise.all(e).then(function(){r()}).catch(function(e){t.reject(e)}),0===e.length&&r(),this.initialized=!0}},Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();Bt.decorators=[{type:G}],Bt.ctorParameters=function(){return[{type:Array,decorators:[{type:K,args:[Vt]},{type:$}]}]};var Ut=new u("AppId");function qt(){return""+Kt()+Kt()+Kt()}var Ht={provide:Ut,useFactory:qt,deps:[]};function Kt(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var $t=new u("Platform Initializer"),Gt=new u("Platform ID"),Wt=new u("appBootstrapListener"),Qt=(new u("Application Packages Root URL"),function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}());Qt.decorators=[{type:G}],Qt.ctorParameters=function(){return[]};function Xt(){throw new Error("Runtime compiler is not loaded")}var Jt=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw Xt()},t.prototype.compileModuleAsync=function(t){throw Xt()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw Xt()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw Xt()},t.prototype.getNgContentSelectors=function(t){throw Xt()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();Jt.decorators=[{type:G}],Jt.ctorParameters=function(){return[]};new u("compilerOptions");var Zt=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Yt=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),te=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,r,n){},t}();function ee(t){var e=Error("No component factory found for "+v(t)+". Did you add it to @NgModule.entryComponents?");return e[re]=t,e}var re="ngComponent",ne=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw ee(t)},t}(),oe=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();oe.NULL=new ne;var ie,ae,se=function(){function t(t,e,r){this._parent=e,this._ngModule=r,this._factories=new Map;for(var n=0;n<t.length;n++){var o=t[n];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw ee(t);return new ue(e,this._ngModule)},t}(),ue=function(t){function e(e,r){var n=t.call(this)||this;return n.factory=e,n.ngModule=r,n}return n.a(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){return this.factory.create(t,e,r,n||this.ngModule)},e}(te),ce=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),le=function(){function t(){}return t.prototype.moduleType=function(){},t.prototype.create=function(t){},t}();var pe,he=!(!(pe=p.wtf)||!(ie=pe.trace))&&(ae=ie.events,!0);function fe(t,e){return null}var de=he?function(t,e){return void 0===e&&(e=null),ae.createScope(t,e)}:function(t,e){return fe},ye=he?function(t,e){return ie.leaveScope(t,e),e}:function(t,e){return e},ve=function(t){function e(e){void 0===e&&(e=!1);var r=t.call(this)||this;return r.__isAsync=e,r}return n.a(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,r,n){var o,i=function(t){return null},a=function(){return null};return e&&"object"===typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=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)},r&&(i=this.__isAsync?function(t){setTimeout(function(){return r(t)})}:function(t){r(t)}),n&&(a=this.__isAsync?function(){setTimeout(function(){return n()})}:function(){n()})),t.prototype.subscribe.call(this,o,i,a)},e}(s.a),me=function(){function t(t){var e=t.enableLongStackTrace,r=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ve(!1),this.onMicrotaskEmpty=new ve(!1),this.onStable=new ve(!1),this.onError=new ve(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched();var n;this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,e,r,o,i,a){try{return be(n),t.invokeTask(r,o,i,a)}finally{_e(n)}},onInvoke:function(t,e,r,o,i,a,s){try{return be(n),t.invoke(r,o,i,a,s)}finally{_e(n)}},onHasTask:function(t,e,r,o){t.hasTask(r,o),e===r&&("microTask"==o.change?(n.hasPendingMicrotasks=o.microTask,ge(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:function(t,e,r,o){return t.handleError(r,o),n.runOutsideAngular(function(){return n.onError.emit(o)}),!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){return this._inner.run(t)},t.prototype.runGuarded=function(t){return this._inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function ge(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 be(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _e(t){t._nesting--,ge(t)}var we=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}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(){me.assertNotInAngularZone(),d(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;this.isStable()?d(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,r){return[]},t.prototype.findProviders=function(t,e,r){return[]},t}();we.decorators=[{type:G}],we.ctorParameters=function(){return[{type:me}]};var Se=function(){function t(){this._applications=new Map,Ce.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},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),Ce.findTestabilityInTree(this,t,e)},t}();function xe(t){Ce=t}Se.decorators=[{type:G}],Se.ctorParameters=function(){return[]};var Pe,Ce=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,r){return null},t}()),Ee=!0,ke=!1,Oe=new u("AllowMultipleToken");function Te(){if(ke)throw new Error("Cannot enable prod mode after platform setup.");Ee=!1}function Ae(){return ke=!0,Ee}var je=function(){return function(t,e){this.name=t,this.token=e}}();function Me(t,e,r){void 0===r&&(r=[]);var n=new u("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=Ie();return o&&!o.injector.get(Oe,!1)||(t?t(r.concat(e).concat({provide:n,useValue:!0})):function(t){if(Pe&&!Pe.destroyed&&!Pe.injector.get(Oe,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pe=t.get(Re);var e=t.get($t,null);e&&e.forEach(function(t){return t()})}(Dt.resolveAndCreate(r.concat(e).concat({provide:n,useValue:!0})))),function(t){var e=Ie();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}(n)}}function Ie(){return Pe&&!Pe.destroyed?Pe:null}var Re=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}();var De=function(t){function e(e){var r=t.call(this)||this;return r._injector=e,r._modules=[],r._destroyListeners=[],r._destroyed=!1,r}return n.a(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var r=this;return e||(e=new me({enableLongStackTrace:Ae()})),e.run(function(){var n=Dt.resolveAndCreate([{provide:me,useValue:e}],r.injector),o=t.create(n),i=o.injector.get(ct,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return ze(r._modules,o)}),e.runOutsideAngular(function(){return e.onError.subscribe({next:function(t){i.handleError(t)}})}),function(t,e,r){try{var n=r();return zt(n)?n.catch(function(r){throw e.runOutsideAngular(function(){return t.handleError(r)}),r}):n}catch(r){throw e.runOutsideAngular(function(){return t.handleError(r)}),r}}(i,e,function(){var t=o.injector.get(Bt);return t.runInitializers(),t.donePromise.then(function(){return r._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,r){var n=this;return void 0===e&&(e=[]),this.injector.get(Zt).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return n._bootstrapModuleFactoryWithZone(t,r)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ne);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+v(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)},e}(Re);De.decorators=[{type:G}],De.ctorParameters=function(){return[{type:rt}]};var Ne=function(){function t(){}return t.prototype.bootstrap=function(t,e){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),Fe=function(t){function e(e,r,n,s,u,c){var l=t.call(this)||this;l._zone=e,l._console=r,l._injector=n,l._exceptionHandler=s,l._componentFactoryResolver=u,l._initStatus=c,l._bootstrapListeners=[],l._rootComponents=[],l._rootComponentTypes=[],l._views=[],l._runningTick=!1,l._enforceNoNewChanges=!1,l._stable=!0,l._enforceNoNewChanges=Ae(),l._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var p=new o.a(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),h=new o.a(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){me.assertNotInAngularZone(),d(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var r=l._zone.onUnstable.subscribe(function(){me.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),r.unsubscribe()}});return l._isStable=Object(i.a)(p,a.a.call(h)),l}return n.a(e,t),e.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t;ze(this._views,e),e.detachFromAppRef()},e.prototype.bootstrap=function(t,e){var r,n=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.");r=t instanceof te?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var o=r instanceof ue?null:this._injector.get(ce),i=e||r.selector,a=r.create(rt.NULL,[],i,o);a.onDestroy(function(){n._unloadComponent(a)});var s=a.injector.get(we,null);return s&&a.injector.get(Se).registerApplication(a.location.nativeElement,s),this._loadComponent(a),Ae()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(Wt,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),ze(this._rootComponents,t)},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var r=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(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,ye(r)}},e.prototype.ngOnDestroy=function(){this._vi