{"version":3,"sources":["node_modules/ngx-progressbar/fesm2020/ngx-progressbar.mjs","src/app/services/livestream/index.ts","src/app/services/ai-api/index.ts","src/app/services/twitter/index.ts","src/app/services/nft/index.ts","src/app/services/instagram/index.ts"],"sourcesContent":["import { Subject, Subscription, BehaviorSubject, combineLatest, timer, EMPTY, of } from 'rxjs';\nimport { filter, debounce, switchMap, tap, delay, finalize, takeUntil } from 'rxjs/operators';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Injectable, Optional, Inject, EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChild, NgModule } from '@angular/core';\nimport * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nconst _c0 = [\"progressbar\"];\nconst _c1 = [\"progressbarWrapper\"];\nfunction NgProgressComponent_div_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"div\", 7);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵstyleProp(\"box-shadow\", \"0 0 10px \" + ctx_r0.color + \", 0 0 5px \" + ctx_r0.color);\n }\n}\nfunction NgProgressComponent_div_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 8);\n i0.ɵɵelement(1, \"div\", 9);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵstyleProp(\"border-top-color\", ctx_r0.color)(\"border-left-color\", ctx_r0.color);\n }\n}\nclass NgProgressRef {\n // Get current progress state\n get snapshot() {\n return this._state.value;\n }\n // Check if progress has started\n get isStarted() {\n return this.snapshot.active;\n }\n constructor(customConfig, _onDestroyCallback) {\n this._onDestroyCallback = _onDestroyCallback;\n // Progress start source event (used to cancel finalizing delays)\n this._started = new Subject();\n // Progress start event: stream that emits only when it hasn't already started\n this.started = this._started.pipe(filter(() => !this.isStarted));\n // Progress ended source event\n this._completed = new Subject();\n // Progress start event: stream that emits only when it has already started\n this.completed = this._completed.pipe(filter(() => this.isStarted));\n // Stream that increments and updates the progress state\n this._trickling = new Subject();\n // Stream that combines \"_trickling\" and \"config\" streams\n this._worker = Subscription.EMPTY;\n this._state = new BehaviorSubject({\n active: false,\n value: 0\n });\n this._config = new BehaviorSubject(customConfig);\n this.state = this._state.asObservable();\n this.config = this._config.asObservable();\n this._worker = combineLatest([this._trickling, this._config]).pipe(debounce(([start, config]) => timer(start ? config.debounceTime : 0)), switchMap(([start, config]) => start ? this.onTrickling(config) : this.onComplete(config))).subscribe();\n }\n /**\r\n * Start the progress\r\n */\n start() {\n this._started.next();\n this._trickling.next(true);\n }\n /**\r\n * Complete the progress\r\n */\n complete() {\n this._trickling.next(false);\n }\n /**\r\n * Increment the progress\r\n */\n inc(amount) {\n const n = this.snapshot.value;\n if (!this.isStarted) {\n this.start();\n } else {\n if (typeof amount !== 'number') {\n amount = this._config.value.trickleFunc(n);\n }\n this.set(n + amount);\n }\n }\n /**\r\n * Set the progress\r\n */\n set(n) {\n this.setState({\n value: this.clamp(n),\n active: true\n });\n }\n /**\r\n * Set config\r\n */\n setConfig(config) {\n this._config.next({\n ...this._config.value,\n ...config\n });\n }\n /**\r\n * Destroy progress reference\r\n */\n destroy() {\n this._worker.unsubscribe();\n this._trickling.complete();\n this._state.complete();\n this._config.complete();\n this._started.complete();\n this._completed.complete();\n this._onDestroyCallback();\n }\n /**\r\n * Set progress state\r\n */\n setState(state) {\n this._state.next({\n ...this.snapshot,\n ...state\n });\n }\n /**\r\n * Clamps a value to be between min and max\r\n */\n clamp(n) {\n return Math.max(this._config.value.min, Math.min(this._config.value.max, n));\n }\n /**\r\n * Keeps incrementing the progress\r\n */\n onTrickling(config) {\n if (!this.isStarted) {\n this.set(this._config.value.min);\n }\n return timer(0, config.trickleSpeed).pipe(tap(() => this.inc()));\n }\n /**\r\n * Completes then resets the progress\r\n */\n onComplete(config) {\n this._completed.next();\n return !this.isStarted ? EMPTY : of({}).pipe(\n // Complete the progress\n tap(() => this.setState({\n value: 100\n })),\n // Deactivate the progress after a tiny delay\n delay(config.speed * 1.7), tap(() => this.setState({\n active: false\n })),\n // Use a tiny delay before resetting\n delay(config.speed),\n // Force the progress to reset even it got cancelled\n finalize(() => this.setState({\n value: 0\n })),\n // Cancel any of the finalizing delays if the progress has started again\n takeUntil(this._started));\n }\n}\nconst NG_PROGRESS_CONFIG = new InjectionToken('ngProgressConfig');\nconst defaultConfig = {\n min: 8,\n max: 100,\n speed: 200,\n debounceTime: 0,\n trickleSpeed: 300,\n fixed: true,\n meteor: true,\n thick: false,\n spinner: true,\n ease: 'linear',\n color: '#1B95E0',\n direction: 'ltr+',\n spinnerPosition: 'right',\n trickleFunc: n => {\n if (n >= 0 && n < 20) return 10;\n if (n >= 20 && n < 50) return 4;\n if (n >= 50 && n < 80) return 2;\n if (n >= 80 && n < 99) return 0.5;\n return 0;\n }\n};\nlet NgProgress = /*#__PURE__*/(() => {\n class NgProgress {\n constructor(config) {\n // Store progress bar instances\n this._instances = new Map();\n this.config = config ? {\n ...defaultConfig,\n ...config\n } : defaultConfig;\n }\n /**\r\n * Get or Create progress bar by ID\r\n */\n ref(id = 'root', config) {\n if (this._instances.has(id)) {\n // Get ProgressRef instance\n const progressRef = this._instances.get(id);\n if (config) {\n progressRef.setConfig({\n ...this.config,\n ...config\n });\n }\n return progressRef;\n } else {\n // Create new ProgressRef instance\n const progressRef = new NgProgressRef({\n ...this.config,\n ...config\n }, this.deleteInstance(id));\n return this._instances.set(id, progressRef).get(id);\n }\n }\n /**\r\n * Destroy all progress bar instances\r\n */\n destroyAll() {\n this._instances.forEach(ref => ref.destroy());\n }\n /**\r\n * A destroyer function for each progress bar instance\r\n */\n deleteInstance(id) {\n return () => {\n this._instances.delete(id);\n };\n }\n }\n NgProgress.ɵfac = function NgProgress_Factory(t) {\n return new (t || NgProgress)(i0.ɵɵinject(NG_PROGRESS_CONFIG, 8));\n };\n NgProgress.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: NgProgress,\n factory: NgProgress.ɵfac,\n providedIn: 'root'\n });\n return NgProgress;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet NgProgressComponent = /*#__PURE__*/(() => {\n class NgProgressComponent {\n get isStarted() {\n return this.progressRef?.isStarted;\n }\n constructor(_ngProgress) {\n this._ngProgress = _ngProgress;\n /** Creates a new instance if id is not already exists */\n this.id = 'root';\n /** Initializes inputs from the global config */\n this.min = this._ngProgress.config.min;\n this.max = this._ngProgress.config.max;\n this.ease = this._ngProgress.config.ease;\n this.color = this._ngProgress.config.color;\n this.speed = this._ngProgress.config.speed;\n this.thick = this._ngProgress.config.thick;\n this.fixed = this._ngProgress.config.fixed;\n this.meteor = this._ngProgress.config.meteor;\n this.spinner = this._ngProgress.config.spinner;\n this.trickleSpeed = this._ngProgress.config.trickleSpeed;\n this.debounceTime = this._ngProgress.config.debounceTime;\n this.trickleFunc = this._ngProgress.config.trickleFunc;\n this.spinnerPosition = this._ngProgress.config.spinnerPosition;\n this.direction = this._ngProgress.config.direction;\n this.started = new EventEmitter();\n this.completed = new EventEmitter();\n }\n ngOnChanges() {\n // Update progress bar config when inputs change\n this.progressRef?.setConfig({\n max: this.max > 0 && this.max <= 100 ? this.max : 100,\n min: this.min < 100 && this.min >= 0 ? this.min : 0,\n speed: this.speed,\n trickleSpeed: this.trickleSpeed,\n trickleFunc: this.trickleFunc,\n debounceTime: this.debounceTime\n });\n }\n ngOnInit() {\n // Get progress bar service instance\n this.progressRef = this._ngProgress.ref(this.id, {\n max: this.max,\n min: this.min,\n speed: this.speed,\n trickleSpeed: this.trickleSpeed,\n debounceTime: this.debounceTime\n });\n // Subscribe to progress state\n const progress = this.progressElement.nativeElement;\n const progressWrapper = this.progressWrapperElement.nativeElement;\n this._state = this.progressRef.state.pipe(tap(state => {\n progress.style.transform = `translate3d(${state.value}%,0,0)`;\n if (state.active) {\n progress.style.transition = `all ${this.speed}ms ${this.ease}`;\n progressWrapper.setAttribute('active', 'true');\n } else {\n progress.style.transition = 'none';\n progressWrapper.setAttribute('active', 'false');\n }\n })).subscribe();\n // Subscribes to started and completed events on demand\n if (this.started.observed) {\n this._started = this.progressRef.started.subscribe(() => this.started.emit());\n }\n if (this.completed.observed) {\n this._completed = this.progressRef.completed.subscribe(() => this.completed.emit());\n }\n }\n ngOnDestroy() {\n this._state?.unsubscribe();\n this._started?.unsubscribe();\n this._completed?.unsubscribe();\n this.progressRef?.destroy();\n }\n start() {\n this.progressRef.start();\n }\n complete() {\n this.progressRef.complete();\n }\n inc(n) {\n this.progressRef.inc(n);\n }\n set(n) {\n this.progressRef.set(n);\n }\n }\n NgProgressComponent.ɵfac = function NgProgressComponent_Factory(t) {\n return new (t || NgProgressComponent)(i0.ɵɵdirectiveInject(NgProgress));\n };\n NgProgressComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: NgProgressComponent,\n selectors: [[\"ng-progress\"]],\n viewQuery: function NgProgressComponent_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 7);\n i0.ɵɵviewQuery(_c1, 7);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.progressElement = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.progressWrapperElement = _t.first);\n }\n },\n hostAttrs: [\"role\", \"progressbar\"],\n hostVars: 4,\n hostBindings: function NgProgressComponent_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"spinnerPosition\", ctx.spinnerPosition)(\"direction\", ctx.direction)(\"thick\", ctx.thick)(\"fixed\", ctx.fixed);\n }\n },\n inputs: {\n id: \"id\",\n min: \"min\",\n max: \"max\",\n ease: \"ease\",\n color: \"color\",\n speed: \"speed\",\n thick: \"thick\",\n fixed: \"fixed\",\n meteor: \"meteor\",\n spinner: \"spinner\",\n trickleSpeed: \"trickleSpeed\",\n debounceTime: \"debounceTime\",\n trickleFunc: \"trickleFunc\",\n spinnerPosition: \"spinnerPosition\",\n direction: \"direction\"\n },\n outputs: {\n started: \"started\",\n completed: \"completed\"\n },\n features: [i0.ɵɵNgOnChangesFeature],\n decls: 7,\n vars: 6,\n consts: [[\"progressbarWrapper\", \"\"], [\"progressbar\", \"\"], [1, \"ng-progress-bar\"], [1, \"ng-bar-placeholder\"], [1, \"ng-bar\"], [\"class\", \"ng-meteor\", 3, \"boxShadow\", 4, \"ngIf\"], [\"class\", \"ng-spinner\", 4, \"ngIf\"], [1, \"ng-meteor\"], [1, \"ng-spinner\"], [1, \"ng-spinner-icon\"]],\n template: function NgProgressComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 2, 0)(2, \"div\", 3)(3, \"div\", 4, 1);\n i0.ɵɵtemplate(5, NgProgressComponent_div_5_Template, 1, 2, \"div\", 5);\n i0.ɵɵelementEnd()();\n i0.ɵɵtemplate(6, NgProgressComponent_div_6_Template, 2, 4, \"div\", 6);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵstyleProp(\"transition\", \"opacity \" + ctx.speed + \"ms \" + ctx.ease);\n i0.ɵɵadvance(3);\n i0.ɵɵstyleProp(\"background-color\", ctx.color);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.meteor);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.spinner);\n }\n },\n dependencies: [i2.NgIf],\n styles: [\"[_nghost-%COMP%]{z-index:999999;pointer-events:none}[fixed=true][_nghost-%COMP%] .ng-progress-bar[_ngcontent-%COMP%], [fixed=true][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{position:fixed}[fixed=true][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:15px}[fixed=true][spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:15px}[fixed=true][spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:15px}[thick=true][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{width:24px;height:24px;border-width:3px}[thick=true][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{height:3px!important}[direction=\\\"ltr+\\\"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(3deg)}[direction=\\\"ltr+\\\"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(4deg)}[direction=\\\"ltr+\\\"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction=\\\"rtl+\\\"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction=\\\"ltr+\\\"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=\\\"rtl+\\\"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction=\\\"ltr+\\\"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:-3px}[direction=\\\"ltr+\\\"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:-4px}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=\\\"rtl+\\\"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:-3px}[direction=ltr-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=\\\"rtl+\\\"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:-4px}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction=\\\"rtl+\\\"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction=\\\"rtl+\\\"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-directionection:reverse}[direction=\\\"rtl+\\\"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(-3deg)}[direction=\\\"rtl+\\\"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(-4deg)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:10px}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:10px}.ng-progress-bar[_ngcontent-%COMP%]{position:relative;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0}.ng-progress-bar[active=true][_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:2px;width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{width:18px;height:18px;box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation .25s linear infinite;border:2px solid transparent;border-radius:50%}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\"],\n changeDetection: 0\n });\n return NgProgressComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet NgProgressModule = /*#__PURE__*/(() => {\n class NgProgressModule {\n static withConfig(config) {\n return {\n ngModule: NgProgressModule,\n providers: [{\n provide: NG_PROGRESS_CONFIG,\n useValue: config\n }]\n };\n }\n }\n NgProgressModule.ɵfac = function NgProgressModule_Factory(t) {\n return new (t || NgProgressModule)();\n };\n NgProgressModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NgProgressModule\n });\n NgProgressModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule]\n });\n return NgProgressModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\r\n * Public API Surface of ngx-progressbar\r\n */\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { NG_PROGRESS_CONFIG, NgProgress, NgProgressComponent, NgProgressModule, NgProgressRef };\n","import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http'\nimport { Injectable } from '@angular/core'\nimport { Observable, throwError } from 'rxjs'\nimport { catchError } from 'rxjs/operators'\nimport {\n ActiveStreams,\n IChannelTags,\n ICreateChannel,\n ListedChannel,\n} from 'src/app/models/live-stream.model'\nimport { environment } from 'src/environments/environment'\n\ninterface AwsChannelResponse {\n channels: ListedChannel[]\n}\n\nexport interface StreamStatus {\n streamStatus: string\n}\n\n@Injectable()\nexport class AwsLiveStreamService {\n constructor(private http: HttpClient) {}\n\n createChannel(params: IChannelTags): Observable {\n const body = { ...params }\n return this.http\n .post(`${environment.apiBaseUrl}/livestream/createchannel`, body)\n .pipe(catchError(this.handleError))\n }\n\n deleteChannel(channelArn: string): Observable {\n const body = { arn: channelArn }\n return this.http\n .post(`${environment.apiBaseUrl}/livestream/deletechannel`, body)\n .pipe(catchError(this.handleError))\n }\n\n getChannelList(): Observable {\n return this.http\n .get(`${environment.apiBaseUrl}/livestream/listchannels`)\n .pipe(catchError(this.handleError))\n }\n\n getStreamKeys(channelArn: string): Observable {\n return this.http\n .get(`${environment.apiBaseUrl}/livestream/getstreamkeys`)\n .pipe(catchError(this.handleError))\n }\n\n getActiveStreams(): Observable {\n return this.http\n .get(`${environment.apiBaseUrl}/livestream/getactivestreams`)\n .pipe(catchError(this.handleError))\n }\n\n getStreamStatus(channelArn: string): Observable {\n const headers = new HttpHeaders({ ignoreProgressBar: '' })\n const options = {\n headers,\n params: { arn: channelArn },\n }\n return this.http\n .get(`${environment.apiBaseUrl}/livestream/status`, options)\n .pipe(catchError(this.handleError))\n }\n\n handleError(error: HttpErrorResponse): Observable {\n return throwError(error)\n }\n}\n","import { HttpClient } from '@angular/common/http'\nimport { Injectable } from '@angular/core'\nimport { Observable } from 'rxjs'\nimport { DowowAiInputContextResponse } from 'src/app/models/dowow-ai.model'\nimport { environment } from 'src/environments/environment'\n\n@Injectable()\nexport class AiContextService {\n constructor(private http: HttpClient) {}\n\n postContext(context: FormData): Observable {\n return this.http.post(\n `${environment.apiBaseUrl}/contexts/`,\n context,\n )\n }\n\n updateContext(context: FormData, contextUid: string): Observable {\n return this.http.patch(\n `${environment.apiBaseUrl}/contexts/${contextUid}`,\n context,\n )\n }\n\n removeContext(contextUid: string): Observable {\n return this.http.delete(`${environment.apiBaseUrl}/contexts/${contextUid}`)\n }\n}\n","import { Injectable } from '@angular/core'\nimport { HttpClient } from '@angular/common/http'\nimport { Observable, of } from 'rxjs'\nimport { environment } from 'src/environments/environment'\nimport { TwitterApiModel } from 'src/app/models/tweet.model'\nimport { TwitterApiModelV2 } from 'src/app/models/tweet.v2.model'\nimport { query } from '@angular/animations'\nimport { catchError } from 'rxjs/operators'\n\n@Injectable()\nexport class TwitterService {\n constructor(private http: HttpClient) {}\n\n search(query: string): Observable {\n return this.http.get(\n `${environment.apiBaseUrl}/twitter?q=${encodeURIComponent(query)}`,\n )\n }\n\n loadNextTweets(query: string): Observable {\n if (!query || query.length < 3) {\n return of(null)\n }\n return this.http.get(`${environment.apiBaseUrl}/twitter${query}`)\n }\n\n searchV2(query: string, userId: string): Observable {\n if (!query || !userId || query.length < 2) {\n return of(null)\n }\n return this.http.get(\n `${environment.apiBaseUrl}/twitter/v2?q=${encodeURIComponent(\n query,\n )}&userId=${encodeURIComponent(userId)}`,\n )\n }\n\n loadNextTweetsV2(query: string, token: string, userId: string): Observable {\n if (!query || !userId || query.length < 2 || !token || token.length < 2) {\n return of(null)\n }\n return this.http.get(\n `${environment.apiBaseUrl}/twitter/v2?q=${encodeURIComponent(query)}&pt=${encodeURIComponent(\n token,\n )}&userId=${encodeURIComponent(userId)}`,\n )\n }\n}\n","import { Injectable } from '@angular/core'\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http'\nimport { Observable, of, throwError } from 'rxjs'\nimport { environment } from 'src/environments/environment'\nimport {\n ApiDclNftAssetsModel,\n ApiEthNftAssetsModel,\n ApiSolanaNftAssetsModel,\n OpenSeaCollectionResponse,\n EthNftTokensCollectionModel,\n OpenSeaAssetsResponse,\n} from '../../models/nft.model'\nimport { catchError } from 'rxjs/operators'\n\n@Injectable()\nexport class NftService {\n constructor(private http: HttpClient) {}\n\n searchOpenSea(walletId: string, count: number, next?: string): Observable {\n const query = next\n ? `${environment.apiBaseUrl}/nft/assets?walletId=${encodeURIComponent(\n walletId,\n )}&count=${encodeURIComponent(count)}&next=${encodeURIComponent(next)}`\n : `${environment.apiBaseUrl}/nft/assets?walletId=${encodeURIComponent(\n walletId,\n )}&count=${encodeURIComponent(count)}`\n return this.http.get(query).pipe(catchError(this.handleError))\n }\n\n searchOpenSeaCollection(\n collection: string,\n limit: number,\n next?: string,\n ): Observable {\n const query = next\n ? `${environment.apiBaseUrl}/nft/collection?collection=${encodeURIComponent(\n collection,\n )}&limit=${encodeURIComponent(limit)}&next=${encodeURIComponent(next)}`\n : `${environment.apiBaseUrl}/nft/collection?collection=${encodeURIComponent(\n collection,\n )}&limit=${encodeURIComponent(limit)}`\n return this.http.get(query).pipe(catchError(this.handleError))\n }\n\n searchEthNft(walletId: string, page: number, count: number): Observable {\n return this.http\n .get(\n `${environment.apiBaseUrl}/nft/eth-assets?walletId=${encodeURIComponent(\n walletId,\n )}&page=${encodeURIComponent(page)}&count=${encodeURIComponent(count)}`,\n )\n .pipe(catchError(this.handleError))\n }\n\n searchEthNftCollection(\n walletId: string,\n page: number,\n count: number,\n ): Observable {\n return this.http\n .get(\n `${environment.apiBaseUrl}/nft/eth-collection?collectionId=${encodeURIComponent(\n walletId,\n )}&page=${encodeURIComponent(page)}&count=${encodeURIComponent(count)}`,\n )\n .pipe(catchError(this.handleError))\n }\n\n searchSolanaNft(\n walletId: string,\n page: number,\n count: number,\n ): Observable {\n return this.http\n .get(\n `${environment.apiBaseUrl}/nft/solana-assets?walletId=${encodeURIComponent(\n walletId,\n )}&page=${encodeURIComponent(page)}&count=${encodeURIComponent(count)}`,\n )\n .pipe(catchError(this.handleError))\n }\n\n searchDclNftByHashtag(hashtag: string): Observable {\n return this.http\n .get(\n `${environment.apiBaseUrl}/nft/dcl-assets?hashtag=${encodeURIComponent(hashtag)}`,\n )\n .pipe(catchError(this.handleError))\n }\n\n handleError(error: HttpErrorResponse): Observable {\n return throwError(error)\n }\n}\n","import { HttpClient } from '@angular/common/http'\nimport { Injectable } from '@angular/core'\nimport { Observable, of, from } from 'rxjs'\nimport { ApiInstagramModel } from '../../models/instagram.model'\n\nexport interface InstaAccount {\n pageId: string\n instaId: string\n accessToken: string\n}\n\nconst cache: Map = new Map()\n\nconst hashTagMap: Record = {}\n\n@Injectable()\nexport class InstagramService {\n constructor(private http: HttpClient) {}\n\n search(\n user_id: string,\n access_token: string,\n query: string,\n mediaEndpoint,\n ): Observable {\n if (!query || query.length < 3) {\n return of({ media: [], paging: { next: null } })\n }\n query.replace('#', '')\n\n const base = {\n user_id,\n access_token,\n }\n\n const cacheKey = `${query}/${mediaEndpoint}`\n const cashed = cache.get(cacheKey)\n\n return new Observable(subscriber => {\n subscriber.next({ ...cashed, loading: true } || null)\n\n return from(\n (async () => {\n if (!hashTagMap.hasOwnProperty(query)) {\n const { data, error } = await this.request(`/ig_hashtag_search`, { ...base, q: query })\n const id = data?.[0]?.id\n if (id) {\n hashTagMap[query] = id\n } else {\n cache.set(cacheKey, { media: [], paging: null, error })\n return { media: [], paging: null, error }\n }\n }\n\n const { data, paging, error } = await this.request(\n `/${hashTagMap[query]}/${mediaEndpoint}`,\n {\n ...base,\n fields:\n 'id,media_type,media_url,caption,permalink,timestamp,children{media_type,media_url}',\n },\n )\n\n cache.set(cacheKey, { media: data, paging, error })\n return { media: data, paging, error, loading: false }\n })(),\n ).subscribe(subscriber)\n })\n }\n\n public async fetchAccounts(access_token: string): Promise {\n const { data } = await this.request('/me/accounts', {\n access_token,\n fields: 'id,access_token,instagram_business_account,name',\n })\n return data\n .map(({ id, access_token, instagram_business_account }) => ({\n pageId: id,\n accessToken: access_token,\n instaId: instagram_business_account?.id,\n }))\n .filter(x => x.instaId)\n }\n\n loadNext(user_id: string, access_token: string, query: string): Observable {\n return from(\n (async () => {\n const { data: media, paging } = await (await fetch(query, {})).json()\n return { media, paging }\n })(),\n )\n }\n\n private async request(url: string, q: Record): Promise {\n const fbApiVersion = '9.0'\n const params = new URLSearchParams(q).toString()\n const response = await fetch(`https://graph.facebook.com/v${fbApiVersion}${url}?${params}`, {})\n if (!response.ok) {\n const details = await response.text()\n const error = JSON.parse(details)?.error\n if (error) {\n return { data: [], paging: null, error: error.error_user_title }\n }\n throw new Error(`FB api error ${response.status} ${response.statusText} ${details}`)\n }\n\n return response.json()\n }\n}\n"],"names":["_c0","_c1","NgProgressComponent_div_5_Template","rf","ctx","ɵɵelement","ctx_r0","ɵɵnextContext","ɵɵstyleProp","NgProgressComponent_div_6_Template","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","NgProgressRef","customConfig","_onDestroyCallback","Subject","filter","Subscription","BehaviorSubject","combineLatest","debounce","start","config","timer","switchMap","amount","n","__spreadValues","state","tap","of","delay","finalize","takeUntil","EMPTY","NG_PROGRESS_CONFIG","InjectionToken","defaultConfig","NgProgress","id","progressRef","ref","ɵɵinject","ɵɵdefineInjectable","NgProgressComponent","_ngProgress","EventEmitter","progress","progressWrapper","ɵɵdirectiveInject","ɵɵdefineComponent","ɵɵviewQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵattribute","ɵɵNgOnChangesFeature","ɵɵtemplate","ɵɵproperty","NgIf","NgProgressModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","AwsLiveStreamService","constructor","http","createChannel","params","body","__spreadValues","post","environment","apiBaseUrl","pipe","catchError","handleError","deleteChannel","channelArn","arn","getChannelList","get","getStreamKeys","getActiveStreams","getStreamStatus","options","headers","HttpHeaders","ignoreProgressBar","error","throwError","ɵɵinject","HttpClient","factory","ɵfac","AiContextService","constructor","http","postContext","context","post","environment","apiBaseUrl","updateContext","contextUid","patch","removeContext","delete","ɵɵinject","HttpClient","factory","ɵfac","TwitterService","constructor","http","search","query","get","environment","apiBaseUrl","encodeURIComponent","loadNextTweets","length","of","searchV2","userId","loadNextTweetsV2","token","ɵɵinject","HttpClient","factory","ɵfac","NftService","constructor","http","searchOpenSea","walletId","count","next","query","environment","apiBaseUrl","encodeURIComponent","get","pipe","catchError","handleError","searchOpenSeaCollection","collection","limit","searchEthNft","page","searchEthNftCollection","searchSolanaNft","searchDclNftByHashtag","hashtag","error","throwError","ɵɵinject","HttpClient","factory","ɵfac","cache","Map","hashTagMap","InstagramService","constructor","http","search","user_id","access_token","query","mediaEndpoint","length","of","media","paging","next","replace","base","cacheKey","cashed","get","Observable","subscriber","__spreadProps","__spreadValues","loading","from","__async","hasOwnProperty","data","error","request","q","id","set","fields","subscribe","fetchAccounts","map","instagram_business_account","pageId","accessToken","instaId","filter","x","loadNext","fetch","json","url","fbApiVersion","params","URLSearchParams","toString","response","ok","details","text","JSON","parse","error_user_title","Error","status","statusText","ɵɵinject","HttpClient","factory","ɵfac"],"mappings":";;6YAMA,IAAMA,GAAM,CAAC,aAAa,EACpBC,GAAM,CAAC,oBAAoB,EACjC,SAASC,GAAmCC,EAAIC,EAAK,CAInD,GAHID,EAA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