Files
roi24/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/6336-0ef559f9ca6156bd_05Q6.js
T
neo 932ec3ac8f KPI cards: Bloomberg stock ticker style
- Redesign KPI cards to look like stock tickers
- Add ticker ID (e.g. ВЫРУЧК:KPI, AOV:KPI)
- Arrow up/down SVG indicators for change direction
- Mini trend-line (50px) inside each card
- Change color: green (#16a34a) for up, red (#e21d1d) for down
- Remove sparkline background area, keep only line
- Fix duplicate arrowUp variable naming (bArrowUp/bArrowDown/bArrowNeutral)
2026-06-21 18:14:08 +05:00

1 line
35 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6336],{76489:function(e,t){t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},s=e.split(";"),o=(t||{}).decode||i,n=0;n<s.length;n++){var h=s[n],a=h.indexOf("=");if(!(a<0)){var c=h.substring(0,a).trim();if(void 0==r[c]){var d=h.substring(a+1,h.length).trim();'"'===d[0]&&(d=d.slice(1,-1)),r[c]=function(e,t){try{return t(e)}catch(t){return e}}(d,o)}}}return r},t.serialize=function(e,t,i){var o=i||{},n=o.encode||r;if("function"!=typeof n)throw TypeError("option encode is invalid");if(!s.test(e))throw TypeError("argument name is invalid");var h=n(t);if(h&&!s.test(h))throw TypeError("argument val is invalid");var a=e+"="+h;if(null!=o.maxAge){var c=o.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(c)}if(o.domain){if(!s.test(o.domain))throw TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!s.test(o.path))throw TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return a};var i=decodeURIComponent,r=encodeURIComponent,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},47041:function(e,t,i){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)0>t.indexOf(r[s])&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(i[r[s]]=e[r[s]]);return i};Object.defineProperty(t,"__esModule",{value:!0}),t.checkCookies=t.hasCookie=t.removeCookies=t.deleteCookie=t.setCookies=t.setCookie=t.getCookie=t.getCookies=void 0;var o=i(76489),n=function(){return"undefined"!=typeof window},h=function(e){void 0===e&&(e="");try{var t=JSON.stringify(e);return/^[\{\[]/.test(t)?t:e}catch(t){return e}};t.getCookies=function(e){if(e&&(t=e.req),!n())return t&&t.cookies?t.cookies:t&&t.headers&&t.headers.cookie?(0,o.parse)(t.headers.cookie):{};for(var t,i={},r=document.cookie?document.cookie.split("; "):[],s=0,h=r.length;s<h;s++){var a=r[s].split("="),c=a.slice(1).join("=");i[a[0]]=c}return i},t.getCookie=function(e,i){var r,s=(0,t.getCookies)(i)[e];if(void 0!==s)return"true"===(r=s?s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent):s)||"false"!==r&&("undefined"!==r?"null"===r?null:r:void 0)},t.setCookie=function(e,t,i){if(i){var a,c,d,l=i.req,f=i.res,u=s(i,["req","res"]);c=l,d=f,a=u}var p=(0,o.serialize)(e,h(t),r({path:"/"},a));if(n())document.cookie=p;else if(d&&c){var g=d.getHeader("Set-Cookie");if(Array.isArray(g)||(g=g?[String(g)]:[]),d.setHeader("Set-Cookie",g.concat(p)),c&&c.cookies){var y=c.cookies;""===t?delete y[e]:y[e]=h(t)}if(c&&c.headers&&c.headers.cookie){var y=(0,o.parse)(c.headers.cookie);""===t?delete y[e]:y[e]=h(t),c.headers.cookie=Object.entries(y).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.setCookies=function(e,i,r){return console.warn("[WARN]: setCookies was deprecated. It will be deleted in the new version. Use setCookie instead."),(0,t.setCookie)(e,i,r)},t.deleteCookie=function(e,i){return(0,t.setCookie)(e,"",r(r({},i),{maxAge:-1}))},t.removeCookies=function(e,i){return console.warn("[WARN]: removeCookies was deprecated. It will be deleted in the new version. Use deleteCookie instead."),(0,t.deleteCookie)(e,i)},t.hasCookie=function(e,i){return!!e&&(0,t.getCookies)(i).hasOwnProperty(e)},t.checkCookies=function(e,i){return console.warn("[WARN]: checkCookies was deprecated. It will be deleted in the new version. Use hasCookie instead."),(0,t.hasCookie)(e,i)}},31356:function(e,t,i){i.d(t,{Sq:function(){return $},TJ:function(){return j},bg:function(){return H}});var r=i(77997),s=i(34155);!function(){let e={};try{if(s)return s.env=Object.assign({},s.env),void Object.assign(s.env,e)}catch(e){}globalThis.process={env:e}}();let o=new TextEncoder;function n(e,t,i){let r=t,s=r+i,o=[],n="";for(;r<s;){let t=e[r++];if(128&t){if(192==(224&t)){let i=63&e[r++];o.push((31&t)<<6|i)}else if(224==(240&t)){let i=63&e[r++],s=63&e[r++];o.push((31&t)<<12|i<<6|s)}else if(240==(248&t)){let i=(7&t)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++];i>65535&&(i-=65536,o.push(i>>>10&1023|55296),i=56320|1023&i),o.push(i)}else o.push(t)}else o.push(t);o.length>=4096&&(n+=String.fromCharCode(...o),o.length=0)}return o.length>0&&(n+=String.fromCharCode(...o)),n}let h=new TextDecoder;class a{type;data;constructor(e,t){this.type=e,this.data=t}}class c extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Object.create(c.prototype)),Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:c.name})}}function d(e,t,i){e.setUint32(t,Math.floor(i/4294967296)),e.setUint32(t+4,i)}function l(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}let f={type:-1,encode:function(e){return e instanceof Date?function({sec:e,nsec:t}){if(e>=0&&t>=0&&e<=17179869183){if(0===t&&e<=4294967295){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e),t}{let i=e/4294967296,r=new Uint8Array(8),s=new DataView(r.buffer);return s.setUint32(0,t<<2|3&i),s.setUint32(4,4294967295&e),r}}{let i=new Uint8Array(12),r=new DataView(i.buffer);return r.setUint32(0,t),d(r,4,e),i}}(function(e){let t=e.getTime(),i=Math.floor(t/1e3),r=1e6*(t-1e3*i),s=Math.floor(r/1e9);return{sec:i+s,nsec:r-1e9*s}}(e)):null},decode:function(e){let t=function(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:{let e=t.getUint32(0);return{sec:4294967296*(3&e)+t.getUint32(4),nsec:e>>>2}}case 12:return{sec:l(t,4),nsec:t.getUint32(0)};default:throw new c(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${e.length}`)}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}};class u{static defaultCodec=new u;__brand;builtInEncoders=[];builtInDecoders=[];encoders=[];decoders=[];constructor(){this.register(f)}register({type:e,encode:t,decode:i}){if(e>=0)this.encoders[e]=t,this.decoders[e]=i;else{let r=-1-e;this.builtInEncoders[r]=t,this.builtInDecoders[r]=i}}tryToEncode(e,t){for(let i=0;i<this.builtInEncoders.length;i++){let r=this.builtInEncoders[i];if(null!=r){let s=r(e,t);if(null!=s)return new a(-1-i,s)}}for(let i=0;i<this.encoders.length;i++){let r=this.encoders[i];if(null!=r){let s=r(e,t);if(null!=s)return new a(i,s)}}return e instanceof a?e:null}decode(e,t,i){let r=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return r?r(e,t,i):new a(t,e)}}function p(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}class g{extensionCodec;context;useBigInt64;maxDepth;initialBufferSize;sortKeys;forceFloat32;ignoreUndefined;forceIntegerToFloat;pos;view;bytes;entered=!1;constructor(e){this.extensionCodec=e?.extensionCodec??u.defaultCodec,this.context=e?.context,this.useBigInt64=e?.useBigInt64??!1,this.maxDepth=e?.maxDepth??100,this.initialBufferSize=e?.initialBufferSize??2048,this.sortKeys=e?.sortKeys??!1,this.forceFloat32=e?.forceFloat32??!1,this.ignoreUndefined=e?.ignoreUndefined??!1,this.forceIntegerToFloat=e?.forceIntegerToFloat??!1,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}clone(){return new g({extensionCodec:this.extensionCodec,context:this.context,useBigInt64:this.useBigInt64,maxDepth:this.maxDepth,initialBufferSize:this.initialBufferSize,sortKeys:this.sortKeys,forceFloat32:this.forceFloat32,ignoreUndefined:this.ignoreUndefined,forceIntegerToFloat:this.forceIntegerToFloat})}reinitializeState(){this.pos=0}encodeSharedRef(e){if(this.entered)return this.clone().encodeSharedRef(e);try{return this.entered=!0,this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)}finally{this.entered=!1}}encode(e){if(this.entered)return this.clone().encode(e);try{return this.entered=!0,this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)}finally{this.entered=!1}}doEncode(e,t){if(t>this.maxDepth)throw Error(`Too deep objects in depth ${t}`);null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.forceIntegerToFloat?this.encodeNumberAsFloat(e):this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.useBigInt64&&"bigint"==typeof e?this.encodeBigInt64(e):this.encodeObject(e,t)}ensureBufferSizeToWrite(e){let t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)}resizeBuffer(e){let t=new ArrayBuffer(e),i=new Uint8Array(t),r=new DataView(t);i.set(this.bytes),this.view=r,this.bytes=i}encodeNil(){this.writeU8(192)}encodeBoolean(e){!1===e?this.writeU8(194):this.writeU8(195)}encodeNumber(e){!this.forceIntegerToFloat&&Number.isSafeInteger(e)?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):this.useBigInt64?this.encodeNumberAsFloat(e):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):this.useBigInt64?this.encodeNumberAsFloat(e):(this.writeU8(211),this.writeI64(e)):this.encodeNumberAsFloat(e)}encodeNumberAsFloat(e){this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))}encodeBigInt64(e){e>=BigInt(0)?(this.writeU8(207),this.writeBigUint64(e)):(this.writeU8(211),this.writeBigInt64(e))}writeStringHeader(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw Error(`Too long string: ${e} bytes in UTF-8`);this.writeU8(219),this.writeU32(e)}}encodeString(e){var t,i;let r=function(e){let t=e.length,i=0,r=0;for(;r<t;){let s=e.charCodeAt(r++);if(4294967168&s){if(4294965248&s){if(s>=55296&&s<=56319&&r<t){let t=e.charCodeAt(r);56320==(64512&t)&&(++r,s=((1023&s)<<10)+(1023&t)+65536)}i+=4294901760&s?4:3}else i+=2}else i++}return i}(e);this.ensureBufferSizeToWrite(5+r),this.writeStringHeader(r),t=this.bytes,i=this.pos,e.length>50?o.encodeInto(e,t.subarray(i)):function(e,t,i){let r=e.length,s=i,o=0;for(;o<r;){let i=e.charCodeAt(o++);if(4294967168&i){if(4294965248&i){if(i>=55296&&i<=56319&&o<r){let t=e.charCodeAt(o);56320==(64512&t)&&(++o,i=((1023&i)<<10)+(1023&t)+65536)}4294901760&i?(t[s++]=i>>18&7|240,t[s++]=i>>12&63|128):t[s++]=i>>12&15|224,t[s++]=i>>6&63|128}else t[s++]=i>>6&31|192;t[s++]=63&i|128}else t[s++]=i}}(e,t,i),this.pos+=r}encodeObject(e,t){let i=this.extensionCodec.tryToEncode(e,this.context);if(null!=i)this.encodeExtension(i);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw Error(`Unrecognized object: ${Object.prototype.toString.apply(e)}`);this.encodeMap(e,t)}}encodeBinary(e){let t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw Error(`Too large binary: ${t}`);this.writeU8(198),this.writeU32(t)}let i=p(e);this.writeU8a(i)}encodeArray(e,t){let i=e.length;if(i<16)this.writeU8(144+i);else if(i<65536)this.writeU8(220),this.writeU16(i);else{if(!(i<4294967296))throw Error(`Too large array: ${i}`);this.writeU8(221),this.writeU32(i)}for(let i of e)this.doEncode(i,t+1)}countWithoutUndefined(e,t){let i=0;for(let r of t)void 0!==e[r]&&i++;return i}encodeMap(e,t){let i=Object.keys(e);this.sortKeys&&i.sort();let r=this.ignoreUndefined?this.countWithoutUndefined(e,i):i.length;if(r<16)this.writeU8(128+r);else if(r<65536)this.writeU8(222),this.writeU16(r);else{if(!(r<4294967296))throw Error(`Too large map object: ${r}`);this.writeU8(223),this.writeU32(r)}for(let r of i){let i=e[r];this.ignoreUndefined&&void 0===i||(this.encodeString(r),this.doEncode(i,t+1))}}encodeExtension(e){if("function"==typeof e.data){let t=e.data(this.pos+6),i=t.length;if(i>=4294967296)throw Error(`Too large extension object: ${i}`);return this.writeU8(201),this.writeU32(i),this.writeI8(e.type),void this.writeU8a(t)}let t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw Error(`Too large extension object: ${t}`);this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)}writeU8(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++}writeU8a(e){let t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t}writeI8(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++}writeU16(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2}writeI16(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2}writeU32(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4}writeI32(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4}writeF32(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4}writeF64(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8}writeU64(e){var t,i;this.ensureBufferSizeToWrite(8),t=this.view,i=this.pos,t.setUint32(i,e/4294967296),t.setUint32(i+4,e),this.pos+=8}writeI64(e){this.ensureBufferSizeToWrite(8),d(this.view,this.pos,e),this.pos+=8}writeBigUint64(e){this.ensureBufferSizeToWrite(8),this.view.setBigUint64(this.pos,e),this.pos+=8}writeBigInt64(e){this.ensureBufferSizeToWrite(8),this.view.setBigInt64(this.pos,e),this.pos+=8}}function y(e){return`${e<0?"-":""}0x${Math.abs(e).toString(16).padStart(2,"0")}`}let w="array",m="map_key",b="map_value",I=e=>{if("string"==typeof e||"number"==typeof e)return e;throw new c("The type of key must be string or number but "+typeof e)};class U{stack=[];stackHeadPosition=-1;get length(){return this.stackHeadPosition+1}top(){return this.stack[this.stackHeadPosition]}pushArrayState(e){let t=this.getUninitializedStateFromPool();t.type=w,t.position=0,t.size=e,t.array=Array(e)}pushMapState(e){let t=this.getUninitializedStateFromPool();t.type=m,t.readCount=0,t.size=e,t.map={}}getUninitializedStateFromPool(){return this.stackHeadPosition++,this.stackHeadPosition===this.stack.length&&this.stack.push({type:void 0,size:0,array:void 0,position:0,readCount:0,map:void 0,key:null}),this.stack[this.stackHeadPosition]}release(e){if(this.stack[this.stackHeadPosition]!==e)throw Error("Invalid stack state. Released state is not on top of the stack.");e.type===w&&(e.size=0,e.array=void 0,e.position=0,e.type=void 0),(e.type===m||e.type===b)&&(e.size=0,e.map=void 0,e.readCount=0,e.type=void 0),this.stackHeadPosition--}reset(){this.stack.length=0,this.stackHeadPosition=-1}}let k=new DataView(new ArrayBuffer(0)),S=new Uint8Array(k.buffer);try{k.getInt8(0)}catch(e){if(!(e instanceof RangeError))throw Error("This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access")}let x=RangeError("Insufficient data"),v=new class{hit=0;miss=0;caches;maxKeyLength;maxLengthPerKey;constructor(e=16,t=16){this.maxKeyLength=e,this.maxLengthPerKey=t,this.caches=[];for(let e=0;e<this.maxKeyLength;e++)this.caches.push([])}canBeCached(e){return e>0&&e<=this.maxKeyLength}find(e,t,i){let r=this.caches[i-1];e:for(let s of r){let r=s.bytes;for(let s=0;s<i;s++)if(r[s]!==e[t+s])continue e;return s.str}return null}store(e,t){let i=this.caches[e.length-1],r={bytes:e,str:t};i.length>=this.maxLengthPerKey?i[Math.random()*i.length|0]=r:i.push(r)}decode(e,t,i){let r=this.find(e,t,i);if(null!=r)return this.hit++,r;this.miss++;let s=n(e,t,i),o=Uint8Array.prototype.slice.call(e,t,t+i);return this.store(o,s),s}};class B{extensionCodec;context;useBigInt64;rawStrings;maxStrLength;maxBinLength;maxArrayLength;maxMapLength;maxExtLength;keyDecoder;mapKeyConverter;totalPos=0;pos=0;view=k;bytes=S;headByte=-1;stack=new U;entered=!1;constructor(e){this.extensionCodec=e?.extensionCodec??u.defaultCodec,this.context=e?.context,this.useBigInt64=e?.useBigInt64??!1,this.rawStrings=e?.rawStrings??!1,this.maxStrLength=e?.maxStrLength??4294967295,this.maxBinLength=e?.maxBinLength??4294967295,this.maxArrayLength=e?.maxArrayLength??4294967295,this.maxMapLength=e?.maxMapLength??4294967295,this.maxExtLength=e?.maxExtLength??4294967295,this.keyDecoder=void 0!==e?.keyDecoder?e.keyDecoder:v,this.mapKeyConverter=e?.mapKeyConverter??I}clone(){return new B({extensionCodec:this.extensionCodec,context:this.context,useBigInt64:this.useBigInt64,rawStrings:this.rawStrings,maxStrLength:this.maxStrLength,maxBinLength:this.maxBinLength,maxArrayLength:this.maxArrayLength,maxMapLength:this.maxMapLength,maxExtLength:this.maxExtLength,keyDecoder:this.keyDecoder})}reinitializeState(){this.totalPos=0,this.headByte=-1,this.stack.reset()}setBuffer(e){let t=p(e);this.bytes=t,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.pos=0}appendBuffer(e){if(-1!==this.headByte||this.hasRemaining(1)){let t=this.bytes.subarray(this.pos),i=p(e),r=new Uint8Array(t.length+i.length);r.set(t),r.set(i,t.length),this.setBuffer(r)}else this.setBuffer(e)}hasRemaining(e){return this.view.byteLength-this.pos>=e}createExtraByteError(e){let{view:t,pos:i}=this;return RangeError(`Extra ${t.byteLength-i} of ${t.byteLength} byte(s) found at buffer[${e}]`)}decode(e){if(this.entered)return this.clone().decode(e);try{this.entered=!0,this.reinitializeState(),this.setBuffer(e);let t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t}finally{this.entered=!1}}*decodeMulti(e){if(this.entered){let t=this.clone();yield*t.decodeMulti(e)}else try{for(this.entered=!0,this.reinitializeState(),this.setBuffer(e);this.hasRemaining(1);)yield this.doDecodeSync()}finally{this.entered=!1}}async decodeAsync(e){if(this.entered)return this.clone().decodeAsync(e);try{this.entered=!0;let t,i=!1;for await(let r of e){if(i)throw this.entered=!1,this.createExtraByteError(this.totalPos);this.appendBuffer(r);try{t=this.doDecodeSync(),i=!0}catch(e){if(!(e instanceof RangeError))throw e}this.totalPos+=this.pos}if(i){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return t}let{headByte:r,pos:s,totalPos:o}=this;throw RangeError(`Insufficient data in parsing ${y(r)} at ${o} (${s} in the current buffer)`)}finally{this.entered=!1}}decodeArrayStream(e){return this.decodeMultiAsync(e,!0)}decodeStream(e){return this.decodeMultiAsync(e,!1)}async *decodeMultiAsync(e,t){if(this.entered){let i=this.clone();yield*i.decodeMultiAsync(e,t)}else try{this.entered=!0;let i=t,r=-1;for await(let s of e){if(t&&0===r)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s),i&&(r=this.readArraySize(),i=!1,this.complete());try{for(;yield this.doDecodeSync(),0!=--r;);}catch(e){if(!(e instanceof RangeError))throw e}this.totalPos+=this.pos}}finally{this.entered=!1}}doDecodeSync(){e:for(;;){let e;let t=this.readHeadByte();if(t>=224)e=t-256;else if(t<192){if(t<128)e=t;else if(t<144){let i=t-128;if(0!==i){this.pushMapState(i),this.complete();continue}e={}}else if(t<160){let i=t-144;if(0!==i){this.pushArrayState(i),this.complete();continue}e=[]}else{let i=t-160;e=this.decodeString(i,0)}}else if(192===t)e=null;else if(194===t)e=!1;else if(195===t)e=!0;else if(202===t)e=this.readF32();else if(203===t)e=this.readF64();else if(204===t)e=this.readU8();else if(205===t)e=this.readU16();else if(206===t)e=this.readU32();else if(207===t)e=this.useBigInt64?this.readU64AsBigInt():this.readU64();else if(208===t)e=this.readI8();else if(209===t)e=this.readI16();else if(210===t)e=this.readI32();else if(211===t)e=this.useBigInt64?this.readI64AsBigInt():this.readI64();else if(217===t){let t=this.lookU8();e=this.decodeString(t,1)}else if(218===t){let t=this.lookU16();e=this.decodeString(t,2)}else if(219===t){let t=this.lookU32();e=this.decodeString(t,4)}else if(220===t){let t=this.readU16();if(0!==t){this.pushArrayState(t),this.complete();continue}e=[]}else if(221===t){let t=this.readU32();if(0!==t){this.pushArrayState(t),this.complete();continue}e=[]}else if(222===t){let t=this.readU16();if(0!==t){this.pushMapState(t),this.complete();continue}e={}}else if(223===t){let t=this.readU32();if(0!==t){this.pushMapState(t),this.complete();continue}e={}}else if(196===t){let t=this.lookU8();e=this.decodeBinary(t,1)}else if(197===t){let t=this.lookU16();e=this.decodeBinary(t,2)}else if(198===t){let t=this.lookU32();e=this.decodeBinary(t,4)}else if(212===t)e=this.decodeExtension(1,0);else if(213===t)e=this.decodeExtension(2,0);else if(214===t)e=this.decodeExtension(4,0);else if(215===t)e=this.decodeExtension(8,0);else if(216===t)e=this.decodeExtension(16,0);else if(199===t){let t=this.lookU8();e=this.decodeExtension(t,1)}else if(200===t){let t=this.lookU16();e=this.decodeExtension(t,2)}else{if(201!==t)throw new c(`Unrecognized type byte: ${y(t)}`);{let t=this.lookU32();e=this.decodeExtension(t,4)}}this.complete();let i=this.stack;for(;i.length>0;){let t=i.top();if(t.type===w){if(t.array[t.position]=e,t.position++,t.position!==t.size)continue e;e=t.array,i.release(t)}else{if(t.type===m){if("__proto__"===e)throw new c("The key __proto__ is not allowed");t.key=this.mapKeyConverter(e),t.type=b;continue e}if(t.map[t.key]=e,t.readCount++,t.readCount!==t.size){t.key=null,t.type=m;continue e}e=t.map,i.release(t)}}return e}}readHeadByte(){return -1===this.headByte&&(this.headByte=this.readU8()),this.headByte}complete(){this.headByte=-1}readArraySize(){let e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new c(`Unrecognized array type byte: ${y(e)}`)}}pushMapState(e){if(e>this.maxMapLength)throw new c(`Max length exceeded: map length (${e}) > maxMapLengthLength (${this.maxMapLength})`);this.stack.pushMapState(e)}pushArrayState(e){if(e>this.maxArrayLength)throw new c(`Max length exceeded: array length (${e}) > maxArrayLength (${this.maxArrayLength})`);this.stack.pushArrayState(e)}decodeString(e,t){return!this.rawStrings||this.stateIsMapKey()?this.decodeUtf8String(e,t):this.decodeBinary(e,t)}decodeUtf8String(e,t){var i;let r;if(e>this.maxStrLength)throw new c(`Max length exceeded: UTF-8 byte length (${e}) > maxStrLength (${this.maxStrLength})`);if(this.bytes.byteLength<this.pos+t+e)throw x;let s=this.pos+t;return r=this.stateIsMapKey()&&this.keyDecoder?.canBeCached(e)?this.keyDecoder.decode(this.bytes,s,e):(i=this.bytes,e>200?function(e,t,i){let r=e.subarray(t,t+i);return h.decode(r)}(i,s,e):n(i,s,e)),this.pos+=t+e,r}stateIsMapKey(){return this.stack.length>0&&this.stack.top().type===m}decodeBinary(e,t){if(e>this.maxBinLength)throw new c(`Max length exceeded: bin length (${e}) > maxBinLength (${this.maxBinLength})`);if(!this.hasRemaining(e+t))throw x;let i=this.pos+t,r=this.bytes.subarray(i,i+e);return this.pos+=t+e,r}decodeExtension(e,t){if(e>this.maxExtLength)throw new c(`Max length exceeded: ext length (${e}) > maxExtLength (${this.maxExtLength})`);let i=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,i,this.context)}lookU8(){return this.view.getUint8(this.pos)}lookU16(){return this.view.getUint16(this.pos)}lookU32(){return this.view.getUint32(this.pos)}readU8(){let e=this.view.getUint8(this.pos);return this.pos++,e}readI8(){let e=this.view.getInt8(this.pos);return this.pos++,e}readU16(){let e=this.view.getUint16(this.pos);return this.pos+=2,e}readI16(){let e=this.view.getInt16(this.pos);return this.pos+=2,e}readU32(){let e=this.view.getUint32(this.pos);return this.pos+=4,e}readI32(){let e=this.view.getInt32(this.pos);return this.pos+=4,e}readU64(){var e,t;let i=(e=this.view,t=this.pos,4294967296*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,i}readI64(){let e=l(this.view,this.pos);return this.pos+=8,e}readU64AsBigInt(){let e=this.view.getBigUint64(this.pos);return this.pos+=8,e}readI64AsBigInt(){let e=this.view.getBigInt64(this.pos);return this.pos+=8,e}readF32(){let e=this.view.getFloat32(this.pos);return this.pos+=4,e}readF64(){let e=this.view.getFloat64(this.pos);return this.pos+=8,e}}let E=/application\/(x-)?msgpack\b/i,T="application/msgpack",A="application/json",C=new g,F=new B;function P(e){return(0,r.RH)(e,{body:e.pack?function(e){if("string"!=typeof e)return e;try{let t=JSON.parse(e);return C.encode(t)}catch{return e}}(e.body):e.body,headers:{Accept:e?.pack?T:A,"Content-Type":e?.pack?T:A}})}function L(e){let t=e.headers.get("content-type")??"";return E.test(t)?e.arrayBuffer().then(e=>F.decode(new Uint8Array(e))):e.json()}var z=Object.defineProperty,D=(e,t,i)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?z(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i};class O{constructor(e,t){D(this,"appId"),D(this,"sentryUrl"),D(this,"authRetryCount",0),D(this,"getJWTTokenHandler",()=>Promise.reject(Error("Get JWT Token handler is not set"))),D(this,"setJWTTokenHandler",()=>Promise.reject(Error("Set JWT Token handler is not set"))),this.appId=e,this.sentryUrl=t}getJWTToken(e){this.getJWTTokenHandler=e}setJWTToken(e){this.setJWTTokenHandler=e}async secureFetch(e,t,i=!1){let s=i?"":await this?.getJWTTokenHandler?.();return s||(s=await this.negotiateAccessToken(t?.pack),await this?.setJWTTokenHandler?.(s)),fetch(e,P((0,r.RH)({mode:"cors",credentials:"include",headers:{authorization:`Bearer ${s}`,"x-access-app-id":this.appId}},t))).then(i=>{if(i.ok)return this.authRetryCount=0,L(i);if(i.status===r.o8.AuthenticationRequired){if(this.authRetryCount>=3)throw r.XM.FailedToNegotiateSecureConnectionError;return this.authRetryCount+=1,this.secureFetch(e,t,!0)}if(i.status===r.o8.Forbidden)throw r.XM.AccessForbiddenError;throw r.XM.NotAuthorizedError})}requestAccessToken(e){let t=P({mode:"cors",credentials:"include",headers:{"x-access-app-id":this.appId},pack:e});return fetch(this.sentryUrl,t)}async negotiateAccessToken(e=!1){let t=await this.requestAccessToken(e);if(t.status===r.o8.PreconditionFailed||t.status>=r.o8.InternalError)throw r.XM.NotAuthorizedError;if(t.ok)return L(t).then(({token:e})=>e||"");throw r.XM.FailedToObtainTokenError}}var M=Object.defineProperty,R=(e,t,i)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?M(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i};class W{constructor({appId:e,getJWTTokenHandler:t,mobile:i=!1,serviceUrl:o=s.env.OCTAGON_SERVICE_URL??"",setJWTTokenHandler:n,useCompression:h=!1}){R(this,"accessProvider"),R(this,"serviceUrl"),R(this,"useCompression"),R(this,"mobile"),this.serviceUrl=o,this.accessProvider=new O(e,(0,r.CN)(this.serviceUrl,"sentry")),this.accessProvider.getJWTToken(t),this.accessProvider.setJWTToken(n),this.mobile=i,this.useCompression=h}formatUrl(e,t={},i={}){return(0,r.CN)(this.serviceUrl,this.mobile?`/mobile/${e}`:e,t,i)}secureFetch(e,t){let i=(0,r.RH)(t,{pack:this.useCompression});return this.accessProvider.secureFetch(e,i)}postJsonData(e,t,i){return this.secureFetch(e,{method:"POST",body:JSON.stringify(t),pack:this.useCompression,...i})}patchJsonData(e,t,i){return this.secureFetch(e,{method:"PATCH",body:JSON.stringify(t),pack:this.useCompression,...i})}putJsonData(e,t,i){return this.secureFetch(e,{method:"PUT",body:JSON.stringify(t),pack:this.useCompression,...i})}deleteRequest(e,t){return this.secureFetch(e,{method:"DELETE",pack:this.useCompression,...t})}}class H extends W{formatUrl(e,t={},i={}){return super.formatUrl(`market-data/${e}`,t,i)}getReference(e,t,i){return this.secureFetch(this.formatUrl("reference",void 0,{securities:e,fields:t}),i)}getHistory(e,t){return this.secureFetch(this.formatUrl("history",void 0,{...e}),t)}getIntraday(e,t){return this.secureFetch(this.formatUrl("intraday",void 0,{...e}),t)}getIndexMembersReference(e,t){return this.secureFetch(this.formatUrl("members/reference",void 0,{...e}),t)}}class $ extends W{formatUrl(e,t={},i={}){return super.formatUrl(`news/${e}`,t,i)}extractSearchParams(e){return{limit:e.limit,offset:e.offset}}getNewsByTicker(e,t){let{ticker:i}=e,r=this.extractSearchParams(e);if(!i)throw Error("Ticker is required");return this.secureFetch(this.formatUrl("byTicker/{ticker}",{ticker:i},r),t)}getNewsByFacet(e,t){let{facet:i}=e,r=this.extractSearchParams(e);if(!i)throw Error("Facet is required");return this.secureFetch(this.formatUrl("byFacet/{facet}",{facet:i},r),t)}}class j extends W{formatUrl(e,t={},i={}){return super.formatUrl(`watchlist/${e}`,t,i)}getWatchlistSummary(e,t,i){return this.secureFetch(this.formatUrl("watchlists/{bconnectId}",{bconnectId:e},t?{watchlistId:t}:{}),i)}createWatchlist(e,t,i){return this.postJsonData(this.formatUrl("watchlists/{bconnectId}",{bconnectId:e}),t,i)}getWatchlistById(e,t,i){return this.secureFetch(this.formatUrl("watchlists/{bconnectId}/{watchlistId}",{bconnectId:e,watchlistId:t.toString()}),i)}updateWatchlistById(e,t,i,r){return this.putJsonData(this.formatUrl("watchlists/{bconnectId}/{watchlistId}",{bconnectId:e,watchlistId:t.toString()}),i,r)}updateWatchlistMetadataById(e,t,i,r){return this.patchJsonData(this.formatUrl("watchlists/{bconnectId}/{watchlistId}/metadata",{bconnectId:e,watchlistId:t.toString()}),i,r)}getPositions(e,t,i){return this.secureFetch(this.formatUrl("positions/{bconnectId}/{watchlistId}",{bconnectId:e,watchlistId:t.toString()}),i)}getPositionById(e,t,i,r){return this.secureFetch(this.formatUrl("positions/byId/{bconnectId}/{watchlistId}/{positionId}",{bconnectId:e,watchlistId:t.toString(),positionId:i.toString()}),r)}getPositionsByTicker(e,t,i,r){return this.secureFetch(this.formatUrl("holdings/byTicker/{bconnectId}/{watchlistId}/{ticker}",{bconnectId:e,watchlistId:t.toString(),ticker:i}),r)}getTickerPositionsAcrossWatchlists(e,t,i){return this.secureFetch(this.formatUrl("positions/byTickerAcrossWatchlists/{bconnectId}/{ticker}",{bconnectId:e,ticker:t}),i)}getPortfolios(e,t){return this.secureFetch(this.formatUrl("portfolios/{bconnectId}",{bconnectId:e}),t)}getPortfolioById(e,t,i){return this.secureFetch(this.formatUrl("portfolios/{bconnectId}/{portfolioId}",{bconnectId:e,portfolioId:t.toString()}),i)}createPortfolio(e,t,i){return this.postJsonData(this.formatUrl("portfolios/{bconnectId}",{bconnectId:e}),t,i)}updatePortfolioById(e,t,i,r){return this.patchJsonData(this.formatUrl("portfolios/{bconnectId}/{portfolioId}",{bconnectId:e,portfolioId:t.toString()}),i,r)}deletePortfolioById(e,t,i){return this.deleteRequest(this.formatUrl("portfolios/{bconnectId}/{portfolioId}",{bconnectId:e,portfolioId:t.toString()}),i)}updatePortfolioMetadataById(e,t,i,r){return this.patchJsonData(this.formatUrl("portfolios/{bconnectId}/{portfolioId}/metadata",{bconnectId:e,portfolioId:t.toString()}),i,r)}getHoldings(e,t,i){return this.secureFetch(this.formatUrl("holdings/{bconnectId}/{portfolioId}",{bconnectId:e,watchlistId:t.toString()}),i)}getHoldingsById(e,t,i,r){return this.secureFetch(this.formatUrl("holdings/byId/{bconnectId}/{portfolioId}/{holdingId}",{bconnectId:e,portfolioId:t.toString(),holdingId:i.toString()}),r)}getHoldingsByTicker(e,t,i,r){return this.secureFetch(this.formatUrl("holdings/byTicker/{bconnectId}/{portfolioId}/{ticker}",{bconnectId:e,portfolioId:t.toString(),ticker:i}),r)}addHoldings(e,t,i,r){return this.postJsonData(this.formatUrl("holdings/{bconnectId}/{portfolioId}",{bconnectId:e,portfolioId:t.toString()}),i,r)}updateHoldingById(e,t,i,r,s){return this.patchJsonData(this.formatUrl("holdings/byId/{bconnectId}/{portfolioId}/{holdingId}",{bconnectId:e,portfolioId:t.toString(),holdingId:i.toString()}),r,s)}deleteHoldingById(e,t,i,r){return this.deleteRequest(this.formatUrl("holdings/byId/{bconnectId}/{portfolioId}/{holdingId}",{bconnectId:e,portfolioId:t.toString(),holdingId:i.toString()}),r)}deleteHoldingsByTicker(e,t,i,r){return this.deleteRequest(this.formatUrl("holdings/byTicker/{bconnectId}/{portfolioId}/{ticker}",{bconnectId:e,portfolioId:t.toString(),ticker:i}),r)}getUserPreference(e,t){return this.secureFetch(this.formatUrl("user-preference/{bconnectId}",{bconnectId:e}),t)}updateUserPreference(e,t,i){return this.postJsonData(this.formatUrl("user-preference/{bconnectId}",{bconnectId:e}),t,i)}getComparisonChart(e,t,i,r){return this.secureFetch(this.formatUrl("comparison-chart/{bconnectId}/{watchlistId}",{bconnectId:e,watchlistId:t},{chartDateRange:i}),r)}getComparisons(e,t,i){return this.secureFetch(this.formatUrl("comparisons/{bconnectId}/{watchlistId}",{bconnectId:e,watchlistId:t.toString()}),i)}updateComparisons(e,t,i,r){return this.postJsonData(this.formatUrl("comparisons/{bconnectId}/{watchlistId}",{bconnectId:e,watchlistId:t.toString()}),i,r)}getWrappedWatchlist(e,t,i){return this.secureFetch(this.formatUrl("wrapped/{bconnectId}/{watchlistId}",{bconnectId:e,watchlistId:t.toString()}),i)}getUserHoldingsSummary(e,t=[],i){return this.postJsonData(this.formatUrl("quick-add/user-holdings-summary/{bconnectId}",{bconnectId:e}),{tickers:t},i)}followTicker(e,t,i,r){return this.postJsonData(this.formatUrl("quick-add/{bconnectId}/{ticker}",{bconnectId:e,ticker:t},i?.length?{portfolioIds:i.join(",")}:{}),{},r)}unfollowTicker(e,t,i,r){return this.deleteRequest(this.formatUrl("quick-add/{bconnectId}/{ticker}",{bconnectId:e,ticker:t},i?.length?{portfolioIds:i.join(",")}:{}),r)}}},77997:function(e,t,i){var r,s,o,n,h,a,c,d;i.d(t,{CN:function(){return p},RH:function(){return function e(t,i={}){if(!t||"object"!=typeof t)return i;if(!i||"object"!=typeof i)return t;if(Array.isArray(t)&&Array.isArray(i))return[...t,...i];let r={...t};for(let s of Object.keys(i)){let o=i[s],n=t[s];Array.isArray(o)&&Array.isArray(n)?r[s]=[...n,...o]:"object"!=typeof o||null===o||Array.isArray(o)?r[s]=o:r[s]=e(n||{},o)}return r}},ST:function(){return s},VI:function(){return o},XM:function(){return l},o8:function(){return r}}),(h=r||(r={}))[h.Success=200]="Success",h[h.Unauthorized=401]="Unauthorized",h[h.Forbidden=403]="Forbidden",h[h.PreconditionFailed=412]="PreconditionFailed",h[h.InternalError=500]="InternalError",h[h.AuthenticationRequired=511]="AuthenticationRequired",(a=s||(s={})).Daily="daily",a.Monthly="monthly",a.Quarterly="quarterly",a.Weekly="weekly",a.Yearly="yearly",(c=o||(o={})).Close="CLOSE",c.High="HIGH",c.Low="LOW",c.Open="OPEN",c.Volume="VOLUME",(d=n||(n={})).KEEP_SOURCE="KEEP_SOURCE",d.KEEP_TARGET="KEEP_TARGET",d.MERGE="MERGE";let l={AccessForbiddenError:Error("Access forbidden!"),NotAuthorizedError:Error("Not authorized!"),FailedToObtainTokenError:Error("Failed to obtain access token!"),FailedToNegotiateSecureConnectionError:Error("Failed to negotiate secure connection!")},f=/{(\w+)}/g,u=/\/+/g;function p(e,t="",i={},r={}){let s=t.replace(f,(e,t)=>i[t]).replace(u,"/"),o=e.replace(/\/+$/,""),n=s.replace(/^\/+/,""),h=new URL(n?`${o}/${n}`:o);for(let e of Object.keys(r))void 0!==r[e]&&h.searchParams.append(e,String(r[e]));return h.toString()}}}]);