migu-api-enhanced 2.27.0 → 2.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +10 -5
  2. package/dist/YDRZ-HSTSW5FC.mjs +11 -0
  3. package/dist/YDRZ-HSTSW5FC.mjs.map +1 -0
  4. package/dist/YDRZ-KF4GXM2T.cjs +11 -0
  5. package/dist/YDRZ-KF4GXM2T.cjs.map +1 -0
  6. package/dist/activity/index.cjs +85 -0
  7. package/dist/activity/index.cjs.map +1 -0
  8. package/dist/activity/index.d.cts +70 -0
  9. package/dist/activity/index.d.ts +70 -0
  10. package/dist/activity/index.mjs +85 -0
  11. package/dist/activity/index.mjs.map +1 -0
  12. package/dist/chunk-4M7T22TX.mjs +21 -0
  13. package/dist/chunk-4M7T22TX.mjs.map +1 -0
  14. package/dist/chunk-AJYZYXNE.mjs +18 -0
  15. package/dist/chunk-AJYZYXNE.mjs.map +1 -0
  16. package/dist/chunk-C56WQXBU.cjs +13 -0
  17. package/dist/chunk-C56WQXBU.cjs.map +1 -0
  18. package/dist/chunk-EIM46AX6.mjs +144 -0
  19. package/dist/chunk-EIM46AX6.mjs.map +1 -0
  20. package/dist/chunk-H6YB76CZ.mjs +95 -0
  21. package/dist/chunk-H6YB76CZ.mjs.map +1 -0
  22. package/dist/chunk-HDGZY5R6.mjs +13 -0
  23. package/dist/chunk-HDGZY5R6.mjs.map +1 -0
  24. package/dist/chunk-ILRMRBMK.cjs +71 -0
  25. package/dist/chunk-ILRMRBMK.cjs.map +1 -0
  26. package/dist/chunk-JOOWMEQP.cjs +95 -0
  27. package/dist/chunk-JOOWMEQP.cjs.map +1 -0
  28. package/dist/chunk-JXEQGZBM.cjs +21 -0
  29. package/dist/chunk-JXEQGZBM.cjs.map +1 -0
  30. package/dist/chunk-KGXC32BN.cjs +185 -0
  31. package/dist/chunk-KGXC32BN.cjs.map +1 -0
  32. package/dist/chunk-QEH62Z4S.cjs +18 -0
  33. package/dist/chunk-QEH62Z4S.cjs.map +1 -0
  34. package/dist/chunk-QMBC3CRQ.mjs +51 -0
  35. package/dist/chunk-QMBC3CRQ.mjs.map +1 -0
  36. package/dist/chunk-QTK2O5KQ.mjs +71 -0
  37. package/dist/chunk-QTK2O5KQ.mjs.map +1 -0
  38. package/dist/chunk-RI7PQIHG.cjs +144 -0
  39. package/dist/chunk-RI7PQIHG.cjs.map +1 -0
  40. package/dist/chunk-TIKOSETY.cjs +51 -0
  41. package/dist/chunk-TIKOSETY.cjs.map +1 -0
  42. package/dist/chunk-VE3TRZRD.mjs +185 -0
  43. package/dist/chunk-VE3TRZRD.mjs.map +1 -0
  44. package/dist/decryptMrc-EGKXYBTB.mjs +11 -0
  45. package/dist/decryptMrc-EGKXYBTB.mjs.map +1 -0
  46. package/dist/decryptMrc-OOH5UIFN.cjs +11 -0
  47. package/dist/decryptMrc-OOH5UIFN.cjs.map +1 -0
  48. package/dist/index.cjs +310 -1628
  49. package/dist/index.cjs.map +1 -1
  50. package/dist/index.d.cts +2 -414
  51. package/dist/index.d.ts +2 -414
  52. package/dist/{index.js → index.mjs} +44 -1178
  53. package/dist/index.mjs.map +1 -0
  54. package/dist/login/index.cjs +315 -0
  55. package/dist/login/index.cjs.map +1 -0
  56. package/dist/login/index.d.cts +57 -0
  57. package/dist/login/index.d.ts +57 -0
  58. package/dist/login/index.mjs +315 -0
  59. package/dist/login/index.mjs.map +1 -0
  60. package/dist/mrc/index.cjs +39 -0
  61. package/dist/mrc/index.cjs.map +1 -0
  62. package/dist/mrc/index.d.cts +37 -0
  63. package/dist/mrc/index.d.ts +37 -0
  64. package/dist/mrc/index.mjs +39 -0
  65. package/dist/mrc/index.mjs.map +1 -0
  66. package/dist/publicKey-D2LR2HGH.cjs +8 -0
  67. package/dist/publicKey-D2LR2HGH.cjs.map +1 -0
  68. package/dist/publicKey-YCVYQ54R.mjs +8 -0
  69. package/dist/publicKey-YCVYQ54R.mjs.map +1 -0
  70. package/dist/rsalib-GGMEGQT2.cjs +9 -0
  71. package/dist/rsalib-GGMEGQT2.cjs.map +1 -0
  72. package/dist/rsalib-HO4SSCTO.mjs +9 -0
  73. package/dist/rsalib-HO4SSCTO.mjs.map +1 -0
  74. package/dist/utils/index.cjs +81 -0
  75. package/dist/utils/index.cjs.map +1 -0
  76. package/dist/utils/index.d.cts +100 -0
  77. package/dist/utils/index.d.ts +100 -0
  78. package/dist/utils/index.mjs +81 -0
  79. package/dist/utils/index.mjs.map +1 -0
  80. package/package.json +24 -4
  81. package/dist/index.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,554 +1,130 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var index_exports = {};
32
- __export(index_exports, {
33
- MiguUtils: () => utils_exports,
34
- RSAKey: () => RSAKey,
35
- URLParams: () => URLParams,
36
- YDRZ: () => YDRZ,
37
- addFollower: () => addFollower,
38
- addSongToMyList: () => addSongToMyList,
39
- addUserCollect: () => addUserCollect,
40
- addUserMyList: () => addUserMyList,
41
- changeQuality: () => changeQuality,
42
- checkCanListen: () => checkCanListen,
43
- checkToken: () => checkToken,
44
- createClient: () => createClient,
45
- decryptMrc: () => decryptMrc,
46
- deleteCloudMusic: () => deleteCloudMusic,
47
- deleteComment: () => deleteComment,
48
- dislikeSong: () => dislikeSong,
49
- editUserMyList: () => editUserMyList,
50
- emojiAction: () => emojiAction,
51
- formatMrc: () => formatMrc,
52
- getActivities: () => getActivities,
53
- getAiBeanCount: () => getAiBeanCount,
54
- getAiBeanSignStatus: () => getAiBeanSignStatus,
55
- getAlbumInfo: () => getAlbumInfo,
56
- getAlbumSong: () => getAlbumSong,
57
- getCloudDLUrl: () => getCloudDLUrl,
58
- getCloudUploadUrl: () => getCloudUploadUrl,
59
- getCloudUrl: () => getCloudUrl,
60
- getColumnInfo: () => getColumnInfo,
61
- getComment: () => getComment,
62
- getConcertComment: () => getConcertComment,
63
- getConcertDetail: () => getConcertDetail,
64
- getConcertInfo: () => getConcertInfo,
65
- getConcertRecommendMv: () => getConcertRecommendMv,
66
- getConcertUrl: () => getConcertUrl,
67
- getDAlbumInfo: () => getDAlbumInfo,
68
- getDAlbumPay: () => getDAlbumPay,
69
- getDAlbumSong: () => getDAlbumSong,
70
- getDLUrlV1: () => getDLUrlV1,
71
- getDeviceId: () => getDeviceId,
72
- getEmojiNum: () => getEmojiNum,
73
- getFollowerList: () => getFollowerList,
74
- getFollowingList: () => getFollowingList,
75
- getFollowingVra: () => getFollowingVra,
76
- getInteractionMsg: () => getInteractionMsg,
77
- getListenFreelySongs: () => getListenFreelySongs,
78
- getListenFreelyTab: () => getListenFreelyTab,
79
- getListenRank: () => getListenRank,
80
- getLyric: () => getLyric,
81
- getMVRecommend: () => getMVRecommend,
82
- getMvBySong: () => getMvBySong,
83
- getMvHls: () => getMvHls,
84
- getMvInfo: () => getMvInfo,
85
- getNewCDList: () => getNewCDList,
86
- getNewSongList: () => getNewSongList,
87
- getNinanByDate: () => getNinanByDate,
88
- getNinanSignInfo: () => getNinanSignInfo,
89
- getNinanSong: () => getNinanSong,
90
- getNoticeMsg: () => getNoticeMsg,
91
- getOpNum: () => getOpNum,
92
- getPacmToken: () => getPacmToken,
93
- getPageInfo: () => getPageInfo,
94
- getPageTab: () => getPageTab,
95
- getPlaylistInfo: () => getPlaylistInfo,
96
- getPlaylistSong: () => getPlaylistSong,
97
- getPublicKey: () => getPublicKey,
98
- getQuality: () => getQuality,
99
- getRadioRecommend: () => getRadioRecommend,
100
- getRadioRecommendAll: () => getRadioRecommendAll,
101
- getRadioSong: () => getRadioSong,
102
- getRankIndex: () => getRankIndex,
103
- getRankInfo: () => getRankInfo,
104
- getRecommendPlaylist: () => getRecommendPlaylist,
105
- getRedirectUrl: () => getRedirectUrl,
106
- getResourceId: () => getResourceId,
107
- getResourceInfo: () => getResourceInfo,
108
- getSVideoInfo: () => getSVideoInfo,
109
- getSVideoRecommend: () => getSVideoRecommend,
110
- getSVideoSearchSuggest: () => getSVideoSearchSuggest,
111
- getSVideoUrl: () => getSVideoUrl,
112
- getSVideoUserContent: () => getSVideoUserContent,
113
- getSVideoUserInfo: () => getSVideoUserInfo,
114
- getSceneRecommend: () => getSceneRecommend,
115
- getSearchDefault: () => getSearchDefault,
116
- getSearchHot: () => getSearchHot,
117
- getSearchSingerTab: () => getSearchSingerTab,
118
- getSearchSingerTabList: () => getSearchSingerTabList,
119
- getSimilarSongRecommend: () => getSimilarSongRecommend,
120
- getSingerAlbum: () => getSingerAlbum,
121
- getSingerIndex: () => getSingerIndex,
122
- getSingerLetter: () => getSingerLetter,
123
- getSingerMv: () => getSingerMv,
124
- getSingerSimilar: () => getSingerSimilar,
125
- getSingerSong: () => getSingerSong,
126
- getSongInfo: () => getSongInfo,
127
- getSquareListByTag: () => getSquareListByTag,
128
- getSquarePage: () => getSquarePage,
129
- getSquareRecommend: () => getSquareRecommend,
130
- getSquareTag: () => getSquareTag,
131
- getThumbsMsg: () => getThumbsMsg,
132
- getTicketInfo: () => getTicketInfo,
133
- getTodayRecommend: () => getTodayRecommend,
134
- getUrlH5V24: () => getUrlH5V24,
135
- getUrlM2: () => getUrlM2,
136
- getUrlV1: () => getUrlV1,
137
- getUrlV2: () => getUrlV2,
138
- getUserAudioBook: () => getUserAudioBook,
139
- getUserBadge: () => getUserBadge,
140
- getUserCollectList: () => getUserCollectList,
141
- getUserHeader: () => getUserHeader,
142
- getUserHeartthrob: () => getUserHeartthrob,
143
- getUserHomePage: () => getUserHomePage,
144
- getUserMyList: () => getUserMyList,
145
- getUserOrdered: () => getUserOrdered,
146
- getUserPhoneInfo: () => getUserPhoneInfo,
147
- getUserSongPage: () => getUserSongPage,
148
- getVersion: () => getVersion,
149
- getVipPlaylist: () => getVipPlaylist,
150
- getVrbtOpNum: () => getVrbtOpNum,
151
- getVrbtUrl: () => getVrbtUrl,
152
- isFollowAuthor: () => isFollowAuthor,
153
- isQuality: () => isQuality,
154
- likeSong: () => likeSong,
155
- loginNP: () => loginNP,
156
- loginOneClick: () => loginOneClick,
157
- loginPhone: () => loginPhone,
158
- loginSim: () => loginSim,
159
- logout: () => logout,
160
- matchPlaylist: () => matchPlaylist,
161
- modules: () => modules_exports,
162
- qualityList: () => qualityList,
163
- queryUserInfo: () => queryUserInfo,
164
- redeemAiBean: () => redeemAiBean,
165
- removeFollower: () => removeFollower,
166
- removeSongFromMyList: () => removeSongFromMyList,
167
- removeUserCollect: () => removeUserCollect,
168
- removeUserMyList: () => removeUserMyList,
169
- searchAlbum: () => searchAlbum,
170
- searchConcert: () => searchConcert,
171
- searchLrc: () => searchLrc,
172
- searchMv: () => searchMv,
173
- searchPlaylist: () => searchPlaylist,
174
- searchRbt: () => searchRbt,
175
- searchSVideo: () => searchSVideo,
176
- searchSinger: () => searchSinger,
177
- searchSong: () => searchSong,
178
- searchSuggest: () => searchSuggest,
179
- searchTicket: () => searchTicket,
180
- shareCommon: () => shareCommon,
181
- shareVideo: () => shareVideo,
182
- signAiBean: () => signAiBean,
183
- signNinan: () => signNinan,
184
- toWordTime: () => toWordTime,
185
- toneFormat: () => toneFormat,
186
- toneUrl: () => toneUrl
187
- });
188
- module.exports = __toCommonJS(index_exports);
189
-
190
- // src/modules/index.ts
191
- var modules_exports = {};
192
- __export(modules_exports, {
193
- YDRZ: () => YDRZ,
194
- addFollower: () => addFollower,
195
- addSongToMyList: () => addSongToMyList,
196
- addUserCollect: () => addUserCollect,
197
- addUserMyList: () => addUserMyList,
198
- checkCanListen: () => checkCanListen,
199
- checkToken: () => checkToken,
200
- deleteCloudMusic: () => deleteCloudMusic,
201
- deleteComment: () => deleteComment,
202
- dislikeSong: () => dislikeSong,
203
- editUserMyList: () => editUserMyList,
204
- emojiAction: () => emojiAction,
205
- getActivities: () => getActivities,
206
- getAiBeanCount: () => getAiBeanCount,
207
- getAiBeanSignStatus: () => getAiBeanSignStatus,
208
- getAlbumInfo: () => getAlbumInfo,
209
- getAlbumSong: () => getAlbumSong,
210
- getCloudDLUrl: () => getCloudDLUrl,
211
- getCloudUploadUrl: () => getCloudUploadUrl,
212
- getCloudUrl: () => getCloudUrl,
213
- getColumnInfo: () => getColumnInfo,
214
- getComment: () => getComment,
215
- getConcertComment: () => getConcertComment,
216
- getConcertDetail: () => getConcertDetail,
217
- getConcertInfo: () => getConcertInfo,
218
- getConcertRecommendMv: () => getConcertRecommendMv,
219
- getConcertUrl: () => getConcertUrl,
220
- getDAlbumInfo: () => getDAlbumInfo,
221
- getDAlbumPay: () => getDAlbumPay,
222
- getDAlbumSong: () => getDAlbumSong,
223
- getDLUrlV1: () => getDLUrlV1,
224
- getEmojiNum: () => getEmojiNum,
225
- getFollowerList: () => getFollowerList,
226
- getFollowingList: () => getFollowingList,
227
- getFollowingVra: () => getFollowingVra,
228
- getInteractionMsg: () => getInteractionMsg,
229
- getListenFreelySongs: () => getListenFreelySongs,
230
- getListenFreelyTab: () => getListenFreelyTab,
231
- getListenRank: () => getListenRank,
232
- getLyric: () => getLyric,
233
- getMVRecommend: () => getMVRecommend,
234
- getMvBySong: () => getMvBySong,
235
- getMvHls: () => getMvHls,
236
- getMvInfo: () => getMvInfo,
237
- getNewCDList: () => getNewCDList,
238
- getNewSongList: () => getNewSongList,
239
- getNinanByDate: () => getNinanByDate,
240
- getNinanSignInfo: () => getNinanSignInfo,
241
- getNinanSong: () => getNinanSong,
242
- getNoticeMsg: () => getNoticeMsg,
243
- getOpNum: () => getOpNum,
244
- getPacmToken: () => getPacmToken,
245
- getPageInfo: () => getPageInfo,
246
- getPageTab: () => getPageTab,
247
- getPlaylistInfo: () => getPlaylistInfo,
248
- getPlaylistSong: () => getPlaylistSong,
249
- getRadioRecommend: () => getRadioRecommend,
250
- getRadioRecommendAll: () => getRadioRecommendAll,
251
- getRadioSong: () => getRadioSong,
252
- getRankIndex: () => getRankIndex,
253
- getRankInfo: () => getRankInfo,
254
- getRecommendPlaylist: () => getRecommendPlaylist,
255
- getRedirectUrl: () => getRedirectUrl,
256
- getResourceInfo: () => getResourceInfo,
257
- getSVideoInfo: () => getSVideoInfo,
258
- getSVideoRecommend: () => getSVideoRecommend,
259
- getSVideoSearchSuggest: () => getSVideoSearchSuggest,
260
- getSVideoUrl: () => getSVideoUrl,
261
- getSVideoUserContent: () => getSVideoUserContent,
262
- getSVideoUserInfo: () => getSVideoUserInfo,
263
- getSceneRecommend: () => getSceneRecommend,
264
- getSearchDefault: () => getSearchDefault,
265
- getSearchHot: () => getSearchHot,
266
- getSearchSingerTab: () => getSearchSingerTab,
267
- getSearchSingerTabList: () => getSearchSingerTabList,
268
- getSimilarSongRecommend: () => getSimilarSongRecommend,
269
- getSingerAlbum: () => getSingerAlbum,
270
- getSingerIndex: () => getSingerIndex,
271
- getSingerLetter: () => getSingerLetter,
272
- getSingerMv: () => getSingerMv,
273
- getSingerSimilar: () => getSingerSimilar,
274
- getSingerSong: () => getSingerSong,
275
- getSongInfo: () => getSongInfo,
276
- getSquareListByTag: () => getSquareListByTag,
277
- getSquarePage: () => getSquarePage,
278
- getSquareRecommend: () => getSquareRecommend,
279
- getSquareTag: () => getSquareTag,
280
- getThumbsMsg: () => getThumbsMsg,
281
- getTicketInfo: () => getTicketInfo,
282
- getTodayRecommend: () => getTodayRecommend,
283
- getUrlH5V24: () => getUrlH5V24,
284
- getUrlM2: () => getUrlM2,
285
- getUrlV1: () => getUrlV1,
286
- getUrlV2: () => getUrlV2,
287
- getUserAudioBook: () => getUserAudioBook,
288
- getUserBadge: () => getUserBadge,
289
- getUserCollectList: () => getUserCollectList,
290
- getUserHeader: () => getUserHeader,
291
- getUserHeartthrob: () => getUserHeartthrob,
292
- getUserHomePage: () => getUserHomePage,
293
- getUserMyList: () => getUserMyList,
294
- getUserOrdered: () => getUserOrdered,
295
- getUserPhoneInfo: () => getUserPhoneInfo,
296
- getUserSongPage: () => getUserSongPage,
297
- getVersion: () => getVersion,
298
- getVipPlaylist: () => getVipPlaylist,
299
- getVrbtOpNum: () => getVrbtOpNum,
300
- getVrbtUrl: () => getVrbtUrl,
301
- isFollowAuthor: () => isFollowAuthor,
302
- likeSong: () => likeSong,
303
- loginNP: () => loginNP,
304
- loginOneClick: () => loginOneClick,
305
- loginPhone: () => loginPhone,
306
- loginSim: () => loginSim,
307
- logout: () => logout,
308
- matchPlaylist: () => matchPlaylist,
309
- queryUserInfo: () => queryUserInfo,
310
- redeemAiBean: () => redeemAiBean,
311
- removeFollower: () => removeFollower,
312
- removeSongFromMyList: () => removeSongFromMyList,
313
- removeUserCollect: () => removeUserCollect,
314
- removeUserMyList: () => removeUserMyList,
315
- searchAlbum: () => searchAlbum,
316
- searchConcert: () => searchConcert,
317
- searchLrc: () => searchLrc,
318
- searchMv: () => searchMv,
319
- searchPlaylist: () => searchPlaylist,
320
- searchRbt: () => searchRbt,
321
- searchSVideo: () => searchSVideo,
322
- searchSinger: () => searchSinger,
323
- searchSong: () => searchSong,
324
- searchSuggest: () => searchSuggest,
325
- searchTicket: () => searchTicket,
326
- shareCommon: () => shareCommon,
327
- shareVideo: () => shareVideo,
328
- signAiBean: () => signAiBean,
329
- signNinan: () => signNinan
330
- });
331
-
332
- // src/utils/h5fetch.ts
333
- var import_axios = __toESM(require("axios"), 1);
334
-
335
- // src/utils/setCookie.ts
336
- var getCookieValue = (cookies, key) => {
337
- for (const item of cookies) {
338
- const prefix = `${key}=`;
339
- if (item.includes(prefix)) {
340
- const mainPart = item.split(";")[0];
341
- return mainPart.split("=")[1] || "";
342
- }
343
- }
344
- return "";
345
- };
346
- var getSetCookieValueFromObject = (headers, key) => {
347
- const setCookieHeader = headers["set-cookie"];
348
- if (!setCookieHeader) {
349
- return "";
350
- }
351
- const cookies = Array.isArray(setCookieHeader) ? setCookieHeader : setCookieHeader.split(",").map((c) => c.trim());
352
- return getCookieValue(cookies, key);
353
- };
354
-
355
- // src/utils/h5fetch.ts
356
- var _fetch = async (url, init) => {
357
- const method = (init?.method || "GET").toUpperCase();
358
- const headersRaw = init?.headers;
359
- let headers = {};
360
- if (headersRaw) {
361
- if (headersRaw instanceof Headers) {
362
- headersRaw.forEach((value, key) => {
363
- headers[key] = value;
364
- });
365
- } else if (Array.isArray(headersRaw)) {
366
- headersRaw.forEach(([key, value]) => {
367
- headers[key] = value;
368
- });
369
- } else {
370
- headers = headersRaw;
371
- }
372
- }
373
- const axiosConfig = {
374
- url,
375
- method,
376
- headers,
377
- params: init?.params,
378
- maxRedirects: init?.maxRedirects,
379
- data: init?.body
380
- };
381
- if (init?.signal) {
382
- axiosConfig.signal = init.signal;
383
- }
384
- return await (0, import_axios.default)(axiosConfig);
385
- };
386
- var h5fetch = async (url, init) => {
387
- const response = await _fetch(url, init);
388
- return response.data;
389
- };
390
- var ckfetch = async (url, init) => {
391
- const cookieKeys = init?.cookie ? Object.keys(init.cookie) : [];
392
- const cookieHeader = init?.cookie ? Object.entries(init.cookie).map(([k, v]) => `${k}=${v}`).join("; ") : "";
393
- const newHeaders = {};
394
- if (init?.headers) {
395
- if (init.headers instanceof Headers) {
396
- init.headers.forEach((value, key) => {
397
- newHeaders[key] = value;
398
- });
399
- } else if (Array.isArray(init.headers)) {
400
- init.headers.forEach(([key, value]) => {
401
- newHeaders[key] = value;
402
- });
403
- } else {
404
- Object.assign(newHeaders, init.headers);
405
- }
406
- }
407
- if (cookieHeader) newHeaders["Cookie"] = cookieHeader;
408
- const response = await _fetch(url, { ...init, headers: newHeaders });
409
- const cookies = {};
410
- for (const key of cookieKeys) {
411
- const value = getSetCookieValueFromObject(response.headers, key);
412
- if (value) {
413
- cookies[key] = value;
414
- }
415
- }
416
- return {
417
- data: response.data,
418
- cookies
419
- };
420
- };
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunkILRMRBMKcjs = require('./chunk-ILRMRBMK.cjs');
4
+
5
+
6
+ var _chunkQEH62Z4Scjs = require('./chunk-QEH62Z4S.cjs');
7
+
8
+
9
+
10
+ var _chunkJOOWMEQPcjs = require('./chunk-JOOWMEQP.cjs');
421
11
 
422
12
  // src/modules/search.ts
423
13
  var searchSong = async (text, page = 1) => {
424
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/song/v1.0?pageNo=${page}&text=${text}`);
14
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/song/v1.0?pageNo=${page}&text=${text}`);
425
15
  };
426
16
 
427
17
  // src/modules/search_playlist.ts
428
18
  var searchPlaylist = async (text, page = 1, typeOrder = 0) => {
429
- return await h5fetch(`https://app.c.nf.migu.cn/bmw/search/music-list/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
19
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/search/music-list/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
430
20
  };
431
21
 
432
22
  // src/modules/search_album.ts
433
23
  var searchAlbum = async (text, page = 1, typeOrder = 0) => {
434
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/album/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
24
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/album/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
435
25
  };
436
26
 
437
27
  // src/modules/search_singer.ts
438
28
  var searchSinger = async (text, page = 1) => {
439
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/singer/v2.0?pageNo=${page}&text=${text}`);
29
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/singer/v2.0?pageNo=${page}&text=${text}`);
440
30
  };
441
31
 
442
32
  // src/modules/search_concert.ts
443
33
  var searchConcert = async (text, page = 1) => {
444
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/concert/v1.0?pageNo=${page}&text=${text}`);
34
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/concert/v1.0?pageNo=${page}&text=${text}`);
445
35
  };
446
36
 
447
37
  // src/modules/search_hot.ts
448
38
  var getSearchHot = async () => {
449
- return await h5fetch(`https://app.u.nf.migu.cn/bmw/hot-search/search-rank-list/v1.0`);
39
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/bmw/hot-search/search-rank-list/v1.0`);
450
40
  };
451
41
 
452
42
  // src/modules/search_default.ts
453
43
  var getSearchDefault = async () => {
454
- return await h5fetch(`http://app.c.nf.migu.cn/column/search/default-text/v3.0?resourceVersion=2`);
44
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/column/search/default-text/v3.0?resourceVersion=2`);
455
45
  };
456
46
 
457
47
  // src/modules/search_mv.ts
458
48
  var searchMv = async (text, page = 1, typeOrder = 0) => {
459
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/video/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
49
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/video/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
460
50
  };
461
51
 
462
52
  // src/modules/search_suggest.ts
463
53
  var searchSuggest = async (text) => {
464
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/suggest/v1.0?text=${text}`);
54
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/suggest/v1.0?text=${text}`);
465
55
  };
466
56
 
467
57
  // src/modules/search_rbt.ts
468
58
  var searchRbt = async (text, page = 1) => {
469
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/rbt/v1.0?pageNo=${page}&text=${text}`);
59
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/rbt/v1.0?pageNo=${page}&text=${text}`);
470
60
  };
471
61
 
472
62
  // src/modules/search_ticket.ts
473
63
  var searchTicket = async (text, page = 1) => {
474
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/ticket/v1.0?pageNo=${page}&text=${text}`);
64
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/ticket/v1.0?pageNo=${page}&text=${text}`);
475
65
  };
476
66
 
477
67
  // src/modules/search_singerTab.ts
478
68
  var getSearchSingerTab = async () => {
479
- return await h5fetch(`https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/tabs/v2.0`);
69
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/tabs/v2.0`);
480
70
  };
481
71
 
482
72
  // src/modules/search_singerTab_list.ts
483
73
  var getSearchSingerTabList = async (tab = "") => {
484
- return await h5fetch(`https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/list/v1.0?tab=${tab}&templateVersion=3`);
74
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM3.0/bmw/singer-index/list/v1.0?tab=${tab}&templateVersion=3`);
485
75
  };
486
76
 
487
77
  // src/modules/album_info.ts
488
78
  var getAlbumInfo = async (albumId) => {
489
- return await h5fetch(`http://app.c.nf.migu.cn/MIGUM3.0/resource/album/v2.0?albumId=${albumId}`);
79
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/MIGUM3.0/resource/album/v2.0?albumId=${albumId}`);
490
80
  };
491
81
 
492
82
  // src/modules/album_song.ts
493
83
  var getAlbumSong = async (albumId, page = 1) => {
494
- return await h5fetch(`http://app.c.nf.migu.cn/MIGUM3.0/resource/album/song/v2.0?albumId=${albumId}&pageNo=${page}`);
84
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/MIGUM3.0/resource/album/song/v2.0?albumId=${albumId}&pageNo=${page}`);
495
85
  };
496
86
 
497
87
  // src/modules/playlist_info.ts
498
88
  var getPlaylistInfo = async (playlistId) => {
499
- return await h5fetch(`https://app.c.nf.migu.cn/resource/playlist/v2.0?playlistId=${playlistId}`);
89
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/playlist/v2.0?playlistId=${playlistId}`);
500
90
  };
501
91
 
502
92
  // src/modules/playlist_song.ts
503
93
  var getPlaylistSong = async (playlistId, page = 1, size = 20) => {
504
- return await h5fetch(`https://app.c.nf.migu.cn/MIGUM3.0/resource/playlist/song/v2.0?pageNo=${page}&pageSize=${size}&playlistId=${playlistId}`);
94
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/playlist/song/v2.0?pageNo=${page}&pageSize=${size}&playlistId=${playlistId}`);
505
95
  };
506
96
 
507
97
  // src/modules/singer_index.ts
508
98
  var getSingerIndex = async (singerId) => {
509
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/singer/index/v1.0?singerId=${singerId}`);
99
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/singer/index/v1.0?singerId=${singerId}`);
510
100
  };
511
101
 
512
102
  // src/modules/singer_song.ts
513
103
  var getSingerSong = async (singerId, page = 1) => {
514
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/singer/song/v1.0?pageNo=${page}&singerId=${singerId}&type=1`);
104
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/singer/song/v1.0?pageNo=${page}&singerId=${singerId}&type=1`);
515
105
  };
516
106
 
517
107
  // src/modules/singer_album.ts
518
108
  var getSingerAlbum = async (singerId, page = 1) => {
519
- const res = await h5fetch(`http://app.c.nf.migu.cn/bmw/singer/album/v1.0?singerId=${singerId}&pageNo=${page}`);
520
- res?.data?.header?.nextPageUrl ? res.data.header.hasNext = true : res.data.header.hasNext = false;
109
+ const res = await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/singer/album/v1.0?singerId=${singerId}&pageNo=${page}`);
110
+ _optionalChain([res, 'optionalAccess', _ => _.data, 'optionalAccess', _2 => _2.header, 'optionalAccess', _3 => _3.nextPageUrl]) ? res.data.header.hasNext = true : res.data.header.hasNext = false;
521
111
  return res;
522
112
  };
523
113
 
524
114
  // src/modules/rank_index.ts
525
115
  var getRankIndex = async () => {
526
- return await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/rank/rank-index/v1.0`);
116
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/rank/rank-index/v1.0`);
527
117
  };
528
118
 
529
119
  // src/modules/rank_info.ts
530
120
  var getRankInfo = async (rankId, page = 1) => {
531
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/rank/rank-info/v1.0?pageNo=${page}&rankId=${rankId}`);
121
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/rank/rank-info/v1.0?pageNo=${page}&rankId=${rankId}`);
532
122
  };
533
123
 
534
124
  // src/modules/recommend_playlist.ts
535
125
  var getRecommendPlaylist = async () => {
536
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/index-show/recommend-playlist/v3.0`);
537
- };
538
-
539
- // src/utils/deviceID.ts
540
- function getDeviceId(a, b) {
541
- var c, d = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), e2 = [];
542
- if (b = b || d.length, a)
543
- for (c = 0; a > c; c++)
544
- e2[c] = d[0 | Math.random() * b];
545
- else {
546
- var f;
547
- for (e2[8] = e2[13] = e2[18] = e2[23] = "-", e2[14] = "4", c = 0; 36 > c; c++)
548
- e2[c] || (f = 0 | 16 * Math.random(), e2[c] = d[19 == c ? 3 & f | 8 : f]);
549
- }
550
- return e2.join("");
551
- }
126
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/index-show/recommend-playlist/v3.0`);
127
+ };
552
128
 
553
129
  // src/modules/recommend_song.ts
554
130
  var getSceneRecommend = async (scene = "TODAY_RECOMMEND", size = 10) => {
@@ -560,11 +136,11 @@ var getSceneRecommend = async (scene = "TODAY_RECOMMEND", size = 10) => {
560
136
  } else {
561
137
  return { error: "scene\u53C2\u6570\u9519\u8BEF PRIVATE_FM \u6216 TODAY_RECOMMEND" };
562
138
  }
563
- return await h5fetch(
139
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
564
140
  `https://app.c.nf.migu.cn/pc/resource-dataloader/recommend-song/v1.0?${params}`,
565
141
  {
566
142
  headers: {
567
- "deviceId": getDeviceId()
143
+ "deviceId": _chunkQEH62Z4Scjs.getDeviceId.call(void 0, )
568
144
  }
569
145
  }
570
146
  );
@@ -575,14 +151,14 @@ var getRadioRecommend = async (type = 1) => {
575
151
  if (type !== 1 && type !== 2) {
576
152
  return { error: "type must be 1 or 2" };
577
153
  }
578
- return await h5fetch(
154
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
579
155
  `https://app.c.nf.migu.cn/pc/column/music-radio/recommend/song/v2.0?remain=0&actionId=1&type=${type}`,
580
156
  {
581
157
  method: "GET",
582
158
  headers: {
583
159
  "Referer": "https://music.migu.cn/",
584
160
  "channel": "014X031",
585
- "deviceId": getDeviceId(),
161
+ "deviceId": _chunkQEH62Z4Scjs.getDeviceId.call(void 0, ),
586
162
  "recommendstatus": "1"
587
163
  }
588
164
  }
@@ -591,19 +167,19 @@ var getRadioRecommend = async (type = 1) => {
591
167
 
592
168
  // src/modules/comment.ts
593
169
  var getComment = async (resourceId, resourceType = 2, size = 20, hotCommentStart = 0) => {
594
- return await h5fetch(`https://u.musicapp.migu.cn/MIGUM3.0/user/comment/stack/v1.0?resourceId=${resourceId}&resourceType=${resourceType}&pageSize=${size}&hotCommentStart=${hotCommentStart}&platformType=1&commentId=0&queryType=1`);
170
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://u.musicapp.migu.cn/MIGUM3.0/user/comment/stack/v1.0?resourceId=${resourceId}&resourceType=${resourceType}&pageSize=${size}&hotCommentStart=${hotCommentStart}&platformType=1&commentId=0&queryType=1`);
595
171
  };
596
172
 
597
173
  // src/modules/resourceinfo.ts
598
174
  var getResourceInfo = async (resourceIds = "", copyrightIds = "", resourceType = 2) => {
599
175
  resourceIds = resourceIds.replace(/,/g, "|");
600
176
  copyrightIds = copyrightIds.replace(/,/g, "|");
601
- return await h5fetch(`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${resourceIds}&copyrightId=${copyrightIds}&resourceType=${resourceType}`);
177
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${resourceIds}&copyrightId=${copyrightIds}&resourceType=${resourceType}`);
602
178
  };
603
179
 
604
180
  // src/modules/can-listen.ts
605
181
  var checkCanListen = async (contentIds) => {
606
- return await h5fetch(
182
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
607
183
  `https://app.c.nf.migu.cn/strategy/pc/can-listen/v1.0`,
608
184
  {
609
185
  method: "post",
@@ -621,74 +197,12 @@ var checkCanListen = async (contentIds) => {
621
197
 
622
198
  // src/modules/opNum.ts
623
199
  var getOpNum = async (ids) => {
624
- return await h5fetch(`https://app.c.nf.migu.cn/opnum/query-optype-v1.0?opType=play&resourceType=2021&ids=${ids}`);
625
- };
626
-
627
- // src/utils/quality.ts
628
- var qualityList = [
629
- "LQ",
630
- "PQ",
631
- "HQ",
632
- "SQ",
633
- "ZQ24",
634
- "ZQ32",
635
- "Z3D",
636
- "3D60"
637
- ];
638
- var e = encodeURI;
639
- var toneUrl = {
640
- "LQ": e("\u5168\u66F2\u8BD5\u542C/Mp3_64_22_16"),
641
- "PQ": e("\u6807\u6E05\u9AD8\u6E05/MP3_128_16_Stero"),
642
- "HQ": e("\u6807\u6E05\u9AD8\u6E05/MP3_320_16_Stero"),
643
- "SQ": e("\u6B4C\u66F2\u4E0B\u8F7D/flac"),
644
- "ZQ24": e("\u6B4C\u66F2\u4E0B\u8F7D/flac_24bit"),
645
- "ZQ32": e("\u6B4C\u66F2\u4E0B\u8F7D/wav_32bit"),
646
- "Z3D": e("\u6B4C\u66F2\u4E0B\u8F7D/wav_3d"),
647
- "3D60": e("\u6B4C\u66F2\u4E0B\u8F7D/wav_3d_60s")
648
- //3D 60s 试听
649
- };
650
- var toneUrlList = Object.entries(toneUrl);
651
- var toneFormat = {
652
- "LQ": ".mp3",
653
- "PQ": ".mp3",
654
- "HQ": ".mp3",
655
- "SQ": ".flac",
656
- "ZQ24": ".flac",
657
- "ZQ32": ".wav",
658
- "Z3D": ".wav",
659
- "3D60": ".wav"
660
- };
661
- function isQuality(quality) {
662
- return qualityList.includes(quality);
663
- }
664
- function getQuality(url) {
665
- let tone = "";
666
- if (!tone) {
667
- for (let i = 0; i < toneUrlList.length; i++) {
668
- const [key, value] = toneUrlList[i];
669
- if (url.includes(value)) {
670
- tone = key;
671
- break;
672
- }
673
- }
674
- }
675
- return tone;
676
- }
677
- function changeQuality(url, quality, originalQuality, splitQuery = true) {
678
- const originalTone = isQuality(originalQuality) ? originalQuality : getQuality(url);
679
- if (splitQuery) {
680
- url = url.split("?")[0];
681
- }
682
- if (!isQuality(quality) || !isQuality(originalTone)) {
683
- return url;
684
- } else {
685
- return url.replace(toneUrl[originalTone], toneUrl[quality]).replace(toneFormat[originalTone], toneFormat[quality]);
686
- }
687
- }
200
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/opnum/query-optype-v1.0?opType=play&resourceType=2021&ids=${ids}`);
201
+ };
688
202
 
689
203
  // src/modules/url_v1.ts
690
204
  var getUrlV1 = async (contentId, copyrightId, toneFlag = "PQ", resourceType = "2") => {
691
- const data = await h5fetch(
205
+ const data = await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
692
206
  `https://app.c.nf.migu.cn/MIGUM3.0/strategy/pc/listen/v1.0?contentId=${contentId}&copyrightId=${copyrightId}&resourceType=${resourceType}&toneFlag=PQ`,
693
207
  {
694
208
  headers: {
@@ -697,14 +211,14 @@ var getUrlV1 = async (contentId, copyrightId, toneFlag = "PQ", resourceType = "2
697
211
  }
698
212
  );
699
213
  data.data.oriUrl = data.data.url || "";
700
- data.data.url = changeQuality(data.data.url || "", toneFlag, "PQ", true);
214
+ data.data.url = _chunkILRMRBMKcjs.changeQuality.call(void 0, data.data.url || "", toneFlag, "PQ", true);
701
215
  return data;
702
216
  };
703
217
 
704
218
  // src/modules/url_v2.ts
705
- var import_axios2 = __toESM(require("axios"), 1);
219
+ var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
706
220
  var getUrlV2 = async (contentId, copyrightId, toneFlag = "PQ", pacmtoken = "") => {
707
- const deviceId = getDeviceId();
221
+ const deviceId = _chunkQEH62Z4Scjs.getDeviceId.call(void 0, );
708
222
  const timestamp = Date.now();
709
223
  const headers = {
710
224
  "channel": "014X031",
@@ -719,7 +233,7 @@ var getUrlV2 = async (contentId, copyrightId, toneFlag = "PQ", pacmtoken = "") =
719
233
  "timestamp": timestamp.toString(),
720
234
  "referer": "https://music.migu.cn/"
721
235
  };
722
- const res = await import_axios2.default.get(
236
+ const res = await _axios2.default.get(
723
237
  `https://app.c.nf.migu.cn/strategy/pc/listen/v2.0?contentId=${contentId}&copyrightId=${copyrightId}&scene=&netType=01&resourceType=2&toneFlag=${toneFlag}`,
724
238
  {
725
239
  headers,
@@ -732,20 +246,20 @@ var SECURE = "Jk8qzuePiJ1qE3mDYhLQ3T73DtDoAhLP";
732
246
  var aw = 171;
733
247
  var iw = 205;
734
248
  var ow = 1;
735
- function textEncode(e2) {
736
- return new TextEncoder().encode(e2);
249
+ function textEncode(e) {
250
+ return new TextEncoder().encode(e);
737
251
  }
738
- function textDecode(e2) {
739
- return new TextDecoder("utf-8").decode(e2);
252
+ function textDecode(e) {
253
+ return new TextDecoder("utf-8").decode(e);
740
254
  }
741
- function decryptBlob(e2, r) {
255
+ function decryptBlob(e, r) {
742
256
  if (r.length == 0)
743
257
  return null;
744
- var n = e2.length;
745
- if (n < 4 || !(e2[0] == aw && e2[1] == iw) || e2[2] != ow)
258
+ var n = e.length;
259
+ if (n < 4 || !(e[0] == aw && e[1] == iw) || e[2] != ow)
746
260
  return null;
747
- for (var t = e2[3], a = textEncode(r), i = a.length, o = new Uint8Array(n - 4), s = 0, c = 4; c < n; c++, s++)
748
- o[s] = e2[c] + t - a[s % i];
261
+ for (var t = e[3], a = textEncode(r), i = a.length, o = new Uint8Array(n - 4), s = 0, c = 4; c < n; c++, s++)
262
+ o[s] = e[c] + t - a[s % i];
749
263
  return o;
750
264
  }
751
265
  function decryptData(buf) {
@@ -753,14 +267,14 @@ function decryptData(buf) {
753
267
  try {
754
268
  const data = p ? JSON.parse(p) : null;
755
269
  return data;
756
- } catch (e2) {
270
+ } catch (e) {
757
271
  return null;
758
272
  }
759
273
  ;
760
274
  }
761
275
 
762
276
  // src/modules/url_h5v2.4.ts
763
- var import_axios3 = __toESM(require("axios"), 1);
277
+
764
278
  var getUrlH5V24 = async (contentId, copyrightId, toneFlag = "PQ") => {
765
279
  const headers = {
766
280
  "birth": "h5page",
@@ -769,7 +283,7 @@ var getUrlH5V24 = async (contentId, copyrightId, toneFlag = "PQ") => {
769
283
  "location-data": "30.6698676660,104.1229614820",
770
284
  "location-info": ""
771
285
  };
772
- const res = await import_axios3.default.get(
286
+ const res = await _axios2.default.get(
773
287
  `https://c.musicapp.migu.cn/strategy/listen-url/h5/v2.4?contentId=${contentId}&copyrightId=${copyrightId}&resourceType=2&netType=01&toneFlag=PQ&scene=&lowerQualityContentId=${contentId}`,
774
288
  {
775
289
  headers,
@@ -777,16 +291,16 @@ var getUrlH5V24 = async (contentId, copyrightId, toneFlag = "PQ") => {
777
291
  }
778
292
  );
779
293
  const data = await decryptData2(res.data);
780
- if (data?.data?.url === "") {
294
+ if (_optionalChain([data, 'optionalAccess', _4 => _4.data, 'optionalAccess', _5 => _5.url]) === "") {
781
295
  return { success: false, error: "URL \u4E3A\u7A7A" };
782
296
  }
783
297
  data.data.oriUrl = data.data.url || "";
784
- data.data.url = changeQuality(data.data.url || "", toneFlag, "PQ", true);
298
+ data.data.url = _chunkILRMRBMKcjs.changeQuality.call(void 0, data.data.url || "", toneFlag, "PQ", true);
785
299
  return data;
786
300
  };
787
301
  var SECURE2 = ["Jk8qzuePiJ1qE3mDYhLQ3T73DtDoAhLP"];
788
- function strToUtf8Bytes(e2) {
789
- return new TextEncoder().encode(e2);
302
+ function strToUtf8Bytes(e) {
303
+ return new TextEncoder().encode(e);
790
304
  }
791
305
  function utf8Bytes2str(bytes) {
792
306
  const result = [];
@@ -800,18 +314,18 @@ function utf8Bytes2str(bytes) {
800
314
  }
801
315
  return decodeURIComponent(result.join(""));
802
316
  }
803
- function decode(e2, t) {
317
+ function decode(e, t) {
804
318
  if (0 == t.length)
805
319
  return null;
806
- var n = e2.length;
320
+ var n = e.length;
807
321
  if (n < 4)
808
322
  return null;
809
- if (171 != e2[0] || 205 != e2[1])
323
+ if (171 != e[0] || 205 != e[1])
810
324
  return null;
811
- if (1 != e2[2])
325
+ if (1 != e[2])
812
326
  return null;
813
- for (var r = e2[3], o = strToUtf8Bytes(t), a = o.length, i = new Uint8Array(n - 4), s = 0, c = 4; c < n; c++, s++)
814
- i[s] = e2[c] + r - o[s % a];
327
+ for (var r = e[3], o = strToUtf8Bytes(t), a = o.length, i = new Uint8Array(n - 4), s = 0, c = 4; c < n; c++, s++)
328
+ i[s] = e[c] + r - o[s % a];
815
329
  return i;
816
330
  }
817
331
  var decryptData2 = (ab) => {
@@ -822,7 +336,7 @@ var decryptData2 = (ab) => {
822
336
 
823
337
  // src/modules/version.ts
824
338
  var getVersion = async () => {
825
- return await h5fetch(
339
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
826
340
  `http://app.c.nf.migu.cn/column/client/version/v1.0`,
827
341
  {
828
342
  headers: {
@@ -836,13 +350,13 @@ var getVersion = async () => {
836
350
  // src/modules/mv_info.ts
837
351
  var getMvInfo = async (mvContentIds) => {
838
352
  mvContentIds = mvContentIds.replace(/,/g, "|");
839
- return await h5fetch(`https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${mvContentIds}&resourceType=D&needSimple=01`);
353
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${mvContentIds}&resourceType=D&needSimple=01`);
840
354
  };
841
355
 
842
356
  // src/modules/mv_hls.ts
843
357
  var getMvHls = async (mvContentId, mvCopyrightId, url, size, format = "050012", needHttps = true) => {
844
358
  url = encodeURIComponent(url);
845
- return await h5fetch(
359
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
846
360
  `https://c.musicapp.migu.cn/MIGUM2.0/v1.0/content/mvplayinfo.do?format=${format}&mvContentId=${mvContentId}&mvCopyrightId=${mvCopyrightId}&needHttps=${needHttps}&size=${size}&url=${url}`,
847
361
  {
848
362
  method: "GET",
@@ -853,136 +367,9 @@ var getMvHls = async (mvContentId, mvCopyrightId, url, size, format = "050012",
853
367
  );
854
368
  };
855
369
 
856
- // src/modules/login_np.ts
857
- var import_axios4 = __toESM(require("axios"), 1);
858
-
859
- // src/utils/rsalib.ts
860
- var import_node_crypto = __toESM(require("crypto"), 1);
861
- function hexToBase64Url(hex) {
862
- const buffer = Buffer.from(hex, "hex");
863
- return buffer.toString("base64url");
864
- }
865
- var RSAKey = class {
866
- publicKey = null;
867
- setPublic(modulus, exponent) {
868
- try {
869
- const jwkKey = {
870
- kty: "RSA",
871
- n: hexToBase64Url(modulus),
872
- e: hexToBase64Url(exponent)
873
- };
874
- this.publicKey = import_node_crypto.default.createPublicKey({
875
- key: jwkKey,
876
- format: "jwk"
877
- });
878
- } catch (error) {
879
- console.error("Failed to create public key:", error);
880
- this.publicKey = null;
881
- }
882
- }
883
- encrypt(text) {
884
- if (!this.publicKey) {
885
- console.error("Public key not set");
886
- return null;
887
- }
888
- try {
889
- const buffer = Buffer.from(text, "utf-8");
890
- const encrypted = import_node_crypto.default.publicEncrypt(
891
- {
892
- key: this.publicKey,
893
- padding: import_node_crypto.default.constants.RSA_PKCS1_PADDING
894
- },
895
- buffer
896
- );
897
- return encrypted.toString("hex");
898
- } catch (error) {
899
- console.error("RSA encryption failed:", error);
900
- return null;
901
- }
902
- }
903
- };
904
-
905
- // src/utils/publicKey.ts
906
- var getPublicKey = async () => {
907
- const data = await h5fetch(
908
- "https://passport.migu.cn/password/publickey",
909
- {
910
- method: "POST"
911
- }
912
- );
913
- const publicExponent = data.result.publicExponent;
914
- const modulus = data.result.modulus;
915
- return { publicExponent, modulus };
916
- };
917
-
918
- // src/utils/URLParams.ts
919
- function URLParams($) {
920
- const form = new URLSearchParams();
921
- for (const [key, value] of Object.entries($)) {
922
- form.append(key, String(value));
923
- }
924
- return form.toString();
925
- }
926
-
927
- // src/modules/login_np.ts
928
- function randomString() {
929
- const random = Array.from({ length: 32 }, () => Math.floor(Math.random() * 16).toString(16)).join("");
930
- return random.toLowerCase();
931
- }
932
- var loginNP = {
933
- /**
934
- * 账号密码登录
935
- * @param username 用户名
936
- * @param password 密码
937
- * @returns 登录成功后的 pacmtoken
938
- */
939
- async authn(username, password) {
940
- var $ = {
941
- "isAsync": true,
942
- "enpassword": "",
943
- "captcha": "",
944
- "appType": "0",
945
- "loginID": "",
946
- "relayState": "",
947
- "sourceID": "220029",
948
- "imgcodeType": "1",
949
- "fingerPrint": "",
950
- "fingerPrintDetail": ""
951
- };
952
- const p = await getPublicKey();
953
- const { publicExponent, modulus } = p || {};
954
- if (!modulus || !publicExponent) {
955
- return { error: "\u83B7\u53D6\u516C\u94A5\u5931\u8D25" };
956
- }
957
- var rsa = new RSAKey();
958
- rsa.setPublic(modulus, publicExponent);
959
- const rsa_pwd = rsa.encrypt(password);
960
- const rsa_username = rsa.encrypt(username);
961
- const fakeFingerprint = randomString();
962
- $.fingerPrint = fakeFingerprint;
963
- $.fingerPrintDetail = fakeFingerprint;
964
- $.enpassword = rsa_pwd || "";
965
- $.loginID = rsa_username || "";
966
- const form = URLParams($);
967
- const res = await import_axios4.default.post(
968
- `https://passport.migu.cn/authn`,
969
- form,
970
- {
971
- headers: {
972
- "Host": "passport.migu.cn",
973
- "Content-Type": "application/x-www-form-urlencoded",
974
- "Referer": "https://passport.migu.cn/login",
975
- "Origin": "https://passport.migu.cn"
976
- }
977
- }
978
- );
979
- return res.data;
980
- }
981
- };
982
-
983
370
  // src/modules/passport_checkToken.ts
984
371
  var checkToken = async (token = "") => {
985
- return await h5fetch(
372
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
986
373
  `https://c.musicapp.migu.cn/mgateway/api/checkPacMtoken`,
987
374
  {
988
375
  headers: {
@@ -994,7 +381,7 @@ var checkToken = async (token = "") => {
994
381
 
995
382
  // src/modules/passport_pacmToken.ts
996
383
  var getPacmToken = async (token = "", type = "2", sourceId = "220029", activityId = "MUSIC-WWW") => {
997
- const { data, cookies } = await ckfetch(
384
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0,
998
385
  `https://c.musicapp.migu.cn/user/h5/token-validate/v3.0?token=${token}&type=${type}&sourceId=${sourceId}&activityId=${activityId}`,
999
386
  {
1000
387
  cookie: { idmpauth: "true@passport.migu.cn" },
@@ -1011,12 +398,12 @@ var getPacmToken = async (token = "", type = "2", sourceId = "220029", activityI
1011
398
 
1012
399
  // src/modules/ticket.ts
1013
400
  var getTicketInfo = async (page = 1, size = 20) => {
1014
- return await h5fetch(`https://app.c.nf.migu.cn/MIGUM3.0/v1.0/ticket/home/ticket?pageNum=${page}&pageCount=${size}`);
401
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/ticket/home/ticket?pageNum=${page}&pageCount=${size}`);
1015
402
  };
1016
403
 
1017
404
  // src/modules/user_badge.ts
1018
405
  var getUserBadge = async (pacmtoken) => {
1019
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/pc/open/api/member/icon/v1.0", {
406
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/open/api/member/icon/v1.0", {
1020
407
  cookie: { pacmtoken },
1021
408
  headers: {
1022
409
  "Referer": "https://music.migu.cn/",
@@ -1029,7 +416,7 @@ var getUserBadge = async (pacmtoken) => {
1029
416
 
1030
417
  // src/modules/user_queryInfo.ts
1031
418
  var queryUserInfo = async (pacmtoken) => {
1032
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/pc/user/h5/queryUserInfo/v1.0", {
419
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/user/h5/queryUserInfo/v1.0", {
1033
420
  cookie: { pacmtoken },
1034
421
  headers: {
1035
422
  "channel": "014X031",
@@ -1041,7 +428,7 @@ var queryUserInfo = async (pacmtoken) => {
1041
428
 
1042
429
  // src/modules/user_homePage.ts
1043
430
  var getUserHomePage = async (pacmtoken) => {
1044
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/pc/user/home-page/v2.0", {
431
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/user/home-page/v2.0", {
1045
432
  cookie: { pacmtoken }
1046
433
  });
1047
434
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -1049,100 +436,15 @@ var getUserHomePage = async (pacmtoken) => {
1049
436
 
1050
437
  // src/modules/user_recom_today.ts
1051
438
  var getTodayRecommend = async (pacmtoken) => {
1052
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/pc/v1.0/template/todayRecommendList/release?actionId=1&index=1&templateVersion=5", {
439
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/pc/v1.0/template/todayRecommendList/release?actionId=1&index=1&templateVersion=5", {
1053
440
  cookie: { pacmtoken }
1054
441
  });
1055
442
  return { data, newPacmToken: cookies.pacmtoken || "" };
1056
443
  };
1057
444
 
1058
- // src/modules/login_sim.ts
1059
- var import_axios5 = __toESM(require("axios"), 1);
1060
- function randomString2() {
1061
- const random = Array.from({ length: 32 }, () => Math.floor(Math.random() * 16).toString(16)).join("");
1062
- return random.toLowerCase();
1063
- }
1064
- var loginSim = {
1065
- async simSend(phone) {
1066
- var $;
1067
- $ = {
1068
- "isAsync": true,
1069
- "sim": "1",
1070
- "encMsisdn": "",
1071
- "appType": "0",
1072
- "relayState": "",
1073
- "sourceID": "220029",
1074
- "fingerPrint": "",
1075
- "fingerPrintDetail": ""
1076
- };
1077
- const p = await getPublicKey();
1078
- const { publicExponent, modulus } = p || {};
1079
- if (!modulus || !publicExponent) {
1080
- return { error: "\u83B7\u53D6\u516C\u94A5\u5931\u8D25" };
1081
- }
1082
- const rsa = new RSAKey();
1083
- rsa.setPublic(modulus, publicExponent);
1084
- const encPhone = rsa.encrypt(phone);
1085
- const fakeFingerprint = randomString2();
1086
- $.fingerPrint = fakeFingerprint;
1087
- $.fingerPrintDetail = fakeFingerprint;
1088
- $.encMsisdn = encPhone || "";
1089
- const form = URLParams($);
1090
- const send = await import_axios5.default.post(
1091
- `https://passport.migu.cn/api/simauth/send`,
1092
- form,
1093
- {
1094
- headers: {
1095
- "Host": "passport.migu.cn",
1096
- "Content-Type": "application/x-www-form-urlencoded",
1097
- "Referer": "https://passport.migu.cn/login",
1098
- "Origin": "https://passport.migu.cn"
1099
- }
1100
- }
1101
- );
1102
- const sendbody = send.data;
1103
- if (!sendbody && sendbody.status != "2000") {
1104
- return { error: sendbody };
1105
- }
1106
- const sim_sessionid = sendbody.result.sim_sessionid || "";
1107
- if (!sim_sessionid) return { error: "sim_sessionid e" };
1108
- return { sim_sessionid };
1109
- },
1110
- async simQuery(sim_sessionid) {
1111
- const $ = {
1112
- "isAsync": true,
1113
- "sim_sessionid": sim_sessionid,
1114
- "sourceID": "220029"
1115
- };
1116
- const form = URLParams($);
1117
- const query = await import_axios5.default.post(
1118
- `https://passport.migu.cn/api/simauth/query`,
1119
- form,
1120
- {
1121
- method: "POST",
1122
- headers: {
1123
- "Host": "passport.migu.cn",
1124
- "Content-Type": "application/x-www-form-urlencoded",
1125
- "Referer": "https://passport.migu.cn/login",
1126
- "Origin": "https://passport.migu.cn"
1127
- }
1128
- }
1129
- );
1130
- const querybody = query.data;
1131
- if (querybody.status == "4071") {
1132
- return { error: "waiting", body: querybody };
1133
- } else if (querybody.status == "2000") {
1134
- const token = querybody?.result?.token || "";
1135
- const status = querybody?.status || "";
1136
- return { token, status };
1137
- } else {
1138
- return { error: querybody.status, body: querybody };
1139
- }
1140
- }
1141
- };
1142
-
1143
445
  // src/modules/user_collect_list.ts
1144
446
  var getUserCollectList = async (pacmtoken, page = 1, size = 20) => {
1145
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/user/h5/user/collection/v1.0?pageNo=${page}&type=1&OPType=03&pageSize=${size}&resourceType=2021`, {
447
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/h5/user/collection/v1.0?pageNo=${page}&type=1&OPType=03&pageSize=${size}&resourceType=2021`, {
1146
448
  cookie: { pacmtoken }
1147
449
  });
1148
450
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -1150,7 +452,7 @@ var getUserCollectList = async (pacmtoken, page = 1, size = 20) => {
1150
452
 
1151
453
  // src/modules/user_myList.ts
1152
454
  var getUserMyList = async (pacmtoken, queryType = 0, page = 1, size = 20) => {
1153
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/user/h5/my-music-list/v1.0?queryType=${queryType}&pageNo=${page}&pageSize=${size}`, {
455
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/h5/my-music-list/v1.0?queryType=${queryType}&pageNo=${page}&pageSize=${size}`, {
1154
456
  cookie: { pacmtoken }
1155
457
  });
1156
458
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -1158,337 +460,41 @@ var getUserMyList = async (pacmtoken, queryType = 0, page = 1, size = 20) => {
1158
460
 
1159
461
  // src/modules/singer_similar.ts
1160
462
  var getSingerSimilar = async (singerId) => {
1161
- return await h5fetch(`https://app.c.nf.migu.cn/bmw/recommend-singer/similar/v1.0?singerId=${singerId}`);
463
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/recommend-singer/similar/v1.0?singerId=${singerId}`);
1162
464
  };
1163
465
 
1164
466
  // src/modules/recommend_similarSong.ts
1165
467
  var getSimilarSongRecommend = async (contentId = "") => {
1166
- return await h5fetch(
468
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
1167
469
  `https://app.c.nf.migu.cn/bmw/recommend-song/similar/v1.0?contentId=${contentId}`,
1168
470
  {
1169
471
  method: "GET",
1170
472
  headers: {
1171
- "deviceId": getDeviceId(),
473
+ "deviceId": _chunkQEH62Z4Scjs.getDeviceId.call(void 0, ),
1172
474
  "recommendstatus": "1"
1173
475
  }
1174
476
  }
1175
477
  );
1176
478
  };
1177
479
 
1178
- // src/modules/login_oneclick.ts
1179
- var import_axios6 = __toESM(require("axios"), 1);
1180
- var import_node_crypto2 = __toESM(require("crypto"), 1);
1181
- var nav = {
1182
- "platform": "iPhone",
1183
- "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Mobile/15E148 Safari/604.1",
1184
- "appVersion": "5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Mobile/15E148 Safari/604.1",
1185
- "cookieEnabled": true,
1186
- "empty": null,
1187
- "hardwareConcurrency": 6,
1188
- "language": "zh-CN",
1189
- "plugins": "",
1190
- "availWidth": 390,
1191
- "availHeight": 844,
1192
- "colorDepth": 24,
1193
- "timezoneOffset": -480
1194
- };
1195
- var YDRZ = {
1196
- "optparams": {
1197
- "uuid": "",
1198
- "msgId": "",
1199
- "traceId": "",
1200
- "businessType": "10",
1201
- "appId": "",
1202
- "timestamp": yTime(),
1203
- "isimge": false,
1204
- "expandParams": "",
1205
- "userInformations": "",
1206
- "CMRequestApi": ""
1207
- },
1208
- randomString(len, range = 32) {
1209
- var i, bite = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), list = [];
1210
- for (i = 0; i < len; i++)
1211
- list[i] = bite[0 | Math.random() * range];
1212
- return list.join("");
1213
- },
1214
- randomRange(min, max) {
1215
- return Math.floor(Math.random() * (min - max) + max);
1216
- },
1217
- getUA() {
1218
- const ua = nav.userAgent, l = [
1219
- nav.platform,
1220
- ua,
1221
- nav.appVersion,
1222
- nav.cookieEnabled,
1223
- void 0,
1224
- nav.hardwareConcurrency,
1225
- nav.language,
1226
- nav.plugins,
1227
- nav.availWidth,
1228
- nav.availHeight,
1229
- nav.colorDepth,
1230
- nav.timezoneOffset
1231
- ], key = l.join("@@"), finalUA = ua.length > 100 ? ua.substring(0, 100) : ua;
1232
- return nav.platform + "@@" + finalUA + "@@" + md5(key);
1233
- },
1234
- uaE(str) {
1235
- var b, c, d, r4, r1, r2, r3, result = "", bite = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", i = 0;
1236
- for (; i < str.length; )
1237
- r4 = (b = str.charCodeAt(i++)) >> 2, r1 = (3 & b) << 4 | (c = str.charCodeAt(i++)) >> 4, r2 = (15 & c) << 2 | (d = str.charCodeAt(i++)) >> 6, r3 = 63 & d, isNaN(c) ? r2 = r3 = 64 : isNaN(d) && (r3 = 64), result = result + bite.charAt(r4) + bite.charAt(r1) + bite.charAt(r2) + bite.charAt(r3);
1238
- return result;
1239
- },
1240
- getUserInfo() {
1241
- return encodeURIComponent(this.uaE(this.getUA()));
1242
- },
1243
- getSign(appID, version) {
1244
- const optparams = this.optparams;
1245
- optparams.uuid = this.randomString(32, 32);
1246
- optparams.msgId = this.randomString(32, 32);
1247
- this.optparams = optparams;
1248
- return appID + optparams.msgId + optparams.timestamp + optparams.uuid + version;
1249
- },
1250
- async getTokenInfo(data) {
1251
- const optparams = this.optparams;
1252
- const requestData = {
1253
- "version": data.version,
1254
- "appId": data.appId,
1255
- "openType": data.openType,
1256
- "expandParams": data.expandParams,
1257
- "isTest": data.isTest,
1258
- "sign": data.sign,
1259
- "getNetworkType": data.getNetworkType,
1260
- "getMsisdnMask": data.getMsisdnMask,
1261
- "traceId": optparams.uuid,
1262
- "msgId": optparams.msgId,
1263
- "timestamp": optparams.timestamp,
1264
- "uuid": optparams.uuid,
1265
- "businessType": optparams.businessType,
1266
- "userInformations": this.getUserInfo()
1267
- };
1268
- const res = await import_axios6.default.post(
1269
- "https://verify.cmpassport.com/h5/getPreMobile",
1270
- requestData,
1271
- {
1272
- headers: {
1273
- "Referer": "https://passport.migu.cn/",
1274
- "Origin": "https://passport.migu.cn"
1275
- }
1276
- }
1277
- );
1278
- if (!res.data) return;
1279
- const json = res.data, token = json?.token || "";
1280
- if (!token) return;
1281
- return token;
1282
- }
1283
- };
1284
- function yTime() {
1285
- const date = /* @__PURE__ */ new Date(), a = [
1286
- date.getFullYear(),
1287
- date.getMonth() + 1,
1288
- date.getDate(),
1289
- date.getHours(),
1290
- date.getMinutes(),
1291
- date.getSeconds(),
1292
- date.getMilliseconds()
1293
- ];
1294
- const f = a.map((t) => {
1295
- return t.toString().padStart(2, "0");
1296
- });
1297
- f[6] = f[6].toString().padStart(3, "0");
1298
- return f.join("");
1299
- }
1300
- function md5(s) {
1301
- return import_node_crypto2.default.createHash("md5").update(s, "utf-8").digest("hex");
1302
- }
1303
- var genInternetSign = async () => {
1304
- const time = yTime(), e2 = time, c = "220029", msgId = getDeviceId(), d = msgId;
1305
- const preSign = YDRZ.getSign("300012033963", "1.2"), b = preSign;
1306
- let key = "interfacename=genInternetSign&sourceid=" + c + "&systemtime=" + e2 + "&msgid=" + d + "&preSign=" + b;
1307
- key = encodeURIComponent(key);
1308
- const signature = md5(key);
1309
- const url = `https://passport.migu.cn/api/genInternetSign?preSign=${preSign}&msgid=${msgId}&systemtime=${time}&sourceid=220029&signature=${signature}`;
1310
- const res = await import_axios6.default.get(url);
1311
- const data = res.data;
1312
- if (!data || data.status !== 2e3) return void 0;
1313
- const rsaSign = data.result?.rsaSign || "";
1314
- return rsaSign;
1315
- };
1316
- var getSTToken = async (uniToken) => {
1317
- const $ = {
1318
- "sourceID": "220029",
1319
- "appType": 0,
1320
- "relayState": "",
1321
- "token": uniToken,
1322
- "userInformation": YDRZ.getUserInfo(),
1323
- "isFirst": 1
1324
- };
1325
- const form = URLParams($);
1326
- const res = await import_axios6.default.post(
1327
- "https://passport.migu.cn/authn/uniTokenValidate",
1328
- {
1329
- headers: {
1330
- "content-type": "application/x-www-form-urlencoded; charset=UTF-8"
1331
- }
1332
- }
1333
- );
1334
- if (!res.data) return { error: "fetch uni e" };
1335
- const json = res.data, status = json.status?.toString() || "", token = json.result?.token || "", msisdn = json.result?.msisdn || "";
1336
- if (status !== "2000") return { error: "status e" };
1337
- return { token, msisdn, status };
1338
- };
1339
- var authn = async () => {
1340
- const rsaSign = await genInternetSign();
1341
- if (!rsaSign) return { error: "genInternetSign failed" };
1342
- const uniToken = await YDRZ.getTokenInfo({
1343
- version: "1.2",
1344
- appId: "300012033963",
1345
- sign: rsaSign,
1346
- openType: "1",
1347
- expandParams: "",
1348
- isTest: false,
1349
- getNetworkType: "",
1350
- getMsisdnMask: ""
1351
- });
1352
- if (!uniToken) return { error: "getTokenInfo failed" };
1353
- const result = await getSTToken(uniToken);
1354
- if ("error" in result) return result;
1355
- const { token, msisdn, status } = result;
1356
- if (!token) return { error: "no token" };
1357
- if (!msisdn) return { error: "no msisdn" };
1358
- return { token, msisdn, status };
1359
- };
1360
- var loginOneClick = {
1361
- genInternetSign,
1362
- getSTToken,
1363
- authn
1364
- };
1365
-
1366
- // src/modules/login_phone.ts
1367
- var import_axios7 = __toESM(require("axios"), 1);
1368
- function randomString3() {
1369
- const random = Array.from({ length: 32 }, () => Math.floor(Math.random() * 16).toString(16)).join("");
1370
- return random.toLowerCase();
1371
- }
1372
- var loginPhone = {
1373
- //获取验证码
1374
- async getMsgCode(phone) {
1375
- var $ = {
1376
- "isAsync": true,
1377
- "msisdn": "",
1378
- "captcha": "",
1379
- "sourceID": "220029",
1380
- "imgcodeType": "2",
1381
- "fingerPrint": "",
1382
- "fingerPrintDetail": "",
1383
- "_": ""
1384
- };
1385
- const result = await getPublicKey();
1386
- const { publicExponent = "", modulus = "" } = result;
1387
- var c = new RSAKey();
1388
- c.setPublic(modulus, publicExponent);
1389
- $.msisdn = c.encrypt(phone) || "";
1390
- if (!$.msisdn) return { error: "encrypt error" };
1391
- const fakeFingerprint = randomString3();
1392
- $.fingerPrint = fakeFingerprint;
1393
- $.fingerPrintDetail = fakeFingerprint;
1394
- $._ = (/* @__PURE__ */ new Date()).getTime().toString();
1395
- const query = URLParams($);
1396
- const res = await import_axios7.default.get(
1397
- `https://passport.migu.cn/login/dynamicpassword?${query}`,
1398
- {
1399
- headers: {
1400
- "Host": "passport.migu.cn",
1401
- "Referer": "https://passport.migu.cn/login",
1402
- "Origin": "https://passport.migu.cn"
1403
- }
1404
- }
1405
- );
1406
- const data = res.data;
1407
- return data;
1408
- },
1409
- //登陆
1410
- async authn(phone, msgCode) {
1411
- var $ = {
1412
- "isAsync": true,
1413
- "msisdn": "",
1414
- "dynamicPassword": "",
1415
- "captcha": "",
1416
- "appType": "",
1417
- "securityCode": "7619",
1418
- "sourceID": "220029",
1419
- "imgcodeType": "2",
1420
- "fingerPrint": "",
1421
- "fingerPrintDetail": ""
1422
- };
1423
- const result = await getPublicKey();
1424
- const { publicExponent = "", modulus = "" } = result;
1425
- var c = new RSAKey();
1426
- c.setPublic(modulus, publicExponent);
1427
- $.msisdn = c.encrypt(phone) || "";
1428
- $.dynamicPassword = c.encrypt(msgCode) || "";
1429
- if (!$.msisdn || !$.dynamicPassword) return { error: "encrypt error" };
1430
- const fakeFingerprint = randomString3();
1431
- $.fingerPrint = fakeFingerprint;
1432
- $.fingerPrintDetail = fakeFingerprint;
1433
- const form = URLParams($);
1434
- const res = await import_axios7.default.post(
1435
- `https://passport.migu.cn/authn/dynamicpassword`,
1436
- form,
1437
- {
1438
- headers: {
1439
- "Host": "passport.migu.cn",
1440
- "Content-Type": "application/x-www-form-urlencoded",
1441
- "Referer": "https://passport.migu.cn/login",
1442
- "Origin": "https://passport.migu.cn"
1443
- }
1444
- }
1445
- );
1446
- const data = res.data;
1447
- return data;
1448
- }
1449
- };
1450
-
1451
480
  // src/modules/mv_recommend.ts
1452
481
  var getMVRecommend = async (mvContentId, page = 1) => {
1453
- return await h5fetch(`https://c.musicapp.migu.cn/MIGUM3.0/v3.0/content/recommend-mv?resourceId=${mvContentId}&pageNumber=${page}&resourceType=D`);
482
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://c.musicapp.migu.cn/MIGUM3.0/v3.0/content/recommend-mv?resourceId=${mvContentId}&pageNumber=${page}&resourceType=D`);
1454
483
  };
1455
484
 
1456
485
  // src/modules/playlist_square_page.ts
1457
486
  var getSquarePage = async () => {
1458
- return await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/page-data/playlist-square-recommend/v1.0?templateVersion=2`);
487
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/page-data/playlist-square-recommend/v1.0?templateVersion=2`);
1459
488
  };
1460
489
 
1461
490
  // src/modules/search_lrc.ts
1462
491
  var searchLrc = async (text, page = 1) => {
1463
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/lrc/v1.0?pageNo=${page}&text=${text}`);
1464
- };
1465
-
1466
- // src/modules/ninan.ts
1467
- var getNinanSong = async () => await h5fetch(`https://c.musicapp.migu.cn/MIGUM2.0/column/ninan/song-list/v1.0`);
1468
- var getNinanByDate = async (date) => await h5fetch(`https://c.musicapp.migu.cn/MIGUM2.0/v2.0/content/getNinanByDate.do?columnTitle=${date}`);
1469
- var signNinan = async (pacmtoken) => {
1470
- const { data, cookies } = await ckfetch("http://c.musicapp.migu.cn/MIGUM2.0/v2.0/user/sign-reward", {
1471
- cookie: { pacmtoken },
1472
- headers: {
1473
- "location-data": "30.6698676660,104.1229614820",
1474
- "channel": "0146921"
1475
- }
1476
- });
1477
- return { data, newPacmToken: cookies.pacmtoken || "" };
1478
- };
1479
- var getNinanSignInfo = async (pacmtoken) => {
1480
- const { data, cookies } = await ckfetch("http://u.musicapp.migu.cn/MIGUM3.0/user/sign-center/v1.0", {
1481
- cookie: { pacmtoken },
1482
- headers: {
1483
- "channel": "014021I"
1484
- }
1485
- });
1486
- return { data, newPacmToken: cookies.pacmtoken || "" };
492
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/search/lrc/v1.0?pageNo=${page}&text=${text}`);
1487
493
  };
1488
494
 
1489
495
  // src/modules/recommend_radio_all.ts
1490
496
  var getRadioRecommendAll = async (pacmtoken = "") => {
1491
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/pc/bmw/page-data/music-radio/v1.0?templateVersion=1`, {
497
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/page-data/music-radio/v1.0?templateVersion=1`, {
1492
498
  cookie: pacmtoken ? { pacmtoken } : void 0
1493
499
  });
1494
500
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -1500,16 +506,16 @@ var getSVideoInfo = async (contentIds) => {
1500
506
  contentIdList.map((item) => {
1501
507
  return "6000," + item;
1502
508
  }).join("|");
1503
- return await h5fetch(`https://app.c.nf.migu.cn/resource/video-info/by-id/v1.0?requestParams=${contentIdList}`);
509
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/video-info/by-id/v1.0?requestParams=${contentIdList}`);
1504
510
  };
1505
511
 
1506
512
  // src/modules/svideo_search.ts
1507
513
  var searchSVideo = async (text, page = 1) => {
1508
- return await h5fetch(
514
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
1509
515
  `https://app.c.nf.migu.cn/bmw/hot-search/search/videos/v1.0?pageIndex=${page}&text=${text}`,
1510
516
  {
1511
517
  headers: {
1512
- "deviceid": getDeviceId()
518
+ "deviceid": _chunkQEH62Z4Scjs.getDeviceId.call(void 0, )
1513
519
  }
1514
520
  }
1515
521
  );
@@ -1517,29 +523,29 @@ var searchSVideo = async (text, page = 1) => {
1517
523
 
1518
524
  // src/modules/svideo_searchSuggest.ts
1519
525
  var getSVideoSearchSuggest = async (text) => {
1520
- return await h5fetch(`https://app.c.nf.migu.cn/resource-dataloader/search-suggest/search/v1.0?text=${text}`);
526
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource-dataloader/search-suggest/search/v1.0?text=${text}`);
1521
527
  };
1522
528
 
1523
529
  // src/modules/svideo_url.ts
1524
530
  var getSVideoUrl = async (contentIds, formatType = "HQ") => {
1525
531
  contentIds = contentIds.replace(/,/g, "|");
1526
- return await h5fetch(`https://app.c.nf.migu.cn/strategy/short-video/play/v1.0?contentIds=${contentIds}&formatType=${formatType}`);
532
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/strategy/short-video/play/v1.0?contentIds=${contentIds}&formatType=${formatType}`);
1527
533
  };
1528
534
 
1529
535
  // src/modules/svideo_userContent.ts
1530
536
  var getSVideoUserContent = async (videoUserId, nextPageId = "") => {
1531
- return await h5fetch(`https://app.c.nf.migu.cn/user/i/user-content-list/v1.0?nextPageId=${nextPageId}&videoUserId=${videoUserId}`);
537
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/user/i/user-content-list/v1.0?nextPageId=${nextPageId}&videoUserId=${videoUserId}`);
1532
538
  };
1533
539
 
1534
540
  // src/modules/vrbt_opNum.ts
1535
541
  var getVrbtOpNum = async (contentIds) => {
1536
- return await h5fetch(`https://app.c.nf.migu.cn/resource/vrbt/opnum/v1.0?resourceType=M&contentIds=${contentIds}`);
542
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/vrbt/opnum/v1.0?resourceType=M&contentIds=${contentIds}`);
1537
543
  };
1538
544
 
1539
545
  // src/modules/vrbt_url.ts
1540
546
  var getVrbtUrl = async (contentIds) => {
1541
547
  contentIds = contentIds.replace(/,/g, "|");
1542
- return await h5fetch(
548
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
1543
549
  `https://app.c.nf.migu.cn/strategy/vrbt/play/v1.0?contentIds=${contentIds}`,
1544
550
  {
1545
551
  headers: {
@@ -1550,193 +556,12 @@ var getVrbtUrl = async (contentIds) => {
1550
556
  };
1551
557
 
1552
558
  // src/modules/lyric.ts
1553
- var import_axios8 = __toESM(require("axios"), 1);
1554
-
1555
- // src/utils/decryptMrc.ts
1556
- var DELTA = 2654435769n;
1557
- var MIN_LENGTH = 32;
1558
- var SPECIAL_CHAR = 48;
1559
- function toLong(num) {
1560
- const MAX = 9223372036854775807n;
1561
- const MIN = -9223372036854775808n;
1562
- if (num > MAX) return toLong(num - (1n << 64n));
1563
- if (num < MIN) return toLong(num + (1n << 64n));
1564
- return num;
1565
- }
1566
- function ToByteArray(data) {
1567
- const arrayList = [];
1568
- for (const j2 of data) {
1569
- const bArrLong2bytes = long2bytes(j2);
1570
- for (let i = 0; i < 8; i++) {
1571
- arrayList.push(bArrLong2bytes[i]);
1572
- }
1573
- }
1574
- while (arrayList[arrayList.length - 1] === SPECIAL_CHAR) {
1575
- arrayList.pop();
1576
- }
1577
- return Buffer.from(arrayList);
1578
- }
1579
- function long2bytes(num) {
1580
- const byteBufferOrder = Buffer.alloc(8);
1581
- byteBufferOrder.writeBigInt64LE(num, 0);
1582
- return byteBufferOrder;
1583
- }
1584
- function PadRight(source, length) {
1585
- let result = source;
1586
- while (result.length < length) {
1587
- result += "0";
1588
- }
1589
- return result;
1590
- }
1591
- function ToLongArray(data) {
1592
- const length = Math.floor(data.length / 16);
1593
- const jArr = new Array(length);
1594
- for (let i = 0; i < length; i++) {
1595
- jArr[i] = toLong(BigInt("0x" + data.substring(i * 16, i * 16 + 16)));
1596
- }
1597
- return jArr;
1598
- }
1599
- function bytes2long(buf, index) {
1600
- return buf.readBigInt64LE(index);
1601
- }
1602
- function ToLongArray2(data_) {
1603
- const bArr = Buffer.alloc(data_.length * 2);
1604
- for (let i = 0; i < data_.length; i++) {
1605
- bArr[i * 2] = data_[i];
1606
- bArr[i * 2 + 1] = 0;
1607
- }
1608
- const length = (bArr.length % 8 === 0 ? 0 : 1) + Math.floor(bArr.length / 8);
1609
- const jArr = new Array(length);
1610
- for (let i2 = 0; i2 < length - 1; i2++) {
1611
- jArr[i2] = bytes2long(bArr, i2 * 8);
1612
- }
1613
- const bArr2 = Buffer.alloc(8);
1614
- let i3 = 0;
1615
- for (let i4 = (length - 1) * 8; i4 < bArr.length; i4++) {
1616
- bArr2[i3] = bArr[i4];
1617
- i3++;
1618
- }
1619
- jArr[length - 1] = bytes2long(bArr2, 0);
1620
- return jArr;
1621
- }
1622
- function TEADecrypt(data, key) {
1623
- const length = data.length;
1624
- if (length >= 1) {
1625
- let j3 = data[0];
1626
- let j4 = toLong(
1627
- (6n + BigInt(Math.floor(52 / length))) * DELTA
1628
- );
1629
- while (true) {
1630
- const j5 = j4;
1631
- if (j5 === 0n) {
1632
- break;
1633
- }
1634
- const j6 = toLong(3n & j5 >> 2n);
1635
- let j7 = length;
1636
- while (true) {
1637
- j7--;
1638
- if (j7 > 0) {
1639
- const j8 = data[j7 - 1];
1640
- const i = j7;
1641
- j3 = toLong(
1642
- data[i] - toLong(
1643
- toLong(
1644
- toLong(j3 ^ j5) + toLong(j8 ^ key[Number(toLong(3n & BigInt(j7) ^ j6))])
1645
- ) ^ toLong(
1646
- toLong(
1647
- toLong(j8 >> 5n) ^ toLong(j3 << 2n)
1648
- ) + toLong(
1649
- toLong(j3 >> 3n) ^ toLong(j8 << 4n)
1650
- )
1651
- )
1652
- )
1653
- );
1654
- data[i] = j3;
1655
- } else {
1656
- break;
1657
- }
1658
- }
1659
- const j9 = data[length - 1];
1660
- j3 = toLong(
1661
- data[0] - toLong(
1662
- toLong(
1663
- toLong(key[Number(toLong(BigInt(j7) & 3n ^ j6))] ^ j9) + toLong(j3 ^ j5)
1664
- ) ^ toLong(
1665
- toLong(
1666
- toLong(j9 >> 5n) ^ toLong(j3 << 2n)
1667
- ) + toLong(
1668
- toLong(j3 >> 3n) ^ toLong(j9 << 4n)
1669
- )
1670
- )
1671
- )
1672
- );
1673
- data[0] = j3;
1674
- j4 = toLong(j5 - DELTA);
1675
- }
1676
- }
1677
- return data;
1678
- }
1679
- function decryptMrc(data) {
1680
- if (data == null || data.length < MIN_LENGTH) return data;
1681
- const decrypted = TEADecrypt(
1682
- ToLongArray(data),
1683
- ToLongArray2(Buffer.from(PadRight("karakal@123Qcomyidongtiantianhaoting", MIN_LENGTH), "utf8"))
1684
- );
1685
- return ToByteArray(decrypted).toString("utf16le");
1686
- }
1687
- function toWordTime(times) {
1688
- const type = times.startsWith("(") ? 1 : times.startsWith("[") ? 2 : 0;
1689
- times = times.replace(/[()\[\]]/g, "").trim();
1690
- const time = Number(times.split(",")[0]);
1691
- const mm = Math.floor(time / 6e4).toString().padStart(2, "0");
1692
- const ss = Math.floor(time / 1e3 % 60).toString().padStart(2, "0");
1693
- const ms = Math.floor(time % 1e3).toString().padStart(3, "0");
1694
- if (type === 1) {
1695
- return `[${mm}:${ss}.${ms}]`;
1696
- } else {
1697
- return times;
1698
- }
1699
- }
1700
- function formatMrc(data) {
1701
- const line = data.split("\n");
1702
- const formattedData = line.reduce((prev, cur, index) => {
1703
- cur = cur.trim();
1704
- if (cur === "") return prev;
1705
- if (!"1234567890".split("").includes(String(cur[1]))) {
1706
- prev.push(cur);
1707
- return prev;
1708
- }
1709
- cur = cur.replace(/\[[^\]]*\]/g, "");
1710
- let nextIndex = 0, partStart = 0;
1711
- let lineStr = "";
1712
- while (true) {
1713
- if (nextIndex === -1) break;
1714
- const leftPos = cur.indexOf("(", nextIndex);
1715
- if (leftPos === -1) break;
1716
- const rightPos = cur.indexOf(")", leftPos);
1717
- if (rightPos === -1) break;
1718
- const time = cur.substring(leftPos, rightPos + 1);
1719
- const word = cur.substring(partStart, leftPos);
1720
- if (!!word && !!time) {
1721
- partStart = rightPos + 1;
1722
- nextIndex = rightPos + 1;
1723
- } else {
1724
- break;
1725
- }
1726
- lineStr += `${toWordTime(time)}${word}`;
1727
- }
1728
- prev.push(lineStr + "\n");
1729
- return prev;
1730
- }, []);
1731
- return formattedData.join("");
1732
- }
1733
559
 
1734
- // src/modules/lyric.ts
1735
560
  var getLyric = async (contentId, type = "lrc") => {
1736
561
  if (contentId === "") return { error: "contentId is empty!", success: false };
1737
562
  const types = type.split(",");
1738
563
  if (types.length === 0) return { error: "types is empty!", success: false };
1739
- const res = await import_axios8.default.get(`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${contentId}&resourceType=2`);
564
+ const res = await _axios2.default.get(`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${contentId}&resourceType=2`);
1740
565
  const code = res.data.code.toString() || "";
1741
566
  const data = res.data.resource[0] || {};
1742
567
  if (code !== "000000") return {
@@ -1745,11 +570,11 @@ var getLyric = async (contentId, type = "lrc") => {
1745
570
  error: res.data.info || res.data
1746
571
  };
1747
572
  if (data.length === 0) return { error: "data.length = 0 !", success: false, data };
1748
- let lrc, lrcUrl, mrc, mrcUrl, trc, trcUrl;
573
+ let lrc, lrcUrl, trc, trcUrl;
1749
574
  if (types.includes("lrc")) {
1750
575
  lrcUrl = data.lrcUrl || "";
1751
576
  if (lrcUrl !== "") {
1752
- const lrcRes = await import_axios8.default.get(lrcUrl);
577
+ const lrcRes = await _axios2.default.get(lrcUrl);
1753
578
  if (lrcRes.status === 200) {
1754
579
  lrc = lrcRes.data || "";
1755
580
  }
@@ -1758,27 +583,16 @@ var getLyric = async (contentId, type = "lrc") => {
1758
583
  if (types.includes("trc")) {
1759
584
  trcUrl = data.trcUrl || "";
1760
585
  if (trcUrl !== "") {
1761
- const trcRes = await import_axios8.default.get(trcUrl);
586
+ const trcRes = await _axios2.default.get(trcUrl);
1762
587
  if (trcRes.status === 200) {
1763
588
  trc = trcRes.data || "";
1764
589
  }
1765
590
  }
1766
591
  }
1767
- if (types.includes("mrc")) {
1768
- mrcUrl = data.mrcUrl || "";
1769
- if (mrcUrl !== "") {
1770
- const mrcRes = await import_axios8.default.get(mrcUrl);
1771
- if (mrcRes.status === 200) {
1772
- mrc = formatMrc(decryptMrc(mrcRes.data || ""));
1773
- }
1774
- }
1775
- }
1776
592
  return {
1777
593
  success: true,
1778
594
  lrc,
1779
595
  lrcUrl,
1780
- mrc,
1781
- mrcUrl,
1782
596
  trc,
1783
597
  trcUrl
1784
598
  };
@@ -1813,7 +627,7 @@ var addUserCollect = async (pacmtoken, type, contentId, title, userId) => {
1813
627
  } else {
1814
628
  return { success: false, err: "\u672A\u77E5type\u7C7B\u578B -playlist\u6216comment\u6216album" };
1815
629
  }
1816
- const { data, cookies } = await ckfetch(
630
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0,
1817
631
  `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/add_collection.do`,
1818
632
  { params: jsonParams, cookie: { pacmtoken } }
1819
633
  );
@@ -1845,7 +659,7 @@ var removeUserCollect = async (pacmtoken, type, contentId, userId) => {
1845
659
  } else {
1846
660
  return { success: false, err: "\u672A\u77E5type\u7C7B\u578B -playlist,comment\u6216album" };
1847
661
  }
1848
- const { data, cookies } = await ckfetch(
662
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0,
1849
663
  `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/del_collection.do`,
1850
664
  { params: jsonParams, cookie: { pacmtoken } }
1851
665
  );
@@ -1855,7 +669,7 @@ var removeUserCollect = async (pacmtoken, type, contentId, userId) => {
1855
669
  // src/modules/user_like.ts
1856
670
  var likeSong = async (pacmtoken, contentIds) => {
1857
671
  const contentIdsList = contentIds.split(",");
1858
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
672
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
1859
673
  method: "POST",
1860
674
  cookie: { pacmtoken },
1861
675
  body: JSON.stringify({
@@ -1875,7 +689,7 @@ var dislikeSong = async (pacmtoken, contentId) => {
1875
689
  "contentId": contentId,
1876
690
  "songflag": "2"
1877
691
  };
1878
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
692
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
1879
693
  method: "POST",
1880
694
  cookie: { pacmtoken },
1881
695
  body: JSON.stringify(body),
@@ -1894,7 +708,7 @@ var editUserMyList = async (pacmtoken, title, playlistId) => {
1894
708
  "id": playlistId,
1895
709
  "songflag": "0"
1896
710
  };
1897
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
711
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
1898
712
  method: "POST",
1899
713
  cookie: { pacmtoken },
1900
714
  body: JSON.stringify(body),
@@ -1912,7 +726,7 @@ var addUserMyList = async (pacmtoken, title) => {
1912
726
  "channel": "23",
1913
727
  "type": "self_build"
1914
728
  };
1915
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/pc/open/api/music-list/add/v2.0`, {
729
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/open/api/music-list/add/v2.0`, {
1916
730
  method: "POST",
1917
731
  cookie: { pacmtoken },
1918
732
  body: JSON.stringify(body),
@@ -1925,7 +739,7 @@ var addUserMyList = async (pacmtoken, title) => {
1925
739
 
1926
740
  // src/modules/user_myList_remove.ts
1927
741
  var removeUserMyList = async (pacmtoken, playlistId) => {
1928
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/pc/v1.0/user/deleteMusicList.do?channel=23&id=${playlistId}`, {
742
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/user/deleteMusicList.do?channel=23&id=${playlistId}`, {
1929
743
  cookie: { pacmtoken }
1930
744
  });
1931
745
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -1933,22 +747,22 @@ var removeUserMyList = async (pacmtoken, playlistId) => {
1933
747
 
1934
748
  // src/modules/radio_song.ts
1935
749
  var getRadioSong = async (radioId, page = 1) => {
1936
- return await h5fetch(`https://app.c.nf.migu.cn/pc/column/music-radio/scene/song/v3.0?remain=0&pageNo=${page}&actionId=1&radioId=${radioId}`);
750
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/column/music-radio/scene/song/v3.0?remain=0&pageNo=${page}&actionId=1&radioId=${radioId}`);
1937
751
  };
1938
752
 
1939
753
  // src/modules/column_newCD.ts
1940
754
  var getNewCDList = async () => {
1941
- return await h5fetch(`https://app.c.nf.migu.cn/pc/v1.0/template/get-new-cd-list-header`);
755
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/get-new-cd-list-header`);
1942
756
  };
1943
757
 
1944
758
  // src/modules/column_newSong.ts
1945
759
  var getNewSongList = async () => {
1946
- return await h5fetch(`https://app.c.nf.migu.cn/pc/v1.0/template/get-new-music-list-header`);
760
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/get-new-music-list-header`);
1947
761
  };
1948
762
 
1949
763
  // src/modules/column_info.ts
1950
764
  var getColumnInfo = async (columnId) => {
1951
- return await h5fetch(`https://app.c.nf.migu.cn/column/column-info/h5/v2.0?columnId=${columnId}`);
765
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/column/column-info/h5/v2.0?columnId=${columnId}`);
1952
766
  };
1953
767
 
1954
768
  // src/modules/user_myList_add_song.ts
@@ -1957,7 +771,7 @@ var addSongToMyList = async (pacmtoken, playlistId, contentIds) => {
1957
771
  "id": playlistId,
1958
772
  "contentIds": contentIds.split(",")
1959
773
  };
1960
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
774
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/api/add-music-list-song/v1.0`, {
1961
775
  method: "POST",
1962
776
  cookie: { pacmtoken },
1963
777
  body: JSON.stringify(body),
@@ -1976,7 +790,7 @@ var removeSongFromMyList = async (pacmtoken, playlistId, contentId) => {
1976
790
  "contentId": contentId,
1977
791
  "id": playlistId
1978
792
  };
1979
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
793
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/pc/user/h5-import-musiclist/v1.0`, {
1980
794
  method: "POST",
1981
795
  cookie: { pacmtoken },
1982
796
  body: JSON.stringify(body),
@@ -1997,17 +811,17 @@ var getSVideoUserInfo = async (type, uid = "", videoUserId = "") => {
1997
811
  } else {
1998
812
  return { error: "Invalid parameter type", success: false };
1999
813
  }
2000
- return h5fetch(url);
814
+ return _chunkJOOWMEQPcjs.h5fetch.call(void 0, url);
2001
815
  };
2002
816
 
2003
817
  // src/modules/concert_info.ts
2004
818
  var getConcertInfo = async (concertId) => {
2005
- return await h5fetch(`http://c.musicapp.migu.cn/MIGUM2.0/v2.0/content/queryConcertSummary.do?columnId=${concertId}`);
819
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://c.musicapp.migu.cn/MIGUM2.0/v2.0/content/queryConcertSummary.do?columnId=${concertId}`);
2006
820
  };
2007
821
 
2008
822
  // src/modules/concert_url.ts
2009
823
  var getConcertUrl = async (concertId, liveId, rateLevel = 1) => {
2010
- return await h5fetch(
824
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2011
825
  `http://c.musicapp.migu.cn/MIGUM2.0/v2.1/danmaku/liveServerHosts.do?concertId=${concertId}&liveId=${liveId}&liveType=1&rateLevel=${rateLevel}`,
2012
826
  {
2013
827
  headers: {
@@ -2020,25 +834,25 @@ var getConcertUrl = async (concertId, liveId, rateLevel = 1) => {
2020
834
 
2021
835
  // src/modules/concert_detail.ts
2022
836
  var getConcertDetail = async (concertId) => {
2023
- return await h5fetch(`https://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/concert-detail/release?columnId=${concertId}&templateVersion=10`);
837
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/concert-detail/release?columnId=${concertId}&templateVersion=10`);
2024
838
  };
2025
839
 
2026
840
  // src/modules/concert_comment.ts
2027
841
  var getConcertComment = async (concertId, page = 1, size = 20) => {
2028
- return await h5fetch(`http://b.musicapp.migu.cn/MIGUM2.0/v1.0/danmaku/danmakuHisListPage.do?page=${page}&pageSize=${size}&resourceId=${concertId}`);
842
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://b.musicapp.migu.cn/MIGUM2.0/v1.0/danmaku/danmakuHisListPage.do?page=${page}&pageSize=${size}&resourceId=${concertId}`);
2029
843
  };
2030
844
 
2031
845
  // src/modules/playlist_match.ts
2032
846
  var matchPlaylist = async (url) => {
2033
847
  url = encodeURIComponent(url);
2034
- return await h5fetch(`http://c.musicapp.migu.cn/v1.0/content/get-import-songList?url=${url}`);
848
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://c.musicapp.migu.cn/v1.0/content/get-import-songList?url=${url}`);
2035
849
  };
2036
850
 
2037
851
  // src/modules/url_redirect.ts
2038
- var import_axios9 = __toESM(require("axios"), 1);
852
+
2039
853
  var getRedirectUrl = async (contentId, toneFlag = "PQ", copyrightId, isVip = true) => {
2040
854
  if (isVip && (!copyrightId || copyrightId === "0")) return "";
2041
- return await import_axios9.default.head(
855
+ return await _axios2.default.head(
2042
856
  isVip ? `https://c.musicapp.migu.cn/strategy/listen-song/v2.3` : `https://app.pd.nf.migu.cn/MIGUM2.0/v1.0/content/sub/listenSong.do`,
2043
857
  {
2044
858
  maxRedirects: 0,
@@ -2052,17 +866,17 @@ var getRedirectUrl = async (contentId, toneFlag = "PQ", copyrightId, isVip = tru
2052
866
  headers: { "User-Agent": "okhttp/3.14.9" }
2053
867
  // !==null
2054
868
  }
2055
- ).catch((err) => err.response).then((res) => res?.headers?.location?.split("?")[0] ?? "").then((url) => changeQuality(url, toneFlag, "PQ"));
869
+ ).catch((err) => err.response).then((res) => _nullishCoalesce(_optionalChain([res, 'optionalAccess', _6 => _6.headers, 'optionalAccess', _7 => _7.location, 'optionalAccess', _8 => _8.split, 'call', _9 => _9("?"), 'access', _10 => _10[0]]), () => ( ""))).then((url) => _chunkILRMRBMKcjs.changeQuality.call(void 0, url, toneFlag, "PQ"));
2056
870
  };
2057
871
 
2058
872
  // src/modules/concert_mv.ts
2059
873
  var getConcertRecommendMv = async (concertId) => {
2060
- return await h5fetch(`https://app.c.nf.migu.cn/v1.0/liveshow/query-mv-detail?concertId=${concertId}`);
874
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/v1.0/liveshow/query-mv-detail?concertId=${concertId}`);
2061
875
  };
2062
876
 
2063
877
  // src/modules/mv_song.ts
2064
878
  var getMvBySong = async (songId) => {
2065
- return await h5fetch(
879
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2066
880
  `https://app.c.nf.migu.cn/MIGUM2.0/strategy/mv-player/video/v1.0?songId=${songId}`,
2067
881
  {
2068
882
  headers: {
@@ -2084,7 +898,7 @@ var isFollowAuthor = async (pacmtoken, authorIds, authorType = "singer") => {
2084
898
  "authorType": authorType
2085
899
  };
2086
900
  });
2087
- const { data, cookies } = await ckfetch(
901
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0,
2088
902
  `https://app.u.nf.migu.cn/user/i/social/is-follow-subscribe/v1.0`,
2089
903
  {
2090
904
  method: "POST",
@@ -2101,12 +915,12 @@ var isFollowAuthor = async (pacmtoken, authorIds, authorType = "singer") => {
2101
915
 
2102
916
  // src/modules/playlist_vip.ts
2103
917
  var getVipPlaylist = async (size = 10) => {
2104
- return await h5fetch(`http://app.c.nf.migu.cn/bmw/vip-exclusive/auditions-list/v1.0?pageSize=${size}`);
918
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/bmw/vip-exclusive/auditions-list/v1.0?pageSize=${size}`);
2105
919
  };
2106
920
 
2107
921
  // src/modules/user_header.ts
2108
922
  var getUserHeader = async (userId) => {
2109
- return await h5fetch(
923
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2110
924
  `https://app.c.nf.migu.cn/user/api/my-page-header/v1.0`,
2111
925
  { params: { userId } }
2112
926
  );
@@ -2117,7 +931,7 @@ var getUserSongPage = async (userId, videoUserId) => {
2117
931
  if (!userId && !videoUserId) {
2118
932
  return { data: { error: "userId or videoUserId is required" } };
2119
933
  }
2120
- return await h5fetch(
934
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2121
935
  `https://app.c.nf.migu.cn/user/api/my-page-music/v1.0`,
2122
936
  {
2123
937
  params: { userId, videoUserId },
@@ -2135,18 +949,18 @@ var getPageInfo = async (pageId, sceneId) => {
2135
949
  return { success: false, data: { error: "choose pageId or sceneId to get page info" } };
2136
950
  }
2137
951
  const base = "https://app.c.nf.migu.cn/bmw";
2138
- if (pageId) return await h5fetch(`${base}/page-info/v1.0?pageId=${pageId}`);
2139
- if (sceneId) return await h5fetch(`${base}/page/view/v1.0?columnId=${sceneId}`);
952
+ if (pageId) return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `${base}/page-info/v1.0?pageId=${pageId}`);
953
+ if (sceneId) return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `${base}/page/view/v1.0?columnId=${sceneId}`);
2140
954
  };
2141
955
 
2142
956
  // src/modules/page_tab.ts
2143
957
  var getPageTab = async () => {
2144
- return await h5fetch(`https://app.c.nf.migu.cn/bmw/music/nav-bar/v1.0`);
958
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/music/nav-bar/v1.0`);
2145
959
  };
2146
960
 
2147
961
  // src/modules/svideo_recommend.ts
2148
962
  var getSVideoRecommend = async (pacmtoken) => {
2149
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/resource-dataloader/recommend-video/v2.0", {
963
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/resource-dataloader/recommend-video/v2.0", {
2150
964
  method: "GET",
2151
965
  cookie: { pacmtoken },
2152
966
  params: {
@@ -2160,7 +974,7 @@ var getSVideoRecommend = async (pacmtoken) => {
2160
974
 
2161
975
  // src/modules/follow_following_vra.ts
2162
976
  var getFollowingVra = async (userId, page = 1) => {
2163
- return await h5fetch(
977
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2164
978
  `https://app.c.nf.migu.cn/bmw/page-data/vrbt/follow-videouserlist/v2.0`,
2165
979
  { params: {
2166
980
  offset: page - 1,
@@ -2172,7 +986,7 @@ var getFollowingVra = async (userId, page = 1) => {
2172
986
 
2173
987
  // src/modules/follow_follower.ts
2174
988
  var getFollowerList = async (params) => {
2175
- if (params.type === "music") return await h5fetch(
989
+ if (params.type === "music") return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2176
990
  `https://app.c.nf.migu.cn/MIGUM2.0/v1.0/user/follower.do`,
2177
991
  { params: {
2178
992
  pageNo: params.page || 1,
@@ -2185,7 +999,7 @@ var getFollowerList = async (params) => {
2185
999
  success: false,
2186
1000
  error: "userId or videoUserId is required"
2187
1001
  };
2188
- return await h5fetch(
1002
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2189
1003
  `https://app.c.nf.migu.cn/user/i/social/fans-list/v1.0`,
2190
1004
  { params: {
2191
1005
  userId: params.userId,
@@ -2199,7 +1013,7 @@ var getFollowerList = async (params) => {
2199
1013
  var getFollowingList = async (userId, type, page = 1, size = 20) => {
2200
1014
  if (!userId) return { success: false, error: "userId is required" };
2201
1015
  if (type !== "user" && type !== "singer") return { success: false, error: "type is invalid" };
2202
- return await h5fetch(
1016
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2203
1017
  `https://app.c.nf.migu.cn/MIGUM2.0/v1.0/user/followingSingers.do`,
2204
1018
  { params: {
2205
1019
  "pageNo": page,
@@ -2212,7 +1026,7 @@ var getFollowingList = async (userId, type, page = 1, size = 20) => {
2212
1026
 
2213
1027
  // src/modules/follow_add.ts
2214
1028
  var addFollower = async (pacmtoken, singerId) => {
2215
- const { data, cookies } = await ckfetch(
1029
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0,
2216
1030
  `https://app.u.nf.migu.cn/user/social/api/add-follow/v1.0`,
2217
1031
  {
2218
1032
  params: {
@@ -2227,7 +1041,7 @@ var addFollower = async (pacmtoken, singerId) => {
2227
1041
 
2228
1042
  // src/modules/follow_remove.ts
2229
1043
  var removeFollower = async (pacmtoken, singerId) => {
2230
- const { data, cookies } = await ckfetch(
1044
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0,
2231
1045
  `https://app.u.nf.migu.cn/user/social/api/delete-follow/v1.0?followId=${singerId}`,
2232
1046
  { cookie: { pacmtoken } }
2233
1047
  );
@@ -2236,7 +1050,7 @@ var removeFollower = async (pacmtoken, singerId) => {
2236
1050
 
2237
1051
  // src/modules/passport_logout.ts
2238
1052
  var logout = async (pacmtoken) => {
2239
- const { data } = await ckfetch(`https://c.musicapp.migu.cn/mgateway/api/clearPacMtoken`, {
1053
+ const { data } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://c.musicapp.migu.cn/mgateway/api/clearPacMtoken`, {
2240
1054
  cookie: { pacmtoken }
2241
1055
  });
2242
1056
  return data;
@@ -2244,7 +1058,7 @@ var logout = async (pacmtoken) => {
2244
1058
 
2245
1059
  // src/modules/share_video.ts
2246
1060
  var shareVideo = async (resourceType, contentId, userId) => {
2247
- return await h5fetch(
1061
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2248
1062
  `https://app.c.nf.migu.cn/resource/share-info/v2.0`,
2249
1063
  { params: {
2250
1064
  "appId": "music",
@@ -2257,7 +1071,7 @@ var shareVideo = async (resourceType, contentId, userId) => {
2257
1071
 
2258
1072
  // src/modules/share_common.ts
2259
1073
  var shareCommon = async (resourceType, contentId, contentName, targetUserName, copyrightId) => {
2260
- return await h5fetch(
1074
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2261
1075
  `https://app.c.nf.migu.cn/MIGUM2.0/v1.0/content/shareInfo.do`,
2262
1076
  { params: {
2263
1077
  "appId": "music",
@@ -2273,7 +1087,7 @@ var shareCommon = async (resourceType, contentId, contentName, targetUserName, c
2273
1087
 
2274
1088
  // src/modules/user_audioBook.ts
2275
1089
  var getUserAudioBook = async (pacmtoken, recentListenNum = 10, recommendNum = 5) => {
2276
- const { data, cookies } = await ckfetch("https://pd.musicapp.migu.cn/bmw/audio-book/my-audio-book/v1.0", {
1090
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://pd.musicapp.migu.cn/bmw/audio-book/my-audio-book/v1.0", {
2277
1091
  cookie: { pacmtoken },
2278
1092
  headers: { "isMock": "00" },
2279
1093
  params: {
@@ -2286,7 +1100,7 @@ var getUserAudioBook = async (pacmtoken, recentListenNum = 10, recommendNum = 5)
2286
1100
 
2287
1101
  // src/modules/user_listenRank.ts
2288
1102
  var getListenRank = async (pacmtoken, type) => {
2289
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/MIGUM3.0/bmw/listen-song/ranking/v1.0`, {
1103
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/bmw/listen-song/ranking/v1.0`, {
2290
1104
  method: "POST",
2291
1105
  cookie: { pacmtoken },
2292
1106
  body: JSON.stringify({ "type": type === "year" ? 2 : 1 }),
@@ -2297,7 +1111,7 @@ var getListenRank = async (pacmtoken, type) => {
2297
1111
 
2298
1112
  // src/modules/cloud_url.ts
2299
1113
  var getCloudUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
2300
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM3.0/strategy/cloud/listen-url/v1.0", {
1114
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/strategy/cloud/listen-url/v1.0", {
2301
1115
  cookie: { pacmtoken },
2302
1116
  headers: { "channel": "0146931", "version": "7.41.13" },
2303
1117
  params: {
@@ -2311,7 +1125,7 @@ var getCloudUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
2311
1125
 
2312
1126
  // src/modules/url_dl_v1.ts
2313
1127
  var getDLUrlV1 = async (songId, toneFlag = "PQ") => {
2314
- return await h5fetch(
1128
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2315
1129
  `https://app.c.nf.migu.cn/MIGUM2.0/strategy/download-url/by-songid/v1.0`,
2316
1130
  {
2317
1131
  headers: { "channel": "0146931", "version": "7.41.13" },
@@ -2325,7 +1139,7 @@ var getDLUrlV1 = async (songId, toneFlag = "PQ") => {
2325
1139
 
2326
1140
  // src/modules/url_m2.ts
2327
1141
  var getUrlM2 = async (contentId, toneFlag = "PQ", copyrightId, songId, albumId) => {
2328
- const data = await h5fetch(
1142
+ const data = await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2329
1143
  `https://app.c.nf.migu.cn/MIGUM2.0/v2.1/content/listen-url`,
2330
1144
  {
2331
1145
  params: {
@@ -2341,18 +1155,18 @@ var getUrlM2 = async (contentId, toneFlag = "PQ", copyrightId, songId, albumId)
2341
1155
  headers: { "channel": "0146832", "version": "7.41.13" }
2342
1156
  }
2343
1157
  );
2344
- if (data?.data?.url === "") {
1158
+ if (_optionalChain([data, 'optionalAccess', _11 => _11.data, 'optionalAccess', _12 => _12.url]) === "") {
2345
1159
  return { success: false, error: "URL \u4E3A\u7A7A" };
2346
1160
  }
2347
1161
  data.data.oriUrl = data.data.url || "";
2348
- data.data.url = changeQuality(data.data.url || "", toneFlag, "PQ", true);
2349
- if (data?.data?.songItem?.z3dCode) {
1162
+ data.data.url = _chunkILRMRBMKcjs.changeQuality.call(void 0, data.data.url || "", toneFlag, "PQ", true);
1163
+ if (_optionalChain([data, 'optionalAccess', _13 => _13.data, 'optionalAccess', _14 => _14.songItem, 'optionalAccess', _15 => _15.z3dCode])) {
2350
1164
  const a = "ftp://218.200.160.122:21/", b = "https://freetyst.nf.migu.cn/";
2351
1165
  const z3dCode = data.data.songItem.z3dCode;
2352
- z3dCode.url = encodeURI(z3dCode?.url?.replace(a, b) || "");
2353
- z3dCode.iosUrl = encodeURI(z3dCode?.iosUrl?.replace(a, b) || "");
2354
- z3dCode.androidUrl = encodeURI(z3dCode?.androidUrl?.replace(a, b) || "");
2355
- z3dCode.h5Url = encodeURI(z3dCode?.h5Url?.replace(a, b) || "");
1166
+ z3dCode.url = encodeURI(_optionalChain([z3dCode, 'optionalAccess', _16 => _16.url, 'optionalAccess', _17 => _17.replace, 'call', _18 => _18(a, b)]) || "");
1167
+ z3dCode.iosUrl = encodeURI(_optionalChain([z3dCode, 'optionalAccess', _19 => _19.iosUrl, 'optionalAccess', _20 => _20.replace, 'call', _21 => _21(a, b)]) || "");
1168
+ z3dCode.androidUrl = encodeURI(_optionalChain([z3dCode, 'optionalAccess', _22 => _22.androidUrl, 'optionalAccess', _23 => _23.replace, 'call', _24 => _24(a, b)]) || "");
1169
+ z3dCode.h5Url = encodeURI(_optionalChain([z3dCode, 'optionalAccess', _25 => _25.h5Url, 'optionalAccess', _26 => _26.replace, 'call', _27 => _27(a, b)]) || "");
2356
1170
  data.data.songItem.z3dCode = z3dCode;
2357
1171
  }
2358
1172
  return data;
@@ -2363,7 +1177,7 @@ var emojiAction = async (pacmtoken, contentId, emojiId, action) => {
2363
1177
  if (action !== "add" && action !== "cancel") {
2364
1178
  return { data: { success: false, error: "action\u5FC5\u987B\u662Fadd\u6216cancel" }, newPacmToken: "" };
2365
1179
  }
2366
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/user/api/resource-react-emoji/add-cancel/v1.0`, {
1180
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/api/resource-react-emoji/add-cancel/v1.0`, {
2367
1181
  method: "POST",
2368
1182
  cookie: { pacmtoken },
2369
1183
  body: JSON.stringify({
@@ -2388,7 +1202,7 @@ var getEmojiNum = async (pacmtoken, contentIds) => {
2388
1202
  "resourceId": id,
2389
1203
  "resourceType": "2"
2390
1204
  }));
2391
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/user/api/resource-module/query/v1.0`, {
1205
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/user/api/resource-module/query/v1.0`, {
2392
1206
  method: "POST",
2393
1207
  cookie: pacmtoken ? { pacmtoken } : void 0,
2394
1208
  body: JSON.stringify({ resourceModuleQueryParam }),
@@ -2400,7 +1214,7 @@ var getEmojiNum = async (pacmtoken, contentIds) => {
2400
1214
  // src/modules/user_heartthrob.ts
2401
1215
  var getUserHeartthrob = async (pacmtoken, songId) => {
2402
1216
  if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: "" };
2403
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM3.0/resource-dataloader/recommend-song-listen/v1.0", {
1217
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/resource-dataloader/recommend-song-listen/v1.0", {
2404
1218
  cookie: { pacmtoken },
2405
1219
  params: { "songId": songId }
2406
1220
  });
@@ -2417,7 +1231,7 @@ var deleteCloudMusic = async (pacmtoken, contentIds) => {
2417
1231
  "contentId": item,
2418
1232
  "type": "0"
2419
1233
  }));
2420
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/user/cloud/music/local/v1.0", {
1234
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/user/cloud/music/local/v1.0", {
2421
1235
  method: "DELETE",
2422
1236
  body: JSON.stringify(deleteSongInfos),
2423
1237
  cookie: { pacmtoken },
@@ -2431,7 +1245,7 @@ var getInteractionMsg = async (pacmtoken, type, page = 1, size = 10) => {
2431
1245
  if (!["fans", "collection"].includes(type)) {
2432
1246
  return { data: { success: false, error: "type must be fans or collection" }, newPacmToken: void 0 };
2433
1247
  }
2434
- const { data, cookies } = await ckfetch(`https://app.u.nf.migu.cn/MIGUM2.0/v2.0/user/interaction.do`, {
1248
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v2.0/user/interaction.do`, {
2435
1249
  cookie: { pacmtoken },
2436
1250
  params: { "type": type === "fans" ? 2 : 1, pageNo: page, pageSize: size }
2437
1251
  });
@@ -2440,7 +1254,7 @@ var getInteractionMsg = async (pacmtoken, type, page = 1, size = 10) => {
2440
1254
 
2441
1255
  // src/modules/user_message_notice.ts
2442
1256
  var getNoticeMsg = async (pacmtoken, page = 1, size = 10) => {
2443
- const { data, cookies } = await ckfetch(`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/notifies.do`, {
1257
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/notifies.do`, {
2444
1258
  cookie: { pacmtoken },
2445
1259
  params: { pageNo: page, pageSize: size }
2446
1260
  });
@@ -2449,7 +1263,7 @@ var getNoticeMsg = async (pacmtoken, page = 1, size = 10) => {
2449
1263
 
2450
1264
  // src/modules/user_message_thumbs.ts
2451
1265
  var getThumbsMsg = async (pacmtoken, page = 1, size = 10) => {
2452
- const { data, cookies } = await ckfetch(`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/thumbsDetail.do`, {
1266
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/thumbsDetail.do`, {
2453
1267
  cookie: { pacmtoken },
2454
1268
  params: { pageNo: page, pageSize: size }
2455
1269
  });
@@ -2457,14 +1271,14 @@ var getThumbsMsg = async (pacmtoken, page = 1, size = 10) => {
2457
1271
  };
2458
1272
 
2459
1273
  // src/modules/cloud_upload.ts
2460
- var import_node_crypto3 = __toESM(require("crypto"), 1);
1274
+ var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
2461
1275
  function getExt(file) {
2462
1276
  const index = file.name.lastIndexOf(".");
2463
1277
  if (index <= 0) return "";
2464
1278
  return file.name.substring(index + 1).toLowerCase();
2465
1279
  }
2466
1280
  async function getHash(file) {
2467
- const hash = import_node_crypto3.default.createHash("md5");
1281
+ const hash = _crypto2.default.createHash("md5");
2468
1282
  const reader = file.stream().getReader();
2469
1283
  while (true) {
2470
1284
  const { done, value } = await reader.read();
@@ -2481,7 +1295,7 @@ var getCloudUploadUrl = async (pacmtoken, file) => {
2481
1295
  return { data: { success: false, error: "file ext is not supported" }, newPacmToken: void 0 };
2482
1296
  }
2483
1297
  const hash = await getHash(file), size = file.size;
2484
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM3.0/user/cloud/meta/upload/v1.0", {
1298
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/user/cloud/meta/upload/v1.0", {
2485
1299
  method: "POST",
2486
1300
  body: JSON.stringify([{
2487
1301
  "contentId": hash,
@@ -2497,7 +1311,7 @@ var getCloudUploadUrl = async (pacmtoken, file) => {
2497
1311
 
2498
1312
  // src/modules/comment_delete.ts
2499
1313
  var deleteComment = async (pacmtoken, resourceId) => {
2500
- const { data, cookies } = await ckfetch(
1314
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0,
2501
1315
  `https://app.u.nf.migu.cn/MIGUM2.0/v1.0/user/delComment.do`,
2502
1316
  {
2503
1317
  method: "GET",
@@ -2514,58 +1328,17 @@ var deleteComment = async (pacmtoken, resourceId) => {
2514
1328
 
2515
1329
  // src/modules/singer_letter.ts
2516
1330
  var getSingerLetter = async (singerId, pageId) => {
2517
- return await h5fetch(`https://app.c.nf.migu.cn/user/blog/api/love-letter/query/v1.0?resourceId=${singerId}&nextPageId=${pageId}`);
1331
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/user/blog/api/love-letter/query/v1.0?resourceId=${singerId}&nextPageId=${pageId}`);
2518
1332
  };
2519
1333
 
2520
1334
  // src/modules/singer_mv.ts
2521
1335
  var getSingerMv = async (singerId, page) => {
2522
- return await h5fetch(`https://app.c.nf.migu.cn/bmw/singer/video/v1.0?pageNo=${page || 1}&singerId=${singerId}`);
2523
- };
2524
-
2525
- // src/modules/ai-bean.ts
2526
- var signAiBean = async (pacmtoken) => {
2527
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/act-jbzx/sign", {
2528
- method: "POST",
2529
- cookie: { pacmtoken },
2530
- headers: {
2531
- "location-data": "30.6698676660,104.1229614820",
2532
- "channel": "0146921",
2533
- "activityId": "MAC_KF_CBH_JBZX",
2534
- "Referer": "https://h5.nf.migu.cn"
2535
- }
2536
- });
2537
- return { data, newPacmToken: cookies.pacmtoken || "" };
2538
- };
2539
- var getAiBeanCount = async (pacmtoken) => {
2540
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/act-jbzx/ai-bean/query-available", {
2541
- cookie: { pacmtoken },
2542
- headers: {
2543
- "activityId": "MAC_KF_CBH_JBZX"
2544
- }
2545
- });
2546
- return { data, newPacmToken: cookies.pacmtoken || "" };
2547
- };
2548
- var getAiBeanSignStatus = async (pacmtoken) => {
2549
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/act-jbzx/sign/status", {
2550
- cookie: { pacmtoken },
2551
- headers: {
2552
- "channel": "0146921",
2553
- "activityId": "MAC_KF_CBH_JBZX"
2554
- }
2555
- });
2556
- return { data, newPacmToken: cookies.pacmtoken || "" };
2557
- };
2558
- var redeemAiBean = async (pacmtoken) => {
2559
- const { data, cookies } = await ckfetch("https://app.c.nf.m-jbzx/member-jbzx/member/redeem", {
2560
- method: "POST",
2561
- cookie: { pacmtoken }
2562
- });
2563
- return { data, newPacmToken: cookies.pacmtoken || "" };
1336
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/bmw/singer/video/v1.0?pageNo=${page || 1}&singerId=${singerId}`);
2564
1337
  };
2565
1338
 
2566
1339
  // src/modules/cloud_dl.ts
2567
1340
  var getCloudDLUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
2568
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM3.0/strategy/cloud/download-url/v1.0", {
1341
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/strategy/cloud/download-url/v1.0", {
2569
1342
  cookie: { pacmtoken },
2570
1343
  headers: { "channel": "0146931", "version": "7.41.13" },
2571
1344
  params: {
@@ -2579,7 +1352,7 @@ var getCloudDLUrl = async (pacmtoken, contentId, toneFlag = "PQ") => {
2579
1352
 
2580
1353
  // src/modules/user_phoneInfo.ts
2581
1354
  var getUserPhoneInfo = async (pacmtoken) => {
2582
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM2.0/v1.0/tone/isrbtuser.do", {
1355
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM2.0/v1.0/tone/isrbtuser.do", {
2583
1356
  cookie: { pacmtoken },
2584
1357
  headers: {
2585
1358
  "channel": "0146921",
@@ -2591,7 +1364,7 @@ var getUserPhoneInfo = async (pacmtoken) => {
2591
1364
 
2592
1365
  // src/modules/recommend_listenFreely_tab.ts
2593
1366
  var getListenFreelyTab = async (pacmtoken = "") => {
2594
- const { data, cookies } = await ckfetch(`https://app.c.nf.migu.cn/bmw/page/view/listen-freely/v1.0`, {
1367
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `https://app.c.nf.migu.cn/bmw/page/view/listen-freely/v1.0`, {
2595
1368
  cookie: pacmtoken ? { pacmtoken } : void 0
2596
1369
  });
2597
1370
  return { data, newPacmToken: cookies.pacmtoken || void 0 };
@@ -2600,7 +1373,7 @@ var getListenFreelyTab = async (pacmtoken = "") => {
2600
1373
  // src/modules/recommend_listenFreely.ts
2601
1374
  var getListenFreelySongs = async (pacmtoken, modelId = "701000") => {
2602
1375
  if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
2603
- const { data, cookies } = await ckfetch(`http://app.c.nf.migu.cn/resource-dataloader/recommend/listen-freely/v2.0?modelId=${modelId}`, {
1376
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, `http://app.c.nf.migu.cn/resource-dataloader/recommend/listen-freely/v2.0?modelId=${modelId}`, {
2604
1377
  cookie: { pacmtoken }
2605
1378
  });
2606
1379
  return { data, newPacmToken: cookies.pacmtoken || "" };
@@ -2608,37 +1381,37 @@ var getListenFreelySongs = async (pacmtoken, modelId = "701000") => {
2608
1381
 
2609
1382
  // src/modules/playlist_square_listByTag.ts
2610
1383
  var getSquareListByTag = async (tagId, page) => {
2611
- const res = await h5fetch(`http://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/musiclistplaza-listbytag?templateVersion=1&tagId=${tagId}&pageNumber=${page}`);
2612
- res.data.contentItemList = res?.data?.contentItemList?.itemList?.reduce((acc, item) => {
1384
+ const res = await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `http://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/musiclistplaza-listbytag?templateVersion=1&tagId=${tagId}&pageNumber=${page}`);
1385
+ res.data.contentItemList = _optionalChain([res, 'optionalAccess', _28 => _28.data, 'optionalAccess', _29 => _29.contentItemList, 'optionalAccess', _30 => _30.itemList, 'optionalAccess', _31 => _31.reduce, 'call', _32 => _32((acc, item) => {
2613
1386
  if (!item.actionUrl || !item.actionUrl.includes("song-list-info")) {
2614
1387
  return acc;
2615
1388
  }
2616
1389
  item.playlistId = item.actionUrl.split("id=")[1].split("&")[0] || "";
2617
1390
  acc.push(item);
2618
1391
  return acc;
2619
- }, []) || [];
2620
- res.data.hasNext = res.data.contentItemList.length < 30 ? false : res?.data?.nextPageUrl !== void 0 && res?.data?.nextPageUrl !== "";
1392
+ }, [])]) || [];
1393
+ res.data.hasNext = res.data.contentItemList.length < 30 ? false : _optionalChain([res, 'optionalAccess', _33 => _33.data, 'optionalAccess', _34 => _34.nextPageUrl]) !== void 0 && _optionalChain([res, 'optionalAccess', _35 => _35.data, 'optionalAccess', _36 => _36.nextPageUrl]) !== "";
2621
1394
  return res;
2622
1395
  };
2623
1396
 
2624
1397
  // src/modules/playlist_square_recommend.ts
2625
1398
  var getSquareRecommend = async () => {
2626
- return await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/playlist-square/recommend-playlist/v1.0?templateVersion=2`);
1399
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/playlist-square/recommend-playlist/v1.0?templateVersion=2`);
2627
1400
  };
2628
1401
 
2629
1402
  // src/modules/playlist_square_tag.ts
2630
1403
  var getSquareTag = async (needMoreTag = true) => {
2631
- const baseTag = await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/playlist-square/tab/v1.0`);
1404
+ const baseTag = await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/bmw/playlist-square/tab/v1.0`);
2632
1405
  if (!needMoreTag) {
2633
1406
  return baseTag;
2634
1407
  }
2635
- const moreTag = await h5fetch(`https://app.c.nf.migu.cn/pc/v1.0/template/musiclistplaza-taglist/release`);
1408
+ const moreTag = await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/pc/v1.0/template/musiclistplaza-taglist/release`);
2636
1409
  baseTag.data.moreTag = moreTag.data.map((item) => {
2637
- const title = item?.header?.title;
2638
- const tagList = item?.content.map((it) => ({
1410
+ const title = _optionalChain([item, 'optionalAccess', _37 => _37.header, 'optionalAccess', _38 => _38.title]);
1411
+ const tagList = _optionalChain([item, 'optionalAccess', _39 => _39.content, 'access', _40 => _40.map, 'call', _41 => _41((it) => ({
2639
1412
  tagName: it.texts[0],
2640
1413
  tagId: it.texts[1]
2641
- }));
1414
+ }))]);
2642
1415
  return { title, tagList };
2643
1416
  });
2644
1417
  return baseTag;
@@ -2647,18 +1420,13 @@ var getSquareTag = async (needMoreTag = true) => {
2647
1420
  // src/modules/resourceinfo_song.ts
2648
1421
  var getSongInfo = async (contentIds) => {
2649
1422
  contentIds = contentIds.replace(/,/g, "|");
2650
- return await h5fetch(`https://app.c.nf.migu.cn/resource/song/by-contentids/v2.0?contentId=${contentIds}`);
2651
- };
2652
-
2653
- // src/modules/activities.ts
2654
- var getActivities = async () => {
2655
- return await h5fetch(`https://app.u.nf.migu.cn/MIGUM3.0/v1.0/template/index-activity/release`);
1423
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/resource/song/by-contentids/v2.0?contentId=${contentIds}`);
2656
1424
  };
2657
1425
 
2658
1426
  // src/modules/user_ordered.ts
2659
1427
  var getUserOrdered = async (pacmtoken) => {
2660
1428
  if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
2661
- const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM3.0/strategy/song-ordered/v2.0", {
1429
+ const { data, cookies } = await _chunkJOOWMEQPcjs.ckfetch.call(void 0, "https://app.c.nf.migu.cn/MIGUM3.0/strategy/song-ordered/v2.0", {
2662
1430
  cookie: { pacmtoken },
2663
1431
  headers: { "channel": "014X031" }
2664
1432
  });
@@ -2667,230 +1435,144 @@ var getUserOrdered = async (pacmtoken) => {
2667
1435
 
2668
1436
  // src/modules/dalbum_info.ts
2669
1437
  var getDAlbumInfo = async (dAlbumId) => {
2670
- return await h5fetch(`https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/v2.0?dAlbumId=${dAlbumId}`);
1438
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/v2.0?dAlbumId=${dAlbumId}`);
2671
1439
  };
2672
1440
 
2673
1441
  // src/modules/dalbum_song.ts
2674
1442
  var getDAlbumSong = async (dAlbumId) => {
2675
- return await h5fetch(`https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/song/v2.0?dAlbumId=${dAlbumId}`);
1443
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0, `https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/song/v2.0?dAlbumId=${dAlbumId}`);
2676
1444
  };
2677
1445
 
2678
1446
  // src/modules/dalbum_pay.ts
2679
1447
  var getDAlbumPay = async (dAlbumId) => {
2680
- return await h5fetch(
1448
+ return await _chunkJOOWMEQPcjs.h5fetch.call(void 0,
2681
1449
  `https://app.c.nf.migu.cn/MIGUM3.0/strategy/album-sub-rank/v1.0?queryType=01&resourceId=${dAlbumId}`,
2682
1450
  { headers: { "channel": "0146891" } }
2683
1451
  );
2684
1452
  };
2685
1453
 
2686
- // src/utils/index.ts
2687
- var utils_exports = {};
2688
- __export(utils_exports, {
2689
- RSAKey: () => RSAKey,
2690
- URLParams: () => URLParams,
2691
- changeQuality: () => changeQuality,
2692
- decryptMrc: () => decryptMrc,
2693
- formatMrc: () => formatMrc,
2694
- getDeviceId: () => getDeviceId,
2695
- getPublicKey: () => getPublicKey,
2696
- getQuality: () => getQuality,
2697
- getResourceId: () => getResourceId,
2698
- isQuality: () => isQuality,
2699
- qualityList: () => qualityList,
2700
- toWordTime: () => toWordTime,
2701
- toneFormat: () => toneFormat,
2702
- toneUrl: () => toneUrl
2703
- });
2704
-
2705
- // src/utils/resourceType.ts
2706
- var getResourceId = (name) => {
2707
- name = name.toLowerCase().trim();
2708
- switch (name) {
2709
- case "song":
2710
- return "2";
2711
- case "album":
2712
- return "2003";
2713
- case "singer":
2714
- case "artist":
2715
- return "2002";
2716
- case "playlist":
2717
- return "2021";
2718
- case "radio":
2719
- return "2016";
2720
- case "comment":
2721
- return "3002";
2722
- case "svideo":
2723
- return "6000";
2724
- case "mv":
2725
- return "D";
2726
- case "dalbum":
2727
- return "5";
2728
- case "vrbt":
2729
- return "M";
2730
- default:
2731
- return "";
2732
- }
2733
- };
2734
1454
 
2735
- // src/index.ts
2736
- function createClient() {
2737
- return modules_exports;
2738
- }
2739
- // Annotate the CommonJS export names for ESM import in node:
2740
- 0 && (module.exports = {
2741
- MiguUtils,
2742
- RSAKey,
2743
- URLParams,
2744
- YDRZ,
2745
- addFollower,
2746
- addSongToMyList,
2747
- addUserCollect,
2748
- addUserMyList,
2749
- changeQuality,
2750
- checkCanListen,
2751
- checkToken,
2752
- createClient,
2753
- decryptMrc,
2754
- deleteCloudMusic,
2755
- deleteComment,
2756
- dislikeSong,
2757
- editUserMyList,
2758
- emojiAction,
2759
- formatMrc,
2760
- getActivities,
2761
- getAiBeanCount,
2762
- getAiBeanSignStatus,
2763
- getAlbumInfo,
2764
- getAlbumSong,
2765
- getCloudDLUrl,
2766
- getCloudUploadUrl,
2767
- getCloudUrl,
2768
- getColumnInfo,
2769
- getComment,
2770
- getConcertComment,
2771
- getConcertDetail,
2772
- getConcertInfo,
2773
- getConcertRecommendMv,
2774
- getConcertUrl,
2775
- getDAlbumInfo,
2776
- getDAlbumPay,
2777
- getDAlbumSong,
2778
- getDLUrlV1,
2779
- getDeviceId,
2780
- getEmojiNum,
2781
- getFollowerList,
2782
- getFollowingList,
2783
- getFollowingVra,
2784
- getInteractionMsg,
2785
- getListenFreelySongs,
2786
- getListenFreelyTab,
2787
- getListenRank,
2788
- getLyric,
2789
- getMVRecommend,
2790
- getMvBySong,
2791
- getMvHls,
2792
- getMvInfo,
2793
- getNewCDList,
2794
- getNewSongList,
2795
- getNinanByDate,
2796
- getNinanSignInfo,
2797
- getNinanSong,
2798
- getNoticeMsg,
2799
- getOpNum,
2800
- getPacmToken,
2801
- getPageInfo,
2802
- getPageTab,
2803
- getPlaylistInfo,
2804
- getPlaylistSong,
2805
- getPublicKey,
2806
- getQuality,
2807
- getRadioRecommend,
2808
- getRadioRecommendAll,
2809
- getRadioSong,
2810
- getRankIndex,
2811
- getRankInfo,
2812
- getRecommendPlaylist,
2813
- getRedirectUrl,
2814
- getResourceId,
2815
- getResourceInfo,
2816
- getSVideoInfo,
2817
- getSVideoRecommend,
2818
- getSVideoSearchSuggest,
2819
- getSVideoUrl,
2820
- getSVideoUserContent,
2821
- getSVideoUserInfo,
2822
- getSceneRecommend,
2823
- getSearchDefault,
2824
- getSearchHot,
2825
- getSearchSingerTab,
2826
- getSearchSingerTabList,
2827
- getSimilarSongRecommend,
2828
- getSingerAlbum,
2829
- getSingerIndex,
2830
- getSingerLetter,
2831
- getSingerMv,
2832
- getSingerSimilar,
2833
- getSingerSong,
2834
- getSongInfo,
2835
- getSquareListByTag,
2836
- getSquarePage,
2837
- getSquareRecommend,
2838
- getSquareTag,
2839
- getThumbsMsg,
2840
- getTicketInfo,
2841
- getTodayRecommend,
2842
- getUrlH5V24,
2843
- getUrlM2,
2844
- getUrlV1,
2845
- getUrlV2,
2846
- getUserAudioBook,
2847
- getUserBadge,
2848
- getUserCollectList,
2849
- getUserHeader,
2850
- getUserHeartthrob,
2851
- getUserHomePage,
2852
- getUserMyList,
2853
- getUserOrdered,
2854
- getUserPhoneInfo,
2855
- getUserSongPage,
2856
- getVersion,
2857
- getVipPlaylist,
2858
- getVrbtOpNum,
2859
- getVrbtUrl,
2860
- isFollowAuthor,
2861
- isQuality,
2862
- likeSong,
2863
- loginNP,
2864
- loginOneClick,
2865
- loginPhone,
2866
- loginSim,
2867
- logout,
2868
- matchPlaylist,
2869
- modules,
2870
- qualityList,
2871
- queryUserInfo,
2872
- redeemAiBean,
2873
- removeFollower,
2874
- removeSongFromMyList,
2875
- removeUserCollect,
2876
- removeUserMyList,
2877
- searchAlbum,
2878
- searchConcert,
2879
- searchLrc,
2880
- searchMv,
2881
- searchPlaylist,
2882
- searchRbt,
2883
- searchSVideo,
2884
- searchSinger,
2885
- searchSong,
2886
- searchSuggest,
2887
- searchTicket,
2888
- shareCommon,
2889
- shareVideo,
2890
- signAiBean,
2891
- signNinan,
2892
- toWordTime,
2893
- toneFormat,
2894
- toneUrl
2895
- });
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+ exports.addFollower = addFollower; exports.addSongToMyList = addSongToMyList; exports.addUserCollect = addUserCollect; exports.addUserMyList = addUserMyList; exports.checkCanListen = checkCanListen; exports.checkToken = checkToken; exports.deleteCloudMusic = deleteCloudMusic; exports.deleteComment = deleteComment; exports.dislikeSong = dislikeSong; exports.editUserMyList = editUserMyList; exports.emojiAction = emojiAction; exports.getAlbumInfo = getAlbumInfo; exports.getAlbumSong = getAlbumSong; exports.getCloudDLUrl = getCloudDLUrl; exports.getCloudUploadUrl = getCloudUploadUrl; exports.getCloudUrl = getCloudUrl; exports.getColumnInfo = getColumnInfo; exports.getComment = getComment; exports.getConcertComment = getConcertComment; exports.getConcertDetail = getConcertDetail; exports.getConcertInfo = getConcertInfo; exports.getConcertRecommendMv = getConcertRecommendMv; exports.getConcertUrl = getConcertUrl; exports.getDAlbumInfo = getDAlbumInfo; exports.getDAlbumPay = getDAlbumPay; exports.getDAlbumSong = getDAlbumSong; exports.getDLUrlV1 = getDLUrlV1; exports.getEmojiNum = getEmojiNum; exports.getFollowerList = getFollowerList; exports.getFollowingList = getFollowingList; exports.getFollowingVra = getFollowingVra; exports.getInteractionMsg = getInteractionMsg; exports.getListenFreelySongs = getListenFreelySongs; exports.getListenFreelyTab = getListenFreelyTab; exports.getListenRank = getListenRank; exports.getLyric = getLyric; exports.getMVRecommend = getMVRecommend; exports.getMvBySong = getMvBySong; exports.getMvHls = getMvHls; exports.getMvInfo = getMvInfo; exports.getNewCDList = getNewCDList; exports.getNewSongList = getNewSongList; exports.getNoticeMsg = getNoticeMsg; exports.getOpNum = getOpNum; exports.getPacmToken = getPacmToken; exports.getPageInfo = getPageInfo; exports.getPageTab = getPageTab; exports.getPlaylistInfo = getPlaylistInfo; exports.getPlaylistSong = getPlaylistSong; exports.getRadioRecommend = getRadioRecommend; exports.getRadioRecommendAll = getRadioRecommendAll; exports.getRadioSong = getRadioSong; exports.getRankIndex = getRankIndex; exports.getRankInfo = getRankInfo; exports.getRecommendPlaylist = getRecommendPlaylist; exports.getRedirectUrl = getRedirectUrl; exports.getResourceInfo = getResourceInfo; exports.getSVideoInfo = getSVideoInfo; exports.getSVideoRecommend = getSVideoRecommend; exports.getSVideoSearchSuggest = getSVideoSearchSuggest; exports.getSVideoUrl = getSVideoUrl; exports.getSVideoUserContent = getSVideoUserContent; exports.getSVideoUserInfo = getSVideoUserInfo; exports.getSceneRecommend = getSceneRecommend; exports.getSearchDefault = getSearchDefault; exports.getSearchHot = getSearchHot; exports.getSearchSingerTab = getSearchSingerTab; exports.getSearchSingerTabList = getSearchSingerTabList; exports.getSimilarSongRecommend = getSimilarSongRecommend; exports.getSingerAlbum = getSingerAlbum; exports.getSingerIndex = getSingerIndex; exports.getSingerLetter = getSingerLetter; exports.getSingerMv = getSingerMv; exports.getSingerSimilar = getSingerSimilar; exports.getSingerSong = getSingerSong; exports.getSongInfo = getSongInfo; exports.getSquareListByTag = getSquareListByTag; exports.getSquarePage = getSquarePage; exports.getSquareRecommend = getSquareRecommend; exports.getSquareTag = getSquareTag; exports.getThumbsMsg = getThumbsMsg; exports.getTicketInfo = getTicketInfo; exports.getTodayRecommend = getTodayRecommend; exports.getUrlH5V24 = getUrlH5V24; exports.getUrlM2 = getUrlM2; exports.getUrlV1 = getUrlV1; exports.getUrlV2 = getUrlV2; exports.getUserAudioBook = getUserAudioBook; exports.getUserBadge = getUserBadge; exports.getUserCollectList = getUserCollectList; exports.getUserHeader = getUserHeader; exports.getUserHeartthrob = getUserHeartthrob; exports.getUserHomePage = getUserHomePage; exports.getUserMyList = getUserMyList; exports.getUserOrdered = getUserOrdered; exports.getUserPhoneInfo = getUserPhoneInfo; exports.getUserSongPage = getUserSongPage; exports.getVersion = getVersion; exports.getVipPlaylist = getVipPlaylist; exports.getVrbtOpNum = getVrbtOpNum; exports.getVrbtUrl = getVrbtUrl; exports.isFollowAuthor = isFollowAuthor; exports.likeSong = likeSong; exports.logout = logout; exports.matchPlaylist = matchPlaylist; exports.queryUserInfo = queryUserInfo; exports.removeFollower = removeFollower; exports.removeSongFromMyList = removeSongFromMyList; exports.removeUserCollect = removeUserCollect; exports.removeUserMyList = removeUserMyList; exports.searchAlbum = searchAlbum; exports.searchConcert = searchConcert; exports.searchLrc = searchLrc; exports.searchMv = searchMv; exports.searchPlaylist = searchPlaylist; exports.searchRbt = searchRbt; exports.searchSVideo = searchSVideo; exports.searchSinger = searchSinger; exports.searchSong = searchSong; exports.searchSuggest = searchSuggest; exports.searchTicket = searchTicket; exports.shareCommon = shareCommon; exports.shareVideo = shareVideo;
2896
1578
  //# sourceMappingURL=index.cjs.map