├── .gitignore ├── README.md ├── config ├── aot-tpl.html └── jit-tpl.html ├── dist ├── 0.chunk.js ├── 1.chunk.js ├── 2.chunk.js ├── app.bundle.js ├── app.bundle.js.gz ├── polyfills.bundle.js ├── vendor.bundle.js └── vendor.bundle.js.gz ├── index.html ├── package-lock.json ├── package.json ├── src ├── app │ ├── app.component.ts │ ├── app.module.ts │ ├── app.router.ts │ └── components │ │ ├── about │ │ ├── about.component.ts │ │ └── about.module.ts │ │ ├── contact │ │ └── contact.component.ts │ │ ├── home │ │ ├── detail │ │ │ └── detail.component.ts │ │ ├── home.component.ts │ │ ├── home.module.ts │ │ ├── home.router.ts │ │ └── list │ │ │ └── list.component.ts │ │ ├── news │ │ ├── news.component.ts │ │ └── news.module.ts │ │ └── share │ │ ├── search.component.ts │ │ └── share.module.ts ├── custom-typings.d.ts ├── main.ts ├── polyfills.ts ├── styles.css ├── styles.styl └── vendor.ts ├── tsconfig.json ├── webpack.aot.ts └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | npm-debug.* 4 | link-checker-results.txt 5 | app/**/*.js 6 | *.js.map 7 | e2e/**/*.js 8 | e2e/**/*.js.map 9 | aot 10 | ngc 11 | build 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Angular Webpack2 @ngtools/webpack AOT 2 | 3 | 4 | 5 | ## Create a new project 6 | 7 | Clone this repo into new project folder (e.g., `my-proj`). 8 | ```bash 9 | git clone https://github.com/kunl/Angular-webpack-AOT.git my-proj 10 | cd my-proj 11 | ``` 12 | 13 | ## Install npm packages 14 | 15 | > See npm and nvm version notes above 16 | 17 | Install the npm packages described in the `package.json` and verify that it works: 18 | 19 | ```bash 20 | npm install 21 | npm run dev 22 | ``` 23 | 24 | The `npm run dev` command first compiles the application and run webpack-dev-server, 25 | Both the compiler and the server watch for file changes. 26 | 27 | Shut it down manually with `Ctrl-C`. 28 | 29 | You're ready to write your application. 30 | 31 | Open browser at http://localhost:9000. 32 | 33 | ### npm scripts 34 | 35 | npm scripts defined in the `package.json`: 36 | 37 | * `npm build` - runs the ngc and webpack compiler to build the program. 38 | * `npm run dev` - runs the webpack-dev-server and watch all files 39 | 40 | -------------------------------------------------------------------------------- /config/aot-tpl.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Angular webpack AOT 6 | 7 | 8 | 9 | 10 | 11 | 12 | Loading AppComponent content here ... 13 | 14 | 15 | -------------------------------------------------------------------------------- /config/jit-tpl.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Angular webpack AOT 6 | 7 | 8 | 9 | 10 | 11 | 12 | Loading AppComponent content here ... 13 | 14 | 15 | -------------------------------------------------------------------------------- /dist/0.chunk.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([0],{347:function(n,l,u){"use strict";function t(n){return e._49(0,[(n()(),e._27(0,null,null,1,"search",[],null,null,null,i.b,i.a)),e._26(114688,null,0,_.a,[],null,null)],function(n,l){n(l,1,0)},null)}function r(n){return e._49(0,[(n()(),e._47(null,["\n "])),(n()(),e._27(0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),e._47(null,["news page"])),(n()(),e._47(null,["\n "])),(n()(),e._22(16777216,null,null,1,null,t)),e._26(16384,null,0,f.i,[e._8,e._5],{ngIf:[0,"ngIf"]},null),(n()(),e._47(null,["\n "]))],function(n,l){n(l,5,0,!0)},null)}function o(n){return e._49(0,[(n()(),e._27(0,null,null,1,"news",[],null,null,null,r,p)),e._26(114688,null,0,a,[],null,null)],function(n,l){n(l,1,0)},null)}Object.defineProperty(l,"__esModule",{value:!0});var e=u(31),c=function(){function n(){}return n}(),i=u(349),_=u(348),f=u(53),a=function(){function n(){}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}(),s=[],p=e._25({encapsulation:2,styles:s,data:{}}),d=e._23("news",a,o,{},{},[]),g=u(350),v=u(147);u.d(l,"NewsModuleNgFactory",function(){return y});var y=e._24(c,[],function(n){return e._35([e._36(512,e.o,e._17,[[8,[d]],[3,e.o],e.K]),e._36(4608,f.k,f.j,[e.F,[2,f.o]]),e._36(512,f.b,f.b,[]),e._36(512,g.a,g.a,[]),e._36(512,v.g,v.g,[[2,v.i],[2,v.d]]),e._36(512,c,c,[]),e._36(1024,v.c,function(){return[[{path:"",component:a}]]},[])])})},348:function(n,l,u){"use strict";u.d(l,"a",function(){return t});var t=function(){function n(){}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},349:function(n,l,u){"use strict";function t(n){return o._49(0,[(n()(),o._47(null,["\n "])),(n()(),o._27(0,null,null,0,"input",[["type","text"]],null,null,null,null,null)),(n()(),o._47(null,["\n "]))],null,null)}function r(n){return o._49(0,[(n()(),o._27(0,null,null,1,"search",[],null,null,null,t,i)),o._26(114688,null,0,e.a,[],null,null)],function(n,l){n(l,1,0)},null)}u.d(l,"a",function(){return i}),l.b=t;var o=u(31),e=u(348),c=[],i=o._25({encapsulation:2,styles:c,data:{}});o._23("search",e.a,r,{},{},[])},350:function(n,l,u){"use strict";u.d(l,"a",function(){return t});var t=function(){function n(){}return n.forRoot=function(){return{ngModule:n,providers:[]}},n}()}}); -------------------------------------------------------------------------------- /dist/1.chunk.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([1],{346:function(n,l,u){"use strict";function t(n){return c._49(0,[(n()(),c._27(0,null,null,1,"search",[],null,null,null,_.b,_.a)),c._26(114688,null,0,a.a,[],null,null)],function(n,l){n(l,1,0)},null)}function r(n){return c._49(0,[(n()(),c._27(0,null,null,1,"p",[],null,null,null,null,null)),(n()(),c._47(null,["about page"]))],null,null)}function o(n){return c._49(0,[(n()(),c._47(null,["\n "])),(n()(),c._27(0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),c._47(null,["about page"])),(n()(),c._47(null,["\n "])),(n()(),c._22(16777216,null,null,1,null,t)),c._26(16384,null,0,f.i,[c._8,c._5],{ngIf:[0,"ngIf"]},null),(n()(),c._47(null,["\n "])),(n()(),c._22(16777216,null,null,1,null,r)),c._26(16384,null,0,f.i,[c._8,c._5],{ngIf:[0,"ngIf"]},null),(n()(),c._47(null,["\n "]))],function(n,l){n(l,5,0,!0);n(l,8,0,!0)},null)}function e(n){return c._49(0,[(n()(),c._27(0,null,null,1,"about",[],null,null,null,o,d)),c._26(114688,null,0,s,[],null,null)],function(n,l){n(l,1,0)},null)}Object.defineProperty(l,"__esModule",{value:!0});var c=u(31),i=function(){function n(){}return n}(),_=u(349),a=u(348),f=u(53),s=function(){function n(){}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}(),p=[],d=c._25({encapsulation:2,styles:p,data:{}}),g=c._23("about",s,e,{},{},[]),b=u(350),v=u(147);u.d(l,"AboutModuleNgFactory",function(){return y});var y=c._24(i,[],function(n){return c._35([c._36(512,c.o,c._17,[[8,[g]],[3,c.o],c.K]),c._36(4608,f.k,f.j,[c.F,[2,f.o]]),c._36(512,f.b,f.b,[]),c._36(512,b.a,b.a,[]),c._36(512,v.g,v.g,[[2,v.i],[2,v.d]]),c._36(512,i,i,[]),c._36(1024,v.c,function(){return[[{path:"",component:s}]]},[])])})},348:function(n,l,u){"use strict";u.d(l,"a",function(){return t});var t=function(){function n(){}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},349:function(n,l,u){"use strict";function t(n){return o._49(0,[(n()(),o._47(null,["\n "])),(n()(),o._27(0,null,null,0,"input",[["type","text"]],null,null,null,null,null)),(n()(),o._47(null,["\n "]))],null,null)}function r(n){return o._49(0,[(n()(),o._27(0,null,null,1,"search",[],null,null,null,t,i)),o._26(114688,null,0,e.a,[],null,null)],function(n,l){n(l,1,0)},null)}u.d(l,"a",function(){return i}),l.b=t;var o=u(31),e=u(348),c=[],i=o._25({encapsulation:2,styles:c,data:{}});o._23("search",e.a,r,{},{},[])},350:function(n,l,u){"use strict";u.d(l,"a",function(){return t});var t=function(){function n(){}return n.forRoot=function(){return{ngModule:n,providers:[]}},n}()}}); -------------------------------------------------------------------------------- /dist/2.chunk.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([2],{345:function(n,l,u){"use strict";function t(n){return a._49(0,[(n()(),a._47(null,["\n "])),(n()(),a._27(0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),a._47(null,["home page"])),(n()(),a._47(null,["\n "])),(n()(),a._27(0,null,null,1,"div",[["class","list"]],null,null,null,null,null)),(n()(),a._47(null,["\n "])),(n()(),a._47(null,["\n "])),(n()(),a._27(0,null,null,4,"div",[["class","detail"]],null,null,null,null,null)),(n()(),a._47(null,["\n "])),(n()(),a._27(16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),a._26(212992,null,0,s.h,[s.b,a._8,a.o,[8,null],a.k],null,null),(n()(),a._47(null,["\n "])),(n()(),a._47(null,["\n "]))],function(n,l){n(l,10,0)},null)}function i(n){return a._49(0,[(n()(),a._27(0,null,null,1,"home",[],null,null,null,t,h)),a._26(114688,null,0,p,[],null,null)],function(n,l){n(l,1,0)},null)}function o(n){return a._49(0,[(n()(),a._47(null,["\n "])),(n()(),a._27(0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),a._47(null,["detail "," page"])),(n()(),a._47(null,["\n "])),(n()(),a._27(0,null,null,1,"button",[],null,[[null,"click"]],function(n,l,u){var t=!0,i=n.component;if("click"===l){t=!1!==i.goBack()&&t}return t},null,null)),(n()(),a._47(null,["back"])),(n()(),a._47(null,["\n "]))],null,function(n,l){n(l,2,0,l.component.id)})}function e(n){return a._49(0,[(n()(),a._27(0,null,null,1,"detail",[],null,null,null,o,v)),a._26(114688,null,0,k,[s.a,s.d],null,null)],function(n,l){n(l,1,0)},null)}function c(n){return a._49(0,[(n()(),a._27(0,null,null,9,"li",[],null,null,null,null,null)),(n()(),a._47(null,["\n "])),(n()(),a._27(0,null,null,6,"a",[["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,l,u){var t=!0;if("click"===l){t=!1!==a._38(n,3).onClick(u.button,u.ctrlKey,u.metaKey,u.shiftKey)&&t}return t},null,null)),a._26(671744,[[2,4]],0,s.f,[s.d,s.a,b.g],{routerLink:[0,"routerLink"]},null),a._39(3),a._26(1720320,null,2,s.e,[s.d,a.s,a.V,a.k],{routerLinkActive:[0,"routerLinkActive"]},null),a._44(603979776,1,{links:1}),a._44(603979776,2,{linksWithHrefs:1}),(n()(),a._47(null,["\n ","\n "])),(n()(),a._47(null,["\n "]))],function(n,l){n(l,3,0,n(l,4,0,"/home","detail",l.context.$implicit));n(l,5,0,"active")},function(n,l){n(l,2,0,a._38(l,3).target,a._38(l,3).href),n(l,8,0,l.context.$implicit)})}function r(n){return a._49(0,[(n()(),a._47(null,["\n "])),(n()(),a._27(0,null,null,4,"ul",[],null,null,null,null,null)),(n()(),a._47(null,["\n "])),(n()(),a._22(16777216,null,null,1,null,c)),a._26(802816,null,0,b.h,[a._8,a._5,a.D],{ngForOf:[0,"ngForOf"]},null),(n()(),a._47(null,["\n "])),(n()(),a._47(null,[" \n\n "]))],function(n,l){n(l,4,0,l.component.list)},null)}function _(n){return a._49(0,[(n()(),a._27(0,null,null,1,"list",[],null,null,null,r,P)),a._26(114688,null,0,O,[],null,null)],function(n,l){n(l,1,0)},null)}Object.defineProperty(l,"__esModule",{value:!0});var a=u(31),f=function(){function n(){}return n}(),s=u(147),p=function(){function n(){}return n.prototype.ngOnInit=function(){},n}(),d=["home[_ngcontent-%COMP%] {\n overflow: hidden;\n }\n .list[_ngcontent-%COMP%] {\n width: 30%;\n margin-right: 20px;\n border-right: 1px solid #ccc;\n }\n .list[_ngcontent-%COMP%], .detail[_ngcontent-%COMP%] {\n display: inline-block;\n vertical-align: top\n }"],h=a._25({encapsulation:0,styles:d,data:{}}),g=a._23("home",p,i,{},{},[]),k=function(){function n(n,l){this._route=n,this._router=l}return n.prototype.goBack=function(){this._router.navigate(["/home"])},n.prototype.ngOnInit=function(){var n=this;this._route.params.map(function(n){return n.id}).subscribe(function(l){console.log("detial"),n.id=l})},n.ctorParameters=function(){return[{type:s.a},{type:s.d}]},n}(),m=[],v=a._25({encapsulation:2,styles:m,data:{}}),y=a._23("detail",k,e,{},{},[]),b=u(53),O=function(){function n(){this.list=[1,2,3,4,5,6,7]}return n.prototype.ngOnInit=function(){console.log("list")},n.ctorParameters=function(){return[]},n}(),M=["a[_ngcontent-%COMP%]{\n padding: 0 10px;\n }\n a.active[_ngcontent-%COMP%]{\n color: #fff;\n background: pink\n }"],P=a._25({encapsulation:0,styles:M,data:{}}),C=a._23("list",O,_,{},{},[]);u.d(l,"HomeModuleNgFactory",function(){return x});var x=a._24(f,[],function(n){return a._35([a._36(512,a.o,a._17,[[8,[g,y,C]],[3,a.o],a.K]),a._36(4608,b.k,b.j,[a.F,[2,b.o]]),a._36(512,b.b,b.b,[]),a._36(512,s.g,s.g,[[2,s.i],[2,s.d]]),a._36(512,f,f,[]),a._36(1024,s.c,function(){return[[{path:"",component:p,children:[{path:"",redirectTo:"list",pathMatch:"full"},{path:"detail/:id",component:k},{path:"list",component:O}]}]]},[])])})}}); -------------------------------------------------------------------------------- /dist/app.bundle.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([4],{344:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(146),u=function(){function e(){}return e}();Object(o.a)().bootstrapModule(u)}},[344]); -------------------------------------------------------------------------------- /dist/app.bundle.js.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kunl/Angular-webpack-AOT/e2fd43e128e6a9228ed824785d031eb05ae927e9/dist/app.bundle.js.gz -------------------------------------------------------------------------------- /dist/polyfills.bundle.js: -------------------------------------------------------------------------------- 1 | !function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e=window.webpackJsonp;window.webpackJsonp=function(r,i,a){for(var u,c,s,f=0,l=[];f0?o(r(t),9007199254740991):0}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(4),o=e(14),i=e(11),a=e(33)("src"),u=Function.toString,c=(""+u).split("toString");e(5).inspectSource=function(t){return u.call(t)},(t.exports=function(t,n,e,u){var s="function"==typeof e;s&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(s&&(i(e,a)||o(e,a,t[n]?""+t[n]:c.join(String(n)))),t===r?t[n]=e:u?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,n,e){var r=e(0),o=e(2),i=e(29),a=/"/g,u=function(t,n,e,r){var o=String(i(t)),u="<"+n;return""!==e&&(u+=" "+e+'="'+String(r).replace(a,""")+'"'),u+">"+o+""};t.exports=function(t,n){var e={};e[t]=n(u),r(r.P+r.F*o(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",e)}},function(t,n,e){var r=e(7),o=e(32);t.exports=e(9)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(29);t.exports=function(t){return Object(r(t))}},,function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){return!!t&&r(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,e){var r=e(46),o=e(29);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(0),o=e(5),i=e(2);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],a={};a[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",a)}},function(t,n,e){var r=e(11),o=e(15),i=e(68)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,n,e){var r=e(34),o=e(46),i=e(15),a=e(10),u=e(249);t.exports=function(t,n){var e=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=n||u;return function(n,u,v){for(var d,g,y=i(n),m=o(y),b=r(u,v,3),_=a(m.length),k=0,w=e?h(n,_):c?h(n,0):void 0;_>k;k++)if((p||k in m)&&(d=m[k],g=b(d,k,y),t))if(e)w[k]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return k;case 2:w.push(d)}else if(f)return!1;return l?-1:s||f?f:w}}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(56),o=e(32),i=e(18),a=e(26),u=e(11),c=e(100),s=Object.getOwnPropertyDescriptor;n.f=e(9)?s:function(t,n){if(t=i(t),n=a(n,!0),c)try{return s(t,n)}catch(t){}if(u(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){"use strict";if(e(9)){var r=e(45),o=e(4),i=e(2),a=e(0),u=e(63),c=e(87),s=e(34),f=e(50),l=e(32),p=e(14),h=e(49),v=e(22),d=e(10),g=e(132),y=e(36),m=e(26),b=e(11),_=e(71),k=e(3),w=e(15),S=e(81),T=e(37),E=e(20),x=e(38).f,O=e(82),P=e(33),M=e(6),F=e(21),j=e(67),D=e(133),I=e(60),A=e(42),L=e(83),R=e(48),N=e(84),C=e(124),Z=e(7),z=e(23),H=Z.f,W=z.f,B=o.RangeError,U=o.TypeError,q=o.Uint8Array,V=Array.prototype,G=c.ArrayBuffer,X=c.DataView,K=F(0),Y=F(2),J=F(3),$=F(4),Q=F(5),tt=F(6),nt=j(!0),et=j(!1),rt=I.values,ot=I.keys,it=I.entries,at=V.lastIndexOf,ut=V.reduce,ct=V.reduceRight,st=V.join,ft=V.sort,lt=V.slice,pt=V.toString,ht=V.toLocaleString,vt=M("iterator"),dt=M("toStringTag"),gt=P("typed_constructor"),yt=P("def_constructor"),mt=u.CONSTR,bt=u.TYPED,_t=u.VIEW,kt=F(1,function(t,n){return xt(D(t,t[yt]),n)}),wt=i(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),St=!!q&&!!q.prototype.set&&i(function(){new q(1).set({})}),Tt=function(t,n){var e=v(t);if(e<0||e%n)throw B("Wrong offset!");return e},Et=function(t){if(k(t)&&bt in t)return t;throw U(t+" is not a typed array!")},xt=function(t,n){if(!(k(t)&> in t))throw U("It is not a typed array constructor!");return new t(n)},Ot=function(t,n){return Pt(D(t,t[yt]),n)},Pt=function(t,n){for(var e=0,r=n.length,o=xt(t,r);r>e;)o[e]=n[e++];return o},Mt=function(t,n,e){H(t,n,{get:function(){return this._d[e]}})},Ft=function(t){var n,e,r,o,i,a,u=w(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,p=O(u);if(void 0!=p&&!S(p)){for(a=p.call(u),r=[],n=0;!(i=a.next()).done;n++)r.push(i.value);u=r}for(l&&c>2&&(f=s(f,arguments[2],2)),n=0,e=d(u.length),o=xt(this,e);e>n;n++)o[n]=l?f(u[n],n):u[n];return o},jt=function(){for(var t=0,n=arguments.length,e=xt(this,n);n>t;)e[t]=arguments[t++];return e},Dt=!!q&&i(function(){ht.call(new q(1))}),It=function(){return ht.apply(Dt?lt.call(Et(this)):Et(this),arguments)},At={copyWithin:function(t,n){return C.call(Et(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return $(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Et(this),arguments)},filter:function(t){return Ot(this,Y(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return st.apply(Et(this),arguments)},lastIndexOf:function(t){return at.apply(Et(this),arguments)},map:function(t){return kt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(Et(this),arguments)},reduceRight:function(t){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,n=this,e=Et(n).length,r=Math.floor(e/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return ft.call(Et(this),t)},subarray:function(t,n){var e=Et(this),r=e.length,o=y(t,r);return new(D(e,e[yt]))(e.buffer,e.byteOffset+o*e.BYTES_PER_ELEMENT,d((void 0===n?r:y(n,r))-o))}},Lt=function(t,n){return Ot(this,lt.call(Et(this),t,n))},Rt=function(t){Et(this);var n=Tt(arguments[1],1),e=this.length,r=w(t),o=d(r.length),i=0;if(o+n>e)throw B("Wrong length!");for(;i255?255:255&r),o.v[h](e*n+o.o,r,wt)},M=function(t,n){H(t,n,{get:function(){return O(this,n)},set:function(t){return P(this,n,t)},enumerable:!0})};b?(v=e(function(t,e,r,o){f(t,v,s,"_d");var i,a,u,c,l=0,h=0;if(k(e)){if(!(e instanceof G||"ArrayBuffer"==(c=_(e))||"SharedArrayBuffer"==c))return bt in e?Pt(v,e):Ft.call(v,e);i=e,h=Tt(r,n);var y=e.byteLength;if(void 0===o){if(y%n)throw B("Wrong length!");if((a=y-h)<0)throw B("Wrong length!")}else if((a=d(o)*n)+h>y)throw B("Wrong length!");u=a/n}else u=g(e),a=u*n,i=new G(a);for(p(t,"_d",{b:i,o:h,l:a,e:u,v:new X(i)});ldocument.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(u.prototype=r(t),e=new u,u.prototype=null,e[a]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(103),o=e(69).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){"use strict";var r=e(71),o={};o[e(6)("toStringTag")]="z",o+""!="[object z]"&&e(12)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},,function(t,n,e){var r=e(103),o=e(69);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports={}},function(t,n,e){var r=e(3);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,e){var r=e(7).f,o=e(11),i=e(6)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n){t.exports=!1},function(t,n,e){var r=e(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(6)("unscopables"),o=Array.prototype;void 0==o[r]&&e(14)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,n,e){"use strict";var r=e(4),o=e(7),i=e(9),a=e(6)("species");t.exports=function(t){var n=r[t];i&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(12);t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},,,,function(t,n,e){var r=e(4),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(0),o=e(29),i=e(2),a=e(73),u="["+a+"]",c="​…",s=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t,n,e){var o={},u=i(function(){return!!a[t]()||c[t]()!=c}),s=o[t]=u?n(p):a[t];e&&(o[e]=s),r(r.P+r.F*u,"String",o)},p=l.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(s,"")),2&n&&(t=t.replace(f,"")),t};t.exports=l},function(t,n,e){"use strict";var r=e(115)(!0);e(77)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(14),o=e(12),i=e(2),a=e(29),u=e(6);t.exports=function(t,n,e){var c=u(t),s=e(a,c,""[t]),f=s[0],l=s[1];i(function(){var n={};return n[c]=function(){return 7},7!=""[t](n)})&&(o(String.prototype,t,f),r(RegExp.prototype,c,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},function(t,n,e){"use strict";var r=e(47),o=e(125),i=e(42),a=e(18);t.exports=e(77)(Array,"Array",function(t,n){this._t=a(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(34),o=e(121),i=e(81),a=e(1),u=e(10),c=e(82),s={},f={},n=t.exports=function(t,n,e,l,p){var h,v,d,g,y=p?function(){return t}:c(t),m=r(e,l,n?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(h=u(t.length);h>b;b++)if((g=n?m(a(v=t[b])[0],v[1]):m(t[b]))===s||g===f)return g}else for(d=y.call(t);!(v=d.next()).done;)if((g=o(d,m,v.value,n))===s||g===f)return g};n.BREAK=s,n.RETURN=f},function(t,n,e){"use strict";var r=e(4),o=e(0),i=e(12),a=e(49),u=e(28),c=e(61),s=e(50),f=e(3),l=e(2),p=e(83),h=e(44),v=e(74);t.exports=function(t,n,e,d,g,y){var m=r[t],b=m,_=g?"set":"add",k=b&&b.prototype,w={},S=function(t){var n=k[t];i(k,t,"delete"==t?function(t){return!(y&&!f(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof b&&(y||k.forEach&&!l(function(){(new b).entries().next()}))){var T=new b,E=T[_](y?{}:-0,1)!=T,x=l(function(){T.has(1)}),O=p(function(t){new b(t)}),P=!y&&l(function(){for(var t=new b,n=5;n--;)t[_](n,n);return!t.has(-0)});O||(b=n(function(n,e){s(n,b,t);var r=v(new m,n,b);return void 0!=e&&c(e,g,r[_],r),r}),b.prototype=k,k.constructor=b),(x||P)&&(S("delete"),S("has"),g&&S("get")),(P||E)&&S(_),y&&k.clear&&delete k.clear}else b=d.getConstructor(n,t,g,_),a(b.prototype,e),u.NEED=!0;return h(b,t),w[t]=b,o(o.G+o.W+o.F*(b!=m),w),y||d.setStrong(b,t,g),b}},function(t,n,e){for(var r,o=e(4),i=e(14),a=e(33),u=a("typed_array"),c=a("view"),s=!(!o.ArrayBuffer||!o.DataView),f=s,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=o[p[l++]])?(i(r.prototype,u,!0),i(r.prototype,c,!0)):f=!1;t.exports={ABV:s,CONSTR:f,TYPED:u,VIEW:c}},,,,function(t,n,e){var r=e(18),o=e(10),i=e(36);t.exports=function(t){return function(n,e,a){var u,c=r(n),s=o(c.length),f=i(a,s);if(t&&e!=e){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(54)("keys"),o=e(33);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(35);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(35),o=e(6)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=a(n=Object(t),o))?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(3),o=e(1),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(34)(Function.call,e(23).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,e){var r=e(3),o=e(72).set;t.exports=function(t,n,e){var i,a=n.constructor;return a!==e&&"function"==typeof a&&(i=a.prototype)!==e.prototype&&r(i)&&o&&o(t,i),t}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},function(t,n,e){"use strict";var r=e(45),o=e(0),i=e(12),a=e(14),u=e(11),c=e(42),s=e(116),f=e(44),l=e(20),p=e(6)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,d,g,y,m){s(e,n,d);var b,_,k,w=function(t){if(!h&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",T="values"==g,E=!1,x=t.prototype,O=x[p]||x["@@iterator"]||g&&x[g],P=O||w(g),M=g?T?w("entries"):P:void 0,F="Array"==n?x.entries||O:O;if(F&&(k=l(F.call(new t)))!==Object.prototype&&k.next&&(f(k,S,!0),r||u(k,p)||a(k,p,v)),T&&O&&"values"!==O.name&&(E=!0,P=function(){return O.call(this)}),r&&!m||!h&&!E&&x[p]||a(x,p,P),c[n]=P,c[S]=v,g)if(b={values:T?P:w("values"),keys:y?P:w("keys"),entries:M},m)for(_ in b)_ in x||i(x,_,b[_]);else o(o.P+o.F*(h||E),n,b);return b}},function(t,n,e){var r=e(79),o=e(29);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(o(t))}},function(t,n,e){var r=e(3),o=e(35),i=e(6)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,e){var r=e(6)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){var r=e(42),o=e(6)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(71),o=e(6)("iterator"),i=e(42);t.exports=e(5).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){var r=e(6)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:e=!0}},i[r]=function(){return a},t(i)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(15),o=e(36),i=e(10);t.exports=function(t){for(var n=r(this),e=i(n.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,e),c=a>2?arguments[2]:void 0,s=void 0===c?e:o(c,e);s>u;)n[u++]=t;return n}},function(t,n,e){"use strict";var r=e(1);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){for(var r=e(60),o=e(41),i=e(12),a=e(4),u=e(14),c=e(42),s=e(6),f=s("iterator"),l=s("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(h),d=0;d>1,f=23===n?C(2,-24)-C(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for(t=N(t),t!=t||t===L?(o=t!=t?1:0,r=c):(r=Z(z(t)/H),t*(i=C(2,-r))<1&&(r--,i*=2),t+=r+s>=1?f/i:f*C(2,1-s),t*i>=2&&(r++,i/=2),r+s>=c?(o=0,r=c):r+s>=1?(o=(t*i-1)*C(2,n),r+=s):(o=t*C(2,s-1)*C(2,n),r=0));n>=8;a[l++]=255&o,o/=256,n-=8);for(r=r<0;a[l++]=255&r,r/=256,u-=8);return a[--l]|=128*p,a}function o(t,n,e){var r,o=8*e-n-1,i=(1<>1,u=o-7,c=e-1,s=t[c--],f=127&s;for(s>>=7;u>0;f=256*f+t[c],c--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=n;u>0;r=256*r+t[c],c--,u-=8);if(0===f)f=1-a;else{if(f===i)return r?NaN:s?-L:L;r+=C(2,n),f-=a}return(s?-1:1)*r*C(2,f-n)}function i(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function u(t){return[255&t,t>>8&255]}function c(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function s(t){return r(t,52,8)}function f(t){return r(t,23,4)}function l(t,n,e){x(t[M],n,{get:function(){return this[e]}})}function p(t,n,e,r){var o=+e,i=T(o);if(i+n>t[B])throw A(F);var a=t[W]._b,u=i+t[U],c=a.slice(u,u+n);return r?c:c.reverse()}function h(t,n,e,r,o,i){var a=+e,u=T(a);if(u+n>t[B])throw A(F);for(var c=t[W]._b,s=u+t[U],f=r(+o),l=0;lX;)(q=G[X++])in j||m(j,q,R[q]);g||(V.constructor=j)}var K=new D(new j(2)),Y=D[M].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||b(D[M],{setInt8:function(t,n){Y.call(this,t,n<<24>>24)},setUint8:function(t,n){Y.call(this,t,n<<24>>24)}},!0)}else j=function(t){k(this,j,"ArrayBuffer");var n=T(t);this._b=O.call(Array(n),0),this[B]=n},D=function(t,n,e){k(this,D,"DataView"),k(t,j,"DataView");var r=t[B],o=w(n);if(o<0||o>r)throw A("Wrong offset!");if(e=void 0===e?r-o:S(e),o+e>r)throw A("Wrong length!");this[W]=t,this[U]=o,this[B]=e},d&&(l(j,"byteLength","_l"),l(D,"buffer","_b"),l(D,"byteLength","_l"),l(D,"byteOffset","_o")),b(D[M],{getInt8:function(t){return p(this,1,t)[0]<<24>>24},getUint8:function(t){return p(this,1,t)[0]},getInt16:function(t){var n=p(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=p(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return i(p(this,4,t,arguments[1]))},getUint32:function(t){return i(p(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(p(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(p(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){h(this,1,t,a,n)},setUint8:function(t,n){h(this,1,t,a,n)},setInt16:function(t,n){h(this,2,t,u,n,arguments[2])},setUint16:function(t,n){h(this,2,t,u,n,arguments[2])},setInt32:function(t,n){h(this,4,t,c,n,arguments[2])},setUint32:function(t,n){h(this,4,t,c,n,arguments[2])},setFloat32:function(t,n){h(this,4,t,f,n,arguments[2])},setFloat64:function(t,n){h(this,8,t,s,n,arguments[2])}});P(j,"ArrayBuffer"),P(D,"DataView"),m(D[M],y.VIEW,!0),n.ArrayBuffer=j,n.DataView=D},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},,,,,,,,,,,function(t,n,e){"use strict";var r=e(4),o=e(11),i=e(9),a=e(0),u=e(12),c=e(28).KEY,s=e(2),f=e(54),l=e(44),p=e(33),h=e(6),v=e(102),d=e(150),g=e(151),y=e(70),m=e(1),b=e(18),_=e(26),k=e(32),w=e(37),S=e(106),T=e(23),E=e(7),x=e(41),O=T.f,P=E.f,M=S.f,F=r.Symbol,j=r.JSON,D=j&&j.stringify,I=h("_hidden"),A=h("toPrimitive"),L={}.propertyIsEnumerable,R=f("symbol-registry"),N=f("symbols"),C=f("op-symbols"),Z=Object.prototype,z="function"==typeof F,H=r.QObject,W=!H||!H.prototype||!H.prototype.findChild,B=i&&s(function(){return 7!=w(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=O(Z,n);r&&delete Z[n],P(t,n,e),r&&t!==Z&&P(Z,n,r)}:P,U=function(t){var n=N[t]=w(F.prototype);return n._k=t,n},q=z&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},V=function(t,n,e){return t===Z&&V(C,n,e),m(t),n=_(n,!0),m(e),o(N,n)?(e.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),e=w(e,{enumerable:k(0,!1)})):(o(t,I)||P(t,I,k(1,{})),t[I][n]=!0),B(t,n,e)):P(t,n,e)},G=function(t,n){m(t);for(var e,r=g(n=b(n)),o=0,i=r.length;i>o;)V(t,e=r[o++],n[e]);return t},X=function(t,n){return void 0===n?w(t):G(w(t),n)},K=function(t){var n=L.call(this,t=_(t,!0));return!(this===Z&&o(N,t)&&!o(C,t))&&(!(n||!o(this,t)||!o(N,t)||o(this,I)&&this[I][t])||n)},Y=function(t,n){if(t=b(t),n=_(n,!0),t!==Z||!o(N,n)||o(C,n)){var e=O(t,n);return!e||!o(N,n)||o(t,I)&&t[I][n]||(e.enumerable=!0),e}},J=function(t){for(var n,e=M(b(t)),r=[],i=0;e.length>i;)o(N,n=e[i++])||n==I||n==c||r.push(n);return r},$=function(t){for(var n,e=t===Z,r=M(e?C:b(t)),i=[],a=0;r.length>a;)!o(N,n=r[a++])||e&&!o(Z,n)||i.push(N[n]);return i};z||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===Z&&n.call(C,e),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),B(this,t,k(1,e))};return i&&W&&B(Z,t,{configurable:!0,set:n}),U(t)},u(F.prototype,"toString",function(){return this._k}),T.f=Y,E.f=V,e(38).f=S.f=J,e(56).f=K,e(55).f=$,i&&!e(45)&&u(Z,"propertyIsEnumerable",K,!0),v.f=function(t){return U(h(t))}),a(a.G+a.W+a.F*!z,{Symbol:F});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)h(Q[tt++]);for(var nt=x(h.store),et=0;nt.length>et;)d(nt[et++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return o(R,t+="")?R[t]:R[t]=F(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in R)if(R[n]===t)return n},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!z,"Object",{create:X,defineProperty:V,defineProperties:G,getOwnPropertyDescriptor:Y,getOwnPropertyNames:J,getOwnPropertySymbols:$}),j&&a(a.S+a.F*(!z||s(function(){var t=F();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!q(t)){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return n=r[1],"function"==typeof n&&(e=n),!e&&y(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!q(n))return n}),r[1]=n,D.apply(j,r)}}}),F.prototype[A]||e(14)(F.prototype,A,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){t.exports=!e(9)&&!e(2)(function(){return 7!=Object.defineProperty(e(101)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(3),o=e(4).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){n.f=e(6)},function(t,n,e){var r=e(11),o=e(18),i=e(67)(!1),a=e(68)("IE_PROTO");t.exports=function(t,n){var e,u=o(t),c=0,s=[];for(e in u)e!=a&&r(u,e)&&s.push(e);for(;n.length>c;)r(u,e=n[c++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(7),o=e(1),i=e(41);t.exports=e(9)?Object.defineProperties:function(t,n){o(t);for(var e,a=i(n),u=a.length,c=0;u>c;)r.f(t,e=a[c++],n[e]);return t}},function(t,n,e){var r=e(4).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(18),o=e(38).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,n,e){"use strict";var r=e(41),o=e(55),i=e(56),a=e(15),u=e(46),c=Object.assign;t.exports=!c||e(2)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=c({},t)[e]||Object.keys(c({},n)).join("")!=r})?function(t,n){for(var e=a(t),c=arguments.length,s=1,f=o.f,l=i.f;c>s;)for(var p,h=u(arguments[s++]),v=f?r(h).concat(f(h)):r(h),d=v.length,g=0;d>g;)l.call(h,p=v[g++])&&(e[p]=h[p]);return e}:c},function(t,n,e){"use strict";var r=e(27),o=e(3),i=e(172),a=[].slice,u={},c=function(t,n,e){if(!(n in u)){for(var r=[],o=0;o>>0||(a.test(e)?16:10))}:r},function(t,n,e){var r=e(4).parseFloat,o=e(57).trim;t.exports=1/r(e(73)+"-0")!=-1/0?function(t){var n=o(String(t),3),e=r(n);return 0===e&&"-"==n.charAt(0)?-0:e}:r},function(t,n,e){var r=e(35);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(n);return+t}},function(t,n,e){"use strict";var r=e(22),o=e(29);t.exports=function(t){var n=String(o(this)),e="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n))1&i&&(e+=n);return e}},function(t,n,e){var r=e(3),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,e){var r=e(22),o=e(29);t.exports=function(t){return function(n,e){var i,a,u=String(o(n)),c=r(e),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,n,e){"use strict";var r=e(37),o=e(32),i=e(44),a={};e(14)(a,e(6)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(a,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){e(59)("match",1,function(t,n,e){return[function(e){"use strict";var r=t(this),o=void 0==e?void 0:e[n];return void 0!==o?o.call(e,r):new RegExp(e)[n](String(r))},e]})},function(t,n,e){e(59)("replace",2,function(t,n,e){return[function(r,o){"use strict";var i=t(this),a=void 0==r?void 0:r[n];return void 0!==a?a.call(r,i,o):e.call(String(i),r,o)},e]})},function(t,n,e){e(59)("search",1,function(t,n,e){return[function(e){"use strict";var r=t(this),o=void 0==e?void 0:e[n];return void 0!==o?o.call(e,r):new RegExp(e)[n](String(r))},e]})},function(t,n,e){e(59)("split",2,function(t,n,r){"use strict";var o=e(79),i=r,a=[].push,u="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[u]||2!="ab".split(/(?:ab)*/)[u]||4!=".".split(/(.?)(.?)/)[u]||".".split(/()()/)[u]>1||"".split(/.?/)[u]){var c=void 0===/()??/.exec("")[1];r=function(t,n){var e=String(this);if(void 0===t&&0===n)return[];if(!o(t))return i.call(e,t,n);var r,s,f,l,p,h=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===n?4294967295:n>>>0,y=new RegExp(t.source,v+"g");for(c||(r=new RegExp("^"+y.source+"$(?!\\s)",v));(s=y.exec(e))&&!((f=s.index+s[0][u])>d&&(h.push(e.slice(d,s.index)),!c&&s[u]>1&&s[0].replace(r,function(){for(p=1;p1&&s.index=g));)y.lastIndex===s.index&&y.lastIndex++;return d===e[u]?!l&&y.test("")||h.push(""):h.push(e.slice(d)),h[u]>g?h.slice(0,g):h}}else"0".split(void 0,0)[u]&&(r=function(t,n){return void 0===t&&0===n?[]:i.call(this,t,n)});return[function(e,o){var i=t(this),a=void 0==e?void 0:e[n];return void 0!==a?a.call(e,i,o):r.call(String(i),e,o)},r]})},function(t,n,e){var r=e(1);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){"use strict";var r=e(7),o=e(32);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){var r=e(27),o=e(15),i=e(46),a=e(10);t.exports=function(t,n,e,u,c){r(n);var s=o(t),f=i(s),l=a(s.length),p=c?l-1:0,h=c?-1:1;if(e<2)for(;;){if(p in f){u=f[p],p+=h;break}if(p+=h,c?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:l>p;p+=h)p in f&&(u=n(u,f[p],p,s));return u}},function(t,n,e){"use strict";var r=e(15),o=e(36),i=e(10);t.exports=[].copyWithin||function(t,n){var e=r(this),a=i(e.length),u=o(t,a),c=o(n,a),s=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===s?a:o(s,a))-c,a-u),l=1;for(c0;)c in e?e[u]=e[c]:delete e[u],u+=l,c+=l;return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){e(9)&&"g"!=/./g.flags&&e(7).f(RegExp.prototype,"flags",{configurable:!0,get:e(85)})},function(t,n,e){"use strict";var r=e(128),o=e(43);t.exports=e(62)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=r.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(o(this,"Map"),0===t?0:t,n)}},r,!0)},function(t,n,e){"use strict";var r=e(7).f,o=e(37),i=e(49),a=e(34),u=e(50),c=e(61),s=e(77),f=e(125),l=e(48),p=e(9),h=e(28).fastKey,v=e(43),d=p?"_s":"size",g=function(t,n){var e,r=h(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,s){var f=t(function(t,r){u(t,f,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=r&&c(r,e,t[s],t)});return i(f.prototype,{clear:function(){for(var t=v(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var e=v(this,n),r=g(e,t);if(r){var o=r.n,i=r.p;delete e._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),e._f==r&&(e._f=o),e._l==r&&(e._l=i),e[d]--}return!!r},forEach:function(t){v(this,n);for(var e,r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(v(this,n),t)}}),p&&r(f.prototype,"size",{get:function(){return v(this,n)[d]}}),f},def:function(t,n,e){var r,o,i=g(t,n);return i?i.v=e:(t._l=i={i:o=h(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:g,setStrong:function(t,n,e){s(t,n,function(t,e){this._t=v(t,n),this._k=e,this._l=void 0},function(){for(var t=this,n=t._k,e=t._l;e&&e.r;)e=e.p;return t._t&&(t._l=e=e?e.n:t._t._f)?"keys"==n?f(0,e.k):"values"==n?f(0,e.v):f(0,[e.k,e.v]):(t._t=void 0,f(1))},e?"entries":"values",!e,!0),l(n)}}},function(t,n,e){"use strict";var r=e(128),o=e(43);t.exports=e(62)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,n,e){"use strict";var r,o=e(21)(0),i=e(12),a=e(28),u=e(107),c=e(131),s=e(3),f=e(2),l=e(43),p=a.getWeak,h=Object.isExtensible,v=c.ufstore,d={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(s(t)){var n=p(t);return!0===n?v(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return c.def(l(this,"WeakMap"),t,n)}},m=t.exports=e(62)("WeakMap",g,y,c,!0,!0);f(function(){return 7!=(new m).set((Object.freeze||Object)(d),7).get(d)})&&(r=c.getConstructor(g,"WeakMap"),u(r.prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(t){var n=m.prototype,e=n[t];i(n,t,function(n,o){if(s(n)&&!h(n)){this._f||(this._f=new r);var i=this._f[t](n,o);return"set"==t?this:i}return e.call(this,n,o)})}))},function(t,n,e){"use strict";var r=e(49),o=e(28).getWeak,i=e(1),a=e(3),u=e(50),c=e(61),s=e(21),f=e(11),l=e(43),p=s(5),h=s(6),v=0,d=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},y=function(t,n){return p(t.a,function(t){return t[0]===n})};g.prototype={get:function(t){var n=y(this,t);if(n)return n[1]},has:function(t){return!!y(this,t)},set:function(t,n){var e=y(this,t);e?e[1]=n:this.a.push([t,n])},delete:function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,e,i){var s=t(function(t,r){u(t,s,n,"_i"),t._t=n,t._i=v++,t._l=void 0,void 0!=r&&c(r,e,t[i],t)});return r(s.prototype,{delete:function(t){if(!a(t))return!1;var e=o(t);return!0===e?d(l(this,n)).delete(t):e&&f(e,this._i)&&delete e[this._i]},has:function(t){if(!a(t))return!1;var e=o(t);return!0===e?d(l(this,n)).has(t):e&&f(e,this._i)}}),s},def:function(t,n,e){var r=o(i(n),!0);return!0===r?d(t).set(n,e):r[t._i]=e,t},ufstore:d}},function(t,n,e){var r=e(22),o=e(10);t.exports=function(t){if(void 0===t)return 0;var n=r(t),e=o(n);if(n!==e)throw RangeError("Wrong length!");return e}},function(t,n,e){var r=e(1),o=e(27),i=e(6)("species");t.exports=function(t,n){var e,a=r(t).constructor;return void 0===a||void 0==(e=r(a)[i])?n:o(e)}},,,,,,,,,,,,,,,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(149),o=(e.n(r),e(152)),i=(e.n(o),e(170)),a=(e.n(i),e(175)),u=(e.n(a),e(177)),c=(e.n(u),e(179)),s=(e.n(c),e(192)),f=(e.n(s),e(211)),l=(e.n(f),e(233)),p=(e.n(l),e(241)),h=(e.n(p),e(264)),v=(e.n(h),e(267)),d=(e.n(v),e(268)),g=(e.n(d),e(269)),y=(e.n(g),e(270)),m=(e.n(y),e(272)),b=(e.n(m),e(284)),_=(e.n(b),e(300)),k=(e.n(_),e(311)),w=(e.n(k),e(312));e.n(w)},function(t,n,e){e(99),e(39),t.exports=e(5).Symbol},function(t,n,e){var r=e(4),o=e(5),i=e(45),a=e(102),u=e(7).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||u(n,t,{value:a.f(t)})}},function(t,n,e){var r=e(41),o=e(55),i=e(56);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var a,u=e(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&n.push(a);return n}},function(t,n,e){e(99),e(153),e(154),e(155),e(156),e(157),e(158),e(159),e(160),e(161),e(162),e(163),e(164),e(165),e(166),e(167),e(169),e(39),t.exports=e(5).Object},function(t,n,e){var r=e(0);r(r.S,"Object",{create:e(37)})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(9),"Object",{defineProperty:e(7).f})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(9),"Object",{defineProperties:e(104)})},function(t,n,e){var r=e(18),o=e(23).f;e(19)("getOwnPropertyDescriptor",function(){return function(t,n){return o(r(t),n)}})},function(t,n,e){var r=e(15),o=e(20);e(19)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(15),o=e(41);e(19)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){e(19)("getOwnPropertyNames",function(){return e(106).f})},function(t,n,e){var r=e(3),o=e(28).onFreeze;e(19)("freeze",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(3),o=e(28).onFreeze;e(19)("seal",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(3),o=e(28).onFreeze;e(19)("preventExtensions",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(3);e(19)("isFrozen",function(t){return function(n){return!r(n)||!!t&&t(n)}})},function(t,n,e){var r=e(3);e(19)("isSealed",function(t){return function(n){return!r(n)||!!t&&t(n)}})},function(t,n,e){var r=e(3);e(19)("isExtensible",function(t){return function(n){return!!r(n)&&(!t||t(n))}})},function(t,n,e){var r=e(0);r(r.S+r.F,"Object",{assign:e(107)})},function(t,n,e){var r=e(0);r(r.S,"Object",{is:e(168)})},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,e){var r=e(0);r(r.S,"Object",{setPrototypeOf:e(72).set})},function(t,n,e){e(171),e(173),e(174),t.exports=e(5).Function},function(t,n,e){var r=e(0);r(r.P,"Function",{bind:e(108)})},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e(9)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,n,e){"use strict";var r=e(3),o=e(20),i=e(6)("hasInstance"),a=Function.prototype;i in a||e(7).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,e){e(176),t.exports=e(5).parseInt},function(t,n,e){var r=e(0),o=e(109);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,n,e){e(178),t.exports=e(5).parseFloat},function(t,n,e){var r=e(0),o=e(110);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,n,e){e(180),e(181),e(182),e(183),e(184),e(185),e(186),e(187),e(188),e(189),e(190),e(191),t.exports=e(5).Number},function(t,n,e){"use strict";var r=e(4),o=e(11),i=e(35),a=e(74),u=e(26),c=e(2),s=e(38).f,f=e(23).f,l=e(7).f,p=e(57).trim,h=r.Number,v=h,d=h.prototype,g="Number"==i(e(37)(d)),y="trim"in String.prototype,m=function(t){var n=u(t,!1);if("string"==typeof n&&n.length>2){n=y?n.trim():p(n,3);var e,r,o,i=n.charCodeAt(0);if(43===i||45===i){if(88===(e=n.charCodeAt(2))||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var a,c=n.slice(2),s=0,f=c.length;so)return NaN;return parseInt(c,r)}}return+n};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof h&&(g?c(function(){d.valueOf.call(e)}):"Number"!=i(e))?a(new v(m(n)),e,h):m(n)};for(var b,_=e(9)?s(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;_.length>k;k++)o(v,b=_[k])&&!o(h,b)&&l(h,b,f(v,b));h.prototype=d,d.constructor=h,e(12)(r,"Number",h)}},function(t,n,e){"use strict";var r=e(0),o=e(22),i=e(111),a=e(112),u=1..toFixed,c=Math.floor,s=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,n){for(var e=-1,r=n;++e<6;)r+=t*s[e],s[e]=r%1e7,r=c(r/1e7)},p=function(t){for(var n=6,e=0;--n>=0;)e+=s[n],s[n]=c(e/t),e=e%t*1e7},h=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==s[t]){var e=String(s[t]);n=""===n?e:n+a.call("0",7-e.length)+e}return n},v=function(t,n,e){return 0===n?e:n%2==1?v(t,n-1,e*t):v(t*t,n/2,e)},d=function(t){for(var n=0,e=t;e>=4096;)n+=12,e/=4096;for(;e>=2;)n+=1,e/=2;return n};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(2)(function(){u.call({})})),"Number",{toFixed:function(t){var n,e,r,u,c=i(this,f),s=o(t),g="",y="0";if(s<0||s>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(g="-",c=-c),c>1e-21)if(n=d(c*v(2,69,1))-69,e=n<0?c*v(2,-n,1):c/v(2,n,1),e*=4503599627370496,(n=52-n)>0){for(l(0,e),r=s;r>=7;)l(1e7,0),r-=7;for(l(v(10,r,1),0),r=n-1;r>=23;)p(1<<23),r-=23;p(1<0?(u=y.length,y=g+(u<=s?"0."+a.call("0",s-u)+y:y.slice(0,u-s)+"."+y.slice(u-s))):y=g+y,y}})},function(t,n,e){"use strict";var r=e(0),o=e(2),i=e(111),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var n=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(n):a.call(n,t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,e){var r=e(0),o=e(4).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{isInteger:e(113)})},function(t,n,e){var r=e(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,e){var r=e(0),o=e(113),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,n,e){var r=e(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,e){var r=e(0),o=e(110);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,n,e){var r=e(0),o=e(109);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,n,e){e(193),e(194),e(195),e(196),e(197),e(198),e(199),e(200),e(202),e(203),e(204),e(205),e(206),e(207),e(208),e(209),e(210),t.exports=e(5).Math},function(t,n,e){var r=e(0),o=e(114),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,n,e){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=e(0),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(t,n,e){var r=e(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,e){var r=e(0),o=e(75);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,e){var r=e(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,n,e){var r=e(0),o=e(76);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,n,e){var r=e(0);r(r.S,"Math",{fround:e(201)})},function(t,n,e){var r=e(75),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),c=o(2,-126),s=function(t){return t+1/i-1/i};t.exports=Math.fround||function(t){var n,e,o=Math.abs(t),f=r(t);return ou||e!=e?f*(1/0):f*e)}},function(t,n,e){var r=e(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,n){for(var e,r,i=0,a=0,u=arguments.length,c=0;a0?(r=e/c,i+=r*r):i+=e;return c===1/0?1/0:c*Math.sqrt(i)}})},function(t,n,e){var r=e(0),o=Math.imul;r(r.S+r.F*e(2)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,n){var e=+t,r=+n,o=65535&e,i=65535&r;return 0|o*i+((65535&e>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log1p:e(114)})},function(t,n,e){var r=e(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,e){var r=e(0);r(r.S,"Math",{sign:e(75)})},function(t,n,e){var r=e(0),o=e(76),i=Math.exp;r(r.S+r.F*e(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,n,e){var r=e(0),o=e(76),i=Math.exp;r(r.S,"Math",{tanh:function(t){var n=o(t=+t),e=o(-t);return n==1/0?1:e==1/0?-1:(n-e)/(i(t)+i(-t))}})},function(t,n,e){var r=e(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,e){e(212),e(213),e(214),e(58),e(215),e(216),e(217),e(218),e(219),e(220),e(221),e(222),e(223),e(224),e(225),e(226),e(227),e(228),e(229),e(230),e(231),e(232),e(117),e(118),e(119),e(120),t.exports=e(5).String},function(t,n,e){var r=e(0),o=e(36),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var n,e=[],r=arguments.length,a=0;r>a;){if(n=+arguments[a++],o(n,1114111)!==n)throw RangeError(n+" is not a valid code point");e.push(n<65536?i(n):i(55296+((n-=65536)>>10),n%1024+56320))}return e.join("")}})},function(t,n,e){var r=e(0),o=e(18),i=e(10);r(r.S,"String",{raw:function(t){for(var n=o(t.raw),e=i(n.length),r=arguments.length,a=[],u=0;e>u;)a.push(String(n[u++])),u1?arguments[1]:void 0,r=o(n.length),u=void 0===e?r:Math.min(o(e),r),c=String(t);return a?a.call(n,c,u):n.slice(u-c.length,u)===c}})},function(t,n,e){"use strict";var r=e(0),o=e(78);r(r.P+r.F*e(80)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(0);r(r.P,"String",{repeat:e(112)})},function(t,n,e){"use strict";var r=e(0),o=e(10),i=e(78),a="".startsWith;r(r.P+r.F*e(80)("startsWith"),"String",{startsWith:function(t){var n=i(this,t,"startsWith"),e=o(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return a?a.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){"use strict";e(13)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,e){"use strict";e(13)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,e){"use strict";e(13)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,e){"use strict";e(13)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,e){"use strict";e(13)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,e){"use strict";e(13)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,e){"use strict";e(13)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,e){"use strict";e(13)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,e){"use strict";e(13)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,e){"use strict";e(13)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,e){"use strict";e(13)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,e){"use strict";e(13)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,e){"use strict";e(13)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,e){e(234),e(235),e(236),e(238),e(239),t.exports=Date},function(t,n,e){var r=e(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){"use strict";var r=e(0),o=e(15),i=e(26);r(r.P+r.F*e(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=o(this),e=i(n);return"number"!=typeof e||isFinite(e)?n.toISOString():null}})},function(t,n,e){var r=e(0),o=e(237);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,n,e){"use strict";var r=e(2),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),r=n<0?"-":n>9999?"+":"";return r+("00000"+Math.abs(n)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(e>99?e:"0"+a(e))+"Z"}:i},function(t,n,e){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&e(12)(r,"toString",function(){var t=i.call(this);return t===t?o.call(this):"Invalid Date"})},function(t,n,e){var r=e(6)("toPrimitive"),o=Date.prototype;r in o||e(14)(o,r,e(240))},function(t,n,e){"use strict";var r=e(1),o=e(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,n,e){e(58),e(242),e(243),e(244),e(245),e(246),e(247),e(248),e(251),e(252),e(253),e(254),e(255),e(256),e(257),e(258),e(259),e(260),e(261),e(262),e(263),e(60),t.exports=e(5).Array},function(t,n,e){var r=e(0);r(r.S,"Array",{isArray:e(70)})},function(t,n,e){"use strict";var r=e(34),o=e(0),i=e(15),a=e(121),u=e(81),c=e(10),s=e(122),f=e(82);o(o.S+o.F*!e(83)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,o,l,p=i(t),h="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,g=void 0!==d,y=0,m=f(p);if(g&&(d=r(d,v>2?arguments[2]:void 0,2)),void 0==m||h==Array&&u(m))for(n=c(p.length),e=new h(n);n>y;y++)s(e,y,g?d(p[y],y):p[y]);else for(l=m.call(p),e=new h;!(o=l.next()).done;y++)s(e,y,g?a(l,d,[o.value,y],!0):o.value);return e.length=y,e}})},function(t,n,e){"use strict";var r=e(0),o=e(122);r(r.S+r.F*e(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);n>t;)o(e,t,arguments[t++]);return e.length=n,e}})},function(t,n,e){"use strict";var r=e(0),o=e(18),i=[].join;r(r.P+r.F*(e(46)!=Object||!e(17)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,n,e){"use strict";var r=e(0),o=e(105),i=e(35),a=e(36),u=e(10),c=[].slice;r(r.P+r.F*e(2)(function(){o&&c.call(o)}),"Array",{slice:function(t,n){var e=u(this.length),r=i(this);if(n=void 0===n?e:n,"Array"==r)return c.call(this,t,n);for(var o=a(t,e),s=a(n,e),f=u(s-o),l=Array(f),p=0;p1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=e+r);r>=0;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,n,e){var r=e(0);r(r.P,"Array",{copyWithin:e(124)}),e(47)("copyWithin")},function(t,n,e){var r=e(0);r(r.P,"Array",{fill:e(84)}),e(47)("fill")},function(t,n,e){"use strict";var r=e(0),o=e(21)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(47)("find")},function(t,n,e){"use strict";var r=e(0),o=e(21)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(47)(i)},function(t,n,e){e(48)("Array")},function(t,n,e){e(265),e(266),e(126),e(117),e(118),e(119),e(120),t.exports=e(5).RegExp},function(t,n,e){var r=e(4),o=e(74),i=e(7).f,a=e(38).f,u=e(79),c=e(85),s=r.RegExp,f=s,l=s.prototype,p=/a/g,h=/a/g,v=new s(p)!==p;if(e(9)&&(!v||e(2)(function(){return h[e(6)("match")]=!1,s(p)!=p||s(h)==h||"/a/i"!=s(p,"i")}))){s=function(t,n){var e=this instanceof s,r=u(t),i=void 0===n;return!e&&r&&t.constructor===s&&i?t:o(v?new f(r&&!i?t.source:t,n):f((r=t instanceof s)?t.source:t,r&&i?c.call(t):n),e?this:l,s)};for(var d=a(f),g=0;d.length>g;)!function(t){t in s||i(s,t,{configurable:!0,get:function(){return f[t]},set:function(n){f[t]=n}})}(d[g++]);l.constructor=s,s.prototype=l,e(12)(r,"RegExp",s)}e(48)("RegExp")},function(t,n,e){"use strict";e(126);var r=e(1),o=e(85),i=e(9),a=/./.toString,u=function(t){e(12)(RegExp.prototype,"toString",t,!0)};e(2)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&u(function(){return a.call(this)})},function(t,n,e){e(39),e(58),e(86),e(127),t.exports=e(5).Map},function(t,n,e){e(39),e(58),e(86),e(129),t.exports=e(5).Set},function(t,n,e){e(39),e(60),e(130),t.exports=e(5).WeakMap},function(t,n,e){e(39),e(86),e(271),t.exports=e(5).WeakSet},function(t,n,e){"use strict";var r=e(131),o=e(43);e(62)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,n,e){e(273),e(274),e(275),e(276),e(277),e(278),e(279),e(280),e(281),e(282),e(283),e(39),t.exports=e(5)},function(t,n,e){"use strict";var r=e(0),o=e(63),i=e(87),a=e(1),u=e(36),c=e(10),s=e(3),f=e(4).ArrayBuffer,l=e(133),p=i.ArrayBuffer,h=i.DataView,v=o.ABV&&f.isView,d=p.prototype.slice,g=o.VIEW;r(r.G+r.W+r.F*(f!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||s(t)&&g in t}}),r(r.P+r.U+r.F*e(2)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==d&&void 0===n)return d.call(a(this),t);for(var e=a(this).byteLength,r=u(t,e),o=u(void 0===n?e:n,e),i=new(l(this,p))(c(o-r)),s=new h(this),f=new h(i),v=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[n._i++])in n._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,n,e){function r(t,n){var e,u,f=arguments.length<3?t:arguments[2];return s(t)===f?t[n]:(e=o.f(t,n))?a(e,"value")?e.value:void 0!==e.get?e.get.call(f):void 0:c(u=i(t))?r(u,n,f):void 0}var o=e(23),i=e(20),a=e(11),u=e(0),c=e(3),s=e(1);u(u.S,"Reflect",{get:r})},function(t,n,e){var r=e(23),o=e(0),i=e(1);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return r.f(i(t),n)}})},function(t,n,e){var r=e(0),o=e(20),i=e(1);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,e){var r=e(0),o=e(1),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{ownKeys:e(296)})},function(t,n,e){var r=e(38),o=e(55),i=e(1),a=e(4).Reflect;t.exports=a&&a.ownKeys||function(t){var n=r.f(i(t)),e=o.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(0),o=e(1),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,n,e){function r(t,n,e){var c,p,h=arguments.length<4?t:arguments[3],v=i.f(f(t),n);if(!v){if(l(p=a(t)))return r(p,n,e,h);v=s(0)}return u(v,"value")?!(!1===v.writable||!l(h))&&(c=i.f(h,n)||s(0),c.value=e,o.f(h,n,c),!0):void 0!==v.set&&(v.set.call(h,e),!0)}var o=e(7),i=e(23),a=e(20),u=e(11),c=e(0),s=e(32),f=e(1),l=e(3);c(c.S,"Reflect",{set:r})},function(t,n,e){var r=e(0),o=e(72);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,n){o.check(t,n);try{return o.set(t,n),!0}catch(t){return!1}}})},function(t,n,e){e(301),e(302),e(303),e(304),e(306),e(307),e(308),e(309),e(310),t.exports=e(5).Reflect},function(t,n,e){var r=e(25),o=e(1),i=r.key,a=r.set;r.exp({defineMetadata:function(t,n,e,r){a(t,n,o(e),i(r))}})},function(t,n,e){var r=e(25),o=e(1),i=r.key,a=r.map,u=r.store;r.exp({deleteMetadata:function(t,n){var e=arguments.length<3?void 0:i(arguments[2]),r=a(o(n),e,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var c=u.get(n);return c.delete(e),!!c.size||u.delete(n)}})},function(t,n,e){var r=e(25),o=e(1),i=e(20),a=r.has,u=r.get,c=r.key,s=function(t,n,e){if(a(t,n,e))return u(t,n,e);var r=i(n);return null!==r?s(t,r,e):void 0};r.exp({getMetadata:function(t,n){return s(t,o(n),arguments.length<3?void 0:c(arguments[2]))}})},function(t,n,e){var r=e(129),o=e(305),i=e(25),a=e(1),u=e(20),c=i.keys,s=i.key,f=function(t,n){var e=c(t,n),i=u(t);if(null===i)return e;var a=f(i,n);return a.length?e.length?o(new r(e.concat(a))):a:e};i.exp({getMetadataKeys:function(t){return f(a(t),arguments.length<2?void 0:s(arguments[1]))}})},function(t,n,e){var r=e(61);t.exports=function(t,n){var e=[];return r(t,!1,e.push,e,n),e}},function(t,n,e){var r=e(25),o=e(1),i=r.get,a=r.key;r.exp({getOwnMetadata:function(t,n){return i(t,o(n),arguments.length<3?void 0:a(arguments[2]))}})},function(t,n,e){var r=e(25),o=e(1),i=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(t){return i(o(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,n,e){var r=e(25),o=e(1),i=e(20),a=r.has,u=r.key,c=function(t,n,e){if(a(t,n,e))return!0;var r=i(n);return null!==r&&c(t,r,e)};r.exp({hasMetadata:function(t,n){return c(t,o(n),arguments.length<3?void 0:u(arguments[2]))}})},function(t,n,e){var r=e(25),o=e(1),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,n){return i(t,o(n),arguments.length<3?void 0:a(arguments[2]))}})},function(t,n,e){var r=e(25),o=e(1),i=e(27),a=r.key,u=r.set;r.exp({metadata:function(t,n){return function(e,r){u(t,n,(void 0!==r?o:i)(e),a(r))}}})},function(t,n,e){(function(t){/** 2 | * @license 3 | * Copyright Google Inc. All Rights Reserved. 4 | * 5 | * Use of this source code is governed by an MIT-style license that can be 6 | * found in the LICENSE file at https://angular.io/license 7 | */ 8 | !function(t,n){n()}(0,function(){"use strict";function n(t,n){for(var e=t.length-1;e>=0;e--)typeof t[e]===M&&(t[e]=Zone.current.wrap(t[e],n+"_"+e));return t}function e(t,e){for(var o=t.constructor.name,i=0;i=0&&"function"==typeof o[i.callbackIndex]){return Zone.current.scheduleMacroTask(i.name,o[i.callbackIndex],i,r,null)}return t.apply(n,o)}})}function s(t,n){t[O("OriginalDelegate")]=n}function f(){if(Z)return z;Z=!0;try{var t=window.navigator.userAgent;t.indexOf("MSIE ");return-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(z=!0),z}catch(t){}}function l(t,n,e){for(var r=e&&e.addEventListenerFnName||"addEventListener",o=e&&e.removeEventListenerFnName||"removeEventListener",i=e&&e.listenersFnName||"eventListeners",a=e&&e.removeAllFnName||"removeAllListeners",u=O(r),c="."+r+":",f="prependListener",l="."+f+":",h=function(t,n,e){if(!t.isRemoved){var r=t.callback;typeof r===X&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,n,[e]);var i=t.options;if(i&&"object"==typeof i&&i.once){var a=t.originalDelegate?t.originalDelegate:t.callback;n[o].apply(n,[e.type,a,i])}}},v=function(n){var e=this||t,r=e[U[n.type][W]];if(r)if(1===r.length)h(r[0],e,n);else for(var o=r.slice(),i=0;i1?new e(t,n):new e(t),u=Object.getOwnPropertyDescriptor(a,"onmessage");return u&&!1===u.configurable?(r=Object.create(a),o=a,["addEventListener","removeEventListener","send","close"].forEach(function(t){r[t]=function(){var n=Array.prototype.slice.call(arguments);if("addEventListener"===t||"removeEventListener"===t){var e=n.length>0?n[0]:void 0;if(e){var o=Zone.__symbol__("ON_PROPERTY"+e);a[o]=r[o]}}return a[t].apply(a,n)}})):r=a,i(r,["close","error","message","open"],o),r};var r=n.WebSocket;for(var o in e)r[o]=e[o]}function _(t,n,e){if(!e)return n;var r=e.filter(function(n){return n.target===t});if(!r||0===r.length)return n;var o=r[0].ignoreProperties;return n.filter(function(t){return-1===o.indexOf(t)})}function k(t,n,e,r){i(t,_(t,n,e),r)}function w(t,n){if(!I||L){var e="undefined"!=typeof WebSocket;if(S()){var r=n.__Zone_ignore_on_properties;if(A){k(window,bt.concat(["messageerror"]),r,Object.getPrototypeOf(window)),k(Document.prototype,bt,r),void 0!==window.SVGElement&&k(window.SVGElement.prototype,bt,r),k(Element.prototype,bt,r),k(HTMLElement.prototype,bt,r),k(HTMLMediaElement.prototype,ct,r),k(HTMLFrameSetElement.prototype,at.concat(vt),r),k(HTMLBodyElement.prototype,at.concat(vt),r),k(HTMLFrameElement.prototype,ht,r),k(HTMLIFrameElement.prototype,ht,r);var o=window.HTMLMarqueeElement;o&&k(o.prototype,dt,r)}k(XMLHttpRequest.prototype,gt,r);var i=n.XMLHttpRequestEventTarget;i&&k(i&&i.prototype,gt,r),"undefined"!=typeof IDBIndex&&(k(IDBIndex.prototype,yt,r),k(IDBRequest.prototype,yt,r),k(IDBOpenDBRequest.prototype,yt,r),k(IDBDatabase.prototype,yt,r),k(IDBTransaction.prototype,yt,r),k(IDBCursor.prototype,yt,r)),e&&k(WebSocket.prototype,mt,r)}else T(),a("XMLHttpRequest"),e&&b(t,n)}}function S(){if((A||L)&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var t=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(t&&!t.configurable)return!1}var n=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"onreadystatechange");if(n){Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var e=new XMLHttpRequest,r=!!e.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",n||{}),r}var o=O("fakeonreadystatechange");Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[o]},set:function(t){this[o]=t}});var e=new XMLHttpRequest,i=function(){};e.onreadystatechange=i;var r=e[o]===i;return e.onreadystatechange=null,r}function T(){for(var t=0;t",this._properties=n&&n.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,n)}return r.assertZonePatched=function(){if(t.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(r,"root",{get:function(){for(var t=r.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(r,"current",{get:function(){return F.zone},enumerable:!0,configurable:!0}),Object.defineProperty(r,"currentTask",{get:function(){return j},enumerable:!0,configurable:!0}),r.__load_patch=function(o,i){if(P.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!t["__Zone_disable_"+o]){var a="Zone:"+o;n(a),P[o]=i(t,r,M),e(a,a)}},Object.defineProperty(r.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var n=this.getZoneWith(t);if(n)return n._properties[t]},r.prototype.getZoneWith=function(t){for(var n=this;n;){if(n._properties.hasOwnProperty(t))return n;n=n._parent}return null},r.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},r.prototype.wrap=function(t,n){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var e=this._zoneDelegate.intercept(this,t,n),r=this;return function(){return r.runGuarded(e,this,arguments,n)}},r.prototype.run=function(t,n,e,r){void 0===n&&(n=void 0),void 0===e&&(e=null),void 0===r&&(r=null),F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,t,n,e,r)}finally{F=F.parent}},r.prototype.runGuarded=function(t,n,e,r){void 0===n&&(n=null),void 0===e&&(e=null),void 0===r&&(r=null),F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,t,n,e,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{F=F.parent}},r.prototype.runTask=function(t,n,e){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||m).name+"; Execution: "+this.name+")");if(t.state!==b||t.type!==O){var r=t.state!=w;r&&t._transitionTo(w,k),t.runCount++;var o=j;j=t,F={parent:F,zone:this};try{t.type==x&&t.data&&!t.data.isPeriodic&&(t.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,t,n,e)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{t.state!==b&&t.state!==T&&(t.type==O||t.data&&t.data.isPeriodic?r&&t._transitionTo(k,w):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(b,w,b))),F=F.parent,j=o}}},r.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var n=this;n;){if(n===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);n=n.parent}t._transitionTo(_,b);var e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(n){throw t._transitionTo(T,_,b),this._zoneDelegate.handleError(this,n),n}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==_&&t._transitionTo(k,_),t},r.prototype.scheduleMicroTask=function(t,n,e,r){return this.scheduleTask(new p(E,t,n,e,r,null))},r.prototype.scheduleMacroTask=function(t,n,e,r,o){return this.scheduleTask(new p(x,t,n,e,r,o))},r.prototype.scheduleEventTask=function(t,n,e,r,o){return this.scheduleTask(new p(O,t,n,e,r,o))},r.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||m).name+"; Execution: "+this.name+")");t._transitionTo(S,k,w);try{this._zoneDelegate.cancelTask(this,t)}catch(n){throw t._transitionTo(T,S),this._zoneDelegate.handleError(this,n),n}return this._updateTaskCount(t,-1),t._transitionTo(b,S),t.runCount=0,t},r.prototype._updateTaskCount=function(t,n){var e=t._zoneDelegates;-1==n&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:t};this.hasTask(this.zone,i)}},t}(),p=function(){function n(e,r,o,i,a,u){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=u,this.callback=o;var c=this;e===O&&i&&i.isUsingGlobalCallback?this.invoke=n.invokeTask:this.invoke=function(){return n.invokeTask.apply(t,[c,this,arguments])}}return n.invokeTask=function(t,n,e){t||(t=this),D++;try{return t.runCount++,t.zone.runTask(t,n,e)}finally{1==D&&o(),D--}},Object.defineProperty(n.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),n.prototype.cancelScheduleRequest=function(){this._transitionTo(b,_)},n.prototype._transitionTo=function(t,n,e){if(this._state!==n&&this._state!==e)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+n+"'"+(e?" or '"+e+"'":"")+", was '"+this._state+"'.");this._state=t,t==b&&(this._zoneDelegates=null)},n.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},n.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,invoke:this.invoke,scheduleFn:this.scheduleFn,cancelFn:this.cancelFn,runCount:this.runCount,callback:this.callback}},n}(),h=a("setTimeout"),v=a("Promise"),d=a("then"),g=[],y=!1,m={name:"NO ZONE"},b="notScheduled",_="scheduling",k="scheduled",w="running",S="canceling",T="unknown",E="microTask",x="macroTask",O="eventTask",P={},M={symbol:a,currentZoneFrame:function(){return F},onUnhandledError:i,microtaskDrainDone:i,scheduleMicroTask:r,showUncaughtError:function(){return!c[a("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:i,patchMethod:function(){return i}},F={parent:null,zone:new c(null,null)},j=null,D=0;e("Zone","Zone"),t.Zone=c}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||t);/** 44 | * @license 45 | * Copyright Google Inc. All Rights Reserved. 46 | * 47 | * Use of this source code is governed by an MIT-style license that can be 48 | * found in the LICENSE file at https://angular.io/license 49 | */ 50 | Zone.__load_patch("ZoneAwarePromise",function(t,n,e){function r(t){e.onUnhandledError(t);try{var r=n[g];r&&"function"==typeof r&&r.apply(this,[t])}catch(t){}}function o(t){return t&&t.then}function i(t){return t}function a(t){return F.reject(t)}function u(t,n){return function(e){try{c(t,n,e)}catch(n){c(t,!1,n)}}}function c(t,r,o){var i=T();if(t===o)throw new TypeError(E);if(t[y]===_){var a=null;try{typeof o!==x&&typeof o!==O||(a=o&&o.then)}catch(n){return i(function(){c(t,!1,n)})(),t}if(r!==w&&o instanceof F&&o.hasOwnProperty(y)&&o.hasOwnProperty(m)&&o[y]!==_)s(o),c(t,o[y],o[m]);else if(r!==w&&typeof a===O)try{a.apply(o,[i(u(t,r)),i(u(t,!1))])}catch(n){i(function(){c(t,!1,n)})()}else{t[y]=r;var l=t[m];t[m]=o,r===w&&o instanceof Error&&(o[P]=n.currentTask);for(var p=0;p0&&(t.push(e((new l).error)),i(t,n-1))}/** 86 | * @license 87 | * Copyright Google Inc. All Rights Reserved. 88 | * 89 | * Use of this source code is governed by an MIT-style license that can be 90 | * found in the LICENSE file at https://angular.io/license 91 | */ 92 | var a="\n",u={},c="STACKTRACE TRACKING",s="__SEP_TAG__",f=s+"@[native]",l=function(){function t(){this.error=v(),this.timestamp=new Date}return t}(),p=t(),h=n(),v=p.stack?t:h.stack?n:t;Zone.longStackTraceZoneSpec={name:"long-stack-trace",longStackTraceLimit:10,getLongStackTrace:function(t){if(t){var n=t[Zone.__symbol__("currentTask")],e=n&&n.data&&n.data.__creationTrace__;return e?o(e,t.stack):t.stack}},onScheduleTask:function(t,n,e,r){if(Error.stackTraceLimit>0){var o=Zone.currentTask,i=o&&o.data&&o.data.__creationTrace__||[];i=[new l].concat(i),i.length>this.longStackTraceLimit&&(i.length=this.longStackTraceLimit),r.data||(r.data={}),r.data.__creationTrace__=i}return t.scheduleTask(e,r)},onHandleError:function(t,n,e,r){if(Error.stackTraceLimit>0){var i=Zone.currentTask||r.task;if(r instanceof Error&&i){var a=o(i.data&&i.data.__creationTrace__,r.stack);try{r.stack=r.longStack=a}catch(t){}}}return t.handleError(e,r)}},function(){if(!(Error.stackTraceLimit<=0)){var t=[];i(t,2);for(var n=t[0],e=t[1],r=0;r 2 | 3 | 4 | 5 | Angular webpack AOT 6 | 7 | 8 | 9 | 10 | 11 | 12 | Loading AppComponent content here ... 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Angular-webpack-AOT", 3 | "version": "1.0.0", 4 | "description": "Angular-webpack-AOT,width AOT, lazy loader", 5 | "scripts": { 6 | "dev:aot": "./node_modules/.bin/webpack-dev-server --config webpack.aot.ts --color --progress", 7 | "dev": "./node_modules/.bin/webpack-dev-server --config webpack.config.js --color --progress --inline --hot --content-base ./dist", 8 | "webpack:aot": "./node_modules/.bin/webpack --config webpack.aot.ts --colors --progress ", 9 | "build": "npm run webpack:aot" 10 | }, 11 | "keywords": [], 12 | "author": "", 13 | "license": "MIT", 14 | "dependencies": { 15 | "@angular/common": "^5.0.0-beta.6", 16 | "@angular/compiler": "^5.0.0-beta.6", 17 | "@angular/core": "^5.0.0-beta.6", 18 | "@angular/forms": "^5.0.0-beta.6", 19 | "@angular/http": "^5.0.0-beta.6", 20 | "@angular/platform-browser": "^5.0.0-beta.6", 21 | "@angular/platform-browser-dynamic": "^5.0.0-beta.6", 22 | "@angular/router": "^5.0.0-beta.6", 23 | "core-js": "^2.4.1", 24 | "reflect-metadata": "^0.1.10", 25 | "rxjs": "5.4.2", 26 | "zone.js": "^0.8.14" 27 | }, 28 | "devDependencies": { 29 | "@angular/compiler-cli": "^5.0.0-beta.6", 30 | "@ngtools/webpack": "^1.7.0", 31 | "@types/node": "^8.0.26", 32 | "angular2-router-loader": "^0.3.5", 33 | "angular2-template-loader": "^0.6.2", 34 | "awesome-typescript-loader": "^3.2.3", 35 | "compression-webpack-plugin": "^0.4.0", 36 | "css-loader": "^0.27.3", 37 | "html-webpack-plugin": "^2.28.0", 38 | "raw-loader": "^0.5.1", 39 | "rimraf": "^2.6.1", 40 | "style-loader": "^0.18.2", 41 | "stylus": "^0.54.5", 42 | "stylus-loader": "^2.4.0", 43 | "typescript": "^2.5.2", 44 | "webpack": "^3.5.6", 45 | "webpack-dev-server": "^2.6.1", 46 | "webpack-merge": "^4.1.0", 47 | "yargs": "^6.4.0" 48 | }, 49 | "repository": {} 50 | } 51 | -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, Inject } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | @Component({ 4 | selector: 'my-app', 5 | styles: [ 6 | ` 7 | a{ 8 | text-decoration: none; 9 | margin-right: 20px; 10 | padding: 5px 10px; 11 | border-bottom: 1px solid transparent; 12 | } 13 | 14 | a.active { 15 | border-color: pink 16 | } 17 | 18 | .content { 19 | box-sizing: border-box; 20 | margin: 20px auto; 21 | width: 70vw; 22 | padding: 30px 23 | } 24 | ` 25 | ], 26 | template: ` 27 |
28 |

Hello {{name}}

29 | 30 | 31 | About 32 | 33 | 34 | 35 | contact 36 | 37 | 38 | 39 | home 40 | 41 | 42 | 43 | news 44 | 45 | 46 | 47 |
48 | `, 49 | }) 50 | export class AppComponent { 51 | name = 'Angular'; 52 | constructor( @Inject(ActivatedRoute) public _route: ActivatedRoute) { 53 | console.log(this._route) 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { BrowserModule } from '@angular/platform-browser'; 3 | import { RouterModule } from '@angular/router'; 4 | 5 | 6 | import { AppComponent } from './app.component'; 7 | 8 | import { contactComponent } from './components/contact/contact.component'; 9 | import { rootRouterConfig } from './app.router' 10 | @NgModule({ 11 | imports: [ 12 | BrowserModule, 13 | RouterModule.forRoot(rootRouterConfig, { useHash: true }), 14 | ], 15 | declarations: [AppComponent, contactComponent], 16 | bootstrap: [AppComponent] 17 | }) 18 | export class AppModule { 19 | } 20 | -------------------------------------------------------------------------------- /src/app/app.router.ts: -------------------------------------------------------------------------------- 1 | import { Routes } from '@angular/router'; 2 | 3 | import { AboutModule } from './components/about/about.module'; 4 | import { contactComponent } from './components/contact/contact.component'; 5 | import { HomeModule } from './components/home/home.module'; 6 | 7 | 8 | import { ListComponent } from './components/home/list/list.component'; 9 | import { DetailComponent } from './components/home/detail/detail.component'; 10 | 11 | 12 | export const rootRouterConfig: Routes = [ 13 | { path: '', redirectTo: 'home', pathMatch: 'full' }, 14 | { path: 'home', loadChildren: './components/home/home.module#HomeModule' }, 15 | { path: 'about', loadChildren: './components/about/about.module#AboutModule' }, 16 | { path: 'contact', component: contactComponent }, 17 | 18 | { path: 'news', loadChildren: './components/news/news.module#NewsModule' } 19 | ]; -------------------------------------------------------------------------------- /src/app/components/about/about.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'about', 5 | template: ` 6 |

about page

7 | 8 |

about page

9 | ` 10 | }) 11 | export class AboutComponent implements OnInit { 12 | constructor() { } 13 | 14 | ngOnInit() { } 15 | 16 | } -------------------------------------------------------------------------------- /src/app/components/about/about.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule } from '@angular/router'; 3 | import { CommonModule } from '@angular/common'; 4 | 5 | import { ShareModule } from '../share/share.module' 6 | 7 | import { AboutComponent } from './about.component'; 8 | 9 | @NgModule({ 10 | imports: [ 11 | ShareModule, 12 | RouterModule.forChild([ 13 | { 14 | path: '', component: AboutComponent 15 | } 16 | ]) 17 | ], 18 | exports: [], 19 | declarations: [AboutComponent], 20 | providers: [], 21 | }) 22 | export class AboutModule { } 23 | -------------------------------------------------------------------------------- /src/app/components/contact/contact.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'contact', 5 | template: ` 6 |

contact page

7 | ` 8 | }) 9 | export class contactComponent implements OnInit { 10 | constructor() { } 11 | 12 | ngOnInit() { } 13 | 14 | } -------------------------------------------------------------------------------- /src/app/components/home/detail/detail.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, Inject } from '@angular/core'; 2 | import { ActivatedRoute, Router } from '@angular/router'; 3 | 4 | import {Observable} from 'rxjs/Rx'; 5 | 6 | @Component({ 7 | selector: 'detail', 8 | template: ` 9 |

detail {{id}} page

10 | 11 | ` 12 | }) 13 | export class DetailComponent implements OnInit { 14 | id:number; 15 | 16 | constructor( public _route: ActivatedRoute, public _router: Router) { 17 | } 18 | 19 | goBack(){ 20 | this._router.navigate(['/home']) 21 | } 22 | ngOnInit() { 23 | this._route.params.map(p => p['id']).subscribe(params => { 24 | console.log('detial') 25 | this.id = params 26 | }) 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /src/app/components/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | 4 | @Component({ 5 | selector: 'home', 6 | styles: [ 7 | ` 8 | home { 9 | overflow: hidden; 10 | } 11 | .list { 12 | width: 30%; 13 | margin-right: 20px; 14 | border-right: 1px solid #ccc; 15 | } 16 | .list, .detail { 17 | display: inline-block; 18 | vertical-align: top 19 | } 20 | 21 | ` 22 | ], 23 | template: ` 24 |

home page

25 |
26 |
27 |
28 | 29 |
30 | ` 31 | }) 32 | export class HomeComponent implements OnInit { 33 | 34 | 35 | ngOnInit() { } 36 | 37 | } -------------------------------------------------------------------------------- /src/app/components/home/home.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule } from '@angular/router'; 3 | import { CommonModule } from '@angular/common'; 4 | 5 | // import { ShareModule } from '../share/share.module' 6 | 7 | import { RouterConfig } from './home.router' 8 | 9 | import { HomeComponent } from './home.component'; 10 | import { ListComponent } from './list/list.component'; 11 | import { DetailComponent } from './detail/detail.component'; 12 | @NgModule({ 13 | imports: [ 14 | // ShareModule, 15 | CommonModule, 16 | RouterModule.forChild(RouterConfig) 17 | ], 18 | declarations: [HomeComponent, ListComponent, DetailComponent], 19 | exports: [HomeComponent], 20 | bootstrap: [] 21 | }) 22 | export class HomeModule { } 23 | -------------------------------------------------------------------------------- /src/app/components/home/home.router.ts: -------------------------------------------------------------------------------- 1 | import { Routes } from '@angular/router'; 2 | 3 | import { HomeComponent } from './home.component'; 4 | import { ListComponent } from './list/list.component'; 5 | import { DetailComponent } from './detail/detail.component'; 6 | 7 | export const RouterConfig: Routes = [ 8 | 9 | 10 | { 11 | path: '', component: HomeComponent, 12 | children: [ 13 | { path: '', redirectTo: 'list', pathMatch: 'full' }, 14 | { path: 'detail/:id', component: DetailComponent }, 15 | { path: 'list', component: ListComponent }, 16 | 17 | ] 18 | }, 19 | 20 | 21 | ]; -------------------------------------------------------------------------------- /src/app/components/home/list/list.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | @Component({ 3 | selector: 'list', 4 | styles: [ 5 | ` 6 | a{ 7 | padding: 0 10px; 8 | } 9 | a.active{ 10 | color: #fff; 11 | background: pink 12 | } 13 | ` 14 | ], 15 | template: ` 16 | 23 | 24 | ` 25 | }) 26 | export class ListComponent implements OnInit { 27 | 28 | public list: number[] = [ 29 | 1, 2, 3, 4, 5, 6, 7 30 | ] 31 | constructor() { } 32 | 33 | ngOnInit() { 34 | console.log('list') 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /src/app/components/news/news.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'news', 5 | template: ` 6 |

news page

7 | 8 | ` 9 | }) 10 | export class NewsComponent implements OnInit { 11 | constructor() { } 12 | 13 | ngOnInit() { } 14 | 15 | } -------------------------------------------------------------------------------- /src/app/components/news/news.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule } from '@angular/router'; 3 | import { CommonModule } from '@angular/common'; 4 | 5 | 6 | import { ShareModule } from '../share/share.module' 7 | 8 | import { NewsComponent } from './news.component'; 9 | 10 | @NgModule({ 11 | imports: [ 12 | // CommonModule, 13 | ShareModule, 14 | RouterModule.forChild([ 15 | { 16 | path: '', component: NewsComponent 17 | } 18 | ]) 19 | ], 20 | declarations: [ NewsComponent ] 21 | }) 22 | export class NewsModule { } 23 | -------------------------------------------------------------------------------- /src/app/components/share/search.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'search', 5 | template: ` 6 | 7 | ` 8 | }) 9 | export class SearchComponent implements OnInit { 10 | constructor() { } 11 | 12 | ngOnInit() { } 13 | } -------------------------------------------------------------------------------- /src/app/components/share/share.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | import { SearchComponent } from './search.component'; 5 | 6 | @NgModule({ 7 | imports: [CommonModule, CommonModule], 8 | exports: [SearchComponent, CommonModule], 9 | declarations: [SearchComponent], 10 | providers: [] 11 | }) 12 | export class ShareModule { 13 | static forRoot() { 14 | return { 15 | ngModule: ShareModule, 16 | providers: [] 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/custom-typings.d.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Custom Type Definitions 3 | * When including 3rd party modules you also need to include the type definition for the module 4 | * if they don't provide one within the module. You can try to install it with typings 5 | typings install node --save 6 | * If you can't find the type definition in the registry we can make an ambient definition in 7 | * this file for now. For example 8 | declare module "my-module" { 9 | export function doesSomething(value: string): string; 10 | } 11 | * 12 | * If you're prototying and you will fix the types later you can also declare it as type any 13 | * 14 | declare var assert: any; 15 | * 16 | * If you're importing a module that uses Node.js modules which are CommonJS you need to import as 17 | * 18 | import * as _ from 'lodash' 19 | * You can include your type definitions in this file until you create one for the typings registry 20 | * see https://github.com/typings/registry 21 | * 22 | */ 23 | 24 | // Extra variables that live on Global that will be replaced by webpack DefinePlugin 25 | declare var ENV: string; 26 | declare var HMR: boolean; 27 | declare var System: SystemJS; 28 | 29 | interface SystemJS { 30 | import: (path?: string) => Promise; 31 | } 32 | 33 | interface GlobalEnvironment { 34 | ENV; 35 | HMR; 36 | SystemJS: SystemJS; 37 | System: SystemJS; 38 | } 39 | 40 | interface WebpackModule { 41 | hot: { 42 | data?: any, 43 | idle: any, 44 | accept(dependencies?: string | string[], callback?: (updatedDependencies?: any) => void): void; 45 | decline(dependencies?: any | string | string[]): void; 46 | dispose(callback?: (data?: any) => void): void; 47 | addDisposeHandler(callback?: (data?: any) => void): void; 48 | removeDisposeHandler(callback?: (data?: any) => void): void; 49 | check(autoApply?: any, callback?: (err?: Error, outdatedModules?: any[]) => void): void; 50 | apply(options?: any, callback?: (err?: Error, outdatedModules?: any[]) => void): void; 51 | status(callback?: (status?: string) => void): void | string; 52 | removeStatusHandler(callback?: (status?: string) => void): void; 53 | }; 54 | } 55 | interface WebpackRequire extends NodeRequireFunction { 56 | context(file: string, flag?: boolean, exp?: RegExp): any; 57 | } 58 | 59 | 60 | // interface ErrorStackTraceLimit { 61 | // stackTraceLimit: number; 62 | // } 63 | 64 | 65 | // Extend typings 66 | interface NodeRequire extends WebpackRequire {} 67 | // interface ErrorConstructor extends ErrorStackTraceLimit {} 68 | interface NodeModule extends WebpackModule {} 69 | interface Global extends GlobalEnvironment {} 70 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 2 | 3 | import { AppModule } from './app/app.module'; 4 | 5 | platformBrowserDynamic().bootstrapModule(AppModule); 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/polyfills.ts: -------------------------------------------------------------------------------- 1 | // import 'ie-shim'; // Internet Explorer 9 support 2 | 3 | // import 'core-js/es6'; 4 | // Added parts of es6 which are necessary for your project or your browser support requirements. 5 | import 'core-js/es6/symbol'; 6 | import 'core-js/es6/object'; 7 | import 'core-js/es6/function'; 8 | import 'core-js/es6/parse-int'; 9 | import 'core-js/es6/parse-float'; 10 | import 'core-js/es6/number'; 11 | import 'core-js/es6/math'; 12 | import 'core-js/es6/string'; 13 | import 'core-js/es6/date'; 14 | import 'core-js/es6/array'; 15 | import 'core-js/es6/regexp'; 16 | import 'core-js/es6/map'; 17 | import 'core-js/es6/set'; 18 | import 'core-js/es6/weak-map'; 19 | import 'core-js/es6/weak-set'; 20 | import 'core-js/es6/typed'; 21 | import 'core-js/es6/reflect'; 22 | // see issue https://github.com/AngularClass/angular2-webpack-starter/issues/709 23 | // import 'core-js/es6/promise'; 24 | 25 | import 'core-js/es7/reflect'; 26 | import 'zone.js/dist/zone'; 27 | import 'zone.js/dist/long-stack-trace-zone'; -------------------------------------------------------------------------------- /src/styles.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: #369; 3 | font-size: 2em; 4 | } 5 | -------------------------------------------------------------------------------- /src/styles.styl: -------------------------------------------------------------------------------- 1 | color=#369 2 | h1 3 | color: color 4 | font-size: 2em 5 | 6 | -------------------------------------------------------------------------------- /src/vendor.ts: -------------------------------------------------------------------------------- 1 | // Angular 2 2 | import '@angular/platform-browser'; 3 | import '@angular/platform-browser-dynamic'; 4 | import '@angular/core'; 5 | import '@angular/common'; 6 | import '@angular/forms'; 7 | import '@angular/http'; 8 | import '@angular/router'; 9 | 10 | 11 | // RxJS 12 | import {Observable} from 'rxjs/Rx'; 13 | import 'rxjs/add/operator/map'; 14 | import 'rxjs/add/operator/mergeMap'; 15 | 16 | //import './styles.css' -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "declaration": false, 4 | "emitDecoratorMetadata": true, 5 | "experimentalDecorators": true, 6 | "target": "es5", 7 | "module": "es2015", 8 | "moduleResolution": "node", 9 | "sourceMap": true, 10 | "baseUrl": "", 11 | "typeRoots": [ 12 | "node_modules/@types" 13 | ], 14 | "lib": [ 15 | "es2015", 16 | "dom" 17 | ], 18 | "noEmitHelpers": false 19 | }, 20 | "include": [ 21 | "./src/**/*.module.ts", 22 | "./src/*.d.ts" 23 | ], 24 | "exclude": [ 25 | "node_modules" 26 | ], 27 | "angularCompilerOptions": { 28 | "genDir": "." 29 | } 30 | } -------------------------------------------------------------------------------- /webpack.aot.ts: -------------------------------------------------------------------------------- 1 | let webpack = require('webpack'); 2 | let path = require('path'); 3 | let webpackMerge = require('webpack-merge'); 4 | let HtmlWebpackPlugin = require('html-webpack-plugin'); 5 | let CompressionPlugin = require("compression-webpack-plugin"); 6 | let ngtools = require('@ngtools/webpack'); 7 | 8 | let webpackConfig = { 9 | entry: { 10 | polyfills: './src/polyfills.ts', 11 | vendor: './src/vendor.ts', 12 | app: './src/main.ts' 13 | }, 14 | 15 | 16 | output: { 17 | publicPath: 'dist/', 18 | path: path.resolve(__dirname, './dist') 19 | }, 20 | 21 | plugins: [ 22 | new ngtools.AotPlugin({ 23 | tsConfigPath: './tsconfig.json', 24 | skipMetadataEmit: true, 25 | entryModule: 'src/app/app.module#AppModule' 26 | }), 27 | new webpack.optimize.CommonsChunkPlugin({ 28 | name: ['app', 'vendor', 'polyfills'] 29 | }), 30 | new CompressionPlugin({ 31 | asset: "[path].gz[query]", 32 | algorithm: "gzip", 33 | test: /\.js$|\.html$/, 34 | threshold: 10240, 35 | minRatio: 0.3 36 | }), 37 | new webpack.optimize.ModuleConcatenationPlugin(), 38 | new webpack.optimize.UglifyJsPlugin(), 39 | 40 | // new HtmlWebpackPlugin({ 41 | // template: 'config/aot-tpl.html', 42 | // inject: true 43 | // }) 44 | ], 45 | 46 | module: { 47 | rules: [ 48 | { 49 | test: /\.ts$/, 50 | loaders: [ 51 | '@ngtools/webpack' 52 | ] 53 | }, 54 | { 55 | test: /\.css$/, 56 | loaders: ['to-string-loader', 'css-loader'] 57 | }, 58 | { 59 | test: /\.html$/, 60 | loader: 'raw-loader' 61 | } 62 | ] 63 | } 64 | 65 | }; 66 | 67 | let defaultConfig = { 68 | devtool: 'inline-source-map', 69 | output: { 70 | filename: '[name].bundle.js', 71 | chunkFilename: '[id].chunk.js' 72 | }, 73 | resolve: { 74 | extensions: ['.ts', '.js'], 75 | modules: [path.resolve(__dirname, 'node_modules')] 76 | }, 77 | devServer: { 78 | contentBase: './', 79 | port: 3000, 80 | inline: true, 81 | stats: 'errors-only', 82 | historyApiFallback: true, 83 | watchOptions: { aggregateTimeout: 100, poll: 500 } 84 | }, 85 | 86 | node: { 87 | global: true, 88 | crypto: 'empty', 89 | __dirname: true, 90 | __filename: true, 91 | Buffer: false, 92 | clearImmediate: false, 93 | setImmediate: false 94 | } 95 | }; 96 | 97 | module.exports = webpackMerge(defaultConfig, webpackConfig); -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | let path = require('path'); 2 | let webpack = require('webpack'); 3 | let HtmlWebpackPlugin = require('html-webpack-plugin'); 4 | // let ExtractTextPlugin = require("extract-text-webpack-plugin"); 5 | let webpackMerge = require('webpack-merge'); 6 | 7 | 8 | let webpackConfig = { 9 | entry: { 10 | polyfills: './src/polyfills.ts', 11 | vendor: './src/vendor.ts', 12 | app: './src/main.ts' 13 | }, 14 | output: { 15 | publicPath: 'dist/', 16 | path: path.resolve(__dirname, './dist') 17 | }, 18 | plugins: [ 19 | // new ExtractTextPlugin("./style.css"), 20 | new webpack.optimize.CommonsChunkPlugin({ 21 | name: ['app', 'vendor', 'polyfills'] 22 | }), 23 | new HtmlWebpackPlugin({ 24 | filename: 'index.html', 25 | template: 'config/jit-tpl.html', 26 | inject: true 27 | }) 28 | ], 29 | 30 | module: { 31 | rules: [{ 32 | test: /\.ts$/, 33 | loaders: [ 34 | 'awesome-typescript-loader', 35 | 'angular2-router-loader', 36 | 'angular2-template-loader' 37 | ] 38 | }, { 39 | test: /\.css$/, 40 | include: `${__dirname}/src`, 41 | loader: ['css-loader', 'style-loader'] 42 | // use: ExtractTextPlugin.extract({ 43 | // fallbackLoader: "style-loader", 44 | // loader: 'css-loader' 45 | // }) 46 | }, { 47 | test: /\.styl$/, 48 | use: [ 49 | 'stylus-loader', 50 | 'css-loader' 51 | ], 52 | }, { 53 | test: /\.html$/, 54 | loader: 'raw-loader' 55 | }] 56 | } 57 | 58 | }; 59 | 60 | let defaultConfig = { 61 | output: { 62 | filename: '[name].bundle.js', 63 | sourceMapFilename: '[name].map', 64 | chunkFilename: '[id].chunk.js' 65 | }, 66 | resolve: { 67 | extensions: ['.ts', '.js'] 68 | }, 69 | devServer: { 70 | contentBase: './', 71 | port: process.env.PORT || 8080, 72 | inline: true, 73 | stats: 'errors-only', 74 | historyApiFallback: true, 75 | watchOptions: { 76 | aggregateTimeout: 100, 77 | poll: 500 78 | } 79 | }, 80 | 81 | node: { 82 | global: true, 83 | crypto: 'empty', 84 | __dirname: true, 85 | __filename: true, 86 | Buffer: false, 87 | clearImmediate: false, 88 | setImmediate: false 89 | } 90 | }; 91 | 92 | module.exports = webpackMerge(defaultConfig, webpackConfig); --------------------------------------------------------------------------------