Add AnyClip integration tools and extracted source code
- Add authentication scripts with SubtleCrypto password encryption - Add sourcemap extraction pipeline (update-urls, download-sourcemaps, extract-sources) - Add Playwright API interception script for monetization endpoints - Document two-step auth flow with JWT tokens and dual cookies - Move extracted source from root to anyclip/ directory - Add project configuration (.env.example, .gitignore, CLAUDE.md)
This commit is contained in:
86
anyclip/webpack/runtime/jsonp-chunk-loading.js
Normal file
86
anyclip/webpack/runtime/jsonp-chunk-loading.js
Normal file
@@ -0,0 +1,86 @@
|
||||
// no baseURI
|
||||
|
||||
// object to store loaded and loading chunks
|
||||
// undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
||||
var installedChunks = {
|
||||
8068: 0
|
||||
};
|
||||
|
||||
__webpack_require__.f.j = (chunkId, promises) => {
|
||||
// JSONP chunk loading for javascript
|
||||
var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
||||
if(installedChunkData !== 0) { // 0 means "already installed".
|
||||
|
||||
// a Promise means "currently loading".
|
||||
if(installedChunkData) {
|
||||
promises.push(installedChunkData[2]);
|
||||
} else {
|
||||
if(!/^(3(189|210|942)|4((7|87|99)6|835)|80(68|83)|([56]55|983)7|1231|2439|5865|6666|9636)$/.test(chunkId)) {
|
||||
// setup Promise in chunk cache
|
||||
var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
||||
promises.push(installedChunkData[2] = promise);
|
||||
|
||||
// start chunk loading
|
||||
var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
// create error before stack unwound to get useful stacktrace later
|
||||
var error = new Error();
|
||||
var loadingEnded = (event) => {
|
||||
if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
installedChunkData = installedChunks[chunkId];
|
||||
if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
if(installedChunkData) {
|
||||
var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
var realSrc = event && event.target && event.target.src;
|
||||
error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
error.name = 'ChunkLoadError';
|
||||
error.type = errorType;
|
||||
error.request = realSrc;
|
||||
installedChunkData[1](error);
|
||||
}
|
||||
}
|
||||
};
|
||||
__webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
||||
} else installedChunks[chunkId] = 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// no prefetching
|
||||
|
||||
// no preloaded
|
||||
|
||||
// no HMR
|
||||
|
||||
// no HMR manifest
|
||||
|
||||
__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
||||
|
||||
// install a JSONP callback for chunk loading
|
||||
var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
||||
var [chunkIds, moreModules, runtime] = data;
|
||||
// add "moreModules" to the modules object,
|
||||
// then flag all "chunkIds" as loaded and fire callback
|
||||
var moduleId, chunkId, i = 0;
|
||||
if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
||||
for(moduleId in moreModules) {
|
||||
if(__webpack_require__.o(moreModules, moduleId)) {
|
||||
__webpack_require__.m[moduleId] = moreModules[moduleId];
|
||||
}
|
||||
}
|
||||
if(runtime) var result = runtime(__webpack_require__);
|
||||
}
|
||||
if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
||||
for(;i < chunkIds.length; i++) {
|
||||
chunkId = chunkIds[i];
|
||||
if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
||||
installedChunks[chunkId][0]();
|
||||
}
|
||||
installedChunks[chunkId] = 0;
|
||||
}
|
||||
return __webpack_require__.O(result);
|
||||
}
|
||||
|
||||
var chunkLoadingGlobal = self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || [];
|
||||
chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
||||
chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
||||
Reference in New Issue
Block a user