trbr
Version:
TraceBreaker is a simple tool to decode and analyze ESP backtraces
1 lines • 88.7 kB
JavaScript
(()=>{var t={41:(t,e,r)=>{"use strict";var n=r(655),o=r(8068),i=r(9675),s=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],p=!!s&&s(t,e);if(n)n(t,e,{configurable:null===u&&p?p.configurable:!u,enumerable:null===a&&p?p.enumerable:!a,value:r,writable:null===c&&p?p.writable:!c});else{if(!l&&(a||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},76:t=>{"use strict";t.exports=Function.prototype.call},256:t=>{"use strict";var e,r="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;n||(e=function(t){return!1});var o=r?Map.prototype.has:null,i=n?Set.prototype.has:null;e||i||(e=function(t){return!1}),t.exports=e||function(t){if(!t||"object"!=typeof t)return!1;try{if(i.call(t),o)try{o.call(t)}catch(t){return!0}return t instanceof n}catch(t){}return!1}},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var n,o=r(9612),i=r(9383),s=r(1237),a=r(9290),c=r(9538),u=r(8068),l=r(9675),p=r(5345),f=r(1514),y=r(8968),d=r(6188),h=r(8002),g=r(5880),b=r(414),m=r(3093),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},S=r(5795),x=r(655),O=function(){throw new l},j=S?function(){try{return O}catch(t){try{return S(arguments,"callee").get}catch(t){return O}}}():O,A=r(4039)(),C=r(3628),E=r(1064),P=r(8648),_=r(1002),I=r(76),F={},$="undefined"!=typeof Uint8Array&&C?C(Uint8Array):n,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":A&&C?C([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":F,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&C?C(C([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A&&C?C((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A&&C?C((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&C?C(""[Symbol.iterator]()):n,"%Symbol%":A?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":j,"%TypedArray%":$,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":_,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":f,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":g,"%Math.round%":b,"%Math.sign%":m,"%Reflect.getPrototypeOf%":P};if(C)try{null.error}catch(t){var T=C(C(t));M["%Error.prototype%"]=T}var k=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&C&&(r=C(o.prototype))}return M[e]=r,r},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(6743),L=r(9957),N=B.call(I,Array.prototype.concat),U=B.call(_,Array.prototype.splice),D=B.call(I,String.prototype.replace),W=B.call(I,String.prototype.slice),q=B.call(I,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,H=function(t,e){var r,n=t;if(L(R,n)&&(n="%"+(r=R[n])[0]+"%"),L(M,n)){var o=M[n];if(o===F&&(o=k(n)),void 0===o&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=W(t,0,1),r=W(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return D(t,G,(function(t,e,r,o){n[n.length]=r?D(o,z,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=H("%"+n+"%",e),i=o.name,s=o.value,a=!1,c=o.alias;c&&(n=c[0],U(r,N([0,1],c)));for(var p=1,f=!0;p<r.length;p+=1){var y=r[p],d=W(y,0,1),h=W(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==y&&f||(a=!0),L(M,i="%"+(n+="."+y)+"%"))s=M[i];else if(null!=s){if(!(y in s)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(S&&p+1>=r.length){var g=S(s,y);s=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[y]}else f=L(s,y),s=s[y];f&&!a&&(M[i]=s)}}return s}},487:(t,e,r)=>{"use strict";var n=r(6897),o=r(655),i=r(3126),s=r(2205);t.exports=function(t){var e=i(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},o?o(t.exports,"apply",{value:s}):t.exports.apply=s},507:(t,e,r)=>{"use strict";var n=r(453),o=r(6556),i=r(8859),s=r(9675),a=n("%Map%",!0),c=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),l=o("Map.prototype.has",!0),p=o("Map.prototype.delete",!0),f=o("Map.prototype.size",!0);t.exports=!!a&&function(){var t,e={assert:function(t){if(!e.has(t))throw new s("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=p(t,e);return 0===f(t)&&(t=void 0),r}return!1},get:function(e){if(t)return c(t,e)},has:function(e){return!!t&&l(t,e)},set:function(e,r){t||(t=new a),u(t,e,r)}};return e}},592:(t,e,r)=>{"use strict";var n=r(655),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},593:(t,e,r)=>{"use strict";var n=r(3802),o=r(256),i=r(7842),s=r(2648);t.exports=function(t){if(t&&"object"==typeof t){if(n(t))return"Map";if(o(t))return"Set";if(i(t))return"WeakMap";if(s(t))return"WeakSet"}return!1}},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},736:(t,e,r)=>{t.exports=function(t){function e(t){let r,o,i,s=null;function a(...t){if(!a.enabled)return;const n=a,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];r=i.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=n,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function n(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t,e){let r=0,n=0,o=-1,i=0;for(;r<t.length;)if(n<e.length&&(e[n]===t[r]||"*"===e[n]))"*"===e[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,i++,r=i}for(;n<e.length&&"*"===e[n];)n++;return n===e.length}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names,...e.skips.map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").trim().replace(" ",",").split(",").filter(Boolean);for(const t of r)"-"===t[0]?e.skips.push(t.slice(1)):e.names.push(t)},e.enabled=function(t){for(const r of e.skips)if(o(t,r))return!1;for(const r of e.names)if(o(t,r))return!0;return!1},e.humanize=r(6585),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},857:t=>{"use strict";t.exports=require("os")},920:(t,e,r)=>{"use strict";var n=r(9675),o=r(8859),i=r(4803),s=r(507),a=r(2271)||s||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=a()),t.set(e,r)}};return e}},984:(t,e,r)=>{"use strict";var n=r(8452),o=r(9133);t.exports=function(){var t=o();return n(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},1002:t=>{"use strict";t.exports=Function.prototype.apply},1064:(t,e,r)=>{"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1158:t=>{"use strict";var e=Symbol.iterator;t.exports=function(t){if(null!=t&&void 0!==t[e])return t[e]()}},1189:(t,e,r)=>{"use strict";var n=Array.prototype.slice,o=r(1093),i=Object.keys,s=i?function(t){return i(t)}:r(8875),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},1237:t=>{"use strict";t.exports=EvalError},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1451:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},1455:t=>{"use strict";t.exports=require("node:fs/promises")},1514:t=>{"use strict";t.exports=Math.abs},1539:(t,e,r)=>{"use strict";var n=r(4761),o=r(1703),i=r(5128),s=r(3612),a=r(9803);t.exports=function(t){return null==t||"object"!=typeof t&&"function"!=typeof t?null:n(t)?"String":o(t)?"Number":i(t)?"Boolean":s(t)?"Symbol":a(t)?"BigInt":void 0}},1553:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.valid=e.FQBN=void 0;const o=n(r(1779)),i=n(r(4982));class s{constructor(t){const e=t.split(":");if(e.length<3||e.length>4)throw new c(t);for(let r=0;r<3;r++)if(!/^[a-zA-Z0-9_.-]*$/.test(e[r]))throw new c(t);const[r,n,o,i]=e;if(!o)throw new c(t);const s={};if("string"==typeof i){const e=i.split(",");for(const r of e){const e=r.split("=",2);if(2!==e.length)throw new u(t,`Invalid config option: '${r}'`);const[n,o]=e;if(!/^[a-zA-Z0-9_.-]+$/.test(n))throw new u(t,`Invalid config option key: '${n}' (${r})`);if(!/^[a-zA-Z0-9=_.-]*$/.test(o))throw new u(t,`Invalid config option value: '${o}' (${r})`);const i=s[n];if(i)throw new u(t,`Duplicate config options: ${n}:${i}, ${n}:${o}`);s[n]=o}}this.vendor=r,this.arch=n,this.boardId=o,Object.keys(s).length&&(this.options=s)}withConfigOptions(...t){if(!t.length)return this;const e={};for(const r of t){const t=r.option,n=r.values.filter((t=>t.selected));if(!n.length)throw new u(this.toString(),`No selected value for config option: '${t}'`);if(n.length>1)throw new u(this.toString(),`Multiple selected value for config option: '${t}'`);const o=n[0].value,i=e[t];if(i)throw new u(this.toString(),`Duplicate config options: ${t}:${i}, ${t}:${n}`);e[t]=o}const r=this.options?(0,o.default)(this.options):{};let n=!1;for(const[t,o]of Object.entries(e))r[t]!==o&&(r[t]=o,n=!0);if(!n)return this;const{vendor:i,arch:c,boardId:l}=this;return new s(a(i,c,l,r))}setConfigOption(t,e,r=!1){const n=this.options??{};if(r&&!n[t])throw new u(this.toString(),`Config option ${t} must be present in the FQBN (${this.toString()}) when using strict mode.`);return this.withConfigOptions({option:t,values:[{value:e,selected:!0}]})}withFQBN(t){const e=new s(t);if(!this.sanitize().equals(e.sanitize()))throw new u(t,`Mismatching FQBNs. this: ${this.toString()}, other: ${t}`);return this.withConfigOptions(...Object.entries(e.options??{}).map((([t,e])=>({option:t,values:[{value:e,selected:!0}]}))))}sanitize(){return this.options&&Object.keys(this.options).length?new s(this.toString(!0)):this}toString(t=!1){const{vendor:e,arch:r,boardId:n,options:o={}}=this;return a(e,r,n,t?void 0:o)}equals(t){return this===t||this.vendor===t.vendor&&this.arch===t.arch&&this.boardId===t.boardId&&(0,i.default)(this.options,t.options,{strict:!0})}}function a(t,e,r,n=void 0){const o=n?Object.entries(n).map((([t,e])=>`${t}=${e}`)).join(","):"";return`${t}:${e}:${r}${o?`:${o}`:""}`}e.FQBN=s,e.valid=function(t){try{return new s(t)}catch(t){if(t instanceof c)return;throw t}};class c extends Error{constructor(t){super(`Invalid FQBN: ${t}`),this.fqbn=t,this.name=c.name}}class u extends c{constructor(t,e){super(t),this.detail=e,this.name=u.name}}},1589:(t,e,r)=>{"use strict";var n=r(8452),o=r(487),i=r(7675),s=r(5330),a=r(3984),c=o(s());n(c,{getPolyfill:s,implementation:i,shim:a}),t.exports=c},1703:(t,e,r)=>{"use strict";var n=r(6556),o=n("Number.prototype.toString"),i=n("Object.prototype.toString"),s=r(9092)();t.exports=function(t){return"number"==typeof t||!(!t||"object"!=typeof t)&&(s?function(t){try{return o(t),!0}catch(t){return!1}}(t):"[object Number]"===i(t))}},1779:t=>{var e=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var e,r,n;try{e=Map}catch(t){e=function(){}}try{r=Set}catch(t){r=function(){}}try{n=Promise}catch(t){n=function(){}}function o(i,a,c,u,l){"object"==typeof a&&(c=a.depth,u=a.prototype,l=a.includeNonEnumerable,a=a.circular);var p=[],f=[],y="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===c&&(c=1/0),function i(c,d){if(null===c)return null;if(0===d)return c;var h,g;if("object"!=typeof c)return c;if(t(c,e))h=new e;else if(t(c,r))h=new r;else if(t(c,n))h=new n((function(t,e){c.then((function(e){t(i(e,d-1))}),(function(t){e(i(t,d-1))}))}));else if(o.__isArray(c))h=[];else if(o.__isRegExp(c))h=new RegExp(c.source,s(c)),c.lastIndex&&(h.lastIndex=c.lastIndex);else if(o.__isDate(c))h=new Date(c.getTime());else{if(y&&Buffer.isBuffer(c))return h=Buffer.allocUnsafe?Buffer.allocUnsafe(c.length):new Buffer(c.length),c.copy(h),h;t(c,Error)?h=Object.create(c):void 0===u?(g=Object.getPrototypeOf(c),h=Object.create(g)):(h=Object.create(u),g=u)}if(a){var b=p.indexOf(c);if(-1!=b)return f[b];p.push(c),f.push(h)}for(var m in t(c,e)&&c.forEach((function(t,e){var r=i(e,d-1),n=i(t,d-1);h.set(r,n)})),t(c,r)&&c.forEach((function(t){var e=i(t,d-1);h.add(e)})),c){var v;g&&(v=Object.getOwnPropertyDescriptor(g,m)),v&&null==v.set||(h[m]=i(c[m],d-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(m=0;m<w.length;m++){var S=w[m];(!(O=Object.getOwnPropertyDescriptor(c,S))||O.enumerable||l)&&(h[S]=i(c[S],d-1),O.enumerable||Object.defineProperty(h,S,{enumerable:!1}))}}if(l){var x=Object.getOwnPropertyNames(c);for(m=0;m<x.length;m++){var O,j=x[m];(O=Object.getOwnPropertyDescriptor(c,j))&&O.enumerable||(h[j]=i(c[j],d-1),Object.defineProperty(h,j,{enumerable:!1}))}}return h}(i,c)}function i(t){return Object.prototype.toString.call(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=i,o.__isDate=function(t){return"object"==typeof t&&"[object Date]"===i(t)},o.__isArray=function(t){return"object"==typeof t&&"[object Array]"===i(t)},o.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===i(t)},o.__getRegExpFlags=s,o}();t.exports&&(t.exports=e)},2018:t=>{"use strict";t.exports=require("tty")},2120:(t,e,r)=>{"use strict";var n=r(6556),o=n("Date.prototype.getDay"),i=n("Object.prototype.toString"),s=r(9092)();t.exports=function(t){return"object"==typeof t&&null!==t&&(s?function(t){try{return o(t),!0}catch(t){return!1}}(t):"[object Date]"===i(t))}},2203:t=>{"use strict";t.exports=require("stream")},2205:(t,e,r)=>{"use strict";var n=r(6743),o=r(1002),i=r(3144);t.exports=function(){return i(n,o,arguments)}},2271:(t,e,r)=>{"use strict";var n=r(453),o=r(6556),i=r(8859),s=r(507),a=r(9675),c=n("%WeakMap%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("WeakMap.prototype.delete",!0);t.exports=c?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(s&&e)return e.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&t?u(t,r):e&&e.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):!!e&&e.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),l(t,r,n)):s&&(e||(e=s()),e.set(r,n))}};return r}:s},2648:(t,e,r)=>{"use strict";var n=r(453),o=r(6556),i=n("%WeakSet%",!0),s=o("WeakSet.prototype.has",!0);if(s){var a=o("WeakMap.prototype.has",!0);t.exports=function(t){if(!t||"object"!=typeof t)return!1;try{if(s(t,s),a)try{a(t,a)}catch(t){return!0}return t instanceof i}catch(t){}return!1}}else t.exports=function(t){return!1}},2682:(t,e,r)=>{"use strict";var n=r(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=r),"[object Array]"===o.call(t)?function(t,e,r){for(var n=0,o=t.length;n<o;n++)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,s):"string"==typeof t?function(t,e,r){for(var n=0,o=t.length;n<o;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,s):function(t,e,r){for(var n in t)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,s)}},2936:(t,e,r)=>{"use strict";function n(t){return null!==t&&"object"==typeof t&&"address"in t&&"string"==typeof t.address&&"lineNumber"in t&&"string"==typeof t.lineNumber}function o(t){return n(t)&&"file"in t&&"string"==typeof t.file&&"method"in t&&"string"==typeof t.method}r.d(e,{a:()=>n,j:()=>o})},3002:(t,e,r)=>{"use strict";r.d(e,{m:()=>W});const n=require("node:module");var o=r(5317),i=r(6928);const s=require("process");var a=r(2203);const c=require("readline"),u=(0,n.createRequire)("file:///home/runner/work/trbr/trbr/node_modules/tinyexec/dist/main.js");var l=Object.create,p=Object.defineProperty,f=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,d=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,g=(t=>typeof u<"u"?u:typeof Proxy<"u"?new Proxy(t,{get:(t,e)=>(typeof u<"u"?u:t)[e]}):t)((function(t){if(typeof u<"u")return u.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')})),b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),m=b(((t,e)=>{e.exports=o,o.sync=function(t,e){return n(r.statSync(t),t,e)};var r=g("fs");function n(t,e,r){return!(!t.isSymbolicLink()&&!t.isFile())&&function(t,e){var r=void 0!==e.pathExt?e.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&t.substr(-o.length).toLowerCase()===o)return!0}return!1}(e,r)}function o(t,e,o){r.stat(t,(function(r,i){o(r,!r&&n(i,t,e))}))}})),v=b(((t,e)=>{e.exports=n,n.sync=function(t,e){return o(r.statSync(t),e)};var r=g("fs");function n(t,e,n){r.stat(t,(function(t,r){n(t,!t&&o(r,e))}))}function o(t,e){return t.isFile()&&function(t,e){var r=t.mode,n=t.uid,o=t.gid,i=void 0!==e.uid?e.uid:process.getuid&&process.getuid(),s=void 0!==e.gid?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return r&parseInt("001",8)||r&c&&o===s||r&a&&n===i||r&(a|c)&&0===i}(t,e)}})),w=b(((t,e)=>{var r;function n(t,e,o){if("function"==typeof e&&(o=e,e={}),!o){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,o){n(t,e||{},(function(t,e){t?o(t):r(e)}))}))}r(t,e||{},(function(t,r){t&&("EACCES"===t.code||e&&e.ignoreErrors)&&(t=null,r=!1),o(t,r)}))}g("fs"),r="win32"===process.platform||global.TESTING_WINDOWS?m():v(),e.exports=n,n.sync=function(t,e){try{return r.sync(t,e||{})}catch(t){if(e&&e.ignoreErrors||"EACCES"===t.code)return!1;throw t}}})),S=b(((t,e)=>{var r="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,n=g("path"),o=r?";":":",i=w(),s=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),a=(t,e)=>{let n=e.colon||o,i=t.match(/\//)||r&&t.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(n)],s=r?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=r?s.split(n):[""];return r&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:s}},c=(t,e,r)=>{"function"==typeof e&&(r=e,e={}),e||(e={});let{pathEnv:o,pathExt:c,pathExtExe:u}=a(t,e),l=[],p=r=>new Promise(((i,a)=>{if(r===o.length)return e.all&&l.length?i(l):a(s(t));let c=o[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,p=n.join(u,t),y=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;i(f(y,r,0))})),f=(t,r,n)=>new Promise(((o,s)=>{if(n===c.length)return o(p(r+1));let a=c[n];i(t+a,{pathExt:u},((i,s)=>{if(!i&&s){if(!e.all)return o(t+a);l.push(t+a)}return o(f(t,r,n+1))}))}));return r?p(0).then((t=>r(null,t)),r):p(0)};e.exports=c,c.sync=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:o,pathExtExe:c}=a(t,e),u=[];for(let s=0;s<r.length;s++){let a=r[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,p=n.join(l,t),f=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;for(let t=0;t<o.length;t++){let r=f+o[t];try{if(i.sync(r,{pathExt:c})){if(!e.all)return r;u.push(r)}}catch{}}}if(e.all&&u.length)return u;if(e.nothrow)return null;throw s(t)}})),x=b(((t,e)=>{var r=(t={})=>{let e=t.env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"};e.exports=r,e.exports.default=r})),O=b(((t,e)=>{var r=g("path"),n=S(),o=x();function i(t,e){let i,s=t.options.env||process.env,a=process.cwd(),c=null!=t.options.cwd,u=c&&void 0!==process.chdir&&!process.chdir.disabled;if(u)try{process.chdir(t.options.cwd)}catch{}try{i=n.sync(t.command,{path:s[o({env:s})],pathExt:e?r.delimiter:void 0})}catch{}finally{u&&process.chdir(a)}return i&&(i=r.resolve(c?t.options.cwd:"",i)),i}e.exports=function(t){return i(t)||i(t,!0)}})),j=b(((t,e)=>{var r=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(t){return t.replace(r,"^$1")},e.exports.argument=function(t,e){return t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(r,"^$1"),e&&(t=t.replace(r,"^$1")),t}})),A=b(((t,e)=>{e.exports=/^#!(.*)/})),C=b(((t,e)=>{var r=A();e.exports=(t="")=>{let e=t.match(r);if(!e)return null;let[n,o]=e[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return"env"===i?o:o?`${i} ${o}`:i}})),E=b(((t,e)=>{var r=g("fs"),n=C();e.exports=function(t){let e,o=Buffer.alloc(150);try{e=r.openSync(t,"r"),r.readSync(e,o,0,150,0),r.closeSync(e)}catch{}return n(o.toString())}})),P=b(((t,e)=>{var r=g("path"),n=O(),o=j(),i=E(),s="win32"===process.platform,a=/\.(?:com|exe)$/i,c=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;e.exports=function(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null);let l={command:t,args:e=e?e.slice(0):[],options:u=Object.assign({},u),file:void 0,original:{command:t,args:e}};return u.shell?l:function(t){if(!s)return t;let e=function(t){t.file=n(t);let e=t.file&&i(t.file);return e?(t.args.unshift(t.file),t.command=e,n(t)):t.file}(t),u=!a.test(e);if(t.options.forceShell||u){let n=c.test(e);t.command=r.normalize(t.command),t.command=o.command(t.command),t.args=t.args.map((t=>o.argument(t,n)));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}(l)}})),_=b(((t,e)=>{var r="win32"===process.platform;function n(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function o(t,e){return r&&1===t&&!e.file?n(e.original,"spawn"):null}e.exports={hookChildProcess:function(t,e){if(!r)return;let n=t.emit;t.emit=function(r,i){if("exit"===r){let r=o(i,e);if(r)return n.call(t,"error",r)}return n.apply(t,arguments)}},verifyENOENT:o,verifyENOENTSync:function(t,e){return r&&1===t&&!e.file?n(e.original,"spawnSync"):null},notFoundError:n}})),I=b(((t,e)=>{var r=g("child_process"),n=P(),o=_();function i(t,e,i){let s=n(t,e,i),a=r.spawn(s.command,s.args,s.options);return o.hookChildProcess(a,s),a}e.exports=i,e.exports.spawn=i,e.exports.sync=function(t,e,i){let s=n(t,e,i),a=r.spawnSync(s.command,s.args,s.options);return a.error=a.error||o.verifyENOENTSync(a.status,s),a},e.exports._parse=n,e.exports._enoent=o})),F=/^path$/i,$={key:"PATH",value:""};var M,T,k=(T=null!=(M=I())?l(d(M)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of y(e))!h.call(t,r)&&undefined!==r&&p(t,r,{get:()=>e[r],enumerable:!(n=f(e,r))||n.enumerable});return t})(p(T,"default",{value:M,enumerable:!0}),M)),R=class extends Error{result;output;get exitCode(){if(null!==this.result.exitCode)return this.result.exitCode}constructor(t,e){super(`Process exited with non-zero status (${t.exitCode})`),this.result=t,this.output=e}},B={timeout:void 0,persist:!1},L={windowsHide:!0},N=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&null!==this._process.exitCode)return this._process.exitCode}constructor(t,e,r){this._options={...B,...r},this._command=t,this._args=e??[],this._processClosed=new Promise((t=>{this._resolveClose=t}))}kill(t){return!0===this._process?.kill(t)}get aborted(){return this._aborted}get killed(){return!0===this._process?.killed}pipe(t,e,r){return D(t,e,{...r,stdin:this})}async*[Symbol.asyncIterator](){let t=this._process;if(!t)return;let e=[];this._streamErr&&e.push(this._streamErr),this._streamOut&&e.push(this._streamOut);let r=(t=>{let e=t.length,r=new a.PassThrough,n=()=>{0==--e&&r.emit("end")};for(let e of t)e.pipe(r,{end:!1}),e.on("end",n);return r})(e),n=c.createInterface({input:r});for await(let t of n)yield t.toString();if(await this._processClosed,t.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&0!==this.exitCode&&void 0!==this.exitCode)throw new R(this)}async _waitForOutput(){let t=this._process;if(!t)throw new Error("No process was started");let e="",r="";if(this._streamOut)for await(let t of this._streamOut)r+=t.toString();if(this._streamErr)for await(let t of this._streamErr)e+=t.toString();if(await this._processClosed,this._options?.stdin&&await this._options.stdin,t.removeAllListeners(),this._thrownError)throw this._thrownError;let n={stderr:e,stdout:r,exitCode:this.exitCode};if(this._options.throwOnError&&0!==this.exitCode&&void 0!==this.exitCode)throw new R(this,n);return n}then(t,e){return this._waitForOutput().then(t,e)}_streamOut;_streamErr;spawn(){let t=(0,s.cwd)(),e=this._options,r={...L,...e.nodeOptions},n=[];this._resetState(),void 0!==e.timeout&&n.push(AbortSignal.timeout(e.timeout)),void 0!==e.signal&&n.push(e.signal),!0===e.persist&&(r.detached=!0),n.length>0&&(r.signal=function(t){let e=new AbortController;for(let r of t){if(r.aborted)return e.abort(),r;let t=()=>{e.abort(r.reason)};r.addEventListener("abort",t,{signal:e.signal})}return e.signal}(n)),r.env=function(t,e){let r={...process.env,...e},n=function(t,e){let r,n=e.value.split(i.delimiter),o=t;do{n.push((0,i.resolve)(o,"node_modules",".bin")),r=o,o=(0,i.dirname)(o)}while(o!==r);return{key:e.key,value:n.join(i.delimiter)}}(t,function(t){for(let e in t){if(!Object.prototype.hasOwnProperty.call(t,e)||!F.test(e))continue;let r=t[e];return r?{key:e,value:r}:$}return $}(r));return r[n.key]=n.value,r}(t,r.env);let{command:a,args:c}=function(t,e){return{command:(0,i.normalize)(t),args:e??[]}}(this._command,this._args),u=(0,k._parse)(a,c,r),l=(0,o.spawn)(u.command,u.args,u.options);if(l.stderr&&(this._streamErr=l.stderr),l.stdout&&(this._streamOut=l.stdout),this._process=l,l.once("error",this._onError),l.once("close",this._onClose),void 0!==e.stdin&&l.stdin&&e.stdin.process){let{stdout:t}=e.stdin.process;t&&t.pipe(l.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise((t=>{this._resolveClose=t})),this._thrownError=void 0}_onError=t=>{"AbortError"!==t.name||t.cause instanceof Error&&"TimeoutError"===t.cause.name?this._thrownError=t:this._aborted=!0};_onClose=()=>{this._resolveClose&&this._resolveClose()}},U=(t,e,r)=>{let n=new N(t,e,r);return n.spawn(),n},D=U;function W(t,e,r){return U(t,e,{...r,throwOnError:!0})}},3093:(t,e,r)=>{"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3126:(t,e,r)=>{"use strict";var n=r(6743),o=r(9675),i=r(76),s=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return s(n,i,t)}},3136:t=>{"use strict";t.exports=require("node:url")},3144:(t,e,r)=>{"use strict";var n=r(6743),o=r(1002),i=r(76),s=r(7119);t.exports=s||n.call(i,o)},3206:(t,e,r)=>{"use strict";var n=r(41),o=r(592)(),i=r(4462).functionsHaveConfigurableNames(),s=r(9675);t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!i||(o?n(t,"name",e,!0,!0):n(t,"name",e)),t}},3485:(t,e,r)=>{"use strict";r.d(e,{tI:()=>v,D4:()=>S,Br:()=>b,M4:()=>w});var n=r(2936);const o={unsupportedTargetArch:t=>`Unsupported decode target: ${t}`};var i=r(7152),s=r(3002);const a="reserved",c=["Illegal instruction","SYSCALL instruction","InstructionFetchError: Processor internal physical address or data error during instruction fetch","LoadStoreError: Processor internal physical address or data error during load or store","Level1Interrupt: Level-1 interrupt as indicated by set level-1 bits in the INTERRUPT register","Alloca: MOVSP instruction, if caller's registers are not in the register file","IntegerDivideByZero: QUOS, QUOU, REMS, or REMU divisor operand is zero",a,"Privileged: Attempt to execute a privileged operation when CRING ? 0","LoadStoreAlignmentCause: Load or store to an unaligned address",a,a,"InstrPIFDataError: PIF data error during instruction fetch","LoadStorePIFDataError: Synchronous PIF data error during LoadStore access","InstrPIFAddrError: PIF address error during instruction fetch","LoadStorePIFAddrError: Synchronous PIF address error during LoadStore access","InstTLBMiss: Error during Instruction TLB refill","InstTLBMultiHit: Multiple instruction TLB entries matched","InstFetchPrivilege: An instruction fetch referenced a virtual address at a ring level less than CRING",a,"InstFetchProhibited: An instruction fetch referenced a page mapped with an attribute that does not permit instruction fetch",a,a,a,"LoadStoreTLBMiss: Error during TLB refill for a load or store","LoadStoreTLBMultiHit: Multiple TLB entries matched for a load or store","LoadStorePrivilege: A load or store referenced a virtual address at a ring level less than CRING",a,"LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads","StoreProhibited: A store referenced a page mapped with an attribute that does not permit stores"];function u(t){const e=t.matchAll(/Exception \(([0-9]*)\)/g);for(const t of e){const e=t[1];if(e){const t=Number.parseInt(e.trim(),10),r=c[t];if(r)return[r,t]}}}async function l(t,e,r){const[n,o]=function(t){return[p("PC\\s*:\\s*(0x)?",t)??p("epc1=0x",t),p("EXCVADDR\\s*:\\s*(0x)?",t)??p("excvaddr=0x",t)]}(e),i=async e=>{if(e)return(await d(t,[e],r)).shift()??`0x${e}`},[s,a]=await Promise.all([i(n),i(o)]),c={};return s&&(c.PC=s),a&&(c.EXCVADDR=a),c}function p(t,e){const r=e.matchAll(new RegExp(`${t}([0-9a-f]{8})`,"gmi"));for(const t of r){const e=t.find((t=>8===t.length));if(e)return e}}async function f(t,e,r){const n=function(t){const e=t.matchAll(/last failed alloc call: (4[0-3][0-9a-f]{6})\((\d+)\)/gim);for(const t of e){const[,e,r]=t,n=Number.parseInt(r,10);if(!Number.isNaN(n)&&e)return[e,n]}}(e);if(!n)return;const[o,i]=n,s=(await d(t,[o],r)).shift();return s?[s,i]:[`0x${o}`,i]}async function y(t,e,r){const n=function(t){return function(t){const e=t.matchAll(/Backtrace:(.*)/g);for(const t of e){const e=t[1];if(e)return e}}(t)??function(t){const e=">>>stack>>>",r=t.indexOf(e);if(r<0)return;const n="<<<stack<<<",o=t.indexOf(n);return o<0?void 0:t.substring(r+e.length,o)}(t)}(e);if(!n)throw new Error("Could not recognize stack trace/backtrace");const o=function(t){return Array.from(t.matchAll(/4[0-3][0-9a-f]{6}\b/gim)).map((t=>t[0])).filter(Boolean)}(n);if(!o.length)throw new Error("Could not detect any instruction addresses in the stack trace/backtrace");return d(t,o,r)}async function d(t,e,r){const{toolPath:o,elfPath:i}=t,a=function(t,e){if(!t.length)throw new Error("Invalid argument: addresses.length <= 0");return["--batch",e,"-ex","set listsize 1",...t.map((t=>["-ex",`list *0x${t}`])).reduce(((t,e)=>t.concat(e))),"-ex","q"]}(e,i),{stdout:c}=await(0,s.m)(o,a,r);return function(t,e=t=>{}){return t.split(/\r?\n/).map((t=>function(t,e=t=>{}){const r=t.matchAll(/^(0x[0-9a-f]{8})\s+is in\s+(\S+)\s+\((.*):(\d+)\)\.$/gi);for(const t of r){const[,r,n,o,i]=t;if(r&&n&&o&&i){const t={address:r,method:n,file:o,lineNumber:i};return e(`parseGDBLine, OK: ${JSON.stringify(t)}`),t}}const n=t.matchAll(/(0x[0-9a-f]{8})(\s+is in\s+.*)/gi);for(const t of n){const[,r,n]=t;if(r&&n){const t={address:r,lineNumber:n.trim()};return e(`parseGDBLine, fallback: ${JSON.stringify(t)}`),t}}e(`parseGDBLine, failed: ${t}`)}(t,e))).filter(n.a)}(c,r.debug)}const h={signal:(new AbortController).signal,debug:()=>{}},g={esp32c2:i.yz,esp32c3:i.yz,esp32c6:i.yz,esp32h2:i.yz,esp32h4:i.yz},b="xtensa",m={[b]:async function(t,e,r){const[n,o,i,s]=await Promise.all([u(e),l(t,e,r),y(t,e,r),f(t,e,r)]);return{exception:n,registerLocations:o,stacktraceLines:i,allocLocation:s}},...g},v=Object.keys(m);function w(t){return"string"==typeof t&&t in m}async function S(t,e,r=h){const i=t.targetArch??b,s=m[i];if(!s)throw new Error(o.unsupportedTargetArch(i));return function(t){const[e]=t.allocLocation??[];return e&&(0,n.j)(e)&&(e.file=x(e.file)),{...t,stacktraceLines:t.stacktraceLines.map((t=>(0,n.j)(t)?{...t,file:x(t.file)}:t)),registerLocations:Object.fromEntries(Object.entries(t.registerLocations).map((([t,e])=>[t,(0,n.j)(e)?{...e,file:x(e.file)}:e])))}}(await s(t,e,r))}function x(t){return"win32"===process.platform&&/^[a-zA-Z]:\\/.test(t)?t.replace(/\//g,"\\"):t}},3612:(t,e,r)=>{"use strict";var n=r(6556),o=n("Object.prototype.toString"),i=r(4039)(),s=r(9721);if(i){var a=n("Symbol.prototype.toString"),c=s(/^Symbol\(.*\)$/);t.exports=function(t){if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||"[object Symbol]"!==o(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&c(a(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},3628:(t,e,r)=>{"use strict";var n=r(8648),o=r(1064),i=r(7176);t.exports=n?function(t){return n(t)}:o?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return o(t)}:i?function(t){return i(t)}:null},3802:t=>{"use strict";var e,r="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;r||(e=function(t){return!1});var o=r?Map.prototype.has:null,i=n?Set.prototype.has:null;e||o||(e=function(t){return!1}),t.exports=e||function(t){if(!t||"object"!=typeof t)return!1;try{if(o.call(t),i)try{i.call(t)}catch(t){return!0}return t instanceof r}catch(t){}return!1}},3984:(t,e,r)=>{"use strict";var n=r(8452).supportsDescriptors,o=r(5330),i=r(5795),s=Object.defineProperty,a=r(9383),c=r(3628),u=/a/;t.exports=function(){if(!n||!c)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=o(),e=c(u),r=i(e,"flags");return r&&r.get===t||s(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},4035:(t,e,r)=>{"use strict";var n,o=r(6556),i=r(9092)(),s=r(9957),a=r(5795);if(i){var c=o("RegExp.prototype.exec"),u={},l=function(){throw u},p={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(p[Symbol.toPrimitive]=l),n=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!s(e,"value"))return!1;try{c(t,p)}catch(t){return t===u}}}else{var f=o("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===f(t)}}t.exports=n},4039:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(1333);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},4459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},4462:t=>{"use strict";var e=function(){return"string"==typeof function(){}.name},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch(t){r=null}e.functionsHaveConfigurableNames=function(){if(!e()||!r)return!1;var t=r((function(){}),"name");return!!t&&!!t.configurable};var n=Function.prototype.bind;e.boundFunctionsHaveNames=function(){return e()&&"function"==typeof n&&""!==function(){}.bind().name},t.exports=e},4670:(t,e,r)=>{"use strict";var n=r(487),o=r(6556),i=r(453)("%ArrayBuffer%",!0),s=o("ArrayBuffer.prototype.byteLength",!0),a=o("Object.prototype.toString"),c=!!i&&!s&&new i(0).slice,u=!!c&&n(c);t.exports=s||u?function(t){if(!t||"object"!=typeof t)return!1;try{return s?s(t):u(t,0),!0}catch(t){return!1}}:i?function(t){return"[object ArrayBuffer]"===a(t)}:function(t){return!1}},4761:(t,e,r)=>{"use strict";var n=r(6556),o=n("String.prototype.valueOf"),i=n("Object.prototype.toString"),s=r(9092)();t.exports=function(t){return"string"==typeof t||!(!t||"object"!=typeof t)&&(s?function(t){try{return o(t),!0}catch(t){return!1}}(t):"[object String]"===i(t))}},4803:(t,e,r)=>{"use strict";var n=r(8859),o=r(9675),i=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return i(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=i(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},4982:(t,e,r)=>{"use strict";var n=r(6525),o=r(8075),i=r(1589),s=r(453),a=r(1158),c=r(920),u=r(7653),l=r(7244),p=r(1451),f=r(4670),y=r(2120),d=r(4035),h=r(7070),g=r(1189),b=r(1539),m=r(593),v=r(5767),w=r(9511),S=o("SharedArrayBuffer.prototype.byteLength",!0),x=o("Date.prototype.getTime"),O=Object.getPrototypeOf,j=o("Object.prototype.toString"),A=s("%Set%",!0),C=o("Map.prototype.has",!0),E=o("Map.prototype.get",!0),P=o("Map.prototype.size",!0),_=o("Set.prototype.add",!0),I=o("Set.prototype.delete",!0),F=o("Set.prototype.has",!0),$=o("Set.prototype.size",!0);function M(t,e,r,n){for(var o,i=a(t);(o=i.next())&&!o.done;)if(L(e,o.value,r,n))return I(t,o.value),!0;return!1}function T(t){return void 0===t?null:"object"!=typeof t?"symbol"!=typeof t&&("string"!=typeof t&&"number"!=typeof t||+t==+t):void 0}function k(t,e,r,o,i,s){var a=T(r);if(null!=a)return a;var c=E(e,a),u=n({},i,{strict:!1});return!(void 0===c&&!C(e,a)||!L(o,c,u,s))&&!C(t,a)&&L(o,c,u,s)}function R(t,e,r){var n=T(r);return null!=n?n:F(e,n)&&!F(t,n)}function B(t,e,r,n,o,i){for(var s,c,u=a(t);(s=u.next())&&!s.done;)if(L(r,c=s.value,o,i)&&L(n,E(e,c),o,i))return I(t,c),!0;return!1}function L(t,e,r,o){var s=r||{};if(s.strict?u(t,e):t===e)return!0;if(b(t)!==b(e))return!1;if(!t||!e||"object"!=typeof t&&"object"!=typeof e)return s.strict?u(t,e):t==e;var c,I=o.has(t),T=o.has(e);if(I&&T){if(o.get(t)===o.get(e))return!0}else c={};return I||o.set(t,c),T||o.set(e,c),function(t,e,r,o){var s,c;if(typeof t!=typeof e)return!1;if(null==t||null==e)return!1;if(j(t)!==j(e))return!1;if(l(t)!==l(e))return!1;if(p(t)!==p(e))return!1;var u=t instanceof Error,b=e instanceof Error;if(u!==b)return!1;if((u||b)&&(t.name!==e.name||t.message!==e.message))return!1;var I=d(t),T=d(e);if(I!==T)return!1;if((I||T)&&(t.source!==e.source||i(t)!==i(e)))return!1;var U=y(t),D=y(e);if(U!==D)return!1;if((U||D)&&x(t)!==x(e))return!1;if(r.strict&&O&&O(t)!==O(e))return!1;var W=v(t),q=v(e);if(W!==q)return!1;if(W||q){if(t.length!==e.length)return!1;for(s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}var G=N(t),z=N(e);if(G!==z)return!1;if(G||z){if(t.length!==e.length)return!1;for(s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}var H=f(t),V=f(e);if(H!==V)return!1;if(H||V)return w(t)===w(e)&&"function"==typeof Uint8Array&&L(new Uint8Array(t),new Uint8Array(e),r,o);var J=h(t),Q=h(e);if(J!==Q)return!1;if(J||Q)return S(t)===S(e)&&"function"==typeof Uint8Array&&L(new Uint8Array(t),new Uint8Array(e),r,o);if(typeof t!=typeof e)return!1;var X=g(t),Y=g(e);if(X.length!==Y.length)return!1;for(X.sort(),Y.sort(),s=X.length-1;s>=0;s--)if(X[s]!=Y[s])return!1;for(s=X.length-1;s>=0;s--)if(!L(t[c=X[s]],e[c],r,o))return!1;var Z=m(t),K=m(e);return Z===K&&("Set"===Z||"Set"===K?function(t,e,r,n){if($(t)!==$(e))return!1;for(var o,i,s,c=a(t),u=a(e);(o=c.next())&&!o.done;)if(o.value&&"object"==typeof o.value)s||(s=new A),_(s,o.value);else if(!F(e,o.value)){if(r.strict)return!1;if(!R(t,e,o.value))return!1;s||(s=new A),_(s,o.value)}if(s){for(;(i=u.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!M(s,i.value,r.strict,n))return!1}else if(!r.strict&&!F(t,i.value)&&!M(s,i.value,r.strict,n))return!1;return 0===$(s)}return!0}(t,e,r,o):"Map"!==Z||function(t,e,r,o){if(P(t)!==P(e))return!1;for(var i,s,c,u,l,p,f=a(t),y=a(e);(i=f.next())&&!i.done;)if(u=i.value[0],l=i.value[1],u&&"object"==typeof u)c||(c=new A),_(c,u);else if(void 0===(p=E(e,u))&&!C(e,u)||!L(l,p,r,o)){if(r.strict)return!1;if(!k(t,e,u,l,r,o))return!1;c||(c=new A),_(c,u)}if(c){for(;(s=y.next())&&!s.done;)if(u=s.value[0],p=s.value[1],u&&"object"==typeof u){if(!B(c,t,u,p,r,o))return!1}else if(!(r.strict||t.has(u)&&L(E(t,u),p,r,o)||B(c,t,u,p,n({},r,{strict:!1}),o)))return!1;return 0===$(c)}return!0}(t,e,r,o))}(t,e,s,o)}function N(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0]||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))}t.exports=function(t,e,r){return L(t,e,r,c())}},5128:(t,e,r)=>{"use strict";var n=r(6556),o=n("Boolean.prototype.toString"),i=n("Object.prototype.toString"),s=r(9092)();t.exports=function(t){return"boolean"==typeof t||null!==t&&"object"==typeof t&&(s&&Symbol.toStringTag in t?function(t){try{return o(t),!0}catch(t){return!1}}(t):"[object Boolean]"===i(t))}},5317:t=>{"use strict";t.exports=require("child_process")},5330:(t,e,r)=>{"use strict";var n=r(7675),o=r(8452).supportsDescriptors,i=Object.getOwnPropertyDescriptor;t.exports=function(){if(o&&"gim"===/a/gim.flags){var t=i(RegExp.prototype,"flags");if(t&&"function"==typeof t.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var e="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){e+="d"}}),Object.defineProperty(r,"sticky",{get:function(){e+="y"}}),t.get.call(r),"dy"===e)return t.get}}return n}},5345:t=>{"use strict";t.exports=URIError},5753:(t,e,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?t.exports=r(7833):t.exports=r(6033)},5767:(t,e,r)=>{"use strict";var n=r(2682),o=r(9209),i=r(487),s=r(6556),a=r(5795),c=s("Object.