UNPKG

tap

Version:

A Test-Anything-Protocol library for JavaScript

1 lines 221 kB
!function(e){var r={};function a(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=r,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)a.d(t,i,function(r){return e[r]}.bind(null,i));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="",a(a.s=13)}([function(e,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decodeBase64=r.lazyStatic=r.memoizeByReference=r.memoizeByShallowEquality=r.objectsHaveShallowEquality=r.noop=r.binarySearch=r.triangle=r.fract=r.formatPercent=r.zeroPad=r.itReduce=r.itForEach=r.itMap=r.KeyedSet=r.getOrThrow=r.getOrElse=r.getOrInsert=r.sortBy=r.lastOf=void 0,r.lastOf=function(e){return e[e.length-1]||null},r.sortBy=function(e,r){e.sort((function(e,a){const t=r(e),i=r(a);return t<i?-1:t>i?1:0}))},r.getOrInsert=function(e,r,a){return e.has(r)||e.set(r,a(r)),e.get(r)},r.getOrElse=function(e,r,a){return e.has(r)?e.get(r):a(r)},r.getOrThrow=function(e,r){if(!e.has(r))throw new Error("Expected key "+r);return e.get(r)};class t{constructor(){this.map=new Map}getOrInsert(e){const r=e.key,a=this.map.get(r);return a||(this.map.set(r,e),e)}forEach(e){this.map.forEach(e)}[Symbol.iterator](){return this.map.values()}}function i(e){return e-Math.floor(e)}function n(e,r){for(let a in e)if(e[a]!==r[a])return!1;for(let a in r)if(e[a]!==r[a])return!1;return!0}function s(e){let r=null;return()=>(null==r&&(r={result:e()}),r.result)}r.KeyedSet=t,r.itMap=function*(e,r){for(let a of e)yield r(a)},r.itForEach=function(e,r){for(let a of e)r(a)},r.itReduce=function(e,r,a){let t=a;for(let a of e)t=r(t,a);return t},r.zeroPad=function(e,r){return new Array(Math.max(r-e.length,0)+1).join("0")+e},r.formatPercent=function(e){let r=e.toFixed(0)+"%";return 100===e?r="100%":e>99?r=">99%":e<.01?r="<0.01%":e<1?r=e.toFixed(2)+"%":e<10&&(r=e.toFixed(1)+"%"),r},r.fract=i,r.triangle=function(e){return 2*Math.abs(i(e)-.5)-1},r.binarySearch=function(e,r,a,t,i=1){for(console.assert(!isNaN(i)&&!isNaN(t));;){if(r-e<=i)return[e,r];const n=(r+e)/2;a(n)<t?e=n:r=n}},r.noop=function(...e){},r.objectsHaveShallowEquality=n,r.memoizeByShallowEquality=function(e){let r=null;return a=>{let t;return null==r?(t=e(a),r={args:a,result:t},t):(n(r.args,a)||(r.args=a,r.result=e(a)),r.result)}},r.memoizeByReference=function(e){let r=null;return a=>{let t;return null==r?(t=e(a),r={args:a,result:t},t):(r.args===a||(r.args=a,r.result=e(a)),r.result)}},r.lazyStatic=s;const v=s(()=>{const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Map;for(let a=0;a<e.length;a++)r.set(e.charAt(a),a);return r.set("=",-1),r});r.decodeBase64=function(e){const r=v();if(e.length%4!=0)throw new Error("Invalid length for base64 encoded string. Expected length % 4 = 0, got length = "+e.length);const a=e.length/4;let t;t=e.length>=4&&"="===e.charAt(e.length-1)?"="===e.charAt(e.length-2)?3*a-2:3*a-1:3*a;const i=new Uint8Array(t);let n=0;for(let t=0;t<a;t++){const a=e.charAt(4*t+0),s=e.charAt(4*t+1),v=e.charAt(4*t+2),o=e.charAt(4*t+3),f=r.get(a),l=r.get(s),_=r.get(v),u=r.get(o);if(null==f||null==l||null==_||null==u)throw new Error(`Invalid quartet at indices ${4*t} .. ${4*t+3}: ${e.substring(4*t,4*t+3)}`);i[n++]=f<<2|l>>4,"="!==v&&(i[n++]=(15&l)<<4|_>>2),"="!==o&&(i[n++]=(7&_)<<6|u)}if(n!==t)throw new Error(`Expected to decode ${t} bytes, but only decoded ${n})`);return i}},function(e,r,a){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[a]}})}:function(e,r,a,t){void 0===t&&(t=a),e[t]=r[a]}),i=this&&this.__exportStar||function(e,r){for(var a in e)"default"===a||r.hasOwnProperty(a)||t(r,e,a)};Object.defineProperty(r,"__esModule",{value:!0}),i(a(6),r),i(a(10),r)},function(e,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ByteFormatter=r.TimeFormatter=r.RawValueFormatter=void 0;const t=a(0);r.RawValueFormatter=class{constructor(){this.unit="none"}format(e){return e.toLocaleString()}};r.TimeFormatter=class{constructor(e){this.unit=e,this.multiplier="nanoseconds"===e?1e-9:"microseconds"===e?1e-6:"milliseconds"===e?.001:1}formatUnsigned(e){const r=e*this.multiplier;if(r/60>=1){const e=Math.floor(r/60),a=Math.floor(r-60*e).toString();return`${e}:${t.zeroPad(a,2)}`}return r/1>=1?r.toFixed(2)+"s":r/.001>=1?(r/.001).toFixed(2)+"ms":r/1e-6>=1?(r/1e-6).toFixed(2)+"µs":(r/1e-9).toFixed(2)+"ns"}format(e){return`${e<0?"-":""}${this.formatUnsigned(Math.abs(e))}`}};r.ByteFormatter=class{constructor(){this.unit="bytes"}format(e){return e<1024?e.toFixed(0)+" B":(e/=1024)<1024?e.toFixed(2)+" KB":(e/=1024)<1024?e.toFixed(2)+" MB":(e/=1024).toFixed(2)+" GB"}}},function(e,r,a){var t,i,n;!function(s,v){"use strict";i=[a(12)],void 0===(n="function"==typeof(t=function(e){var r=/(^|@)\S+:\d+/,a=/^\s*at .*(\S+:\d+|\(native\))/m,t=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(a))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(r){return r.stack.split("\n").filter((function(e){return!!e.match(a)}),this).map((function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var a=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),t=a.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(a=t?a.replace(t[0],""):a).split(/\s+/).slice(1),n=this.extractLocation(t?t[1]:i.pop()),s=i.join(" ")||void 0,v=["eval","<anonymous>"].indexOf(n[0])>-1?void 0:n[0];return new e({functionName:s,fileName:v,lineNumber:n[1],columnNumber:n[2],source:r})}),this)},parseFFOrSafari:function(r){return r.stack.split("\n").filter((function(e){return!e.match(t)}),this).map((function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===r.indexOf("@")&&-1===r.indexOf(":"))return new e({functionName:r});var a=/((.*".+"[^@]*)?[^@]*)(?:@)/,t=r.match(a),i=t&&t[1]?t[1]:void 0,n=this.extractLocation(r.replace(a,""));return new e({functionName:i,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:r})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(r){for(var a=/Line (\d+).*script (?:in )?(\S+)/i,t=r.message.split("\n"),i=[],n=2,s=t.length;n<s;n+=2){var v=a.exec(t[n]);v&&i.push(new e({fileName:v[2],lineNumber:v[1],source:t[n]}))}return i},parseOpera10:function(r){for(var a=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,t=r.stacktrace.split("\n"),i=[],n=0,s=t.length;n<s;n+=2){var v=a.exec(t[n]);v&&i.push(new e({functionName:v[3]||void 0,fileName:v[2],lineNumber:v[1],source:t[n]}))}return i},parseOpera11:function(a){return a.stack.split("\n").filter((function(e){return!!e.match(r)&&!e.match(/^Error created at/)}),this).map((function(r){var a,t=r.split("@"),i=this.extractLocation(t.pop()),n=t.shift()||"",s=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;n.match(/\(([^)]*)\)/)&&(a=n.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var v=void 0===a||"[arguments not available]"===a?void 0:a.split(",");return new e({functionName:s,args:v,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:r})}),this)}}})?t.apply(r,i):t)||(e.exports=n)}()},function(e,r,a){"use strict";function t(e,r){if(null!=e)return e;var a=new Error(void 0!==r?r:"Got unexpected "+e);throw a.framesToPop=1,a}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},function(e,r,a){var t=function(e){"use strict";var r=Object.prototype,a=r.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",s=t.toStringTag||"@@toStringTag";function v(e,r,a){return Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{v({},"")}catch(e){v=function(e,r,a){return e[r]=a}}function o(e,r,a,t){var i=r&&r.prototype instanceof _?r:_,n=Object.create(i.prototype),s=new M(t||[]);return n._invoke=function(e,r,a){var t="suspendedStart";return function(i,n){if("executing"===t)throw new Error("Generator is already running");if("completed"===t){if("throw"===i)throw n;return A()}for(a.method=i,a.arg=n;;){var s=a.delegate;if(s){var v=k(s,a);if(v){if(v===l)continue;return v}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===t)throw t="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);t="executing";var o=f(e,r,a);if("normal"===o.type){if(t=a.done?"completed":"suspendedYield",o.arg===l)continue;return{value:o.arg,done:a.done}}"throw"===o.type&&(t="completed",a.method="throw",a.arg=o.arg)}}}(e,a,s),n}function f(e,r,a){try{return{type:"normal",arg:e.call(r,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=o;var l={};function _(){}function u(){}function S(){}var c={};c[i]=function(){return this};var h=Object.getPrototypeOf,d=h&&h(h(H([])));d&&d!==r&&a.call(d,i)&&(c=d);var b=S.prototype=_.prototype=Object.create(c);function p(e){["next","throw","return"].forEach((function(r){v(e,r,(function(e){return this._invoke(r,e)}))}))}function m(e,r){var t;this._invoke=function(i,n){function s(){return new r((function(t,s){!function t(i,n,s,v){var o=f(e[i],e,n);if("throw"!==o.type){var l=o.arg,_=l.value;return _&&"object"==typeof _&&a.call(_,"__await")?r.resolve(_.__await).then((function(e){t("next",e,s,v)}),(function(e){t("throw",e,s,v)})):r.resolve(_).then((function(e){l.value=e,s(l)}),(function(e){return t("throw",e,s,v)}))}v(o.arg)}(i,n,t,s)}))}return t=t?t.then(s,s):s()}}function k(e,r){var a=e.iterator[r.method];if(void 0===a){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=void 0,k(e,r),"throw"===r.method))return l;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var t=f(a,e.iterator,r.arg);if("throw"===t.type)return r.method="throw",r.arg=t.arg,r.delegate=null,l;var i=t.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,l):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function w(e){var r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),this.tryEntries.push(r)}function g(e){var r=e.completion||{};r.type="normal",delete r.arg,e.completion=r}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function H(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var t=-1,n=function r(){for(;++t<e.length;)if(a.call(e,t))return r.value=e[t],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:A}}function A(){return{value:void 0,done:!0}}return u.prototype=b.constructor=S,S.constructor=u,u.displayName=v(S,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var r="function"==typeof e&&e.constructor;return!!r&&(r===u||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,v(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},p(m.prototype),m.prototype[n]=function(){return this},e.AsyncIterator=m,e.async=function(r,a,t,i,n){void 0===n&&(n=Promise);var s=new m(o(r,a,t,i),n);return e.isGeneratorFunction(a)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},p(b),v(b,s,"Generator"),b[i]=function(){return this},b.toString=function(){return"[object Generator]"},e.keys=function(e){var r=[];for(var a in e)r.push(a);return r.reverse(),function a(){for(;r.length;){var t=r.pop();if(t in e)return a.value=t,a.done=!1,a}return a.done=!0,a}},e.values=H,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(g),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function t(a,t){return s.type="throw",s.arg=e,r.next=a,t&&(r.method="next",r.arg=void 0),!!t}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],s=n.completion;if("root"===n.tryLoc)return t("end");if(n.tryLoc<=this.prev){var v=a.call(n,"catchLoc"),o=a.call(n,"finallyLoc");if(v&&o){if(this.prev<n.catchLoc)return t(n.catchLoc,!0);if(this.prev<n.finallyLoc)return t(n.finallyLoc)}else if(v){if(this.prev<n.catchLoc)return t(n.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return t(n.finallyLoc)}}}},abrupt:function(e,r){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=r&&r<=n.finallyLoc&&(n=null);var s=n?n.completion:{};return s.type=e,s.arg=r,n?(this.method="next",this.next=n.finallyLoc,l):this.complete(s)},complete:function(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),l},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),g(a),l}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc===e){var t=a.completion;if("throw"===t.type){var i=t.arg;g(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:H(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},function(e,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.importFromOldV8CPUProfile=r.importFromChromeCPUProfile=r.importFromChromeTimeline=r.isChromeTimeline=void 0;const t=a(7),i=a(0),n=a(2),s=a(9);r.isChromeTimeline=function(e){if(!Array.isArray(e))return!1;if(e.length<1)return!1;const r=e[0];return"pid"in r&&"tid"in r&&"ph"in r&&"cat"in r&&!!e.find(e=>"CpuProfile"===e.name||"Profile"===e.name||"ProfileChunk"===e.name)},r.importFromChromeTimeline=function(e,r){const a=new Map,t=new Map,n=new Map;i.sortBy(e,e=>e.ts);for(let r of e){if("CpuProfile"===r.name){const e=`${r.pid}:${r.tid}`,i=r.id||e;a.set(i,r.args.data.cpuProfile),t.set(i,e)}if("Profile"===r.name){const e=`${r.pid}:${r.tid}`;a.set(r.id||e,Object.assign({startTime:0,endTime:0,nodes:[],samples:[],timeDeltas:[]},r.args.data)),r.id&&t.set(r.id,`${r.pid}:${r.tid}`)}if("thread_name"===r.name&&n.set(`${r.pid}:${r.tid}`,r.args.name),"ProfileChunk"===r.name){const e=`${r.pid}:${r.tid}`,t=a.get(r.id||e);if(t){const e=r.args.data;e.cpuProfile&&(e.cpuProfile.nodes&&(t.nodes=t.nodes.concat(e.cpuProfile.nodes)),e.cpuProfile.samples&&(t.samples=t.samples.concat(e.cpuProfile.samples))),e.timeDeltas&&(t.timeDeltas=t.timeDeltas.concat(e.timeDeltas)),null!=e.startTime&&(t.startTime=e.startTime),null!=e.endTime&&(t.endTime=e.endTime)}else console.warn("Ignoring ProfileChunk for undeclared Profile with id "+(r.id||e))}}if(a.size>0){const e=[];let s=0;return i.itForEach(a.keys(),i=>{let v=null,o=t.get(i);o&&(v=n.get(o)||null);const f=_(a.get(i));v&&a.size>1?(f.setName(`${r} - ${v}`),"CrRendererMain"===v&&(s=e.length)):f.setName(""+r),e.push(f)}),{name:r,indexToView:s,profiles:e}}throw new Error("Could not find CPU profile in Timeline")};const v=new Map;function o(e){return i.getOrInsert(v,e,e=>{const r=e.functionName||"(anonymous)",a=e.url,t=e.lineNumber,i=e.columnNumber;return{key:`${r}:${a}:${t}:${i}`,name:r,file:a,line:t,col:i}})}function f(e){const{functionName:r,url:a}=e;return"native dummy.js"===a||("(root)"===r||"(idle)"===r)}function l(e){return"(garbage collector)"===e||"(program)"===e}function _(e){const r=new t.CallTreeProfileBuilder(e.endTime-e.startTime),a=new Map;for(let r of e.nodes)a.set(r.id,r);for(let r of e.nodes)if("number"==typeof r.parent&&(r.parent=a.get(r.parent)),r.children)for(let e of r.children){const t=a.get(e);t&&(t.parent=r)}const s=[],v=[];let _=e.timeDeltas[0],u=_,S=NaN;for(let r=0;r<e.samples.length;r++){const a=e.samples[r];if(a!=S&&(s.push(a),_<u?v.push(u):(v.push(_),u=_)),r===e.samples.length-1)isNaN(S)||(s.push(S),_<u?v.push(u):(v.push(_),u=_));else{_+=e.timeDeltas[r+1],S=a}}let c=[];for(let e=0;e<s.length;e++){const t=v[e],n=s[e];let _=a.get(n);if(!_)continue;let u=null;for(u=_;u&&-1===c.indexOf(u);u=l(u.callFrame.functionName)?i.lastOf(c):u.parent||null);for(;c.length>0&&i.lastOf(c)!=u;){const e=o(c.pop().callFrame);r.leaveFrame(e,t)}const S=[];for(let e=_;e&&e!=u&&!f(e.callFrame);e=l(e.callFrame.functionName)?i.lastOf(c):e.parent||null)S.push(e);S.reverse();for(let e of S)r.enterFrame(o(e.callFrame),t);c=c.concat(S)}for(let e=c.length-1;e>=0;e--)r.leaveFrame(o(c[e].callFrame),i.lastOf(v));return r.setValueFormatter(new n.TimeFormatter("microseconds")),r.build()}r.importFromChromeCPUProfile=_,r.importFromOldV8CPUProfile=function(e){return _(s.chromeTreeToNodes(e))}},function(e,r,a){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,a,t){void 0===t&&(t=a),Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[a]}})}:function(e,r,a,t){void 0===t&&(t=a),e[t]=r[a]}),i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&t(r,e,a);return i(r,e),r},s=this&&this.__awaiter||function(e,r,a,t){return new(a||(a=Promise))((function(i,n){function s(e){try{o(t.next(e))}catch(e){n(e)}}function v(e){try{o(t.throw(e))}catch(e){n(e)}}function o(e){var r;e.done?i(e.value):(r=e.value,r instanceof a?r:new a((function(e){e(r)}))).then(s,v)}o((t=t.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0}),r.CallTreeProfileBuilder=r.StackListProfileBuilder=r.Profile=r.CallTreeNode=r.Frame=r.HasWeights=void 0;const v=a(0),o=a(2),f=Promise.resolve().then(()=>n(a(8)));f.then(()=>{});class l{constructor(){this.selfWeight=0,this.totalWeight=0}getSelfWeight(){return this.selfWeight}getTotalWeight(){return this.totalWeight}addToTotalWeight(e){this.totalWeight+=e}addToSelfWeight(e){this.selfWeight+=e}overwriteWeightWith(e){this.selfWeight=e.selfWeight,this.totalWeight=e.totalWeight}}r.HasWeights=l;let _=(()=>{class e extends l{constructor(e){super(),this.key=e.key,this.name=e.name,this.file=e.file,this.line=e.line,this.col=e.col}static getOrInsert(r,a){return r.getOrInsert(new e(a))}}return e.root=new e({key:"(speedscope root)",name:"(speedscope root)"}),e})();r.Frame=_;class u extends l{constructor(e,r){super(),this.frame=e,this.parent=r,this.children=[],this.frozen=!1}isRoot(){return this.frame===_.root}isFrozen(){return this.frozen}freeze(){this.frozen=!0}}r.CallTreeNode=u;class S{constructor(e=0){this.name="",this.frames=new v.KeyedSet,this.appendOrderCalltreeRoot=new u(_.root,null),this.groupedCalltreeRoot=new u(_.root,null),this.samples=[],this.weights=[],this.valueFormatter=new o.RawValueFormatter,this.totalNonIdleWeight=null,this.totalWeight=e}getAppendOrderCalltreeRoot(){return this.appendOrderCalltreeRoot}getGroupedCalltreeRoot(){return this.groupedCalltreeRoot}formatValue(e){return this.valueFormatter.format(e)}setValueFormatter(e){this.valueFormatter=e}getWeightUnit(){return this.valueFormatter.unit}getName(){return this.name}setName(e){this.name=e}getTotalWeight(){return this.totalWeight}getTotalNonIdleWeight(){return null===this.totalNonIdleWeight&&(this.totalNonIdleWeight=this.groupedCalltreeRoot.children.reduce((e,r)=>e+r.getTotalWeight(),0)),this.totalNonIdleWeight}sortGroupedCallTree(){!function e(r){r.children.sort((e,r)=>-(e.getTotalWeight()-r.getTotalWeight())),r.children.forEach(e)}(this.groupedCalltreeRoot)}forEachCallGrouped(e,r){!function a(t,i){t.frame!==_.root&&e(t,i);let n=0;t.children.forEach((function(e){a(e,i+n),n+=e.getTotalWeight()})),t.frame!==_.root&&r(t,i+t.getTotalWeight())}(this.groupedCalltreeRoot,0)}forEachCall(e,r){let a=[],t=0,i=0;for(let n of this.samples){let s=null;for(s=n;s&&s.frame!=_.root&&-1===a.indexOf(s);s=s.parent);for(;a.length>0&&v.lastOf(a)!=s;){r(a.pop(),t)}const o=[];for(let e=n;e&&e.frame!=_.root&&e!=s;e=e.parent)o.push(e);o.reverse();for(let r of o)e(r,t);a=a.concat(o),t+=this.weights[i++]}for(let e=a.length-1;e>=0;e--)r(a[e],t)}forEachFrame(e){this.frames.forEach(e)}getProfileWithRecursionFlattened(){const e=new h,r=[],a=new Set;this.forEachCall((function(t,i){a.has(t.frame)?r.push(null):(a.add(t.frame),r.push(t),e.enterFrame(t.frame,i))}),(function(t,i){const n=r.pop();n&&(a.delete(n.frame),e.leaveFrame(n.frame,i))}));const t=e.build();return t.name=this.name,t.valueFormatter=this.valueFormatter,this.forEachFrame(e=>{t.frames.getOrInsert(e).overwriteWeightWith(e)}),t}getInvertedProfileForCallersOf(e){const r=_.getOrInsert(this.frames,e),a=new c,t=[];!function e(a){if(a.frame===r)t.push(a);else for(let r of a.children)e(r)}(this.appendOrderCalltreeRoot);for(let e of t){const r=[];for(let a=e;null!=a&&a.frame!==_.root;a=a.parent)r.push(a.frame);a.appendSampleWithWeight(r,e.getTotalWeight())}const i=a.build();return i.name=this.name,i.valueFormatter=this.valueFormatter,i}getProfileForCalleesOf(e){const r=_.getOrInsert(this.frames,e),a=new c;!function e(t){if(t.frame===r)!function(e){const r=[];!function e(t){r.push(t.frame),a.appendSampleWithWeight(r,t.getSelfWeight());for(let r of t.children)e(r);r.pop()}(e)}(t);else for(let r of t.children)e(r)}(this.appendOrderCalltreeRoot);const t=a.build();return t.name=this.name,t.valueFormatter=this.valueFormatter,t}demangle(){return s(this,void 0,void 0,(function*(){let e=null;for(let r of this.frames)r.name.startsWith("__Z")&&(e||(e=(yield f).demangleCpp),r.name=e(r.name))}))}remapNames(e){for(let r of this.frames)r.name=e(r.name)}}r.Profile=S;class c extends S{constructor(){super(...arguments),this.pendingSample=null}_appendSample(e,r,a){if(isNaN(r))throw new Error("invalid weight");let t=a?this.appendOrderCalltreeRoot:this.groupedCalltreeRoot,i=new Set;for(let n of e){const e=_.getOrInsert(this.frames,n),s=a?v.lastOf(t.children):t.children.find(r=>r.frame===e);if(s&&!s.isFrozen()&&s.frame==e)t=s;else{const r=t;t=new u(e,t),r.children.push(t)}t.addToTotalWeight(r),i.add(t.frame)}if(t.addToSelfWeight(r),a)for(let e of t.children)e.freeze();if(a){t.frame.addToSelfWeight(r);for(let e of i)e.addToTotalWeight(r);t===v.lastOf(this.samples)?this.weights[this.weights.length-1]+=r:(this.samples.push(t),this.weights.push(r))}}appendSampleWithWeight(e,r){if(0!==r){if(r<0)throw new Error("Samples must have positive weights");this._appendSample(e,r,!0),this._appendSample(e,r,!1)}}appendSampleWithTimestamp(e,r){if(this.pendingSample){if(r<this.pendingSample.centralTimestamp)throw new Error("Timestamps received out of order");const a=(r+this.pendingSample.centralTimestamp)/2;this.appendSampleWithWeight(this.pendingSample.stack,a-this.pendingSample.startTimestamp),this.pendingSample={stack:e,startTimestamp:a,centralTimestamp:r}}else this.pendingSample={stack:e,startTimestamp:r,centralTimestamp:r}}build(){return this.pendingSample&&(this.samples.length>0?this.appendSampleWithWeight(this.pendingSample.stack,this.pendingSample.centralTimestamp-this.pendingSample.startTimestamp):(this.appendSampleWithWeight(this.pendingSample.stack,1),this.setValueFormatter(new o.RawValueFormatter))),this.totalWeight=Math.max(this.totalWeight,this.weights.reduce((e,r)=>e+r,0)),this.sortGroupedCallTree(),this}}r.StackListProfileBuilder=c;class h extends S{constructor(){super(...arguments),this.appendOrderStack=[this.appendOrderCalltreeRoot],this.groupedOrderStack=[this.groupedCalltreeRoot],this.framesInStack=new Map,this.stack=[],this.lastValue=0}addWeightsToFrames(e){const r=e-this.lastValue;for(let e of this.framesInStack.keys())e.addToTotalWeight(r);const a=v.lastOf(this.stack);a&&a.addToSelfWeight(r)}addWeightsToNodes(e,r){const a=e-this.lastValue;for(let e of r)e.addToTotalWeight(a);const t=v.lastOf(r);t&&t.addToSelfWeight(a)}_enterFrame(e,r,a){let t=a?this.appendOrderStack:this.groupedOrderStack;this.addWeightsToNodes(r,t);let i=v.lastOf(t);if(i){if(a){const e=r-this.lastValue;if(e>0)this.samples.push(i),this.weights.push(r-this.lastValue);else if(e<0)throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${r}`)}const n=a?v.lastOf(i.children):i.children.find(r=>r.frame===e);let s;n&&!n.isFrozen()&&n.frame==e?s=n:(s=new u(e,i),i.children.push(s)),t.push(s)}}enterFrame(e,r){const a=_.getOrInsert(this.frames,e);this.addWeightsToFrames(r),this._enterFrame(a,r,!0),this._enterFrame(a,r,!1),this.stack.push(a);const t=this.framesInStack.get(a)||0;this.framesInStack.set(a,t+1),this.lastValue=r}_leaveFrame(e,r,a){let t=a?this.appendOrderStack:this.groupedOrderStack;if(this.addWeightsToNodes(r,t),a){const a=this.appendOrderStack.pop();if(null==a)throw new Error(`Trying to leave ${e.key} when stack is empty`);if(null==this.lastValue)throw new Error(`Trying to leave a ${e.key} before any have been entered`);if(a.freeze(),a.frame.key!==e.key)throw new Error(`Tried to leave frame "${e.name}" while frame "${a.frame.name}" was at the top at ${r}`);const t=r-this.lastValue;if(t>0)this.samples.push(a),this.weights.push(r-this.lastValue);else if(t<0)throw new Error(`Samples must be provided in increasing order of cumulative value. Last sample was ${this.lastValue}, this sample was ${r}`)}else this.groupedOrderStack.pop()}leaveFrame(e,r){const a=_.getOrInsert(this.frames,e);this.addWeightsToFrames(r),this._leaveFrame(a,r,!0),this._leaveFrame(a,r,!1),this.stack.pop();const t=this.framesInStack.get(a);null!=t&&(1===t?this.framesInStack.delete(a):this.framesInStack.set(a,t-1),this.lastValue=r,this.totalWeight=Math.max(this.totalWeight,this.lastValue))}build(){if(this.appendOrderStack.length>1||this.groupedOrderStack.length>1)throw new Error("Tried to complete profile construction with a non-empty stack");return this.sortGroupedCallTree(),this}}r.CallTreeProfileBuilder=h},function(e,r,a){"use strict";let t;Object.defineProperty(r,"__esModule",{value:!0}),r.demangleCpp=void 0;const i=new Map;r.demangleCpp=function(e){if(e.startsWith("__Z")){let r=i.get(e);void 0!==r||(t||(t=new Function("exports",n)()),r=t(e.slice(1)),r="(null)"===r?e:r,i.set(e,r)),e=r}return e};const n='\nreturn function(){function r(r){eval.call(null,r)}function a(r){throw print(r+":\\n"+(new Error).stack),ke=!0,"Assertion: "+r}function e(r,e){r||a("Assertion failed: "+e)}function i(r,a,i,v){function t(r,a){if("string"==a){var e=Oe;return le.stackAlloc(r.length+1),A(r,e),e}return r}function f(r,a){return"string"==a?s(r):r}try{func=ce.Module["_"+r]}catch(r){}e(func,"Cannot call unknown function "+r+" (perhaps LLVM optimizations or closure removed it?)");var _=0,n=v?v.map(function(r){return t(r,i[_++])}):[];return f(func.apply(null,n),a)}function v(r,a,e){return function(){return i(r,a,e,Array.prototype.slice.call(arguments))}}function t(r,e,i,v){switch(i=i||"i8","*"===i[i.length-1]&&(i="i32"),i){case"i1":Ae[r]=e;break;case"i8":Ae[r]=e;break;case"i16":ye[r>>1]=e;break;case"i32":Se[r>>2]=e;break;case"i64":Se[r>>2]=e;break;case"float":Ce[r>>2]=e;break;case"double":ze[0]=e,Se[r>>2]=xe[0],Se[r+4>>2]=xe[1];break;default:a("invalid type for setValue: "+i)}}function f(r,e,i){switch(e=e||"i8","*"===e[e.length-1]&&(e="i32"),e){case"i1":return Ae[r];case"i8":return Ae[r];case"i16":return ye[r>>1];case"i32":return Se[r>>2];case"i64":return Se[r>>2];case"float":return Ce[r>>2];case"double":return xe[0]=Se[r>>2],xe[1]=Se[r+4>>2],ze[0];default:a("invalid type for setValue: "+e)}return null}function _(r,a,e){var i,v;"number"==typeof r?(i=!0,v=r):(i=!1,v=r.length);var f="string"==typeof a?a:null,_=[Jr,le.stackAlloc,le.staticAlloc][void 0===e?we:e](Math.max(v,f?1:a.length));if(i)return Fa(_,0,v),_;for(var s,n=0;n<v;){var o=r[n];"function"==typeof o&&(o=le.getFunctionIndex(o)),s=f||a[n],0!==s?("i64"==s&&(s="i32"),t(_+n,o,s),n+=le.getNativeTypeSize(s)):n++}return _}function s(r,a){for(var e,i="undefined"==typeof a,v="",t=0,f=String.fromCharCode(0);;){if(e=String.fromCharCode(ge[r+t]),i&&e==f)break;if(v+=e,t+=1,!i&&t==a)break}return v}function n(r){for(var a="",e=0;e<r.length;e++)a+=String.fromCharCode(r[e]);return a}function o(r){return r+4095>>12<<12}function l(){for(;Le<=Ie;)Le=o(2*Le);var r=Ae,a=new ArrayBuffer(Le);Ae=new Int8Array(a),ye=new Int16Array(a),Se=new Int32Array(a),ge=new Uint8Array(a),me=new Uint16Array(a),Me=new Uint32Array(a),Ce=new Float32Array(a),Re=new Float64Array(a),Ae.set(r)}function b(r){for(;r.length>0;){var a=r.shift(),e=a.func;"number"==typeof e&&(e=pe[e]),e(void 0===a.arg?null:a.arg)}}function k(){b(Ve)}function u(){b(Be),be.print()}function c(r,a){return Array.prototype.slice.call(Ae.subarray(r,r+a))}function h(r,a){for(var e=new Uint8Array(a),i=0;i<a;++i)e[i]=Ae[r+i];return e.buffer}function d(r){for(var a=0;Ae[r+a];)a++;return a}function w(r,a){var e=d(r);a&&e++;var i=c(r,e);return a&&(i[e-1]=0),i}function p(r,a){for(var e=[],i=0;i<r.length;){var v=r.charCodeAt(i);v>255&&(v&=255),e.push(v),i+=1}return a||e.push(0),e}function E(r){for(var a=[],e=0;e<r.length;e++){var i=r[e];i>255&&(i&=255),a.push(String.fromCharCode(i))}return a.join("")}function A(r,a,e){for(var i=0;i<r.length;){var v=r.charCodeAt(i);v>255&&(v&=255),Ae[a+i]=v,i+=1}e||(Ae[a+i]=0)}function g(r,a,e,i){return r>=0?r:a<=32?2*Math.abs(1<<a-1)+r:Math.pow(2,a)+r}function y(r,a,e,i){if(r<=0)return r;var v=a<=32?Math.abs(1<<a-1):Math.pow(2,a-1);return r>=v&&(a<=32||r>v)&&(r=-2*v+r),r}function m(r,a,e){if(0==(0|r)|0==(0|a)|0==(0|e))var i=0;else{Se[r>>2]=0,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function S(r,a,e){if(0==(0|r)|(0|a)<0|0==(0|e))var i=0;else{Se[r>>2]=41,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function M(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=6,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function C(r,a,e){if(0==(0|r)|0==(0|e))var i=0;else{Se[r>>2]=7,Se[r+4>>2]=a,Se[r+8>>2]=e;var i=1}var i;return i}function R(r,a){var e,i=0==(0|a);do if(i)var v=0;else{var e=(r+32|0)>>2,t=Se[e];if((0|t)>=(0|Se[r+36>>2])){var v=0;break}var f=(t<<2)+Se[r+28>>2]|0;Se[f>>2]=a;var _=Se[e]+1|0;Se[e]=_;var v=1}while(0);var v;return v}function T(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==95;do if(t){var f=i+2|0;if(Se[e]=f,Ae[v]<<24>>24!=90){var _=0;break}var s=O(r,a),_=s}else var _=0;while(0);var _;return _}function O(r,a){var e=r+12|0,i=Ae[Se[e>>2]];r:do if(i<<24>>24==71||i<<24>>24==84)var v=Tr(r),t=v;else{var f=Ar(r),_=0==(0|f)|0==(0|a);do if(!_){if(0!=(1&Se[r+8>>2]|0))break;var s=Me[f>>2],n=(s-25|0)>>>0<3;a:do if(n)for(var o=f;;){var o,l=Me[o+4>>2],b=Me[l>>2];if((b-25|0)>>>0>=3){var k=l,u=b;break a}var o=l}else var k=f,u=s;while(0);var u,k;if(2!=(0|u)){var t=k;break r}var c=k+8|0,h=Me[c>>2],d=(Se[h>>2]-25|0)>>>0<3;a:do if(d)for(var w=h;;){var w,p=Me[w+4>>2];if((Se[p>>2]-25|0)>>>0>=3){var E=p;break a}var w=p}else var E=h;while(0);var E;Se[c>>2]=E;var t=k;break r}while(0);var A=Ae[Se[e>>2]];if(A<<24>>24==0||A<<24>>24==69){var t=f;break}var g=Or(f),y=Sr(r,g),m=D(r,3,f,y),t=m}while(0);var t;return t}function N(r){var a,e,i=Oe;Oe+=4;var v=i,e=v>>2,a=(r+12|0)>>2,t=Me[a],f=Ae[t],_=f<<24>>24;r:do if(f<<24>>24==114||f<<24>>24==86||f<<24>>24==75){var s=I(r,v,0);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=Se[e],b=R(r,l);if(0==(0|b)){var n=0;break}var n=Se[e]}else{do{if(97==(0|_)||98==(0|_)||99==(0|_)||100==(0|_)||101==(0|_)||102==(0|_)||103==(0|_)||104==(0|_)||105==(0|_)||106==(0|_)||108==(0|_)||109==(0|_)||110==(0|_)||111==(0|_)||115==(0|_)||116==(0|_)||118==(0|_)||119==(0|_)||120==(0|_)||121==(0|_)||122==(0|_)){var k=ai+20*(_-97)|0,u=P(r,k);Se[e]=u;var c=r+48|0,h=Se[c>>2]+Se[Se[u+4>>2]+4>>2]|0;Se[c>>2]=h;var d=Se[a]+1|0;Se[a]=d;var n=u;break r}if(117==(0|_)){Se[a]=t+1|0;var w=L(r),p=D(r,34,w,0);Se[e]=p;var E=p}else if(70==(0|_)){var A=F(r);Se[e]=A;var E=A}else if(48==(0|_)||49==(0|_)||50==(0|_)||51==(0|_)||52==(0|_)||53==(0|_)||54==(0|_)||55==(0|_)||56==(0|_)||57==(0|_)||78==(0|_)||90==(0|_)){var g=X(r);Se[e]=g;var E=g}else if(65==(0|_)){var y=j(r);Se[e]=y;var E=y}else if(77==(0|_)){var m=U(r);Se[e]=m;var E=m}else if(84==(0|_)){var S=x(r);if(Se[e]=S,Ae[Se[a]]<<24>>24!=73){var E=S;break}var M=R(r,S);if(0==(0|M)){var n=0;break r}var C=Se[e],T=z(r),O=D(r,4,C,T);Se[e]=O;var E=O}else if(83==(0|_)){var B=ge[t+1|0];if((B-48&255&255)<10|B<<24>>24==95|(B-65&255&255)<26){var H=V(r,0);if(Se[e]=H,Ae[Se[a]]<<24>>24!=73){var n=H;break r}var K=z(r),Y=D(r,4,H,K);Se[e]=Y;var E=Y}else{var G=X(r);if(Se[e]=G,0==(0|G)){var E=0;break}if(21==(0|Se[G>>2])){var n=G;break r}var E=G}}else if(80==(0|_)){Se[a]=t+1|0;var W=N(r),Z=D(r,29,W,0);Se[e]=Z;var E=Z}else if(82==(0|_)){Se[a]=t+1|0;var Q=N(r),q=D(r,30,Q,0);Se[e]=q;var E=q}else if(67==(0|_)){Se[a]=t+1|0;var $=N(r),J=D(r,31,$,0);Se[e]=J;var E=J}else if(71==(0|_)){Se[a]=t+1|0;var rr=N(r),ar=D(r,32,rr,0);Se[e]=ar;var E=ar}else{if(85!=(0|_)){var n=0;break r}Se[a]=t+1|0;var er=L(r);Se[e]=er;var ir=N(r),vr=Se[e],tr=D(r,28,ir,vr);Se[e]=tr;var E=tr}}while(0);var E,fr=R(r,E);if(0==(0|fr)){var n=0;break}var n=Se[e]}while(0);var n;return Oe=i,n}function I(r,a,e){for(var i,v=r+12|0,t=0!=(0|e),f=t?25:22,i=(r+48|0)>>2,_=t?26:23,s=t?27:24,n=a;;){var n,o=Se[v>>2],l=Ae[o];if(l<<24>>24!=114&&l<<24>>24!=86&&l<<24>>24!=75){var b=n;break}var k=o+1|0;if(Se[v>>2]=k,l<<24>>24==114){var u=Se[i]+9|0;Se[i]=u;var c=f}else if(l<<24>>24==86){var h=Se[i]+9|0;Se[i]=h;var c=_}else{var d=Se[i]+6|0;Se[i]=d;var c=s}var c,w=D(r,c,0,0);if(Se[n>>2]=w,0==(0|w)){var b=0;break}var n=w+4|0}var b;return b}function P(r,a){var e=0==(0|a);do if(e)var i=0;else{var v=J(r);if(0==(0|v)){var i=0;break}Se[v>>2]=33,Se[v+4>>2]=a;var i=v}while(0);var i;return i}function D(r,a,e,i){var v,t;do{if(1==(0|a)||2==(0|a)||3==(0|a)||4==(0|a)||10==(0|a)||28==(0|a)||37==(0|a)||43==(0|a)||44==(0|a)||45==(0|a)||46==(0|a)||47==(0|a)||48==(0|a)||49==(0|a)||50==(0|a)){if(0==(0|e)|0==(0|i)){var f=0;t=7;break}t=5;break}if(8==(0|a)||9==(0|a)||11==(0|a)||12==(0|a)||13==(0|a)||14==(0|a)||15==(0|a)||16==(0|a)||17==(0|a)||18==(0|a)||19==(0|a)||20==(0|a)||29==(0|a)||30==(0|a)||31==(0|a)||32==(0|a)||34==(0|a)||38==(0|a)||39==(0|a)||42==(0|a)){if(0==(0|e)){var f=0;t=7;break}t=5;break}if(36==(0|a)){if(0==(0|i)){var f=0;t=7;break}t=5;break}if(35==(0|a)||22==(0|a)||23==(0|a)||24==(0|a)||25==(0|a)||26==(0|a)||27==(0|a))t=5;else{var f=0;t=7}}while(0);do if(5==t){var _=J(r),v=_>>2;if(0==(0|_)){var f=0;break}Se[v]=a,Se[v+1]=e,Se[v+2]=i;var f=_}while(0);var f;return f}function L(r){var a=sr(r);if((0|a)<1)var e=0;else{var i=Rr(r,a);Se[r+44>>2]=i;var e=i}var e;return e}function F(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;if(Se[a]=i,Ae[e]<<24>>24==70){if(Ae[i]<<24>>24==89){var v=e+2|0;Se[a]=v}var t=Sr(r,1),f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==69?t:0,n=s}else var n=0;var n;return n}function X(r){var a=Ar(r);return a}function j(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==65;do if(v){var t=Ae[i];if(t<<24>>24==95)var f=0;else if((t-48&255&255)<10){for(var _=i;;){var _,s=_+1|0;if(Se[a]=s,(Ae[s]-48&255&255)>=10)break;var _=s}var n=s-i|0,o=lr(r,i,n);if(0==(0|o)){var l=0;break}var f=o}else{var b=nr(r);if(0==(0|b)){var l=0;break}var f=b}var f,k=Se[a],u=k+1|0;if(Se[a]=u,Ae[k]<<24>>24!=95){var l=0;break}var c=N(r),h=D(r,36,f,c),l=h}else var l=0;while(0);var l;return l}function U(r){var a=Oe;Oe+=4;var e=a,i=r+12|0,v=Se[i>>2],t=v+1|0;Se[i>>2]=t;var f=Ae[v]<<24>>24==77;r:do if(f){var _=N(r),s=I(r,e,1);if(0==(0|s)){var n=0;break}var o=N(r);Se[s>>2]=o;var l=(0|s)==(0|e);do if(!l){if(35==(0|Se[o>>2]))break;var b=Se[e>>2],k=R(r,b);if(0==(0|k)){var n=0;break r}}while(0);var u=Se[e>>2],c=D(r,37,_,u),n=c}else var n=0;while(0);var n;return Oe=a,n}function x(r){var a,a=(r+12|0)>>2,e=Se[a],i=e+1|0;Se[a]=i;var v=Ae[e]<<24>>24==84;do if(v){if(Ae[i]<<24>>24==95)var t=0,f=i;else{var _=sr(r);if((0|_)<0){var s=0;break}var t=_+1|0,f=Se[a]}var f,t;if(Se[a]=f+1|0,Ae[f]<<24>>24!=95){var s=0;break}var n=r+40|0,o=Se[n>>2]+1|0;Se[n>>2]=o;var l=Er(r,t),s=l}else var s=0;while(0);var s;return s}function z(r){var a,e=Oe;Oe+=4;var i=e,v=r+44|0,t=Se[v>>2],a=(r+12|0)>>2,f=Se[a],_=f+1|0;Se[a]=_;var s=Ae[f]<<24>>24==73;r:do if(s){Se[i>>2]=0;for(var n=i;;){var n,o=_r(r);if(0==(0|o)){var l=0;break r}var b=D(r,39,o,0);if(Se[n>>2]=b,0==(0|b)){var l=0;break r}var k=Se[a];if(Ae[k]<<24>>24==69)break;var n=b+8|0}var u=k+1|0;Se[a]=u,Se[v>>2]=t;var l=Se[i>>2]}else var l=0;while(0);var l;return Oe=e,l}function V(r,a){var e,e=(r+12|0)>>2,i=Se[e],v=i+1|0;Se[e]=v;var t=Ae[i]<<24>>24==83;r:do if(t){var f=i+2|0;Se[e]=f;var _=ge[v];if(_<<24>>24==95)var s=0;else{if(!((_-48&255&255)<10|(_-65&255&255)<26)){var n=8&Se[r+8>>2],o=n>>>3,l=0!=(0|n)|0==(0|a);do if(l)var b=o;else{if((Ae[f]-67&255&255)>=2){var b=o;break}var b=1}while(0);for(var b,k=0|ei;;){var k;if(k>>>0>=(ei+196|0)>>>0){var u=0;break r}if(_<<24>>24==Ae[0|k]<<24>>24)break;var k=k+28|0}var c=Se[k+20>>2];if(0!=(0|c)){var h=Se[k+24>>2],d=fr(r,c,h);Se[r+44>>2]=d}if(0==(0|b))var w=k+8|0,p=k+4|0;else var w=k+16|0,p=k+12|0;var p,w,E=Se[w>>2],A=Se[p>>2],g=r+48|0,y=Se[g>>2]+E|0;Se[g>>2]=y;var m=fr(r,A,E),u=m;break}for(var S=_,M=0,C=f;;){var C,M,S;if((S-48&255&255)<10)var R=36*M-48|0;else{if((S-65&255&255)>=26){var u=0;break r}var R=36*M-55|0}var R,T=(S<<24>>24)+R|0;if((0|T)<0){var u=0;break r}var O=C+1|0;Se[e]=O;var N=ge[C];if(N<<24>>24==95)break;var S=N,M=T,C=O}var s=T+1|0}var s;if((0|s)>=(0|Se[r+32>>2])){var u=0;break}var I=r+40|0,P=Se[I>>2]+1|0;Se[I>>2]=P;var u=Se[Se[r+28>>2]+(s<<2)>>2]}else var u=0;while(0);var u;return u}function B(r,a,e,i){var v,t,f,_,s=Oe;Oe+=28;var n,o=s,_=o>>2;Se[_]=r;var l=e+1|0,f=(o+12|0)>>2;Se[f]=l;var b=Jr(l),t=(o+4|0)>>2;if(Se[t]=b,0==(0|b))var k=0,u=1;else{var v=(o+8|0)>>2;Se[v]=0,Se[_+4]=0,Se[_+5]=0;var c=o+24|0;Se[c>>2]=0,H(o,a);var h=Me[t],d=0==(0|h);do{if(!d){var w=Me[v];if(w>>>0>=Me[f]>>>0){n=5;break}Se[v]=w+1|0,Ae[h+w|0]=0,n=6;break}n=5}while(0);5==n&&Y(o,0);var p=Se[t],E=0==(0|p)?Se[c>>2]:Se[f],k=p,u=E}var u,k;return Se[i>>2]=u,Oe=s,k}function H(r,a){var e,i,v,t,f,_,s,n,o,l,b,k,u,c,h,d,w,p,E,A,g,y,m,S,M,C,R,T,O,N,I,P,D,L,F,X,j,U,x,z,V,B,K,G,W,J,vr,tr,fr,_r,sr,nr,or,lr,br,kr,ur,cr,hr,dr,wr,pr=a>>2,Er=r>>2,Ar=Oe;Oe+=184;var gr,yr=Ar,wr=yr>>2,mr=Ar+64,dr=mr>>2,Sr=Ar+72,Mr=Ar+88,Cr=Ar+104,hr=Cr>>2,Rr=Ar+168,Tr=0==(0|a);r:do if(Tr)Z(r);else{var cr=(r+4|0)>>2,Or=Me[cr];if(0==(0|Or))break;var Nr=0|a,Ir=Me[Nr>>2];a:do{if(0==(0|Ir)){if(0!=(4&Se[Er]|0)){var Pr=Se[pr+1],Dr=Se[pr+2];q(r,Pr,Dr);break r}var ur=(r+8|0)>>2,Lr=Me[ur],Fr=a+8|0,Xr=Me[Fr>>2];if((Xr+Lr|0)>>>0>Me[Er+3]>>>0){var jr=Se[pr+1];Q(r,jr,Xr);break r}var Ur=Or+Lr|0,xr=Se[pr+1];Pa(Ur,xr,Xr,1);var zr=Se[ur]+Se[Fr>>2]|0;Se[ur]=zr;break r}if(1==(0|Ir)||2==(0|Ir)){var Vr=Se[pr+1];H(r,Vr);var Br=0==(4&Se[Er]|0),Hr=Me[cr],Kr=0!=(0|Hr);e:do if(Br){do if(Kr){var kr=(r+8|0)>>2,Yr=Me[kr];if((Yr+2|0)>>>0>Me[Er+3]>>>0)break;var Gr=Hr+Yr|0;oe=14906,Ae[Gr]=255&oe,oe>>=8,Ae[Gr+1]=255&oe;var Wr=Se[kr]+2|0;Se[kr]=Wr;break e}while(0);Q(r,0|He.__str120,2)}else{do if(Kr){var Zr=r+8|0,Qr=Me[Zr>>2];if(Qr>>>0>=Me[Er+3]>>>0)break;Se[Zr>>2]=Qr+1|0,Ae[Hr+Qr|0]=46;break e}while(0);Y(r,46)}while(0);var qr=Se[pr+2];H(r,qr);break r}if(3==(0|Ir)){for(var br=(r+20|0)>>2,$r=Me[br],lr=(r+16|0)>>2,Jr=a,ra=0,aa=$r;;){var aa,ra,Jr,ea=Me[Jr+4>>2];if(0==(0|ea)){var ia=ra,va=0;gr=33;break}if(ra>>>0>3){Z(r);break r}var ta=(ra<<4)+yr|0;Se[ta>>2]=aa,Se[br]=ta,Se[((ra<<4)+4>>2)+wr]=ea,Se[((ra<<4)+8>>2)+wr]=0;var fa=Me[lr];Se[((ra<<4)+12>>2)+wr]=fa;var _a=ra+1|0,sa=0|ea,na=Me[sa>>2];if((na-25|0)>>>0>=3){gr=25;break}var Jr=ea,ra=_a,aa=ta}e:do if(25==gr){if(4==(0|na)){Se[dr]=fa,Se[lr]=mr,Se[dr+1]=ea;var oa=Se[sa>>2],la=mr}else var oa=na,la=fa;var la,oa;if(2!=(0|oa)){var ia=_a,va=sa;break}for(var ba=_a,ka=ea+8|0;;){var ka,ba,ua=Me[ka>>2];if((Se[ua>>2]-25|0)>>>0>=3){var ia=ba,va=sa;break e}if(ba>>>0>3)break;var ca=(ba<<4)+yr|0,ha=ba-1|0,da=(ha<<4)+yr|0,or=ca>>2,nr=da>>2;Se[or]=Se[nr],Se[or+1]=Se[nr+1],Se[or+2]=Se[nr+2],Se[or+3]=Se[nr+3],Se[ca>>2]=da,Se[br]=ca,Se[((ha<<4)+4>>2)+wr]=ua,Se[((ha<<4)+8>>2)+wr]=0,Se[((ha<<4)+12>>2)+wr]=la;var ba=ba+1|0,ka=ua+4|0}Z(r);break r}while(0);var va,ia,wa=Se[pr+2];if(H(r,wa),4==(0|Se[va>>2])){var pa=Se[dr];Se[lr]=pa}var Ea=0==(0|ia);e:do if(!Ea)for(var Aa=r+8|0,ga=r+12|0,ya=ia;;){var ya,ma=ya-1|0;if(0==(0|Se[((ma<<4)+8>>2)+wr])){var Sa=Me[cr],Ma=0==(0|Sa);do{if(!Ma){var Ca=Me[Aa>>2];if(Ca>>>0>=Me[ga>>2]>>>0){gr=41;break}Se[Aa>>2]=Ca+1|0,Ae[Sa+Ca|0]=32,gr=42;break}gr=41}while(0);41==gr&&Y(r,32);var Ra=Se[((ma<<4)+4>>2)+wr];$(r,Ra)}if(0==(0|ma))break e;var ya=ma}while(0);Se[br]=$r;break r}if(4==(0|Ir)){var sr=(r+20|0)>>2,Ta=Se[sr];Se[sr]=0;var Oa=Se[pr+1];H(r,Oa);var Na=Me[cr],Ia=0==(0|Na);do{if(!Ia){var _r=(r+8|0)>>2,Da=Me[_r],La=0==(0|Da);do if(!La){if(Ae[Na+(Da-1)|0]<<24>>24!=60)break;Da>>>0<Me[Er+3]>>>0?(Se[_r]=Da+1|0,Ae[Na+Da|0]=32):Y(r,32)}while(0);var Fa=Me[cr];if(0==(0|Fa)){gr=54;break}var Xa=Me[_r];if(Xa>>>0>=Me[Er+3]>>>0){gr=54;break}Se[_r]=Xa+1|0,Ae[Fa+Xa|0]=60,gr=55;break}gr=54}while(0);54==gr&&Y(r,60);var ja=Se[pr+2];H(r,ja);var Ua=Me[cr],xa=0==(0|Ua);do{if(!xa){var fr=(r+8|0)>>2,za=Me[fr],Va=0==(0|za);do if(!Va){if(Ae[Ua+(za-1)|0]<<24>>24!=62)break;za>>>0<Me[Er+3]>>>0?(Se[fr]=za+1|0,Ae[Ua+za|0]=32):Y(r,32)}while(0);var Ba=Me[cr];if(0==(0|Ba)){gr=64;break}var Ha=Me[fr];if(Ha>>>0>=Me[Er+3]>>>0){gr=64;break}Se[fr]=Ha+1|0,Ae[Ba+Ha|0]=62,gr=65;break}gr=64}while(0);64==gr&&Y(r,62),Se[sr]=Ta;break r}if(5==(0|Ir)){var tr=(r+16|0)>>2,Ka=Me[tr];if(0==(0|Ka)){Z(r);break r}for(var Ya=Se[pr+1],Ga=Se[Ka+4>>2];;){var Ga,Ya,Wa=Se[Ga+8>>2];if(0==(0|Wa))break;if(39!=(0|Se[Wa>>2])){Z(r);break r}if((0|Ya)<1){if(0!=(0|Ya))break;var Za=Se[Ka>>2];Se[tr]=Za;var Qa=Se[Wa+4>>2];H(r,Qa),Se[tr]=Ka;break r}var Ya=Ya-1|0,Ga=Wa}Z(r);break r}if(6==(0|Ir)){var qa=Se[pr+2];H(r,qa);break r}if(7==(0|Ir)){var $a=r+8|0,Ja=Me[$a>>2];Ja>>>0<Me[Er+3]>>>0?(Se[$a>>2]=Ja+1|0,Ae[Or+Ja|0]=126):Y(r,126);var re=Se[pr+2];H(r,re);break r}if(8==(0|Ir)){var vr=(r+8|0)>>2,ae=Me[vr];if((ae+11|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str121,11);else{for(var ee=Or+ae|0,ie=0|He.__str121,ve=ee,te=ie+11;ie<te;ie++,ve++)Ae[ve]=Ae[ie];var fe=Se[vr]+11|0;Se[vr]=fe}var _e=Se[pr+1];H(r,_e);break r}if(9==(0|Ir)){var J=(r+8|0)>>2,se=Me[J];if((se+8|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str122,8);else{var ne=Or+se|0,le=0|ne;oe=542397526,Ae[le]=255&oe,oe>>=8,Ae[le+1]=255&oe,oe>>=8,Ae[le+2]=255&oe,oe>>=8,Ae[le+3]=255&oe;var be=ne+4|0;oe=544370534,Ae[be]=255&oe,oe>>=8,Ae[be+1]=255&oe,oe>>=8,Ae[be+2]=255&oe,oe>>=8,Ae[be+3]=255&oe;var ke=Se[J]+8|0;Se[J]=ke}var ue=Se[pr+1];H(r,ue);break r}if(10==(0|Ir)){var W=(r+8|0)>>2,ce=Me[W],he=r+12|0;if((ce+24|0)>>>0>Me[he>>2]>>>0)Q(r,0|He.__str123,24);else{var de=Or+ce|0;Pa(de,0|He.__str123,24,1);var we=Se[W]+24|0;Se[W]=we}var pe=Se[pr+1];H(r,pe);var Ee=Me[cr],ge=0==(0|Ee);do{if(!ge){var ye=Me[W];if((ye+4|0)>>>0>Me[he>>2]>>>0){gr=96;break}var me=Ee+ye|0;oe=762210605,Ae[me]=255&oe,oe>>=8,Ae[me+1]=255&oe,oe>>=8,Ae[me+2]=255&oe,oe>>=8,Ae[me+3]=255&oe;var Ce=Se[W]+4|0;Se[W]=Ce,gr=97;break}gr=96}while(0);96==gr&&Q(r,0|He.__str124,4);var Re=Se[pr+2];H(r,Re);break r}if(11==(0|Ir)){var G=(r+8|0)>>2,Te=Me[G];if((Te+13|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str125,13);else{for(var Ne=Or+Te|0,ie=0|He.__str125,ve=Ne,te=ie+13;ie<te;ie++,ve++)Ae[ve]=Ae[ie];var Ie=Se[G]+13|0;Se[G]=Ie}var Pe=Se[pr+1];H(r,Pe);break r}if(12==(0|Ir)){var K=(r+8|0)>>2,De=Me[K];if((De+18|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str126,18);else{for(var Le=Or+De|0,ie=0|He.__str126,ve=Le,te=ie+18;ie<te;ie++,ve++)Ae[ve]=Ae[ie];var Fe=Se[K]+18|0;Se[K]=Fe}var Xe=Se[pr+1];H(r,Xe);break r}if(13==(0|Ir)){var B=(r+8|0)>>2,je=Me[B];if((je+16|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str127,16);else{for(var Ue=Or+je|0,ie=0|He.__str127,ve=Ue,te=ie+16;ie<te;ie++,ve++)Ae[ve]=Ae[ie];var xe=Se[B]+16|0;Se[B]=xe}var ze=Se[pr+1];H(r,ze);break r}if(14==(0|Ir)){var V=(r+8|0)>>2,Ve=Me[V];if((Ve+21|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str128,21);else{var Be=Or+Ve|0;Pa(Be,0|He.__str128,21,1);var Ke=Se[V]+21|0;Se[V]=Ke}var Ye=Se[pr+1];H(r,Ye);break r}if(15==(0|Ir)){var z=(r+8|0)>>2,Ge=Me[z];if((Ge+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str129,17);else{for(var We=Or+Ge|0,ie=0|He.__str129,ve=We,te=ie+17;ie<te;ie++,ve++)Ae[ve]=Ae[ie];var Ze=Se[z]+17|0;Se[z]=Ze}var Qe=Se[pr+1];H(r,Qe);break r}if(16==(0|Ir)){var x=(r+8|0)>>2,qe=Me[x];if((qe+26|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str130,26);else{var $e=Or+qe|0;Pa($e,0|He.__str130,26,1);var Je=Se[x]+26|0;Se[x]=Je}var ri=Se[pr+1];H(r,ri);break r}if(17==(0|Ir)){var U=(r+8|0)>>2,ai=Me[U];if((ai+15|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str131,15);else{for(var ei=Or+ai|0,ie=0|He.__str131,ve=ei,te=ie+15;ie<te;ie++,ve++)Ae[ve]=Ae[ie];var ii=Se[U]+15|0;Se[U]=ii}var vi=Se[pr+1];H(r,vi);break r}if(18==(0|Ir)){var j=(r+8|0)>>2,ti=Me[j];if((ti+19|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str132,19);else{for(var fi=Or+ti|0,ie=0|He.__str132,ve=fi,te=ie+19;ie<te;ie++,ve++)Ae[ve]=Ae[ie];var _i=Se[j]+19|0;Se[j]=_i}var si=Se[pr+1];H(r,si);break r}if(19==(0|Ir)){var X=(r+8|0)>>2,ni=Me[X];if((ni+24|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str133,24);else{var oi=Or+ni|0;Pa(oi,0|He.__str133,24,1);var li=Se[X]+24|0;Se[X]=li}var bi=Se[pr+1];H(r,bi);break r}if(20==(0|Ir)){var F=(r+8|0)>>2,ki=Me[F];if((ki+17|0)>>>0>Me[Er+3]>>>0)Q(r,0|He.__str134,17);else{for(var ui=Or+ki|0,ie=0|He.__str134,ve=ui,te=ie+17;ie<te;ie++,ve++)Ae[ve]=Ae[ie];var ci=Se[F]+17|0;Se[F]=ci}var hi=Se[pr+1];H(r,hi);break r}if(21==(0|Ir)){var L=(r+8|0)>>2,di=Me[L],wi=a+8|0,pi=Me[wi>>2];if((pi+di|0)>>>0>Me[Er+3]>>>0){var Ei=Se[pr+1];Q(r,Ei,pi);break r}var Ai=Or+di|0,gi=Se[pr+1];Pa(Ai,gi,pi,1);var yi=Se[L]+Se[wi>>2]|0;Se[L]=yi;break r}if(22==(0|Ir)||23==(0|Ir)||24==(0|Ir)){for(var mi=r+20|0;;){var mi,Si=Me[mi>>2];if(0==(0|Si))break a;if(0==(0|Se[Si+8>>2])){var Mi=Me[Se[Si+4>>2]>>2];if((Mi-22|0)>>>0>=3)break a;if((0|Mi)==(0|Ir))break}var mi=0|Si}var Ci=Se[pr+1];H(r,Ci);break r}if(25!=(0|Ir)&&26!=(0|Ir)&&27!=(0|Ir)&&28!=(0|Ir)&&29!=(0|Ir)&&30!=(0|Ir)&&31!=(0|Ir)&&32!=(0|Ir)){if(33==(0|Ir)){var D=(r+8|0)>>2,Ri=Me[D],P=(a+4|0)>>2,I=Me[P]>>2;if(0==(4&Se[Er]|0)){var Ti=Me[I+1];if((Ti+Ri|0)>>>0>Me[Er+3]>>>0){var Oi=Se[I];Q(r,Oi,Ti);break r}var Ni=Or+Ri|0,Ii=Se[I];Pa(Ni,Ii,Ti,1);var Pi=Se[D]+Se[Se[P]+4>>2]|0;Se[D]=Pi;break r}var Di=Me[I+3];if((Di+Ri|0)>>>0>Me[Er+3]>>>0){var Li=Se[I+2];Q(r,Li,Di);break r}var Fi=Or+Ri|0,Xi=Se[I+2];Pa(Fi,Xi,Di,1);var ji=Se[D]+Se[Se[P]+12>>2]|0;Se[D]=ji;break r}if(34==(0|Ir)){var Ui=Se[pr+1];H(r,Ui);break r}if(35==(0|Ir)){var N=(0|r)>>2;if(0!=(32&Se[N]|0)){var xi=Se[Er+5];rr(r,a,xi)}var zi=a+4|0,Vi=0==(0|Se[zi>>2]);e:do if(!Vi){var O=(r+20|0)>>2,Bi=Se[O],Hi=0|Mr;Se[Hi>>2]=Bi,Se[O]=Mr,Se[Mr+4>>2]=a;var Ki=Mr+8|0;Se[Ki>>2]=0;var Yi=Se[Er+4];Se[Mr+12>>2]=Yi;var Gi=Se[zi>>2];H(r,Gi);var Wi=Se[Hi>>2];if(Se[O]=Wi,0!=(0|Se[Ki>>2]))break r;if(0!=(32&Se[N]|0))break;var Zi=Me[cr],Qi=0==(0|Zi);do if(!Qi){var qi=r+8|0,$i=Me[qi>>2];if($i>>>0>=Me[Er+3]>>>0)break;Se[qi>>2]=$i+1|0,Ae[Zi+$i|0]=32;break e}while(0);Y(r,32)}while(0);if(0!=(32&Se[N]|0))break r;var Ji=Se[Er+5];rr(r,a,Ji);break r}if(36==(0|Ir)){var T=(r+20|0)>>2,rv=Me[T],av=0|Cr;Se[hr]=rv,Se[T]=av,Se[hr+1]=a;var ev=Cr+8|0;Se[ev>>2]=0;var iv=Se[Er+4];Se[hr+3]=iv;for(var vv=rv,tv=1;;){var tv,vv;if(0==(0|vv))break;if((Se[Se[vv+4>>2]>>2]-22|0)>>>0>=3)break;var fv=vv+8|0;if(0==(0|Se[fv>>2])){if(tv>>>0>3){Z(r);break r}var _v=(tv<<4)+Cr|0,R=_v>>2,C=vv>>2;Se[R]=Se[C],Se[R+1]=Se[C+1],Se[R+2]=Se[C+2],Se[R+3]=Se[C+3];var sv=Se[T];Se[_v>>2]=sv,Se[T]=_v,Se[fv>>2]=1;var nv=tv+1|0}else var nv=tv;var nv,vv=Se[vv>>2],tv=nv}var ov=Se[pr+2];if(H(r,ov),Se[T]=rv,0!=(0|Se[ev>>2]))break r;if(tv>>>0>1){for(var lv=tv;;){var lv,bv=lv-1|0,kv=Se[((bv<<4)+4>>2)+hr];if($(r,kv),bv>>>0<=1)break;var lv=bv}var uv=Se[T]}else var uv=rv;var uv;ar(r,a,uv);break r}if(37==(0|Ir)){var M=(r+20|0)>>2,cv=Se[M],hv=0|Rr;Se[hv>>2]=cv,Se[M]=Rr,Se[Rr+4>>2]=a;var dv=Rr+8|0;Se[dv>>2]=0;var wv=Se[Er+4];Se[Rr+12>>2]=wv;var pv=a+4|0,Ev=Se[pr+2];H(r,Ev);var Av=0==(0|Se[dv>>2]);e:do if(Av){var gv=Me[cr],yv=0==(0|gv);do{if(!yv){var mv=r+8|0,Sv=Me[mv>>2];if(Sv>>>0>=Me[Er+3]>>>0){gr=187;break}Se[mv>>2]=Sv+1|0,Ae[gv+Sv|0]=32,gr=188;break}gr=187}while(0);187==gr&&Y(r,32);var Mv=Se[pv>>2];H(r,Mv);var Cv=Me[cr],Rv=0==(0|Cv);do if(!Rv){var S=(r+8|0)>>2,Tv=Me[S];if((Tv+3|0)>>>0>Me[Er+3]>>>0)break;var Ov=Cv+Tv|0;Ae[Ov]=Ae[0|He.__str135],Ae[Ov+1]=Ae[(0|He.__str135)+1],Ae[Ov+2]=Ae[(0|He.__str135)+2];var Nv=Se[S]+3|0;Se[S]=Nv;break e}while(0);Q(r,0|He.__str135,3)}while(0);var Iv=Se[hv>>2];Se[M]=Iv;break r}if(38==(0|Ir)||39==(0|Ir)){var Pv=Se[pr+1];H(r,Pv);var Dv=a+8|0;if(0==(0|Se[Dv>>2]))break r;var Lv=Me[cr],Fv=0==(0|Lv);do{if(!Fv){var m=(r+8|0)>>2,Xv=Me[m];if((Xv+2|0)>>>0>Me[Er+3]>>>0){gr=197;break}var jv=Lv+Xv|0;oe=8236,Ae[jv]=255&oe,oe>>=8,Ae[jv