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:
36
anyclip/webpack/bootstrap.js
vendored
Normal file
36
anyclip/webpack/bootstrap.js
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
// The module cache
|
||||
var __webpack_module_cache__ = {};
|
||||
|
||||
// The require function
|
||||
function __webpack_require__(moduleId) {
|
||||
// Check if module is in cache
|
||||
var cachedModule = __webpack_module_cache__[moduleId];
|
||||
if (cachedModule !== undefined) {
|
||||
return cachedModule.exports;
|
||||
}
|
||||
// Create a new module (and put it into the cache)
|
||||
var module = __webpack_module_cache__[moduleId] = {
|
||||
id: moduleId,
|
||||
loaded: false,
|
||||
exports: {}
|
||||
};
|
||||
|
||||
// Execute the module function
|
||||
var threw = true;
|
||||
try {
|
||||
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
threw = false;
|
||||
} finally {
|
||||
if(threw) delete __webpack_module_cache__[moduleId];
|
||||
}
|
||||
|
||||
// Flag the module as loaded
|
||||
module.loaded = true;
|
||||
|
||||
// Return the exports of the module
|
||||
return module.exports;
|
||||
}
|
||||
|
||||
// expose the modules object (__webpack_modules__)
|
||||
__webpack_require__.m = __webpack_modules__;
|
||||
|
||||
28
anyclip/webpack/runtime/chunk-loaded.js
Normal file
28
anyclip/webpack/runtime/chunk-loaded.js
Normal file
@@ -0,0 +1,28 @@
|
||||
var deferred = [];
|
||||
__webpack_require__.O = (result, chunkIds, fn, priority) => {
|
||||
if(chunkIds) {
|
||||
priority = priority || 0;
|
||||
for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
||||
deferred[i] = [chunkIds, fn, priority];
|
||||
return;
|
||||
}
|
||||
var notFulfilled = Infinity;
|
||||
for (var i = 0; i < deferred.length; i++) {
|
||||
var [chunkIds, fn, priority] = deferred[i];
|
||||
var fulfilled = true;
|
||||
for (var j = 0; j < chunkIds.length; j++) {
|
||||
if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
||||
chunkIds.splice(j--, 1);
|
||||
} else {
|
||||
fulfilled = false;
|
||||
if(priority < notFulfilled) notFulfilled = priority;
|
||||
}
|
||||
}
|
||||
if(fulfilled) {
|
||||
deferred.splice(i--, 1)
|
||||
var r = fn();
|
||||
if (r !== undefined) result = r;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
};
|
||||
8
anyclip/webpack/runtime/compat-get-default-export.js
Normal file
8
anyclip/webpack/runtime/compat-get-default-export.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// getDefaultExport function for compatibility with non-harmony modules
|
||||
__webpack_require__.n = (module) => {
|
||||
var getter = module && module.__esModule ?
|
||||
() => (module['default']) :
|
||||
() => (module);
|
||||
__webpack_require__.d(getter, { a: getter });
|
||||
return getter;
|
||||
};
|
||||
26
anyclip/webpack/runtime/create-fake-namespace-object.js
Normal file
26
anyclip/webpack/runtime/create-fake-namespace-object.js
Normal file
@@ -0,0 +1,26 @@
|
||||
var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
||||
var leafPrototypes;
|
||||
// create a fake namespace object
|
||||
// mode & 1: value is a module id, require it
|
||||
// mode & 2: merge all properties of value into the ns
|
||||
// mode & 4: return value when already ns object
|
||||
// mode & 16: return value when it's Promise-like
|
||||
// mode & 8|1: behave like require
|
||||
__webpack_require__.t = function(value, mode) {
|
||||
if(mode & 1) value = this(value);
|
||||
if(mode & 8) return value;
|
||||
if(typeof value === 'object' && value) {
|
||||
if((mode & 4) && value.__esModule) return value;
|
||||
if((mode & 16) && typeof value.then === 'function') return value;
|
||||
}
|
||||
var ns = Object.create(null);
|
||||
__webpack_require__.r(ns);
|
||||
var def = {};
|
||||
leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
||||
for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
||||
Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
||||
}
|
||||
def['default'] = () => (value);
|
||||
__webpack_require__.d(ns, def);
|
||||
return ns;
|
||||
};
|
||||
77
anyclip/webpack/runtime/css-loading.js
Normal file
77
anyclip/webpack/runtime/css-loading.js
Normal file
@@ -0,0 +1,77 @@
|
||||
var createStylesheet = (chunkId, fullhref, resolve, reject) => {
|
||||
var linkTag = document.createElement("link");
|
||||
|
||||
linkTag.rel = "stylesheet";
|
||||
linkTag.type = "text/css";
|
||||
var onLinkComplete = (event) => {
|
||||
// avoid mem leaks.
|
||||
linkTag.onerror = linkTag.onload = null;
|
||||
if (event.type === 'load') {
|
||||
resolve();
|
||||
} else {
|
||||
var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
var realHref = event && event.target && event.target.href || fullhref;
|
||||
var err = new Error("Loading CSS chunk " + chunkId + " failed.\n(" + realHref + ")");
|
||||
err.code = "CSS_CHUNK_LOAD_FAILED";
|
||||
err.type = errorType;
|
||||
err.request = realHref;
|
||||
linkTag.parentNode.removeChild(linkTag)
|
||||
reject(err);
|
||||
}
|
||||
}
|
||||
linkTag.onerror = linkTag.onload = onLinkComplete;
|
||||
linkTag.href = fullhref;
|
||||
|
||||
(function(linkTag) {
|
||||
if (typeof _N_E_STYLE_LOAD === 'function') {
|
||||
const { href, onload, onerror } = linkTag;
|
||||
_N_E_STYLE_LOAD(href.indexOf(window.location.origin) === 0 ? new URL(href).pathname : href).then(()=>onload == null ? void 0 : onload.call(linkTag, {
|
||||
type: 'load'
|
||||
}), ()=>onerror == null ? void 0 : onerror.call(linkTag, {}));
|
||||
} else {
|
||||
document.head.appendChild(linkTag);
|
||||
}
|
||||
})(linkTag)
|
||||
return linkTag;
|
||||
};
|
||||
var findStylesheet = (href, fullhref) => {
|
||||
var existingLinkTags = document.getElementsByTagName("link");
|
||||
for(var i = 0; i < existingLinkTags.length; i++) {
|
||||
var tag = existingLinkTags[i];
|
||||
var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
|
||||
if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;
|
||||
}
|
||||
var existingStyleTags = document.getElementsByTagName("style");
|
||||
for(var i = 0; i < existingStyleTags.length; i++) {
|
||||
var tag = existingStyleTags[i];
|
||||
var dataHref = tag.getAttribute("data-href");
|
||||
if(dataHref === href || dataHref === fullhref) return tag;
|
||||
}
|
||||
};
|
||||
var loadStylesheet = (chunkId) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
var href = __webpack_require__.miniCssF(chunkId);
|
||||
var fullhref = __webpack_require__.p + href;
|
||||
if(findStylesheet(href, fullhref)) return resolve();
|
||||
createStylesheet(chunkId, fullhref, resolve, reject);
|
||||
});
|
||||
}
|
||||
// object to store loaded CSS chunks
|
||||
var installedCssChunks = {
|
||||
8068: 0
|
||||
};
|
||||
|
||||
__webpack_require__.f.miniCss = (chunkId, promises) => {
|
||||
var cssChunks = {"476":1,"1231":1,"2439":1,"3189":1,"3210":1,"3942":1,"4835":1,"4876":1,"4996":1,"5557":1,"5865":1,"6557":1,"6666":1,"8083":1,"9636":1,"9837":1};
|
||||
if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
||||
else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
||||
promises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {
|
||||
installedCssChunks[chunkId] = 0;
|
||||
}, (e) => {
|
||||
delete installedCssChunks[chunkId];
|
||||
throw e;
|
||||
}));
|
||||
}
|
||||
};
|
||||
|
||||
// no hmr
|
||||
8
anyclip/webpack/runtime/define-property-getters.js
Normal file
8
anyclip/webpack/runtime/define-property-getters.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// define getter functions for harmony exports
|
||||
__webpack_require__.d = (exports, definition) => {
|
||||
for(var key in definition) {
|
||||
if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
}
|
||||
}
|
||||
};
|
||||
9
anyclip/webpack/runtime/ensure-chunk.js
Normal file
9
anyclip/webpack/runtime/ensure-chunk.js
Normal file
@@ -0,0 +1,9 @@
|
||||
__webpack_require__.f = {};
|
||||
// This file contains only the entry chunk.
|
||||
// The chunk loading function for additional chunks
|
||||
__webpack_require__.e = (chunkId) => {
|
||||
return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
||||
__webpack_require__.f[key](chunkId, promises);
|
||||
return promises;
|
||||
}, []));
|
||||
};
|
||||
11
anyclip/webpack/runtime/get-javascript-chunk-filename.js
Normal file
11
anyclip/webpack/runtime/get-javascript-chunk-filename.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// This function allow to reference async chunks
|
||||
__webpack_require__.u = (chunkId) => {
|
||||
// return url for filenames not based on template
|
||||
if (chunkId === 2755) return "static/chunks/2755-a4fe36c04cd11606.js";
|
||||
if (chunkId === 4287) return "static/chunks/4287-005290aba998face.js";
|
||||
if (chunkId === 9372) return "static/chunks/9372-9a6a9de77df0efab.js";
|
||||
if (chunkId === 6870) return "static/chunks/6870-e42c0c2ddb115f54.js";
|
||||
if (chunkId === 9306) return "static/chunks/9306-6105f90f5cce51bf.js";
|
||||
// return url for filenames based on template
|
||||
return "static/chunks/" + ({"347":"643144ee","806":"4163ae0c","2366":"1d2671aa","4155":"0bd2f4cc"}[chunkId] || chunkId) + "." + {"140":"e2f54814052b3bab","197":"b6e8a4c11f0d7167","250":"97ce05d3cd3c8653","306":"19c53a528f25de03","330":"0a485953fb7ecf8e","347":"f84f98c8605d7b71","430":"e4fd9a4d151f07f0","523":"c2073f374c556f2f","637":"7908e62d845003b5","752":"cc8c222fc1fe7d84","756":"f05de74d68d6e9ff","806":"b085123e0154c905","843":"1c2679c94d8148ad","953":"1f5ff1effe50d4c5","993":"f7ec5386ad7e6626","1208":"3a4e29809a381c70","1475":"80b8fc9eb4bf6f8f","1507":"cc9a212556689053","1520":"929cb87ca8d25795","1842":"99cf86ac6b01e316","2014":"2a22d7fd3ddbd93d","2048":"7199d9a4eee0a76d","2227":"543391d38fecd694","2299":"c0e84a49334a05b9","2366":"3dd3a126c06b8b96","2428":"e88656a855a8910a","2548":"328f040a830b94d7","2936":"caa302d1f1b91bba","2971":"a94e4da37ec20e92","3115":"8220c8495c1a6af8","3186":"263c7662b247c04a","3257":"ad721b524e59c7d1","3292":"57d61f2ee053222f","3677":"c1bf486a441afb3b","4001":"a1627cbd57c3579e","4155":"cf1bac4737200ca8","4194":"a7075274b57c89cc","4479":"9cc63cb111cd7ad8","5042":"fa84c3d3d247b126","5086":"5abceab582a5afb6","5114":"ed37fd444b10b5d9","5401":"2ce1ea72f4e17961","5552":"34cbf9186faa8572","5668":"8928dabc348766c9","5746":"baf1d0a2733d7427","5888":"4130fb59029659b6","6067":"217f4c2292366edb","6173":"4fecfb048e33fe5c","6815":"eae93b2502ecc6fc","6843":"a93958173564a67b","6917":"8f473a6c2a648f00","7067":"232fc96b3502d1a9","7084":"5c191297a5c246af","7087":"6a034905a3c166fe","7265":"9bbc937c51a49d74","7386":"eb84ef8dfe862a50","7524":"02960c8ffd2e8c78","7563":"5f1ac572b5152e43","7611":"2c3080504deb7e3b","7699":"4f71433736f31e2e","7739":"199d703572d08b76","7759":"ce0c21c54eb28f3e","7899":"f7c6aaec179d4a74","8261":"a95f83cea0a247ef","8273":"9b72482e9d64f426","8305":"80327c99579a3cca","9071":"49d24983598a62af","9152":"fa7c6e5a01250a40","9579":"8eddcaf12da8cf9e","9978":"539ab7548c68f8bd"}[chunkId] + ".js";
|
||||
};
|
||||
5
anyclip/webpack/runtime/get-mini-css-chunk-filename.js
Normal file
5
anyclip/webpack/runtime/get-mini-css-chunk-filename.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// This function allow to reference async chunks
|
||||
__webpack_require__.miniCssF = (chunkId) => {
|
||||
// return url for filenames based on template
|
||||
return "static/css/" + {"476":"8725225f3cdc0f9b","1231":"e5f3197c574c1feb","2439":"4481a970cf1b3369","3189":"e5dedcb95842a0e3","3210":"9a0360c3bbef1eae","3942":"2a7caa7c580bf6e7","4835":"e9359f137691a6c8","4876":"cd88e295af3c3554","4996":"c06a85dbb993be37","5557":"87fc725861ae3c5e","5865":"ffdcd5fbbd4ecb75","6557":"f8d2868de065e0fb","6666":"5843a515913722db","8083":"df70b84306a0351b","9636":"6b79ffee3a35d5d9","9837":"a47f30f0347b7314"}[chunkId] + ".css";
|
||||
};
|
||||
8
anyclip/webpack/runtime/global.js
Normal file
8
anyclip/webpack/runtime/global.js
Normal file
@@ -0,0 +1,8 @@
|
||||
__webpack_require__.g = (function() {
|
||||
if (typeof globalThis === 'object') return globalThis;
|
||||
try {
|
||||
return this || new Function('return this')();
|
||||
} catch (e) {
|
||||
if (typeof window === 'object') return window;
|
||||
}
|
||||
})();
|
||||
1
anyclip/webpack/runtime/hasOwnProperty-shorthand.js
Normal file
1
anyclip/webpack/runtime/hasOwnProperty-shorthand.js
Normal file
@@ -0,0 +1 @@
|
||||
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
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));
|
||||
42
anyclip/webpack/runtime/load-script.js
Normal file
42
anyclip/webpack/runtime/load-script.js
Normal file
@@ -0,0 +1,42 @@
|
||||
var inProgress = {};
|
||||
var dataWebpackPrefix = "_N_E:";
|
||||
// loadScript function to load a script via script tag
|
||||
__webpack_require__.l = (url, done, key, chunkId) => {
|
||||
if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
var script, needAttach;
|
||||
if(key !== undefined) {
|
||||
var scripts = document.getElementsByTagName("script");
|
||||
for(var i = 0; i < scripts.length; i++) {
|
||||
var s = scripts[i];
|
||||
if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
||||
}
|
||||
}
|
||||
if(!script) {
|
||||
needAttach = true;
|
||||
script = document.createElement('script');
|
||||
|
||||
script.charset = 'utf-8';
|
||||
script.timeout = 120;
|
||||
if (__webpack_require__.nc) {
|
||||
script.setAttribute("nonce", __webpack_require__.nc);
|
||||
}
|
||||
script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
||||
|
||||
script.src = __webpack_require__.tu(url);
|
||||
}
|
||||
inProgress[url] = [done];
|
||||
var onScriptComplete = (prev, event) => {
|
||||
// avoid mem leaks in IE.
|
||||
script.onerror = script.onload = null;
|
||||
clearTimeout(timeout);
|
||||
var doneFns = inProgress[url];
|
||||
delete inProgress[url];
|
||||
script.parentNode && script.parentNode.removeChild(script);
|
||||
doneFns && doneFns.forEach((fn) => (fn(event)));
|
||||
if(prev) return prev(event);
|
||||
}
|
||||
var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
script.onload = onScriptComplete.bind(null, script.onload);
|
||||
needAttach && document.head.appendChild(script);
|
||||
};
|
||||
7
anyclip/webpack/runtime/make-namespace-object.js
Normal file
7
anyclip/webpack/runtime/make-namespace-object.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// define __esModule on exports
|
||||
__webpack_require__.r = (exports) => {
|
||||
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
}
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
};
|
||||
5
anyclip/webpack/runtime/node-module-decorator.js
Normal file
5
anyclip/webpack/runtime/node-module-decorator.js
Normal file
@@ -0,0 +1,5 @@
|
||||
__webpack_require__.nmd = (module) => {
|
||||
module.paths = [];
|
||||
if (!module.children) module.children = [];
|
||||
return module;
|
||||
};
|
||||
1
anyclip/webpack/runtime/publicPath.js
Normal file
1
anyclip/webpack/runtime/publicPath.js
Normal file
@@ -0,0 +1 @@
|
||||
__webpack_require__.p = "/_next/";
|
||||
13
anyclip/webpack/runtime/trusted-types-policy.js
Normal file
13
anyclip/webpack/runtime/trusted-types-policy.js
Normal file
@@ -0,0 +1,13 @@
|
||||
var policy;
|
||||
__webpack_require__.tt = () => {
|
||||
// Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet.
|
||||
if (policy === undefined) {
|
||||
policy = {
|
||||
createScriptURL: (url) => (url)
|
||||
};
|
||||
if (typeof trustedTypes !== "undefined" && trustedTypes.createPolicy) {
|
||||
policy = trustedTypes.createPolicy("nextjs#bundler", policy);
|
||||
}
|
||||
}
|
||||
return policy;
|
||||
};
|
||||
1
anyclip/webpack/runtime/trusted-types-script-url.js
Normal file
1
anyclip/webpack/runtime/trusted-types-script-url.js
Normal file
@@ -0,0 +1 @@
|
||||
__webpack_require__.tu = (url) => (__webpack_require__.tt().createScriptURL(url));
|
||||
Reference in New Issue
Block a user