UNPKG

@react-native/debugger-frontend

Version:
8 lines (7 loc) • 13.9 kB
var e=[{name:"focus-visible",modules:["focus-visible"]},{name:"Error.prototype.cause",modules:["es.error.cause"]},{name:"Array.prototype.at",modules:["es.array.at","esnext.array.at"],corejs:!0},{name:"Array.prototype.concat",modules:["es.array.concat"],corejs:!0},{name:"Array.prototype.copyWithin",modules:["es.array.copy-within"],corejs:!0},{name:"Array.prototype.every",modules:["es.array.every"],corejs:!0},{name:"Array.prototype.fill",modules:["es.array.fill"],corejs:!0},{name:"Array.prototype.filter",modules:["es.array.filter"],corejs:!0},{name:"Array.prototype.find",modules:["es.array.find"],corejs:!0},{name:"Array.prototype.findIndex",modules:["es.array.find-index"],corejs:!0},{name:"Array.prototype.findLast",modules:["es.array.find-last","esnext.array.find-last"],corejs:!0},{name:"Array.prototype.findLastIndex",modules:["es.array.find-last-index","esnext.array.find-last-index"],corejs:!0},{name:"Array.prototype.flat",modules:["es.array.flat"],corejs:!0},{name:"Array.prototype.flatMap",modules:["es.array.flat-map"],corejs:!0},{name:"Array.prototype.forEach",modules:["es.array.for-each"],corejs:!0},{name:"Array.from",modules:["es.array.from"],corejs:!0},{name:"Array.prototype.includes",modules:["es.array.includes"],corejs:!0},{name:"Array.prototype.indexOf",modules:["es.array.index-of"],corejs:!0},{name:"Array.isArray",modules:["es.array.is-array"],corejs:!0},{name:"Array.prototype.join",modules:["es.array.join"],corejs:!0},{name:"Array.prototype.map",modules:["es.array.map"],corejs:!0},{name:"Array.of",modules:["es.array.of"],corejs:!0},{name:"Array.prototype.slice",modules:["es.array.slice"],corejs:!0},{name:"Array.prototype.some",modules:["es.array.some"],corejs:!0},{name:"Array.prototype.sort",modules:["es.array.sort"],corejs:!0},{name:"Array.prototype.unshift",modules:["es.array.unshift"],corejs:!0},{name:"Math.acosh",modules:["es.math.acosh"],corejs:!0},{name:"Math.asinh",modules:["es.math.asinh"],corejs:!0},{name:"Math.atanh",modules:["es.math.atanh"],corejs:!0},{name:"Math.cbrt",modules:["es.math.cbrt"],corejs:!0},{name:"Math.clz32",modules:["es.math.clz32"],corejs:!0},{name:"Math.cosh",modules:["es.math.cosh"],corejs:!0},{name:"Math.expm1",modules:["es.math.expm1"],corejs:!0},{name:"Math.fround",modules:["es.math.fround"],corejs:!0},{name:"Math.hypot",modules:["es.math.hypot"],corejs:!0},{name:"Math.imul",modules:["es.math.imul"],corejs:!0},{name:"Math.log10",modules:["es.math.log10"],corejs:!0},{name:"Math.log1p",modules:["es.math.log1p"],corejs:!0},{name:"Math.log2",modules:["es.math.log2"],corejs:!0},{name:"Math.sign",modules:["es.math.sign"],corejs:!0},{name:"Math.sinh",modules:["es.math.sinh"],corejs:!0},{name:"Math.tanh",modules:["es.math.tanh"],corejs:!0},{name:"Math.trunc",modules:["es.math.trunc"],corejs:!0},{name:"Object.assign",modules:["es.object.assign"],corejs:!0},{name:"Object.create",modules:["es.object.create"],corejs:!0},{name:"Object.entries",modules:["es.object.entries"],corejs:!0},{name:"Object.freeze",modules:["es.object.freeze"],corejs:!0},{name:"Object.fromEntries",modules:["es.object.from-entries"],corejs:!0},{name:"Object.getOwnPropertyDescriptor",modules:["es.object.get-own-property-descriptor"],corejs:!0},{name:"Object.getOwnPropertyDescriptors",modules:["es.object.get-own-property-descriptors"],corejs:!0},{name:"Object.getPrototypeOf",modules:["es.object.get-prototype-of"],corejs:!0},{name:"Object.hasOwn",modules:["es.object.has-own","esnext.object.has-own"],corejs:!0},{name:"Object.is",modules:["es.object.is"],corejs:!0},{name:"Object.isExtensible",modules:["es.object.is-extensible"],corejs:!0},{name:"Object.isFrozen",modules:["es.object.is-frozen"],corejs:!0},{name:"Object.isSealed",modules:["es.object.is-sealed"],corejs:!0},{name:"Object.keys",modules:["es.object.keys"],corejs:!0},{name:"Object.preventExtensions",modules:["es.object.prevent-extensions"],corejs:!0},{name:"Object.seal",modules:["es.object.seal"],corejs:!0},{name:"Object.setPrototypeOf",modules:["es.object.set-prototype-of"],corejs:!0},{name:"Object.values",modules:["es.object.values"],corejs:!0},{name:"Promise.any",modules:["es.promise.any","esnext.promise.any"],corejs:!0},{name:"Reflect.apply",modules:["es.reflect.apply"],corejs:!0},{name:"Reflect.construct",modules:["es.reflect.construct"],corejs:!0},{name:"Reflect.deleteProperty",modules:["es.reflect.delete-property"],corejs:!0},{name:"Reflect.get",modules:["es.reflect.get"],corejs:!0},{name:"Reflect.getOwnPropertyDescriptor",modules:["es.reflect.get-own-property-descriptor"],corejs:!0},{name:"Reflect.getPrototypeOf",modules:["es.reflect.get-prototype-of"],corejs:!0},{name:"Reflect.has",modules:["es.reflect.has"],corejs:!0},{name:"Reflect.isExtensible",modules:["es.reflect.is-extensible"],corejs:!0},{name:"Reflect.ownKeys",modules:["es.reflect.own-keys"],corejs:!0},{name:"Reflect.preventExtensions",modules:["es.reflect.prevent-extensions"],corejs:!0},{name:"Reflect.setPrototypeOf",modules:["es.reflect.set-prototype-of"],corejs:!0},{name:"String.prototype.codePointAt",modules:["es.string.code-point-at"],corejs:!0},{name:"String.prototype.endsWith",modules:["es.string.ends-with"],corejs:!0},{name:"String.fromCodePoint",modules:["es.string.from-code-point"],corejs:!0},{name:"String.prototype.includes",modules:["es.string.includes"],corejs:!0},{name:"String.prototype.matchAll",modules:["es.string.match-all","esnext.string.match-all"],corejs:!0},{name:"String.raw",modules:["es.string.raw"],corejs:!0},{name:"String.prototype.repeat",modules:["es.string.repeat"],corejs:!0},{name:"String.prototype.replaceAll",modules:["es.string.replace-all","esnext.string.replace-all"],corejs:!0},{name:"String.prototype.startsWith",modules:["es.string.starts-with"],corejs:!0},{name:"String.prototype.substr",modules:["es.string.substr"],corejs:!0},{name:"String.prototype.trim",modules:["es.string.trim"],corejs:!0},{name:"String.prototype.trimEnd",modules:["es.string.trim-end"],corejs:!0},{name:"String.prototype.trimStart",modules:["es.string.trim-start"],corejs:!0},{name:"String.prototype.link",modules:["es.string.link"],corejs:!0},{name:"Promise.allSettled",modules:["esnext.promise.all-settled"],corejs:!0}],t={moduleSizes:[26070,498,282,294,281,467,161,236,229,765,546,339,1608,723,729,1545,438,214,657,111,759,537,209,281,685,217,757,631,293,182,475,79,407,140,366,792,269,222,158,280,188,137,158,105,189,543,160,742,1436,88,904,146,314,375,183,1083,195,503,269,208,334,350,460,568,229,1155,334,266,30,120,309,370,358,1952,1638,304,153,274,1288,192,543,74,144,137,33,336,457,2122,535,711,1323,117,1961,244,557,318,119,124,108,144,96,133,441,210,1627,1956,693,1426,863,637,301,51,708,583,119,600,221,370,728,1085,552,629,125,1746,97,441,543,2756,371,447,548,243,266,217,99,440,183,546,137,464,207,983,503,237,382,249,675,402,254,223,164,214,191,831,218,202,232,124,249,160,251,217,717,78,561,1627,256,386,225,432,499,394,364,445,634,667,177,346,470,663,142,588,414,617,1559,380,2520,1040,417,289,238,220,214,303,163,141,510,397,137,137,133,133,390,266,137,183,215,191,485,328,575,799,533,148,215,589,589,130,362,562,471,179,186,1266,1456,521,1536,427,444,406,912,150,283,144,485,470,205,1268,796,658,306,3751,814,146,2328,1226,922,237,206,198,250,283,60,3e3],dependencies:{"Array.prototype.at":[0,5,69,105,106,116,164],"Array.prototype.concat":[0,16,21,22,26,34,40,76,78,155,165],"Array.prototype.copyWithin":[0,5,9,37,69,105,106,116,166],"Array.prototype.every":[0,15,17,21,22,26,53,59,76,78,155,167],"Array.prototype.fill":[0,5,10,69,105,106,116,168],"Array.prototype.filter":[0,15,16,21,22,26,53,59,76,78,155,169],"Array.prototype.find":[0,5,15,21,22,26,53,59,69,76,78,105,106,116,155,173],"Array.prototype.findIndex":[0,5,15,21,22,26,53,59,69,76,78,105,106,116,155,170],"Array.prototype.findLast":[0,5,14,53,59,69,105,106,116,172],"Array.prototype.findLastIndex":[0,5,14,53,59,69,105,106,116,171],"Array.prototype.flat":[0,21,22,26,40,50,53,59,76,78,155,175],"Array.prototype.flatMap":[0,21,22,26,40,50,53,59,76,78,155,174],"Array.prototype.forEach":[0,11,15,17,21,22,26,53,59,76,78,155,176],"Array.from":[0,12,23,24,26,34,53,59,62,63,75,78,88,155,177],"Array.prototype.includes":[0,5,69,105,106,116,178],"Array.prototype.indexOf":[0,17,59,179],"Array.isArray":[0,76,180],"Array.prototype.join":[0,17,181],"Array.prototype.map":[0,15,16,21,22,26,53,59,76,78,155,182],"Array.of":[0,26,34,78,155,183],"Array.prototype.slice":[0,16,19,26,34,76,78,155,184],"Array.prototype.some":[0,15,17,21,22,26,53,59,76,78,155,185],"Array.prototype.sort":[0,17,19,20,26,37,42,43,46,155,156,186],"Array.prototype.unshift":[0,18,37,40,76,187],"Math.acosh":[0,97,188],"Math.asinh":[0,189],"Math.atanh":[0,190],"Math.cbrt":[0,100,191],"Math.clz32":[0,192],"Math.cosh":[0,93,193],"Math.expm1":[0,93,194],"Math.fround":[0,94,95,99,100,195],"Math.hypot":[0,196],"Math.imul":[0,197],"Math.log10":[0,96,198],"Math.log1p":[0,97,199],"Math.log2":[0,98,200],"Math.sign":[0,100,201],"Math.sinh":[0,93,202],"Math.tanh":[0,93,203],"Math.trunc":[0,204],"Object.assign":[0,104,116,205],"Object.create":[0,69,105,106,116,206],"Object.entries":[0,29,112,116,119,207],"Object.freeze":[0,8,19,51,73,109,113,208],"Object.fromEntries":[0,26,34,53,59,62,63,75,87,88,155,209],"Object.getOwnPropertyDescriptor":[0,210],"Object.getOwnPropertyDescriptors":[0,34,211],"Object.getPrototypeOf":[0,29,112,212],"Object.hasOwn":[0,213],"Object.is":[0,134,217],"Object.isExtensible":[0,8,113,214],"Object.isFrozen":[0,8,215],"Object.isSealed":[0,8,216],"Object.keys":[0,116,218],"Object.preventExtensions":[0,8,19,51,73,109,113,219],"Object.seal":[0,8,19,51,73,109,113,220],"Object.setPrototypeOf":[0,4,58,83,118,221],"Object.values":[0,29,112,116,119,222],"Promise.any":[0,24,26,47,53,59,62,63,75,87,88,102,122,123,124,125,155,224],"Reflect.apply":[0,52,225],"Reflect.construct":[0,3,19,26,52,55,69,78,105,106,116,155,226],"Reflect.deleteProperty":[0,227],"Reflect.get":[0,29,79,112,230],"Reflect.getOwnPropertyDescriptor":[0,228],"Reflect.getPrototypeOf":[0,29,112,229],"Reflect.has":[0,231],"Reflect.isExtensible":[0,8,113,232],"Reflect.ownKeys":[0,233],"Reflect.preventExtensions":[0,51,234],"Reflect.setPrototypeOf":[0,4,58,83,118,235],"String.prototype.codePointAt":[0,26,141,155,156,236],"String.prototype.endsWith":[0,26,28,59,85,103,155,156,237],"String.fromCodePoint":[0,238],"String.prototype.includes":[0,26,28,85,103,155,156,239],"String.prototype.matchAll":[0,3,6,26,29,31,59,69,78,85,89,90,105,106,112,116,126,127,128,129,130,131,132,135,139,141,155,156,241],"String.raw":[0,26,155,156,242],"String.prototype.repeat":[0,26,142,155,156,243],"String.prototype.replaceAll":[0,26,65,85,128,129,155,156,244],"String.prototype.startsWith":[0,26,28,59,85,103,155,156,245],"String.prototype.substr":[0,26,155,156,246],"String.prototype.trim":[0,26,144,146,155,156,163,251],"String.prototype.trimEnd":[0,26,143,144,146,155,156,163,247,249],"String.prototype.trimStart":[0,26,144,145,146,155,156,163,248,250],"String.prototype.link":[0,26,30,140,155,156,240],"Promise.allSettled":[0,24,26,47,53,59,62,63,75,87,88,102,122,123,124,125,155,223,252],"focus-visible":[253]},maxSize:155835};function r(e,t,r){const o=e=>`['"]${e}['"]`;let s="";if(s+=e?`${e}\\.${t}\\s?=[^=]`:`(?:window\\.|[\\s;]+)${t}\\s?=[^=]`,e&&(s+=`|${e}\\[${o(t)}\\]\\s?=[^=]`),s+=`|defineProperty\\(${e||"window"},\\s?${o(t)}`,e&&(s+=`|\\(${e},\\s*{${t}:.*},\\s*{${t}`),e){s+=`|{target:${o(e.replace(".prototype",""))}[^;]*},{${t}:`}return s+=`|${r.replaceAll(".","\\.")}(?:\\.js)?"`,s}function o(){return e.filter((e=>e.corejs)).map((e=>({name:e.name,coreJs3Module:e.modules[0]})))}function s(){const e=(e,t)=>"string"==typeof t?e.split(t).length-1:(e.match(t)??[]).length;return[{name:"@babel/plugin-transform-classes",expression:"Cannot call a class as a function",estimateBytes:t=>1e3+17*(e(t,"_classCallCheck")-1)},{name:"@babel/plugin-transform-regenerator",expression:"Generator is already running|regeneratorRuntime",estimateBytes:t=>80*e(t,/regeneratorRuntime\(?\)?\.a?wrap/g)},{name:"@babel/plugin-transform-spread",expression:"Invalid attempt to spread non-iterable instance",estimateBytes:t=>1169+20*e(t,/\.apply\(void 0,\s?_toConsumableArray/g)}]}function a(e,r){const o=r.filter((e=>!e.name.startsWith("@"))),a=r.filter((e=>e.name.startsWith("@")));let n=0;const c=new Set;for(const e of o){const r=t.dependencies[e.name];if(r)for(const e of r)c.add(e)}n+=[...c].reduce(((e,r)=>e+t.moduleSizes[r]),0),n=Math.min(n,t.maxSize);let m=0;for(const t of a){const r=s().find((e=>e.name===t.name));r&&r.estimateBytes&&e&&(m+=r.estimateBytes(e))}return n+m}var n=new class{constructor(e){this.patterns=e}match(e){if(!this.re){const e=this.patterns.map((e=>`(${e.expression})`)).join("|");this.re=new RegExp(`(^\r\n|\r|\n)|${e}`,"g")}this.re.lastIndex=0;const t=new Set,r=[];let o,s=0,a=0;for(;null!==(o=this.re.exec(e));){const e=o.slice(1),[n,...c]=e;if(n){s++,a=o.index+1;continue}const m=this.patterns[c.findIndex(Boolean)];t.has(m)||(t.add(m),r.push({name:m.name,line:s,column:o.index-a}))}return r}}([...function(){const e=[];for(const{name:t,coreJs3Module:s}of o()){const o=t.split("."),a=o.length>1?o.slice(0,o.length-1).join("."):null,n=o[o.length-1];e.push({name:t,expression:r(a,n,s)})}return e}(),...s()]); /** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ var c=Object.freeze({__proto__:null,detectLegacyJavaScript:function(t,r){if(!t)return{matches:[],estimatedByteSavings:0};let o=n.match(t);if(r)for(const{name:t,modules:s}of e){if(o.some((e=>e.name===t)))continue;const e=r.sourceURLs().find((e=>s.some((t=>e.endsWith(`/${t}.js`)||e.includes(`node_modules/${t}/`)))));if(!e)continue;const a=r.mappings().find((t=>t.sourceURL===e));a?o.push({name:t,line:a.lineNumber,column:a.columnNumber}):o.push({name:t,line:0,column:0})}return o=o.sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1)),{matches:o,estimatedByteSavings:a(t,o)}},getCoreJsPolyfillData:o,getTransformPatterns:s});export{c as LegacyJavaScript};