(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"832e":function(t,e,n){"use strict";n.r(e),n.d(e,"FuturesTradingModule",(function(){return qt}));var o=n("1VvW"),i=n("i2L+"),c=n("O5EP"),r=(n("9BXW"),n("ZEHW"),n("WncL")),a=n("zqNl"),s=n("+Px6"),g=n("qAYy"),p=(n("sxqi"),n("kZht")),d=n("An66");n("hCLc"),n("yPvj"),n("anSm"),n("chaP"),n("LbKT"),n("NxuZ"),n("FUqb");var l=n("Ngp4"),b=n("UZ8P"),m=n("D57K"),u=n("gxtV"),h=n("KQpv"),O=n.n(h),f=n("HM3f"),C=n("YtkY"),P=n("xVbo"),y=n("jOdJ"),M=n("0Woy"),_=n("YzTY"),x=n("uJYd"),v=n("wMit"),k=n("h3eB"),w=n("lE9u"),L=n("UbJG"),j=n("rxqU"),I=n("Rjzq"),R=n("Aey0"),$=n("l5Az"),S=n("a1kK"),z=n("i67J"),E=n("vYTc"),A=n("yN5A"),T=n("NloN"),U=n("ylpo"),D=n("6NrZ"),F=n("bjK4"),V=n("Asjx"),q=n("aDqW"),K=n("lw+r"),N=n("3GEX"),H=n("v4C1"),B=n("wk3K"),G=n("houi"),W=n("zK/z"),Q=n("nVws"),Y=n("Eu46"),J=n("J7L8"),Z=n("y6QJ"),X=n("6neU"),tt=n("yvKM"),et=n("36Sp"),nt=n("O0qa"),ot=n("hnst"),it=n("bxcy");const ct=["wrapper"];function rt(t,e){1&t&&p.Qb(0)}function at(t,e){1&t&&p.Pb(0,"trade-history")}function st(t,e){1&t&&p.Pb(0,"market-chart")}function gt(t,e){1&t&&p.Pb(0,"orderbook")}function pt(t,e){1&t&&p.Pb(0,"account-activity")}function dt(t,e){1&t&&p.Pb(0,"order-form")}function lt(t,e){1&t&&p.Pb(0,"pair-wallet")}function bt(t,e){1&t&&p.Pb(0,"depth-chart")}function mt(t,e){1&t&&p.Pb(0,"market-preview-panel")}function ut(t,e){1&t&&p.Pb(0,"market-details")}function ht(t,e){if(1&t){const t=p.Vb();p.Ub(0,"gridster-item",6),p.bc("mouseup",(function(){return p.Ec(t),p.fc(2).onEnablePointer()})),p.Ub(1,"draggable-container",7),p.Oc(2,at,1,0,"trade-history",8),p.Oc(3,st,1,0,"market-chart",8),p.Oc(4,gt,1,0,"orderbook",8),p.Oc(5,pt,1,0,"account-activity",8),p.Oc(6,dt,1,0,"order-form",8),p.Oc(7,lt,1,0,"pair-wallet",8),p.Oc(8,bt,1,0,"depth-chart",8),p.Oc(9,mt,1,0,"market-preview-panel",8),p.Oc(10,ut,1,0,"market-details",8),p.Tb(),p.Tb()}if(2&t){const t=e.$implicit;p.mc("item",t),p.Cb(1),p.mc("draggableItem",t),p.Cb(1),p.mc("ngIf","trade-history"===t.component),p.Cb(1),p.mc("ngIf","market-chart"===t.component),p.Cb(1),p.mc("ngIf","orderbook"===t.component),p.Cb(1),p.mc("ngIf","account-activity"===t.component),p.Cb(1),p.mc("ngIf","order-form"===t.component),p.Cb(1),p.mc("ngIf","pair-wallet"===t.component),p.Cb(1),p.mc("ngIf","depth-chart"===t.component),p.Cb(1),p.mc("ngIf","market-previews"===t.component),p.Cb(1),p.mc("ngIf","market-details"===t.component)}}function Ot(t,e){if(1&t&&(p.Ub(0,"gridster",4),p.Oc(1,ht,11,11,"gridster-item",5),p.Tb()),2&t){const t=p.fc();p.mc("options",t.layoutOptions),p.Cb(1),p.mc("ngForOf",t.layoutItems)}}const ft=function(t){return{"grid-area":t}},Ct=function(){return{}};function Pt(t,e){if(1&t){const t=p.Vb();p.Ub(0,"tab-wrapper",12),p.bc("tabAdd",(function(e){p.Ec(t);const n=p.fc().$implicit;return p.fc(3).tabAdd(e,n)}))("tabMove",(function(e){p.Ec(t);const n=p.fc().$implicit;return p.fc(3).tabMove(e,n)}))("tabDelete",(function(e){return p.Ec(t),p.fc(4).tabDelete(e)}))("tabFocus",(function(e){p.Ec(t);const n=p.fc().$implicit;return p.fc(3).tabFocus(e,n)}))("tabDragging",(function(e){return p.Ec(t),p.fc(4).tabDragging(e)})),p.gc(1,"async"),p.gc(2,"async"),p.gc(3,"async"),p.Tb()}if(2&t){const t=e.ngLet,n=p.fc().$implicit,o=p.fc().$implicit,i=p.fc(2);p.Eb(n),p.mc("location",n)("components",t.components)("activeComponent",t.activeComponent)("panelSize",t.size)("workspaceId",o.id)("workspaceComponents",p.hc(1,11,i.workspaceComponents$))("dragging",p.hc(2,13,i.draggedComponent$))("validPanelLocations",p.hc(3,15,i.validPanelLocations$))("ngStyle","custom"===o.type?p.rc(17,ft,i.getGridArea(n,t)):p.qc(19,Ct))}}function yt(t,e){if(1&t&&(p.Sb(0),p.Oc(1,Pt,4,20,"tab-wrapper",11),p.Rb()),2&t){const t=e.$implicit,n=p.fc().$implicit;p.Cb(1),p.mc("ngLet",n.panels[t])}}function Mt(t,e){if(1&t&&(p.Ub(0,"div"),p.Oc(1,yt,2,1,"ng-container",10),p.gc(2,"async"),p.Tb()),2&t){const t=e.$implicit,n=p.fc(2);p.Eb(t.type),p.Cb(1),p.mc("ngForOf",p.hc(2,3,n.layoutPanels$))}}function _t(t,e){if(1&t&&(p.Oc(0,Mt,3,5,"div",9),p.gc(1,"async")),2&t){const t=p.fc();var n=null;p.mc("ngIf",null==(n=p.hc(1,1,t.visibleLayout$))?null:n.orUndefined())}}function xt(t,e){1&t&&p.Pb(0,"market-details")}function vt(t,e){1&t&&p.Pb(0,"orderbook")}function kt(t,e){1&t&&p.Pb(0,"order-form")}function wt(t,e){1&t&&p.Pb(0,"bracket-order-form")}function Lt(t,e){1&t&&p.Pb(0,"open-positions")}function jt(t,e){1&t&&p.Pb(0,"open-orders")}function It(t,e){1&t&&p.Pb(0,"trigger-orders")}function Rt(t,e){1&t&&p.Pb(0,"filled-orders")}function $t(t,e){if(1&t){const t=p.Vb();p.Ub(0,"div",16),p.Oc(1,Lt,1,0,"open-positions",8),p.Oc(2,jt,1,0,"open-orders",8),p.Oc(3,It,1,0,"trigger-orders",8),p.Oc(4,Rt,1,0,"filled-orders",8),p.Ub(5,"mat-button-toggle-group",17),p.Ub(6,"mat-button-toggle",18),p.bc("click",(function(){return p.Ec(t),p.fc(2).activity="positions"})),p.Qc(7),p.gc(8,"translate"),p.Tb(),p.Ub(9,"mat-button-toggle",19),p.bc("click",(function(){return p.Ec(t),p.fc(2).activity="open-orders"})),p.Qc(10),p.gc(11,"translate"),p.Tb(),p.Ub(12,"mat-button-toggle",20),p.bc("click",(function(){return p.Ec(t),p.fc(2).activity="trigger-orders"})),p.Qc(13),p.gc(14,"translate"),p.Tb(),p.Ub(15,"mat-button-toggle",21),p.bc("click",(function(){return p.Ec(t),p.fc(2).activity="filled-orders"})),p.Qc(16),p.gc(17,"translate"),p.Tb(),p.Tb(),p.Tb()}if(2&t){const t=p.fc(2);p.Cb(1),p.mc("ngIf","positions"===t.activity),p.Cb(1),p.mc("ngIf","open-orders"===t.activity),p.Cb(1),p.mc("ngIf","trigger-orders"===t.activity),p.Cb(1),p.mc("ngIf","filled-orders"===t.activity),p.Cb(1),p.mc("value",t.activity),p.Cb(2),p.Sc(" ",p.hc(8,9,"HEADING.POSITIONS")," "),p.Cb(3),p.Sc(" ",p.hc(11,11,"HEADING.ORDERS")," "),p.Cb(3),p.Sc(" ",p.hc(14,13,"HEADING.TRIGGERS")," "),p.Cb(3),p.Sc(" ",p.hc(17,15,"HEADING.FILLS")," ")}}const St=function(){return["market","trade","positions"]};function zt(t,e){if(1&t){const t=p.Vb();p.Ub(0,"div",13),p.Oc(1,xt,1,0,"market-details",8),p.Pb(2,"market-chart"),p.Oc(3,vt,1,0,"orderbook",8),p.Oc(4,kt,1,0,"order-form",8),p.Oc(5,wt,1,0,"bracket-order-form",8),p.Oc(6,$t,18,17,"div",14),p.Tb(),p.Ub(7,"bottom-nav",15),p.bc("bottomNavUpdateLayout",(function(e){return p.Ec(t),p.fc().addHandsetLayoutClass(e)})),p.Tb()}if(2&t){const t=p.fc();p.mc("ngClass",t.mobileView),p.Cb(1),p.mc("ngIf","market"===t.mobileView),p.Cb(2),p.mc("ngIf","trade"===t.mobileView),p.Cb(1),p.mc("ngIf","trade"===t.mobileView&&"default"===t.mobileOrderForm),p.Cb(1),p.mc("ngIf","trade"===t.mobileView&&"bracket"===t.mobileOrderForm),p.Cb(1),p.mc("ngIf","positions"===t.mobileView),p.Cb(1),p.mc("buttons",p.qc(7,St))}}const Et=O()("app:trading");let At=(()=>{let t=class{constructor(t,e,n,o,i,c,r,p,d,l){this.store=t,this.el=e,this.router=n,this.route=o,this.layout=i,this.breakpointObserver=c,this.trade=r,this.translateService=p,this.zone=d,this.keybinds=l,this.getGridArea=_.g,this.summaryHidden=!0,this.focusComponent=null,this.mobileView="market",this.activity="positions",this.userSignedIn$=this.store.pipe(Object(a.m)(j.m)),this.markets$=this.store.pipe(Object(a.m)(s.f)),this.selectedMarketSymbol$=this.store.pipe(Object(a.m)(s.r)),this.selectedMarket$=this.store.pipe(Object(a.m)(s.n)),this.selectedTicker$=this.store.pipe(Object(a.m)(g.p)),this.userData$=this.store.pipe(Object(a.m)(j.a)),this.visibleLayout$=this.store.pipe(Object(a.m)(L.a)),this.workspaceComponents$=this.store.pipe(Object(a.m)(L.e)),this.validPanelLocations$=this.store.pipe(Object(a.m)(L.h)),this.draggedComponent$=this.store.pipe(Object(a.m)(L.d)),this.layoutType$=this.store.pipe(Object(a.m)(F.e)),this.layoutPanels$=this.visibleLayout$.pipe(Object(z.f)(),Object(C.a)(t=>Object.keys(t.panels)))}ngOnInit(){this.getUserCustomLayout(),this.openUserFeeds(),this.watchMidPriceOnMarketChange(),this.watchInstrumentRoute(),this.registerKeybinds(),this.store.dispatch(Object(x.x)("NAV.TRADING"))}ngOnDestroy(){this.layout.saveLayout(),this.unregisterKeybinds()}tabAdd(t,e){this.store.dispatch(Object(A.a)({component:t,location:e}))}tabMove({id:t,position:e},n){this.zone.run(()=>this.store.dispatch(Object(A.g)({component:t,location:n,position:e}))),this.checkWorkspaceInfoSnackbar()}tabFocus(t,e){this.zone.run(()=>this.store.dispatch(Object(A.f)({component:t,location:e})))}tabDelete(t){this.zone.run(()=>this.store.dispatch(Object(A.d)({component:t})))}tabDragging(t){this.store.dispatch(Object(A.k)({tab:t}))}checkWorkspaceInfoSnackbar(){if(!Object(T.b)(U.u,void 0)){const t=this.translateService.instant("LABEL.WORKSPACES"),e=this.translateService.instant("LABEL.WORKSPACES_INFO"),n=this.translateService.instant("LABEL.CLICK_FOR_WORKSPACES"),o=Object(x.g)({name:"create-layout"});this.store.dispatch(Object(x.j)({title:t,message:e,class:"info",action:{actionKey:n,action:o}})),Object(T.c)(U.u,Date.now())}}registerKeybinds(){const t="123456789".split(""),e=t.map(t=>"alt+"+t);this.keybinds.addBind([...t,...e],t=>{const e=t.keyCode-49;Et(`try going to layout ${e+1} (index ${e})`),this.layout.goToIdx(e)}),this.keybinds.addBind("m",()=>{this.store.dispatch(Object(x.c)()),this.layout.openPicker$.next()}),this.keybinds.addBind(["_","-","alt+-"],()=>this.store.dispatch(Object(x.w)({direction:"minus"}))),this.keybinds.addBind(["+","=","alt+="],()=>this.store.dispatch(Object(x.w)({direction:"plus"}))),this.keybinds.register()}unregisterKeybinds(){this.keybinds.dispose()}getUserCustomLayout(){this.userData$.pipe(Object(P.a)(t=>Object.entries(t).length>0),Object(u.b)(this)).subscribe(t=>{this.focusComponent=t.focusComponent||null,"summaryHidden"in t&&(this.summaryHidden=!!t.summaryHidden||null)})}openUserFeeds(){this.userSignedIn$.pipe(Object(y.a)(),Object(z.g)()).subscribe(()=>{this.store.dispatch(Object(w.o)()),this.store.dispatch(Object(k.h)())})}watchMidPriceOnMarketChange(){this.selectedTicker$.pipe(Object(M.a)(),Object(P.a)(([t,e])=>t&&e?t.product_id!==e.product_id:!(t||!e)),Object(C.a)(([,t])=>t),Object(u.b)(this)).subscribe(t=>this.trade.updateOrderFormPrice(Object(E.j)(t)))}watchInstrumentRoute(){this.route.paramMap.pipe(Object(u.b)(this)).subscribe(t=>{const e=t.get("instrument");this.store.dispatch(Object(v.q)({symbol:e}))}),Object(f.a)([this.store.pipe(Object(a.m)(s.f)).pipe(Object(P.a)(t=>t.size>0)),this.selectedMarketSymbol$]).pipe(Object(u.b)(this)).subscribe(([t,e])=>{if(!t.has(e.toUpperCase())&&t.size>0){const n=t.first().symbol;Et(`${e} is not a futures market, use ${n}`),this.changeSelectedTicker(n,!0)}})}changeSelectedTicker(t,e=!1){Et("navigating to market",t),this.router.navigate([S.c,t.toUpperCase()],{replaceUrl:e})}addHandsetLayoutClass(t){this.el.nativeElement.scrollTop=0,this.mobileView=t}get isMobile(){return this.breakpointObserver.isMatched("(max-width: 1024px)")}get orderbookHorizontal(){return!this.breakpointObserver.isMatched("(min-width: 1025px)")&&(this.breakpointObserver.isMatched("(min-width: 600px)")?"trade"!==this.mobileView:"trade"===this.mobileView)}get mobileOrderForm(){return Object(T.b)(U.n,"default")}getColumnsRows(t){return{"grid-template-columns":`repeat(${Object.keys(t.panels).length}, 20%);`}}get layoutOptions(){return this.layout.options}get layoutItems(){return this.layout.currentLayoutItems}onEnablePointer(){Object(D.d)()}saveLayout(){this.layout.saveLayout()}};return t.\u0275fac=function(e){return new(e||t)(p.Ob(a.b),p.Ob(p.l),p.Ob(o.d),p.Ob(o.a),p.Ob(R.a),p.Ob(V.a),p.Ob($.a),p.Ob(q.e),p.Ob(p.B),p.Ob(I.a,2))},t.\u0275cmp=p.Ib({type:t,selectors:[["futures-trading"]],viewQuery:function(t,e){var n;1&t&&p.Wc(ct,!0),2&t&&p.zc(n=p.cc())&&(e.wrapper=n.first)},hostVars:3,hostBindings:function(t,e){1&t&&p.bc("beforeunload",(function(){return e.saveLayout()}),!1,p.Dc),2&t&&p.Db("summary-hidden",e.summaryHidden)("focus",e.focusComponent)("mobile-view",e.mobileView)},features:[p.Bb([I.a])],decls:8,vars:3,consts:[[4,"ngTemplateOutlet"],["draggable",""],["desktop",""],["mobile",""],[3,"options"],[3,"item","mouseup",4,"ngFor","ngForOf"],[3,"item","mouseup"],[3,"draggableItem"],[4,"ngIf"],[3,"class",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"location","components","activeComponent","panelSize","workspaceId","workspaceComponents","dragging","validPanelLocations","class","ngStyle","tabAdd","tabMove","tabDelete","tabFocus","tabDragging",4,"ngLet"],[3,"location","components","activeComponent","panelSize","workspaceId","workspaceComponents","dragging","validPanelLocations","ngStyle","tabAdd","tabMove","tabDelete","tabFocus","tabDragging"],[3,"ngClass"],["class","activity",4,"ngIf"],[3,"buttons","bottomNavUpdateLayout"],[1,"activity"],[3,"value"],["value","positions",3,"click"],["value","open-orders",3,"click"],["value","trigger-orders",3,"click"],["value","filled-orders",3,"click"]],template:function(t,e){if(1&t&&(p.Oc(0,rt,1,0,"ng-container",0),p.gc(1,"async"),p.Oc(2,Ot,2,2,"ng-template",null,1,p.Pc),p.Oc(4,_t,2,3,"ng-template",null,2,p.Pc),p.Oc(6,zt,8,8,"ng-template",null,3,p.Pc)),2&t){const t=p.Ac(3),n=p.Ac(5),o=p.Ac(7);p.mc("ngTemplateOutlet",e.isMobile?o:"draggable"===p.hc(1,1,e.layoutType$)?t:n)}},directives:[d.s,K.b,d.m,K.c,N.a,d.n,H.a,B.a,G.a,W.a,Q.a,l.a,b.a,r.a,c.a,Y.a,J.a,d.o,d.l,Z.a,X.a,tt.b,tt.a,et.a,nt.a,ot.a,it.a],pipes:[d.b,q.d],styles:['[_nghost-%COMP%] gridster[_ngcontent-%COMP%]{background:var(--background-colour)}[_nghost-%COMP%] gridster[_ngcontent-%COMP%] gridster-item[_ngcontent-%COMP%]{border-radius:var(--bdrs);border:1px solid var(--border-colour)}[_nghost-%COMP%] gridster[_ngcontent-%COMP%] gridster-preview.gridster-preview{background:var(--form-input-colour)!important}.market[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:var(--spacing);grid-template:"summary" 250px "chart" minmax(300px,1fr)/1fr;height:calc(100% - 40px);overflow-y:scroll}.market[_ngcontent-%COMP%] market-details[_ngcontent-%COMP%]{grid-area:summary}.market[_ngcontent-%COMP%] market-chart[_ngcontent-%COMP%]{grid-area:chart}.market[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{border-radius:var(--bdrs);border:1px solid var(--border-colour)}.trade[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:var(--spacing);grid-template:"order-form" 450px "orderbook" minmax(300px,1fr)/1fr;height:calc(100% - 40px);overflow-y:scroll}.trade[_ngcontent-%COMP%] market-chart[_ngcontent-%COMP%]{display:none}.trade[_ngcontent-%COMP%] orderbook[_ngcontent-%COMP%]{grid-area:orderbook}.trade[_ngcontent-%COMP%] bracket-order[_ngcontent-%COMP%], .trade[_ngcontent-%COMP%] order-form[_ngcontent-%COMP%]{grid-area:order-form}.trade[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{border-radius:var(--bdrs);border:1px solid var(--border-colour)}.positions[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:var(--spacing);grid-template:"activity" 1fr/1fr;height:calc(100% - 40px)}.positions[_ngcontent-%COMP%] market-chart[_ngcontent-%COMP%]{display:none}.positions[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;grid-area:activity}.positions[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%]{position:absolute;bottom:0;margin-bottom:0!important;height:48px!important}.positions[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%] mat-button-toggle[_ngcontent-%COMP%]{height:48px!important;padding:8px 0!important}.positions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{border-radius:var(--bdrs);border:1px solid var(--border-colour)}.custom[_ngcontent-%COMP%]{grid-gap:10px;grid-template-columns:repeat(5,calc(20%-8px));grid-template-rows:repeat(5,calc(20%-8px))}.custom[_ngcontent-%COMP%], .default[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;height:100%}.default[_ngcontent-%COMP%]{grid-gap:var(--spacing);grid-template:"left topCenter topRight" calc(60% - 5px) "left bottomCenter bottomRight" calc(40% - 5px)/calc(20% - 7px) calc(60% - 7px) calc(20% - 6px)}@media (min-width:1367px) and (max-width:1440px){.default[_ngcontent-%COMP%]{grid-template:"left topCenter topRight" calc(60% - 5px) "left bottomCenter bottomCenter" calc(40% - 5px)/calc(22.5% - 7px) calc(55% - 7px) calc(22.5% - 6px)}}@media (min-width:1025px) and (max-width:1366px){.default[_ngcontent-%COMP%]{grid-template:"left topCenter topRight" calc(60% - 5px) "left bottomCenter bottomCenter" calc(40% - 5px)/calc(22.5% - 7px) calc(55% - 7px) calc(22.5% - 6px)}}.default[_ngcontent-%COMP%] pair-selector[_ngcontent-%COMP%]{grid-area:pair}.default[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.default[_ngcontent-%COMP%] .topCenter[_ngcontent-%COMP%]{grid-area:topCenter}.default[_ngcontent-%COMP%] .bottomCenter[_ngcontent-%COMP%]{grid-area:bottomCenter}.default[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.default[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.single[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:10px;grid-template:"center" 100%/100%;height:100%}.single[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{grid-area:center}.double[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:10px;grid-template-columns:1fr 1fr;grid-template:"left right" calc(100% - 5px)/calc(50% - 5px) calc(50% - 5px);height:100%}.double[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{grid-area:right}.double[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.triple[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:10px;grid-template:"topLeft right" calc(50% - 5px) "bottomLeft right" calc(50% - 5px)/calc(50% - 5px) calc(50% - 5px);height:100%}.triple[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{grid-area:right}.triple[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.quad[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:10px;grid-template:"topLeft topRight" calc(50% - 5px) "bottomLeft bottomRight" calc(50% - 5px)/calc(50% - 5px) calc(50% - 5px);height:100%}.quad[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.quad[_ngcontent-%COMP%] .topLeft[_ngcontent-%COMP%]{grid-area:topLeft}.quad[_ngcontent-%COMP%] .bottomLeft[_ngcontent-%COMP%]{grid-area:bottomLeft}.quad[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.layout1[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:10px;grid-template:"left topRight" calc(50% - 5px) "left bottomRight" calc(50% - 5px)/calc(60% - 5px) calc(40% - 5px);height:100%}.layout1[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.layout1[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.layout1[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.layout2[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:10px;height:100%;grid-template:"topLeft center right" calc(50% - 5px) "bottomLeft center right" calc(50% - 5px)/calc(50% - 7px) calc(25% - 7px) calc(25% - 6px)}.layout2[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.layout2[_ngcontent-%COMP%] .bottomLeft[_ngcontent-%COMP%]{grid-area:bottomLeft}.layout2[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{grid-area:center}.layout2[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{grid-area:right}.layout3[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:10px;height:100%;grid-template:"topLeft topRight" calc(50% - 5px) "bottomLeft bottomRight" calc(50% - 5px)/calc(60% - 5px) calc(40% - 5px)}.layout3[_ngcontent-%COMP%] .topLeft[_ngcontent-%COMP%]{grid-area:topLeft}.layout3[_ngcontent-%COMP%] .bottomLeft[_ngcontent-%COMP%]{grid-area:bottomLeft}.layout3[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.layout3[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.layout4[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;grid-gap:10px;height:100%;grid-template:"left center right" 100%/calc(25% - 7px) calc(50% - 7px) calc(25% - 6px)}.layout4[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{grid-area:left}.layout4[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{grid-area:center}.layout4[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{grid-area:right}.layout5[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;height:100%;grid-template:"top" calc(60% - 5px) "bottom" calc(40% - 5px)/100%;grid-gap:var(--spacing)}.layout5[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{grid-area:top}.layout5[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{grid-area:bottom}.layout6[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;height:100%;grid-template:"topLeft topRight" calc(60% - 5px) "bottom bottom" calc(40% - 5px)/calc(50% - 5px) calc(50% - 5px);grid-gap:var(--spacing)}.layout6[_ngcontent-%COMP%] .topLeft[_ngcontent-%COMP%]{grid-area:topLeft}.layout6[_ngcontent-%COMP%] .topRight[_ngcontent-%COMP%]{grid-area:topRight}.layout6[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{grid-area:bottom}.layout7[_ngcontent-%COMP%]{box-sizing:border-box;display:grid;height:100%;grid-template:"top top" calc(60% - 5px) "bottomLeft bottomRight" calc(40% - 5px)/calc(50% - 5px) calc(50% - 5px);grid-gap:var(--spacing)}.layout7[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{grid-area:top}.layout7[_ngcontent-%COMP%] .bottomRight[_ngcontent-%COMP%]{grid-area:bottomRight}.layout7[_ngcontent-%COMP%] .bottomLeft[_ngcontent-%COMP%]{grid-area:bottomLeft}'],changeDetection:0}),t=Object(m.d)([Object(u.a)()],t),t})();n("wvPa"),n("zeIl"),n("CGx5"),n("C28A");var Tt=n("sXtk");const Ut=O()("app:guard:last-market");let Dt=(()=>{class t{constructor(t,e){this.router=t,this.env=e}canActivate(t){const e=localStorage.getItem(U.p),n="kraken"===this.env.platform?S.a:S.b,o=e||n;return e?Ut("routing to saved market",e):Ut("routing to default market",n),this.router.navigate([S.c,o.toUpperCase()],{replaceUrl:!0,queryParams:t.queryParams}),!0}}return t.\u0275fac=function(e){return new(e||t)(p.Yb(o.d),p.Yb(Tt.a))},t.\u0275prov=p.Kb({token:t,factory:t.\u0275fac}),t})();n("FQF6");const Ft=[i.a,o.h.forChild([{path:"",canActivate:[Dt]},{path:":instrument",component:At}])],Vt=[Dt];let qt=(()=>{class t{}return t.\u0275mod=p.Mb({type:t}),t.\u0275inj=p.Lb({factory:function(e){return new(e||t)},providers:[...Vt],imports:[Ft]}),t})()}}]);