-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-DQ47BEOY.js
2 lines (2 loc) · 36.5 KB
/
chunk-DQ47BEOY.js
1
2
import{d as ke}from"./chunk-A7YDWOAO.js";import{a as w}from"./chunk-GNGLHN23.js";import{$ as v,B as ge,D as ye,Da as Me,E as ne,F as re,Fa as Pe,H as be,J as Te,Na as Ce,Q as K,R as Ee,Y as Ne,Z as te,a as G,b as me,ca as ve,cc as Re,e as H,fa as A,h as ee,ia as _,ic as Ae,l as fe,la as I,ma as M,pa as we,q as pe,r as S,ra as Ie,sa as Se,tc as Oe,v as g}from"./chunk-PPE7DTG5.js";var X=function(s){return s[s.OPEN=0]="OPEN",s[s.CLOSED=1]="CLOSED",s}(X||{}),P=function(s){return s.NSE="nse",s.BSE="bse",s}(P||{}),j=function(s){return s[s.UP=1]="UP",s[s.DOWN=-1]="DOWN",s}(j||{}),x={nse:[{name:"Nifty Pharma",etm:{id:"13017",symbol:"CNXPHARMA"},mc:{id:"41",symbol:"in;cpr"}},{name:"Nifty Financial Services",etm:{id:"13655",symbol:"FINNIFTY"},mc:{id:"47",symbol:"in;cnxf"}},{name:"Nifty Private Bank",etm:{id:"15270",symbol:"NIFTYPBI"},mc:{id:"79",symbol:"in;nxb"}},{name:"Nifty Bank",etm:{id:"1913",symbol:"BANKNIFTY"},mc:{id:"23",symbol:"in;nbx"}},{name:"Nifty Media",etm:{id:"13604",symbol:"CNXMEDIA"},mc:{id:"50",symbol:"in;cnmx"}},{name:"Nifty Services Sector",etm:{id:"13021",symbol:"CNXSSI"},mc:{id:"44",symbol:"in;crv"}},{name:"Nifty FMCG",etm:{id:"13027",symbol:"CNXFMCG"},mc:{id:"39",symbol:"in;cfm"}},{name:"Nifty India Consumption",etm:{id:"13653",symbol:"CNXCONSUM"},mc:{id:"56",symbol:"in;cnxc"}},{name:"Nifty SmallCap 100",etm:{id:"13532",symbol:"CNXSCAP"},mc:{id:"53",symbol:"in;cnxs"}},{name:"Nifty SmallCap 250",etm:{id:"15499",symbol:"NIFSC250"},mc:{id:"114",symbol:"mc;nscapt"}},{name:"Nifty SmallCap 50",etm:{id:"15431",symbol:"NIFSC50"},mc:{id:"113",symbol:"mc;nscapf"}},{name:"Nifty MidSmallCap 400",etm:{id:"15436",symbol:"NIFMSC400"},mc:{id:"112",symbol:"mc;nmsml"}},{name:"Nifty MidCap 100",etm:{id:"2495",symbol:"CNXMIDCAP"},mc:{id:"27",symbol:"in;ccx"}},{name:"Nifty MidCap 150",etm:{id:"15430",symbol:"NIFMC150"},mc:{id:"111",symbol:"mc;nmcapo"}},{name:"Nifty LargeMidCap 250",etm:{id:"16207",symbol:"NIFTYLMC250"},mc:{id:"124",symbol:"mc;larmid"}},{name:"Nifty 500",etm:{id:"2371",symbol:"CNX500"},mc:{id:"7",symbol:"in;ncx"}},{name:"Nifty 200",etm:{id:"13602",symbol:"CNX200"},mc:{id:"49",symbol:"in;cnxt"}},{name:"Nifty 100",etm:{id:"2510",symbol:"CNX100"},mc:{id:"28",symbol:"in;nnx"}},{name:"Nifty 50",main:!0,etm:{id:"2369",symbol:"NSE Index"},mc:{id:"9",symbol:"in;NSX"}},{name:"Nifty Oil & Gas",etm:{id:"32289",symbol:"NIFTYOILGAS"},mc:{id:"126",symbol:"mc;oilgas"}},{name:"Nifty Next 50",etm:{id:"2346",symbol:"NIFTYNXT50"},mc:{id:"6",symbol:"in;cjn"}},{name:"Nifty Energy",etm:{id:"13016",symbol:"CNXENERGY"},mc:{id:"38",symbol:"in;cgy"}},{name:"Nifty MidCap 50",etm:{id:"2907",symbol:"MIDCAP50"},mc:{id:"31",symbol:"in;mfy"}},{name:"Nifty Infrastructure",etm:{id:"13022",symbol:"CNXINFRA"},mc:{id:"35",symbol:"in;cfr"}},{name:"Nifty India Manufacturing",etm:{id:"47194",symbol:"NIFINDIAMANU"},mc:{id:"133",symbol:"mc;nindiamfg"}},{name:"Nifty PSU Bank",etm:{id:"13026",symbol:"CNXPSUBANK"},mc:{id:"43",symbol:"in;cuk"}},{name:"Nifty PSE",etm:{id:"13029",symbol:"CNXPSE"},mc:{id:"42",symbol:"in;cps"}},{name:"Nifty CPSE",etm:{id:"14214",symbol:"CPSE"},mc:{id:"61",symbol:"in;nxe"}},{name:"Nifty MNC",etm:{id:"13019",symbol:"CNXMNC"},mc:{id:"40",symbol:"in;cxc"}},{name:"Nifty Commodities",etm:{id:"13654",symbol:"CNXCOMMO"},mc:{id:"48",symbol:"in;cnxz"}},{name:"Nifty IT",etm:{id:"186",symbol:"CNXIT"},mc:{id:"19",symbol:"in;cnit"}},{name:"Nifty Metal",etm:{id:"13605",symbol:"CNXMETAL"},mc:{id:"51",symbol:"in;CNXM"}},{name:"Nifty Auto",etm:{id:"13603",symbol:"CNXAUTO"},mc:{id:"52",symbol:"in;cnxa"}},{name:"Nifty Realty",etm:{id:"13030",symbol:"CNXREALTY"},mc:{id:"34",symbol:"in;crl"}}],bse:[{name:"BSE SME IPO",etm:{id:"13794",symbol:"SMEIPO"},mc:{id:"58",symbol:"in;zpo"}},{name:"BSE Healthcare",etm:{id:"2276",symbol:"BSE HC"},mc:{id:"15",symbol:"IN;HAX"}},{name:"BSE Power",etm:{id:"12356",symbol:"POWER"},mc:{id:"30",symbol:"in;bpo"}},{name:"BSE IPO",etm:{id:"12725",symbol:"BSEIPO"},mc:{id:"33",symbol:"in;bip"}},{name:"BSE SmallCap",etm:{id:"2022",symbol:"SMLCAP"},mc:{id:"26",symbol:"in;BCX"}},{name:"BSE Telecommunication",etm:{id:"14917",symbol:"TELCOM"},mc:{id:"76",symbol:"in;tez"}},{name:"BSE Bankex",etm:{id:"2647",symbol:"BANKEX"},mc:{id:"18",symbol:"IN;bkx"}},{name:"BSE Fast Moving Consumer Goods",etm:{id:"2274",symbol:"BSEFMC"},mc:{id:"14",symbol:"IN;FMX"}},{name:"BSE SENSEX Next 50",etm:{id:"15817",symbol:"SNXT50"},mc:{id:"101",symbol:"in;bxn"}},{name:"BSE Utilities",etm:{id:"14848",symbol:"UTILS"},mc:{id:"77",symbol:"in;bsu"}},{name:"BSE 150 MidCap",etm:{id:"16178",symbol:"MID150"},mc:{id:"103",symbol:"in;MCD"}},{name:"BSE 400 MidSmallCap",etm:{id:"16177",symbol:"MSL400"},mc:{id:"106",symbol:"in;MSI"}},{name:"BSE 250 SmallCap",etm:{id:"16179",symbol:"SML250"},mc:{id:"104",symbol:"in;SCI"}},{name:"BSE Consumer Durables",etm:{id:"2275",symbol:"BSE CD"},mc:{id:"16",symbol:"IN;CDX"}},{name:"BSE AllCap",etm:{id:"14912",symbol:"ALLCAP"},mc:{id:"67",symbol:"IN;bsx"}},{name:"BSE 500",etm:{id:"2342",symbol:"BSE500"},mc:{id:"12",symbol:"IN;BNX"}},{name:"BSE LargeCap",etm:{id:"14852",symbol:"LRGCAP"},mc:{id:"73",symbol:"in;blp"}},{name:"BSE 200",etm:{id:"2364",symbol:"BSE200"},mc:{id:"2",symbol:"IN;SEI"}},{name:"BSE 250 LargeMidCap",etm:{id:"16181",symbol:"LMI250"},mc:{id:"105",symbol:"in;LMI"}},{name:"BSE SmallCap Select",etm:{id:"14959",symbol:"SMLSEL"},mc:{id:"75",symbol:"in;cey"}},{name:"BSE Sensex",main:!0,etm:{id:"2365",symbol:"SENSEX"},mc:{id:"4",symbol:"in;SEN"}},{name:"BSE 100",etm:{id:"2340",symbol:"BSE100"},mc:{id:"1",symbol:"IN;NTL"}},{name:"BSE MidCap",etm:{id:"1906",symbol:"MIDCAP"},mc:{id:"25",symbol:"in;bmx"}},{name:"BSE Sensex 50",etm:{id:"15648",symbol:"SNSX50"},mc:{id:"100",symbol:"in;bxx"}},{name:"BSE India Infrastructure",etm:{id:"14354",symbol:"INFRA"},mc:{id:"62",symbol:"mc;binfra"}},{name:"BSE Oil & Gas",etm:{id:"2555",symbol:"OILGAS"},mc:{id:"22",symbol:"IN;ogx"}},{name:"BSE Energy",etm:{id:"14911",symbol:"ENERGY"},mc:{id:"70",symbol:"in;bsq"}},{name:"BSE Industrials",etm:{id:"14856",symbol:"INDSTR"},mc:{id:"72",symbol:"in;scx"}},{name:"BSE CPSE",etm:{id:"14537",symbol:"CPSE"},mc:{id:"63",symbol:"mc;bcpse"}},{name:"BSE PSU",etm:{id:"6929",symbol:"BSEPSU"},mc:{id:"11",symbol:"in;pbx"}},{name:"BSE Capital Goods",etm:{id:"2273",symbol:"BSE CG"},mc:{id:"13",symbol:"IN;CGX"}},{name:"BSE MidCap Select",etm:{id:"14958",symbol:"MIDSEL"},mc:{id:"74",symbol:"in;ihb"}},{name:"BSE TECk",etm:{id:"10968",symbol:"TECK"},mc:{id:"10",symbol:"in;tkx"}},{name:"BSE Bharat 22",etm:{id:"16021",symbol:"BHRT22"},mc:{id:"102",symbol:"in;bin"}},{name:"BSE India Manufacturing",etm:{id:"14854",symbol:"MFG"},mc:{id:"66",symbol:"in;mfg"}},{name:"BSE Information Technology",etm:{id:"2157",symbol:"BSE IT"},mc:{id:"17",symbol:"IN;ifx"}},{name:"BSE Auto",etm:{id:"2416",symbol:"AUTO"},mc:{id:"20",symbol:"IN;aox"}},{name:"BSE Metal",etm:{id:"2449",symbol:"METAL"},mc:{id:"21",symbol:"IN;MLX"}},{name:"BSE Realty",etm:{id:"2739",symbol:"REALTY"},mc:{id:"29",symbol:"in;rea"}}]};var O=class{static epochToUtcTimestamp(r){return r&&r>0?Math.trunc(r/1e3):-1}static getTimestampSince(r,n){if(r&&r instanceof Date&&!isNaN(r.getTime())){let e=new Date(r);return e.setDate(e.getDate()-Math.abs(n)),e.getTime()}else return-1}};var V=class{},q=class{},C=class s{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
`).forEach(n=>{let e=n.indexOf(":");if(e>0){let t=n.slice(0,e),o=n.slice(e+1).trim();this.addHeaderEntry(t,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((n,e)=>{this.addHeaderEntry(e,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([n,e])=>{this.setHeaderEntries(n,e)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let n=this.headers.get(r.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,n){return this.clone({name:r,value:n,op:"a"})}set(r,n){return this.clone({name:r,value:n,op:"s"})}delete(r,n){return this.clone({name:r,value:n,op:"d"})}maybeSetNormalizedName(r,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,r)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(n=>{this.headers.set(n,r.headers.get(n)),this.normalizedNames.set(n,r.normalizedNames.get(n))})}clone(r){let n=new s;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([r]),n}applyUpdate(r){let n=r.name.toLowerCase();switch(r.op){case"a":case"s":let e=r.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(r.name,n);let t=(r.op==="a"?this.headers.get(n):void 0)||[];t.push(...e),this.headers.set(n,t);break;case"d":let o=r.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let i=this.headers.get(n);if(!i)return;i=i.filter(d=>o.indexOf(d)===-1),i.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,i)}break}}addHeaderEntry(r,n){let e=r.toLowerCase();this.maybeSetNormalizedName(r,e),this.headers.has(e)?this.headers.get(e).push(n):this.headers.set(e,[n])}setHeaderEntries(r,n){let e=(Array.isArray(n)?n:[n]).map(o=>o.toString()),t=r.toLowerCase();this.headers.set(t,e),this.maybeSetNormalizedName(r,t)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>r(this.normalizedNames.get(n),this.headers.get(n)))}};var ie=class{encodeKey(r){return Le(r)}encodeValue(r){return Le(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function We(s,r){let n=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(t=>{let o=t.indexOf("="),[i,d]=o==-1?[r.decodeKey(t),""]:[r.decodeKey(t.slice(0,o)),r.decodeValue(t.slice(o+1))],c=n.get(i)||[];c.push(d),n.set(i,c)}),n}var $e=/%(\d[a-f0-9])/gi,ze={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Le(s){return encodeURIComponent(s).replace($e,(r,n)=>ze[n]??r)}function J(s){return`${s}`}var L=class s{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new ie,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=We(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(n=>{let e=r.fromObject[n],t=Array.isArray(e)?e.map(J):[J(e)];this.map.set(n,t)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let n=this.map.get(r);return n?n[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,n){return this.clone({param:r,value:n,op:"a"})}appendAll(r){let n=[];return Object.keys(r).forEach(e=>{let t=r[e];Array.isArray(t)?t.forEach(o=>{n.push({param:e,value:o,op:"a"})}):n.push({param:e,value:t,op:"a"})}),this.clone(n)}set(r,n){return this.clone({param:r,value:n,op:"s"})}delete(r,n){return this.clone({param:r,value:n,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let n=this.encoder.encodeKey(r);return this.map.get(r).map(e=>n+"="+this.encoder.encodeValue(e)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let n=new s({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(r),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let n=(r.op==="a"?this.map.get(r.param):void 0)||[];n.push(J(r.value)),this.map.set(r.param,n);break;case"d":if(r.value!==void 0){let e=this.map.get(r.param)||[],t=e.indexOf(J(r.value));t!==-1&&e.splice(t,1),e.length>0?this.map.set(r.param,e):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var oe=class{map=new Map;set(r,n){return this.map.set(r,n),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function Ge(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Be(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function Fe(s){return typeof Blob<"u"&&s instanceof Blob}function Ue(s){return typeof FormData<"u"&&s instanceof FormData}function Ke(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var Y=class s{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(r,n,e,t){this.url=n,this.method=r.toUpperCase();let o;if(Ge(this.method)||t?(this.body=e!==void 0?e:null,o=t):o=e,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new C,this.context??=new oe,!this.params)this.params=new L,this.urlWithParams=n;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),c=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+c+i}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Be(this.body)||Fe(this.body)||Ue(this.body)||Ke(this.body)?this.body:this.body instanceof L?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Ue(this.body)?null:Fe(this.body)?this.body.type||null:Be(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof L?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(r={}){let n=r.method||this.method,e=r.url||this.url,t=r.responseType||this.responseType,o=r.transferCache??this.transferCache,i=r.body!==void 0?r.body:this.body,d=r.withCredentials??this.withCredentials,c=r.reportProgress??this.reportProgress,f=r.headers||this.headers,y=r.params||this.params,p=r.context??this.context;return r.setHeaders!==void 0&&(f=Object.keys(r.setHeaders).reduce((T,m)=>T.set(m,r.setHeaders[m]),f)),r.setParams&&(y=Object.keys(r.setParams).reduce((T,m)=>T.set(m,r.setParams[m]),y)),new s(n,e,i,{params:y,headers:f,context:p,reportProgress:c,responseType:t,withCredentials:d,transferCache:o})}},B=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(B||{}),D=class{headers;status;statusText;url;ok;type;constructor(r,n=200,e="OK"){this.headers=r.headers||new C,this.status=r.status!==void 0?r.status:n,this.statusText=r.statusText||e,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}},Q=class s extends D{constructor(r={}){super(r)}type=B.ResponseHeader;clone(r={}){return new s({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},W=class s extends D{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=B.Response;clone(r={}){return new s({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},k=class extends D{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},Xe=200,Je=204;function se(s,r){return{body:r,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache}}var de=(()=>{class s{handler;constructor(n){this.handler=n}request(n,e,t={}){let o;if(n instanceof Y)o=n;else{let c;t.headers instanceof C?c=t.headers:c=new C(t.headers);let f;t.params&&(t.params instanceof L?f=t.params:f=new L({fromObject:t.params})),o=new Y(n,e,t.body!==void 0?t.body:null,{headers:c,context:t.context,params:f,reportProgress:t.reportProgress,responseType:t.responseType||"json",withCredentials:t.withCredentials,transferCache:t.transferCache})}let i=S(o).pipe(Te(c=>this.handler.handle(c)));if(n instanceof Y||t.observe==="events")return i;let d=i.pipe(be(c=>c instanceof W));switch(t.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return d.pipe(g(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe(g(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe(g(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return d.pipe(g(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${t.observe}}`)}}delete(n,e={}){return this.request("DELETE",n,e)}get(n,e={}){return this.request("GET",n,e)}head(n,e={}){return this.request("HEAD",n,e)}jsonp(n,e){return this.request("JSONP",n,{params:new L().append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,e={}){return this.request("OPTIONS",n,e)}patch(n,e,t={}){return this.request("PATCH",n,se(t,e))}post(n,e,t={}){return this.request("POST",n,se(t,e))}put(n,e,t={}){return this.request("PUT",n,se(t,e))}static \u0275fac=function(e){return new(e||s)(I(V))};static \u0275prov=A({token:s,factory:s.\u0275fac})}return s})(),qe=/^\)\]\}',?\n/,Qe="X-Request-URL";function _e(s){if(s.url)return s.url;let r=Qe.toLocaleLowerCase();return s.headers.get(r)}var Ze=(()=>{class s{fetchImpl=M(ae,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=M(Pe);handle(n){return new ee(e=>{let t=new AbortController;return this.doRequest(n,t.signal,e).then(ce,o=>e.error(new k({error:o}))),()=>t.abort()})}doRequest(n,e,t){return H(this,null,function*(){let o=this.createRequestInit(n),i;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,G({signal:e},o)));He(m),t.next({type:B.Sent}),i=yield m}catch(m){t.error(new k({error:m,status:m.status??0,statusText:m.statusText,url:n.urlWithParams,headers:m.headers}));return}let d=new C(i.headers),c=i.statusText,f=_e(i)??n.urlWithParams,y=i.status,p=null;if(n.reportProgress&&t.next(new Q({headers:d,status:y,statusText:c,url:f})),i.body){let m=i.headers.get("content-length"),F=[],l=i.body.getReader(),u=0,b,R,h=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>H(this,null,function*(){for(;;){let{done:E,value:N}=yield l.read();if(E)break;if(F.push(N),u+=N.length,n.reportProgress){R=n.responseType==="text"?(R??"")+(b??=new TextDecoder).decode(N,{stream:!0}):void 0;let he=()=>t.next({type:B.DownloadProgress,total:m?+m:void 0,loaded:u,partialText:R});h?h.run(he):he()}}}));let U=this.concatChunks(F,u);try{let E=i.headers.get("Content-Type")??"";p=this.parseBody(n,U,E)}catch(E){t.error(new k({error:E,headers:new C(i.headers),status:i.status,statusText:i.statusText,url:_e(i)??n.urlWithParams}));return}}y===0&&(y=p?Xe:0),y>=200&&y<300?(t.next(new W({body:p,headers:d,status:y,statusText:c,url:f})),t.complete()):t.error(new k({error:p,headers:d,status:y,statusText:c,url:f}))})}parseBody(n,e,t){switch(n.responseType){case"json":let o=new TextDecoder().decode(e).replace(qe,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(e);case"blob":return new Blob([e],{type:t});case"arraybuffer":return e.buffer}}createRequestInit(n){let e={},t=n.withCredentials?"include":void 0;if(n.headers.forEach((o,i)=>e[o]=i.join(",")),n.headers.has("Accept")||(e.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(e["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:e,credentials:t}}concatChunks(n,e){let t=new Uint8Array(e),o=0;for(let i of n)t.set(i,o),o+=i.length;return t}static \u0275fac=function(e){return new(e||s)};static \u0275prov=A({token:s,factory:s.\u0275fac})}return s})(),ae=class{};function ce(){}function He(s){s.then(ce,ce)}function en(s,r){return r(s)}function nn(s,r,n){return(e,t)=>Se(n,()=>r(e,o=>s(o,t)))}var Ye=new _(""),rn=new _(""),tn=new _("",{providedIn:"root",factory:()=>!0});var xe=(()=>{class s extends V{backend;injector;chain=null;pendingTasks=M(Me);contributeToStability=M(tn);constructor(n,e){super(),this.backend=n,this.injector=e}handle(n){if(this.chain===null){let e=Array.from(new Set([...this.injector.get(Ye),...this.injector.get(rn,[])]));this.chain=e.reduceRight((t,o)=>nn(t,o,this.injector),en)}if(this.contributeToStability){let e=this.pendingTasks.add();return this.chain(n,t=>this.backend.handle(t)).pipe(Ee(()=>this.pendingTasks.remove(e)))}else return this.chain(n,e=>this.backend.handle(e))}static \u0275fac=function(e){return new(e||s)(I(q),I(Ie))};static \u0275prov=A({token:s,factory:s.\u0275fac})}return s})();var sn=/^\)\]\}',?\n/;function on(s){return"responseURL"in s&&s.responseURL?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null}var je=(()=>{class s{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new ve(-2800,!1);let e=this.xhrFactory;return(e.\u0275loadImpl?pe(e.\u0275loadImpl()):S(null)).pipe(v(()=>new ee(o=>{let i=e.build();if(i.open(n.method,n.urlWithParams),n.withCredentials&&(i.withCredentials=!0),n.headers.forEach((l,u)=>i.setRequestHeader(l,u.join(","))),n.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let l=n.detectContentTypeHeader();l!==null&&i.setRequestHeader("Content-Type",l)}if(n.responseType){let l=n.responseType.toLowerCase();i.responseType=l!=="json"?l:"text"}let d=n.serializeBody(),c=null,f=()=>{if(c!==null)return c;let l=i.statusText||"OK",u=new C(i.getAllResponseHeaders()),b=on(i)||n.url;return c=new Q({headers:u,status:i.status,statusText:l,url:b}),c},y=()=>{let{headers:l,status:u,statusText:b,url:R}=f(),h=null;u!==Je&&(h=typeof i.response>"u"?i.responseText:i.response),u===0&&(u=h?Xe:0);let U=u>=200&&u<300;if(n.responseType==="json"&&typeof h=="string"){let E=h;h=h.replace(sn,"");try{h=h!==""?JSON.parse(h):null}catch(N){h=E,U&&(U=!1,h={error:N,text:h})}}U?(o.next(new W({body:h,headers:l,status:u,statusText:b,url:R||void 0})),o.complete()):o.error(new k({error:h,headers:l,status:u,statusText:b,url:R||void 0}))},p=l=>{let{url:u}=f(),b=new k({error:l,status:i.status||0,statusText:i.statusText||"Unknown Error",url:u||void 0});o.error(b)},T=!1,m=l=>{T||(o.next(f()),T=!0);let u={type:B.DownloadProgress,loaded:l.loaded};l.lengthComputable&&(u.total=l.total),n.responseType==="text"&&i.responseText&&(u.partialText=i.responseText),o.next(u)},F=l=>{let u={type:B.UploadProgress,loaded:l.loaded};l.lengthComputable&&(u.total=l.total),o.next(u)};return i.addEventListener("load",y),i.addEventListener("error",p),i.addEventListener("timeout",p),i.addEventListener("abort",p),n.reportProgress&&(i.addEventListener("progress",m),d!==null&&i.upload&&i.upload.addEventListener("progress",F)),i.send(d),o.next({type:B.Sent}),()=>{i.removeEventListener("error",p),i.removeEventListener("abort",p),i.removeEventListener("load",y),i.removeEventListener("timeout",p),n.reportProgress&&(i.removeEventListener("progress",m),d!==null&&i.upload&&i.upload.removeEventListener("progress",F)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(e){return new(e||s)(I(Oe))};static \u0275prov=A({token:s,factory:s.\u0275fac})}return s})(),Ve=new _(""),an="XSRF-TOKEN",cn=new _("",{providedIn:"root",factory:()=>an}),dn="X-XSRF-TOKEN",ln=new _("",{providedIn:"root",factory:()=>dn}),Z=class{},un=(()=>{class s{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,e,t){this.doc=n,this.platform=e,this.cookieName=t}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ae(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(e){return new(e||s)(I(Re),I(Ce),I(cn))};static \u0275prov=A({token:s,factory:s.\u0275fac})}return s})();function hn(s,r){let n=s.url.toLowerCase();if(!M(Ve)||s.method==="GET"||s.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return r(s);let e=M(Z).getToken(),t=M(ln);return e!=null&&!s.headers.has(t)&&(s=s.clone({headers:s.headers.set(t,e)})),r(s)}function _n(...s){let r=[de,je,xe,{provide:V,useExisting:xe},{provide:q,useFactory:()=>M(Ze,{optional:!0})??M(je)},{provide:Ye,useValue:hn,multi:!0},{provide:Ve,useValue:!0},{provide:Z,useClass:un}];for(let n of s)r.push(...n.\u0275providers);return we(r)}var le=function(s){return s.LIVE="Live",s.CLOSE="CLOSED",s}(le||{});var $=function(s){return s.NSE="50",s.BSE="47",s}($||{});var ue=function(s){return s.OK="ok",s.NO_DATA="no_data",s.ERROR="error",s}(ue||{});var a=class s{static{this.POSITIVE_WHOLE_NUMBER_REGEXP=new RegExp(/^\d+$/)}static getDirection(r){return r>=0?j.UP:j.DOWN}static getExchangeNameFromVendorCode(r){return r===$.NSE?P.NSE:P.BSE}static getExchangeVendorCodeFromName(r){return r===P.NSE?$.NSE:$.BSE}static stringToNumber(r){return Number(r.replace(/,/g,""))}static dateStringToEpoch(r){return new Date(r).getTime()}static getBusinessDays(r,n){let e=new Date(r),t=new Date(n),o=0;for(;e<=t;){let i=e.getDay();i!==0&&i!==6&&o++,e.setDate(e.getDate()+1)}return o}static isBusinessDay(r){let n=r.getDay();return!(n==0||n==6)}static getLastBusinessDay(r){for(;!s.isBusinessDay(r);)r.setDate(r.getDate()-1);return r}static extractScripCodesFromMcSearchResult(r){let n="";try{n=new DOMParser().parseFromString(r,"text/html").querySelector("span")?.textContent||""}catch(e){console.error(`An error occurred while trying to parse MC search result "${r}": ${e}`)}if(n){let e=n.split(""),t=!s.POSITIVE_WHOLE_NUMBER_REGEXP.test(e[1]);return{isin:e[0],nse:t?e[1]:"",bse:t?e[2]:e[1]}}else return null}};var z=function(s){return s[s.STOCK=0]="STOCK",s[s.INDEX=1]="INDEX",s}(z||{}),er=(()=>{class s{constructor(n,e){this.http=n,this.settingsService=e,this.MAX_CHART_HISTORY_IN_DAYS=5*365,this.refresh$=new fe(null),this.marketStatus$=this.settingsService.settings$.pipe(K("refreshInterval"),v(({refreshInterval:t})=>re(ne(0,t),this.refresh$.pipe(te(1))))).pipe(v(()=>this.http.get(w.api.MARKET_STATUS).pipe(g(({marketStatusDto:t})=>({lastUpdated:t.currentTime,status:t.currentMarketStatus===le.LIVE?X.OPEN:X.CLOSED,startTime:a.dateStringToEpoch(t.tradingStartTime),endTime:a.dateStringToEpoch(t.tradingEndTime)}))))).pipe(Ne(1)),this.poll$=this.marketStatus$.pipe(K("status"),v(({status:t})=>ye(()=>t===X.OPEN,this.settingsService.settings$.pipe(K("refreshInterval"),v(({refreshInterval:o})=>re(ne(0,o),this.refresh$.pipe(te(1))))),this.refresh$)))}refresh(){this.refresh$.next(null)}getStock(n,e){return e?this.getStockDetails(n):this.getStocks([n]).pipe(g(t=>t.length>0?t[0]:null))}getIndex(n,e,t){return t?this.getIndexDetails(n,e):this.getIndices([n]).pipe(g(o=>o.length>0?o[0]:null))}getStocks(n){let e={companies:[...n.map(t=>({id:t}))]};return this.poll$.pipe(v(()=>this.getDashboard(e).pipe(g(t=>{let o=t.companies||[];return o.length<=0?[]:o.map(i=>({name:i.companyName,scripCode:{nse:i.nseScripdCode?i.nseScripdCode.toUpperCase().endsWith("EQ")?i.nseScripdCode.slice(0,-2):i.nseScripdCode:void 0,bse:i.scripCode||void 0},vendorCode:{etm:{primary:i.companyId,chart:i.symbol}},quote:{nse:{lastUpdated:i.dateTimeLong,price:a.stringToNumber(i.lastTradedPrice),change:{direction:a.getDirection(a.stringToNumber(i.percentChange)),percentage:a.stringToNumber(i.percentChange),value:a.stringToNumber(i.change)},close:a.stringToNumber(i.previousclose),low:a.stringToNumber(i.low),high:a.stringToNumber(i.high),fiftyTwoWeekLow:a.stringToNumber(i.fiftyTwoWeekLowPrice),fiftyTwoWeekHigh:a.stringToNumber(i.fiftyTwoWeekHighPrice),volume:a.stringToNumber(i.volumeInK)*1e3}}}))}))))}getMainIndices(){let n=[],e=x.nse.find(o=>o.main===!0),t=x.bse.find(o=>o.main===!0);return e&&n.push(e.etm.id),t&&n.push(t.etm.id),this.getIndices(n)}getIndices(n){let e={indices:[...n.map(t=>({id:t}))]};return this.poll$.pipe(v(()=>this.getDashboard(e).pipe(g(t=>{let o=t.indices||[];return o.length<=0?[]:o.map(i=>({id:i.indexid,name:i.indexName,exchange:a.getExchangeNameFromVendorCode(i.exchange),vendorCode:{etm:{primary:i.indexid}},quote:{lastUpdated:i.dateTimeLong,value:a.stringToNumber(i.currentIndexValue),change:{direction:a.getDirection(a.stringToNumber(i.percentChange)),percentage:a.stringToNumber(i.percentChange),value:a.stringToNumber(i.netChange)},advance:{percentage:a.stringToNumber(i.advancesPercentange)+a.stringToNumber(i.noChangePercentage),value:a.stringToNumber(i.advances)+a.stringToNumber(i.noChange)},decline:{percentage:a.stringToNumber(i.declinesPercentange),value:a.stringToNumber(i.declines)}}}))}))))}getHistoricalChart(n,e){let t=e===z.STOCK?n:[...x.nse,...x.bse].find(o=>o.etm.id===n)?.etm.symbol||"";if(t){let o=e===z.STOCK?w.api.STOCK_HISTORIC_CHART:w.api.INDEX_HISTORIC_CHART,i=O.getTimestampSince(new Date,this.MAX_CHART_HISTORY_IN_DAYS),d=Date.now(),c=`symbol=${encodeURIComponent(t)}&from=${O.epochToUtcTimestamp(i)}&to=${O.epochToUtcTimestamp(d)}`;return i>0?this.http.get(o+c).pipe(g(({noData:f,dates:y,o:p,c:T,h:m,l:F,v:l})=>f?[]:[...new Set(y)].map((u,b)=>{let R=new Date(u).toLocaleDateString("en-CA",{timeZone:"Asia/Kolkata"}),h=b>0?T[b-1]:void 0,U=T[b],E,N;return h&&(E=U-h,N=E/h*100),{time:R,open:p[b],close:T[b],high:m[b],low:F[b],value:T[b],volume:l[b],previousDayClose:h,change:E!==void 0&&N!==void 0?{direction:a.getDirection(N),percentage:N,value:E}:void 0,lineColor:N&&a.getDirection(N)===j.UP?"#22c55e":"#ef4444"}}))):S([])}else return console.error(`Stock / Index not found for symbol: ${n}`),S([])}getIntraDayChart(n,e){let t=e===z.STOCK?n:[...x.nse,...x.bse].find(o=>o.etm.id===n)?.mc.symbol||"";if(n){let o=e===z.STOCK?w.api.STOCK_INTRA_DAY_CHART:w.api.INDEX_INTRA_DAY_CHART,i=a.getLastBusinessDay(new Date),d=i.setHours(9,15,0,0),c=i.setHours(15,30,0,0),f=`${encodeURIComponent(t)}&from=${O.epochToUtcTimestamp(d)}&to=${O.epochToUtcTimestamp(c)}`;return d>0?this.poll$.pipe(v(()=>this.http.get(o+f).pipe(g(({s:y,data:p})=>y===ue.OK&&p&&p.length>0?p:[])))):S([])}else return console.error(`Stock / Index not found for symbol: ${n}`),S([])}search(n){return n?this.http.get(w.api.STOCK_SEARCH+n).pipe(g(e=>e.map(t=>({name:t.tagName,vendorCode:{etm:{primary:t.tagId,chart:t.symbol}},scripCode:{}})))):S([])}searchSecondary(n){return n?this.http.get(w.api.STOCK_SEARCH_SECONDARY+n).pipe(g(({result:e})=>e.map(t=>({name:t.fullnm||t.name,vendorCode:{etm:{primary:""},mc:{primary:t.id}},scripCode:{isin:t.isinid||void 0,nse:t.nseid||void 0,bse:parseInt(t.bseid)!==0?t.bseid:void 0}})))):S([])}getStockDetails(n){return this.poll$.pipe(v(()=>this.http.get(w.api.STOCK_QUOTE+n).pipe(g(e=>({name:e.companyName,scripCode:{nse:e.nseScripCode?e.nseScripCode.toUpperCase().endsWith("EQ")?e.nseScripCode.slice(0,-2):e.nseScripCode:void 0,bse:e.bseScripCode||void 0,isin:e.isinCode||void 0},vendorCode:{etm:{primary:e.companyId,chart:(e.nseScripCode&&e.nse?e.nse.symbol:e.bse?.symbol)||void 0}},details:{sector:e.sectorName,industry:e.industryName},quote:{nse:e.nse?{lastUpdated:e.nse.updatedDate,price:e.nse.current,change:{direction:a.getDirection(e.nse.percentChange),percentage:e.nse.percentChange,value:e.nse.absoluteChange},open:e.nse.open,close:e.nse.previousClose,low:e.nse.low,high:e.nse.high,fiftyTwoWeekLow:e.nse.fiftyTwoWeekLowPrice,fiftyTwoWeekHigh:e.nse.fiftyTwoWeekHighPrice,volume:e.nse.volume}:void 0,bse:e.bse?{lastUpdated:e.bse.updatedDate,price:e.bse.current,change:{direction:a.getDirection(e.bse.percentChange),percentage:e.bse.percentChange,value:e.bse.absoluteChange},open:e.bse.open,close:e.bse.previousClose,low:e.bse.low,high:e.bse.high,fiftyTwoWeekLow:e.bse.fiftyTwoWeekLowPrice,fiftyTwoWeekHigh:e.bse.fiftyTwoWeekHighPrice,volume:e.bse.volume}:void 0},metrics:{nse:e.nse?{marketCapType:e.nse.marketCapType,marketCap:e.nse.marketCap,faceValue:e.nse.faceValue,pe:e.nse.pe,pb:e.nse.pb,eps:e.nse.eps,vwap:e.nse.vwap,dividendYield:e.nse.dividendYield,bookValue:e.nse.bookValue}:void 0,bse:e.bse?{marketCapType:e.bse.marketCapType,marketCap:e.bse.marketCap,faceValue:e.bse.faceValue,pe:e.bse.pe,pb:e.bse.pb,eps:e.bse.eps,vwap:e.bse.vwap,dividendYield:e.bse.dividendYield,bookValue:e.bse.bookValue}:void 0},performance:{nse:e.nse?{weekly:{direction:a.getDirection(e.nse.performanceW1),percentage:e.nse.performanceW1,value:e.nse.performanceValueW1},monthly:{direction:a.getDirection(e.nse.performanceM1),percentage:e.nse.performanceM1,value:e.nse.performanceValueM1},quarterly:{direction:a.getDirection(e.nse.performanceM3),percentage:e.nse.performanceM3,value:e.nse.performanceValueM3},halfYearly:{direction:a.getDirection(e.nse.performanceM6),percentage:e.nse.performanceM6,value:e.nse.performanceValueM6},yearly:{one:{direction:a.getDirection(e.nse.performanceY1),percentage:e.nse.performanceY1,value:e.nse.performanceValueY1},three:{direction:a.getDirection(e.nse.performanceY3),percentage:e.nse.performanceY3,value:e.nse.performanceValueY3},five:{direction:a.getDirection(e.nse.performanceY5),percentage:e.nse.performanceY5,value:e.nse.performanceValueY5}}}:void 0,bse:e.bse?{weekly:{direction:a.getDirection(e.bse.performanceW1),percentage:e.bse.performanceW1,value:e.bse.performanceValueW1},monthly:{direction:a.getDirection(e.bse.performanceM1),percentage:e.bse.performanceM1,value:e.bse.performanceValueM1},quarterly:{direction:a.getDirection(e.bse.performanceM3),percentage:e.bse.performanceM3,value:e.bse.performanceValueM3},halfYearly:{direction:a.getDirection(e.bse.performanceM6),percentage:e.bse.performanceM6,value:e.bse.performanceValueM6},yearly:{one:{direction:a.getDirection(e.bse.performanceY1),percentage:e.bse.performanceY1,value:e.bse.performanceValueY1},three:{direction:a.getDirection(e.bse.performanceY3),percentage:e.bse.performanceY3,value:e.bse.performanceValueY3},five:{direction:a.getDirection(e.bse.performanceY5),percentage:e.bse.performanceY5,value:e.bse.performanceValueY5}}}:void 0}})))))}getIndexDetails(n,e){return this.poll$.pipe(v(()=>ge({index:this.http.get(w.api.INDEX_QUOTE+n).pipe(g(t=>({id:t.assetId,name:t.assetName,exchange:a.getExchangeNameFromVendorCode(t.assetExchangeId),vendorCode:{etm:{primary:t.assetId}},quote:{lastUpdated:t.dateTime,value:t.lastTradedPrice,change:{direction:a.getDirection(t.percentChange),percentage:t.percentChange,value:t.netChange},open:t.keyMetrics.openPrice,close:t.keyMetrics.previousClose,low:t.keyMetrics.lowPrice,high:t.keyMetrics.highPrice,fiftyTwoWeekLow:t.fiftyTwoWeekLow,fiftyTwoWeekHigh:t.fiftyTwoWeekHigh,advance:{percentage:t.advancesPercentage,value:t.advances},decline:{percentage:t.declinesPercentage,value:t.declines}},metrics:{marketCap:t.keyMetrics.marketCap,pe:t.keyMetrics.peRatio,pb:t.keyMetrics.pbRatio,dividendYield:t.keyMetrics.dividendYield},performance:{weekly:{direction:a.getDirection(t.r1Week),percentage:t.r1Week,value:t.change1Week},monthly:{direction:a.getDirection(t.r1Month),percentage:t.r1Month,value:t.change1Month},quarterly:{direction:a.getDirection(t.r3Month),percentage:t.r3Month,value:t.change3Month},halfYearly:{direction:a.getDirection(t.r6Month),percentage:t.r6Month,value:t.change6Month},yearly:{one:{direction:a.getDirection(t.r1Year),percentage:t.r1Year,value:t.change1Year},three:{direction:a.getDirection(t.r3Year),percentage:t.r3Year,value:t.change3Year},five:{direction:a.getDirection(t.r5Year),percentage:t.r5Year,value:t.change5Year}}}}))),constituents:this.http.get(w.api.INDEX_CONSTITUENTS+`exchange=${a.getExchangeVendorCodeFromName(e)}&indexid=${n}&sortby=netChange`).pipe(g(({searchresult:t})=>t[0]&&t[0].companies?.length>0?t[0].companies.map(o=>{let i={price:o.current,change:{direction:a.getDirection(o.percentChange),percentage:o.percentChange,value:o.change},volume:o.volumeInLacs*1e5};return{name:o.companyName,vendorCode:{etm:{primary:o.companyId,chart:o.symbol}},scripCode:{nse:e===P.NSE&&o.nseScripCode?o.nseScripCode:void 0,bse:e===P.BSE&&o.bseScripCode?o.bseScripCode:void 0},quote:{nse:e===P.NSE?i:void 0,bse:e===P.BSE?i:void 0}}}):[]))}).pipe(g(({index:t,constituents:o})=>me(G({},t),{constituents:o})))))}getDashboard(n){return this.http.post(w.api.DASHBOARD,n)}static{this.\u0275fac=function(e){return new(e||s)(I(de),I(ke))}}static{this.\u0275prov=A({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{_n as a,X as b,P as c,j as d,O as e,z as f,er as g};