Opal-Estate-Pro/node_modules/rxjs/util/MapPolyfill.js.map

1 line
2.6 KiB
Plaintext
Raw Normal View History

2019-09-13 06:27:52 +02:00
{"version":3,"file":"MapPolyfill.js","sourceRoot":"","sources":["../../src/util/MapPolyfill.ts"],"names":[],"mappings":";AAAA;IAAA;QACS,SAAI,GAAG,CAAC,CAAC;QACR,YAAO,GAAU,EAAE,CAAC;QACpB,UAAK,GAAU,EAAE,CAAC;IAuC5B,CAAC;IArCC,yBAAG,GAAH,UAAI,GAAQ;QACV,IAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAClC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC;IAED,yBAAG,GAAH,UAAI,GAAQ,EAAE,KAAU;QACtB,IAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAClC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACb,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACrB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;QAC1B,CAAC;QACD,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAED,4BAAM,GAAN,UAAO,GAAQ;QACb,IAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAClC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAAC,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAED,2BAAK,GAAL;QACE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IAChB,CAAC;IAED,6BAAO,GAAP,UAAQ,EAAY,EAAE,OAAY;QAChC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;YACnC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IACH,kBAAC;AAAD,CAAC,AA1CD,IA0CC;AA1CY,mBAAW,cA0CvB,CAAA","sourcesContent":["export class MapPolyfill {\n public size = 0;\n private _values: any[] = [];\n private _keys: any[] = [];\n\n get(key: any) {\n const i = this._keys.indexOf(key);\n return i === -1 ? undefined : this._values[i];\n }\n\n set(key: any, value: any) {\n const i = this._keys.indexOf(key);\n if (i === -1) {\n this._keys.push(key);\n this._values.push(value);\n this.size++;\n } else {\n this._values[i] = value;\n }\n return this;\n }\n\n delete(key: any): boolean {\n const i = this._keys.indexOf(key);\n if (i === -1) { return false; }\n this._values.splice(i, 1);\n this._keys.splice(i, 1);\n this.size--;\n return true;\n }\n\n clear(): void {\n this._keys.length = 0;\n this._values.length = 0;\n this.size = 0;\n }\n\n forEach(cb: Function, thisArg: any): void {\n for (let i = 0; i < this.size; i++) {\n cb.call(thisArg, this._values[i], this._keys[i]);\n }\n }\n}"]}