PageSourceSearch

https://arporn.com/_nuxt/DeXoA8Ju.js

js arporn.com collected 2026-10-01 07:45:07 UTC 18,133 bytes, 1 lines download raw bytes

1import{v as _,i as o,b as M,w as C,y as A,d as I,m as r,T as S,S as L,j as T,A as w,D as E,N as H,k as O,c as D}from"./Dqj3r-1D.js";import{B as W,a as z,e as K,f as Z,g as J,h as Q,C as X,L as $,l as ee,P as te,n as se,o as ie,p as ae,R as re,q as ne,r as oe,s as de,t as le,u as ce,V as he,x as _e,z as ue,E as ge,F as me}from"./Dqj3r-1D.js";import"./D3QRNEmJ.js";const U="10.0.1";class N extends _{constructor(e){super(),this._onLoginHandler=async()=>{const t={};this.emit("loggedIn",t);const s=await this._dataProvider.findExistingPrivateShowAsync();if(s){const i={existingShow:s};this.emit("incompleteSessionFound",i)}},this._onLogoutHandler=async()=>{const t={};this.emit("loggedOut",t)},this._sdk=e,this._dataProvider=e.dataProvider}prepare(){this._dataProvider.addListener(o.LOG_IN,this._onLoginHandler),this._dataProvider.addListener(o.LOG_OUT,this._onLogoutHandler)}dispose(){this._dataProvider.removeListener(o.LOG_IN,this._onLoginHandler),this._dataProvider.removeListener(o.LOG_OUT,this._onLogoutHandler)}async loginAsync(e,t,s){const i=await this._dataProvider.getGeoAsync(),a=await this._dataProvider.loginAsync(e,i.bssCountryCode,t,s);return await this._updatePassthroughTokenAsync(),a}async logoutAsync(){await this._dataProvider.logoutAsync(),await this._updatePassthroughTokenAsync()}async _updatePassthroughTokenAsync(){this._sdk.broadcastManager.passthroughToken!==null&&await this._sdk.broadcastManager.loadPassthroughTokenAsync()}get isAuthorized(){return this._dataProvider.isAuthorized}get authResponse(){return this._dataProvider.authResponse}_clearClientSessionToken(){this._dataProvider.clearClientSessionToken()}}const x="1.986.2";class f{static isEqual(e,t){return e.pageIndex===t.pageIndex&&e.pageSize===t.pageSize&&e.itemsOnPage===t.itemsOnPage&&e.totalPages===t.totalPages&&e.totalItems===t.totalItems}}class B extends _{get pagination(){return this._pagination}constructor(e){super(),this._filterListeners=[],this._pagination=null,this._onFilterChangedHandler=t=>{this._pagination=null,this.emit("onFilterChanged",t)},this._dataProvider=e.dataProvider,this._filter=new M}prepare(){this._pagination=null,this._filterListeners.push(this._filter.registerListener("onChanged",this._onFilterChangedHandler))}dispose(){this._filter.unregisterListeners(this._filterListeners)}get filter(){return this._filter}async loadPageAsync(e,t,s=null,i){const a=i?.showOffline===!0,n=i?.showHidden===!0,d=i?.includeTags===!0,m=i?.includeTipMenu===!0,c=i?.includeFavorites===!0,u=i?.favoritesOnlineFirst??!0,p=i?.favoritesSortOrder??"latest",g=await this._dataProvider.loadBroadcastPageAsync(e,t,a,n,this._filter,d,m,c,u,p),v=Math.max(Math.ceil(g.totalCount/t),
11),y={pageIndex:Math.min(e,v-1),pageSize:t,itemsOnPage:g.pageItems.length,totalPages:v,totalItems:g.totalCount},P=this._pagination!==null&&f.isEqual(this._pagination,y);if(this._pagination=y,P||this.emit("onPageChanged",{pagination:y}),s!==null){if(s.pageSize!==t)throw new Error("PageSize is not equal to the thumbnails' page size.");s.defaultImageUrl,s.setPage({broadcasts:g,pagination:y,showOffline:a,showHidden:n,filter:this._filter,includeTags:d,includeTipMenu:m,includeFavorites:c,favoritesOnlineFirst:u,favoritesSortOrder:p,emitPaginationEvent:!P})}return g}async loadBroadcastAsync(e,t){const s=t?.showHidden===!0,i=t?.includeFavorites===!0;return await this._dataProvider.reloadBroadcastAsync(e,s,this._filter,i)}async loadBroadcastByModelNicknameAsync(e,t){const s=t?.showHidden===!0,i=t?.includeFavorites===!0;return await this._dataProvider.reloadBroadcastByModelNicknameAsync(e,s,this._filter,i)}async loadNearbyBroadcastAsync(e,t,s){const i=s?.showHidden===!0,a=s?.includeFavorites===!0,n=s?.favoritesOnlineFirst??!0,d=s?.favoritesSortOrder??"latest";return await this._dataProvider.loadNearbyBroadcastAsync(e,t,i,this._filter,a,n,d)}async loadRelatedBroadcastsAsync(e,t,s,i=null,a){const n=a?.showHidden===!0,d=a?.includeFavorites===!0,m=a?.filter??this.filter,c=await this._dataProvider.loadRelatedBroadcastsAsync(e,t,s,n,m,d),u=Math.max(Math.ceil(c.totalCount/s),1),p={pageIndex:Math.min(t,u-1),pageSize:s,itemsOnPage:c.pageItems.length,totalPages:u,totalItems:c.totalCount};if(i!==null){if(i.pageSize!==s)throw new Error("PageSize is not equal to the thumbnails' page size.");i.defaultImageUrl,i.setRelatedPage({currentBroadcastId:e,broadcasts:c,pagination:p,showHidden:n,includeFavorites:d,filter:this._filter,emitPaginationEvent:!1})}return c}async loadCategoriesAsync(){return await this._dataProvider.getCategoriesAsync()}async loadTagGroupsAsync(e,t,s,i,a,n,d){return await this._dataProvider.getTagGroupsAsync(e,t,s,i,a,n,d)}async loadCurrentPostersAsync(){return await this._dataProvider.getCurrentPostersAsync()}}class k extends _{get pagination(){return this._pagination}get videoClip(){return this._videoClip}constructor(e){super(),this._filterListeners=[],this._sorterListeners=[],this._pagination=null,this._videoClip=null,this._onFilterChangedHandler=t=>{this._pagination=null,this.emit("onFilterChanged",t)},this._onSorterChangedHandler=t=>{this._pagination=null,this.emit("onSorterChanged",t)},this._sdk=e,this._dataProvider=e.dataProvider,this._filter=new C,this._sorter=new A}prepare(){this._pagination=null,this._filterListeners.push(this._filter.registerListener("onChanged",this._onFilterChangedHandler)),this._sorterListeners.push(this._sorter.registerListener("onChanged",this._onSorterChangedHandler))}dispose(){this._filter.unregisterListeners(this._filterListeners),this._sorter.unregisterListeners(this._sorterListeners)}get filter(){return this._filter}get sorter(){return this._sorter}async loadVideoClipsPageAsync(e,t,s=null){const i=await this._dataProvider.loadVideoClipPageAsync(e,t,s===null?this.filter:s.filter,s===null?this.sorter:s.sorter),a=Math.max(Math.ceil(i.totalCount/t),
11),n={pageIndex:Math.min(e,a-1),pageSize:t,itemsOnPage:i.pageItems.length,totalPages:a,totalItems:i.totalCount};if(s===null){const d=this._pagination!==null&&f.isEqual(this._pagination,n);this._pagination=n,d||this.emit("onPageChanged",{pagination:n})}else s.paginationCallback&&s.paginationCallback(n);return i}async loadVideoClipAsync(e,t){const s=await this._dataProvider.loadVideoClipAsync(e);if(t?.loadStreamData!==!1&&(s.isFree||s.product?.isPurchased===!0)){const i=await this._dataProvider.loadVideoClipStreamUrlAsync(e);s.videoUrl=i.url}return s}async openVideoClipAsync(e,t){return this._videoClip=await this.loadVideoClipAsync(e,t),this._videoClip}closeVideoClip(){this._videoClip=null}async reloadVideoClipStreamDataAsync(e){return await this._dataProvider.loadVideoClipStreamUrlAsync(e)}async purchaseVideoClipAsync(e){const t=await this._dataProvider.purchaseVideoClipAsync(e);if(this._sdk.broadcastManager.state===I.UNINITIALIZED)try{const s=await this._sdk.clientProfileManager.getBalanceAsync();this._sdk.clientProfileManager.emitBalanceChanged(s)}catch{}return t}async loadGalleryTagsAsync(e){return await this._dataProvider.loadGalleryTagsAsync(e.selectedTags??null,e.modelId??null,e.dateAfter??null,e.isPurchasedOnly===!0)}async loadVideoClipPurchasesPageAsync(e,t,s){const i=await this._dataProvider.loadVideoClipPurchasesPageAsync(e,t);
1if(s){const a=Math.max(Math.ceil(i.totalCount/t),1),n={pageIndex:Math.min(e,a-1),pageSize:t,itemsOnPage:i.pageItems.length,totalPages:a,totalItems:i.totalCount};s(n)}return i}async loadVideoClipPurchaseAsync(e,t){const s=await this._dataProvider.loadVideoClipPurchaseAsync(e);if(t?.loadStreamData!==!1){const i=await this._dataProvider.loadVideoClipStreamUrlAsync(s.item.id);s.item.videoUrl=i.url}return s}async openVideoClipPurchaseAsync(e,t){const s=await this.loadVideoClipPurchaseAsync(e,t);return this._videoClip=s.item,s}async loadModelsPageAsync(e,t){return await this._dataProvider.loadModelsPageAsync(e,t)}}class l extends _{constructor(e){super(),this._broadcast=null,this._cachedEmojis=null,this._dpLoggedInHandler=()=>{this.emitClearChatMessage()},this._dpLoggedOutHandler=()=>{this.emitClearChatMessage()},this._nsConnectedHandler=t=>{this.emitClearChatMessage()},this._nsChatMessageHandler=t=>{this.emit("message",l._getArgsChatMessage(t))},this._nsTipsSentHandler=t=>{this.emit("tipsSent",l._getArgsTipsSent(t))},this._nsTipMenuPurchased=t=>{this.emit("tipMenuItemPurchased",l._getArgsTipMenuPurchased(t))},this._nsToysMenuItemPurchased=t=>{this.emit("toysMenuItemPurchased",l._getArgsToysMenuItemPurchased(t))},this._nsHistoryMessageHandler=t=>{const s={timestamp:t.timestamp,correlationId:t.correlationId,items:[]};t.payload.items.forEach(i=>{let a;i.type===r.MESSAGE?a=l._getArgsChatMessage(i):i.type===r.TIPS_SENT?a=l._getArgsTipsSent(i):i.type===r.TIP_MENU_PURCHASED?a=l._getArgsTipMenuPurchased(i):i.type===r.TOYS_MENU_ITEM_PURCHASED&&(a=l._getArgsToysMenuItemPurchased(i)),a!==void 0&&s.items.push(a)}),this.emit("historyMessage",s)},this._nsDeleteAllUserMessagesHandler=t=>{const s={timestamp:t.timestamp,correlationId:t.correlationId,toRoomChatId:t.toRoomChatId,userId:t.payload.userId};s.toRoomChatId===this._sdk.nsManager.roomChatId&&this.emit("deleteAllUserMessages",s)},this._nsUserMutedByModelHandler=t=>{const s={timestamp:t.timestamp,correlationId:t.correlationId,toRoomChatId:t.toRoomChatId,broadcastId:t.payload.broadcastId,modelNickname:t.from.nickname,muteDuration:t.payload.muteDuration,muteUntil:new Date(t.payload.endTime*1e3),reason:t.payload.reason};s.toRoomChatId===this._sdk.nsManager.roomChatId&&this.emit("userMuted",s)},this._sdk=e,this._dataProvider=e.dataProvider,this._notificationService=e.notificationService}prepare(){this._addHandlers()}dispose(){this._removeHandlers()}setBroadcast(e){this._broadcast=e}_addHandlers(){this._dataProvider.addListener(o.LOG_IN,this._dpLoggedInHandler),this._dataProvider.addListener(o.LOG_OUT,this._dpLoggedOutHandler),this._notificationService.addListener(r.CONNECTED,this._nsConnectedHandler),this._notificationService.addListener(r.MESSAGE,this._nsChatMessageHandler),this._notificationService.addListener(r.TIPS_SENT,this._nsTipsSentHandler),this._notificationService.addListener(r.TIP_MENU_PURCHASED,this._nsTipMenuPurchased),this._notificationService.addListener(r.TOYS_MENU_ITEM_PURCHASED,this._nsToysMenuItemPurchased),this._notificationService.addListener(r.HISTORY_MESSAGE,this._nsHistoryMessageHandler),this._notificationService.addListener(r.DELETE_ALL_USER_MESSAGES,this._nsDeleteAllUserMessagesHandler),this._notificationService.addListener(r.USER_MUTED_BY_MODEL,this._nsUserMutedByModelHandler)}_removeHandlers(){this._dataProvider.removeListener(o.LOG_IN,this._dpLoggedInHandler),this._dataProvider.removeListener(o.LOG_OUT,this._dpLoggedOutHandler),this._notificationService.removeListener(r.CONNECTED,this._nsConnectedHandler),this._notificationService.removeListener(r.MESSAGE,this._nsChatMessageHandler),this._notificationService.removeListener(r.TIPS_SENT,this._nsTipsSentHandler),this._notificationService.removeListener(r.TIP_MENU_PURCHASED,this._nsTipMenuPurchased),this._notificationService.removeListener(r.TOYS_MENU_ITEM_PURCHASED,this._nsToysMenuItemPurchased),this._notificationService.removeListener(r.HISTORY_MESSAGE,this._nsHistoryMessageHandler),this._notificationService.removeListener(r.DELETE_ALL_USER_MESSAGES,this._nsDeleteAllUserMessagesHandler),this._notificationService.removeListener(r.USER_MUTED_BY_MODEL,this._nsUserMutedByModelHandler)}async sendMessageAsync(e){return await this._sdk.nsManager.sendMessageAsync(e)}
1async sendTipsAsync(e,t){return await this._dataProvider.sendTipsAsync(e,t)}async sendTipMenuItemRequestAsync(e,t){return await this._dataProvider.sendTipMenuItemRequestAsync(e,t)}async buyToysMenuItemAsync(e,t,s){return await this._dataProvider.buyToysMenuItemAsync(e,t,s)}async loadModelsStatusesAsync(e){const t=await this._dataProvider.loadModelsStatusesAsync(e);return t.map(s=>s.lastOnlineDate=s.lastOnline>0?new Date(s.lastOnline*1e3):null),t}async sendMessengerTipsAsync(e,t){return await this._dataProvider.sendMessengerTipsAsync(e,t)}async getModelChatClientIdAsync(e){return await this._dataProvider.getModelChatClientIdAsync(e)}async loadEmojisAsync(e=!1){return(this._cachedEmojis===null||e)&&(this._cachedEmojis=await this._dataProvider.loadEmojisAsync()),this._cachedEmojis}static _getArgsChatMessage(e){return{type:"chatMessage",timestamp:e.timestamp,correlationId:e.correlationId,fromUserId:e.fromUserId,fromClientNickname:e.fromClientNickname,message:e.payload.message,userType:e.payload.userType}}static _getArgsTipsSent(e){return{type:"tipsSent",timestamp:e.timestamp,correlationId:e.correlationId,fromUserId:e.fromUserId,fromClientNickname:e.fromClientNickname,amount:e.payload.amount}}static _getArgsTipMenuPurchased(e){return{type:"tipMenuItemPurchased",timestamp:e.timestamp,correlationId:e.correlationId,fromUserId:e.fromUserId,fromClientNickname:e.fromClientNickname,item:{id:e.payload.id,description:e.payload.description,isPrivate:e.payload.isPrivate,price:e.payload.price,sortOrder:0,state:S.Unknown}}}static _getArgsToysMenuItemPurchased(e){return{type:"toysMenuItemPurchased",timestamp:e.timestamp,correlationId:e.correlationId,fromUserId:e.fromUserId,fromClientNickname:e.fromClientNickname,isWhale:e.payload.isWhale,tipperColor:e.payload.tipperColor??null,tipperCategoryDescription:e.payload.tipperCategoryDescription??null,tipperCategory:e.payload.tipperCategory??null,itemId:e.payload.id,itemTitle:e.payload.title,itemDuration:e.payload.duration,itemVibration:e.payload.vibration,itemAmount:e.payload.amount}}emitClearChatMessage(){const e={};this.emit("clearChat",e)}}class R extends _{constructor(e){super(),this._dpLoggedInHandler=async()=>{try{const t=await this._dataProvider.getBalanceAsync();this.emitBalanceChanged(t)}catch{}},this._dpLoggedOutHandler=()=>{this.emitBalanceChanged(0)},this._nsBalanceChangedHandler=t=>{this.emitBalanceChanged(t.payload.balance)},this._dataProvider=e.dataProvider,this._notificationService=e.notificationService}prepare(){this._dataProvider.addListener(o.LOG_IN,this._dpLoggedInHandler),this._dataProvider.addListener(o.LOG_OUT,this._dpLoggedOutHandler),this._notificationService.addListener(r.CLIENT_ACCOUNT_BALANCE,this._nsBalanceChangedHandler)}dispose(){this._dataProvider.removeListener(o.LOG_IN,this._dpLoggedInHandler),this._dataProvider.removeListener(o.LOG_OUT,this._dpLoggedOutHandler),this._notificationService.removeListener(r.CLIENT_ACCOUNT_BALANCE,this._nsBalanceChangedHandler)}async getBalanceAsync(){return await this._dataProvider.getBalanceAsync()}get favorites(){return{addModelAsync:async e=>{await this._dataProvider.addModelToFavoritesAsync(e)},removeModelAsync:async e=>{await this._dataProvider.removeModelFromFavoritesAsync(e)},loadModelsAsync:async()=>await this._dataProvider.loadFavoriteModelsAsync()}}emitBalanceChanged(e){const t={balance:e};this.emit("balanceChanged",t)}}class F extends _{constructor(e){super(),this._modelId=null,this._dataProvider=e.dataProvider}enterRoom(e){this._modelId=e}leaveRoom(){this._modelId=null}async getModelProfileAsync(){return this._modelId===null?null:await this._dataProvider.getModelProfileAsync(this._modelId)}async getModelPostsAsync(e,t){return this._modelId===null?null:await this._dataProvider.getModelPostsAsync(this._modelId,e,t)}prepare(){}dispose(){}}class q{static createInstance(e){return new b(e)}static getSdkVersion(){return U}}class b{constructor(e){this._isDisposed=!1,this._managers=[],this._checkDisposed=()=>{if(this._isDisposed)throw new Error(L.error.coreNotInitialized)},e.logger&&(T.level=e.logger?.level),this.sessionContext={partnerId:e.bss.partnerId,videoPlayerVidParameter:w()},this._dataProvider=new E(e.bss.baseUrl,this.sessionContext,e.bss.onUnauthorizedRequestAsync),this._notificationService=new H(e.ns.url,this.sessionContext),this._managers.push(this._nsManager=new O(this,e.ns.pingIntervalInMillis)),this._managers.push(this._authManager=new N(this)),this._managers.push(this._catalogManager=new B(this)),this._managers.push(this._galleryManager=new k(this)),this._managers.push(this._chatManager=new l(this)),this._managers.push(this._clientProfileManager=new R(this)),this._managers.push(this._broadcastManager=new D(this)),this._managers.push(this._modelProfileManager=new F(this)),this._managers.forEac
1h(t=>t.prepare())}dispose(){this._managers.forEach(e=>e.dispose()),this._dataProvider.dispose(),this._notificationService.dispose(),this._isDisposed=!0}get dataProvider(){return this._checkDisposed(),this._dataProvider}get notificationService(){return this._checkDisposed(),this._notificationService}get nsManager(){return this._checkDisposed(),this._nsManager}get authManager(){return this._checkDisposed(),this._authManager}get catalogManager(){return this._checkDisposed(),this._catalogManager}get galleryManager(){return this._checkDisposed(),this._galleryManager}get chatManager(){return this._checkDisposed(),this._chatManager}get clientProfileManager(){return this._checkDisposed(),this._clientProfileManager}get broadcastManager(){return this._checkDisposed(),this._broadcastManager}get modelProfileManager(){return this._checkDisposed(),this._modelProfileManager}}export{x as AWRTC_BROWSER_VERSION,N as AuthManager,W as BroadcastApiStatus,z as BroadcastFilterFactory,M as BroadcastFilterImpl,D as BroadcastManager,I as BroadcastManagerState,K as BroadcastThumbnail,Z as BroadcastThumbnails,J as BroadcastUnavailableReason,Q as BroadcastWrapper,B as CatalogManager,l as ChatManager,R as ClientProfileManager,X as CombinedError,E as DataProvider,o as DataProviderEvent,k as GalleryManager,$ as Level,T as Log,F as ModelProfileManager,H as NotificationService,O as NotificationServiceManager,ee as NotificationServiceState,r as NsEvent,te as PageReloadMode,f as PaginationHelper,se as PreferredLivePhotoType,ie as PrivateShowRefusedBy,ae as PrivateShowType,re as ResponseError,ne as Role,U as SDK_VERSION,q as SdkFactory,L as SdkTexts,oe as Sex,de as StateChangeReason,le as StreamInfoHelper,ce as StreamNotification,S as TipMenuItemState,_ as TypedEventEmitter,he as VideoClipFilterHelper,C as VideoClipFilterImpl,_e as VideoClipSorterHelper,A as VideoClipSorterImpl,ue as delay,w as uuidv4,ge as validateUUID,me as waitForAsync};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.