var allDescriptors=[{"dependencies":[],"name":"platform","scripts":[]},{"dependencies":["platform"],"name":"toolbox_bootstrap","scripts":[]}];var applicationDescriptor;var _loadedScripts={};for(var k of[]);function loadResourcePromise(url) {return new Promise(load);function load(fulfill,reject) {var xhr=new XMLHttpRequest();xhr.open("GET",url,true);xhr.onreadystatechange=onreadystatechange;function onreadystatechange(e) {if(xhr.readyState!==4) return;if([0,200,304].indexOf(xhr.status)===-1) reject(new Error("While loading from url "+url+" server responded with a status of "+xhr.status));else fulfill(e.target.response);} xhr.send(null);}} function normalizePath(path) {if(path.indexOf("..")===-1&&path.indexOf('.')===-1) return path;var normalizedSegments=[];var segments=path.split("/");for(var i=0;i0?lineEndings[lineNumber-1]+1:0;var lineEnd=lineEndings[lineNumber];var lineContent=this.substring(lineStart,lineEnd);if(lineContent.length>0&&lineContent.charAt(lineContent.length-1)==="\r") lineContent=lineContent.substring(0,lineContent.length-1);return lineContent;} String.prototype.escapeCharacters=function(chars) {var foundChar=false;for(var i=0;i/g,">").replace(/"/g,""");} String.prototype.unescapeHTML=function() {return this.replace(/</g,"<").replace(/>/g,">").replace(/:/g,":").replace(/"/g,"\"").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");} String.prototype.collapseWhitespace=function() {return this.replace(/[\s\xA0]+/g," ");} String.prototype.trimMiddle=function(maxLength) {if(this.length<=maxLength) return String(this);var leftHalf=maxLength>>1;var rightHalf=maxLength-leftHalf-1;return this.substr(0,leftHalf)+"\u2026"+this.substr(this.length-rightHalf,rightHalf);} String.prototype.trimEnd=function(maxLength) {if(this.length<=maxLength) return String(this);return this.substr(0,maxLength-1)+"\u2026";} String.prototype.trimURL=function(baseURLDomain) {var result=this.replace(/^(https|http|file):\/\//i,"");if(baseURLDomain){if(result.toLowerCase().startsWith(baseURLDomain.toLowerCase())) result=result.substr(baseURLDomain.length);} return result;} String.prototype.toTitleCase=function() {return this.substring(0,1).toUpperCase()+this.substring(1);} String.prototype.compareTo=function(other) {if(this>other) return 1;if(this>>shift&24);if(shift===2){encoded+=String.fromCharCode(encodeBits(v>>>18&63),encodeBits(v>>>12&63),encodeBits(v>>>6&63),encodeBits(v&63));v=0;}} if(shift===0) encoded+=String.fromCharCode(encodeBits(v>>>18&63),encodeBits(v>>>12&63),61,61);else if(shift===1) encoded+=String.fromCharCode(encodeBits(v>>>18&63),encodeBits(v>>>12&63),encodeBits(v>>>6&63),61);return encoded;} String.naturalOrderComparator=function(a,b) {var chunk=/^\d+|^\D+/;var chunka,chunkb,anum,bnum;while(1){if(a){if(!b) return 1;}else{if(b) return-1;else return 0;} chunka=a.match(chunk)[0];chunkb=b.match(chunk)[0];anum=!isNaN(chunka);bnum=!isNaN(chunkb);if(anum&&!bnum) return-1;if(bnum&&!anum) return 1;if(anum&&bnum){var diff=chunka-chunkb;if(diff) return diff;if(chunka.length!==chunkb.length){if(!+chunka&&!+chunkb) return chunka.length-chunkb.length;else return chunkb.length-chunka.length;}}else if(chunka!==chunkb) return(chunkamax) num=max;return num;} Number.gcd=function(a,b) {if(b===0) return a;else return Number.gcd(b,a%b);} Number.toFixedIfFloating=function(value) {if(!value||isNaN(value)) return value;var number=Number(value);return number%1?number.toFixed(3):String(number);} Date.prototype.toISO8601Compact=function() {function leadZero(x) {return(x>9?"":"0")+x;} return this.getFullYear()+ leadZero(this.getMonth()+1)+ leadZero(this.getDate())+"T"+ leadZero(this.getHours())+ leadZero(this.getMinutes())+ leadZero(this.getSeconds());} Date.prototype.toConsoleTime=function() {function leadZero2(x) {return(x>9?"":"0")+x;} function leadZero3(x) {return"0".repeat(3-x.toString().length)+x;} return this.getFullYear()+"-"+ leadZero2(this.getMonth()+1)+"-"+ leadZero2(this.getDate())+" "+ leadZero2(this.getHours())+":"+ leadZero2(this.getMinutes())+":"+ leadZero2(this.getSeconds())+"."+ leadZero3(this.getMilliseconds());} Object.defineProperty(Array.prototype,"remove",{value:function(value,firstOnly) {var index=this.indexOf(value);if(index===-1) return;if(firstOnly){this.splice(index,1);return;} for(var i=index+1,n=this.length;i=rightBound) this.sort(comparator);else quickSortRange(this,comparator,leftBound,rightBound,sortWindowLeft,sortWindowRight);return this;}} Object.defineProperty(Array.prototype,"sortRange",sortRange);Object.defineProperty(Uint32Array.prototype,"sortRange",sortRange);})();Object.defineProperty(Array.prototype,"stableSort",{value:function(comparator) {function defaultComparator(a,b) {return ab?1:0);} comparator=comparator||defaultComparator;var indices=new Array(this.length);for(var i=0;i=this.length) return;if(!comparator) comparator=function(a,b){return a-b;} var low=0;var high=this.length-1;for(;;){var pivotPosition=this.partition(comparator,low,high,Math.floor((high+low)/2));if(pivotPosition===k) return this[k];else if(pivotPosition>k) high=pivotPosition-1;else low=pivotPosition+1;}}});Object.defineProperty(Array.prototype,"lowerBound",{value:function(object,comparator,left,right) {function defaultComparator(a,b) {return ab?1:0);} comparator=comparator||defaultComparator;var l=left||0;var r=right!==undefined?right:this.length;while(l>1;if(comparator(object,this[m])>0) l=m+1;else r=m;} return r;}});Object.defineProperty(Array.prototype,"upperBound",{value:function(object,comparator,left,right) {function defaultComparator(a,b) {return ab?1:0);} comparator=comparator||defaultComparator;var l=left||0;var r=right!==undefined?right:this.length;while(l>1;if(comparator(object,this[m])>=0) l=m+1;else r=m;} return r;}});Object.defineProperty(Uint32Array.prototype,"lowerBound",{value:Array.prototype.lowerBound});Object.defineProperty(Uint32Array.prototype,"upperBound",{value:Array.prototype.upperBound});Object.defineProperty(Float64Array.prototype,"lowerBound",{value:Array.prototype.lowerBound});Object.defineProperty(Array.prototype,"binaryIndexOf",{value:function(value,comparator) {var index=this.lowerBound(value,comparator);return index=0) j++;} if(mergeNotIntersect){while(i0&&format[index]==="$"){substitutionIndex=(number-1);++index;}} var precision=-1;if(format[index]==="."){++index;precision=parseInt(format.substring(index),10);if(isNaN(precision)) precision=0;while(String.isDigitAt(format,index)) ++index;} if(!(format[index]in formatters)){addStringToken(format.substring(precentIndex,index+1));++index;continue;} addSpecifierToken(format[index],precision,substitutionIndex);++substitutionIndex;++index;} addStringToken(format.substring(index));return tokens;} String.standardFormatters={d:function(substitution) {return!isNaN(substitution)?substitution:0;},f:function(substitution,token) {if(substitution&&token.precision>-1) substitution=substitution.toFixed(token.precision);return!isNaN(substitution)?substitution:(token.precision>-1?Number(0).toFixed(token.precision):0);},s:function(substitution) {return substitution;}} String.vsprintf=function(format,substitutions) {return String.format(format,substitutions,String.standardFormatters,"",function(a,b){return a+b;}).formattedResult;} String.format=function(format,substitutions,formatters,initialValue,append,tokenizedFormat) {if(!format||!substitutions||!substitutions.length) return{formattedResult:append(initialValue,format),unusedSubstitutions:substitutions};function prettyFunctionName() {return"String.format(\""+format+"\", \""+Array.prototype.join.call(substitutions,"\", \"")+"\")";} function warn(msg) {console.warn(prettyFunctionName()+": "+msg);} function error(msg) {console.error(prettyFunctionName()+": "+msg);} var result=initialValue;var tokens=tokenizedFormat||String.tokenizeFormatString(format,formatters);var usedSubstitutionIndexes={};for(var i=0;i=substitutions.length){error("not enough substitution arguments. Had "+substitutions.length+" but needed "+(token.substitutionIndex+1)+", so substitution was skipped.");result=append(result,"%"+(token.precision>-1?token.precision:"")+token.specifier);continue;} usedSubstitutionIndexes[token.substitutionIndex]=true;if(!(token.specifier in formatters)){warn("unsupported format character \u201C"+token.specifier+"\u201D. Treating as a string.");result=append(result,substitutions[token.substitutionIndex]);continue;} result=append(result,formatters[token.specifier](substitutions[token.substitutionIndex],token));} var unusedSubstitutions=[];for(var i=0;i0) ++result;text=text.substring(match.index+1);} return result;} function spacesPadding(spacesCount) {return"\u00a0".repeat(spacesCount);} function numberToStringWithSpacesPadding(value,symbolsCount) {var numberString=value.toString();var paddingLength=Math.max(0,symbolsCount-numberString.length);return spacesPadding(paddingLength)+numberString;} Array.from=function(iterator) {var values=[];for(var iteratorValue=iterator.next();!iteratorValue.done;iteratorValue=iterator.next()) values.push(iteratorValue.value);return values;} Set.prototype.valuesArray=function() {return Array.from(this.values());} Map.prototype.remove=function(key) {var value=this.get(key);this.delete(key);return value;} Map.prototype.valuesArray=function() {return Array.from(this.values());} Map.prototype.keysArray=function() {return Array.from(this.keys());} var Multimap=function() {this._map=new Map();} Multimap.prototype={set:function(key,value) {var set=this._map.get(key);if(!set){set=new Set();this._map.set(key,set);} set.add(value);},get:function(key) {var result=this._map.get(key);if(!result) result=new Set();return result;},remove:function(key,value) {var values=this.get(key);values.delete(value);if(!values.size) this._map.delete(key);},removeAll:function(key) {this._map.delete(key);},keysArray:function() {return this._map.keysArray();},valuesArray:function() {var result=[];var keys=this.keysArray();for(var i=0;i0);if(userCallback){var args=Array.prototype.slice.call(arguments,1);userCallback.apply(null,args);} if(!--this._pendingIncomingCallbacksCount&&this._outgoingCallback) this._outgoingCallback();}} function suppressUnused(value) {} self.setImmediate=function(callback) {Promise.resolve().then(callback);return 0;} Promise.prototype.spread=function(callback) {return this.then(spreadPromise);function spreadPromise(arg) {return callback.apply(null,arg);}} Promise.prototype.catchException=function(defaultValue){return this.catch(function(error){console.error(error);return defaultValue;});};Node.prototype.rangeOfWord=function(offset,stopCharacters,stayWithinNode,direction) {var startNode;var startOffset=0;var endNode;var endOffset=0;if(!stayWithinNode) stayWithinNode=this;if(!direction||direction==="backward"||direction==="both"){var node=this;while(node){if(node===stayWithinNode){if(!startNode) startNode=stayWithinNode;break;} if(node.nodeType===Node.TEXT_NODE){var start=(node===this?(offset-1):(node.nodeValue.length-1));for(var i=start;i>=0;--i){if(stopCharacters.indexOf(node.nodeValue[i])!==-1){startNode=node;startOffset=i+1;break;}}} if(startNode) break;node=node.traversePreviousNode(stayWithinNode);} if(!startNode){startNode=stayWithinNode;startOffset=0;}}else{startNode=this;startOffset=offset;} if(!direction||direction==="forward"||direction==="both"){node=this;while(node){if(node===stayWithinNode){if(!endNode) endNode=stayWithinNode;break;} if(node.nodeType===Node.TEXT_NODE){var start=(node===this?offset:0);for(var i=start;i0?insertionPoints[insertionPoints.length-1]:null;} return null;} Node.prototype.traversePreviousNode=function(stayWithin) {if(stayWithin&&this===stayWithin) return null;var node=this.previousSibling;while(node&&node.lastChild) node=node.lastChild;if(node) return node;return this.parentNodeOrShadowHost();} Node.prototype.setTextContentTruncatedIfNeeded=function(text,placeholder) {const maxTextContentLength=10000;if(typeof text==="string"&&text.length>maxTextContentLength){this.textContent=typeof placeholder==="string"?placeholder:text.trimMiddle(maxTextContentLength);return true;} this.textContent=text;return false;} Event.prototype.deepElementFromPoint=function() {var node=this.target;while(node&&node.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&node.nodeType!==Node.DOCUMENT_NODE) node=node.parentNode;if(!node) return null;node=node.elementFromPoint(this.pageX,this.pageY);while(node&&node.shadowRoot) node=node.shadowRoot.elementFromPoint(this.pageX,this.pageY);return node;} Event.prototype.deepActiveElement=function() {var activeElement=this.target&&this.target.ownerDocument?this.target.ownerDocument.activeElement:null;while(activeElement&&activeElement.shadowRoot) activeElement=activeElement.shadowRoot.activeElement;return activeElement;} Document.prototype.deepElementFromPoint=function(x,y) {var node=this.elementFromPoint(x,y);while(node&&node.shadowRoot) node=node.shadowRoot.elementFromPoint(x,y);return node;} function isEnterKey(event) {return event.keyCode!==229&&event.keyIdentifier==="Enter";} function isEscKey(event) {return event.keyCode===27;} function consumeEvent(e) {e.consume();} function runOnWindowLoad(callback) {function windowLoaded() {window.removeEventListener("DOMContentLoaded",windowLoaded,false);callback();} if(document.readyState==="complete"||document.readyState==="interactive") callback();else window.addEventListener("DOMContentLoaded",windowLoaded,false);};(function() {function toolboxLoaded() {if(!window.opener) return;var app=window.opener.WebInspector["AdvancedApp"]["_instance"]();app["toolboxLoaded"](document);} runOnWindowLoad(toolboxLoaded);})();;applicationDescriptor=[{"type":"autostart","name":"platform"},{"type":"autostart","name":"toolbox_bootstrap"}];Runtime.startApplication("toolbox");