@note3/utils 0.0.16
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.
- package/LICENSE +661 -0
- package/dist/chunk-IFY2JCCQ.min.js +2 -0
- package/dist/chunk-IFY2JCCQ.min.js.map +1 -0
- package/dist/chunk-MXMMU6NF.min.js +2 -0
- package/dist/chunk-MXMMU6NF.min.js.map +1 -0
- package/dist/chunk-PA6WBVCJ.min.js +3 -0
- package/dist/chunk-PA6WBVCJ.min.js.map +1 -0
- package/dist/chunk-Z5VZCNIS.min.js +11 -0
- package/dist/chunk-Z5VZCNIS.min.js.map +1 -0
- package/dist/corejs.d.ts +19 -0
- package/dist/corejs.d.ts.map +1 -0
- package/dist/corejs.min.js +2 -0
- package/dist/corejs.min.js.map +1 -0
- package/dist/helpers.d.ts +7 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.min.js +2 -0
- package/dist/helpers.min.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +1 -0
- package/dist/map.d.ts +5 -0
- package/dist/map.d.ts.map +1 -0
- package/dist/map.min.js +2 -0
- package/dist/map.min.js.map +1 -0
- package/dist/worker.d.ts +6 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.min.js +2 -0
- package/dist/worker.min.js.map +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as h,b}from"./chunk-MXMMU6NF.min.js";var E=h(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});var x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A=typeof window<"u"&&typeof window.document<"u",B=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,j=(typeof self>"u"?"undefined":x(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",T=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),W=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";d.isBrowser=A;d.isWebWorker=j;d.isNode=B;d.isJsDom=T;d.isDeno=W});var S=h((U,L)=>{"use strict";L.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,s=e.cmp&&(function(l){return function(i){return function(a,o){var u={key:a,value:i[a]},f={key:o,value:i[o]};return l(u,f)}}})(e.cmp),n=[];return(function l(i){if(i&&i.toJSON&&typeof i.toJSON=="function"&&(i=i.toJSON()),i!==void 0){if(typeof i=="number")return isFinite(i)?""+i:"null";if(typeof i!="object")return JSON.stringify(i);var a,o;if(Array.isArray(i)){for(o="[",a=0;a<i.length;a++)a&&(o+=","),o+=l(i[a])||"null";return o+"]"}if(i===null)return"null";if(n.indexOf(i)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=n.push(i)-1,f=Object.keys(i).sort(s&&s(i));for(o="",a=0;a<f.length;a++){var m=f[a],p=l(i[m]);p&&(o&&(o+=","),o+=JSON.stringify(m)+":"+p)}return n.splice(u,1),"{"+o+"}"}})(t)}});var g=b(E(),1),D=b(S(),1),F=!1,G=!1;g.isNode&&(process?.env?.LOGGER_TIME_PREFIX&&(F=process?.env?.LOGGER_TIME_PREFIX==="true"),process?.env?.LOGGER_PERF_PREFIX&&(G=process?.env?.LOGGER_PERF_PREFIX==="true"));var k={prefix:void 0,time:F,delta:G,dimDebugOnServer:!0,printOriginOnServer:!0,serverInspectOptions:{},customFormattersOnServer:!0,printStackLinesOnServer:!1,dim:!0},O=[],P=class{sinceFirst=0;sinceLast=0;time=!1;delta=!1;constructor(t,e,r,s){Object.assign(this,{sinceFirst:t,sinceLast:e,time:r,delta:s})}toString(){let t=this.sinceFirst*.001,e=t.toFixed(t<5?2:1),r=this.sinceLast<1e3?`${this.sinceLast.toFixed(0)}`.padStart(5," "):`${`${(this.sinceLast*.001).toFixed(this.sinceLast<1e4?1:0)}`.padStart(4," ")}s`;return`[${[this.time?e:null,this.delta?r:null].filter(s=>s!=null).join(",")}]`}},I=class{constructor(t,e){Object.assign(this,{style:t,string:e})}},y=!1,w=class c{static ERROR=2;static WARN=4;static INFO=6;static LOG=6;static DEBUG=8;static VERBOSE=10;static firstLog=0;static lastLog=0;static setup(e=c.INFO,r={}){r=Object.assign({},k,r),e>10&&console.debug("setup logger",{config:r});let s=this.wrapLog(console.debug,{...r,dim:r.dimDebugOnServer}),n=(...o)=>{typeof window<"u"&&window?.FORCE_DISABLE_LOGLEVEL&&s(...o)};n.isDisabled=!0,n.isEnabled=!1;let l=this.wrapLog(console.groupCollapsed,r),i=(o,u)=>{function f(...p){let R=p[p.length-1];return R===n?R():(l(...p.slice(0,-1)),(async()=>{try{let v=R();return v instanceof Promise?await v:v}finally{console.groupEnd()}})())}let m=Object.assign(u.bind({}),{isEnabled:o,isDisabled:!o,group:f,force:u});return o?m:Object.assign(n.bind({}),{isEnabled:o,isDisabled:!o,group:f,force:m})},a=i(e>=c.ERROR,this.wrapLog(console.error,r));return{ERROR:(...o)=>(a(...o),new Error(o.map(u=>typeof u=="string"?u:(0,D.default)(u)).join(" "))),WARN:i(e>=c.WARN,this.wrapLog(console.warn,r)),LOG:i(e>=c.INFO,this.wrapLog(console.log,r)),DEBUG:i(e>=c.DEBUG,this.wrapLog(console.log,{...r,dim:r.dimDebugOnServer})),VERBOSE:i(e>=c.VERBOSE,this.wrapLog(console.debug,{...r,dim:r.dimDebugOnServer}))}}static wrapLog(e,r){if(g.isNode)return e.bind(console);{let s=[];if(r.time||r.delta){let n=g.isBrowser&&navigator.userAgent.includes("Chrome")?["",c.timeStr(!!r.time,!!r.delta)]:[];s.push(...n)}return r.prefix&&(y?s.push(new I("dim",r.prefix)):s.push(r.prefix)),e.bind(console,...s)}}static timeStr(e,r,s=0){if(!performance.now)return;let n=performance.now();c.firstLog||(c.firstLog=n,c.lastLog=n);let l=new P(n-c.firstLog,n-c.lastLog,e,r);return c.lastLog=n,s?l.toString():l}static getOriginFromStack(e){let r=!1;for(let s of e.split(`
|
|
2
|
+
`)){let n=s.match(/^\s+at\s+(.*)/);if(n){if(r)return n[1].trim().replace(__dirname,"");r=!0}}}};g.isBrowser&&(window.devtoolsFormatters=window.devtoolsFormatters??[],window.devtoolsFormatters.push({header:t=>{if(O&&O.length){for(let e of O)if(e.match(t))return["span",{},e.format(t)]}return null},hasBody:()=>!0},{header:t=>{if(!(t instanceof P))return null;y||(y=!0);let e=w.timeStr(t.time,t.delta);return["span",{style:"font-weight: light; color: grey"},e?.toString()]},hasBody:()=>!1},{header:t=>t instanceof I?(y||(y=!0),["span",{style:"font-weight: light; color: grey; "},t.string]):null,hasBody:()=>!1}));var{WARN:M,LOG:z,DEBUG:q,VERBOSE:H,ERROR:N}=w.setup(w.DEBUG);function K(t){let e;return()=>e||(e=t())}async function Q(t){let e=t.filter(r=>!!r).map(r=>typeof r=="function"?r():r);if(!e.length)throw N("[racePromises] no promise passed",t);return new Promise(async(r,s)=>{let n=!1,l=await Promise.allSettled(e.map(async i=>{let a=await i;n=!0,r(a)}));n||s(new AggregateError(l.map(i=>i.reason)))})}async function Y(t){let e=[];for await(let r of t)e.push(r);return e}async function*Z(t){let e=t.stream().getReader();try{for(;;){let{done:r,value:s}=await e.read();if(r)break;yield s}}finally{e.releaseLock()}}function J(t,e,r,s=[]){let n=e(t);if(!n)return t;let l=r(n);if(s.includes(l))throw N("[recurseWithLoopProtection] loop detected",{current:t,next:n,trace:s});return J(n,e,r,[...s,l])}export{K as a,Q as b,Y as c,Z as d,J as e};
|
|
3
|
+
//# sourceMappingURL=chunk-PA6WBVCJ.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/browser-or-node@2.1.1/node_modules/browser-or-node/lib/index.js","../../../../node_modules/.pnpm/fast-json-stable-stringify@2.1.0/node_modules/fast-json-stable-stringify/index.js","../../../../node_modules/.pnpm/besonders-logger@1.0.2/node_modules/besonders-logger/src/lib/logger.ts","../src/helpers.ts"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n\nvar isNode = typeof process !== \"undefined\" && process.versions != null && process.versions.node != null;\n\nvar isWebWorker = (typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) === \"object\" && self.constructor && self.constructor.name === \"DedicatedWorkerGlobalScope\";\n\n/**\n * @see https://github.com/jsdom/jsdom/releases/tag/12.0.0\n * @see https://github.com/jsdom/jsdom/issues/1537\n */\nvar isJsDom = typeof window !== \"undefined\" && window.name === \"nodejs\" || typeof navigator !== \"undefined\" && (navigator.userAgent.includes(\"Node.js\") || navigator.userAgent.includes(\"jsdom\"));\n\nvar isDeno = typeof Deno !== \"undefined\" && typeof Deno.version !== \"undefined\" && typeof Deno.version.deno !== \"undefined\";\n\nexports.isBrowser = isBrowser;\nexports.isWebWorker = isWebWorker;\nexports.isNode = isNode;\nexports.isJsDom = isJsDom;\nexports.isDeno = isDeno;","'use strict';\n\nmodule.exports = function (data, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (node) {\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n if (node === undefined) return;\n if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';\n if (typeof node !== 'object') return JSON.stringify(node);\n\n var i, out;\n if (Array.isArray(node)) {\n out = '[';\n for (i = 0; i < node.length; i++) {\n if (i) out += ',';\n out += stringify(node[i]) || 'null';\n }\n return out + ']';\n }\n\n if (node === null) return 'null';\n\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = '';\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node[key]);\n\n if (!value) continue;\n if (out) out += ',';\n out += JSON.stringify(key) + ':' + value;\n }\n seen.splice(seenIndex, 1);\n return '{' + out + '}';\n })(data);\n};\n","import { isBrowser, isNode } from 'browser-or-node'\nimport stringify from 'fast-json-stable-stringify'\n\n////////////\n// CONFIG //\n////////////\n\n//(i) disabled by default bc. the detection logic has disappeared after the refactor.\n//TODO: Find it and check if it works\nlet TIME_PREFIX_ENABLED = false\nlet PERFORMANCE_PREFIX_ENABLED = false\nif (isNode) {\n // console.debug('isNode checking', { process })\n if (process?.env?.LOGGER_TIME_PREFIX) TIME_PREFIX_ENABLED = process?.env?.LOGGER_TIME_PREFIX === 'true'\n if (process?.env?.LOGGER_PERF_PREFIX) PERFORMANCE_PREFIX_ENABLED = process?.env?.LOGGER_PERF_PREFIX === 'true'\n}\nexport let LOGGER_DEFAULT_CONFIG = {\n prefix: undefined as string | undefined,\n time: TIME_PREFIX_ENABLED,\n delta: PERFORMANCE_PREFIX_ENABLED,\n dimDebugOnServer: true,\n printOriginOnServer: true,\n serverInspectOptions: {},\n customFormattersOnServer: true,\n // Depth of stacktrace to show on server\n // - integer saying how many lines\n // - false to disable, true for all\n printStackLinesOnServer: false as boolean | number,\n dim: true,\n}\n\nexport type Config = Partial<typeof LOGGER_DEFAULT_CONFIG>\nexport type ConsoleFx = (...data: any[]) => void\nexport const StringFormatters = [\n // Format to string (Client console - currently not on server)\n // {\n // match: obj => obj instanceof Model,\n // format: m => {\n // const { displayName } = m\n // return `${m.constructor.name}#${m.ID}${displayName ? `{${displayName}}` : ''}`\n // },\n // },\n] as unknown as {\n match: (obj: any) => boolean\n format: (m: any) => string\n}[]\n\n// let applyCustomFormatters;\n// applyCustomFormatters = (value, config) => {\n// for (const formatter of StringFormatters) {\n// if (formatter.match(value)) return formatter.format(value);\n// }\n// if (!_.isString(value)) {\n// return util.inspect(value, config.inspectOptionsOnServer);\n// }\n// return value;\n// };\n\n/// ////////////////\n// RUNTIME STUFF //\n/// ////////////////\n\nexport class LoggerTime {\n sinceFirst = 0\n sinceLast = 0\n time = false\n delta = false\n constructor(sinceFirst: number, sinceLast: number, time: boolean, delta: boolean) {\n Object.assign(this, { sinceFirst, sinceLast, time, delta })\n }\n\n toString() {\n const sinceFirstNum = (this.sinceFirst * 0.001)\n const sinceFirst = sinceFirstNum.toFixed(sinceFirstNum < 5 ? 2 : 1) /* .padStart(3, ' ') */\n const sinceLast\n = this.sinceLast < 1000 // when >= 1s, format as seconds\n ? `${this.sinceLast.toFixed(0)}`.padStart(5, ' ')\n : `${`${(this.sinceLast * 0.001).toFixed(this.sinceLast < 10000 ? 1 : 0)}`.padStart(4, ' ')}s`\n return `[${[this.time ? sinceFirst : null, this.delta ? sinceLast : null]\n .filter(t => t != null)\n .join(',')}]`\n }\n}\n\nexport class Style {\n constructor(style: string, string: string) {\n Object.assign(this, { style, string })\n }\n}\nlet formattersEnabled = false // for tracking if chrome formatters are enabled (don't change manually)\n\nexport class Logger {\n static ERROR = 2 as const\n static WARN = 4 as const\n static INFO = 6 as const // alias for LOG\n static LOG = 6 as const\n static DEBUG = 8 as const\n static VERBOSE = 10 as const\n\n static firstLog = 0\n static lastLog = 0\n\n /**\n * This is a clever way to log without the extra check on each log line.\n * Use it like this:\n * ```\n * const { WARN, LOG, DEBUG, VERBOSE } = Logger.setup(Logger.INFO); // eslint-disable-line no-unused-vars\n * LOG('message', data);\n * DEBUG(this.collectionName, '...')\n * if (!VERBOSE.isDisabled) {\n * const verboseStuff = generateVerboseStuff(); // computationally intensive\n * VERBOSE('Here it is:', verboseStuff)\n * }\n * ```\n *\n * @ param {number} level See {@link LVs}\n * @ param {object} config see LOGGER_DEFAULT_CONFIG\n * @ typedef {Function & {isDisabled: boolean, isEnabled: boolean, ...}} LogFunc\n * @ returns {{LOG: LogFunc, VERBOSE: LogFunc, DEBUG: LogFunc, WARN: LogFunc, ERROR: LogFunc}}\n */\n static setup(level: 2 | 4 | 6 | 8 | 10 = Logger.INFO, config: Config = {}) {\n config = Object.assign({}, LOGGER_DEFAULT_CONFIG, config) // defaults(config, LOGGER_DEFAULT_CONFIG) // fyi this is like the reverse of Object.assign\n if (level > 10) console.debug('setup logger', { config }) // manual overide to level:11 to show this trace\n\n const debugLogForStub = this.wrapLog(console.debug, { ...config, dim: config.dimDebugOnServer })\n const stub = (...args: any[]) => {\n // @ts-expect-error hack to enable DEBUG logging EVERYWHERE\n if (typeof window !== 'undefined' && window?.FORCE_DISABLE_LOGLEVEL)\n debugLogForStub(...args)\n } // For disabled log-levels, we just return a stub function\n stub.isDisabled = true // this makes it possible to check, e.g. `DEBUG.isDisabled`\n stub.isEnabled = false // depending on syntactic preference\n const groupCollapsed = this.wrapLog(console.groupCollapsed, config)\n\n const addExtraFxs = (enabled: boolean, func: (...T: any) => void) =>/* : ((...T) => void & {isDisabled: boolean}) */ {\n // warning - weird TS hacks approaching:\n function group<T extends Func>(\n ...args: [...any[], T]\n ): ReturnType<T> extends Promise<any> ? Promise<ReturnType<T>> : ReturnType<T> {\n const functionToWrap = args[args.length - 1] as T\n\n if (functionToWrap as Func === stub)\n return functionToWrap() as ReturnType<T>\n\n groupCollapsed(...args.slice(0, -1)) // except last\n\n const asyncWrapper = async () => {\n try {\n const result = functionToWrap()\n return result instanceof Promise ? await result : result\n } finally {\n console.groupEnd()\n }\n }\n\n return asyncWrapper() as ReturnType<T> // Cast to bypass the Promise type inference\n }\n\n const realFunc = Object.assign(\n func.bind({}), // clone function - https://stackoverflow.com/a/6772648\n {\n isEnabled: enabled,\n isDisabled: !enabled,\n group,\n force: func,\n },\n )\n if (enabled) {\n return realFunc\n } else {\n return Object.assign(\n stub.bind({}), // clone stub function - https://stackoverflow.com/a/6772648\n {\n isEnabled: enabled,\n isDisabled: !enabled,\n group,\n force: realFunc,\n },\n )\n }\n }\n\n const ERRFX = addExtraFxs(level >= Logger.ERROR, this.wrapLog(console.error, config))\n const ERROR = (...params: any[]) => {\n ERRFX(...params)\n // return so we can log & throw in one go\n return new Error(params.map(param => {\n return typeof param === 'string' ? param : stringify(param) // stringify is fast & safe with circular references\n }).join(' '))\n }\n\n // console.debug(\"Logger init:\", config)\n return {\n ERROR,\n WARN: addExtraFxs(level >= Logger.WARN, this.wrapLog(console.warn, config)),\n LOG: addExtraFxs(level >= Logger.INFO, this.wrapLog(console.log, config)),\n DEBUG: addExtraFxs(level >= Logger.DEBUG, this.wrapLog(console.log, { ...config, dim: config.dimDebugOnServer })), // not using console.debug as that requires dev tools verbose to be enabled\n VERBOSE: addExtraFxs(level >= Logger.VERBOSE, this.wrapLog(console.debug, { ...config, dim: config.dimDebugOnServer })),\n }\n }\n\n static wrapLog(logFunc: ConsoleFx, config: Config) {\n if (!isNode) {\n // ℹ In browser we can only do some of the fancy things, because we cannot call console.log ourselves,\n // as that would pollute the stacktrace\n\n // ℹ Would be nice to get formtted links in devtools, but <a> tags are not allowed:\n // const stack = new Error().stack;\n // const origin = Logger.getOriginFromStack(stack);\n // const originFilename = origin.split('\\\\').pop().split('/').pop(); // eslint-disable-line\n // if (origin) fixedArgs.push({ link: originFilename, href: `http://localhost:63342/api/file/${origin}` });\n\n // on the client, we need to return the original log function, as otherwise the origin of the log is set to here\n // But luckily we can bind fixed parameters on the function:\n const fixedArgs = []\n // if the custom formatters are enabled, and we want performance logging - we add an instance of P as a static prefix\n if (config.time || config.delta) {\n const isChrome = isBrowser && navigator.userAgent.includes('Chrome')\n\n const p = isChrome\n ? ['', Logger.timeStr(!!config.time, !!config.delta)] // this is a placeholder that gets replaced by the custom formatter\n : [] // [{ get perfNiceTry () { return Logger.timeStr(,,true) } }] // this (of course) shows the time when you click the getter\n fixedArgs.push(...p) // if we start with a non-string, all strings are rendered with quotes :/\n }\n if (config.prefix) {\n if (formattersEnabled)\n fixedArgs.push(new Style('dim', config.prefix))\n else fixedArgs.push(config.prefix)\n }\n // console.log('logger-log', { config, fixedArgs })\n return logFunc.bind(console, ...fixedArgs)\n } else {\n // ℹ in nodejs we print the stack trace origin ourselves, so we can do a lot more things\n // TODO: re-import removed code - https://gitlab.com/onezoomin/ztax/ztax/-/commit/f6f9bde617cd9ae93d1bc4bc49a4b5275e4cbff2#b1d1e091ca27ae560becf7ae1b27a4d53d39c061\n return logFunc.bind(console)\n }\n }\n\n // static log(msg, logPerformance = true) {\n // const p = this.perf();\n // return logPerformance ? `${p} ${msg}` : msg;\n // }\n\n static timeStr(time: boolean, delta: boolean, returnAsString = 0): LoggerTime | string | undefined {\n if (!performance.now)\n return undefined // TODO: server? p = { now: require('performance-now') };\n const now = performance.now()\n if (!Logger.firstLog) {\n Logger.firstLog = now\n Logger.lastLog = now\n }\n const p = new LoggerTime(now - Logger.firstLog, now - Logger.lastLog, time, delta)\n Logger.lastLog = now\n return returnAsString ? p.toString() : p\n }\n\n // (for nodejs) ~ https://stackoverflow.com/a/47296370/1633985\n static getOriginFromStack(stack: any): string | undefined {\n let skippedFirst = false // the first one is Logger.js\n for (const line of stack.split('\\n')) {\n const matches = line.match(/^\\s+at\\s+(.*)/)\n if (matches) {\n if (skippedFirst) {\n // first line - current function\n // second line - caller (what we are looking for)\n return (\n matches[1]\n .trim() // Removes spaces\n // .replace(/^module /, '') // Removes 'module ' at beginning\n // .replace(/^at /, '') // Removes 'at ' at beginning\n // .replace(/^ \\(/, '') // Removes parentheseses around file\n // .replace(/\\)$/, '') // -||-\n .replace(__dirname, '') // Removes script folder path (if exists)\n )\n }\n skippedFirst = true\n }\n }\n }\n}\n\nif (isBrowser) { // isBrowser is not true for web workers\n // CLIENT or Worker //\n\n // @ts-expect-error window hack\n window.devtoolsFormatters = window.devtoolsFormatters ?? []\n // noinspection JSUnusedGlobalSymbols\n // @ts-expect-error window hack\n window.devtoolsFormatters.push(\n {\n // Custom formatters\n header: (obj: any) => {\n if (StringFormatters && StringFormatters.length) {\n for (const formatter of StringFormatters) {\n if (formatter.match(obj))\n return ['span', {}, formatter.format(obj)]\n }\n }\n return null\n },\n hasBody: () => true,\n },\n {\n // Performance object //\n // This is a sneaky way to show performance info withouth any extra calls when logging:\n // LOG(`...`)\n // it would work without this if we would have some way to intercept the call:\n // L.INFO('...') - a getter on L that adds the current time as prefix\n // LOG('...')() - returns the log function with all argumends bound\n // But instead we are adding a custom formatter that replaced the placeholder object of class P with the performance info\n header: (obj: any) => {\n if (!(obj instanceof LoggerTime))\n return null\n if (!formattersEnabled)\n formattersEnabled = true\n const p = Logger.timeStr(obj.time, obj.delta)\n return [\n 'span',\n { style: 'font-weight: light; color: grey' },\n p?.toString(),\n // ['a', { href: 'vscodium://file/home/manu/dev/tamera/bookr/imports/lib/utils/Logger.js' }, 'WOW'],\n ]\n },\n hasBody: () => false,\n },\n {\n // Style object\n header: (obj: { string: any }) => {\n if (!(obj instanceof Style))\n return null\n if (!formattersEnabled)\n formattersEnabled = true\n return ['span', { style: 'font-weight: light; color: grey; '/* font-style: italic; */ }, obj.string]\n },\n hasBody: () => false,\n },\n )\n}\nelse if (isNode) {\n // SERVER //\n // node stuff removed as it breaks/bloats webworker build\n}\n\nexport function logriniTest(): string {\n return 'logrini'\n}\n\ntype Func<T = any> = () => T\n","import { Logger } from 'besonders-logger'\n\nconst { WARN, LOG, DEBUG, VERBOSE, ERROR } = Logger.setup(Logger.DEBUG) // eslint-disable-line unused-imports/no-unused-vars\n\nexport function lazyVal<R>(func: () => R): () => R {\n\tlet val: R\n\treturn () => {\n\t\tif (val) return val\n\t\treturn val = func()\n\t}\n}\n\n/** Promise.any but also allows to pass functions to call, or falsy values to skip */\nexport async function racePromises<R>(promises: Array<Promise<R> | (() => Promise<R>) | null | undefined | false>): Promise<R> {\n\tconst filtered = promises\n\t\t.filter(f => !!f)\n\t\t.map(maybeFunc => typeof maybeFunc === 'function' ? maybeFunc() : maybeFunc) as Array<Promise<R>>\n\tif (!filtered.length) throw ERROR(`[racePromises] no promise passed`, promises)\n\n\t// return await Promise.any(filtered) - swallows error messages\n\treturn new Promise(async (resolve, reject) => {\n\t\tlet resolved = false\n\t\tconst results = await Promise.allSettled(filtered.map(async (promise) => {\n\t\t\tconst result = await promise\n\t\t\t// if (predicate(result)) return result\n\t\t\tresolved = true\n\t\t\tresolve(result)\n\t\t}))\n\n\t\tif (!resolved) {\n\t\t\treject(\n\t\t\t\tnew AggregateError(\n\t\t\t\t\tresults.map(r => (r as PromiseRejectedResult).reason /* anyways all are rejected */),\n\t\t\t\t\t// `[racePromises] all errored:`,\n\t\t\t\t),\n\t\t\t)\n\t\t}\n\t})\n}\n\nexport async function asyncIterableToArray<R>(iterable: AsyncIterable<R>): Promise<R[]> {\n\tconst result: R[] = []\n\tfor await (const i of iterable) result.push(i)\n\treturn result\n}\nexport async function* blobToAsyncIterable(blob: Blob) {\n\tconst reader = blob.stream().getReader()\n\ttry {\n\t\twhile (true) {\n\t\t\tconst { done, value } = await reader.read()\n\t\t\tif (done) break\n\t\t\tyield value\n\t\t}\n\t} finally {\n\t\treader.releaseLock()\n\t}\n}\nexport function recurseWithLoopProtection<T, ID>(\n\tcurrent: T,\n\tgetNext: (c: T) => T,\n\tgetID: (c: T) => ID,\n\ttrace: ID[] = [],\n) {\n\tconst next = getNext(current)\n\tif (!next) return current\n\tconst id = getID(next)\n\tif (trace.includes(id)) {\n\t\tthrow ERROR('[recurseWithLoopProtection] loop detected', { current, next, trace })\n\t}\n\treturn recurseWithLoopProtection(next, get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,KAAAI,EAAM,MAAAD,CAAM,CAAC,EAElF,OAAOJ,EAA0BK,EAAMH,EAASC,EAAO,CAAC,GAAGC,EAAOE,CAAE,CAAC,CACtE","names":["require_lib","__commonJSMin","exports","_typeof","obj","isBrowser","isNode","isWebWorker","isJsDom","isDeno","require_fast_json_stable_stringify","__commonJSMin","exports","module","data","opts","cycles","cmp","f","node","b","aobj","bobj","seen","stringify","i","out","seenIndex","keys","key","value","import_browser_or_node","import_fast_json_stable_stringify","TIME_PREFIX_ENABLED","PERFORMANCE_PREFIX_ENABLED","isNode","LOGGER_DEFAULT_CONFIG","StringFormatters","LoggerTime","sinceFirst","sinceLast","time","delta","sinceFirstNum","t","Style","style","string","formattersEnabled","Logger","_Logger","level","config","debugLogForStub","stub","args","groupCollapsed","addExtraFxs","enabled","func","group","functionToWrap","result","realFunc","ERRFX","params","param","stringify","logFunc","fixedArgs","p","isBrowser","returnAsString","now","stack","skippedFirst","line","matches","obj","formatter","WARN","LOG","DEBUG","VERBOSE","ERROR","g","lazyVal","func","val","racePromises","promises","filtered","f","maybeFunc","resolve","reject","resolved","results","promise","result","r","asyncIterableToArray","iterable","i","blobToAsyncIterable","blob","reader","done","value","recurseWithLoopProtection","current","getNext","getID","trace","next","id"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var g=Symbol("Comlink.proxy"),d=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),p=Symbol("Comlink.finalizer"),E=Symbol("Comlink.thrown");function l(e){return e.constructor.name==="MessagePort"}function u(e){l(e)&&e.close()}function f(e){return m(e,new Map,{type:"RELEASE"}).then(()=>{u(e)})}var n=new WeakMap,w="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{let r=(n.get(e)||0)-1;n.set(e,r),r===0&&f(e)});function m(e,r,s,i){return new Promise(c=>{let t=y();r.set(t,c),e.start&&e.start(),e.postMessage(Object.assign({id:t},s),i)})}function y(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var o=Symbol("getEndpoint");function P(e){e[o].terminate(),e[a]()}export{P as a};
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
comlink/dist/esm/comlink.mjs:
|
|
5
|
+
(**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2019 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
9
|
+
*)
|
|
10
|
+
*/
|
|
11
|
+
//# sourceMappingURL=chunk-Z5VZCNIS.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/comlink@4.4.2/node_modules/comlink/src/comlink.ts","../../../../node_modules/.pnpm/vite-plugin-comlink@5.3.0_comlink@4.4.2_vite@7.1.7/node_modules/vite-plugin-comlink/dist/symbol.js","../src/worker.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n Endpoint,\n EventSource,\n Message,\n MessageType,\n PostMessageWithOrigin,\n WireValue,\n WireValueType,\n} from \"./protocol\";\nexport type { Endpoint };\n\nexport const proxyMarker = Symbol(\"Comlink.proxy\");\nexport const createEndpoint = Symbol(\"Comlink.endpoint\");\nexport const releaseProxy = Symbol(\"Comlink.releaseProxy\");\nexport const finalizer = Symbol(\"Comlink.finalizer\");\n\nconst throwMarker = Symbol(\"Comlink.thrown\");\n\n/**\n * Interface of values that were marked to be proxied with `comlink.proxy()`.\n * Can also be implemented by classes.\n */\nexport interface ProxyMarked {\n [proxyMarker]: true;\n}\n\n/**\n * Takes a type and wraps it in a Promise, if it not already is one.\n * This is to avoid `Promise<Promise<T>>`.\n *\n * This is the inverse of `Unpromisify<T>`.\n */\ntype Promisify<T> = T extends Promise<unknown> ? T : Promise<T>;\n/**\n * Takes a type that may be Promise and unwraps the Promise type.\n * If `P` is not a Promise, it returns `P`.\n *\n * This is the inverse of `Promisify<T>`.\n */\ntype Unpromisify<P> = P extends Promise<infer T> ? T : P;\n\n/**\n * Takes the raw type of a remote property and returns the type that is visible to the local thread on the proxy.\n *\n * Note: This needs to be its own type alias, otherwise it will not distribute over unions.\n * See https://www.typescriptlang.org/docs/handbook/advanced-types.html#distributive-conditional-types\n */\ntype RemoteProperty<T> =\n // If the value is a method, comlink will proxy it automatically.\n // Objects are only proxied if they are marked to be proxied.\n // Otherwise, the property is converted to a Promise that resolves the cloned value.\n T extends Function | ProxyMarked ? Remote<T> : Promisify<T>;\n\n/**\n * Takes the raw type of a property as a remote thread would see it through a proxy (e.g. when passed in as a function\n * argument) and returns the type that the local thread has to supply.\n *\n * This is the inverse of `RemoteProperty<T>`.\n *\n * Note: This needs to be its own type alias, otherwise it will not distribute over unions. See\n * https://www.typescriptlang.org/docs/handbook/advanced-types.html#distributive-conditional-types\n */\ntype LocalProperty<T> = T extends Function | ProxyMarked\n ? Local<T>\n : Unpromisify<T>;\n\n/**\n * Proxies `T` if it is a `ProxyMarked`, clones it otherwise (as handled by structured cloning and transfer handlers).\n */\nexport type ProxyOrClone<T> = T extends ProxyMarked ? Remote<T> : T;\n/**\n * Inverse of `ProxyOrClone<T>`.\n */\nexport type UnproxyOrClone<T> = T extends RemoteObject<ProxyMarked>\n ? Local<T>\n : T;\n\n/**\n * Takes the raw type of a remote object in the other thread and returns the type as it is visible to the local thread\n * when proxied with `Comlink.proxy()`.\n *\n * This does not handle call signatures, which is handled by the more general `Remote<T>` type.\n *\n * @template T The raw type of a remote object as seen in the other thread.\n */\nexport type RemoteObject<T> = { [P in keyof T]: RemoteProperty<T[P]> };\n/**\n * Takes the type of an object as a remote thread would see it through a proxy (e.g. when passed in as a function\n * argument) and returns the type that the local thread has to supply.\n *\n * This does not handle call signatures, which is handled by the more general `Local<T>` type.\n *\n * This is the inverse of `RemoteObject<T>`.\n *\n * @template T The type of a proxied object.\n */\nexport type LocalObject<T> = { [P in keyof T]: LocalProperty<T[P]> };\n\n/**\n * Additional special comlink methods available on each proxy returned by `Comlink.wrap()`.\n */\nexport interface ProxyMethods {\n [createEndpoint]: () => Promise<MessagePort>;\n [releaseProxy]: () => void;\n}\n\n/**\n * Takes the raw type of a remote object, function or class in the other thread and returns the type as it is visible to\n * the local thread from the proxy return value of `Comlink.wrap()` or `Comlink.proxy()`.\n */\nexport type Remote<T> =\n // Handle properties\n RemoteObject<T> &\n // Handle call signature (if present)\n (T extends (...args: infer TArguments) => infer TReturn\n ? (\n ...args: { [I in keyof TArguments]: UnproxyOrClone<TArguments[I]> }\n ) => Promisify<ProxyOrClone<Unpromisify<TReturn>>>\n : unknown) &\n // Handle construct signature (if present)\n // The return of construct signatures is always proxied (whether marked or not)\n (T extends { new (...args: infer TArguments): infer TInstance }\n ? {\n new (\n ...args: {\n [I in keyof TArguments]: UnproxyOrClone<TArguments[I]>;\n }\n ): Promisify<Remote<TInstance>>;\n }\n : unknown) &\n // Include additional special comlink methods available on the proxy.\n ProxyMethods;\n\n/**\n * Expresses that a type can be either a sync or async.\n */\ntype MaybePromise<T> = Promise<T> | T;\n\n/**\n * Takes the raw type of a remote object, function or class as a remote thread would see it through a proxy (e.g. when\n * passed in as a function argument) and returns the type the local thread has to supply.\n *\n * This is the inverse of `Remote<T>`. It takes a `Remote<T>` and returns its original input `T`.\n */\nexport type Local<T> =\n // Omit the special proxy methods (they don't need to be supplied, comlink adds them)\n Omit<LocalObject<T>, keyof ProxyMethods> &\n // Handle call signatures (if present)\n (T extends (...args: infer TArguments) => infer TReturn\n ? (\n ...args: { [I in keyof TArguments]: ProxyOrClone<TArguments[I]> }\n ) => // The raw function could either be sync or async, but is always proxied automatically\n MaybePromise<UnproxyOrClone<Unpromisify<TReturn>>>\n : unknown) &\n // Handle construct signature (if present)\n // The return of construct signatures is always proxied (whether marked or not)\n (T extends { new (...args: infer TArguments): infer TInstance }\n ? {\n new (\n ...args: {\n [I in keyof TArguments]: ProxyOrClone<TArguments[I]>;\n }\n ): // The raw constructor could either be sync or async, but is always proxied automatically\n MaybePromise<Local<Unpromisify<TInstance>>>;\n }\n : unknown);\n\nconst isObject = (val: unknown): val is object =>\n (typeof val === \"object\" && val !== null) || typeof val === \"function\";\n\n/**\n * Customizes the serialization of certain values as determined by `canHandle()`.\n *\n * @template T The input type being handled by this transfer handler.\n * @template S The serialized type sent over the wire.\n */\nexport interface TransferHandler<T, S> {\n /**\n * Gets called for every value to determine whether this transfer handler\n * should serialize the value, which includes checking that it is of the right\n * type (but can perform checks beyond that as well).\n */\n canHandle(value: unknown): value is T;\n\n /**\n * Gets called with the value if `canHandle()` returned `true` to produce a\n * value that can be sent in a message, consisting of structured-cloneable\n * values and/or transferrable objects.\n */\n serialize(value: T): [S, Transferable[]];\n\n /**\n * Gets called to deserialize an incoming value that was serialized in the\n * other thread with this transfer handler (known through the name it was\n * registered under).\n */\n deserialize(value: S): T;\n}\n\n/**\n * Internal transfer handle to handle objects marked to proxy.\n */\nconst proxyTransferHandler: TransferHandler<object, MessagePort> = {\n canHandle: (val): val is ProxyMarked =>\n isObject(val) && (val as ProxyMarked)[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n};\n\ninterface ThrownValue {\n [throwMarker]: unknown; // just needs to be present\n value: unknown;\n}\ntype SerializedThrownValue =\n | { isError: true; value: Error }\n | { isError: false; value: unknown };\ntype PendingListenersMap = Map<\n string,\n (value: WireValue | PromiseLike<WireValue>) => void\n>;\n\n/**\n * Internal transfer handler to handle thrown exceptions.\n */\nconst throwTransferHandler: TransferHandler<\n ThrownValue,\n SerializedThrownValue\n> = {\n canHandle: (value): value is ThrownValue =>\n isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized: SerializedThrownValue;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n } else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(\n new Error(serialized.value.message),\n serialized.value\n );\n }\n throw serialized.value;\n },\n};\n\n/**\n * Allows customizing the serialization of certain values.\n */\nexport const transferHandlers = new Map<\n string,\n TransferHandler<unknown, unknown>\n>([\n [\"proxy\", proxyTransferHandler],\n [\"throw\", throwTransferHandler],\n]);\n\nfunction isAllowedOrigin(\n allowedOrigins: (string | RegExp)[],\n origin: string\n): boolean {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === \"*\") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n}\n\nexport function expose(\n obj: any,\n ep: Endpoint = globalThis as any,\n allowedOrigins: (string | RegExp)[] = [\"*\"]\n) {\n ep.addEventListener(\"message\", function callback(ev: MessageEvent) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);\n return;\n }\n const { id, type, path } = {\n path: [] as string[],\n ...(ev.data as Message),\n };\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case MessageType.GET:\n {\n returnValue = rawValue;\n }\n break;\n case MessageType.SET:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case MessageType.APPLY:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case MessageType.CONSTRUCT:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case MessageType.ENDPOINT:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case MessageType.RELEASE:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n } catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage({ ...wireValue, id }, transferables);\n if (type === MessageType.RELEASE) {\n // detach and deactive after sending release response above.\n ep.removeEventListener(\"message\", callback as any);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === \"function\") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError(\"Unserializable return value\"),\n [throwMarker]: 0,\n });\n ep.postMessage({ ...wireValue, id }, transferables);\n });\n } as any);\n if (ep.start) {\n ep.start();\n }\n}\n\nfunction isMessagePort(endpoint: Endpoint): endpoint is MessagePort {\n return endpoint.constructor.name === \"MessagePort\";\n}\n\nfunction closeEndPoint(endpoint: Endpoint) {\n if (isMessagePort(endpoint)) endpoint.close();\n}\n\nexport function wrap<T>(ep: Endpoint, target?: any): Remote<T> {\n const pendingListeners : PendingListenersMap = new Map();\n\n ep.addEventListener(\"message\", function handleMessage(ev: Event) {\n const { data } = ev as MessageEvent;\n if (!data || !data.id) {\n return;\n }\n const resolver = pendingListeners.get(data.id);\n if (!resolver) {\n return;\n }\n\n try {\n resolver(data);\n } finally {\n pendingListeners.delete(data.id);\n }\n });\n\n return createProxy<T>(ep, pendingListeners, [], target) as any;\n}\n\nfunction throwIfProxyReleased(isReleased: boolean) {\n if (isReleased) {\n throw new Error(\"Proxy has been released and is not useable\");\n }\n}\n\nfunction releaseEndpoint(ep: Endpoint) {\n return requestResponseMessage(ep, new Map(), {\n type: MessageType.RELEASE,\n }).then(() => {\n closeEndPoint(ep);\n });\n}\n\ninterface FinalizationRegistry<T> {\n new (cb: (heldValue: T) => void): FinalizationRegistry<T>;\n register(\n weakItem: object,\n heldValue: T,\n unregisterToken?: object | undefined\n ): void;\n unregister(unregisterToken: object): void;\n}\ndeclare var FinalizationRegistry: FinalizationRegistry<Endpoint>;\n\nconst proxyCounter = new WeakMap<Endpoint, number>();\nconst proxyFinalizers =\n \"FinalizationRegistry\" in globalThis &&\n new FinalizationRegistry((ep: Endpoint) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\n\nfunction registerProxy(proxy: object, ep: Endpoint) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n}\n\nfunction unregisterProxy(proxy: object) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n}\n\nfunction createProxy<T>(\n ep: Endpoint,\n pendingListeners: PendingListenersMap,\n path: (string | number | symbol)[] = [],\n target: object = function () {}\n): Remote<T> {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n pendingListeners.clear();\n isProxyReleased = true;\n };\n }\n if (prop === \"then\") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, pendingListeners, {\n type: MessageType.GET,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, pendingListeners, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(\n ep,\n pendingListeners,\n {\n type: MessageType.SET,\n path: [...path, prop].map((p) => p.toString()),\n value,\n },\n transferables\n ).then(fromWireValue) as any;\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if ((last as any) === createEndpoint) {\n return requestResponseMessage(ep, pendingListeners, {\n type: MessageType.ENDPOINT,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === \"bind\") {\n return createProxy(ep, pendingListeners, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(\n ep,\n pendingListeners,\n {\n type: MessageType.APPLY,\n path: path.map((p) => p.toString()),\n argumentList,\n },\n transferables\n ).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(\n ep,\n pendingListeners,\n {\n type: MessageType.CONSTRUCT,\n path: path.map((p) => p.toString()),\n argumentList,\n },\n transferables\n ).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy as any;\n}\n\nfunction myFlat<T>(arr: (T | T[])[]): T[] {\n return Array.prototype.concat.apply([], arr);\n}\n\nfunction processArguments(argumentList: any[]): [WireValue[], Transferable[]] {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n}\n\nconst transferCache = new WeakMap<any, Transferable[]>();\nexport function transfer<T>(obj: T, transfers: Transferable[]): T {\n transferCache.set(obj, transfers);\n return obj;\n}\n\nexport function proxy<T extends {}>(obj: T): T & ProxyMarked {\n return Object.assign(obj, { [proxyMarker]: true }) as any;\n}\n\nexport function windowEndpoint(\n w: PostMessageWithOrigin,\n context: EventSource = globalThis,\n targetOrigin = \"*\"\n): Endpoint {\n return {\n postMessage: (msg: any, transferables: Transferable[]) =>\n w.postMessage(msg, targetOrigin, transferables),\n addEventListener: context.addEventListener.bind(context),\n removeEventListener: context.removeEventListener.bind(context),\n };\n}\n\nfunction toWireValue(value: any): [WireValue, Transferable[]] {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: WireValueType.HANDLER,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: WireValueType.RAW,\n value,\n },\n transferCache.get(value) || [],\n ];\n}\n\nfunction fromWireValue(value: WireValue): any {\n switch (value.type) {\n case WireValueType.HANDLER:\n return transferHandlers.get(value.name)!.deserialize(value.value);\n case WireValueType.RAW:\n return value.value;\n }\n}\n\nfunction requestResponseMessage(\n ep: Endpoint,\n pendingListeners: PendingListenersMap,\n msg: Message,\n transfers?: Transferable[]\n): Promise<WireValue> {\n return new Promise((resolve) => {\n const id = generateUUID();\n pendingListeners.set(id, resolve);\n if (ep.start) {\n ep.start();\n }\n ep.postMessage({ id, ...msg }, transfers);\n});\n}\n\nfunction generateUUID(): string {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join(\"-\");\n}\n","// src/symbol.ts\nimport { wrap as comlink_wrap } from \"comlink\";\nimport {\n proxy,\n proxyMarker,\n finalizer,\n releaseProxy,\n createEndpoint\n} from \"comlink\";\nvar endpointSymbol = Symbol(\"getEndpoint\");\nvar wrap = (ep) => {\n const wrapped = comlink_wrap(ep);\n return new Proxy(wrapped, {\n get(target, prop, receiver) {\n if (prop === endpointSymbol) return ep;\n return Reflect.get(target, prop, receiver);\n }\n });\n};\nexport {\n createEndpoint,\n endpointSymbol,\n finalizer,\n proxy,\n proxyMarker,\n releaseProxy,\n wrap\n};\n","import { releaseProxy } from 'comlink'\nimport { endpointSymbol } from 'vite-plugin-comlink/symbol'\n\nexport interface ComlinkWorkerInstanceType {\n\treadonly [endpointSymbol]: Worker\n}\n\nexport function destroyWorker(worker: ComlinkWorkerInstanceType) {\n\t// https://github.com/mathe42/vite-plugin-comlink/pull/138\n\tworker[endpointSymbol].terminate()\n\n\tworker[releaseProxy]() // fly to GC land, little proxy!\n}\n"],"mappings":"IAiBaA,EAAc,OAAO,eAAe,EACpCC,EAAiB,OAAO,kBAAkB,EAC1CC,EAAe,OAAO,sBAAsB,EAC5CC,EAAY,OAAO,mBAAmB,EAE7CC,EAAc,OAAO,gBAAgB,EA+W3C,SAASC,EAAcC,EAAkB,CACvC,OAAOA,EAAS,YAAY,OAAS,aACvC,CAEA,SAASC,EAAcD,EAAkB,CACnCD,EAAcC,CAAQ,GAAGA,EAAS,MAAK,CAC7C,CA+BA,SAASE,EAAgBC,EAAY,CACnC,OAAOC,EAAuBD,EAAI,IAAI,IAAO,CAC3C,KAAyB,SAC1B,CAAA,EAAE,KAAK,IAAK,CACXE,EAAcF,CAAE,CAClB,CAAC,CACH,CAaA,IAAMG,EAAe,IAAI,QACnBC,EACJ,yBAA0B,YAC1B,IAAI,qBAAsBJ,GAAgB,CACxC,IAAMK,GAAYF,EAAa,IAAIH,CAAE,GAAK,GAAK,EAC/CG,EAAa,IAAIH,EAAIK,CAAQ,EACzBA,IAAa,GACfN,EAAgBC,CAAE,CAEtB,CAAC,EAyKH,SAASM,EACPC,EACAC,EACAC,EACAC,EAA0B,CAE1B,OAAO,IAAI,QAASC,GAAW,CAC7B,IAAMC,EAAKC,EAAY,EACvBL,EAAiB,IAAII,EAAID,CAAO,EAC5BJ,EAAG,OACLA,EAAG,MAAK,EAEVA,EAAG,YAAc,OAAA,OAAA,CAAA,GAAAK,CAAE,EAAKH,CAAG,EAAIC,CAAS,CAC5C,CAAC,CACD,CAEA,SAASG,GAAY,CACnB,OAAO,IAAI,MAAM,CAAC,EACf,KAAK,CAAC,EACN,IAAI,IAAM,KAAK,MAAM,KAAK,OAAM,EAAK,OAAO,gBAAgB,EAAE,SAAS,EAAE,CAAC,EAC1E,KAAK,GAAG,CACb,CC3nBA,IAAIC,EAAiB,OAAO,aAAa,ECFlC,SAASC,EAAcC,EAAmC,CAEhEA,EAAOC,CAAc,EAAE,UAAU,EAEjCD,EAAOE,CAAY,EAAE,CACtB","names":["proxyMarker","createEndpoint","releaseProxy","finalizer","throwMarker","isMessagePort","endpoint","closeEndPoint","releaseEndpoint","ep","requestResponseMessage","closeEndPoint","proxyCounter","proxyFinalizers","newCount","requestResponseMessage","ep","pendingListeners","msg","transfers","resolve","id","generateUUID","endpointSymbol","destroyWorker","worker","endpointSymbol","releaseProxy"]}
|
package/dist/corejs.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import 'core-js/proposals/map-upsert-stage-2';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Map<K, V> {
|
|
4
|
+
/**
|
|
5
|
+
* Insert or update a value in the map based on the presence of the key.
|
|
6
|
+
*
|
|
7
|
+
* @param key The key to insert or update.
|
|
8
|
+
* @param operations An object with `insert` and `update` methods.
|
|
9
|
+
* `insert` method is used when the key does not exist and receives the key and the map itself.
|
|
10
|
+
* `update` method is used when the key exists and receives the existing value, the key, and the map itself.
|
|
11
|
+
* @returns The new or updated value.
|
|
12
|
+
*/
|
|
13
|
+
emplace(key: K, operations: {
|
|
14
|
+
insert?: (key: K, map: Map<K, V>) => V;
|
|
15
|
+
update?: (existingValue: V, key: K, map: Map<K, V>) => V;
|
|
16
|
+
}): V;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=corejs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"corejs.d.ts","sourceRoot":"","sources":["../src/corejs.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAA;AAE7C,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC;QACjB;;;;;;;;WAQG;QACH,OAAO,CACN,GAAG,EAAE,CAAC,EACN,UAAU,EAAE;YACX,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAA;YACtC,MAAM,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAA;SACxD,GACC,CAAC,CAAA;KACJ;CACD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b as hi}from"./chunk-MXMMU6NF.min.js";var c=a((G,Nr)=>{"use strict";var S=function(r){return r&&r.Math===Math&&r};Nr.exports=S(typeof globalThis=="object"&&globalThis)||S(typeof window=="object"&&window)||S(typeof self=="object"&&self)||S(typeof global=="object"&&global)||S(typeof G=="object"&&G)||(function(){return this})()||Function("return this")()});var y=a((Ru,_r)=>{"use strict";_r.exports=function(r){try{return!!r()}catch{return!0}}});var q=a((Cu,Br)=>{"use strict";var bi=y();Br.exports=!bi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var A=a((Du,Lr)=>{"use strict";var di=y();Lr.exports=!di(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var I=a((Nu,$r)=>{"use strict";var Oi=A(),P=Function.prototype.call;$r.exports=Oi?P.bind(P):function(){return P.apply(P,arguments)}});var Gr=a(Wr=>{"use strict";var Kr={}.propertyIsEnumerable,Vr=Object.getOwnPropertyDescriptor,mi=Vr&&!Kr.call({1:2},1);Wr.f=mi?function(e){var t=Vr(this,e);return!!t&&t.enumerable}:Kr});var U=a((Bu,Ar)=>{"use strict";Ar.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var v=a((Lu,Yr)=>{"use strict";var Ur=A(),zr=Function.prototype,z=zr.call,Si=Ur&&zr.bind.bind(z,z);Yr.exports=Ur?Si:function(r){return function(){return z.apply(r,arguments)}}});var Xr=a(($u,Hr)=>{"use strict";var kr=v(),xi=kr({}.toString),wi=kr("".slice);Hr.exports=function(r){return wi(xi(r),8,-1)}});var Zr=a((Ku,Jr)=>{"use strict";var Ei=v(),Pi=y(),Ii=Xr(),Y=Object,Ti=Ei("".split);Jr.exports=Pi(function(){return!Y("z").propertyIsEnumerable(0)})?function(r){return Ii(r)==="String"?Ti(r,""):Y(r)}:Y});var k=a((Vu,Qr)=>{"use strict";Qr.exports=function(r){return r==null}});var H=a((Wu,re)=>{"use strict";var ji=k(),Mi=TypeError;re.exports=function(r){if(ji(r))throw new Mi("Can't call method on "+r);return r}});var T=a((Gu,ee)=>{"use strict";var Fi=Zr(),Ri=H();ee.exports=function(r){return Fi(Ri(r))}});var l=a((Au,te)=>{"use strict";var X=typeof document=="object"&&document.all;te.exports=typeof X>"u"&&X!==void 0?function(r){return typeof r=="function"||r===X}:function(r){return typeof r=="function"}});var d=a((Uu,ie)=>{"use strict";var Ci=l();ie.exports=function(r){return typeof r=="object"?r!==null:Ci(r)}});var Z=a((zu,ae)=>{"use strict";var J=c(),Di=l(),Ni=function(r){return Di(r)?r:void 0};ae.exports=function(r,e){return arguments.length<2?Ni(J[r]):J[r]&&J[r][e]}});var ue=a((Yu,ne)=>{"use strict";var _i=v();ne.exports=_i({}.isPrototypeOf)});var ve=a((ku,ce)=>{"use strict";var Bi=c(),oe=Bi.navigator,se=oe&&oe.userAgent;ce.exports=se?String(se):""});var he=a((Hu,ge)=>{"use strict";var qe=c(),Q=ve(),le=qe.process,fe=qe.Deno,pe=le&&le.versions||fe&&fe.version,ye=pe&&pe.v8,f,j;ye&&(f=ye.split("."),j=f[0]>0&&f[0]<4?1:+(f[0]+f[1]));!j&&Q&&(f=Q.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=Q.match(/Chrome\/(\d+)/),f&&(j=+f[1])));ge.exports=j});var rr=a((Xu,de)=>{"use strict";var be=he(),Li=y(),$i=c(),Ki=$i.String;de.exports=!!Object.getOwnPropertySymbols&&!Li(function(){var r=Symbol("symbol detection");return!Ki(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&be&&be<41})});var er=a((Ju,Oe)=>{"use strict";var Vi=rr();Oe.exports=Vi&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var tr=a((Zu,me)=>{"use strict";var Wi=Z(),Gi=l(),Ai=ue(),Ui=er(),zi=Object;me.exports=Ui?function(r){return typeof r=="symbol"}:function(r){var e=Wi("Symbol");return Gi(e)&&Ai(e.prototype,zi(r))}});var xe=a((Qu,Se)=>{"use strict";var Yi=String;Se.exports=function(r){try{return Yi(r)}catch{return"Object"}}});var Ee=a((ro,we)=>{"use strict";var ki=l(),Hi=xe(),Xi=TypeError;we.exports=function(r){if(ki(r))return r;throw new Xi(Hi(r)+" is not a function")}});var Ie=a((eo,Pe)=>{"use strict";var Ji=Ee(),Zi=k();Pe.exports=function(r,e){var t=r[e];return Zi(t)?void 0:Ji(t)}});var je=a((to,Te)=>{"use strict";var ir=I(),ar=l(),nr=d(),Qi=TypeError;Te.exports=function(r,e){var t,i;if(e==="string"&&ar(t=r.toString)&&!nr(i=ir(t,r))||ar(t=r.valueOf)&&!nr(i=ir(t,r))||e!=="string"&&ar(t=r.toString)&&!nr(i=ir(t,r)))return i;throw new Qi("Can't convert object to primitive value")}});var Fe=a((io,Me)=>{"use strict";Me.exports=!1});var M=a((ao,Ce)=>{"use strict";var Re=c(),ra=Object.defineProperty;Ce.exports=function(r,e){try{ra(Re,r,{value:e,configurable:!0,writable:!0})}catch{Re[r]=e}return e}});var F=a((no,_e)=>{"use strict";var ea=Fe(),ta=c(),ia=M(),De="__core-js_shared__",Ne=_e.exports=ta[De]||ia(De,{});(Ne.versions||(Ne.versions=[])).push({version:"3.45.1",mode:ea?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var ur=a((uo,Le)=>{"use strict";var Be=F();Le.exports=function(r,e){return Be[r]||(Be[r]=e||{})}});var Ke=a((oo,$e)=>{"use strict";var aa=H(),na=Object;$e.exports=function(r){return na(aa(r))}});var g=a((so,Ve)=>{"use strict";var ua=v(),oa=Ke(),sa=ua({}.hasOwnProperty);Ve.exports=Object.hasOwn||function(e,t){return sa(oa(e),t)}});var or=a((co,We)=>{"use strict";var ca=v(),va=0,la=Math.random(),fa=ca(1.1.toString);We.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+fa(++va+la,36)}});var Ue=a((vo,Ae)=>{"use strict";var pa=c(),ya=ur(),Ge=g(),qa=or(),ga=rr(),ha=er(),O=pa.Symbol,sr=ya("wks"),ba=ha?O.for||O:O&&O.withoutSetter||qa;Ae.exports=function(r){return Ge(sr,r)||(sr[r]=ga&&Ge(O,r)?O[r]:ba("Symbol."+r)),sr[r]}});var He=a((lo,ke)=>{"use strict";var da=I(),ze=d(),Ye=tr(),Oa=Ie(),ma=je(),Sa=Ue(),xa=TypeError,wa=Sa("toPrimitive");ke.exports=function(r,e){if(!ze(r)||Ye(r))return r;var t=Oa(r,wa),i;if(t){if(e===void 0&&(e="default"),i=da(t,r,e),!ze(i)||Ye(i))return i;throw new xa("Can't convert object to primitive value")}return e===void 0&&(e="number"),ma(r,e)}});var cr=a((fo,Xe)=>{"use strict";var Ea=He(),Pa=tr();Xe.exports=function(r){var e=Ea(r,"string");return Pa(e)?e:e+""}});var Qe=a((po,Ze)=>{"use strict";var Ia=c(),Je=d(),vr=Ia.document,Ta=Je(vr)&&Je(vr.createElement);Ze.exports=function(r){return Ta?vr.createElement(r):{}}});var lr=a((yo,rt)=>{"use strict";var ja=q(),Ma=y(),Fa=Qe();rt.exports=!ja&&!Ma(function(){return Object.defineProperty(Fa("div"),"a",{get:function(){return 7}}).a!==7})});var fr=a(tt=>{"use strict";var Ra=q(),Ca=I(),Da=Gr(),Na=U(),_a=T(),Ba=cr(),La=g(),$a=lr(),et=Object.getOwnPropertyDescriptor;tt.f=Ra?et:function(e,t){if(e=_a(e),t=Ba(t),$a)try{return et(e,t)}catch{}if(La(e,t))return Na(!Ca(Da.f,e,t),e[t])}});var at=a((go,it)=>{"use strict";var Ka=q(),Va=y();it.exports=Ka&&Va(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var pr=a((ho,nt)=>{"use strict";var Wa=d(),Ga=String,Aa=TypeError;nt.exports=function(r){if(Wa(r))return r;throw new Aa(Ga(r)+" is not an object")}});var C=a(ot=>{"use strict";var Ua=q(),za=lr(),Ya=at(),R=pr(),ut=cr(),ka=TypeError,yr=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,qr="enumerable",gr="configurable",hr="writable";ot.f=Ua?Ya?function(e,t,i){if(R(e),t=ut(t),R(i),typeof e=="function"&&t==="prototype"&&"value"in i&&hr in i&&!i[hr]){var n=Ha(e,t);n&&n[hr]&&(e[t]=i.value,i={configurable:gr in i?i[gr]:n[gr],enumerable:qr in i?i[qr]:n[qr],writable:!1})}return yr(e,t,i)}:yr:function(e,t,i){if(R(e),t=ut(t),R(i),za)try{return yr(e,t,i)}catch{}if("get"in i||"set"in i)throw new ka("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var br=a((Oo,st)=>{"use strict";var Xa=q(),Ja=C(),Za=U();st.exports=Xa?function(r,e,t){return Ja.f(r,e,Za(1,t))}:function(r,e,t){return r[e]=t,r}});var lt=a((mo,vt)=>{"use strict";var dr=q(),Qa=g(),ct=Function.prototype,rn=dr&&Object.getOwnPropertyDescriptor,Or=Qa(ct,"name"),en=Or&&(function(){}).name==="something",tn=Or&&(!dr||dr&&rn(ct,"name").configurable);vt.exports={EXISTS:Or,PROPER:en,CONFIGURABLE:tn}});var pt=a((So,ft)=>{"use strict";var an=v(),nn=l(),mr=F(),un=an(Function.toString);nn(mr.inspectSource)||(mr.inspectSource=function(r){return un(r)});ft.exports=mr.inspectSource});var gt=a((xo,qt)=>{"use strict";var on=c(),sn=l(),yt=on.WeakMap;qt.exports=sn(yt)&&/native code/.test(String(yt))});var dt=a((wo,bt)=>{"use strict";var cn=ur(),vn=or(),ht=cn("keys");bt.exports=function(r){return ht[r]||(ht[r]=vn(r))}});var Sr=a((Eo,Ot)=>{"use strict";Ot.exports={}});var wt=a((Po,xt)=>{"use strict";var ln=gt(),St=c(),fn=d(),pn=br(),xr=g(),wr=F(),yn=dt(),qn=Sr(),mt="Object already initialized",Er=St.TypeError,gn=St.WeakMap,D,x,N,hn=function(r){return N(r)?x(r):D(r,{})},bn=function(r){return function(e){var t;if(!fn(e)||(t=x(e)).type!==r)throw new Er("Incompatible receiver, "+r+" required");return t}};ln||wr.state?(p=wr.state||(wr.state=new gn),p.get=p.get,p.has=p.has,p.set=p.set,D=function(r,e){if(p.has(r))throw new Er(mt);return e.facade=r,p.set(r,e),e},x=function(r){return p.get(r)||{}},N=function(r){return p.has(r)}):(b=yn("state"),qn[b]=!0,D=function(r,e){if(xr(r,b))throw new Er(mt);return e.facade=r,pn(r,b,e),e},x=function(r){return xr(r,b)?r[b]:{}},N=function(r){return xr(r,b)});var p,b;xt.exports={set:D,get:x,has:N,enforce:hn,getterFor:bn}});var Tt=a((Io,It)=>{"use strict";var Ir=v(),dn=y(),On=l(),_=g(),Pr=q(),mn=lt().CONFIGURABLE,Sn=pt(),Pt=wt(),xn=Pt.enforce,wn=Pt.get,Et=String,B=Object.defineProperty,En=Ir("".slice),Pn=Ir("".replace),In=Ir([].join),Tn=Pr&&!dn(function(){return B(function(){},"length",{value:8}).length!==8}),jn=String(String).split("String"),Mn=It.exports=function(r,e,t){En(Et(e),0,7)==="Symbol("&&(e="["+Pn(Et(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!_(r,"name")||mn&&r.name!==e)&&(Pr?B(r,"name",{value:e,configurable:!0}):r.name=e),Tn&&t&&_(t,"arity")&&r.length!==t.arity&&B(r,"length",{value:t.arity});try{t&&_(t,"constructor")&&t.constructor?Pr&&B(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch{}var i=xn(r);return _(i,"source")||(i.source=In(jn,typeof e=="string"?e:"")),r};Function.prototype.toString=Mn(function(){return On(this)&&wn(this).source||Sn(this)},"toString")});var Mt=a((To,jt)=>{"use strict";var Fn=l(),Rn=C(),Cn=Tt(),Dn=M();jt.exports=function(r,e,t,i){i||(i={});var n=i.enumerable,u=i.name!==void 0?i.name:e;if(Fn(t)&&Cn(t,u,i),i.global)n?r[e]=t:Dn(e,t);else{try{i.unsafe?r[e]&&(n=!0):delete r[e]}catch{}n?r[e]=t:Rn.f(r,e,{value:t,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return r}});var Rt=a((jo,Ft)=>{"use strict";var Nn=Math.ceil,_n=Math.floor;Ft.exports=Math.trunc||function(e){var t=+e;return(t>0?_n:Nn)(t)}});var Tr=a((Mo,Ct)=>{"use strict";var Bn=Rt();Ct.exports=function(r){var e=+r;return e!==e||e===0?0:Bn(e)}});var Nt=a((Fo,Dt)=>{"use strict";var Ln=Tr(),$n=Math.max,Kn=Math.min;Dt.exports=function(r,e){var t=Ln(r);return t<0?$n(t+e,0):Kn(t,e)}});var Bt=a((Ro,_t)=>{"use strict";var Vn=Tr(),Wn=Math.min;_t.exports=function(r){var e=Vn(r);return e>0?Wn(e,9007199254740991):0}});var $t=a((Co,Lt)=>{"use strict";var Gn=Bt();Lt.exports=function(r){return Gn(r.length)}});var Wt=a((Do,Vt)=>{"use strict";var An=T(),Un=Nt(),zn=$t(),Kt=function(r){return function(e,t,i){var n=An(e),u=zn(n);if(u===0)return!r&&-1;var o=Un(i,u),s;if(r&&t!==t){for(;u>o;)if(s=n[o++],s!==s)return!0}else for(;u>o;o++)if((r||o in n)&&n[o]===t)return r||o||0;return!r&&-1}};Vt.exports={includes:Kt(!0),indexOf:Kt(!1)}});var Ut=a((No,At)=>{"use strict";var Yn=v(),jr=g(),kn=T(),Hn=Wt().indexOf,Xn=Sr(),Gt=Yn([].push);At.exports=function(r,e){var t=kn(r),i=0,n=[],u;for(u in t)!jr(Xn,u)&&jr(t,u)&&Gt(n,u);for(;e.length>i;)jr(t,u=e[i++])&&(~Hn(n,u)||Gt(n,u));return n}});var Yt=a((_o,zt)=>{"use strict";zt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ht=a(kt=>{"use strict";var Jn=Ut(),Zn=Yt(),Qn=Zn.concat("length","prototype");kt.f=Object.getOwnPropertyNames||function(e){return Jn(e,Qn)}});var Jt=a(Xt=>{"use strict";Xt.f=Object.getOwnPropertySymbols});var Qt=a(($o,Zt)=>{"use strict";var ru=Z(),eu=v(),tu=Ht(),iu=Jt(),au=pr(),nu=eu([].concat);Zt.exports=ru("Reflect","ownKeys")||function(e){var t=tu.f(au(e)),i=iu.f;return i?nu(t,i(e)):t}});var ti=a((Ko,ei)=>{"use strict";var ri=g(),uu=Qt(),ou=fr(),su=C();ei.exports=function(r,e,t){for(var i=uu(e),n=su.f,u=ou.f,o=0;o<i.length;o++){var s=i[o];!ri(r,s)&&!(t&&ri(t,s))&&n(r,s,u(e,s))}}});var ai=a((Vo,ii)=>{"use strict";var cu=y(),vu=l(),lu=/#|\.prototype\./,w=function(r,e){var t=pu[fu(r)];return t===qu?!0:t===yu?!1:vu(e)?cu(e):!!e},fu=w.normalize=function(r){return String(r).replace(lu,".").toLowerCase()},pu=w.data={},yu=w.NATIVE="N",qu=w.POLYFILL="P";ii.exports=w});var Mr=a((Wo,ni)=>{"use strict";var L=c(),gu=fr().f,hu=br(),bu=Mt(),du=M(),Ou=ti(),mu=ai();ni.exports=function(r,e){var t=r.target,i=r.global,n=r.stat,u,o,s,h,m,W;if(i?o=L:n?o=L[t]||du(t,{}):o=L[t]&&L[t].prototype,o)for(s in e){if(m=e[s],r.dontCallGetSet?(W=gu(o,s),h=W&&W.value):h=o[s],u=mu(i?s:t+(n?".":"#")+s,r.forced),!u&&h!==void 0){if(typeof m==typeof h)continue;Ou(m,h)}(r.sham||h&&h.sham)&&hu(m,"sham",!0),bu(o,s,m,r)}}});var Fr=a((Go,ui)=>{"use strict";var $=v(),E=Map.prototype;ui.exports={Map,set:$(E.set),get:$(E.get),has:$(E.has),remove:$(E.delete),proto:E}});var si=a((Ao,oi)=>{"use strict";var Su=Fr().has;oi.exports=function(r){return Su(r),r}});var vi=a(()=>{"use strict";var xu=Mr(),wu=si(),Rr=Fr(),Eu=Rr.get,Pu=Rr.has,ci=Rr.set;xu({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var i=wu(this),n,u;return Pu(i,e)?(n=Eu(i,e),"update"in t&&(n=t.update(n,e,i),ci(i,e,n)),n):(u=t.insert(e,i),ci(i,e,u),u)}})});var Cr=a((Yo,li)=>{"use strict";var K=v(),V=WeakMap.prototype;li.exports={WeakMap,set:K(V.set),get:K(V.get),has:K(V.has),remove:K(V.delete)}});var pi=a((ko,fi)=>{"use strict";var Iu=Cr().has;fi.exports=function(r){return Iu(r),r}});var qi=a(()=>{"use strict";var Tu=Mr(),ju=pi(),Dr=Cr(),Mu=Dr.get,Fu=Dr.has,yi=Dr.set;Tu({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var i=ju(this),n,u;return Fu(i,e)?(n=Mu(i,e),"update"in t&&(n=t.update(n,e,i),yi(i,e,n)),n):(u=t.insert(e,i),yi(i,e,u),u)}})});var gi=a(()=>{"use strict";vi();qi()});var Qo=hi(gi(),1);
|
|
2
|
+
//# sourceMappingURL=corejs.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/global-this.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/fails.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/descriptors.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/function-bind-native.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/function-call.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/object-property-is-enumerable.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/create-property-descriptor.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/function-uncurry-this.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/classof-raw.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/indexed-object.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/is-null-or-undefined.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/require-object-coercible.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/to-indexed-object.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/is-callable.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/is-object.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/get-built-in.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/object-is-prototype-of.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/environment-user-agent.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/environment-v8-version.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/symbol-constructor-detection.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/use-symbol-as-uid.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/is-symbol.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/try-to-string.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/a-callable.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/get-method.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/ordinary-to-primitive.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/is-pure.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/define-global-property.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/shared-store.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/shared.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/to-object.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/has-own-property.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/uid.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/well-known-symbol.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/to-primitive.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/to-property-key.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/document-create-element.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/ie8-dom-define.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/object-get-own-property-descriptor.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/v8-prototype-define-bug.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/an-object.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/object-define-property.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/create-non-enumerable-property.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/function-name.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/inspect-source.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/weak-map-basic-detection.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/shared-key.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/hidden-keys.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/internal-state.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/make-built-in.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/define-built-in.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/math-trunc.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/to-integer-or-infinity.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/to-absolute-index.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/to-length.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/length-of-array-like.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/array-includes.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/object-keys-internal.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/enum-bug-keys.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/object-get-own-property-names.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/object-get-own-property-symbols.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/own-keys.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/copy-constructor-properties.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/is-forced.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/export.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/map-helpers.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/a-map.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/modules/esnext.map.emplace.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/weak-map-helpers.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/internals/a-weak-map.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/modules/esnext.weak-map.emplace.js","../../../../node_modules/.pnpm/core-js@3.45.1/node_modules/core-js/proposals/map-upsert-stage-2.js","../src/corejs.ts"],"sourcesContent":["'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n check(typeof this == 'object' && this) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n// eslint-disable-next-line es/no-function-prototype-bind -- safe\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\n// eslint-disable-next-line es/no-function-prototype-bind -- safe\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar documentAll = typeof document == 'object' && document.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nmodule.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nvar globalThis = require('../internals/global-this');\n\nvar navigator = globalThis.navigator;\nvar userAgent = navigator && navigator.userAgent;\n\nmodule.exports = userAgent ? String(userAgent) : '';\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar userAgent = require('../internals/environment-user-agent');\n\nvar process = globalThis.process;\nvar Deno = globalThis.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/environment-v8-version');\nvar fails = require('../internals/fails');\nvar globalThis = require('../internals/global-this');\n\nvar $String = globalThis.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL &&\n !Symbol.sham &&\n typeof Symbol.iterator == 'symbol';\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nmodule.exports = false;\n","'use strict';\nvar globalThis = require('../internals/global-this');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(globalThis, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n globalThis[key] = value;\n } return value;\n};\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar globalThis = require('../internals/global-this');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});\n\n(store.versions || (store.versions = [])).push({\n version: '3.45.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\nvar store = require('../internals/shared-store');\n\nmodule.exports = function (key, value) {\n return store[key] || (store[key] = value || {});\n};\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.1.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = globalThis.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar isObject = require('../internals/is-object');\n\nvar document = globalThis.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = globalThis.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar globalThis = require('../internals/global-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = globalThis.TypeError;\nvar WeakMap = globalThis.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\).*$/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n var len = toIntegerOrInfinity(argument);\n return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n if (length === 0) return !IS_INCLUDES && -1;\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = globalThis;\n } else if (STATIC) {\n target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = globalThis[TARGET] && globalThis[TARGET].prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\n// eslint-disable-next-line es/no-map -- safe\nvar MapPrototype = Map.prototype;\n\nmodule.exports = {\n // eslint-disable-next-line es/no-map -- safe\n Map: Map,\n set: uncurryThis(MapPrototype.set),\n get: uncurryThis(MapPrototype.get),\n has: uncurryThis(MapPrototype.has),\n remove: uncurryThis(MapPrototype['delete']),\n proto: MapPrototype\n};\n","'use strict';\nvar has = require('../internals/map-helpers').has;\n\n// Perform ? RequireInternalSlot(M, [[MapData]])\nmodule.exports = function (it) {\n has(it);\n return it;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar aMap = require('../internals/a-map');\nvar MapHelpers = require('../internals/map-helpers');\n\nvar get = MapHelpers.get;\nvar has = MapHelpers.has;\nvar set = MapHelpers.set;\n\n// `Map.prototype.emplace` method\n// https://github.com/tc39/proposal-upsert\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n emplace: function emplace(key, handler) {\n var map = aMap(this);\n var value, inserted;\n if (has(map, key)) {\n value = get(map, key);\n if ('update' in handler) {\n value = handler.update(value, key, map);\n set(map, key, value);\n } return value;\n }\n inserted = handler.insert(key, map);\n set(map, key, inserted);\n return inserted;\n }\n});\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\n// eslint-disable-next-line es/no-weak-map -- safe\nvar WeakMapPrototype = WeakMap.prototype;\n\nmodule.exports = {\n // eslint-disable-next-line es/no-weak-map -- safe\n WeakMap: WeakMap,\n set: uncurryThis(WeakMapPrototype.set),\n get: uncurryThis(WeakMapPrototype.get),\n has: uncurryThis(WeakMapPrototype.has),\n remove: uncurryThis(WeakMapPrototype['delete'])\n};\n","'use strict';\nvar has = require('../internals/weak-map-helpers').has;\n\n// Perform ? RequireInternalSlot(M, [[WeakMapData]])\nmodule.exports = function (it) {\n has(it);\n return it;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar aWeakMap = require('../internals/a-weak-map');\nvar WeakMapHelpers = require('../internals/weak-map-helpers');\n\nvar get = WeakMapHelpers.get;\nvar has = WeakMapHelpers.has;\nvar set = WeakMapHelpers.set;\n\n// `WeakMap.prototype.emplace` method\n// https://github.com/tc39/proposal-upsert\n$({ target: 'WeakMap', proto: true, real: true, forced: true }, {\n emplace: function emplace(key, handler) {\n var map = aWeakMap(this);\n var value, inserted;\n if (has(map, key)) {\n value = get(map, key);\n if ('update' in handler) {\n value = handler.update(value, key, map);\n set(map, key, value);\n } return value;\n }\n inserted = handler.insert(key, map);\n set(map, key, inserted);\n return inserted;\n }\n});\n","'use strict';\n// https://github.com/tc39/proposal-upsert\nrequire('../modules/esnext.map.emplace');\nrequire('../modules/esnext.weak-map.emplace');\n","import 'core-js/proposals/map-upsert-stage-2'\n\ndeclare global {\n\tinterface Map<K, V> {\n\t\t/**\n\t\t * Insert or update a value in the map based on the presence of the key.\n\t\t *\n\t\t * @param key The key to insert or update.\n\t\t * @param operations An object with `insert` and `update` methods.\n\t\t * `insert` method is used when the key does not exist and receives the key and the map itself.\n\t\t * `update` method is used when the key exists and receives the existing value, the key, and the map itself.\n\t\t * @returns The new or updated value.\n\t\t */\n\t\templace(\n\t\t\tkey: K,\n\t\t\toperations: {\n\t\t\t\tinsert?: (key: K, map: Map<K, V>) => V\n\t\t\t\tupdate?: (existingValue: V, key: K, map: Map<K, V>) => V\n\t\t\t},\n\t\t): V\n\t}\n}\n"],"mappings":"+CAAA,IAAAA,EAAAC,EAAA,CAAAC,EAAAC,KAAA,cACA,IAAIC,EAAQ,SAAUC,EAAI,CACxB,OAAOA,GAAMA,EAAG,OAAS,MAAQA,CACnC,EAGAF,GAAO,QAELC,EAAM,OAAO,YAAc,UAAY,UAAU,GACjDA,EAAM,OAAO,QAAU,UAAY,MAAM,GAEzCA,EAAM,OAAO,MAAQ,UAAY,IAAI,GACrCA,EAAM,OAAO,QAAU,UAAY,MAAM,GACzCA,EAAM,OAAOF,GAAQ,UAAYA,CAAI,IAEpC,UAAY,CAAE,OAAO,IAAM,GAAG,GAAK,SAAS,aAAa,EAAE,ICf9D,IAAAI,EAAAC,EAAA,CAAAC,GAAAC,KAAA,cACAA,GAAO,QAAU,SAAUC,EAAM,CAC/B,GAAI,CACF,MAAO,CAAC,CAACA,EAAK,CAChB,MAAgB,CACd,MAAO,EACT,CACF,ICPA,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,GAAQ,IAGZD,GAAO,QAAU,CA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,EAAiB,GAAG,EACrC,IAAKD,EAAYC,EAAiB,GAAG,EACrC,IAAKD,EAAYC,EAAiB,GAAG,EACrC,OAAQD,EAAYC,EAAiB,MAAS,CAChD,ICbA,IAAAC,GAAAC,EAAA,CAAAC,GAAAC,KAAA,cACA,IAAIC,GAAM,KAAyC,IAGnDD,GAAO,QAAU,SAAUE,EAAI,CAC7B,OAAAD,GAAIC,CAAE,EACCA,CACT,ICPA,IAAAC,GAAAC,EAAA,kBACA,IAAIC,GAAI,KACJC,GAAW,KACXC,GAAiB,KAEjBC,GAAMD,GAAe,IACrBE,GAAMF,GAAe,IACrBG,GAAMH,GAAe,IAIzBF,GAAE,CAAE,OAAQ,UAAW,MAAO,GAAM,KAAM,GAAM,OAAQ,EAAK,EAAG,CAC9D,QAAS,SAAiBM,EAAKC,EAAS,CACtC,IAAIC,EAAMP,GAAS,IAAI,EACnBQ,EAAOC,EACX,OAAIN,GAAII,EAAKF,CAAG,GACdG,EAAQN,GAAIK,EAAKF,CAAG,EAChB,WAAYC,IACdE,EAAQF,EAAQ,OAAOE,EAAOH,EAAKE,CAAG,EACtCH,GAAIG,EAAKF,EAAKG,CAAK,GACZA,IAEXC,EAAWH,EAAQ,OAAOD,EAAKE,CAAG,EAClCH,GAAIG,EAAKF,EAAKI,CAAQ,EACfA,EACT,CACF,CAAC,IC1BD,IAAAC,GAAAC,EAAA,kBAEA,KACA,OCHA,IAAAC,GAAO","names":["require_global_this","__commonJSMin","exports","module","check","it","require_fails","__commonJSMin","exports","module","exec","require_descriptors","__commonJSMin","exports","module","fails","require_function_bind_native","__commonJSMin","exports","module","fails","test","require_function_call","__commonJSMin","exports","module","NATIVE_BIND","call","require_object_property_is_enumerable","__commonJSMin","exports","$propertyIsEnumerable","getOwnPropertyDescriptor","NASHORN_BUG","V","descriptor","require_create_property_descriptor","__commonJSMin","exports","module","bitmap","value","require_function_uncurry_this","__commonJSMin","exports","module","NATIVE_BIND","FunctionPrototype","call","uncurryThisWithBind","fn","require_classof_raw","__commonJSMin","exports","module","uncurryThis","toString","stringSlice","it","require_indexed_object","__commonJSMin","exports","module","uncurryThis","fails","classof","$Object","split","it","require_is_null_or_undefined","__commonJSMin","exports","module","it","require_require_object_coercible","__commonJSMin","exports","module","isNullOrUndefined","$TypeError","it","require_to_indexed_object","__commonJSMin","exports","module","IndexedObject","requireObjectCoercible","it","require_is_callable","__commonJSMin","exports","module","documentAll","argument","require_is_object","__commonJSMin","exports","module","isCallable","it","require_get_built_in","__commonJSMin","exports","module","globalThis","isCallable","aFunction","argument","namespace","method","require_object_is_prototype_of","__commonJSMin","exports","module","uncurryThis","require_environment_user_agent","__commonJSMin","exports","module","globalThis","navigator","userAgent","require_environment_v8_version","__commonJSMin","exports","module","globalThis","userAgent","process","Deno","versions","v8","match","version","require_symbol_constructor_detection","__commonJSMin","exports","module","V8_VERSION","fails","globalThis","$String","symbol","require_use_symbol_as_uid","__commonJSMin","exports","module","NATIVE_SYMBOL","require_is_symbol","__commonJSMin","exports","module","getBuiltIn","isCallable","isPrototypeOf","USE_SYMBOL_AS_UID","$Object","it","$Symbol","require_try_to_string","__commonJSMin","exports","module","$String","argument","require_a_callable","__commonJSMin","exports","module","isCallable","tryToString","$TypeError","argument","require_get_method","__commonJSMin","exports","module","aCallable","isNullOrUndefined","V","P","func","require_ordinary_to_primitive","__commonJSMin","exports","module","call","isCallable","isObject","$TypeError","input","pref","fn","val","require_is_pure","__commonJSMin","exports","module","require_define_global_property","__commonJSMin","exports","module","globalThis","defineProperty","key","value","require_shared_store","__commonJSMin","exports","module","IS_PURE","globalThis","defineGlobalProperty","SHARED","store","require_shared","__commonJSMin","exports","module","store","key","value","require_to_object","__commonJSMin","exports","module","requireObjectCoercible","$Object","argument","require_has_own_property","__commonJSMin","exports","module","uncurryThis","toObject","hasOwnProperty","it","key","require_uid","__commonJSMin","exports","module","uncurryThis","id","postfix","toString","key","require_well_known_symbol","__commonJSMin","exports","module","globalThis","shared","hasOwn","uid","NATIVE_SYMBOL","USE_SYMBOL_AS_UID","Symbol","WellKnownSymbolsStore","createWellKnownSymbol","name","require_to_primitive","__commonJSMin","exports","module","call","isObject","isSymbol","getMethod","ordinaryToPrimitive","wellKnownSymbol","$TypeError","TO_PRIMITIVE","input","pref","exoticToPrim","result","require_to_property_key","__commonJSMin","exports","module","toPrimitive","isSymbol","argument","key","require_document_create_element","__commonJSMin","exports","module","globalThis","isObject","document","EXISTS","it","require_ie8_dom_define","__commonJSMin","exports","module","DESCRIPTORS","fails","createElement","require_object_get_own_property_descriptor","__commonJSMin","exports","DESCRIPTORS","call","propertyIsEnumerableModule","createPropertyDescriptor","toIndexedObject","toPropertyKey","hasOwn","IE8_DOM_DEFINE","$getOwnPropertyDescriptor","O","P","require_v8_prototype_define_bug","__commonJSMin","exports","module","DESCRIPTORS","fails","require_an_object","__commonJSMin","exports","module","isObject","$String","$TypeError","argument","require_object_define_property","__commonJSMin","exports","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$TypeError","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","O","P","Attributes","current","require_create_non_enumerable_property","__commonJSMin","exports","module","DESCRIPTORS","definePropertyModule","createPropertyDescriptor","object","key","value","require_function_name","__commonJSMin","exports","module","DESCRIPTORS","hasOwn","FunctionPrototype","getDescriptor","EXISTS","PROPER","CONFIGURABLE","require_inspect_source","__commonJSMin","exports","module","uncurryThis","isCallable","store","functionToString","it","require_weak_map_basic_detection","__commonJSMin","exports","module","globalThis","isCallable","WeakMap","require_shared_key","__commonJSMin","exports","module","shared","uid","keys","key","require_hidden_keys","__commonJSMin","exports","module","require_internal_state","__commonJSMin","exports","module","NATIVE_WEAK_MAP","globalThis","isObject","createNonEnumerableProperty","hasOwn","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","TypeError","WeakMap","set","get","has","enforce","it","getterFor","TYPE","state","store","metadata","STATE","require_make_built_in","__commonJSMin","exports","module","uncurryThis","fails","isCallable","hasOwn","DESCRIPTORS","CONFIGURABLE_FUNCTION_NAME","inspectSource","InternalStateModule","enforceInternalState","getInternalState","$String","defineProperty","stringSlice","replace","join","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","value","name","options","state","require_define_built_in","__commonJSMin","exports","module","isCallable","definePropertyModule","makeBuiltIn","defineGlobalProperty","O","key","value","options","simple","name","require_math_trunc","__commonJSMin","exports","module","ceil","floor","x","n","require_to_integer_or_infinity","__commonJSMin","exports","module","trunc","argument","number","require_to_absolute_index","__commonJSMin","exports","module","toIntegerOrInfinity","max","min","index","length","integer","require_to_length","__commonJSMin","exports","module","toIntegerOrInfinity","min","argument","len","require_length_of_array_like","__commonJSMin","exports","module","toLength","obj","require_array_includes","__commonJSMin","exports","module","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","O","length","index","value","require_object_keys_internal","__commonJSMin","exports","module","uncurryThis","hasOwn","toIndexedObject","indexOf","hiddenKeys","push","object","names","O","result","key","require_enum_bug_keys","__commonJSMin","exports","module","require_object_get_own_property_names","__commonJSMin","exports","internalObjectKeys","enumBugKeys","hiddenKeys","O","require_object_get_own_property_symbols","__commonJSMin","exports","require_own_keys","__commonJSMin","exports","module","getBuiltIn","uncurryThis","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","anObject","concat","it","keys","getOwnPropertySymbols","require_copy_constructor_properties","__commonJSMin","exports","module","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","keys","defineProperty","getOwnPropertyDescriptor","i","key","require_is_forced","__commonJSMin","exports","module","fails","isCallable","replacement","isForced","feature","detection","value","data","normalize","POLYFILL","NATIVE","string","require_export","__commonJSMin","exports","module","globalThis","getOwnPropertyDescriptor","createNonEnumerableProperty","defineBuiltIn","defineGlobalProperty","copyConstructorProperties","isForced","options","source","TARGET","GLOBAL","STATIC","FORCED","target","key","targetProperty","sourceProperty","descriptor","require_map_helpers","__commonJSMin","exports","module","uncurryThis","MapPrototype","require_a_map","__commonJSMin","exports","module","has","it","require_esnext_map_emplace","__commonJSMin","$","aMap","MapHelpers","get","has","set","key","handler","map","value","inserted","require_weak_map_helpers","__commonJSMin","exports","module","uncurryThis","WeakMapPrototype","require_a_weak_map","__commonJSMin","exports","module","has","it","require_esnext_weak_map_emplace","__commonJSMin","$","aWeakMap","WeakMapHelpers","get","has","set","key","handler","map","value","inserted","require_map_upsert_stage_2","__commonJSMin","import_map_upsert_stage_2"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function lazyVal<R>(func: () => R): () => R;
|
|
2
|
+
/** Promise.any but also allows to pass functions to call, or falsy values to skip */
|
|
3
|
+
export declare function racePromises<R>(promises: Array<Promise<R> | (() => Promise<R>) | null | undefined | false>): Promise<R>;
|
|
4
|
+
export declare function asyncIterableToArray<R>(iterable: AsyncIterable<R>): Promise<R[]>;
|
|
5
|
+
export declare function blobToAsyncIterable(blob: Blob): AsyncGenerator<Uint8Array<ArrayBuffer>, void, unknown>;
|
|
6
|
+
export declare function recurseWithLoopProtection<T, ID>(current: T, getNext: (c: T) => T, getID: (c: T) => ID, trace?: ID[]): T;
|
|
7
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAIA,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,CAMjD;AAED,qFAAqF;AACrF,wBAAsB,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAyB7H;AAED,wBAAsB,oBAAoB,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAItF;AACD,wBAAuB,mBAAmB,CAAC,IAAI,EAAE,IAAI,0DAWpD;AACD,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,EAAE,EAC9C,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EACpB,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,EACnB,KAAK,GAAE,EAAE,EAAO,KAShB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o,b as r,c as e,d as f,e as m}from"./chunk-PA6WBVCJ.min.js";import{a as p}from"./chunk-IFY2JCCQ.min.js";import{a as t}from"./chunk-Z5VZCNIS.min.js";import"./chunk-MXMMU6NF.min.js";export{p as SetMap,e as asyncIterableToArray,f as blobToAsyncIterable,t as destroyWorker,o as lazyVal,r as racePromises,m as recurseWithLoopProtection};
|
|
2
|
+
//# sourceMappingURL=index.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/map.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../src/map.ts"],"names":[],"mappings":"AAAA,qBAAa,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAE,SAAQ,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACnD,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;IAUpB,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;CAS/B"}
|
package/dist/map.min.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/worker.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAE3D,MAAM,WAAW,yBAAyB;IACzC,QAAQ,CAAC,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CACjC;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,yBAAyB,QAK9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@note3/utils",
|
|
3
|
+
"version": "0.0.16",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "./dist/index.min.js",
|
|
7
|
+
"module": "./dist/index.min.js",
|
|
8
|
+
"browser": "./dist/index.min.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.min.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./corejs": {
|
|
16
|
+
"import": "./dist/corejs.min.js",
|
|
17
|
+
"types": "./dist/corejs.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"./dist/"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"esm.sh": {
|
|
27
|
+
"bundle": false
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"besonders-logger": "1.0.2",
|
|
31
|
+
"comlink": "^4.4.2",
|
|
32
|
+
"core-js": "^3.45.1",
|
|
33
|
+
"vite-plugin-comlink": "^5.3.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"concurrently": "^8.2.2",
|
|
37
|
+
"tsup": "^8.0.2",
|
|
38
|
+
"typescript": "^5.8.3",
|
|
39
|
+
"tsupconfig": "^0.0.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "rm -rf dist/ && concurrently \"pnpm build:code\" \"pnpm build:types\"",
|
|
43
|
+
"build:code": "tsup --minify",
|
|
44
|
+
"build:types": "tsc --emitDeclarationOnly --declaration",
|
|
45
|
+
"dev": "concurrently \"pnpm dev:code\" \"pnpm dev:types\"",
|
|
46
|
+
"dev:code": "tsup --watch",
|
|
47
|
+
"dev:types": "tsc --emitDeclarationOnly --declaration --watch",
|
|
48
|
+
"lint": "eslint .",
|
|
49
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
50
|
+
"pub": "npm publish --tag latest --access=public"
|
|
51
|
+
}
|
|
52
|
+
}
|