12.js 161 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. (window.webpackJsonpNVIV=window.webpackJsonpNVIV||[]).push([[12],{1708:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1),o=r(26);function i(t){return void 0===t&&(t=null),function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.defaultValue))},t}(),u=function(t){function e(e,r){var n=t.call(this,e)||this;return n.defaultValue=r,n.isEmpty=!0,n}return n.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}(o.a)},1712:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(1),o=r(441),i=r(26);function a(t){return void 0===t&&(t=s),function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.errorFactory))},t}(),c=function(t){function e(e,r){var n=t.call(this,e)||this;return n.errorFactory=r,n.hasValue=!1,n}return n.c(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(i.a);function s(){return new o.a}},1848:function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(1),o=r(26),i=r(280),a=r(71);function u(t){return function(e){return 0===t?Object(a.b)():e.lift(new c(t))}}var c=function(){function t(t){if(this.total=t,this.total<0)throw new i.a}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.ring=new Array,n.count=0,n}return n.c(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length<r?e.push(t):e[n%r]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,o=0;o<r;o++){var i=e++%r;t.next(n[i])}t.complete()},e}(o.a)},1855:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1),o=r(26);function i(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new a(t,e,r))}}var a=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.accumulator,this.seed,this.hasSeed))},t}(),u=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.accumulator=r,i._seed=n,i.hasSeed=o,i.index=0,i}return n.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,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(o.a)},1856:function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(1855),o=r(1848),i=r(1708),a=r(282);function u(t,e){return arguments.length>=2?function(r){return Object(a.a)(Object(n.a)(t,e),Object(o.a)(1),Object(i.a)(e))(r)}:function(e){return Object(a.a)(Object(n.a)((function(e,r,n){return t(e,r,n+1)})),Object(o.a)(1))(e)}}},1883:function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(441),o=r(165),i=r(1848),a=r(1712),u=r(1708),c=r(156);function s(t,e){var r=arguments.length>=2;return function(s){return s.pipe(t?Object(o.a)((function(e,r){return t(e,r,s)})):c.a,Object(i.a)(1),r?Object(u.a)(e):Object(a.a)((function(){return new n.a})))}}},1884:function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(441),o=r(165),i=r(221),a=r(1708),u=r(1712),c=r(156);function s(t,e){var r=arguments.length>=2;return function(s){return s.pipe(t?Object(o.a)((function(e,r){return t(e,r,s)})):c.a,Object(i.a)(1),r?Object(a.a)(e):Object(u.a)((function(){return new n.a})))}}},1885:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1),o=r(26);function i(t,e){return function(r){return r.lift(new a(t,e,r))}}var a=function(){function t(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg,this.source))},t}(),u=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.source=o,i.index=0,i.thisArg=n||i,i}return n.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(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.a)},1895:function(t,e,r){"use strict";r.r(e),r.d(e,"MAT_MOMENT_DATE_ADAPTER_OPTIONS",(function(){return c})),r.d(e,"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY",(function(){return s})),r.d(e,"MAT_MOMENT_DATE_FORMATS",(function(){return f})),r.d(e,"MatMomentDateModule",(function(){return g})),r.d(e,"MomentDateAdapter",(function(){return h})),r.d(e,"MomentDateModule",(function(){return p})),r.d(e,"ɵ0",(function(){return d}));var n=r(0),o=r(47),i=r(1),a=r(1685),u=r.n(a).a||a,c=new n.InjectionToken("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:s});function s(){return{useUtc:!1}}function l(t,e){for(var r=Array(t),n=0;n<t;n++)r[n]=e(n);return r}var h=function(t){function e(e,r){var n=t.call(this)||this;return n._options=r,n.setLocale(e||u.locale()),n}return Object(i.c)(e,t),e.prototype.setLocale=function(e){var r=this;t.prototype.setLocale.call(this,e);var n=u.localeData(e);this._localeData={firstDayOfWeek:n.firstDayOfWeek(),longMonths:n.months(),shortMonths:n.monthsShort(),dates:l(31,(function(t){return r.createDate(2017,0,t+1).format("D")})),longDaysOfWeek:n.weekdays(),shortDaysOfWeek:n.weekdaysShort(),narrowDaysOfWeek:n.weekdaysMin()}},e.prototype.getYear=function(t){return this.clone(t).year()},e.prototype.getMonth=function(t){return this.clone(t).month()},e.prototype.getDate=function(t){return this.clone(t).date()},e.prototype.getDayOfWeek=function(t){return this.clone(t).day()},e.prototype.getMonthNames=function(t){return"long"==t?this._localeData.longMonths:this._localeData.shortMonths},e.prototype.getDateNames=function(){return this._localeData.dates},e.prototype.getDayOfWeekNames=function(t){return"long"==t?this._localeData.longDaysOfWeek:"short"==t?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek},e.prototype.getYearName=function(t){return this.clone(t).format("YYYY")},e.prototype.getFirstDayOfWeek=function(){return this._localeData.firstDayOfWeek},e.prototype.getNumDaysInMonth=function(t){return this.clone(t).daysInMonth()},e.prototype.clone=function(t){return t.clone().locale(this.locale)},e.prototype.createDate=function(t,e,r){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(r<1)throw Error('Invalid date "'+r+'". Date has to be greater than 0.');var n=this._createMoment({year:t,month:e,date:r}).locale(this.locale);if(!n.isValid())throw Error('Invalid date "'+r+'" for month with index "'+e+'".');return n},e.prototype.today=function(){return this._createMoment().locale(this.locale)},e.prototype.parse=function(t,e){return t&&"string"==typeof t?this._createMoment(t,e,this.locale):t?this._createMoment(t).locale(this.locale):null},e.prototype.format=function(t,e){if(t=this.clone(t),!this.isValid(t))throw Error("MomentDateAdapter: Cannot format invalid date.");return t.format(e)},e.prototype.addCalendarYears=function(t,e){return this.clone(t).add({years:e})},e.prototype.addCalendarMonths=function(t,e){return this.clone(t).add({months:e})},e.prototype.addCalendarDays=function(t,e){return this.clone(t).add({days:e})},e.prototype.toIso8601=function(t){return this.clone(t).format()},e.prototype.deserialize=function(e){var r;if(e instanceof Date)r=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;r=this._createMoment(e,u.ISO_8601).locale(this.locale)}return r&&this.isValid(r)?this._createMoment(r).locale(this.locale):t.prototype.deserialize.call(this,e)},e.prototype.isDateInstance=function(t){return u.isMoment(t)},e.prototype.isValid=function(t){return this.clone(t).isValid()},e.prototype.invalid=function(){return u.invalid()},e.prototype._createMoment=function(t,e,r){var n=this._options||{},o=n.strict;return n.useUtc?u.utc(t,e,r,o):u(t,e,r,o)},e.ctorParameters=function(){return[{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[o.MAT_DATE_LOCALE]}]},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[c]}]}]},e.ɵfac=function(t){return new(t||e)(n["ɵɵinject"](o.MAT_DATE_LOCALE,8),n["ɵɵinject"](c,8))},e.ɵprov=n["ɵɵdefineInjectable"]({token:e,factory:function(t){return e.ɵfac(t)}}),e}(o.DateAdapter),f={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},p=function(){function t(){}return t.ɵmod=n["ɵɵdefineNgModule"]({type:t}),t.ɵinj=n["ɵɵdefineInjector"]({factory:function(e){return new(e||t)},providers:[{provide:o.DateAdapter,useClass:h,deps:[o.MAT_DATE_LOCALE,c]}]}),t}(),d=f,g=function(){function t(){}return t.ɵmod=n["ɵɵdefineNgModule"]({type:t}),t.ɵinj=n["ɵɵdefineInjector"]({factory:function(e){return new(e||t)},providers:[{provide:o.MAT_DATE_FORMATS,useValue:d}],imports:[[p]]}),("undefined"==typeof ngJitMode||ngJitMode)&&n["ɵɵsetNgModuleScope"](t,{imports:[p]}),t}();
  2. /**
  3. * @license
  4. * Copyright Google LLC All Rights Reserved.
  5. *
  6. * Use of this source code is governed by an MIT-style license that can be
  7. * found in the LICENSE file at https://angular.io/license
  8. */},1899:function(t,e,r){"use strict";r.r(e),r.d(e,"DRACOLoader",(function(){return i}));var n=r(4);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function(t){n.Loader.call(this,t),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}};i.prototype=Object.assign(Object.create(n.Loader.prototype),{constructor:i,setDecoderPath:function(t){return this.decoderPath=t,this},setDecoderConfig:function(t){return this.decoderConfig=t,this},setWorkerLimit:function(t){return this.workerLimit=t,this},setVerbosity:function(){console.warn("THREE.DRACOLoader: The .setVerbosity() method has been removed.")},setDrawMode:function(){console.warn("THREE.DRACOLoader: The .setDrawMode() method has been removed.")},setSkipDequantization:function(){console.warn("THREE.DRACOLoader: The .setSkipDequantization() method has been removed.")},load:function(t,e,r,o){var i=this,a=new n.FileLoader(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),"use-credentials"===this.crossOrigin&&a.setWithCredentials(!0),a.load(t,(function(t){var r={attributeIDs:i.defaultAttributeIDs,attributeTypes:i.defaultAttributeTypes,useUniqueIDs:!1};i.decodeGeometry(t,r).then(e).catch(o)}),r,o)},decodeDracoFile:function(t,e,r,n){var o={attributeIDs:r||this.defaultAttributeIDs,attributeTypes:n||this.defaultAttributeTypes,useUniqueIDs:!!r};this.decodeGeometry(t,o).then(e)},decodeGeometry:function(t,e){var r=this;for(var n in e.attributeTypes){var o=e.attributeTypes[n];void 0!==o.BYTES_PER_ELEMENT&&(e.attributeTypes[n]=o.name)}var a,u=JSON.stringify(e);if(i.taskCache.has(t)){var c=i.taskCache.get(t);if(c.key===u)return c.promise;if(0===t.byteLength)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}var s=this.workerNextTaskID++,l=t.byteLength,h=this._getWorker(s,l).then((function(r){return a=r,new Promise((function(r,n){a._callbacks[s]={resolve:r,reject:n},a.postMessage({type:"decode",id:s,taskConfig:e,buffer:t},[t])}))})).then((function(t){return r._createGeometry(t.geometry)}));return h.finally((function(){a&&s&&r._releaseTask(a,s)})),i.taskCache.set(t,{key:u,promise:h}),h},_createGeometry:function(t){var e=new n.BufferGeometry;t.index&&e.setIndex(new n.BufferAttribute(t.index.array,1));for(var r=0;r<t.attributes.length;r++){var o=t.attributes[r],i=o.name,a=o.array,u=o.itemSize;e.setAttribute(i,new n.BufferAttribute(a,u))}return e},_loadLibrary:function(t,e){var r=new n.FileLoader(this.manager);return r.setPath(this.decoderPath),r.setResponseType(e),new Promise((function(e,n){r.load(t,e,void 0,n)}))},preload:function(){return this._initDecoder(),this},_initDecoder:function(){var t=this;if(this.decoderPending)return this.decoderPending;var e="object"!==("undefined"==typeof WebAssembly?"undefined":o(WebAssembly))||"js"===this.decoderConfig.type,r=[];return e?r.push(this._loadLibrary("draco_decoder.js","text")):(r.push(this._loadLibrary("draco_wasm_wrapper.js","text")),r.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(r).then((function(r){var n=r[0];e||(t.decoderConfig.wasmBinary=r[1]);var o=i.DRACOWorker.toString(),a=["/* draco decoder */",n,"","/* worker */",o.substring(o.indexOf("{")+1,o.lastIndexOf("}"))].join("\n");t.workerSourceURL=URL.createObjectURL(new Blob([a]))})),this.decoderPending},_getWorker:function(t,e){var r=this;return this._initDecoder().then((function(){var n;r.workerPool.length<r.workerLimit?((n=new Worker(r.workerSourceURL))._callbacks={},n._taskCosts={},n._taskLoad=0,n.postMessage({type:"init",decoderConfig:r.decoderConfig}),n.onmessage=function(t){var e=t.data;switch(e.type){case"decode":n._callbacks[e.id].resolve(e);break;case"error":n._callbacks[e.id].reject(e);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+e.type+'"')}},r.workerPool.push(n)):r.workerPool.sort((function(t,e){return t._taskLoad>e._taskLoad?-1:1}));return(n=r.workerPool[r.workerPool.length-1])._taskCosts[t]=e,n._taskLoad+=e,n}))},_releaseTask:function(t,e){t._taskLoad-=t._taskCosts[e],delete t._callbacks[e],delete t._taskCosts[e]},debug:function(){console.log("Task load: ",this.workerPool.map((function(t){return t._taskLoad})))},dispose:function(){for(var t=0;t<this.workerPool.length;++t)this.workerPool[t].terminate();return this.workerPool.length=0,this}}),i.DRACOWorker=function(){var t,e;function r(t,e,r,n,o,i){var a,u,c=i.num_components(),s=r.num_points()*c;switch(o){case Float32Array:a=new t.DracoFloat32Array,e.GetAttributeFloatForAllPoints(r,i,a),u=new Float32Array(s);break;case Int8Array:a=new t.DracoInt8Array,e.GetAttributeInt8ForAllPoints(r,i,a),u=new Int8Array(s);break;case Int16Array:a=new t.DracoInt16Array,e.GetAttributeInt16ForAllPoints(r,i,a),u=new Int16Array(s);break;case Int32Array:a=new t.DracoInt32Array,e.GetAttributeInt32ForAllPoints(r,i,a),u=new Int32Array(s);break;case Uint8Array:a=new t.DracoUInt8Array,e.GetAttributeUInt8ForAllPoints(r,i,a),u=new Uint8Array(s);break;case Uint16Array:a=new t.DracoUInt16Array,e.GetAttributeUInt16ForAllPoints(r,i,a),u=new Uint16Array(s);break;case Uint32Array:a=new t.DracoUInt32Array,e.GetAttributeUInt32ForAllPoints(r,i,a),u=new Uint32Array(s);break;default:throw new Error("THREE.DRACOLoader: Unexpected attribute type.")}for(var l=0;l<s;l++)u[l]=a.GetValue(l);return t.destroy(a),{name:n,array:u,itemSize:c}}onmessage=function(n){var o=n.data;switch(o.type){case"init":t=o.decoderConfig,e=new Promise((function(e){t.onModuleLoaded=function(t){e({draco:t})},DracoDecoderModule(t)}));break;case"decode":var i=o.buffer,a=o.taskConfig;e.then((function(t){var e=t.draco,n=new e.Decoder,u=new e.DecoderBuffer;u.Init(new Int8Array(i),i.byteLength);try{var c=function(t,e,n,o){var i,a,u=o.attributeIDs,c=o.attributeTypes,s=e.GetEncodedGeometryType(n);if(s===t.TRIANGULAR_MESH)i=new t.Mesh,a=e.DecodeBufferToMesh(n,i);else{if(s!==t.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");i=new t.PointCloud,a=e.DecodeBufferToPointCloud(n,i)}if(!a.ok()||0===i.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+a.error_msg());var l={index:null,attributes:[]};for(var h in u){var f,p,d=self[c[h]];if(o.useUniqueIDs)p=u[h],f=e.GetAttributeByUniqueId(i,p);else{if(-1===(p=e.GetAttributeId(i,t[u[h]])))continue;f=e.GetAttribute(i,p)}l.attributes.push(r(t,e,i,h,d,f))}if(s===t.TRIANGULAR_MESH){for(var g=i.num_faces(),v=new Uint32Array(3*g),m=new t.DracoInt32Array,y=0;y<g;++y){e.GetFaceFromMesh(i,y,m);for(var b=0;b<3;++b)v[3*y+b]=m.GetValue(b)}l.index={array:v,itemSize:1},t.destroy(m)}return t.destroy(i),l}(e,n,u,a),s=c.attributes.map((function(t){return t.array.buffer}));c.index&&s.push(c.index.array.buffer),self.postMessage({type:"decode",id:o.id,geometry:c},s)}catch(t){console.error(t),self.postMessage({type:"error",id:o.id,error:t.message})}finally{e.destroy(u),e.destroy(n)}}))}}},i.taskCache=new WeakMap,i.setDecoderPath=function(){console.warn("THREE.DRACOLoader: The .setDecoderPath() method has been removed. Use instance methods.")},i.setDecoderConfig=function(){console.warn("THREE.DRACOLoader: The .setDecoderConfig() method has been removed. Use instance methods.")},i.releaseDecoderModule=function(){console.warn("THREE.DRACOLoader: The .releaseDecoderModule() method has been removed. Use instance methods.")},i.getDecoderModule=function(){console.warn("THREE.DRACOLoader: The .getDecoderModule() method has been removed. Use instance methods.")}},1929:function(t,e,r){"use strict";r.r(e),r.d(e,"ActivatedRoute",(function(){return qt})),r.d(e,"ActivatedRouteSnapshot",(function(){return Gt})),r.d(e,"ActivationEnd",(function(){return Q})),r.d(e,"ActivationStart",(function(){return V})),r.d(e,"ChildActivationEnd",(function(){return B})),r.d(e,"ChildActivationStart",(function(){return W})),r.d(e,"ChildrenOutletContexts",(function(){return sr})),r.d(e,"DefaultUrlSerializer",(function(){return wt})),r.d(e,"GuardsCheckEnd",(function(){return F})),r.d(e,"GuardsCheckStart",(function(){return M})),r.d(e,"NavigationCancel",(function(){return L})),r.d(e,"NavigationEnd",(function(){return I})),r.d(e,"NavigationError",(function(){return N})),r.d(e,"NavigationStart",(function(){return U})),r.d(e,"NoPreloading",(function(){return dr})),r.d(e,"OutletContext",(function(){return cr})),r.d(e,"PRIMARY_OUTLET",(function(){return Z})),r.d(e,"PreloadAllModules",(function(){return pr})),r.d(e,"PreloadingStrategy",(function(){return fr})),r.d(e,"ROUTER_CONFIGURATION",(function(){return mr})),r.d(e,"ROUTER_INITIALIZER",(function(){return Er})),r.d(e,"ROUTES",(function(){return Ze})),r.d(e,"ResolveEnd",(function(){return q})),r.d(e,"ResolveStart",(function(){return z})),r.d(e,"RouteConfigLoadEnd",(function(){return G})),r.d(e,"RouteConfigLoadStart",(function(){return H})),r.d(e,"RouteReuseStrategy",(function(){return Ye})),r.d(e,"Router",(function(){return nr})),r.d(e,"RouterEvent",(function(){return T})),r.d(e,"RouterLink",(function(){return or})),r.d(e,"RouterLinkActive",(function(){return ur})),r.d(e,"RouterLinkWithHref",(function(){return ir})),r.d(e,"RouterModule",(function(){return Or})),r.d(e,"RouterOutlet",(function(){return lr})),r.d(e,"RouterPreloader",(function(){return gr})),r.d(e,"RouterState",(function(){return Ft})),r.d(e,"RouterStateSnapshot",(function(){return Wt})),r.d(e,"RoutesRecognized",(function(){return D})),r.d(e,"Scroll",(function(){return Y})),r.d(e,"UrlHandlingStrategy",(function(){return Ke})),r.d(e,"UrlSegment",(function(){return vt})),r.d(e,"UrlSegmentGroup",(function(){return gt})),r.d(e,"UrlSerializer",(function(){return bt})),r.d(e,"UrlTree",(function(){return dt})),r.d(e,"VERSION",(function(){return Ur})),r.d(e,"convertToParamMap",(function(){return K})),r.d(e,"provideRoutes",(function(){return Ar})),r.d(e,"ɵEmptyOutletComponent",(function(){return J})),r.d(e,"ɵROUTER_PROVIDERS",(function(){return br})),r.d(e,"ɵangular_packages_router_router_a",(function(){return yr})),r.d(e,"ɵangular_packages_router_router_b",(function(){return wr})),r.d(e,"ɵangular_packages_router_router_c",(function(){return jr})),r.d(e,"ɵangular_packages_router_router_d",(function(){return Sr})),r.d(e,"ɵangular_packages_router_router_e",(function(){return Cr})),r.d(e,"ɵangular_packages_router_router_f",(function(){return kr})),r.d(e,"ɵangular_packages_router_router_g",(function(){return Rr})),r.d(e,"ɵangular_packages_router_router_h",(function(){return _r})),r.d(e,"ɵangular_packages_router_router_i",(function(){return xr})),r.d(e,"ɵangular_packages_router_router_j",(function(){return Pr})),r.d(e,"ɵangular_packages_router_router_k",(function(){return Tr})),r.d(e,"ɵangular_packages_router_router_l",(function(){return J})),r.d(e,"ɵangular_packages_router_router_m",(function(){return It})),r.d(e,"ɵangular_packages_router_router_n",(function(){return Dt})),r.d(e,"ɵangular_packages_router_router_o",(function(){return vr})),r.d(e,"ɵflatten",(function(){return ct}));var n=r(1),o=r(3),i=r(0),a=r(93),u=r(76),c=r(373),s=r(12),l=r(441),h=r(346),f=r(274),p=r(32),d=r(71),g=r(62),v=r(450),m=r(1883),y=r(637),b=r(1884),w=r(443),O=r(1885),j=r(276),S=r(221),C=r(438),A=r(1855),k=r(165),R=r(1886),_=r(1856),x=r(535),P=r(1930),E=r(307),T=function(t,e){this.id=t,this.url=e},U=function(t){function e(e,r,n,o){void 0===n&&(n="imperative"),void 0===o&&(o=null);var i=t.call(this,e,r)||this;return i.navigationTrigger=n,i.restoredState=o,i}return Object(n.c)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(T),I=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.urlAfterRedirects=n,o}return Object(n.c)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(T),L=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.reason=n,o}return Object(n.c)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(T),N=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.error=n,o}return Object(n.c)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(T),D=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return Object(n.c)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(T),M=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return Object(n.c)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(T),F=function(t){function e(e,r,n,o,i){var a=t.call(this,e,r)||this;return a.urlAfterRedirects=n,a.state=o,a.shouldActivate=i,a}return Object(n.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}(T),z=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return Object(n.c)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(T),q=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return Object(n.c)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(T),H=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),G=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),W=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),B=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),V=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Q=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Y=function(){function t(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r}return t.prototype.toString=function(){var t=this.position?this.position[0]+", "+this.position[1]:null;return"Scroll(anchor: '"+this.anchor+"', position: '"+t+"')"},t}(),J=function(){function t(){}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i["ɵɵdefineComponent"]({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i["ɵɵelement"](0,"router-outlet")},directives:function(){return[lr]},encapsulation:2}),t}(),Z="primary",$=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 K(t){return new $(t)}function X(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function tt(t,e,r){var n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var o={},i=0;i<n.length;i++){var a=n[i],u=t[i];if(a.startsWith(":"))o[a.substring(1)]=u;else if(a!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}
  9. /**
  10. * @license
  11. * Copyright Google Inc. All Rights Reserved.
  12. *
  13. * Use of this source code is governed by an MIT-style license that can be
  14. * found in the LICENSE file at https://angular.io/license
  15. */var et=function(t,e){this.routes=t,this.module=e};function rt(t,e){void 0===e&&(e="");for(var r=0;r<t.length;r++){var n=t[r];nt(n,ot(e,n))}}function nt(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!==Z)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&&rt(t.children,e)}function ot(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function it(t){var e=t.children&&t.children.map(it),r=e?Object(n.a)(Object(n.a)({},t),{children:e}):Object(n.a)({},t);return!r.component&&(e||r.loadChildren)&&r.outlet&&r.outlet!==Z&&(r.component=J),r}
  16. /**
  17. * @license
  18. * Copyright Google Inc. All Rights Reserved.
  19. *
  20. * Use of this source code is governed by an MIT-style license that can be
  21. * found in the LICENSE file at https://angular.io/license
  22. */function at(t,e){var r,n=Object.keys(t),o=Object.keys(e);if(!n||!o||n.length!=o.length)return!1;for(var i=0;i<n.length;i++)if(!ut(t[r=n[i]],e[r]))return!1;return!0}function ut(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function ct(t){return Array.prototype.concat.apply([],t)}function st(t){return t.length>0?t[t.length-1]:null}function lt(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function ht(t){return Object(i["ɵisObservable"])(t)?t:Object(i["ɵisPromise"])(t)?Object(u.a)(Promise.resolve(t)):Object(a.a)(t)}
  23. /**
  24. * @license
  25. * Copyright Google Inc. All Rights Reserved.
  26. *
  27. * Use of this source code is governed by an MIT-style license that can be
  28. * found in the LICENSE file at https://angular.io/license
  29. */function ft(t,e,r){return r?function(t,e){return at(t,e)}(t.queryParams,e.queryParams)&&function t(e,r){if(!mt(e.segments,r.segments))return!1;if(e.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children){if(!e.children[n])return!1;if(!t(e.children[n],r.children[n]))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(r){return ut(t[r],e[r])}))}(t.queryParams,e.queryParams)&&pt(t.root,e.root)}function pt(t,e){return function t(e,r,n){if(e.segments.length>n.length)return!!mt(i=e.segments.slice(0,n.length),n)&&!r.hasChildren();if(e.segments.length===n.length){if(!mt(e.segments,n))return!1;for(var o in r.children){if(!e.children[o])return!1;if(!pt(e.children[o],r.children[o]))return!1}return!0}var i=n.slice(0,e.segments.length),a=n.slice(e.segments.length);return!!mt(e.segments,i)&&(!!e.children[Z]&&t(e.children[Z],r,a))}(t,e,e.segments)}var dt=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=K(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ot.serialize(this)},t}(),gt=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,lt(e,(function(t,e){return t.parent=r}))}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 jt(this)},t}(),vt=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=K(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return _t(this)},t}();function mt(t,e){return t.length===e.length&&t.every((function(t,r){return t.path===e[r].path}))}function yt(t,e){var r=[];return lt(t.children,(function(t,n){n===Z&&(r=r.concat(e(t,n)))})),lt(t.children,(function(t,n){n!==Z&&(r=r.concat(e(t,n)))})),r}var bt=function(){},wt=function(){function t(){}return t.prototype.parse=function(t){var e=new Ut(t);return new dt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,r,n;return""+("/"+function t(e,r){if(!e.hasChildren())return jt(e);if(r){var n=e.children[Z]?t(e.children[Z],!1):"",o=[];return lt(e.children,(function(e,r){r!==Z&&o.push(r+":"+t(e,!1))})),o.length>0?n+"("+o.join("//")+")":n}var i=yt(e,(function(r,n){return n===Z?[t(e.children[Z],!1)]:[n+":"+t(r,!1)]}));return jt(e)+"/("+i.join("//")+")"}(t.root,!0))+(e=t.queryParams,(r=Object.keys(e).map((function(t){var r=e[t];return Array.isArray(r)?r.map((function(e){return Ct(t)+"="+Ct(e)})).join("&"):Ct(t)+"="+Ct(r)}))).length?"?"+r.join("&"):"")+("string"==typeof t.fragment?"#"+(n=t.fragment,encodeURI(n)):"")},t}(),Ot=new wt;function jt(t){return t.segments.map((function(t){return _t(t)})).join("/")}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ct(t){return St(t).replace(/%3B/gi,";")}function At(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kt(t){return decodeURIComponent(t)}function Rt(t){return kt(t.replace(/\+/g,"%20"))}function _t(t){return""+At(t.path)+(e=t.parameters,Object.keys(e).map((function(t){return";"+At(t)+"="+At(e[t])})).join(""));var e}var xt=/^[^\/()?;=#]+/;function Pt(t){var e=t.match(xt);return e?e[0]:""}var Et=/^[^=?&#]+/;var Tt=/^[^?&#]+/;var Ut=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 gt([],{}):new gt([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[Z]=new gt(t,e)),r},t.prototype.parseSegment=function(){var t=Pt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new vt(kt(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Pt(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=Pt(this.remaining);n&&(r=n,this.capture(r))}t[kt(e)]=kt(r)}},t.prototype.parseQueryParam=function(t){var e=function(t){var e=t.match(Et);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=function(t){var e=t.match(Tt);return e?e[0]:""}(this.remaining);n&&(r=n,this.capture(r))}var o=Rt(e),i=Rt(r);if(t.hasOwnProperty(o)){var a=t[o];Array.isArray(a)||(a=[a],t[o]=a),a.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=Pt(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Z);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Z]:new gt([],i),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}(),It=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=Lt(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=Lt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Nt(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 Nt(t,this._root).map((function(t){return t.value}))},t}();
  30. /**
  31. * @license
  32. * Copyright Google Inc. All Rights Reserved.
  33. *
  34. * Use of this source code is governed by an MIT-style license that can be
  35. * found in the LICENSE file at https://angular.io/license
  36. */function Lt(t,e){var r,o;if(t===e.value)return e;try{for(var i=Object(n.j)(e.children),a=i.next();!a.done;a=i.next()){var u=Lt(t,a.value);if(u)return u}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return null}function Nt(t,e){var r,o;if(t===e.value)return[e];try{for(var i=Object(n.j)(e.children),a=i.next();!a.done;a=i.next()){var u=Nt(t,a.value);if(u.length)return u.unshift(e),u}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return[]}var Dt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Mt(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}
  37. /**
  38. * @license
  39. * Copyright Google Inc. All Rights Reserved.
  40. *
  41. * Use of this source code is governed by an MIT-style license that can be
  42. * found in the LICENSE file at https://angular.io/license
  43. */var Ft=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,Bt(n,e),n}return Object(n.c)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(It);function zt(t,e){var r=function(t,e){var r=new Gt([],{},{},"",{},Z,e,null,t.root,-1,{});return new Wt("",new Dt(r,[]))}(t,e),n=new c.a([new vt("",{})]),o=new c.a({}),i=new c.a({}),a=new c.a({}),u=new c.a(""),s=new qt(n,o,a,u,i,Z,e,r.root);return s.snapshot=r.root,new Ft(new Dt(s,[]),r)}var qt=function(){function t(t,e,r,n,o,i,a,u){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=u}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(Object(g.a)((function(t){return K(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(g.a)((function(t){return K(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Ht(t,e){void 0===e&&(e="emptyOnly");var r=t.pathFromRoot,o=0;if("always"!==e)for(o=r.length-1;o>=1;){var i=r[o],a=r[o-1];if(i.routeConfig&&""===i.routeConfig.path)o--;else{if(a.component)break;o--}}return function(t){return t.reduce((function(t,e){return{params:Object(n.a)(Object(n.a)({},t.params),e.params),data:Object(n.a)(Object(n.a)({},t.data),e.data),resolve:Object(n.a)(Object(n.a)({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(r.slice(o))}var Gt=function(){function t(t,e,r,n,o,i,a,u,c,s,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=a,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=s,this._resolve=l}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=K(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=K(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}(),Wt=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,Bt(n,r),n}return Object(n.c)(e,t),e.prototype.toString=function(){return Vt(this._root)},e}(It);function Bt(t,e){e.value._routerState=t,e.children.forEach((function(e){return Bt(t,e)}))}function Vt(t){var e=t.children.length>0?" { "+t.children.map(Vt).join(", ")+" } ":"";return""+t.value+e}function Qt(t){if(t.snapshot){var e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,at(e.queryParams,r.queryParams)||t.queryParams.next(r.queryParams),e.fragment!==r.fragment&&t.fragment.next(r.fragment),at(e.params,r.params)||t.params.next(r.params),function(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!at(t[r],e[r]))return!1;return!0}(e.url,r.url)||t.url.next(r.url),at(e.data,r.data)||t.data.next(r.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Yt(t,e){var r,n,o=at(t.params,e.params)&&(r=t.url,n=e.url,mt(r,n)&&r.every((function(t,e){return at(t.parameters,n[e].parameters)}))),i=!t.parent!=!e.parent;return o&&!i&&(!t.parent||Yt(t.parent,e.parent))}
  44. /**
  45. * @license
  46. * Copyright Google Inc. All Rights Reserved.
  47. *
  48. * Use of this source code is governed by an MIT-style license that can be
  49. * found in the LICENSE file at https://angular.io/license
  50. */function Jt(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){(s=r.value)._futureSnapshot=e.value;var o=function(t,e,r){return e.children.map((function(e){var o,i;try{for(var a=Object(n.j)(r.children),u=a.next();!u.done;u=a.next()){var c=u.value;if(t.shouldReuseRoute(c.value.snapshot,e.value))return Jt(t,e,c)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return Jt(t,e)}))}(t,e,r);return new Dt(s,o)}var i=t.retrieve(e.value);if(i){var a=i.route;return function t(e,r){if(e.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)t(e.children[n],r.children[n])}(e,a),a}var u,s=(u=e.value,new qt(new c.a(u.url),new c.a(u.params),new c.a(u.queryParams),new c.a(u.fragment),new c.a(u.data),u.outlet,u.component,u));o=e.children.map((function(e){return Jt(t,e)}));return new Dt(s,o)}
  51. /**
  52. * @license
  53. * Copyright Google Inc. All Rights Reserved.
  54. *
  55. * Use of this source code is governed by an MIT-style license that can be
  56. * found in the LICENSE file at https://angular.io/license
  57. */
  58. function Zt(t,e,r,o,i){if(0===r.length)return Kt(e.root,e.root,e,o,i);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Xt(!0,0,t);var e=0,r=!1,o=t.reduce((function(t,o,i){if("object"==typeof o&&null!=o){if(o.outlets){var a={};return lt(o.outlets,(function(t,e){a[e]="string"==typeof t?t.split("/"):t})),Object(n.h)(t,[{outlets:a}])}if(o.segmentPath)return Object(n.h)(t,[o.segmentPath])}return"string"!=typeof o?Object(n.h)(t,[o]):0===i?(o.split("/").forEach((function(n,o){0==o&&"."===n||(0==o&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))})),t):Object(n.h)(t,[o])}),[]);return new Xt(r,e,o)}(r);if(a.toRoot())return Kt(e.root,new gt([],{}),e,o,i);var u=function(t,e,r){if(t.isAbsolute)return new te(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new te(r.snapshot._urlSegment,!0,0);var n=$t(t.commands[0])?0:1,o=r.snapshot._lastPathIndex+n;return function(t,e,r){var n=t,o=e,i=r;for(;i>o;){if(i-=o,!(n=n.parent))throw new Error("Invalid number of '../'");o=n.segments.length}return new te(n,!1,o-i)}(r.snapshot._urlSegment,o,t.numberOfDoubleDots)}(a,e,t),c=u.processChildren?ne(u.segmentGroup,u.index,a.commands):re(u.segmentGroup,u.index,a.commands);return Kt(u.segmentGroup,c,e,o,i)}function $t(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Kt(t,e,r,n,o){var i={};return n&&lt(n,(function(t,e){i[e]=Array.isArray(t)?t.map((function(t){return""+t})):""+t})),r.root===t?new dt(e,i,o):new dt(function t(e,r,n){var o={};return lt(e.children,(function(e,i){o[i]=e===r?n:t(e,r,n)})),new gt(e.segments,o)}(r.root,t,e),i,o)}var Xt=function(){function t(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&$t(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(n&&n!==st(r))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}();var te=function(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r};function ee(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Z]:""+t}function re(t,e,r){if(t||(t=new gt([],{})),0===t.segments.length&&t.hasChildren())return ne(t,e,r);var n=function(t,e,r){var n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(n>=r.length)return i;var a=t.segments[o],u=ee(r[n]),c=n<r.length-1?r[n+1]:null;if(o>0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!ue(u,c,a))return i;n+=2}else{if(!ue(u,{},a))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var i=new gt(t.segments.slice(0,n.pathIndex),{});return i.children[Z]=new gt(t.segments.slice(n.pathIndex),t.children),ne(i,0,o)}return n.match&&0===o.length?new gt(t.segments,{}):n.match&&!t.hasChildren()?oe(t,e,r):n.match?ne(t,0,o):oe(t,e,r)}function ne(t,e,r){if(0===r.length)return new gt(t.segments,{});var n=function(t){var e,r;return"object"!=typeof t[0]?((e={})[Z]=t,e):void 0===t[0].outlets?((r={})[Z]=t,r):t[0].outlets}(r),o={};return lt(n,(function(r,n){null!==r&&(o[n]=re(t.children[n],e,r))})),lt(t.children,(function(t,e){void 0===n[e]&&(o[e]=t)})),new gt(t.segments,o)}function oe(t,e,r){for(var n=t.segments.slice(0,e),o=0;o<r.length;){if("object"==typeof r[o]&&void 0!==r[o].outlets){var i=ie(r[o].outlets);return new gt(n,i)}if(0===o&&$t(r[0])){var a=t.segments[e];n.push(new vt(a.path,r[0])),o++}else{var u=ee(r[o]),c=o<r.length-1?r[o+1]:null;u&&c&&$t(c)?(n.push(new vt(u,ae(c))),o+=2):(n.push(new vt(u,{})),o++)}}return new gt(n,{})}function ie(t){var e={};return lt(t,(function(t,r){null!==t&&(e[r]=oe(new gt([],{}),0,t))})),e}function ae(t){var e={};return lt(t,(function(t,r){return e[r]=""+t})),e}function ue(t,e,r){return t==r.path&&at(e,r.parameters)}
  59. /**
  60. * @license
  61. * Copyright Google Inc. All Rights Reserved.
  62. *
  63. * Use of this source code is governed by an MIT-style license that can be
  64. * found in the LICENSE file at https://angular.io/license
  65. */var ce=function(){function t(t,e,r,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=n}return t.prototype.activate=function(t){var e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),Qt(this.futureState.root),this.activateChildRoutes(e,r,t)},t.prototype.deactivateChildRoutes=function(t,e,r){var n=this,o=Mt(e);t.children.forEach((function(t){var e=t.value.outlet;n.deactivateRoutes(t,o[e],r),delete o[e]})),lt(o,(function(t,e){n.deactivateRouteAndItsChildren(t,r)}))},t.prototype.deactivateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(n.component){var i=r.getContext(n.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)},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 r=e.getContext(t.value.outlet);if(r&&r.outlet){var n=r.outlet.detach(),o=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t,contexts:o})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var r=this,n=e.getContext(t.value.outlet);if(n){var o=Mt(t),i=t.value.component?n.children:e;lt(o,(function(t,e){return r.deactivateRouteAndItsChildren(t,i)})),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,r){var n=this,o=Mt(e);t.children.forEach((function(t){n.activateRoutes(t,o[t.value.outlet],r),n.forwardEvent(new Q(t.value.snapshot))})),t.children.length&&this.forwardEvent(new B(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(Qt(n),n===o)if(n.component){var i=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,r);else if(n.component){i=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),i.children.onOutletReAttached(a.contexts),i.attachRef=a.componentRef,i.route=a.route.value,i.outlet&&i.outlet.attach(a.componentRef,a.route.value),se(a.route)}else{var u=function(t){for(var e=t.parent;e;e=e.parent){var r=e.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}
  66. /**
  67. * @license
  68. * Copyright Google Inc. All Rights Reserved.
  69. *
  70. * Use of this source code is governed by an MIT-style license that can be
  71. * found in the LICENSE file at https://angular.io/license
  72. */(n.snapshot),c=u?u.module.componentFactoryResolver:null;i.attachRef=null,i.route=n,i.resolver=c,i.outlet&&i.outlet.activateWith(n,c),this.activateChildRoutes(t,null,i.children)}}else this.activateChildRoutes(t,null,r)},t}();function se(t){Qt(t.value),t.children.forEach(se)}function le(t){return"function"==typeof t}function he(t){return t instanceof dt}
  73. /**
  74. * @license
  75. * Copyright Google Inc. All Rights Reserved.
  76. *
  77. * Use of this source code is governed by an MIT-style license that can be
  78. * found in the LICENSE file at https://angular.io/license
  79. */
  80. var fe=function(t){this.segmentGroup=t||null},pe=function(t){this.urlTree=t};function de(t){return new s.a((function(e){return e.error(new fe(t))}))}function ge(t){return new s.a((function(e){return e.error(new pe(t))}))}function ve(t){return new s.a((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))}))}var me=function(){function t(t,e,r,n,o){this.configLoader=e,this.urlSerializer=r,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.NgModuleRef)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Z).pipe(Object(g.a)((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(Object(y.a)((function(e){if(e instanceof pe)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof fe)throw t.noMatchError(e);throw e})))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Z).pipe(Object(g.a)((function(r){return e.createUrlTree(r,t.queryParams,t.fragment)}))).pipe(Object(y.a)((function(t){if(t instanceof fe)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,r){var n,o=t.segments.length>0?new gt([],((n={})[Z]=t,n)):t;return new dt(o,e,r)},t.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(Object(g.a)((function(t){return new gt([],t)}))):this.expandSegment(t,r,e,r.segments,n,!0)},t.prototype.expandChildren=function(t,e,r){var n=this;return function(t,e){if(0===Object.keys(t).length)return Object(a.a)({});var r=[],n=[],o={};return lt(t,(function(t,i){var a=e(i,t).pipe(Object(g.a)((function(t){return o[i]=t})));i===Z?r.push(a):n.push(a)})),a.a.apply(null,r.concat(n)).pipe(Object(v.a)(),Object(m.a)(),Object(g.a)((function(){return o})))}(r.children,(function(r,o){return n.expandSegmentGroup(t,e,o,r)}))},t.prototype.expandSegment=function(t,e,r,o,i,u){var c=this;return a.a.apply(void 0,Object(n.h)(r)).pipe(Object(g.a)((function(n){return c.expandSegmentAgainstRoute(t,e,r,n,o,i,u).pipe(Object(y.a)((function(t){if(t instanceof fe)return Object(a.a)(null);throw t})))})),Object(v.a)(),Object(b.a)((function(t){return!!t})),Object(y.a)((function(t,r){if(t instanceof l.a||"EmptyError"===t.name){if(c.noLeftoversInUrl(e,o,i))return Object(a.a)(new gt([],{}));throw new fe(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,o,i,a){return Oe(n)!==i?de(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):de(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var o=this,i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ge(i):this.lineralizeSegments(r,i).pipe(Object(w.b)((function(r){var i=new gt(r,{});return o.expandSegment(t,i,e,r,n,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){var a=this,u=ye(e,n,o),c=u.matched,s=u.consumedSegments,l=u.lastChild,h=u.positionalParamSegments;if(!c)return de(e);var f=this.applyRedirectCommands(s,n.redirectTo,h);return n.redirectTo.startsWith("/")?ge(f):this.lineralizeSegments(n,f).pipe(Object(w.b)((function(n){return a.expandSegment(t,e,r,n.concat(o.slice(l)),i,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,r,o){var i=this;if("**"===r.path)return r.loadChildren?this.configLoader.load(t.injector,r).pipe(Object(g.a)((function(t){return r._loadedConfig=t,new gt(o,{})}))):Object(a.a)(new gt(o,{}));var u=ye(e,r,o),c=u.matched,s=u.consumedSegments,l=u.lastChild;if(!c)return de(e);var h=o.slice(l);return this.getChildConfig(t,r,o).pipe(Object(w.b)((function(t){var r=t.module,o=t.routes,u=function(t,e,r,o){if(r.length>0&&function(t,e,r){return r.some((function(r){return we(t,e,r)&&Oe(r)!==Z}))}(t,r,o)){return{segmentGroup:be(new gt(e,function(t,e){var r,o,i={};i[Z]=e;try{for(var a=Object(n.j)(t),u=a.next();!u.done;u=a.next()){var c=u.value;""===c.path&&Oe(c)!==Z&&(i[Oe(c)]=new gt([],{}))}}catch(t){r={error:t}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}(o,new gt(r,t.children)))),slicedSegments:[]}}if(0===r.length&&function(t,e,r){return r.some((function(r){return we(t,e,r)}))}(t,r,o)){return{segmentGroup:be(new gt(t.segments,function(t,e,r,o){var i,a,u={};try{for(var c=Object(n.j)(r),s=c.next();!s.done;s=c.next()){var l=s.value;we(t,e,l)&&!o[Oe(l)]&&(u[Oe(l)]=new gt([],{}))}}catch(t){i={error:t}}finally{try{s&&!s.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return Object(n.a)(Object(n.a)({},o),u)}(t,r,o,t.children))),slicedSegments:r}}return{segmentGroup:t,slicedSegments:r}}(e,s,h,o),c=u.segmentGroup,l=u.slicedSegments;return 0===l.length&&c.hasChildren()?i.expandChildren(r,o,c).pipe(Object(g.a)((function(t){return new gt(s,t)}))):0===o.length&&0===l.length?Object(a.a)(new gt(s,{})):i.expandSegment(r,c,o,l,Z,!0).pipe(Object(g.a)((function(t){return new gt(s.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,r){var n=this;return e.children?Object(a.a)(new et(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):function(t,e,r){var n=e.canLoad;return n&&0!==n.length?Object(u.a)(n).pipe(Object(g.a)((function(n){var o,i=t.get(n);if(function(t){return t&&le(t.canLoad)}(i))o=i.canLoad(e,r);else{if(!le(i))throw new Error("Invalid CanLoad guard");o=i(e,r)}return ht(o)}))).pipe(Object(v.a)(),Object(O.a)((function(t){return!0===t}))):Object(a.a)(!0)}(t.injector,e,r).pipe(Object(w.b)((function(r){return r?n.configLoader.load(t.injector,e).pipe(Object(g.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new s.a((function(e){return e.error(X("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):Object(a.a)(new et([],t))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],n=e.root;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return Object(a.a)(r);if(n.numberOfChildren>1||!n.children[Z])return ve(t.redirectTo);n=n.children[Z]}},t.prototype.applyRedirectCommands=function(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var o=this.createSegmentGroup(t,e.root,r,n);return new dt(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return lt(t,(function(t,n){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);r[n]=e[o]}else r[n]=t})),r},t.prototype.createSegmentGroup=function(t,e,r,n){var o=this,i=this.createSegments(t,e.segments,r,n),a={};return lt(e.children,(function(e,i){a[i]=o.createSegmentGroup(t,e,r,n)})),new gt(i,a)},t.prototype.createSegments=function(t,e,r,n){var o=this;return e.map((function(e){return e.path.startsWith(":")?o.findPosParam(t,e,n):o.findOrReturn(e,r)}))},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){var r,o,i=0;try{for(var a=Object(n.j)(e),u=a.next();!u.done;u=a.next()){var c=u.value;if(c.path===t.path)return e.splice(i),c;i++}}catch(t){r={error:t}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return t},t}();function ye(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||tt)(r,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function be(t){if(1===t.numberOfChildren&&t.children[Z]){var e=t.children[Z];return new gt(t.segments.concat(e.segments),e.children)}return t}function we(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&(""===r.path&&void 0!==r.redirectTo)}function Oe(t){return t.outlet||Z}
  81. /**
  82. * @license
  83. * Copyright Google Inc. All Rights Reserved.
  84. *
  85. * Use of this source code is governed by an MIT-style license that can be
  86. * found in the LICENSE file at https://angular.io/license
  87. */function je(t,e,r,o){return function(i){return i.pipe(Object(j.a)((function(i){return function(t,e,r,n,o){return new me(t,e,r,n,o).apply()}(t,e,r,i.extractedUrl,o).pipe(Object(g.a)((function(t){return Object(n.a)(Object(n.a)({},i),{urlAfterRedirects:t})})))})))}}
  88. /**
  89. * @license
  90. * Copyright Google Inc. All Rights Reserved.
  91. *
  92. * Use of this source code is governed by an MIT-style license that can be
  93. * found in the LICENSE file at https://angular.io/license
  94. */var Se=function(t){this.path=t,this.route=this.path[this.path.length-1]},Ce=function(t,e){this.component=t,this.route=e};function Ae(t,e,r){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var r=e.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}(e);return(n?n.module.injector:r).get(t)}function ke(t,e,r,n,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=Mt(e);return t.children.forEach((function(t){!function(t,e,r,n,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,a=e?e.value:null,u=r?r.getContext(t.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){var c=function(t,e,r){if("function"==typeof r)return r(t,e);switch(r){case"pathParamsChange":return!mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!mt(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yt(t,e)||!at(t.queryParams,e.queryParams);case"paramsChange":default:return!Yt(t,e)}}(a,i,i.routeConfig.runGuardsAndResolvers);if(c?o.canActivateChecks.push(new Se(n)):(i.data=a.data,i._resolvedData=a._resolvedData),i.component?ke(t,e,u?u.children:null,n,o):ke(t,e,r,n,o),c){var s=u&&u.outlet&&u.outlet.component||null;o.canDeactivateChecks.push(new Ce(s,a))}}else a&&Re(e,u,o),o.canActivateChecks.push(new Se(n)),i.component?ke(t,null,u?u.children:null,n,o):ke(t,null,r,n,o)}(t,i[t.value.outlet],r,n.concat([t.value]),o),delete i[t.value.outlet]})),lt(i,(function(t,e){return Re(t,r.getContext(e),o)})),o}function Re(t,e,r){var n=Mt(t),o=t.value;lt(n,(function(t,n){o.component?Re(t,e?e.children.getContext(n):null,r):Re(t,e,r)})),o.component&&e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Ce(e.outlet.component,o)):r.canDeactivateChecks.push(new Ce(null,o))}
  95. /**
  96. * @license
  97. * Copyright Google Inc. All Rights Reserved.
  98. *
  99. * Use of this source code is governed by an MIT-style license that can be
  100. * found in the LICENSE file at https://angular.io/license
  101. */var _e=Symbol("INITIAL_VALUE");function xe(){return Object(j.a)((function(t){return h.b.apply(void 0,Object(n.h)(t.map((function(t){return t.pipe(Object(S.a)(1),Object(C.a)(_e))})))).pipe(Object(A.a)((function(t,e){var r=!1;return e.reduce((function(t,n,o){if(t!==_e)return t;if(n===_e&&(r=!0),!r){if(!1===n)return n;if(o===e.length-1||he(n))return n}return t}),t)}),_e),Object(k.a)((function(t){return t!==_e})),Object(g.a)((function(t){return he(t)?t:!0===t})),Object(S.a)(1))}))}
  102. /**
  103. * @license
  104. * Copyright Google Inc. All Rights Reserved.
  105. *
  106. * Use of this source code is governed by an MIT-style license that can be
  107. * found in the LICENSE file at https://angular.io/license
  108. */function Pe(t,e){return function(r){return r.pipe(Object(w.b)((function(r){var o=r.targetSnapshot,i=r.currentSnapshot,c=r.guards,s=c.canActivateChecks,l=c.canDeactivateChecks;return 0===l.length&&0===s.length?Object(a.a)(Object(n.a)(Object(n.a)({},r),{guardsResult:!0})):function(t,e,r,n){return Object(u.a)(t).pipe(Object(w.b)((function(t){return function(t,e,r,n,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||0===i.length)return Object(a.a)(!0);var u=i.map((function(i){var a,u=Ae(i,e,o);if(function(t){return t&&le(t.canDeactivate)}(u))a=ht(u.canDeactivate(t,e,r,n));else{if(!le(u))throw new Error("Invalid CanDeactivate guard");a=ht(u(t,e,r,n))}return a.pipe(Object(b.a)())}));return Object(a.a)(u).pipe(xe())}
  109. /**
  110. * @license
  111. * Copyright Google Inc. All Rights Reserved.
  112. *
  113. * Use of this source code is governed by an MIT-style license that can be
  114. * found in the LICENSE file at https://angular.io/license
  115. */(t.component,t.route,r,e,n)})),Object(b.a)((function(t){return!0!==t}),!0))}(l,o,i,t).pipe(Object(w.b)((function(r){return r&&"boolean"==typeof r?function(t,e,r,n){return Object(u.a)(e).pipe(Object(R.a)((function(e){return Object(u.a)([Te(e.route.parent,n),Ee(e.route,n),Ie(t,e.path,r),Ue(t,e.route,r)]).pipe(Object(v.a)(),Object(b.a)((function(t){return!0!==t}),!0))})),Object(b.a)((function(t){return!0!==t}),!0))}(o,s,t,e):Object(a.a)(r)})),Object(g.a)((function(t){return Object(n.a)(Object(n.a)({},r),{guardsResult:t})})))})))}}function Ee(t,e){return null!==t&&e&&e(new V(t)),Object(a.a)(!0)}function Te(t,e){return null!==t&&e&&e(new W(t)),Object(a.a)(!0)}function Ue(t,e,r){var n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return Object(a.a)(!0);var o=n.map((function(n){return Object(f.a)((function(){var o,i=Ae(n,e,r);if(function(t){return t&&le(t.canActivate)}(i))o=ht(i.canActivate(e,t));else{if(!le(i))throw new Error("Invalid CanActivate guard");o=ht(i(e,t))}return o.pipe(Object(b.a)())}))}));return Object(a.a)(o).pipe(xe())}function Ie(t,e,r){var n=e[e.length-1],o=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 Object(f.a)((function(){var o=e.guards.map((function(o){var i,a=Ae(o,e.node,r);if(function(t){return t&&le(t.canActivateChild)}(a))i=ht(a.canActivateChild(n,t));else{if(!le(a))throw new Error("Invalid CanActivateChild guard");i=ht(a(n,t))}return i.pipe(Object(b.a)())}));return Object(a.a)(o).pipe(xe())}))}));return Object(a.a)(o).pipe(xe())}var Le=function(){};var Ne=function(){function t(t,e,r,n,o,i){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=Fe(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Z),r=new Gt([],Object.freeze({}),Object.freeze(Object(n.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},Z,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Dt(r,e),i=new Wt(this.url,o);return this.inheritParamsAndData(i._root),Object(a.a)(i)}catch(t){return new s.a((function(e){return e.error(t)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,r=t.value,n=Ht(r,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r,n=this,o=yt(e,(function(e,r){return n.processSegmentGroup(t,e,r)}));return r={},o.forEach((function(t){var e=r[t.value.outlet];if(e){var n=e.url.map((function(t){return t.toString()})).join("/"),o=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+o+"'.")}r[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return t.value.outlet===Z?-1:e.value.outlet===Z?1:t.value.outlet.localeCompare(e.value.outlet)}))}(o),o},t.prototype.processSegment=function(t,e,r,o){var i,a;try{for(var u=Object(n.j)(t),c=u.next();!c.done;c=u.next()){var s=c.value;try{return this.processSegmentAgainstRoute(s,e,r,o)}catch(t){if(!(t instanceof Le))throw t}}}catch(t){i={error:t}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(e,r,o))return[];throw new Le},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,o){if(t.redirectTo)throw new Le;if((t.outlet||Z)!==o)throw new Le;var i,a=[],u=[];if("**"===t.path){var c=r.length>0?st(r).parameters:{};i=new Gt(r,c,Object.freeze(Object(n.a)({},this.urlTree.queryParams)),this.urlTree.fragment,He(t),o,t.component,t,De(e),Me(e)+r.length,Ge(t))}else{var s=function(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new Le;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=(e.matcher||tt)(r,t,e);if(!o)throw new Le;var i={};lt(o.posParams,(function(t,e){i[e]=t.path}));var a=o.consumed.length>0?Object(n.a)(Object(n.a)({},i),o.consumed[o.consumed.length-1].parameters):i;return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a}}(e,t,r);a=s.consumedSegments,u=r.slice(s.lastChild),i=new Gt(a,s.parameters,Object.freeze(Object(n.a)({},this.urlTree.queryParams)),this.urlTree.fragment,He(t),o,t.component,t,De(e),Me(e)+a.length,Ge(t))}var l=function(t){if(t.children)return t.children;if(t.loadChildren)return t._loadedConfig.routes;return[]}(t),h=Fe(e,a,u,l,this.relativeLinkResolution),f=h.segmentGroup,p=h.slicedSegments;if(0===p.length&&f.hasChildren()){var d=this.processChildren(l,f);return[new Dt(i,d)]}if(0===l.length&&0===p.length)return[new Dt(i,[])];var g=this.processSegment(l,f,p,Z);return[new Dt(i,g)]},t}();function De(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Me(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)r+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return r-1}function Fe(t,e,r,o,i){if(r.length>0&&function(t,e,r){return r.some((function(r){return ze(t,e,r)&&qe(r)!==Z}))}(t,r,o)){var a=new gt(e,function(t,e,r,o){var i,a,u={};u[Z]=o,o._sourceSegment=t,o._segmentIndexShift=e.length;try{for(var c=Object(n.j)(r),s=c.next();!s.done;s=c.next()){var l=s.value;if(""===l.path&&qe(l)!==Z){var h=new gt([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,u[qe(l)]=h}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return u}(t,e,o,new gt(r,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&function(t,e,r){return r.some((function(r){return ze(t,e,r)}))}(t,r,o)){var u=new gt(t.segments,function(t,e,r,o,i,a){var u,c,s={};try{for(var l=Object(n.j)(o),h=l.next();!h.done;h=l.next()){var f=h.value;if(ze(t,r,f)&&!i[qe(f)]){var p=new gt([],{});p._sourceSegment=t,p._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[qe(f)]=p}}}catch(t){u={error:t}}finally{try{h&&!h.done&&(c=l.return)&&c.call(l)}finally{if(u)throw u.error}}return Object(n.a)(Object(n.a)({},i),s)}(t,e,r,o,t.children,i));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:r}}var c=new gt(t.segments,t.children);return c._sourceSegment=t,c._segmentIndexShift=e.length,{segmentGroup:c,slicedSegments:r}}function ze(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&(""===r.path&&void 0===r.redirectTo)}function qe(t){return t.outlet||Z}function He(t){return t.data||{}}function Ge(t){return t.resolve||{}}
  116. /**
  117. * @license
  118. * Copyright Google Inc. All Rights Reserved.
  119. *
  120. * Use of this source code is governed by an MIT-style license that can be
  121. * found in the LICENSE file at https://angular.io/license
  122. */function We(t,e,r,o,i){return function(a){return a.pipe(Object(w.b)((function(a){return function(t,e,r,n,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new Ne(t,e,r,n,o,i).recognize()}(t,e,a.urlAfterRedirects,r(a.urlAfterRedirects),o,i).pipe(Object(g.a)((function(t){return Object(n.a)(Object(n.a)({},a),{targetSnapshot:t})})))})))}}
  123. /**
  124. * @license
  125. * Copyright Google Inc. All Rights Reserved.
  126. *
  127. * Use of this source code is governed by an MIT-style license that can be
  128. * found in the LICENSE file at https://angular.io/license
  129. */function Be(t,e){return function(r){return r.pipe(Object(w.b)((function(r){var o=r.targetSnapshot,i=r.guards.canActivateChecks;return i.length?Object(u.a)(i).pipe(Object(R.a)((function(r){return function(t,e,r,o){return function(t,e,r,n){var o=Object.keys(t);if(0===o.length)return Object(a.a)({});if(1===o.length){var i=o[0];return Ve(t[i],e,r,n).pipe(Object(g.a)((function(t){var e;return(e={})[i]=t,e})))}var c={};return Object(u.a)(o).pipe(Object(w.b)((function(o){return Ve(t[o],e,r,n).pipe(Object(g.a)((function(t){return c[o]=t,t})))}))).pipe(Object(m.a)(),Object(g.a)((function(){return c})))}(t._resolve,t,e,o).pipe(Object(g.a)((function(e){return t._resolvedData=e,t.data=Object(n.a)(Object(n.a)({},t.data),Ht(t,r).resolve),null})))}(r.route,o,t,e)})),Object(_.a)((function(t,e){return t})),Object(g.a)((function(t){return r}))):Object(a.a)(r)})))}}function Ve(t,e,r,n){var o=Ae(t,e,n);return o.resolve?ht(o.resolve(e,r)):ht(o(e,r))}
  130. /**
  131. * @license
  132. * Copyright Google Inc. All Rights Reserved.
  133. *
  134. * Use of this source code is governed by an MIT-style license that can be
  135. * found in the LICENSE file at https://angular.io/license
  136. */function Qe(t){return function(e){return e.pipe(Object(j.a)((function(e){var r=t(e);return r?Object(u.a)(r).pipe(Object(g.a)((function(){return e}))):Object(u.a)([e])})))}}
  137. /**
  138. * @license
  139. * Copyright Google Inc. All Rights Reserved.
  140. *
  141. * Use of this source code is governed by an MIT-style license that can be
  142. * found in the LICENSE file at https://angular.io/license
  143. */var Ye=function(){},Je=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}(),Ze=new i.InjectionToken("ROUTES"),$e=function(){function t(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}return t.prototype.load=function(t,e){var r=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(g.a)((function(n){r.onLoadEndListener&&r.onLoadEndListener(e);var o=n.create(t);return new et(ct(o.injector.get(Ze)).map(it),o)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(u.a)(this.loader.load(t)):ht(t()).pipe(Object(w.b)((function(t){return t instanceof i.NgModuleFactory?Object(a.a)(t):Object(u.a)(e.compiler.compileModuleAsync(t))})))},t}(),Ke=function(){},Xe=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}();
  144. /**
  145. * @license
  146. * Copyright Google Inc. All Rights Reserved.
  147. *
  148. * Use of this source code is governed by an MIT-style license that can be
  149. * found in the LICENSE file at https://angular.io/license
  150. */
  151. function tr(t){throw t}function er(t,e,r){return e.parse("/")}function rr(t,e){return Object(a.a)(null)}var nr=function(){function t(t,e,r,n,o,a,u,s){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=r,this.location=n,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=tr,this.malformedUriErrorHandler=er,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rr,afterPreactivation:rr},this.urlHandlingStrategy=new Xe,this.routeReuseStrategy=new Je,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy";this.ngModule=o.get(i.NgModuleRef),this.console=o.get(i["ɵConsole"]);var h=o.get(i.NgZone);this.isNgZoneEnabled=h instanceof i.NgZone,this.resetConfig(s),this.currentUrlTree=new dt(new gt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new $e(a,u,(function(t){return l.triggerEvent(new H(t))}),(function(t){return l.triggerEvent(new G(t))})),this.routerState=zt(this.currentUrlTree,this.rootComponentType),this.transitions=new c.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,r=this.events;return t.pipe(Object(k.a)((function(t){return 0!==t.id})),Object(g.a)((function(t){return Object(n.a)(Object(n.a)({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),Object(j.a)((function(t){var o,i,u,c=!1,s=!1;return Object(a.a)(t).pipe(Object(x.a)((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object(n.a)(Object(n.a)({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Object(j.a)((function(t){var o=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||o)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(j.a)((function(t){var n=e.transitions.getValue();return r.next(new U(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==e.transitions.getValue()?d.a:[t]})),Object(j.a)((function(t){return Promise.resolve(t)})),je(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),Object(x.a)((function(t){e.currentNavigation=Object(n.a)(Object(n.a)({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),We(e.rootComponentType,e.config,(function(t){return e.serializeUrl(t)}),e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(x.a)((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Object(x.a)((function(t){var n=new D(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);r.next(n)})));if(o&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var i=t.id,u=t.extractedUrl,c=t.source,s=t.restoredState,l=t.extras,h=new U(i,e.serializeUrl(u),c,s);r.next(h);var f=zt(u,e.rootComponentType).snapshot;return Object(a.a)(Object(n.a)(Object(n.a)({},t),{targetSnapshot:f,urlAfterRedirects:u,extras:Object(n.a)(Object(n.a)({},l),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a})),Qe((function(t){var r=t.targetSnapshot,n=t.id,o=t.extractedUrl,i=t.rawUrl,a=t.extras,u=a.skipLocationChange,c=a.replaceUrl;return e.hooks.beforePreactivation(r,{navigationId:n,appliedUrlTree:o,rawUrlTree:i,skipLocationChange:!!u,replaceUrl:!!c})})),Object(x.a)((function(t){var r=new M(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})),Object(g.a)((function(t){return Object(n.a)(Object(n.a)({},t),{guards:(r=t.targetSnapshot,o=t.currentSnapshot,i=e.rootContexts,a=r._root,ke(a,o?o._root:null,i,[a.value]))});var r,o,i,a})),Pe(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Object(x.a)((function(t){if(he(t.guardsResult)){var r=X('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw r.url=t.guardsResult,r}})),Object(x.a)((function(t){var r=new F(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)})),Object(k.a)((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var n=new L(t.id,e.serializeUrl(t.extractedUrl),"");return r.next(n),t.resolve(!1),!1}return!0})),Qe((function(t){if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(Object(x.a)((function(t){var r=new z(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})),Be(e.paramsInheritanceStrategy,e.ngModule.injector),Object(x.a)((function(t){var r=new q(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})))})),Qe((function(t){var r=t.targetSnapshot,n=t.id,o=t.extractedUrl,i=t.rawUrl,a=t.extras,u=a.skipLocationChange,c=a.replaceUrl;return e.hooks.afterPreactivation(r,{navigationId:n,appliedUrlTree:o,rawUrlTree:i,skipLocationChange:!!u,replaceUrl:!!c})})),Object(g.a)((function(t){var r,o,i,a,u=(r=e.routeReuseStrategy,o=t.targetSnapshot,i=t.currentRouterState,a=Jt(r,o._root,i?i._root:void 0),new Ft(a,o));return Object(n.a)(Object(n.a)({},t),{targetRouterState:u})})),Object(x.a)((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,i=e.routeReuseStrategy,u=function(t){return e.triggerEvent(t)},Object(g.a)((function(t){return new ce(i,t.targetRouterState,t.currentRouterState,u).activate(o),t}))),Object(x.a)({next:function(){c=!0},complete:function(){c=!0}}),Object(P.a)((function(){if(!c&&!s){e.resetUrlToCurrentUrlTree();var n=new L(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID "+t.id+" is not equal to the current navigation id "+e.navigationId);r.next(n),t.resolve(!1)}e.currentNavigation=null})),Object(y.a)((function(n){if(s=!0,(u=n)&&u.ngNavigationCancelingError){var o=he(n.url);o||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var i=new L(t.id,e.serializeUrl(t.extractedUrl),n.message);r.next(i),o?setTimeout((function(){var r=e.urlHandlingStrategy.merge(n.url,e.rawUrlTree),o={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy};return e.scheduleNavigation(r,"imperative",null,o,{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new N(t.id,e.serializeUrl(t.extractedUrl),n);r.next(a);try{t.resolve(e.errorHandler(n))}catch(e){t.reject(e)}}var u;return d.a})))})))},t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.getTransition=function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t},t.prototype.setTransition=function(t){this.transitions.next(Object(n.a)(Object(n.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 r=t.parseUrl(e.url),n="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?e.state:null;setTimeout((function(){t.scheduleNavigation(r,n,o,{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){rt(t),this.config=t.map(it),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 r=e.relativeTo,o=e.queryParams,a=e.fragment,u=e.preserveQueryParams,c=e.queryParamsHandling,s=e.preserveFragment;Object(i.isDevMode)()&&u&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=r||this.routerState.root,h=s?this.currentUrlTree.fragment:a,f=null;if(c)switch(c){case"merge":f=Object(n.a)(Object(n.a)({},this.currentUrlTree.queryParams),o);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}else f=u?this.currentUrlTree.queryParams:o||null;return null!==f&&(f=this.removeEmptyProps(f)),Zt(l,this.currentUrlTree,t,f,h)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Object(i.isDevMode)()&&this.isNgZoneEnabled&&!i.NgZone.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var r=he(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"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 r=t[e];if(null==r)throw new Error("The requested path contains "+r+" segment at index "+e)}}
  152. /**
  153. * @license
  154. * Copyright Google Inc. All Rights Reserved.
  155. *
  156. * Use of this source code is governed by an MIT-style license that can be
  157. * found in the LICENSE file at https://angular.io/license
  158. */(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(r){e=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(he(t))return ft(this.currentUrlTree,t,e);var r=this.parseUrl(t);return ft(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&(e[r]=n),e}),{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new I(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,r,n,o){var i,a,u,c=this.getTransition();if(c&&"imperative"!==e&&"imperative"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"hashchange"==e&&"popstate"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"popstate"==e&&"hashchange"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);o?(i=o.resolve,a=o.reject,u=o.promise):u=new Promise((function(t,e){i=t,a=e}));var s=++this.navigationId;return this.setTransition({id:s,source:e,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:i,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch((function(t){return Promise.reject(t)}))},t.prototype.setBrowserUrl=function(t,e,r,o){var i=this.urlSerializer.serialize(t);o=o||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object(n.a)(Object(n.a)({},o),{navigationId:r})):this.location.go(i,"",Object(n.a)(Object(n.a)({},o),{navigationId:r}))},t.prototype.resetStateAndUrl=function(t,e,r){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t.ɵfac=function(t){i["ɵɵinvalidFactory"]()},t.ɵdir=i["ɵɵdefineDirective"]({type:t}),t}();var or=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setAttribute(o.nativeElement,"tabindex","0")}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){Object(i.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ar(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})},enumerable:!0,configurable:!0}),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Object)],t.prototype,"queryParams",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",String)],t.prototype,"fragment",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",String)],t.prototype,"queryParamsHandling",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Boolean)],t.prototype,"preserveFragment",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Boolean)],t.prototype,"replaceUrl",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Object)],t.prototype,"state",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Object),Object(n.d)("design:paramtypes",[Object])],t.prototype,"routerLink",null),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Boolean),Object(n.d)("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),Object(n.b)([Object(i.HostListener)("click"),Object(n.d)("design:type",Function),Object(n.d)("design:paramtypes",[]),Object(n.d)("design:returntype",Boolean)],t.prototype,"onClick",null),(t=Object(n.b)([Object(n.e)(2,Object(i.Attribute)("tabindex")),Object(n.d)("design:paramtypes",[nr,qt,String,i.Renderer2,i.ElementRef])],t)).ɵfac=function(e){return new(e||t)(i["ɵɵdirectiveInject"](nr),i["ɵɵdirectiveInject"](qt),i["ɵɵinjectAttribute"]("tabindex"),i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](i.ElementRef))},t.ɵdir=i["ɵɵdefineDirective"]({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&i["ɵɵlistener"]("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t}(),ir=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe((function(t){t instanceof I&&n.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){Object(i.isDevMode)()&&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,r,n){if(0!==t||e||r||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!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:ar(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})},enumerable:!0,configurable:!0}),Object(n.b)([Object(i.HostBinding)("attr.target"),Object(i.Input)(),Object(n.d)("design:type",String)],t.prototype,"target",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Object)],t.prototype,"queryParams",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",String)],t.prototype,"fragment",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",String)],t.prototype,"queryParamsHandling",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Boolean)],t.prototype,"preserveFragment",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Boolean)],t.prototype,"replaceUrl",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Object)],t.prototype,"state",void 0),Object(n.b)([Object(i.HostBinding)(),Object(n.d)("design:type",String)],t.prototype,"href",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Object),Object(n.d)("design:paramtypes",[Object])],t.prototype,"routerLink",null),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Boolean),Object(n.d)("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),Object(n.b)([Object(i.HostListener)("click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]),Object(n.d)("design:type",Function),Object(n.d)("design:paramtypes",[Number,Boolean,Boolean,Boolean]),Object(n.d)("design:returntype",Boolean)],t.prototype,"onClick",null),(t=Object(n.b)([Object(n.d)("design:paramtypes",[nr,qt,o.LocationStrategy])],t)).ɵfac=function(e){return new(e||t)(i["ɵɵdirectiveInject"](nr),i["ɵɵdirectiveInject"](qt),i["ɵɵdirectiveInject"](o.LocationStrategy))},t.ɵdir=i["ɵɵdefineDirective"]({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i["ɵɵlistener"]("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(i["ɵɵhostProperty"]("href",e.href,i["ɵɵsanitizeUrl"]),i["ɵɵattribute"]("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[i["ɵɵNgOnChangesFeature"]]}),t}();function ar(t){return""===t||!!t}
  159. /**
  160. * @license
  161. * Copyright Google Inc. All Rights Reserved.
  162. *
  163. * Use of this source code is governed by an MIT-style license that can be
  164. * found in the LICENSE file at https://angular.io/license
  165. */var ur=function(){function t(t,e,r,n,o){var i=this;this.router=t,this.element=e,this.renderer=r,this.link=n,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe((function(t){t instanceof I&&i.update()}))}return t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe((function(e){return t.update()})),this.linksWithHrefs.changes.subscribe((function(e){return t.update()})),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((function(t){return!!t}))},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach((function(r){e?t.renderer.addClass(t.element.nativeElement,r):t.renderer.removeClass(t.element.nativeElement,r)})))}))},t.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){var t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)},Object(n.b)([Object(i.ContentChildren)(or,{descendants:!0}),Object(n.d)("design:type",i.QueryList)],t.prototype,"links",void 0),Object(n.b)([Object(i.ContentChildren)(ir,{descendants:!0}),Object(n.d)("design:type",i.QueryList)],t.prototype,"linksWithHrefs",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Object)],t.prototype,"routerLinkActiveOptions",void 0),Object(n.b)([Object(i.Input)(),Object(n.d)("design:type",Object),Object(n.d)("design:paramtypes",[Object])],t.prototype,"routerLinkActive",null),(t=Object(n.b)([Object(n.e)(3,Object(i.Optional)()),Object(n.e)(4,Object(i.Optional)()),Object(n.d)("design:paramtypes",[nr,i.ElementRef,i.Renderer2,or,ir])],t)).ɵfac=function(e){return new(e||t)(i["ɵɵdirectiveInject"](nr),i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](i.Renderer2),i["ɵɵdirectiveInject"](or,8),i["ɵɵdirectiveInject"](ir,8))},t.ɵdir=i["ɵɵdefineDirective"]({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,r){var n;(1&t&&(i["ɵɵcontentQuery"](r,or,!0),i["ɵɵcontentQuery"](r,ir,!0)),2&t)&&(i["ɵɵqueryRefresh"](n=i["ɵɵloadQuery"]())&&(e.links=n),i["ɵɵqueryRefresh"](n=i["ɵɵloadQuery"]())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i["ɵɵNgOnChangesFeature"]]}),t}(),cr=function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new sr,this.attachRef=null},sr=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var r=this.getOrCreateContext(t);r.outlet=e,this.contexts.set(t,r)},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 cr,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),lr=function(){function t(t,e,r,n,o){this.parentContexts=t,this.location=e,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.EventEmitter,this.deactivateEvents=new i.EventEmitter,this.name=n||Z,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 r=t._futureSnapshot.routeConfig.component,n=(e=e||this.resolver).resolveComponentFactory(r),o=this.parentContexts.getOrCreateContext(this.name).children,i=new hr(t,o,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},Object(n.b)([Object(i.Output)("activate"),Object(n.d)("design:type",Object)],t.prototype,"activateEvents",void 0),Object(n.b)([Object(i.Output)("deactivate"),Object(n.d)("design:type",Object)],t.prototype,"deactivateEvents",void 0),(t=Object(n.b)([Object(n.e)(3,Object(i.Attribute)("name")),Object(n.d)("design:paramtypes",[sr,i.ViewContainerRef,i.ComponentFactoryResolver,String,i.ChangeDetectorRef])],t)).ɵfac=function(e){return new(e||t)(i["ɵɵdirectiveInject"](sr),i["ɵɵdirectiveInject"](i.ViewContainerRef),i["ɵɵdirectiveInject"](i.ComponentFactoryResolver),i["ɵɵinjectAttribute"]("name"),i["ɵɵdirectiveInject"](i.ChangeDetectorRef))},t.ɵdir=i["ɵɵdefineDirective"]({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t}(),hr=function(){function t(t,e,r){this.route=t,this.childContexts=e,this.parent=r}return t.prototype.get=function(t,e){return t===qt?this.route:t===sr?this.childContexts:this.parent.get(t,e)},t}(),fr=function(){},pr=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(Object(y.a)((function(){return Object(a.a)(null)})))},t}(),dr=function(){function t(){}return t.prototype.preload=function(t,e){return Object(a.a)(null)},t}(),gr=function(){function t(t,e,r,n,o){this.router=t,this.injector=n,this.preloadingStrategy=o;this.loader=new $e(e,r,(function(e){return t.triggerEvent(new H(e))}),(function(e){return t.triggerEvent(new G(e))}))}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(Object(k.a)((function(t){return t instanceof I})),Object(R.a)((function(){return t.preload()}))).subscribe((function(){}))},t.prototype.preload=function(){var t=this.injector.get(i.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var r,o,i=[];try{for(var a=Object(n.j)(e),c=a.next();!c.done;c=a.next()){var s=c.value;if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var l=s._loadedConfig;i.push(this.processRoutes(l.module,l.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(t,s)):s.children&&i.push(this.processRoutes(t,s.children))}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return Object(u.a)(i).pipe(Object(E.a)(),Object(g.a)((function(t){})))},t.prototype.preloadConfig=function(t,e){var r=this;return this.preloadingStrategy.preload(e,(function(){return r.loader.load(t.injector,e).pipe(Object(w.b)((function(t){return e._loadedConfig=t,r.processRoutes(t.module,t.routes)})))}))},(t=Object(n.b)([Object(n.d)("design:paramtypes",[nr,i.NgModuleFactoryLoader,i.Compiler,i.Injector,fr])],t)).ɵfac=function(e){return new(e||t)(i["ɵɵinject"](nr),i["ɵɵinject"](i.NgModuleFactoryLoader),i["ɵɵinject"](i.Compiler),i["ɵɵinject"](i.Injector),i["ɵɵinject"](fr))},t.ɵprov=i["ɵɵdefineInjectable"]({token:t,factory:function(e){return t.ɵfac(e)}}),t}(),vr=function(){function t(t,e,r){void 0===r&&(r={}),this.router=t,this.viewportScroller=e,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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 U?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof I&&(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 Y&&(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 Y(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.ɵfac=function(t){i["ɵɵinvalidFactory"]()},t.ɵdir=i["ɵɵdefineDirective"]({type:t}),t}(),mr=new i.InjectionToken("ROUTER_CONFIGURATION"),yr=new i.InjectionToken("ROUTER_FORROOT_GUARD"),br=[o.Location,{provide:bt,useClass:wt},{provide:nr,useFactory:kr,deps:[bt,sr,o.Location,i.Injector,i.NgModuleFactoryLoader,i.Compiler,Ze,mr,[Ke,new i.Optional],[Ye,new i.Optional]]},sr,{provide:qt,useFactory:Rr,deps:[nr]},{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader},gr,dr,pr,{provide:mr,useValue:{enableTracing:!1}}];
  166. /**
  167. * @license
  168. * Copyright Google Inc. All Rights Reserved.
  169. *
  170. * Use of this source code is governed by an MIT-style license that can be
  171. * found in the LICENSE file at https://angular.io/license
  172. */function wr(){return new i.NgProbeToken("Router",nr)}var Or=function(){function t(t,e){}var e;return e=t,t.forRoot=function(t,r){return{ngModule:e,providers:[br,Ar(t),{provide:yr,useFactory:Cr,deps:[[nr,new i.Optional,new i.SkipSelf]]},{provide:mr,useValue:r||{}},{provide:o.LocationStrategy,useFactory:Sr,deps:[o.PlatformLocation,[new i.Inject(o.APP_BASE_HREF),new i.Optional],mr]},{provide:vr,useFactory:jr,deps:[nr,o.ViewportScroller,mr]},{provide:fr,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:dr},{provide:i.NgProbeToken,multi:!0,useFactory:wr},Tr()]}},t.forChild=function(t){return{ngModule:e,providers:[Ar(t)]}},(t=e=Object(n.b)([Object(n.e)(0,Object(i.Optional)()),Object(n.e)(0,Object(i.Inject)(yr)),Object(n.e)(1,Object(i.Optional)()),Object(n.d)("design:paramtypes",[Object,nr])],t)).ɵmod=i["ɵɵdefineNgModule"]({type:t}),t.ɵinj=i["ɵɵdefineInjector"]({factory:function(e){return new(e||t)(i["ɵɵinject"](yr,8),i["ɵɵinject"](nr,8))}}),("undefined"==typeof ngJitMode||ngJitMode)&&i["ɵɵsetNgModuleScope"](t,{declarations:[lr,or,ir,ur,J],exports:[lr,or,ir,ur,J]}),t}();function jr(t,e,r){return r.scrollOffset&&e.setOffset(r.scrollOffset),new vr(t,e,r)}function Sr(t,e,r){return void 0===r&&(r={}),r.useHash?new o.HashLocationStrategy(t,e):new o.PathLocationStrategy(t,e)}function Cr(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ar(t){return[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Ze,multi:!0,useValue:t}]}function kr(t,e,r,n,i,a,u,c,s,l){void 0===c&&(c={});var h=new nr(null,t,e,r,n,i,a,ct(u));if(s&&(h.urlHandlingStrategy=s),l&&(h.routeReuseStrategy=l),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){var f=Object(o["ɵgetDOM"])();h.events.subscribe((function(t){f.logGroup("Router Event: "+t.constructor.name),f.log(t.toString()),f.log(t),f.logGroupEnd()}))}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h}function Rr(t){return t.routerState.root}var _r=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.a}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(o.LOCATION_INITIALIZED,Promise.resolve(null)).then((function(){var e=null,r=new Promise((function(t){return e=t})),n=t.injector.get(nr),o=t.injector.get(mr);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");n.hooks.afterPreactivation=function(){return t.initNavigation?Object(a.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return r}))},t.prototype.bootstrapListener=function(t){var e=this.injector.get(mr),r=this.injector.get(gr),n=this.injector.get(vr),o=this.injector.get(nr),a=this.injector.get(i.ApplicationRef);t===a.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),r.setUpPreloading(),n.init(),o.resetRootComponentType(a.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=Object(n.b)([Object(n.d)("design:paramtypes",[i.Injector])],t)).ɵfac=function(e){return new(e||t)(i["ɵɵinject"](i.Injector))},t.ɵprov=i["ɵɵdefineInjectable"]({token:t,factory:function(e){return t.ɵfac(e)}}),t}();function xr(t){return t.appInitializer.bind(t)}function Pr(t){return t.bootstrapListener.bind(t)}var Er=new i.InjectionToken("Router Initializer");function Tr(){return[_r,{provide:i.APP_INITIALIZER,multi:!0,useFactory:xr,deps:[_r]},{provide:Er,useFactory:Pr,deps:[_r]},{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Er}]}
  173. /**
  174. * @license
  175. * Copyright Google Inc. All Rights Reserved.
  176. *
  177. * Use of this source code is governed by an MIT-style license that can be
  178. * found in the LICENSE file at https://angular.io/license
  179. */var Ur=new i.Version("9.1.9");
  180. /**
  181. * @license
  182. * Copyright Google Inc. All Rights Reserved.
  183. *
  184. * Use of this source code is governed by an MIT-style license that can be
  185. * found in the LICENSE file at https://angular.io/license
  186. */
  187. /**
  188. * @license
  189. * Copyright Google Inc. All Rights Reserved.
  190. *
  191. * Use of this source code is governed by an MIT-style license that can be
  192. * found in the LICENSE file at https://angular.io/license
  193. */
  194. /**
  195. * @license
  196. * Copyright Google Inc. All Rights Reserved.
  197. *
  198. * Use of this source code is governed by an MIT-style license that can be
  199. * found in the LICENSE file at https://angular.io/license
  200. */
  201. /**
  202. * @license
  203. * Copyright Google Inc. All Rights Reserved.
  204. *
  205. * Use of this source code is governed by an MIT-style license that can be
  206. * found in the LICENSE file at https://angular.io/license
  207. */},1931:function(t,e,r){"use strict";r.r(e),r.d(e,"MessageFormatTranspiler",(function(){return s})),r.d(e,"TRANSLOCO_MESSAGE_FORMAT_CONFIG",(function(){return u})),r.d(e,"TranslocoMessageFormatModule",(function(){return l}));var n=r(1),o=r(2023),i=r(0),a=r(168),u=new i.InjectionToken("TRANSLOCO_MESSAGE_FORMAT_CONFIG");function c(t,e){return new o(t,e)}var s=function(t){function e(e){var r=t.call(this)||this,o=e||{locales:void 0},i=o.locales,a=Object(n.g)(o,["locales"]);return r.messageConfig=a,r.messageFormat=c(i,a),r}return Object(n.c)(e,t),e.prototype.transpile=function(e,r,n){var o=this;if(void 0===r&&(r={}),!e)return e;if(Object(a.isObject)(e)&&r)Object.keys(r).forEach((function(i){var u=Object(a.getValue)(e,i),c=Object(a.getValue)(r,i),s=t.prototype.transpile.call(o,u,c,n),l=o.messageFormat.compile(s);e=Object(a.setValue)(e,i,l(r[i]))}));else if(!Array.isArray(e)){var i=t.prototype.transpile.call(this,e,r,n);return this.messageFormat.compile(i)(r)}return e},e.prototype.onLangChanged=function(t){this.setLocale(t)},e.prototype.setLocale=function(t){this.messageFormat=c(t,this.messageConfig)},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[u]}]}]},e.ɵfac=function(t){return new(t||e)(i["ɵɵinject"](u,8))},e.ɵprov=i["ɵɵdefineInjectable"]({token:e,factory:function(t){return e.ɵfac(t)}}),e}(a.DefaultTranspiler),l=function(){function t(){}return t.init=function(e){return{ngModule:t,providers:[{provide:u,useValue:e},{provide:a.TRANSLOCO_TRANSPILER,useClass:s}]}},t.ctorParameters=function(){return[]},t.ɵmod=i["ɵɵdefineNgModule"]({type:t}),t.ɵinj=i["ɵɵdefineInjector"]({factory:function(e){return new(e||t)}}),t}()},2023:function(t,e,r){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}([function(t,e,r){var n,o;void 0===(o="function"==typeof(n={af:function(t,e){return e?"other":1==t?"one":"other"},ak:function(t,e){return e?"other":0==t||1==t?"one":"other"},am:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ar:function(t,e){var r=String(t).split("."),n=Number(r[0])==t&&r[0].slice(-2);return e?"other":0==t?"zero":1==t?"one":2==t?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ars:function(t,e){var r=String(t).split("."),n=Number(r[0])==t&&r[0].slice(-2);return e?"other":0==t?"zero":1==t?"one":2==t?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},as:function(t,e){return e?1==t||5==t||7==t||8==t||9==t||10==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},asa:function(t,e){return e?"other":1==t?"one":"other"},ast:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},az:function(t,e){var r=String(t).split(".")[0],n=r.slice(-1),o=r.slice(-2),i=r.slice(-3);return e?1==n||2==n||5==n||7==n||8==n||20==o||50==o||70==o||80==o?"one":3==n||4==n||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==r||6==n||40==o||60==o||90==o?"many":"other":1==t?"one":"other"},be:function(t,e){var r=String(t).split("."),n=Number(r[0])==t,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2);return e?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":n&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},bem:function(t,e){return e?"other":1==t?"one":"other"},bez:function(t,e){return e?"other":1==t?"one":"other"},bg:function(t,e){return e?"other":1==t?"one":"other"},bh:function(t,e){return e?"other":0==t||1==t?"one":"other"},bm:function(t,e){return"other"},bn:function(t,e){return e?1==t||5==t||7==t||8==t||9==t||10==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},bo:function(t,e){return"other"},br:function(t,e){var r=String(t).split("."),n=Number(r[0])==t,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2),a=n&&r[0].slice(-6);return e?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=t&&n&&0==a?"many":"other"},brx:function(t,e){return e?"other":1==t?"one":"other"},bs:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return e?"other":i&&1==a&&11!=u||1==c&&11!=s?"one":i&&a>=2&&a<=4&&(u<12||u>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},ca:function(t,e){var r=!String(t).split(".")[1];return e?1==t||3==t?"one":2==t?"two":4==t?"few":"other":1==t&&r?"one":"other"},ce:function(t,e){return e?"other":1==t?"one":"other"},cgg:function(t,e){return e?"other":1==t?"one":"other"},chr:function(t,e){return e?"other":1==t?"one":"other"},ckb:function(t,e){return e?"other":1==t?"one":"other"},cs:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1];return e?"other":1==t&&o?"one":n>=2&&n<=4&&o?"few":o?"other":"many"},cy:function(t,e){return e?0==t||7==t||8==t||9==t?"zero":1==t?"one":2==t?"two":3==t||4==t?"few":5==t||6==t?"many":"other":0==t?"zero":1==t?"one":2==t?"two":3==t?"few":6==t?"many":"other"},da:function(t,e){var r=String(t).split("."),n=r[0],o=Number(r[0])==t;return e||1!=t&&(o||0!=n&&1!=n)?"other":"one"},de:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},dsb:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-2),u=o.slice(-2);return e?"other":i&&1==a||1==u?"one":i&&2==a||2==u?"two":i&&(3==a||4==a)||3==u||4==u?"few":"other"},dv:function(t,e){return e?"other":1==t?"one":"other"},dz:function(t,e){return"other"},ee:function(t,e){return e?"other":1==t?"one":"other"},el:function(t,e){return e?"other":1==t?"one":"other"},en:function(t,e){var r=String(t).split("."),n=!r[1],o=Number(r[0])==t,i=o&&r[0].slice(-1),a=o&&r[0].slice(-2);return e?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==t&&n?"one":"other"},eo:function(t,e){return e?"other":1==t?"one":"other"},es:function(t,e){return e?"other":1==t?"one":"other"},et:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},eu:function(t,e){return e?"other":1==t?"one":"other"},fa:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ff:function(t,e){return e?"other":t>=0&&t<2?"one":"other"},fi:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},fil:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=o.slice(-1);return e?1==t?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=a&&6!=a&&9!=a||!i&&4!=u&&6!=u&&9!=u?"one":"other"},fo:function(t,e){return e?"other":1==t?"one":"other"},fr:function(t,e){return e?1==t?"one":"other":t>=0&&t<2?"one":"other"},fur:function(t,e){return e?"other":1==t?"one":"other"},fy:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},ga:function(t,e){var r=String(t).split("."),n=Number(r[0])==t;return e?1==t?"one":"other":1==t?"one":2==t?"two":n&&t>=3&&t<=6?"few":n&&t>=7&&t<=10?"many":"other"},gd:function(t,e){var r=String(t).split("."),n=Number(r[0])==t;return e?1==t||11==t?"one":2==t||12==t?"two":3==t||13==t?"few":"other":1==t||11==t?"one":2==t||12==t?"two":n&&t>=3&&t<=10||n&&t>=13&&t<=19?"few":"other"},gl:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},gsw:function(t,e){return e?"other":1==t?"one":"other"},gu:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},guw:function(t,e){return e?"other":0==t||1==t?"one":"other"},gv:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1],i=n.slice(-1),a=n.slice(-2);return e?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},ha:function(t,e){return e?"other":1==t?"one":"other"},haw:function(t,e){return e?"other":1==t?"one":"other"},he:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1],i=Number(r[0])==t,a=i&&r[0].slice(-1);return e?"other":1==t&&o?"one":2==n&&o?"two":o&&(t<0||t>10)&&i&&0==a?"many":"other"},hi:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},hr:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return e?"other":i&&1==a&&11!=u||1==c&&11!=s?"one":i&&a>=2&&a<=4&&(u<12||u>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},hsb:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-2),u=o.slice(-2);return e?"other":i&&1==a||1==u?"one":i&&2==a||2==u?"two":i&&(3==a||4==a)||3==u||4==u?"few":"other"},hu:function(t,e){return e?1==t||5==t?"one":"other":1==t?"one":"other"},hy:function(t,e){return e?1==t?"one":"other":t>=0&&t<2?"one":"other"},ia:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},id:function(t,e){return"other"},ig:function(t,e){return"other"},ii:function(t,e){return"other"},in:function(t,e){return"other"},io:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},is:function(t,e){var r=String(t).split("."),n=r[0],o=Number(r[0])==t,i=n.slice(-1),a=n.slice(-2);return e?"other":o&&1==i&&11!=a||!o?"one":"other"},it:function(t,e){var r=!String(t).split(".")[1];return e?11==t||8==t||80==t||800==t?"many":"other":1==t&&r?"one":"other"},iu:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},iw:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1],i=Number(r[0])==t,a=i&&r[0].slice(-1);return e?"other":1==t&&o?"one":2==n&&o?"two":o&&(t<0||t>10)&&i&&0==a?"many":"other"},ja:function(t,e){return"other"},jbo:function(t,e){return"other"},jgo:function(t,e){return e?"other":1==t?"one":"other"},ji:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},jmc:function(t,e){return e?"other":1==t?"one":"other"},jv:function(t,e){return"other"},jw:function(t,e){return"other"},ka:function(t,e){var r=String(t).split(".")[0],n=r.slice(-2);return e?1==r?"one":0==r||n>=2&&n<=20||40==n||60==n||80==n?"many":"other":1==t?"one":"other"},kab:function(t,e){return e?"other":t>=0&&t<2?"one":"other"},kaj:function(t,e){return e?"other":1==t?"one":"other"},kcg:function(t,e){return e?"other":1==t?"one":"other"},kde:function(t,e){return"other"},kea:function(t,e){return"other"},kk:function(t,e){var r=String(t).split("."),n=Number(r[0])==t,o=n&&r[0].slice(-1);return e?6==o||9==o||n&&0==o&&0!=t?"many":"other":1==t?"one":"other"},kkj:function(t,e){return e?"other":1==t?"one":"other"},kl:function(t,e){return e?"other":1==t?"one":"other"},km:function(t,e){return"other"},kn:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ko:function(t,e){return"other"},ks:function(t,e){return e?"other":1==t?"one":"other"},ksb:function(t,e){return e?"other":1==t?"one":"other"},ksh:function(t,e){return e?"other":0==t?"zero":1==t?"one":"other"},ku:function(t,e){return e?"other":1==t?"one":"other"},kw:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},ky:function(t,e){return e?"other":1==t?"one":"other"},lag:function(t,e){var r=String(t).split(".")[0];return e?"other":0==t?"zero":0!=r&&1!=r||0==t?"other":"one"},lb:function(t,e){return e?"other":1==t?"one":"other"},lg:function(t,e){return e?"other":1==t?"one":"other"},lkt:function(t,e){return"other"},ln:function(t,e){return e?"other":0==t||1==t?"one":"other"},lo:function(t,e){return e&&1==t?"one":"other"},lt:function(t,e){var r=String(t).split("."),n=r[1]||"",o=Number(r[0])==t,i=o&&r[0].slice(-1),a=o&&r[0].slice(-2);return e?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=n?"many":"other"},lv:function(t,e){var r=String(t).split("."),n=r[1]||"",o=n.length,i=Number(r[0])==t,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),c=n.slice(-2),s=n.slice(-1);return e?"other":i&&0==a||u>=11&&u<=19||2==o&&c>=11&&c<=19?"zero":1==a&&11!=u||2==o&&1==s&&11!=c||2!=o&&1==s?"one":"other"},mas:function(t,e){return e?"other":1==t?"one":"other"},mg:function(t,e){return e?"other":0==t||1==t?"one":"other"},mgo:function(t,e){return e?"other":1==t?"one":"other"},mk:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return e?1==a&&11!=u?"one":2==a&&12!=u?"two":7!=a&&8!=a||17==u||18==u?"other":"many":i&&1==a&&11!=u||1==c&&11!=s?"one":"other"},ml:function(t,e){return e?"other":1==t?"one":"other"},mn:function(t,e){return e?"other":1==t?"one":"other"},mo:function(t,e){var r=String(t).split("."),n=!r[1],o=Number(r[0])==t&&r[0].slice(-2);return e?1==t?"one":"other":1==t&&n?"one":!n||0==t||1!=t&&o>=1&&o<=19?"few":"other"},mr:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":"other":t>=0&&t<=1?"one":"other"},ms:function(t,e){return e&&1==t?"one":"other"},mt:function(t,e){var r=String(t).split("."),n=Number(r[0])==t&&r[0].slice(-2);return e?"other":1==t?"one":0==t||n>=2&&n<=10?"few":n>=11&&n<=19?"many":"other"},my:function(t,e){return"other"},nah:function(t,e){return e?"other":1==t?"one":"other"},naq:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},nb:function(t,e){return e?"other":1==t?"one":"other"},nd:function(t,e){return e?"other":1==t?"one":"other"},ne:function(t,e){var r=String(t).split("."),n=Number(r[0])==t;return e?n&&t>=1&&t<=4?"one":"other":1==t?"one":"other"},nl:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},nn:function(t,e){return e?"other":1==t?"one":"other"},nnh:function(t,e){return e?"other":1==t?"one":"other"},no:function(t,e){return e?"other":1==t?"one":"other"},nqo:function(t,e){return"other"},nr:function(t,e){return e?"other":1==t?"one":"other"},nso:function(t,e){return e?"other":0==t||1==t?"one":"other"},ny:function(t,e){return e?"other":1==t?"one":"other"},nyn:function(t,e){return e?"other":1==t?"one":"other"},om:function(t,e){return e?"other":1==t?"one":"other"},or:function(t,e){var r=String(t).split("."),n=Number(r[0])==t;return e?1==t||5==t||n&&t>=7&&t<=9?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":1==t?"one":"other"},os:function(t,e){return e?"other":1==t?"one":"other"},pa:function(t,e){return e?"other":0==t||1==t?"one":"other"},pap:function(t,e){return e?"other":1==t?"one":"other"},pl:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1],i=n.slice(-1),a=n.slice(-2);return e?"other":1==t&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=n&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},prg:function(t,e){var r=String(t).split("."),n=r[1]||"",o=n.length,i=Number(r[0])==t,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),c=n.slice(-2),s=n.slice(-1);return e?"other":i&&0==a||u>=11&&u<=19||2==o&&c>=11&&c<=19?"zero":1==a&&11!=u||2==o&&1==s&&11!=c||2!=o&&1==s?"one":"other"},ps:function(t,e){return e?"other":1==t?"one":"other"},pt:function(t,e){var r=String(t).split(".")[0];return e?"other":0==r||1==r?"one":"other"},"pt-PT":function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},rm:function(t,e){return e?"other":1==t?"one":"other"},ro:function(t,e){var r=String(t).split("."),n=!r[1],o=Number(r[0])==t&&r[0].slice(-2);return e?1==t?"one":"other":1==t&&n?"one":!n||0==t||1!=t&&o>=1&&o<=19?"few":"other"},rof:function(t,e){return e?"other":1==t?"one":"other"},root:function(t,e){return"other"},ru:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1],i=n.slice(-1),a=n.slice(-2);return e?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},rwk:function(t,e){return e?"other":1==t?"one":"other"},sah:function(t,e){return"other"},saq:function(t,e){return e?"other":1==t?"one":"other"},sc:function(t,e){var r=!String(t).split(".")[1];return e?11==t||8==t||80==t||800==t?"many":"other":1==t&&r?"one":"other"},scn:function(t,e){var r=!String(t).split(".")[1];return e?11==t||8==t||80==t||800==t?"many":"other":1==t&&r?"one":"other"},sd:function(t,e){return e?"other":1==t?"one":"other"},sdh:function(t,e){return e?"other":1==t?"one":"other"},se:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},seh:function(t,e){return e?"other":1==t?"one":"other"},ses:function(t,e){return"other"},sg:function(t,e){return"other"},sh:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return e?"other":i&&1==a&&11!=u||1==c&&11!=s?"one":i&&a>=2&&a<=4&&(u<12||u>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},shi:function(t,e){var r=String(t).split("."),n=Number(r[0])==t;return e?"other":t>=0&&t<=1?"one":n&&t>=2&&t<=10?"few":"other"},si:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"";return e?"other":0==t||1==t||0==n&&1==o?"one":"other"},sk:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1];return e?"other":1==t&&o?"one":n>=2&&n<=4&&o?"few":o?"other":"many"},sl:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1],i=n.slice(-2);return e?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},sma:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smi:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smj:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smn:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},sms:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},sn:function(t,e){return e?"other":1==t?"one":"other"},so:function(t,e){return e?"other":1==t?"one":"other"},sq:function(t,e){var r=String(t).split("."),n=Number(r[0])==t,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2);return e?1==t?"one":4==o&&14!=i?"many":"other":1==t?"one":"other"},sr:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return e?"other":i&&1==a&&11!=u||1==c&&11!=s?"one":i&&a>=2&&a<=4&&(u<12||u>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},ss:function(t,e){return e?"other":1==t?"one":"other"},ssy:function(t,e){return e?"other":1==t?"one":"other"},st:function(t,e){return e?"other":1==t?"one":"other"},sv:function(t,e){var r=String(t).split("."),n=!r[1],o=Number(r[0])==t,i=o&&r[0].slice(-1),a=o&&r[0].slice(-2);return e?1!=i&&2!=i||11==a||12==a?"other":"one":1==t&&n?"one":"other"},sw:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},syr:function(t,e){return e?"other":1==t?"one":"other"},ta:function(t,e){return e?"other":1==t?"one":"other"},te:function(t,e){return e?"other":1==t?"one":"other"},teo:function(t,e){return e?"other":1==t?"one":"other"},th:function(t,e){return"other"},ti:function(t,e){return e?"other":0==t||1==t?"one":"other"},tig:function(t,e){return e?"other":1==t?"one":"other"},tk:function(t,e){var r=String(t).split("."),n=Number(r[0])==t&&r[0].slice(-1);return e?6==n||9==n||10==t?"few":"other":1==t?"one":"other"},tl:function(t,e){var r=String(t).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=o.slice(-1);return e?1==t?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=a&&6!=a&&9!=a||!i&&4!=u&&6!=u&&9!=u?"one":"other"},tn:function(t,e){return e?"other":1==t?"one":"other"},to:function(t,e){return"other"},tr:function(t,e){return e?"other":1==t?"one":"other"},ts:function(t,e){return e?"other":1==t?"one":"other"},tzm:function(t,e){var r=String(t).split("."),n=Number(r[0])==t;return e?"other":0==t||1==t||n&&t>=11&&t<=99?"one":"other"},ug:function(t,e){return e?"other":1==t?"one":"other"},uk:function(t,e){var r=String(t).split("."),n=r[0],o=!r[1],i=Number(r[0])==t,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),c=n.slice(-1),s=n.slice(-2);return e?3==a&&13!=u?"few":"other":o&&1==c&&11!=s?"one":o&&c>=2&&c<=4&&(s<12||s>14)?"few":o&&0==c||o&&c>=5&&c<=9||o&&s>=11&&s<=14?"many":"other"},ur:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},uz:function(t,e){return e?"other":1==t?"one":"other"},ve:function(t,e){return e?"other":1==t?"one":"other"},vi:function(t,e){return e&&1==t?"one":"other"},vo:function(t,e){return e?"other":1==t?"one":"other"},vun:function(t,e){return e?"other":1==t?"one":"other"},wa:function(t,e){return e?"other":0==t||1==t?"one":"other"},wae:function(t,e){return e?"other":1==t?"one":"other"},wo:function(t,e){return"other"},xh:function(t,e){return e?"other":1==t?"one":"other"},xog:function(t,e){return e?"other":1==t?"one":"other"},yi:function(t,e){var r=!String(t).split(".")[1];return e?"other":1==t&&r?"one":"other"},yo:function(t,e){return"other"},yue:function(t,e){return"other"},zh:function(t,e){return"other"},zu:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"}})?n.call(e,r,e,t):n)||(t.exports=o)},function(t,e,r){t.exports={date:r(4),duration:r(5),number:r(6),time:r(7)}},function(t,e,r){"use strict";function n(t,e,r,o){this.message=t,this.expected=e,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}!function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(n,Error),n.buildMessage=function(t,e){var r={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e,r="";for(e=0;e<t.parts.length;e++)r+=t.parts[e]instanceof Array?i(t.parts[e][0])+"-"+i(t.parts[e][1]):i(t.parts[e]);return"["+(t.inverted?"^":"")+r+"]"},any:function(t){return"any character"},end:function(t){return"end of input"},other:function(t){return t.description}};function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}return"Expected "+function(t){var e,n,o,i=new Array(t.length);for(e=0;e<t.length;e++)i[e]=(o=t[e],r[o.type](o));if(i.sort(),i.length>0){for(e=1,n=1;e<i.length;e++)i[e-1]!==i[e]&&(i[n]=i[e],n++);i.length=n}switch(i.length){case 1:return i[0];case 2:return i[0]+" or "+i[1];default:return i.slice(0,-1).join(", ")+", or "+i[i.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."},t.exports={SyntaxError:n,parse:function(t,e){e=void 0!==e?e:{};var r,o={},i={start:kt},a=kt,u=wt("#",!1),c=function(){return Mt[0]},s=function(t){return t.join("")},l="{",h=wt("{",!1),f="}",p=wt("}",!1),d=",",g=wt(",",!1),v="select",m=wt("select",!1),y=function(t,r){return e.strict&&Mt.unshift(!1),r},b=function(t,r){return e.strict&&Mt.shift(),{type:"select",arg:t,cases:r}},w="plural",O=wt("plural",!1),j="selectordinal",S=wt("selectordinal",!1),C=function(t,r,n,o){var i=("selectordinal"===r?e.ordinal:e.cardinal)||["zero","one","two","few","many","other"];return i&&i.length&&o.forEach((function(e){if(isNaN(e.key)&&i.indexOf(e.key)<0)throw new Error("Invalid key `"+e.key+"` for argument `"+t+"`. Valid "+r+" keys for this locale are `"+i.join("`, `")+"`, and explicit keys like `=0`.")})),Mt.shift(),{type:r,arg:t,offset:n||0,cases:o}},A=jt("identifier"),k=/^[^\t-\r \x85\u200E\u200F\u2028\u2029!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,R=Ot([["\t","\r"]," ","…","‎","‏","\u2028","\u2029",["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!0,!1),_=function(t,e){return{key:t,tokens:e}},x=jt("plural offset"),P="offset",E=wt("offset",!1),T=wt(":",!1),U=wt("=",!1),I="number",L=wt("number",!1),N="date",D=wt("date",!1),M="time",F=wt("time",!1),z="spellout",q=wt("spellout",!1),H="ordinal",G=wt("ordinal",!1),W="duration",B=wt("duration",!1),V=function(t){if(e.strict||/^\d/.test(t))return!1;switch(t.toLowerCase()){case"select":case"plural":case"selectordinal":return!1;default:return!0}},Q=function(t){return!e.strict},Y=jt("a valid (strict) function parameter"),J=/^[^'{}]/,Z=Ot(["'","{","}"],!0,!1),$=wt("'",!1),K=jt("doubled apostrophe"),X=wt("''",!1),tt=/^[^']/,et=Ot(["'"],!0,!1),rt=wt("'{",!1),nt=wt("'}",!1),ot=jt("escaped string"),it=wt("'#",!1),at=jt("plain char"),ut=/^[^{}#\0-\x08\x0E-\x1F\x7F]/,ct=Ot(["{","}","#",["\0","\b"],["",""],""],!0,!1),st=jt("integer"),lt=/^[0-9]/,ht=Ot([["0","9"]],!1,!1),ft=jt("white space"),pt=/^[\t-\r \x85\u200E\u200F\u2028\u2029]/,dt=Ot([["\t","\r"]," ","…","‎","‏","\u2028","\u2029"],!1,!1),gt=0,vt=[{line:1,column:1}],mt=0,yt=[],bt=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function wt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ot(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function jt(t){return{type:"other",description:t}}function St(e){var r,n=vt[e];if(n)return n;for(r=e-1;!vt[r];)r--;for(n={line:(n=vt[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return vt[e]=n,n}function Ct(t,e){var r=St(t),n=St(e);return{start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:n.line,column:n.column}}}function At(t){gt<mt||(gt>mt&&(mt=gt,yt=[]),yt.push(t))}function kt(){var t,e;for(t=[],e=Rt();e!==o;)t.push(e),e=Rt();return t}function Rt(){var e,r,n;if((e=function(){var e,r,n,i;return e=gt,123===t.charCodeAt(gt)?(r=l,gt++):(r=o,0===bt&&At(h)),r!==o&&Dt()!==o&&(n=_t())!==o&&Dt()!==o?(125===t.charCodeAt(gt)?(i=f,gt++):(i=o,0===bt&&At(p)),i!==o?e=r=function(t){return{type:"argument",arg:t}}(n):(gt=e,e=o)):(gt=e,e=o),e}())===o&&(e=function(){var e,r,n,i,a,u,c,s,w;if(e=gt,123===t.charCodeAt(gt)?(r=l,gt++):(r=o,0===bt&&At(h)),r!==o)if(Dt()!==o)if((n=_t())!==o)if(Dt()!==o)if(44===t.charCodeAt(gt)?(i=d,gt++):(i=o,0===bt&&At(g)),i!==o)if(Dt()!==o)if(t.substr(gt,6)===v?(a=v,gt+=6):(a=o,0===bt&&At(m)),a!==o&&(a=y(0,a)),a!==o)if((a=Dt())!==o)if(44===t.charCodeAt(gt)?(u=d,gt++):(u=o,0===bt&&At(g)),u!==o)if(Dt()!==o){if(c=[],(s=xt())!==o)for(;s!==o;)c.push(s),s=xt();else c=o;c!==o&&(s=Dt())!==o?(125===t.charCodeAt(gt)?(w=f,gt++):(w=o,0===bt&&At(p)),w!==o?e=r=b(n,c):(gt=e,e=o)):(gt=e,e=o)}else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;return e}())===o&&(e=function(){var e,r,n,i,a,u,c,s,v,m,y;if(e=gt,123===t.charCodeAt(gt)?(r=l,gt++):(r=o,0===bt&&At(h)),r!==o)if(Dt()!==o)if((n=_t())!==o)if(Dt()!==o)if(44===t.charCodeAt(gt)?(i=d,gt++):(i=o,0===bt&&At(g)),i!==o)if(Dt()!==o)if(t.substr(gt,6)===w?(u=w,gt+=6):(u=o,0===bt&&At(O)),u===o&&(t.substr(gt,13)===j?(u=j,gt+=13):(u=o,0===bt&&At(S))),u!==o&&(u=function(t,e){return Mt.unshift(!0),e}(0,u)),(a=u)!==o)if((u=Dt())!==o)if(44===t.charCodeAt(gt)?(c=d,gt++):(c=o,0===bt&&At(g)),c!==o)if(Dt()!==o)if((s=function(){var e,r,n,i;return bt++,e=gt,Dt()!==o?(t.substr(gt,6)===P?(r=P,gt+=6):(r=o,0===bt&&At(E)),r!==o&&Dt()!==o?(58===t.charCodeAt(gt)?(n=":",gt++):(n=o,0===bt&&At(T)),n!==o&&Dt()!==o&&(i=Nt())!==o&&Dt()!==o?e=i:(gt=e,e=o)):(gt=e,e=o)):(gt=e,e=o),bt--,e===o&&0===bt&&At(x),e}())===o&&(s=null),s!==o){if(v=[],(m=Pt())!==o)for(;m!==o;)v.push(m),m=Pt();else v=o;v!==o&&(m=Dt())!==o?(125===t.charCodeAt(gt)?(y=f,gt++):(y=o,0===bt&&At(p)),y!==o?e=r=C(n,a,s,v):(gt=e,e=o)):(gt=e,e=o)}else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;else gt=e,e=o;return e}())===o&&(e=function(){var e,r,n,i,a,u,c;return e=gt,123===t.charCodeAt(gt)?(r=l,gt++):(r=o,0===bt&&At(h)),r!==o&&Dt()!==o&&(n=_t())!==o&&Dt()!==o?(44===t.charCodeAt(gt)?(i=d,gt++):(i=o,0===bt&&At(g)),i!==o&&Dt()!==o&&(a=function(){var e,r,n,i,a;return t.substr(gt,6)===I?(e=I,gt+=6):(e=o,0===bt&&At(L)),e===o&&(t.substr(gt,4)===N?(e=N,gt+=4):(e=o,0===bt&&At(D)),e===o&&(t.substr(gt,4)===M?(e=M,gt+=4):(e=o,0===bt&&At(F)),e===o&&(t.substr(gt,8)===z?(e=z,gt+=8):(e=o,0===bt&&At(q)),e===o&&(t.substr(gt,7)===H?(e=H,gt+=7):(e=o,0===bt&&At(G)),e===o&&(t.substr(gt,8)===W?(e=W,gt+=8):(e=o,0===bt&&At(B)),e===o&&(e=gt,r=gt,bt++,t.substr(gt,6)===v?(n=v,gt+=6):(n=o,0===bt&&At(m)),bt--,n===o?r=void 0:(gt=r,r=o),r!==o?(n=gt,bt++,t.substr(gt,6)===w?(i=w,gt+=6):(i=o,0===bt&&At(O)),bt--,i===o?n=void 0:(gt=n,n=o),n!==o?(i=gt,bt++,t.substr(gt,13)===j?(a=j,gt+=13):(a=o,0===bt&&At(S)),bt--,a===o?i=void 0:(gt=i,i=o),i!==o&&(a=_t())!==o&&(V(a)?void 0:o)!==o?e=r=a:(gt=e,e=o)):(gt=e,e=o)):(gt=e,e=o))))))),e}())!==o&&Dt()!==o?((u=function(){var e,r,n,i;if(e=gt,Dt()!==o)if(44===t.charCodeAt(gt)?(r=d,gt++):(r=o,0===bt&&At(g)),r!==o){for(n=[],i=Rt();i!==o;)n.push(i),i=Rt();n!==o&&(i=(i=Q())?void 0:o)!==o?e=function(t){return{tokens:t}}(n):(gt=e,e=o)}else gt=e,e=o;else gt=e,e=o;if(e===o)if(e=gt,Dt()!==o)if(44===t.charCodeAt(gt)?(r=d,gt++):(r=o,0===bt&&At(g)),r!==o){for(n=[],i=Tt();i!==o;)n.push(i),i=Tt();n!==o?e=function(t){return{tokens:[t.join("")]}}(n):(gt=e,e=o)}else gt=e,e=o;else gt=e,e=o;return e}())===o&&(u=null),u!==o?(125===t.charCodeAt(gt)?(c=f,gt++):(c=o,0===bt&&At(p)),c!==o?e=r=function(t,e,r){return{type:"function",arg:t,key:e,param:r}}(n,a,u):(gt=e,e=o)):(gt=e,e=o)):(gt=e,e=o)):(gt=e,e=o),e}())===o&&(e=gt,35===t.charCodeAt(gt)?(r="#",gt++):(r=o,0===bt&&At(u)),r!==o&&(n=(n=c())?void 0:o)!==o?e=r={type:"octothorpe"}:(gt=e,e=o),e===o)){if(e=gt,r=[],(n=Lt())!==o)for(;n!==o;)r.push(n),n=Lt();else r=o;r!==o&&(r=s(r)),e=r}return e}function _t(){var e,r,n;if(bt++,e=gt,r=[],k.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(R)),n!==o)for(;n!==o;)r.push(n),k.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(R));else r=o;return e=r!==o?t.substring(e,gt):r,bt--,e===o&&(r=o,0===bt&&At(A)),e}function xt(){var t,e,r;return t=gt,Dt()!==o&&(e=_t())!==o&&Dt()!==o&&(r=Et())!==o?t=_(e,r):(gt=t,t=o),t}function Pt(){var e,r,n;return e=gt,Dt()!==o&&(r=function(){var e,r,n;return(e=_t())===o&&(e=gt,61===t.charCodeAt(gt)?(r="=",gt++):(r=o,0===bt&&At(U)),r!==o&&(n=Nt())!==o?e=r=n:(gt=e,e=o)),e}())!==o&&Dt()!==o&&(n=Et())!==o?e=_(r,n):(gt=e,e=o),e}function Et(){var e,r,n,i,a,u;if(e=gt,123===t.charCodeAt(gt)?(r=l,gt++):(r=o,0===bt&&At(h)),r!==o)if(n=gt,(i=Dt())!==o?(a=gt,bt++,123===t.charCodeAt(gt)?(u=l,gt++):(u=o,0===bt&&At(h)),bt--,u!==o?(gt=a,a=void 0):a=o,a!==o?n=i=[i,a]:(gt=n,n=o)):(gt=n,n=o),n===o&&(n=null),n!==o){for(i=[],a=Rt();a!==o;)i.push(a),a=Rt();i!==o&&(a=Dt())!==o?(125===t.charCodeAt(gt)?(u=f,gt++):(u=o,0===bt&&At(p)),u!==o?e=r=i:(gt=e,e=o)):(gt=e,e=o)}else gt=e,e=o;else gt=e,e=o;return e}function Tt(){var e,r,n,i;if(bt++,e=gt,r=[],J.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(Z)),n!==o)for(;n!==o;)r.push(n),J.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(Z));else r=o;if(r!==o&&(r=function(t){return t.join("")}(r)),(e=r)===o&&(e=Ut())===o&&(e=gt,39===t.charCodeAt(gt)?(r="'",gt++):(r=o,0===bt&&At($)),r!==o&&(n=It())!==o?(39===t.charCodeAt(gt)?(i="'",gt++):(i=o,0===bt&&At($)),i!==o?e=r=n:(gt=e,e=o)):(gt=e,e=o),e===o))if(e=gt,123===t.charCodeAt(gt)?(r=l,gt++):(r=o,0===bt&&At(h)),r!==o){for(n=[],i=Tt();i!==o;)n.push(i),i=Tt();n!==o?(125===t.charCodeAt(gt)?(i=f,gt++):(i=o,0===bt&&At(p)),i!==o?e=r=function(t){return"{"+t.join("")+"}"}(n):(gt=e,e=o)):(gt=e,e=o)}else gt=e,e=o;return bt--,e===o&&(r=o,0===bt&&At(Y)),e}function Ut(){var e,r;return bt++,"''"===t.substr(gt,2)?(r="''",gt+=2):(r=o,0===bt&&At(X)),r!==o&&(r="'"),bt--,(e=r)===o&&(r=o,0===bt&&At(K)),e}function It(){var e,r,n;if((e=Ut())===o){if(e=gt,r=[],tt.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(et)),n!==o)for(;n!==o;)r.push(n),tt.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(et));else r=o;r!==o&&(r=s(r)),e=r}return e}function Lt(){var e,r;return(e=Ut())===o&&(e=function(){var e,r,n,i,a,u;if(bt++,(e=function(){var e,r,n,i;if(e=gt,"'{"===t.substr(gt,2)?(r="'{",gt+=2):(r=o,0===bt&&At(rt)),r!==o){for(n=[],i=It();i!==o;)n.push(i),i=It();n!==o?(39===t.charCodeAt(gt)?(i="'",gt++):(i=o,0===bt&&At($)),i!==o?e=r=function(t){return"{"+t.join("")}(n):(gt=e,e=o)):(gt=e,e=o)}else gt=e,e=o;if(e===o)if(e=gt,"'}"===t.substr(gt,2)?(r="'}",gt+=2):(r=o,0===bt&&At(nt)),r!==o){for(n=[],i=It();i!==o;)n.push(i),i=It();n!==o?(39===t.charCodeAt(gt)?(i="'",gt++):(i=o,0===bt&&At($)),i!==o?e=r=function(t){return"}"+t.join("")}(n):(gt=e,e=o)):(gt=e,e=o)}else gt=e,e=o;return e}())===o){if(e=gt,r=gt,n=gt,"'#"===t.substr(gt,2)?(i="'#",gt+=2):(i=o,0===bt&&At(it)),i!==o){for(a=[],u=It();u!==o;)a.push(u),u=It();a!==o?(39===t.charCodeAt(gt)?(u="'",gt++):(u=o,0===bt&&At($)),u!==o?n=i=function(t){return"#"+t.join("")}(a):(gt=n,n=o)):(gt=n,n=o)}else gt=n,n=o;n!==o&&(i=(i=c())?void 0:o)!==o?r=n=[n,i]:(gt=r,r=o),r!==o&&(r=function(t){return t[0]}(r)),(e=r)===o&&(39===t.charCodeAt(gt)?(e="'",gt++):(e=o,0===bt&&At($)))}return bt--,e===o&&(r=o,0===bt&&At(ot)),e}())===o&&(e=gt,35===t.charCodeAt(gt)?(r="#",gt++):(r=o,0===bt&&At(u)),r!==o&&(Mt[0]?o:void 0)!==o?e=r=r:(gt=e,e=o),e===o&&(e=function(){var e;return bt++,ut.test(t.charAt(gt))?(e=t.charAt(gt),gt++):(e=o,0===bt&&At(ct)),bt--,e===o&&0===bt&&At(at),e}())),e}function Nt(){var e,r,n;if(bt++,e=gt,r=[],lt.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(ht)),n!==o)for(;n!==o;)r.push(n),lt.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(ht));else r=o;return e=r!==o?t.substring(e,gt):r,bt--,e===o&&(r=o,0===bt&&At(st)),e}function Dt(){var e,r,n;for(bt++,e=gt,r=[],pt.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(dt));n!==o;)r.push(n),pt.test(t.charAt(gt))?(n=t.charAt(gt),gt++):(n=o,0===bt&&At(dt));return e=r!==o?t.substring(e,gt):r,bt--,e===o&&(r=o,0===bt&&At(ft)),e}var Mt=[!1];if((r=a())!==o&&gt===t.length)return r;throw r!==o&&gt<t.length&&At({type:"end"}),function(t,e,r){return new n(n.buildMessage(t,e),t,e,r)}(yt,mt<t.length?t.charAt(mt):null,mt<t.length?Ct(mt,mt+1):Ct(mt,mt))}}},function(t,e,r){var n,o,i=[{cardinal:["other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["one","other"]},{cardinal:["one","two","other"],ordinal:["other"]}];void 0===(o="function"==typeof(n={af:i[1],ak:i[1],am:i[1],ar:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},ars:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},as:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},asa:i[1],ast:i[1],az:{cardinal:["one","other"],ordinal:["one","few","many","other"]},be:{cardinal:["one","few","many","other"],ordinal:["few","other"]},bem:i[1],bez:i[1],bg:i[1],bh:i[1],bm:i[0],bn:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},bo:i[0],br:{cardinal:["one","two","few","many","other"],ordinal:["other"]},brx:i[1],bs:{cardinal:["one","few","other"],ordinal:["other"]},ca:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:{cardinal:["one","few","many","other"],ordinal:["other"]},cy:{cardinal:["zero","one","two","few","many","other"],ordinal:["zero","one","two","few","many","other"]},da:i[1],de:i[1],dsb:{cardinal:["one","two","few","other"],ordinal:["other"]},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:{cardinal:["one","other"],ordinal:["one","two","few","other"]},eo:i[1],es:i[1],et:i[1],eu:i[1],fa:i[1],ff:i[1],fi:i[1],fil:i[2],fo:i[1],fr:i[2],fur:i[1],fy:i[1],ga:{cardinal:["one","two","few","many","other"],ordinal:["one","other"]},gd:{cardinal:["one","two","few","other"],ordinal:["one","two","few","other"]},gl:i[1],gsw:i[1],gu:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},guw:i[1],gv:{cardinal:["one","two","few","many","other"],ordinal:["other"]},ha:i[1],haw:i[1],he:{cardinal:["one","two","many","other"],ordinal:["other"]},hi:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},hr:{cardinal:["one","few","other"],ordinal:["other"]},hsb:{cardinal:["one","two","few","other"],ordinal:["other"]},hu:i[2],hy:i[2],ia:i[1],id:i[0],ig:i[0],ii:i[0],in:i[0],io:i[1],is:i[1],it:{cardinal:["one","other"],ordinal:["many","other"]},iu:i[3],iw:{cardinal:["one","two","many","other"],ordinal:["other"]},ja:i[0],jbo:i[0],jgo:i[1],ji:i[1],jmc:i[1],jv:i[0],jw:i[0],ka:{cardinal:["one","other"],ordinal:["one","many","other"]},kab:i[1],kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:{cardinal:["one","other"],ordinal:["many","other"]},kkj:i[1],kl:i[1],km:i[0],kn:i[1],ko:i[0],ks:i[1],ksb:i[1],ksh:{cardinal:["zero","one","other"],ordinal:["other"]},ku:i[1],kw:i[3],ky:i[1],lag:{cardinal:["zero","one","other"],ordinal:["other"]},lb:i[1],lg:i[1],lkt:i[0],ln:i[1],lo:{cardinal:["other"],ordinal:["one","other"]},lt:{cardinal:["one","few","many","other"],ordinal:["other"]},lv:{cardinal:["zero","one","other"],ordinal:["other"]},mas:i[1],mg:i[1],mgo:i[1],mk:{cardinal:["one","other"],ordinal:["one","two","many","other"]},ml:i[1],mn:i[1],mo:{cardinal:["one","few","other"],ordinal:["one","other"]},mr:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ms:{cardinal:["other"],ordinal:["one","other"]},mt:{cardinal:["one","few","many","other"],ordinal:["other"]},my:i[0],nah:i[1],naq:i[3],nb:i[1],nd:i[1],ne:i[2],nl:i[1],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[1],ny:i[1],nyn:i[1],om:i[1],or:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},os:i[1],pa:i[1],pap:i[1],pl:{cardinal:["one","few","many","other"],ordinal:["other"]},prg:{cardinal:["zero","one","other"],ordinal:["other"]},ps:i[1],pt:i[1],"pt-PT":i[1],rm:i[1],ro:{cardinal:["one","few","other"],ordinal:["one","other"]},rof:i[1],root:i[0],ru:{cardinal:["one","few","many","other"],ordinal:["other"]},rwk:i[1],sah:i[0],saq:i[1],sc:{cardinal:["one","other"],ordinal:["many","other"]},scn:{cardinal:["one","other"],ordinal:["many","other"]},sd:i[1],sdh:i[1],se:i[3],seh:i[1],ses:i[0],sg:i[0],sh:{cardinal:["one","few","other"],ordinal:["other"]},shi:{cardinal:["one","few","other"],ordinal:["other"]},si:i[1],sk:{cardinal:["one","few","many","other"],ordinal:["other"]},sl:{cardinal:["one","two","few","other"],ordinal:["other"]},sma:i[3],smi:i[3],smj:i[3],smn:i[3],sms:i[3],sn:i[1],so:i[1],sq:{cardinal:["one","other"],ordinal:["one","many","other"]},sr:{cardinal:["one","few","other"],ordinal:["other"]},ss:i[1],ssy:i[1],st:i[1],sv:i[2],sw:i[1],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[1],tig:i[1],tk:{cardinal:["one","other"],ordinal:["few","other"]},tl:i[2],tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:i[1],ug:i[1],uk:{cardinal:["one","few","many","other"],ordinal:["few","other"]},ur:i[1],uz:i[1],ve:i[1],vi:{cardinal:["other"],ordinal:["one","other"]},vo:i[1],vun:i[1],wa:i[1],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[1],yo:i[0],yue:i[0],zh:i[0],zu:i[1]})?n.call(e,r,e,t):n)||(t.exports=o)},function(t,e){function r(t,e,r){var n={day:"numeric",month:"short",year:"numeric"};switch(r){case"full":n.weekday="long";case"long":n.month="long";break;case"short":n.month="numeric"}return new Date(t).toLocaleDateString(e,n)}t.exports=function(){return r}},function(t,e){function r(t){if(!isFinite(t))return String(t);var e="";t<0?(e="-",t=Math.abs(t)):t=Number(t);var r=t%60,n=[Math.round(r)===r?r:r.toFixed(3)];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.shift()+":"+n.map((function(t){return t<10?"0"+String(t):String(t)})).join(":")}t.exports=function(){return r}},function(t,e){t.exports=function(t){var e=function(t,e,r){var n=r&&r.split(":")||[],o={integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:n[1]&&n[1].trim()||CURRENCY,minimumFractionDigits:2,maximumFractionDigits:2}};return new Intl.NumberFormat(e,o[n[0]]||{}).format(t)}.toString().replace("CURRENCY",JSON.stringify(t.currency||"USD")).match(/\(([^)]*)\)[^{]*{([\s\S]*)}/);return new Function(e[1],e[2])}},function(t,e){function r(t,e,r){var n={second:"numeric",minute:"numeric",hour:"numeric"};switch(r){case"full":case"long":n.timeZoneName="short";break;case"short":delete n.second}return new Date(t).toLocaleTimeString(e,n)}t.exports=function(){return r}},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r.n(n),i=r(2),a={break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},u={debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0};function c(t,e){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(t)&&!a[t])return e?"".concat(e,".").concat(t):t;var r=JSON.stringify(t);return e?e+"[".concat(r,"]"):r}function s(t){var e=t.trim().replace(/\W+/g,"_");return a[e]||u[e]||/^\d/.test(e)?"_"+e:e}var l=new RegExp("^"+["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"].join("|^"));function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.mf=e,this.lc=null,this.locales={},this.runtime={},this.formatters={}}var e,r;return e=t,(r=[{key:"compile",value:function(t,e,r){var n=this;if("object"!=h(t)){this.lc=e;var o=r[e]||{cardinal:[],ordinal:[]};o.strict=!!this.mf.options.strictNumberSign;var a=Object(i.parse)(t,o).map((function(t){return n.token(t)}));return"function(d) { return ".concat(a.join(" + ")||'""',"; }")}var u={};for(var c in t){var s=r.hasOwnProperty(c)?c:e;u[c]=this.compile(t[c],s,r)}return u}},{key:"cases",value:function(t,e){var r=this,n="select"===t.type||!this.mf.hasCustomPluralFuncs,o=t.cases.map((function(t){var o=t.key,i=t.tokens;"other"===o&&(n=!1);var a=i.map((function(t){return r.token(t,e)}));return c(o)+": "+(a.join(" + ")||'""')}));if(n)throw new Error("No 'other' form found in "+JSON.stringify(t));return"{ ".concat(o.join(", ")," }")}},{key:"token",value:function(t,e){var r,n=this;if("string"==typeof t)return JSON.stringify(t);var o,i,a,u,h=[c(t.arg,"d")];switch(t.type){case"argument":return this.mf.options.biDiSupport?(o=h[0],i=this.lc,a=l.test(i),u=JSON.stringify(a?"‏":"‎"),"".concat(u," + ").concat(o," + ").concat(u)):h[0];case"select":r="select",e&&this.mf.options.strictNumberSign&&(e=null),h.push(this.cases(t,e)),this.runtime.select=!0;break;case"selectordinal":r="plural",h.push(0,s(this.lc),this.cases(t,t),1),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"plural":r="plural",h.push(t.offset||0,s(this.lc),this.cases(t,t)),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"function":if(!(t.key in this.mf.fmt)&&t.key in this.mf.constructor.formatters){var f=this.mf.constructor.formatters[t.key];this.mf.fmt[t.key]=f(this.mf)}if(!this.mf.fmt[t.key])throw new Error("Formatting function ".concat(JSON.stringify(t.key)," not found!"));if(h.push(JSON.stringify(this.lc)),t.param){e&&this.mf.options.strictNumberSign&&(e=null);var p=t.param.tokens.map((function(t){return n.token(t,e)}));h.push("("+(p.join(" + ")||'""')+").trim()")}r=c(t.key,"fmt"),this.formatters[t.key]=!0;break;case"octothorpe":if(!e)return'"#"';r="number",h=[c(e.arg,"d"),JSON.stringify(e.arg)],e.offset&&h.push(e.offset),this.runtime.number=!0}if(!r)throw new Error("Parser error for token "+JSON.stringify(t));return"".concat(r,"(").concat(h.join(", "),")")}}])&&f(e.prototype,r),t}(),d=r(3),g=r.n(d),v=r(0),m=r.n(v);function y(t,e,r){var n=function(){return e.apply(this,arguments)};if(n.toString=function(){return e.toString()},r){var o=g.a[t]||{};n.cardinal=o.cardinal,n.ordinal=o.ordinal}else n.cardinal=[],n.ordinal=[];return n}function b(t,e){for(var r=e.pluralKeyChecks,n=String(t);n;n=n.replace(/[-_]?[^-_]*$/,"")){var o=m.a[n];if(o)return y(n,o,r)}throw new Error("Localisation function not found for locale "+JSON.stringify(t))}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var j=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.plural=function(t,e,r,n,o){if({}.hasOwnProperty.call(n,t))return n[t];e&&(t-=e);var i=r(t,o);return i in n?n[i]:n.other},this.select=function(t,e){return{}.hasOwnProperty.call(e,t)?e[t]:e.other},this.mf=e,this.setStrictNumber(e.options.strictNumberSign)}var e,r;return e=t,(r=[{key:"setStrictNumber",value:function(e){this.number=e?t.strictNumber:t.defaultNumber}},{key:"toString",value:function(t,e){for(var r={},n=Object.keys(e.locales),o=0;o<n.length;++o){var i=n[o];r[s(i)]=t[i]}for(var a=Object.keys(e.runtime),u=0;u<a.length;++u){var l=a[u];r[l]=this[l]}var h=Object.keys(e.formatters);if(h.length>0){r.fmt={};for(var f=0;f<h.length;++f){var p=h[f];r.fmt[p]=this.mf.fmt[p]}}return function t(e,r){if("object"!=w(e)){var n=e.toString().replace(/^(function )\w*/,"$1"),o=/([ \t]*)\S.*$/.exec(n);return o?n.replace(new RegExp("^"+o[1],"mg"),""):n}var i=[];for(var a in e){var u=t(e[a],r+1);i.push(0===r?"var ".concat(a," = ").concat(u,";\n"):"".concat(c(a),": ").concat(u))}if(0===r)return i.join("");if(0===i.length)return"{}";for(var s=" ";--r;)s+=" ";var l=i.join(",\n").replace(/^/gm,s);return"{\n".concat(l,"\n}")}(r,0)}}])&&O(e.prototype,r),t}();function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function A(t,e,r){return e&&C(t.prototype,e),r&&C(t,r),t}j.defaultNumber=function(t,e,r){if(!r)return t;if(isNaN(t))throw new Error("Can't apply offset:"+r+" to argument `"+e+"` with non-numerical value "+JSON.stringify(t)+".");return t-r},j.strictNumber=function(t,e,r){if(isNaN(t))throw new Error("Argument `"+e+"` has non-numerical value "+JSON.stringify(t)+".");return t-(r||0)},r.d(e,"default",(function(){return k}));var k=function(){function t(e,r){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=Object.assign({biDiSupport:!1,customFormatters:null,pluralKeyChecks:!0,strictNumberSign:!1},r),this.pluralFuncs={},"string"==typeof e)this.pluralFuncs[e]=b(e,this.options),this.defaultLocale=e;else if(Array.isArray(e))e.forEach((function(t){n.pluralFuncs[t]=b(t,n.options)})),this.defaultLocale=e[0];else{if(e)for(var o=Object.keys(e),i=0;i<o.length;++i){var a=o[i];if("function"!=typeof e[a]){var u="Expected function value for locale "+String(a);throw new Error(u)}this.pluralFuncs[a]=e[a],this.defaultLocale||(this.defaultLocale=a)}this.defaultLocale?this.hasCustomPluralFuncs=!0:(this.defaultLocale=t.defaultLocale,this.hasCustomPluralFuncs=!1)}this.fmt=Object.assign({},this.options.customFormatters),this.runtime=new j(this)}return A(t,null,[{key:"escape",value:function(t,e){var r=e?/[#{}]/g:/[{}]/g;return String(t).replace(r,"'$&'")}}]),A(t,[{key:"addFormatters",value:function(t){for(var e=Object.keys(t),r=0;r<e.length;++r){var n=e[r];this.fmt[n]=t[n]}return this}},{key:"disablePluralKeyChecks",value:function(){for(var t in this.options.pluralKeyChecks=!1,this.pluralFuncs){var e=this.pluralFuncs[t];e&&(e.cardinal=[],e.ordinal=[])}return this}},{key:"setBiDiSupport",value:function(t){return this.options.biDiSupport=!!t||void 0===t,this}},{key:"setStrictNumberSign",value:function(t){return this.options.strictNumberSign=!!t||void 0===t,this.runtime.setStrictNumber(this.options.strictNumberSign),this}},{key:"compile",value:function(t,e){var r={};if(0===Object.keys(this.pluralFuncs).length)if(e){var n=b(e,this.options);if(!n){var o=JSON.stringify(e);throw new Error("Locale ".concat(o," not found!"))}r[e]=n}else e=this.defaultLocale,r=function(t){for(var e=t.pluralKeyChecks,r={},n=Object.keys(m.a),o=0;o<n.length;++o){var i=n[o];r[i]=y(i,m.a[i],e)}return r}(this.options);else if(e){var i=this.pluralFuncs[e];if(!i){var a=JSON.stringify(e),u=JSON.stringify(this.pluralFuncs);throw new Error("Locale ".concat(a," not found in ").concat(u,"!"))}r[e]=i}else e=this.defaultLocale,r=this.pluralFuncs;var l=new p(this),h=l.compile(t,e,r);if("object"!=S(t)){var f=new Function("number, plural, select, fmt",s(e),"return "+h),d=this.runtime;return f(d.number,d.plural,d.select,this.fmt,r[e])}var g=this.runtime.toString(r,l)+"\n",v=function t(e,r){if(r||(r=0),"object"!=S(e))return e;for(var n="",o=0;o<r;++o)n+=" ";var i=[];for(var a in e){var u=t(e[a],r+1);i.push("\n".concat(n," ").concat(c(a),": ").concat(u))}return"{".concat(i.join(","),"\n").concat(n,"}")}(h),w=new Function(g+"return "+v)();if(w.hasOwnProperty("toString"))throw new Error("The top-level message key `toString` is reserved");return w.toString=function(t){return t&&"export default"!==t?t.indexOf(".")>-1?g+t+" = "+v:g+["(function (root, G) {",' if (typeof define === "function" && define.amd) { define(G); }',' else if (typeof exports === "object") { module.exports = G; }'," else { "+c(t,"root")+" = G; }","})(this, "+v+");"].join("\n"):g+"export default "+v},w}}]),t}();k.defaultLocale="en",k.formatters=o.a}]).default}}]);