This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
12-es5.08565684c8b10f92f402.js
1 lines (1 loc) · 40.9 KB
/
12-es5.08565684c8b10f92f402.js
1
function _defineProperties(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{mshI:function(e,t,n){"use strict";n.r(t);var l,o,a=n("8Y7J"),c=n("0qEG"),i=function e(){_classCallCheck(this,e),this.item={cols:1,urls:{"zh-CN":"packages/cache/docs/getting-started.md"},content:{"zh-CN":{content:'<section class="markdown"><article><h2 id="\u5199\u5728\u524d\u9762">\u5199\u5728\u524d\u9762<a onclick="window.location.hash = \'\u5199\u5728\u524d\u9762\'" class="anchor">#</a></h2><p>\u901a\u5e38\u628a\u4e00\u4e9b\u8fdc\u7a0b\u6570\u636e\u7f13\u5b58\u5728\u5185\u5b58\u6216 <code>localStorage</code> \u6301\u4e45\u5316\uff0c\u76ee\u7684\u662f\u4e3a\u4e86\u51cf\u5c11 Http \u8bf7\u6c42\u7684\u6210\u672c\uff1b\u8fd9\u6837\u7684\u6570\u636e\u901a\u5e38\u662f\u5b57\u5178\u3001\u57ce\u5e02\u6570\u636e\u7b49\u3002</p><p>\u7f13\u5b58\u7684\u83b7\u53d6\u5e94\u8be5\u662f\u975e\u5e38\u7b80\u5355\u7684\uff0c\u6211\u4eec\u4e0d\u5e94\u8be5\u628a\u65f6\u95f4\u6d6a\u8d39\u5728\u5982\u4f55\u4fdd\u8bc1\u52a0\u8f7d\u8fd9\u4ef6\u4e8b\u60c5\u4e0a\uff0c\u56e0\u6b64 <code>@delon/cache</code> \u66f4\u591a\u662f\u4ee5<strong>\u7ea6\u5b9a</strong>\u4e3a\u524d\u63d0\u3002<code>key</code> \u4f5c\u4e3a\u7f13\u5b58\u7684\u552f\u4e00\u952e\u503c\uff0c\u5b83\u4e0d\u5e94\u8be5\u53ea\u662f\u5355\u7eaf\u7684\u4e00\u4e2a\u6807\u8bc6\u7b26\uff0c\u5982\u679c\u9075\u5b88\u67d0\u79cd\u7ea6\u5b9a\u5b83\u7684\u5b58\u5728\u4f1a\u66f4\u6709\u4ef7\u503c\u3002<code>@delon/cache</code> \u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e0d\u5149\u628a <code>key</code> \u5f53\u4f5c\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u540c\u65f6\u5b83\u8fd8\u662f\u4e00\u4e2a\u7528\u4e8e\u83b7\u53d6\u8fdc\u7a0b\u6570\u636e\u7684\u6709\u6548HTTP\uff0c\u4f8b\u5982\uff1a</p><pre class="hljs language-ts"><code>cacheService.get(\'/data/unit\');</code></pre><p>\u5728\u4ee5\u5f80\u6211\u4eec\u4f1a\u8ba4\u4e3a\uff0c\u5728\u5b83\u4e4b\u524d\u5e94\u8be5\u9700\u8981\u52a0\u4e00\u4e2a\uff1a</p><pre class="hljs language-ts"><code>cacheService.set(\'/data/unit\', [ \'\u4e2a\', \'\u4ef6\' ]);</code></pre><p>\u624d\u80fd\u591f\u786e\u4fdd\u83b7\u53d6\u5230\u7f13\u5b58\u6570\u636e\u3002</p><p>\u800c\u5bf9\u4e8e <code>@delon/cache</code> \u800c\u8a00\uff0c\u4f60\u65e0\u987b <code>set</code> \u65b9\u6cd5\uff0c\u76f4\u63a5\u4f7f\u7528 <code>get</code> \u83b7\u53d6\u5230\u5355\u4f4d\u5b57\u5178\uff0c\u56e0\u4e3a\u6211\u4eec\u6709\u4e00\u79cd<strong>\u7ea6\u5b9a</strong>\uff0c\u5f53\u7f13\u5b58\u4e0d\u5b58\u5728\u900f\u8fc7 <code>key</code> \u4f5c\u4e3aHTTP\u8bf7\u6c42\u6570\u636e\u7f13\u5b58\u540e\u518d\u8fd4\u56de\u3002</p><p>\u7f13\u5b58\u7684\u83b7\u53d6\u4e0e\u8bbe\u7f6e\u90fd\u662f\u901a\u8fc7 <a href="/cache/service" data-url="/cache/service">CacheService</a> \u6765\u64cd\u4f5c\uff0c\u4f60\u53ea\u9700\u8981\u5c06 <code>CacheService</code> \u5bfc\u5165\u5bf9\u5e94\u7684\u7c7b\u5f53\u4e2d\u5373\u53ef\u3002</p><h2 id="\u5982\u4f55\u4f7f\u7528">\u5982\u4f55\u4f7f\u7528<a onclick="window.location.hash = \'\u5982\u4f55\u4f7f\u7528\'" class="anchor">#</a></h2><p><strong>\u5b89\u88c5</strong></p><pre class="hljs language-bash"><code>yarn add @delon/cache</code></pre><p><strong>\u6ce8\u518c</strong></p><p>\u5728\u6839\u6a21\u5757 <code>AppModule</code> \u5bfc\u5165 <code>DelonCacheModule</code>\uff1b</p><pre class="hljs language-ts"><code>import { DelonCacheModule } from \'@delon/cache\';\n\n@NgModule({\n imports: [\n DelonCacheModule\n ]\n})</code></pre><p><strong>\u6ce8</strong> \u5efa\u8bae\u5728\u6839\u6a21\u5757\u4e2d\u5bfc\u5165\uff0c\u56e0\u4e3a\u5b83\u53ea\u6709 Service \u4e3a\u4e86\u9632\u6b62\u91cd\u590d\u88ab\u5bfc\u5165\u3002</p><h3 id="DelonCacheConfig">DelonCacheConfig<a onclick="window.location.hash = \'DelonCacheConfig\'" class="anchor">#</a></h3><table><thead><tr><th>\u53c2\u6570\u540d</th><th>\u7c7b\u578b</th><th>\u9ed8\u8ba4\u503c</th><th>\u63cf\u8ff0</th></tr></thead><tbody><tr><td><code>[mode]</code></td><td><code>promise,none</code></td><td><code>promise</code></td><td>\u7f13\u5b58\u6a21\u5f0f\uff1b<code>promise</code> \u7ea6\u5b9a\u6a21\u5f0f\uff0c\u5141\u8bb8 <code>key</code> \u4f5c\u4e3a http \u83b7\u53d6\u6570\u636e\uff1b<code>none</code> \u6b63\u5e38\u6a21\u5f0f</td></tr><tr><td><code>[reName]</code></td><td><code>string</code></td><td>-</td><td>\u91cd\u547d\u540d\u8fd4\u56de\u53c2\u6570\uff0c\u4f8b\u5982\uff1a<br> <code>null</code> \u8fd4\u56de\u4f53\u4e3a\u5185\u5bb9<br><code>list</code> \u8fd4\u56de\u4f53\u5e94 <code>{ list: [] }</code><br><code>result.list</code> \u8fd4\u56de\u4f53\u5e94 <code>{ result: { list: [] } }</code></td></tr><tr><td><code>[expire]</code></td><td><code>number</code></td><td>-</td><td>\u8bbe\u7f6e\u9ed8\u8ba4\u8fc7\u671f\u65f6\u95f4\u503c\uff08\u5355\u4f4d\uff1a\u79d2\uff09</td></tr><tr><td><code>[prefix]</code></td><td><code>string</code></td><td>-</td><td>\u6301\u4e45\u5316\u6570\u636e\u952e\u503c\u524d\u7f00</td></tr><tr><td><code>[meta_key]</code></td><td><code>string</code></td><td><code>__cache_meta</code></td><td>\u6301\u4e45\u5316\u6570\u636e\u5143\u6570\u636e\u5b58\u50a8\u952e\u540d</td></tr></tbody></table></article></section>',meta:{order:1,title:"\u5f00\u59cb\u4f7f\u7528",type:"Documents",module:"DelonCacheModule",config:"DelonCacheConfig"},toc:[{id:"\u5199\u5728\u524d\u9762",title:"\u5199\u5728\u524d\u9762",h:2},{id:"\u5982\u4f55\u4f7f\u7528",title:"\u5982\u4f55\u4f7f\u7528",h:2},{id:"DelonCacheConfig",title:"DelonCacheConfig",h:3}]}},demo:!0},this.codes=[{id:"cache-getting-started-simple",meta:{title:{"zh-CN":"\u57fa\u7840\u6837\u4f8b","en-US":"Basic Usage"},order:0},summary:{"zh-CN":"<p>\u6700\u7b80\u5355\u7684\u7528\u6cd5\u3002</p>","en-US":"<p>Simplest of usage.</p>"},code:'import { Component, OnDestroy } from \'@angular/core\';\nimport { CacheService } from \'@delon/cache\';\nimport { NzMessageService } from \'ng-zorro-antd/message\';\nimport { Subscription } from \'rxjs\';\n\n@Component({\n selector: \'cache-getting-started-simple\',\n template: `\n <p>value: {{ value | json }}</p>\n <div class="pt-sm">\n Basic:\n <button nz-button (click)="srv.set(key, newValue)">Set</button>\n <button nz-button (click)="value = srv.getNone(key)">Get</button>\n <button nz-button (click)="srv.remove(key)">Remove</button>\n <button nz-button (click)="srv.clear()">Clear</button>\n </div>\n <div class="pt-sm">\n Key is valid request:\n <button nz-button (click)="getByHttp()">Get</button>\n </div>\n <div class="pt-sm">\n Notify:\n <button nz-button (click)="registerNotify()">Register</button>\n <button nz-button (click)="unRegisterNotify()">UnRegister</button>\n </div>\n `,\n})\nexport class CacheGettingStartedSimpleComponent implements OnDestroy {\n value: any;\n key = \'demo\';\n private notify$: Subscription;\n\n get newValue() {\n return +new Date();\n }\n\n constructor(public srv: CacheService, private msg: NzMessageService) {}\n\n getByHttp() {\n this.srv.get(`https://randomuser.me/api/?results=1`).subscribe(res => {\n this.value = res;\n });\n }\n\n registerNotify() {\n if (this.notify$) this.notify$.unsubscribe();\n this.notify$ = this.srv.notify(this.key).subscribe(res => {\n if (res == null) {\n this.msg.success(\'register success\');\n return;\n }\n this.msg.warning(`"${this.key}" new status: ${res.type}`);\n });\n }\n\n unRegisterNotify() {\n this.srv.cancelNotify(this.key);\n }\n\n ngOnDestroy() {\n if (this.notify$) this.notify$.unsubscribe();\n }\n}',name:"simple",urls:"packages/cache/docs/demo/simple.md",type:"demo",lang:"ts",componentName:"CacheGettingStartedSimpleComponent",point:0}]},s=function(){function e(t,n){_classCallCheck(this,e),this.srv=t,this.msg=n,this.key="demo"}return _createClass(e,[{key:"getByHttp",value:function(){var e=this;this.srv.get("https://randomuser.me/api/?results=1").subscribe((function(t){e.value=t}))}},{key:"registerNotify",value:function(){var e=this;this.notify$&&this.notify$.unsubscribe(),this.notify$=this.srv.notify(this.key).subscribe((function(t){null!=t?e.msg.warning('"'.concat(e.key,'" new status: ').concat(t.type)):e.msg.success("register success")}))}},{key:"unRegisterNotify",value:function(){this.srv.cancelNotify(this.key)}},{key:"ngOnDestroy",value:function(){this.notify$&&this.notify$.unsubscribe()}},{key:"newValue",get:function(){return+new Date}}]),e}(),u=function e(){_classCallCheck(this,e),this.item={cols:1,urls:{"zh-CN":"packages/cache/docs/service.md"},content:{"zh-CN":{content:'<section class="markdown"></section>',api:'<h2 id="API">API<a onclick="window.location.hash = \'API\'" class="anchor">#</a></h2><h3 id="set()">set()<a onclick="window.location.hash = \'set()\'" class="anchor">#</a></h3><table><thead><tr><th>\u53c2\u6570\u540d</th><th>\u7c7b\u578b</th><th>\u63cf\u8ff0</th></tr></thead><tbody><tr><td><code>key</code></td><td><code>string</code></td><td>\u7f13\u5b58\u552f\u4e00\u6807\u8bc6\u7b26</td></tr><tr><td><code>data</code></td><td><code>any | Observable<any></code></td><td>\u7f13\u5b58\u6570\u636e\u6e90\uff0c\u6570\u636e\u6e90\u4e3a <code>Observable</code> \u65f6\uff0c\u4f9d\u7136\u8fd4\u56de <code>Observable</code>\uff0c\u5426\u5219\u8fd4\u56de <code>void</code></td></tr><tr><td><code>options</code></td><td><code>{ type?: \'m\' | \'s\', expire?: number }</code></td><td><code>type</code> \u5b58\u50a8\u7c7b\u578b\uff0c\'m\' \u8868\u793a\u5185\u5b58\uff0c\'s\' \u8868\u793a\u6301\u4e45<br><code>expire</code> \u8fc7\u671f\u65f6\u95f4\uff0c\u5355\u4f4d <code>\u79d2</code></td></tr></tbody></table><h3 id="get()">get()<a onclick="window.location.hash = \'get()\'" class="anchor">#</a></h3><table><thead><tr><th>\u53c2\u6570\u540d</th><th>\u7c7b\u578b</th><th>\u63cf\u8ff0</th></tr></thead><tbody><tr><td><code>key</code></td><td><code>string</code></td><td>\u7f13\u5b58\u552f\u4e00\u6807\u8bc6\u7b26</td></tr><tr><td><code>options</code></td><td><code>{ mode?: \'promise\' | \'none\', type?: \'m\' | \'s\', expire?: number }</code></td><td><code>mode</code> \u6307\u5b9a\u83b7\u53d6\u7f13\u5b58\u7684\u6a21\u5f0f\uff1a<br>1\u3001<code>promise</code> \u8868\u793a\u82e5\u4e0d\u5b58 <code>key</code> \u5219\u628a <code>key</code> \u5f53URL\u53d1\u8d77\u8bf7\u6c42\u5e76\u7f13\u5b58\u4e14\u8fd4\u56de Observable<br>2\u3001<code>none</code> \u8868\u793a\u76f4\u63a5\u8fd4\u56de\u6570\u636e\u82e5KEY\u4e0d\u5b58\u5728\u5219\u76f4\u63a5\u8fd4\u56de <code>null</code><br><br><code>type</code> \u5b58\u50a8\u7c7b\u578b\uff0c\'m\' \u8868\u793a\u5185\u5b58\uff0c\'s\' \u8868\u793a\u6301\u4e45<br><code>expire</code> \u8fc7\u671f\u65f6\u95f4\uff0c\u5355\u4f4d <code>\u79d2</code></td></tr></tbody></table><h3 id="getNone()">getNone()<a onclick="window.location.hash = \'getNone()\'" class="anchor">#</a></h3><p>\u83b7\u53d6\u7f13\u5b58\u6570\u636e\uff0c\u82e5 <code>key</code> \u4e0d\u5b58\u5728\u6216\u5df2\u8fc7\u671f\u5219\u8fd4\u56de null\u3002</p><h3 id="tryGet()">tryGet()<a onclick="window.location.hash = \'tryGet()\'" class="anchor">#</a></h3><p>\u83b7\u53d6\u7f13\u5b58\uff0c\u82e5\u4e0d\u5b58\u5728\u5219\u8bbe\u7f6e\u7f13\u5b58\u5bf9\u8c61\uff0c\u53c2\u6570\u7b49\u540c <code>set()</code>\u3002</p><h3 id="has()">has()<a onclick="window.location.hash = \'has()\'" class="anchor">#</a></h3><p>\u662f\u5426\u7f13\u5b58 <code>key</code>\u3002</p><h3 id="remove()">remove()<a onclick="window.location.hash = \'remove()\'" class="anchor">#</a></h3><p>\u79fb\u9664\u7f13\u5b58 <code>key</code>\u3002</p><h3 id="clear()">clear()<a onclick="window.location.hash = \'clear()\'" class="anchor">#</a></h3><p>\u6e05\u7a7a\u6240\u6709\u7f13\u5b58\u3002</p><h3 id="notify()">notify()<a onclick="window.location.hash = \'notify()\'" class="anchor">#</a></h3><p><code>key</code> \u76d1\u542c\uff0c\u5f53 <code>key</code> \u53d8\u66f4\u3001\u8fc7\u671f\u3001\u79fb\u9664\u65f6\u901a\u77e5\uff0c\u6ce8\u610f\u4ee5\u4e0b\u82e5\u5e72\u7ec6\u8282\uff1a</p><ul><li><p>\u8c03\u7528\u540e\u9664\u518d\u6b21\u8c03\u7528 <code>cancelNotify</code> \u5426\u5219\u6c38\u8fdc\u4e0d\u8fc7\u671f</p></li><li><p>\u76d1\u542c\u5668\u6bcf <code>freq</code> (\u9ed8\u8ba4\uff1a3\u79d2) \u6267\u884c\u4e00\u6b21\u8fc7\u671f\u68c0\u67e5</p></li></ul><h3 id="cancelNotify()">cancelNotify()<a onclick="window.location.hash = \'cancelNotify()\'" class="anchor">#</a></h3><p>\u53d6\u6d88 <code>key</code> \u76d1\u542c</p><h3 id="hasNotify()">hasNotify()<a onclick="window.location.hash = \'hasNotify()\'" class="anchor">#</a></h3><p><code>key</code> \u662f\u5426\u5df2\u7ecf\u76d1\u542c</p><h3 id="clearNotify()">clearNotify()<a onclick="window.location.hash = \'clearNotify()\'" class="anchor">#</a></h3><p>\u6e05\u7a7a\u6240\u6709 <code>key</code> \u7684\u76d1\u542c</p><h3 id="freq()">freq()<a onclick="window.location.hash = \'freq()\'" class="anchor">#</a></h3><p>\u8bbe\u7f6e\u76d1\u542c\u9891\u7387\uff0c\u5355\u4f4d\uff1a\u6beb\u79d2\u4e14\u6700\u4f4e <code>20ms</code>\uff0c\u9ed8\u8ba4\uff1a<code>3000ms</code>\u3002</p><h2 id="get-\u548c-tryGet-\u7684\u533a\u522b"><code>get</code> \u548c <code>tryGet</code> \u7684\u533a\u522b<a onclick="window.location.hash = \'get-\u548c-tryGet-\u7684\u533a\u522b\'" class="anchor">#</a></h2><p>\u672c\u8d28\u90fd\u662f\u83b7\u53d6\u5e76\u8fd4\u56de\u7f13\u5b58\u6570\u636e\uff0c<code>get</code> \u76f8\u6bd4 <code>tryGet</code> \u66f4\u7b80\u5316\uff0c\u524d\u8005\u6309KEY\u5373\u662fURL\u7ea6\u5b9a\u7684\u98ce\u683c\uff0c\u540e\u8005\u9700\u6307\u5b9a\u6570\u636e\u6e90\u5bf9\u8c61\u3002</p><h2 id="\u9177\u64cd\u4f5c">\u9177\u64cd\u4f5c<a onclick="window.location.hash = \'\u9177\u64cd\u4f5c\'" class="anchor">#</a></h2><h3 id="async-\u7ba1\u9053">async \u7ba1\u9053<a onclick="window.location.hash = \'async-\u7ba1\u9053\'" class="anchor">#</a></h3><p>RxJS \u548c <code>async</code> \u7ba1\u9053\u4e8c\u8005\u7684\u914d\u5408\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u975e\u5e38\u53cb\u597d\u7684\u4f7f\u7528\u7f13\u5b58\u6570\u636e\uff0c\u4f8b\u5982\uff1a</p><pre class="hljs language-ts"><code>@Component({\n template: `<li *ngFor="let unit of units | async">{{unit}}</li>`\n})\nexport class Component {\n units: this.srv.get(\'/data/unit\')\n}</code></pre><h3 id="\u7f13\u5b58\u4e0e\u8bf7\u6c42">\u7f13\u5b58\u4e0e\u8bf7\u6c42<a onclick="window.location.hash = \'\u7f13\u5b58\u4e0e\u8bf7\u6c42\'" class="anchor">#</a></h3><p>\u6709\u65f6\u9700\u8981\u4f9d\u8d56\u5b57\u5178\u83b7\u53d6\u8fdc\u7a0b\u6570\u636e\u65f6\uff1a</p><pre class="hljs language-ts"><code>this.srv\n .get(\'/data/unit\')\n .pipe(\n map(units => this.http.get(`/trade?unit=${units}`))\n );</code></pre>',meta:{order:2,title:"CacheService",type:"Documents"},toc:[{id:"API",title:"API",h:2},{id:"set()",title:"set()",h:3},{id:"get()",title:"get()",h:3},{id:"getNone()",title:"getNone()",h:3},{id:"tryGet()",title:"tryGet()",h:3},{id:"has()",title:"has()",h:3},{id:"remove()",title:"remove()",h:3},{id:"clear()",title:"clear()",h:3},{id:"notify()",title:"notify()",h:3},{id:"cancelNotify()",title:"cancelNotify()",h:3},{id:"hasNotify()",title:"hasNotify()",h:3},{id:"clearNotify()",title:"clearNotify()",h:3},{id:"freq()",title:"freq()",h:3},{id:"get-\u548c-tryGet-\u7684\u533a\u522b",title:"get \u548c tryGet \u7684\u533a\u522b",h:2},{id:"\u9177\u64cd\u4f5c",title:"\u9177\u64cd\u4f5c",h:2},{id:"async-\u7ba1\u9053",title:"async \u7ba1\u9053",h:3},{id:"\u7f13\u5b58\u4e0e\u8bf7\u6c42",title:"\u7f13\u5b58\u4e0e\u8bf7\u6c42",h:3}]}},demo:!0},this.codes=[{id:"cache-service-simple",meta:{title:{"zh-CN":"\u57fa\u7840\u6837\u4f8b","en-US":"Basic Usage"},order:0},summary:{"zh-CN":"<p>\u6700\u7b80\u5355\u7684\u7528\u6cd5\u3002</p>","en-US":"<p>Simplest of usage.</p>"},code:'import { Component, OnDestroy } from \'@angular/core\';\nimport { CacheService } from \'@delon/cache\';\nimport { NzMessageService } from \'ng-zorro-antd/message\';\nimport { Subscription } from \'rxjs\';\n\n@Component({\n selector: \'cache-service-simple\',\n template: `\n <p>value: {{ value | json }}</p>\n <div class="pt-sm">\n Basic:\n <button nz-button (click)="srv.set(key, newValue)">Set</button>\n <button nz-button (click)="value = srv.getNone(key)">Get</button>\n <button nz-button (click)="srv.remove(key)">Remove</button>\n <button nz-button (click)="srv.clear()">Clear</button>\n </div>\n <div class="pt-sm">\n Key is valid request:\n <button nz-button (click)="getByHttp()">Get</button>\n </div>\n <div class="pt-sm">\n Notify:\n <button nz-button (click)="registerNotify()">Register</button>\n <button nz-button (click)="unRegisterNotify()">UnRegister</button>\n </div>\n `,\n})\nexport class CacheServiceSimpleComponent implements OnDestroy {\n value: any;\n key = \'demo\';\n private notify$: Subscription;\n\n get newValue() {\n return +new Date();\n }\n\n constructor(public srv: CacheService, private msg: NzMessageService) {}\n\n getByHttp() {\n this.srv.get(`https://randomuser.me/api/?results=1`).subscribe(res => {\n this.value = res;\n });\n }\n\n registerNotify() {\n if (this.notify$) this.notify$.unsubscribe();\n this.notify$ = this.srv.notify(this.key).subscribe(res => {\n if (res == null) {\n this.msg.success(\'register success\');\n return;\n }\n this.msg.warning(`"${this.key}" new status: ${res.type}`);\n });\n }\n\n unRegisterNotify() {\n this.srv.cancelNotify(this.key);\n }\n\n ngOnDestroy() {\n if (this.notify$) this.notify$.unsubscribe();\n }\n}',name:"simple",urls:"packages/cache/docs/demo/simple.md",type:"demo",lang:"ts",componentName:"CacheServiceSimpleComponent",point:0}]},r=function(){function e(t,n){_classCallCheck(this,e),this.srv=t,this.msg=n,this.key="demo"}return _createClass(e,[{key:"getByHttp",value:function(){var e=this;this.srv.get("https://randomuser.me/api/?results=1").subscribe((function(t){e.value=t}))}},{key:"registerNotify",value:function(){var e=this;this.notify$&&this.notify$.unsubscribe(),this.notify$=this.srv.notify(this.key).subscribe((function(t){null!=t?e.msg.warning('"'.concat(e.key,'" new status: ').concat(t.type)):e.msg.success("register success")}))}},{key:"unRegisterNotify",value:function(){this.srv.cancelNotify(this.key)}},{key:"ngOnDestroy",value:function(){this.notify$&&this.notify$.unsubscribe()}},{key:"newValue",get:function(){return+new Date}}]),e}(),b=function e(){_classCallCheck(this,e)},d=n("pMnS"),h=n("EdU/"),p=n("/Yna"),f=n("JRKe"),y=n("Ed4d"),v=n("8WaK"),m=n("QfCi"),g=n("CghO"),G=n("Sq/J"),k=n("GYi0"),w=n("EXx9"),N=n("R6D3"),z=n("WP5L"),C=n("71F0"),S=n("fE+l"),H=n("0RMT"),O=n("QcbP"),E=n("0D9X"),D=n("SpJI"),x=n("hBP+"),I=n("QPFe"),R=n("RdGh"),M=n("D9vs"),B=n("DyZ0"),j=n("TY3c"),Q=n("u+Cy"),_=n("8+8K"),T=n("YVZs"),q=n("F/j7"),P=n("/EOF"),$=n("ZKYL"),W=n("SZk1"),V=n("5eO6"),Y=n("9BMt"),F=n("kRch"),U=n("QkPN"),J=n("vBNu"),A=n("Z7t+"),K=n("II6v"),X=n("MRB6"),Z=n("uU7u"),L=n("iInd"),ee=n("cUpR"),te=n("5VGP"),ne=n("tYkK"),le=n("7QIX"),oe=n("/HVE"),ae=n("G9RP"),ce=n("NzjH"),ie=n("JXeA"),se=n("/Rd2"),ue=n("SVse"),re=n("Irb3"),be=n("GaVp"),de=n("POq0"),he=n("omvX"),pe=n("rxuJ"),fe=n.n(pe),ye=n("HDdC"),ve=n("LRne"),me=n("2Vo4"),ge=n("vkgz"),Ge=n("lJxs"),ke=((l=function e(){_classCallCheck(this,e),this.mode="promise",this.reName="",this.prefix="",this.meta_key="__cache_meta"}).ngInjectableDef=a.Wb({factory:function(){return new l},token:l,providedIn:"root"}),l),we=new a.p("DC_STORE_STORAGE_TOKEN",{providedIn:"root",factory:function(){return new Ne}}),Ne=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){return JSON.parse(localStorage.getItem(e)||"null")||null}},{key:"set",value:function(e,t){return localStorage.setItem(e,JSON.stringify(t)),!0}},{key:"remove",value:function(e){localStorage.removeItem(e)}}]),e}(),ze=n("IheW"),Ce=((o=function(){function e(t,n,l){_classCallCheck(this,e),this.store=n,this.http=l,this.memory=new Map,this.notifyBuffer=new Map,this.meta=new Set,this.freqTick=3e3,this.cog={},Object.assign(this.cog,Object.assign({},new ke,t)),this.loadMeta(),this.startExpireNotify()}return _createClass(e,[{key:"deepGet",value:function(e,t,n){if(!e)return n;if(t.length<=1){var l=t.length?e[t[0]]:e;return void 0===l?n:l}return t.reduce((function(e,t){return e[t]}),e)||n}},{key:"pushMeta",value:function(e){this.meta.has(e)||(this.meta.add(e),this.saveMeta())}},{key:"removeMeta",value:function(e){this.meta.has(e)&&(this.meta.delete(e),this.saveMeta())}},{key:"loadMeta",value:function(){var e=this,t=this.store.get(this.cog.meta_key);t&&t.v&&t.v.forEach((function(t){return e.meta.add(t)}))}},{key:"saveMeta",value:function(){var e=[];this.meta.forEach((function(t){return e.push(t)})),this.store.set(this.cog.meta_key,{v:e,e:0})}},{key:"getMeta",value:function(){return this.meta}},{key:"set",value:function(e,t){var n=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=0,a=this.cog,c=a.type,i=a.expire;if((l=Object.assign({type:c,expire:i},l)).expire&&(o=fe()(new Date,l.expire).valueOf()),t instanceof ye.a)return t.pipe(Object(ge.a)((function(t){n.save(l.type,e,{v:t,e:o})})));this.save(l.type,e,{v:t,e:o})}},{key:"save",value:function(e,t,n){"m"===e?this.memory.set(t,n):(this.store.set(this.cog.prefix+t,n),this.pushMeta(t)),this.runNotify(t,"set")}},{key:"get",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l="none"!==n.mode&&"promise"===this.cog.mode,o=this.memory.has(e)?this.memory.get(e):this.store.get(this.cog.prefix+e);return!o||o.e&&o.e>0&&o.e<(new Date).valueOf()?l?this.http.get(e).pipe(Object(Ge.a)((function(e){return t.deepGet(e,t.cog.reName,null)})),Object(ge.a)((function(l){return t.set(e,l,{type:n.type,expire:n.expire})}))):null:l?Object(ve.a)(o.v):o.v}},{key:"getNone",value:function(e){return this.get(e,{mode:"none"})}},{key:"tryGet",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=this.getNone(e);return null===l?t instanceof ye.a?this.set(e,t,n):(this.set(e,t,n),t):Object(ve.a)(l)}},{key:"has",value:function(e){return this.memory.has(e)||this.meta.has(e)}},{key:"_remove",value:function(e,t){t&&this.runNotify(e,"remove"),this.memory.has(e)?this.memory.delete(e):(this.store.remove(this.cog.prefix+e),this.removeMeta(e))}},{key:"remove",value:function(e){this._remove(e,!0)}},{key:"clear",value:function(){var e=this;this.notifyBuffer.forEach((function(t,n){return e.runNotify(n,"remove")})),this.memory.clear(),this.meta.forEach((function(t){return e.store.remove(e.cog.prefix+t)}))}},{key:"startExpireNotify",value:function(){this.checkExpireNotify(),this.runExpireNotify()}},{key:"runExpireNotify",value:function(){var e=this;this.freqTime=setTimeout((function(){e.checkExpireNotify(),e.runExpireNotify()}),this.freqTick)}},{key:"checkExpireNotify",value:function(){var e=this,t=[];this.notifyBuffer.forEach((function(n,l){e.has(l)&&null===e.getNone(l)&&t.push(l)})),t.forEach((function(t){e.runNotify(t,"expire"),e._remove(t,!1)}))}},{key:"abortExpireNotify",value:function(){clearTimeout(this.freqTime)}},{key:"runNotify",value:function(e,t){this.notifyBuffer.has(e)&&this.notifyBuffer.get(e).next({type:t,value:this.getNone(e)})}},{key:"notify",value:function(e){if(!this.notifyBuffer.has(e)){var t=new me.a(this.getNone(e));this.notifyBuffer.set(e,t)}return this.notifyBuffer.get(e).asObservable()}},{key:"cancelNotify",value:function(e){this.notifyBuffer.has(e)&&(this.notifyBuffer.get(e).unsubscribe(),this.notifyBuffer.delete(e))}},{key:"hasNotify",value:function(e){return this.notifyBuffer.has(e)}},{key:"clearNotify",value:function(){this.notifyBuffer.forEach((function(e){return e.unsubscribe()})),this.notifyBuffer.clear()}},{key:"ngOnDestroy",value:function(){this.memory.clear(),this.abortExpireNotify(),this.clearNotify()}},{key:"freq",set:function(e){this.freqTick=Math.max(20,e),this.abortExpireNotify(),this.startExpireNotify()}}]),e}()).ngInjectableDef=a.Wb({factory:function(){return new o(a.Xb(ke),a.Xb(we),a.Xb(ze.c))},token:o,providedIn:"root"}),o),Se=a.ub({encapsulation:2,styles:[],data:{}});function He(e){return a.Sb(0,[(e()(),a.wb(0,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),a.Qb(1,null,["value: ",""])),a.Kb(0,ue.h,[]),(e()(),a.wb(3,0,null,null,21,"div",[["class","pt-sm"]],null,null,null,null,null)),(e()(),a.Qb(-1,null,[" Basic: "])),(e()(),a.wb(5,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0,o=e.component;return"click"===t&&(l=!1!==o.srv.set(o.key,o.newValue)&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(7,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,1,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Set"])),(e()(),a.wb(10,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0,o=e.component;return"click"===t&&(l=!1!==(o.value=o.srv.getNone(o.key))&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(12,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,2,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Get"])),(e()(),a.wb(15,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0,o=e.component;return"click"===t&&(l=!1!==o.srv.remove(o.key)&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(17,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,3,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Remove"])),(e()(),a.wb(20,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.srv.clear()&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(22,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,4,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Clear"])),(e()(),a.wb(25,0,null,null,6,"div",[["class","pt-sm"]],null,null,null,null,null)),(e()(),a.Qb(-1,null,[" Key is valid request: "])),(e()(),a.wb(27,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.getByHttp()&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(29,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,5,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Get"])),(e()(),a.wb(32,0,null,null,11,"div",[["class","pt-sm"]],null,null,null,null,null)),(e()(),a.Qb(-1,null,[" Notify: "])),(e()(),a.wb(34,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.registerNotify()&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(36,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,6,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Register"])),(e()(),a.wb(39,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.unRegisterNotify()&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(41,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,7,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["UnRegister"]))],(function(e,t){e(t,7,0),e(t,12,0),e(t,17,0),e(t,22,0),e(t,29,0),e(t,36,0),e(t,41,0)}),(function(e,t){var n=t.component;e(t,1,0,a.Rb(t,1,0,a.Ib(t,2).transform(n.value))),e(t,5,0,a.Ib(t,7).nzWave),e(t,10,0,a.Ib(t,12).nzWave),e(t,15,0,a.Ib(t,17).nzWave),e(t,20,0,a.Ib(t,22).nzWave),e(t,27,0,a.Ib(t,29).nzWave),e(t,34,0,a.Ib(t,36).nzWave),e(t,39,0,a.Ib(t,41).nzWave)}))}var Oe=a.ub({encapsulation:0,styles:["[_nghost-%COMP%] { display: block }"],data:{}});function Ee(e){return a.Sb(0,[(e()(),a.wb(0,0,null,null,11,"app-docs",[],null,null,null,A.b,A.a)),a.vb(1,245760,null,0,K.a,[X.a,Z.a,L.p,ee.b],{codes:[0,"codes"],item:[1,"item"]},null),(e()(),a.wb(2,0,null,0,9,"nz-row",[],null,null,null,null,null)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(4,4931584,null,0,ne.c,[a.k,a.D,te.H,le.c,a.y,oe.a,te.p],{nzGutter:[0,"nzGutter"]},null),(e()(),a.wb(5,0,null,null,6,"nz-col",[["nzSpan","24"]],null,null,null,null,null)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(7,4931584,null,0,ne.a,[te.H,a.k,[2,ne.c],a.D],{nzSpan:[0,"nzSpan"]},null),(e()(),a.wb(8,0,null,null,3,"code-box",[],[[1,"id",0],[2,"code-box",null],[2,"expand",null]],null,null,ae.b,ae.a)),a.vb(9,180224,null,0,ce.a,[Z.a,ie.g,se.a,ee.b],{item:[0,"item"]},null),(e()(),a.wb(10,0,null,0,1,"cache-getting-started-simple",[],null,null,null,He,Se)),a.vb(11,180224,null,0,s,[Ce,ie.g],null,null)],(function(e,t){var n=t.component;e(t,1,0,n.codes,n.item),e(t,4,0,16),e(t,7,0,"24"),e(t,9,0,n.codes[0])}),(function(e,t){e(t,8,0,t.component.codes[0].id,!0,a.Ib(t,9).expand)}))}var De=a.sb("app-cache-getting-started",i,(function(e){return a.Sb(0,[(e()(),a.wb(0,0,null,null,1,"app-cache-getting-started",[],null,null,null,Ee,Oe)),a.vb(1,49152,null,0,i,[],null,null)],null,null)}),{},{},[]),xe=a.ub({encapsulation:2,styles:[],data:{}});function Ie(e){return a.Sb(0,[(e()(),a.wb(0,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),a.Qb(1,null,["value: ",""])),a.Kb(0,ue.h,[]),(e()(),a.wb(3,0,null,null,21,"div",[["class","pt-sm"]],null,null,null,null,null)),(e()(),a.Qb(-1,null,[" Basic: "])),(e()(),a.wb(5,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0,o=e.component;return"click"===t&&(l=!1!==o.srv.set(o.key,o.newValue)&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(7,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,1,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Set"])),(e()(),a.wb(10,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0,o=e.component;return"click"===t&&(l=!1!==(o.value=o.srv.getNone(o.key))&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(12,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,2,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Get"])),(e()(),a.wb(15,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0,o=e.component;return"click"===t&&(l=!1!==o.srv.remove(o.key)&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(17,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,3,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Remove"])),(e()(),a.wb(20,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.srv.clear()&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(22,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,4,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Clear"])),(e()(),a.wb(25,0,null,null,6,"div",[["class","pt-sm"]],null,null,null,null,null)),(e()(),a.Qb(-1,null,[" Key is valid request: "])),(e()(),a.wb(27,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.getByHttp()&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(29,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,5,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Get"])),(e()(),a.wb(32,0,null,null,11,"div",[["class","pt-sm"]],null,null,null,null,null)),(e()(),a.Qb(-1,null,[" Notify: "])),(e()(),a.wb(34,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.registerNotify()&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(36,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,6,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["Register"])),(e()(),a.wb(39,0,null,null,4,"button",[["nz-button",""]],[[1,"nz-wave",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.unRegisterNotify()&&l),l}),re.c,re.a)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(41,1818624,null,1,be.a,[a.k,a.h,a.D,de.b,te.H,a.y,te.m,[2,te.i],[2,he.a]],null,null),a.Ob(603979776,7,{listOfIconElement:1}),(e()(),a.Qb(-1,0,["UnRegister"]))],(function(e,t){e(t,7,0),e(t,12,0),e(t,17,0),e(t,22,0),e(t,29,0),e(t,36,0),e(t,41,0)}),(function(e,t){var n=t.component;e(t,1,0,a.Rb(t,1,0,a.Ib(t,2).transform(n.value))),e(t,5,0,a.Ib(t,7).nzWave),e(t,10,0,a.Ib(t,12).nzWave),e(t,15,0,a.Ib(t,17).nzWave),e(t,20,0,a.Ib(t,22).nzWave),e(t,27,0,a.Ib(t,29).nzWave),e(t,34,0,a.Ib(t,36).nzWave),e(t,39,0,a.Ib(t,41).nzWave)}))}var Re=a.ub({encapsulation:0,styles:["[_nghost-%COMP%] { display: block }"],data:{}});function Me(e){return a.Sb(0,[(e()(),a.wb(0,0,null,null,11,"app-docs",[],null,null,null,A.b,A.a)),a.vb(1,245760,null,0,K.a,[X.a,Z.a,L.p,ee.b],{codes:[0,"codes"],item:[1,"item"]},null),(e()(),a.wb(2,0,null,0,9,"nz-row",[],null,null,null,null,null)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(4,4931584,null,0,ne.c,[a.k,a.D,te.H,le.c,a.y,oe.a,te.p],{nzGutter:[0,"nzGutter"]},null),(e()(),a.wb(5,0,null,null,6,"nz-col",[["nzSpan","24"]],null,null,null,null,null)),a.Nb(512,null,te.H,te.H,[a.E]),a.vb(7,4931584,null,0,ne.a,[te.H,a.k,[2,ne.c],a.D],{nzSpan:[0,"nzSpan"]},null),(e()(),a.wb(8,0,null,null,3,"code-box",[],[[1,"id",0],[2,"code-box",null],[2,"expand",null]],null,null,ae.b,ae.a)),a.vb(9,180224,null,0,ce.a,[Z.a,ie.g,se.a,ee.b],{item:[0,"item"]},null),(e()(),a.wb(10,0,null,0,1,"cache-service-simple",[],null,null,null,Ie,xe)),a.vb(11,180224,null,0,r,[Ce,ie.g],null,null)],(function(e,t){var n=t.component;e(t,1,0,n.codes,n.item),e(t,4,0,16),e(t,7,0,"24"),e(t,9,0,n.codes[0])}),(function(e,t){e(t,8,0,t.component.codes[0].id,!0,a.Ib(t,9).expand)}))}var Be=a.sb("app-cache-service",u,(function(e){return a.Sb(0,[(e()(),a.wb(0,0,null,null,1,"app-cache-service",[],null,null,null,Me,Re)),a.vb(1,49152,null,0,u,[],null,null)],null,null)}),{},{},[]),je=n("s7LF"),Qe=n("QQfA"),_e=n("IP0z"),Te=n("sAdM"),qe=n("ekcc"),Pe=n("pQl/"),$e=n("g+Fz"),We=n("Ybye"),Ve=n("NFMk"),Ye=n("10Ig"),Fe=n("iC8E"),Ue=n("v1Dh"),Je=n("66zS"),Ae=n("5Izy"),Ke=n("yTpB"),Xe=n("zMNK"),Ze=n("hOhj"),Le=n("r19J"),et=n("anqq"),tt=n("IYs4"),nt=n("EcpC"),lt=n("/L1H"),ot=n("phDe"),at=n("rJp6"),ct=n("Rgb0"),it=n("kS4m"),st=n("mW00"),ut=n("jTf7"),rt=n("WPSl"),bt=n("YdS3"),dt=n("wQFA"),ht=n("px0D"),pt=n("3ZFI"),ft=n("CYS+"),yt=n("oBm0"),vt=n("A7zk"),mt=n("YRt3"),gt=n("lAiz"),Gt=n("ce6n"),kt=n("SBNi"),wt=n("wf2+"),Nt=n("eCGT"),zt=n("nHXS"),Ct=n("fb/r"),St=n("zTFG"),Ht=n("JK0T"),Ot=n("0CZq"),Et=n("qU0y"),Dt=n("vZsH"),xt=n("W4B1"),It=n("SHEi"),Rt=n("FPpa"),Mt=n("RVNi"),Bt=n("NDed"),jt=n("5A4h"),Qt=n("N2O2"),_t=n("ozKM"),Tt=n("OvZZ"),qt=n("z+yo"),Pt=n("DQmg"),$t=n("haRT"),Wt=n("1+nf"),Vt=n("XFzh"),Yt=n("p+Sl"),Ft=n("HhpN"),Ut=n("SN7N"),Jt=n("fwnu"),At=n("VbP7"),Kt=n("gaRz"),Xt=n("e15G"),Zt=n("+YBk"),Lt=n("9J0+"),en=n("vIiB"),tn=n("CGSU"),nn=n("5CFV"),ln=n("GTZx"),on=n("hS58"),an=n("+ndR"),cn=n("EWQH"),sn=n("aq9g"),un=n("7Dpl"),rn=n("ekmu"),bn=n("vjj7"),dn=n("l/Xz"),hn=n("sRo1"),pn=n("BQzg"),fn=n("YQXl"),yn=n("dZIx"),vn=n("9bzR"),mn=n("WNQ9"),gn=n("5Oon"),Gn=n("lM9c"),kn=n("OSVY"),wn=n("MNSj"),Nn=n("MZBU"),zn=n("ev4S"),Cn=n("G1y0"),Sn=n("5sGc"),Hn=n("4/RT"),On=n("Q1qs"),En=n("k5cy"),Dn=n("ceoF"),xn=n("gQlp"),In=n("XYAa"),Rn=n("vrge"),Mn=n("nMAq"),Bn=n("5PV9"),jn=n("nIn3"),Qn=n("xo13"),_n=n("CnVV"),Tn=n("5p8d"),qn=n("qYUw"),Pn=n("JpOc"),$n=n("VRoF"),Wn=n("Uto7"),Vn=n("/p+U"),Yn=n("ye40"),Fn=n("qcxY"),Un=n("T+Em"),Jn=n("ucmY"),An=n("sbFH"),Kn=n("76lH"),Xn=n("TSSN"),Zn=n("Fg/6"),Ln=n("kzz5"),el=n("SqF5"),tl=n("Wl7g"),nl=n("+TYD"),ll=n("PCNd");n.d(t,"CacheModuleNgFactory",(function(){return ol}));var ol=a.tb(b,[],(function(e){return a.Fb([a.Gb(512,a.j,a.db,[[8,[d.a,h.a,h.b,p.a,f.a,y.a,v.a,m.a,g.a,G.a,k.a,w.a,N.a,z.a,C.a,S.a,H.a,O.a,E.a,D.a,x.a,I.a,R.a,M.a,B.a,j.a,Q.a,_.a,T.a,q.a,P.a,$.a,W.a,V.a,Y.a,F.a,U.a,J.a,De,Be]],[3,a.j],a.w]),a.Gb(4608,ue.p,ue.o,[a.t,[2,ue.K]]),a.Gb(4608,je.x,je.x,[]),a.Gb(4608,je.e,je.e,[]),a.Gb(5120,te.z,te.M,[ue.e,[3,te.z]]),a.Gb(4608,Qe.d,Qe.d,[Qe.k,Qe.f,a.j,Qe.i,Qe.g,a.q,a.y,ue.e,_e.b,[2,ue.j]]),a.Gb(5120,Qe.l,Qe.m,[Qe.d]),a.Gb(4608,de.c,de.c,[]),a.Gb(5120,Te.b,Te.a,[[3,Te.b],qe.a]),a.Gb(4608,Pe.d,Pe.d,[a.y]),a.Gb(4608,$e.d,$e.d,[ue.e]),a.Gb(4608,We.a,We.a,[Ve.g]),a.Gb(4608,Ye.a,Ye.a,[Fe.d]),a.Gb(1073742336,ue.c,ue.c,[]),a.Gb(1073742336,je.w,je.w,[]),a.Gb(1073742336,je.j,je.j,[]),a.Gb(1073742336,L.t,L.t,[[2,L.y],[2,L.p]]),a.Gb(1073742336,je.t,je.t,[]),a.Gb(1073742336,oe.b,oe.b,[]),a.Gb(1073742336,Ue.b,Ue.b,[]),a.Gb(1073742336,Je.b,Je.b,[]),a.Gb(1073742336,te.j,te.j,[]),a.Gb(1073742336,Ae.b,Ae.b,[]),a.Gb(1073742336,Ke.a,Ke.a,[]),a.Gb(1073742336,_e.a,_e.a,[]),a.Gb(1073742336,Xe.e,Xe.e,[]),a.Gb(1073742336,Ze.g,Ze.g,[]),a.Gb(1073742336,Qe.h,Qe.h,[]),a.Gb(1073742336,te.w,te.w,[]),a.Gb(1073742336,Le.b,Le.b,[]),a.Gb(1073742336,et.b,et.b,[]),a.Gb(1073742336,tt.b,tt.b,[]),a.Gb(1073742336,de.d,de.d,[]),a.Gb(1073742336,nt.b,nt.b,[]),a.Gb(1073742336,te.J,te.J,[]),a.Gb(1073742336,be.c,be.c,[]),a.Gb(1073742336,te.x,te.x,[]),a.Gb(1073742336,lt.e,lt.e,[]),a.Gb(1073742336,ot.i,ot.i,[]),a.Gb(1073742336,ot.a,ot.a,[]),a.Gb(1073742336,ot.f,ot.f,[]),a.Gb(1073742336,at.c,at.c,[]),a.Gb(1073742336,ct.b,ct.b,[]),a.Gb(1073742336,it.d,it.d,[]),a.Gb(1073742336,st.c,st.c,[]),a.Gb(1073742336,ut.h,ut.h,[]),a.Gb(1073742336,rt.f,rt.f,[]),a.Gb(1073742336,bt.d,bt.d,[]),a.Gb(1073742336,dt.d,dt.d,[]),a.Gb(1073742336,te.s,te.s,[]),a.Gb(1073742336,ht.d,ht.d,[]),a.Gb(1073742336,pt.b,pt.b,[]),a.Gb(1073742336,ft.c,ft.c,[]),a.Gb(1073742336,yt.a,yt.a,[]),a.Gb(1073742336,vt.a,vt.a,[]),a.Gb(1073742336,mt.b,mt.b,[]),a.Gb(1073742336,gt.g,gt.g,[]),a.Gb(1073742336,gt.b,gt.b,[]),a.Gb(1073742336,Gt.a,Gt.a,[]),a.Gb(1073742336,kt.b,kt.b,[]),a.Gb(1073742336,Fe.e,Fe.e,[]),a.Gb(1073742336,Fe.b,Fe.b,[]),a.Gb(1073742336,le.b,le.b,[]),a.Gb(1073742336,ne.b,ne.b,[]),a.Gb(1073742336,wt.g,wt.g,[]),a.Gb(1073742336,Nt.b,Nt.b,[]),a.Gb(1073742336,zt.a,zt.a,[]),a.Gb(1073742336,Ct.b,Ct.b,[]),a.Gb(1073742336,St.d,St.d,[]),a.Gb(1073742336,Ht.b,Ht.b,[]),a.Gb(1073742336,ie.h,ie.h,[]),a.Gb(1073742336,ie.f,ie.f,[]),a.Gb(1073742336,te.y,te.y,[]),a.Gb(1073742336,Ve.h,Ve.h,[]),a.Gb(1073742336,Ve.d,Ve.d,[]),a.Gb(1073742336,Ve.e,Ve.e,[]),a.Gb(1073742336,Ot.f,Ot.f,[]),a.Gb(1073742336,Ot.e,Ot.e,[]),a.Gb(1073742336,Et.a,Et.a,[]),a.Gb(1073742336,Dt.b,Dt.b,[]),a.Gb(1073742336,xt.b,xt.b,[]),a.Gb(1073742336,It.c,It.c,[]),a.Gb(1073742336,Rt.c,Rt.c,[]),a.Gb(1073742336,Mt.b,Mt.b,[]),a.Gb(1073742336,Bt.c,Bt.c,[]),a.Gb(1073742336,jt.a,jt.a,[]),a.Gb(1073742336,Qt.b,Qt.b,[]),a.Gb(1073742336,_t.d,_t.d,[]),a.Gb(1073742336,Tt.a,Tt.a,[]),a.Gb(1073742336,qt.c,qt.c,[]),a.Gb(1073742336,Pt.b,Pt.b,[]),a.Gb(1073742336,$t.b,$t.b,[]),a.Gb(1073742336,Wt.f,Wt.f,[]),a.Gb(1073742336,Vt.b,Vt.b,[]),a.Gb(1073742336,Yt.a,Yt.a,[]),a.Gb(1073742336,te.D,te.D,[]),a.Gb(1073742336,Ft.c,Ft.c,[]),a.Gb(1073742336,Ut.b,Ut.b,[]),a.Gb(1073742336,Jt.b,Jt.b,[]),a.Gb(1073742336,te.o,te.o,[]),a.Gb(1073742336,At.a,At.a,[]),a.Gb(1073742336,Kt.d,Kt.d,[]),a.Gb(1073742336,Xt.a,Xt.a,[]),a.Gb(1073742336,Zt.a,Zt.a,[]),a.Gb(1073742336,Lt.a,Lt.a,[Je.c]),a.Gb(1073742336,en.a,en.a,[]),a.Gb(1073742336,tn.a,tn.a,[]),a.Gb(1073742336,nn.a,nn.a,[]),a.Gb(1073742336,ln.a,ln.a,[]),a.Gb(1073742336,on.a,on.a,[]),a.Gb(1073742336,an.a,an.a,[]),a.Gb(1073742336,cn.a,cn.a,[]),a.Gb(1073742336,sn.a,sn.a,[]),a.Gb(1073742336,un.a,un.a,[]),a.Gb(1073742336,rn.a,rn.a,[]),a.Gb(1073742336,bn.a,bn.a,[]),a.Gb(1073742336,dn.a,dn.a,[]),a.Gb(1073742336,hn.a,hn.a,[]),a.Gb(1073742336,pn.a,pn.a,[]),a.Gb(1073742336,Pe.c,Pe.c,[]),a.Gb(1073742336,fn.a,fn.a,[]),a.Gb(1073742336,yn.a,yn.a,[]),a.Gb(1073742336,vn.a,vn.a,[]),a.Gb(1073742336,mn.a,mn.a,[]),a.Gb(1073742336,gn.a,gn.a,[]),a.Gb(1073742336,Gn.a,Gn.a,[]),a.Gb(1073742336,kn.a,kn.a,[]),a.Gb(1073742336,wn.a,wn.a,[]),a.Gb(1073742336,Nn.a,Nn.a,[]),a.Gb(1073742336,zn.a,zn.a,[]),a.Gb(1073742336,Cn.a,Cn.a,[]),a.Gb(1073742336,Sn.a,Sn.a,[]),a.Gb(1073742336,Hn.a,Hn.a,[]),a.Gb(1073742336,On.a,On.a,[]),a.Gb(1073742336,En.a,En.a,[]),a.Gb(1073742336,Dn.a,Dn.a,[]),a.Gb(1073742336,xn.a,xn.a,[]),a.Gb(1073742336,In.a,In.a,[]),a.Gb(1073742336,Rn.a,Rn.a,[]),a.Gb(1073742336,Mn.a,Mn.a,[]),a.Gb(1073742336,Bn.a,Bn.a,[]),a.Gb(1073742336,jn.a,jn.a,[]),a.Gb(1073742336,Qn.a,Qn.a,[]),a.Gb(1073742336,_n.a,_n.a,[]),a.Gb(1073742336,Tn.a,Tn.a,[]),a.Gb(1073742336,qn.a,qn.a,[]),a.Gb(1073742336,Pn.a,Pn.a,[]),a.Gb(1073742336,$n.a,$n.a,[]),a.Gb(1073742336,Wn.a,Wn.a,[]),a.Gb(1073742336,Vn.a,Vn.a,[]),a.Gb(1073742336,Yn.a,Yn.a,[]),a.Gb(1073742336,Fn.a,Fn.a,[]),a.Gb(1073742336,Un.a,Un.a,[]),a.Gb(1073742336,Jn.a,Jn.a,[]),a.Gb(1073742336,An.a,An.a,[]),a.Gb(1073742336,Kn.a,Kn.a,[]),a.Gb(1073742336,Xn.h,Xn.h,[]),a.Gb(1073742336,Zn.b,Zn.b,[]),a.Gb(1073742336,Ln.a,Ln.a,[]),a.Gb(1073742336,$e.c,$e.c,[]),a.Gb(1073742336,el.c,el.c,[]),a.Gb(1073742336,tl.d,tl.d,[]),a.Gb(1073742336,tl.h,tl.h,[]),a.Gb(1073742336,tl.b,tl.b,[]),a.Gb(1073742336,tl.j,tl.j,[]),a.Gb(1073742336,tl.l,tl.l,[]),a.Gb(1073742336,tl.p,tl.p,[]),a.Gb(1073742336,tl.t,tl.t,[]),a.Gb(1073742336,nl.a,nl.a,[]),a.Gb(1073742336,ll.a,ll.a,[]),a.Gb(1073742336,b,b,[]),a.Gb(256,ie.b,{nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24},[]),a.Gb(256,Ot.b,{nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0},[]),a.Gb(256,qe.a,Zt.b,[]),a.Gb(1024,L.n,(function(){return[[{path:"",component:c.a,children:[{path:"",redirectTo:"getting-started/zh",pathMatch:"full"},{path:"getting-started",redirectTo:"getting-started/zh",pathMatch:"full"},{path:"getting-started/:lang",component:i},{path:"service",redirectTo:"service/zh",pathMatch:"full"},{path:"service/:lang",component:u}]}]]}),[])])}))}}]);