wUU} UkUUU<UU>sU.UUO!U%Uh)U-U.U^b.V/V2V2V22Vmm3V3V3V^ 4V[4 Vn#4 V64 VQ:4 V{4 V4Vn4V4V4V4V4V5Vq5VJ5Vgi5V5Vf5V5V5V5V6V6VO"6V276 VL6!V^6"Vg6#Vw6$V6%V"6&V6'V6(Vr6)V87*V7+V`7,V87-V7.Vo7/VU70V971V72V!73V%74V&75V]'76V(77V-78V-79V;/7:V/7;V/7VN<7?V@7@VB7AVH7BVJ7CVvL7DVN7EVQ7FV,U7GVV7HV|]7IVb7JVg7KV}i7LVj7MV n7NVq7OVMr7PV`u7QVv7RVv7SVt|7TV~7UV7VV}7WV؁7XV7YVӇ7ZV7[Va7\V7]V(7^V7_V7`V7aV7bV7cV7dV7eV7fVh77 Object.isEmpty=function(obj) {for(var i in obj) return false;return true;} Object.values=function(obj) {var result=Object.keys(obj);var length=result.length;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.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) result=result.replace(new RegExp("^"+baseURLDomain.escapeForRegExp(),"i"),"");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(thismax) 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(Array(4-x.toString().length)).join('0')+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(isDigit(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) {if(!format||!substitutions||!substitutions.length) return{formattedResult:append(initialValue,format),unusedSubstitutions:substitutions};function prettyFunctionName() {return"String.format(\""+format+"\", \""+substitutions.join("\", \"")+"\")";} function warn(msg) {console.warn(prettyFunctionName()+": "+msg);} function error(msg) {console.error(prettyFunctionName()+": "+msg);} var result=initialValue;var tokens=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 numberToStringWithSpacesPadding(value,symbolsCount) {var numberString=value.toString();var paddingLength=Math.max(0,symbolsCount-numberString.length);var paddingString=Array(paddingLength+1).join("\u00a0");return paddingString+numberString;} var createObjectIdentifier=function() {return"_"+ ++createObjectIdentifier._last;} createObjectIdentifier._last=0;var Set=function() {this._set={};this._size=0;} Set.fromArray=function(array) {var result=new Set();array.forEach(function(item){result.add(item);});return result;} Set.prototype={add:function(item) {var objectIdentifier=item.__identifier;if(!objectIdentifier){objectIdentifier=createObjectIdentifier();item.__identifier=objectIdentifier;} if(!this._set[objectIdentifier]) ++this._size;this._set[objectIdentifier]=item;},remove:function(item) {if(this._set[item.__identifier]){--this._size;delete this._set[item.__identifier];return true;} return false;},values:function() {var result=new Array(this._size);var i=0;for(var objectIdentifier in this._set) result[i++]=this._set[objectIdentifier];return result;},contains:function(item) {return!!this._set[item.__identifier];},size:function() {return this._size;},clear:function() {this._set={};this._size=0;}} var Map=function() {this._map={};this._size=0;} Map.prototype={put:function(key,value) {var objectIdentifier=key.__identifier;if(!objectIdentifier){objectIdentifier=createObjectIdentifier();key.__identifier=objectIdentifier;} if(!this._map[objectIdentifier]) ++this._size;this._map[objectIdentifier]=[key,value];},remove:function(key) {var result=this._map[key.__identifier];if(!result) return undefined;--this._size;delete this._map[key.__identifier];return result[1];},keys:function() {return this._list(0);},values:function() {return this._list(1);},_list:function(index) {var result=new Array(this._size);var i=0;for(var objectIdentifier in this._map) result[i++]=this._map[objectIdentifier][index];return result;},get:function(key) {var entry=this._map[key.__identifier];return entry?entry[1]:undefined;},contains:function(key) {var entry=this._map[key.__identifier];return!!entry;},size:function() {return this._size;},clear:function() {this._map={};this._size=0;}} var StringMap=function() {this._map={};this._size=0;} StringMap.prototype={put:function(key,value) {if(key==="__proto__"){if(!this._hasProtoKey){++this._size;this._hasProtoKey=true;} this._protoValue=value;return;} if(!Object.prototype.hasOwnProperty.call(this._map,key)) ++this._size;this._map[key]=value;},remove:function(key) {var result;if(key==="__proto__"){if(!this._hasProtoKey) return undefined;--this._size;delete this._hasProtoKey;result=this._protoValue;delete this._protoValue;return result;} if(!Object.prototype.hasOwnProperty.call(this._map,key)) return undefined;--this._size;result=this._map[key];delete this._map[key];return result;},keys:function() {var result=Object.keys(this._map)||[];if(this._hasProtoKey) result.push("__proto__");return result;},values:function() {var result=Object.values(this._map);if(this._hasProtoKey) result.push(this._protoValue);return result;},get:function(key) {if(key==="__proto__") return this._protoValue;if(!Object.prototype.hasOwnProperty.call(this._map,key)) return undefined;return this._map[key];},contains:function(key) {var result;if(key==="__proto__") return this._hasProtoKey;return Object.prototype.hasOwnProperty.call(this._map,key);},size:function() {return this._size;},clear:function() {this._map={};this._size=0;delete this._hasProtoKey;delete this._protoValue;}} var StringMultimap=function() {StringMap.call(this);} StringMultimap.prototype={put:function(key,value) {if(key==="__proto__"){if(!this._hasProtoKey){++this._size;this._hasProtoKey=true;this._protoValue=new Set();} this._protoValue.add(value);return;} if(!Object.prototype.hasOwnProperty.call(this._map,key)){++this._size;this._map[key]=new Set();} this._map[key].add(value);},get:function(key) {var result=StringMap.prototype.get.call(this,key);if(!result) result=new Set();return result;},remove:function(key,value) {var values=this.get(key);values.remove(value);if(!values.size()) StringMap.prototype.remove.call(this,key)},removeAll:function(key) {StringMap.prototype.remove.call(this,key);},values:function() {var result=[];var keys=this.keys();for(var i=0;i "+stack);throw e;} return xhr.responseText;} function importScript(scriptName) {var sourceURL=self._importScriptPathPrefix+scriptName;if(_importedScripts[sourceURL]) return;_importedScripts[sourceURL]=true;var scriptSource=loadResource(sourceURL);if(!scriptSource) throw"empty response arrived for script '"+sourceURL+"'";var oldPrefix=self._importScriptPathPrefix;self._importScriptPathPrefix+=scriptName.substring(0,scriptName.lastIndexOf("/")+1);try{self.eval(scriptSource+"\n//# sourceURL="+sourceURL);}finally{self._importScriptPathPrefix=oldPrefix;}} (function(){var baseUrl=location.origin+location.pathname;self._importScriptPathPrefix=baseUrl.substring(0,baseUrl.lastIndexOf("/")+1);})();var loadScript=importScript;function CallbackBarrier() {this._pendingIncomingCallbacksCount=0;} CallbackBarrier.prototype={createCallback:function(userCallback) {console.assert(!this._outgoingCallback,"CallbackBarrier.createCallback() is called after CallbackBarrier.callWhenDone()");++this._pendingIncomingCallbacksCount;return this._incomingCallback.bind(this,userCallback);},callWhenDone:function(callback) {console.assert(!this._outgoingCallback,"CallbackBarrier.callWhenDone() is called multiple times");this._outgoingCallback=callback;if(!this._pendingIncomingCallbacksCount) this._outgoingCallback();},_incomingCallback:function(userCallback) {console.assert(this._pendingIncomingCallbacksCount>0);if(userCallback){var args=Array.prototype.slice.call(arguments,1);userCallback.apply(null,args);} if(!--this._pendingIncomingCallbacksCount&&this._outgoingCallback) this._outgoingCallback();}} function suppressUnused(value) {} var allDescriptors=[{"name":"audits","extensions":[{"type":"@WebInspector.Panel","name":"audits","title":"Audits","order":6,"className":"WebInspector.AuditsPanel"}],"scripts":["AuditsPanel.js"]},{"name":"console","extensions":[{"type":"@WebInspector.Panel","name":"console","title":"Console","order":20,"className":"WebInspector.ConsolePanel"},{"type":"drawer-view","name":"console","title":"Console","order":"0","className":"WebInspector.ConsolePanel.WrapperView"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.ConsoleModel"],"className":"WebInspector.ConsolePanel.ConsoleRevealer"},{"type":"@WebInspector.ActionDelegate","actionId":"console.show","className":"WebInspector.ConsoleView.ShowConsoleActionDelegate","bindings":[{"shortcut":"Ctrl+`"}]},{"type":"ui-setting","section":"Console","title":"Log XMLHttpRequests","settingName":"monitoringXHREnabled","settingType":"checkbox"},{"type":"ui-setting","section":"Console","title":"Preserve log upon navigation","settingName":"preserveConsoleLog","settingType":"checkbox"},{"type":"ui-setting","section":"Console","title":"Show timestamps","settingName":"consoleTimestampsEnabled","settingType":"checkbox"}],"scripts":["ConsolePanel.js"]},{"name":"devices","extensions":[{"type":"drawer-view","name":"devices","title":"Devices","order":"12","experiment":"devicesPanel","className":"WebInspector.DevicesView"}],"scripts":["DevicesView.js"]},{"name":"elements","extensions":[{"type":"@WebInspector.Panel","name":"elements","title":"Elements","order":0,"className":"WebInspector.ElementsPanel"},{"type":"@WebInspector.ContextMenu.Provider","contextTypes":["WebInspector.RemoteObject","WebInspector.DOMNode"],"className":"WebInspector.ElementsPanel.ContextMenuProvider"},{"type":"drawer-view","name":"emulation","title":"Emulation","order":"10","className":"WebInspector.OverridesView"},{"type":"drawer-view","name":"rendering","title":"Rendering","order":"11","className":"WebInspector.RenderingOptionsView"},{"type":"@WebInspector.Renderer","contextTypes":["WebInspector.DOMNode"],"className":"WebInspector.ElementsTreeOutline.Renderer"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.DOMNode"],"className":"WebInspector.ElementsPanel.DOMNodeRevealer"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.RemoteObject"],"className":"WebInspector.ElementsPanel.NodeRemoteObjectRevealer"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.OverridesSupport"],"className":"WebInspector.OverridesView.Revealer"},{"type":"ui-setting","section":"Elements","title":"Color format","settingName":"colorFormat","settingType":"select","options":[["As authored","original"],["HEX: #DAC0DE","hex",true],["RGB: rgb(128, 255, 255)","rgb",true],["HSL: hsl(300, 80%, 90%)","hsl",true]]},{"type":"ui-setting","section":"Elements","title":"Show user agent styles","settingName":"showUserAgentStyles","settingType":"checkbox"},{"type":"ui-setting","section":"Elements","title":"Show user agent shadow DOM","settingName":"showUAShadowDOM","settingType":"checkbox"},{"type":"ui-setting","section":"Elements","title":"Word wrap","settingName":"domWordWrap","settingType":"checkbox"},{"type":"ui-setting","section":"Elements","title":"Show rulers","settingName":"showMetricsRulers","settingType":"checkbox"}],"scripts":["ElementsPanel.js"]},{"name":"extensions","extensions":[{"type":"@WebInspector.ExtensionServerAPI","className":"WebInspector.ExtensionServer"}],"dependencies":["sources"],"scripts":["ExtensionServer.js"]},{"name":"layers","extensions":[{"type":"@WebInspector.Panel","name":"layers","title":"Layers","order":7,"className":"WebInspector.LayersPanel"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.DeferredLayerTree"],"className":"WebInspector.LayersPanel.LayerTreeRevealer"}],"dependencies":["timeline"],"scripts":["LayersPanel.js"]},{"name":"main","extensions":[{"type":"@WebInspector.ContextMenu.Provider","contextTypes":["WebInspector.UISourceCode","WebInspector.Resource","WebInspector.NetworkRequest","Node"],"className":"WebInspector.HandlerRegistry.ContextMenuProvider"},{"type":"@WebInspector.ActionDelegate","actionId":"main.reload","className":"WebInspector.Main.ReloadActionDelegate","bindings":[{"platform":"windows,linux","shortcut":"F5 Ctrl+R"},{"platform":"mac","shortcut":"Meta+R"}]},{"type":"@WebInspector.ActionDelegate","actionId":"main.hard-reload","className":"WebInspector.Main.HardReloadActionDelegate","bindings":[{"platform":"windows,linux","shortcut":"Shift+F5 Ctrl+F5 Ctrl+Shift+F5 Shift+Ctrl+R"},{"platform":"mac","shortcut":"Shift+Meta+R"}]},{"type":"@WebInspector.ActionDelegate","actionId":"main.toggle-drawer","className":"WebInspector.InspectorView.DrawerToggleActionDelegate","bindings":[{"shortcut":"Esc"}]},{"type":"@WebInspector.ActionDelegate","actionId":"main.debug-reload","className":"WebInspector.Main.DebugReloadActionDelegate","bindings":[{"shortcut":"Alt+R"}]},{"type":"@WebInspector.ActionDelegate","actionId":"main.toggle-element-search","className":"WebInspector.InspectElementModeController.ToggleSearchActionDelegate","bindings":[{"platform":"windows,linux","shortcut":"Ctrl+Shift+C"},{"platform":"mac","shortcut":"Meta+Shift+C"}]},{"type":"@WebInspector.ActionDelegate","actionId":"main.zoom-in","className":"WebInspector.Main.ZoomInActionDelegate","bindings":[{"platform":"windows,linux","shortcut":"Ctrl+Plus Ctrl+Shift+Plus Ctrl+NumpadPlus Ctrl+Shift+NumpadPlus"},{"platform":"mac","shortcut":"Meta+Plus Meta+Shift+Plus Meta+NumpadPlus Meta+Shift+NumpadPlus"}]},{"type":"@WebInspector.ActionDelegate","actionId":"main.zoom-out","className":"WebInspector.Main.ZoomOutActionDelegate","bindings":[{"platform":"windows,linux","shortcut":"Ctrl+Minus Ctrl+Shift+Minus Ctrl+NumpadMinus Ctrl+Shift+NumpadMinus"},{"platform":"mac","shortcut":"Meta+Minus Meta+Shift+Minus Meta+NumpadMinus Meta+Shift+NumpadMinus"}]},{"type":"@WebInspector.ActionDelegate","actionId":"main.zoom-reset","className":"WebInspector.Main.ZoomResetActionDelegate","bindings":[{"platform":"windows,linux","shortcut":"Ctrl+0 Ctrl+Numpad0"},{"platform":"mac","shortcut":"Meta+0 Meta+Numpad0"}]},{"type":"@WebInspector.StatusBarButton.Provider","className":"WebInspector.InspectElementModeController.ToggleButtonProvider","location":"toolbar-left","order":0,"actionId":"main.toggle-element-search"},{"type":"@WebInspector.StatusBarButton.Provider","className":"WebInspector.App.EmulationButtonProvider","order":1,"location":"toolbar-left"},{"type":"@WebInspector.StatusBarButton.Provider","className":"WebInspector.DockController.ButtonProvider","order":1,"location":"toolbar-right"},{"type":"@WebInspector.StatusBarButton.Provider","className":"WebInspector.ScreencastApp.StatusBarButtonProvider","order":2,"location":"toolbar-right"},{"type":"ui-setting","title":"Disable cache (while DevTools is open)","settingName":"cacheDisabled","settingType":"checkbox"},{"type":"ui-setting","section":"Appearance","title":"Split panels vertically when docked to right","settingName":"splitVerticallyWhenDockedToRight","settingType":"checkbox"},{"type":"ui-setting","section":"Appearance","settingType":"custom","className":"WebInspector.Main.ShortcutPanelSwitchSettingDelegate"},{"type":"ui-setting","section":"Extensions","settingType":"custom","className":"WebInspector.HandlerRegistry.OpenAnchorLocationSettingDelegate"}]},{"name":"network","extensions":[{"type":"@WebInspector.Panel","name":"network","title":"Network","order":1,"className":"WebInspector.NetworkPanel"},{"type":"@WebInspector.ContextMenu.Provider","contextTypes":["WebInspector.NetworkRequest","WebInspector.Resource","WebInspector.UISourceCode"],"className":"WebInspector.NetworkPanel.ContextMenuProvider"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.NetworkRequest"],"className":"WebInspector.NetworkPanel.RequestRevealer"}],"dependencies":["source_frame"],"scripts":["NetworkPanel.js"]},{"name":"profiler","extensions":[{"type":"@WebInspector.Panel","name":"profiles","title":"Profiles","order":4,"className":"WebInspector.ProfilesPanel"},{"type":"@WebInspector.ContextMenu.Provider","contextTypes":["WebInspector.RemoteObject"],"className":"WebInspector.ProfilesPanel.ContextMenuProvider"},{"type":"ui-setting","section":"Profiler","title":"Show advanced heap snapshot properties","settingName":"showAdvancedHeapSnapshotProperties","settingType":"checkbox"},{"type":"ui-setting","section":"Profiler","title":"High resolution CPU profiling","settingName":"highResolutionCpuProfiling","settingType":"checkbox"}],"scripts":["ProfilesPanel.js"]},{"name":"resources","extensions":[{"type":"@WebInspector.Panel","name":"resources","title":"Resources","order":5,"className":"WebInspector.ResourcesPanel"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.Resource"],"className":"WebInspector.ResourcesPanel.ResourceRevealer"}],"dependencies":["source_frame"],"scripts":["ResourcesPanel.js"]},{"name":"search","extensions":[{"type":"drawer-view","name":"search","title":"Search","order":"1","className":"WebInspector.AdvancedSearchView"},{"type":"@WebInspector.ActionDelegate","actionId":"search.toggle","className":"WebInspector.AdvancedSearchView.ToggleDrawerViewActionDelegate","bindings":[{"platform":"mac","shortcut":"Meta+Alt+F"},{"platform":"windows,linux","shortcut":"Ctrl+Shift+F"}]}],"scripts":["AdvancedSearchView.js"]},{"name":"settings","extensions":[{"type":"@WebInspector.ActionDelegate","actionId":"settings.show","className":"WebInspector.SettingsController.SettingsScreenActionDelegate","bindings":[{"shortcut":"F1 Shift+?"}]},{"type":"@WebInspector.StatusBarButton.Provider","actionId":"settings.show","location":"toolbar-right","title":"Settings","order":0,"elementClass":"settings-status-bar-item"}],"scripts":["SettingsScreen.js"]},{"name":"source_frame","extensions":[{"type":"@WebInspector.InplaceEditor","className":"WebInspector.CodeMirrorUtils"},{"type":"@WebInspector.TokenizerFactory","className":"WebInspector.CodeMirrorUtils.TokenizerFactory"},{"type":"ui-setting","section":"Sources","title":"Default indentation","settingName":"textEditorIndent","settingType":"select","options":[["2 spaces"," "],["4 spaces"," "],["8 spaces"," "],["Tab character","\t"]]}],"scripts":["SourceFrame.js"]},{"name":"sources","extensions":[{"type":"@WebInspector.Panel","name":"sources","title":"Sources","order":2,"className":"WebInspector.SourcesPanel"},{"type":"@WebInspector.ContextMenu.Provider","contextTypes":["WebInspector.UISourceCode","WebInspector.RemoteObject"],"className":"WebInspector.SourcesPanel.ContextMenuProvider"},{"type":"@WebInspector.ActionDelegate","actionId":"debugger.toggle-pause","className":"WebInspector.SourcesPanel.TogglePauseActionDelegate","contextTypes":["WebInspector.SourcesPanel","WebInspector.ShortcutRegistry.ForwardedShortcut"],"bindings":[{"platform":"windows,linux","shortcut":"F8 Ctrl+\\"},{"platform":"mac","shortcut":"F8 Meta+\\"}]},{"type":"@WebInspector.SearchScope","className":"WebInspector.SourcesSearchScope"},{"type":"@WebInspector.DrawerEditor","className":"WebInspector.SourcesPanel.DrawerEditor"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.UILocation"],"className":"WebInspector.SourcesPanel.UILocationRevealer"},{"type":"@WebInspector.Revealer","contextTypes":["WebInspector.UISourceCode"],"className":"WebInspector.SourcesPanel.UISourceCodeRevealer"},{"type":"@WebInspector.SourcesView.EditorAction","className":"WebInspector.InplaceFormatterEditorAction"},{"type":"@WebInspector.SourcesView.EditorAction","className":"WebInspector.ScriptFormatterEditorAction"},{"type":"navigator-view","name":"sources","title":"Sources","order":1,"className":"WebInspector.SourcesNavigatorView"},{"type":"navigator-view","name":"contentScripts","title":"Content scripts","order":2,"className":"WebInspector.ContentScriptsNavigatorView"},{"type":"navigator-view","name":"snippets","title":"Snippets","order":3,"className":"WebInspector.SnippetsNavigatorView"},{"type":"@WebInspector.ActionDelegate","actionId":"sources.go-to-source","className":"WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate","bindings":[{"platform":"mac","shortcut":"Meta+O Meta+P"},{"platform":"windows,linux","shortcut":"Ctrl+O Ctrl+P"}]},{"type":"ui-setting","settingName":"javaScriptDisabled","settingType":"custom","className":"WebInspector.SourcesPanel.DisableJavaScriptSettingDelegate"},{"type":"ui-setting","section":"Sources","title":"Search in content scripts","settingName":"searchInContentScripts","settingType":"checkbox"},{"type":"ui-setting","section":"Sources","title":"Enable JavaScript source maps","settingName":"jsSourceMapsEnabled","settingType":"checkbox"},{"type":"ui-setting","section":"Sources","title":"Detect indentation","settingName":"textEditorAutoDetectIndent","settingType":"checkbox"},{"type":"ui-setting","section":"Sources","title":"Autocompletion","settingName":"textEditorAutocompletion","settingType":"checkbox"},{"type":"ui-setting","section":"Sources","title":"Bracket matching","settingName":"textEditorBracketMatching","settingType":"checkbox"},{"type":"ui-setting","section":"Sources","title":"Show whitespace characters","settingName":"showWhitespacesInEditor","settingType":"checkbox"},{"type":"ui-setting","section":"Sources","title":"Enable CSS source maps","settingName":"cssSourceMapsEnabled","settingType":"checkbox"},{"type":"ui-setting","title":"Auto-reload generated CSS","parentSettingName":"cssSourceMapsEnabled","settingName":"cssReloadEnabled","settingType":"checkbox"},{"type":"ui-setting","section":"Sources","experiment":"frameworksDebuggingSupport","title":"Skip stepping through sources with particular names","settingName":"skipStackFramesSwitch","settingType":"checkbox"},{"type":"ui-setting","experiment":"frameworksDebuggingSupport","parentSettingName":"skipStackFramesSwitch","settingType":"custom","className":"WebInspector.SourcesPanel.SkipStackFramePatternSettingDelegate"}],"dependencies":["source_frame"],"scripts":["SourcesPanel.js"]},{"name":"timeline","extensions":[{"type":"@WebInspector.Panel","name":"timeline","title":"Timeline","order":3,"className":"WebInspector.TimelinePanel"}],"scripts":["TimelinePanel.js"]}];window.WebInspector={_queryParamsObject:{}} WebInspector.Events={InspectorLoaded:"InspectorLoaded"} WebInspector.queryParam=function(name) {return WebInspector._queryParamsObject.hasOwnProperty(name)?WebInspector._queryParamsObject[name]:null;} {(function parseQueryParameters() {var queryParams=window.location.search;if(!queryParams) return;var params=queryParams.substring(1).split("&");for(var i=0;i1&&path.charAt(1)==="/"){return parsedURL.scheme+":"+path+postfix;} return parsedURL.scheme+"://"+parsedURL.host+(parsedURL.port?(":"+parsedURL.port):"")+WebInspector.ParsedURL.normalizePath(path)+postfix;} return null;} WebInspector.ParsedURL.prototype={get displayName() {if(this._displayName) return this._displayName;if(this.isDataURL()) return this.dataURLDisplayName();if(this.isAboutBlank()) return this.url;this._displayName=this.lastPathComponent;if(!this._displayName) this._displayName=(this.host||"")+"/";if(this._displayName==="/") this._displayName=this.url;return this._displayName;},dataURLDisplayName:function() {if(this._dataURLDisplayName) return this._dataURLDisplayName;if(!this.isDataURL()) return"";this._dataURLDisplayName=this.url.trimEnd(20);return this._dataURLDisplayName;},isAboutBlank:function() {return this.url==="about:blank";},isDataURL:function() {return this.scheme==="data";}} String.prototype.asParsedURL=function() {var parsedURL=new WebInspector.ParsedURL(this.toString());if(parsedURL.isValid) return parsedURL;return null;} WebInspector.Color=function(rgba,format,originalText) {this._rgba=rgba;this._originalText=originalText||null;this._format=format||null;if(typeof this._rgba[3]==="undefined") this._rgba[3]=1;for(var i=0;i<4;++i){if(this._rgba[i]<0) this._rgba[i]=0;if(this._rgba[i]>1) this._rgba[i]=1;}} WebInspector.Color.parse=function(text) {var value=text.toLowerCase().replace(/\s+/g,"");var simple=/^(?:#([0-9a-f]{3,6})|rgb\(([^)]+)\)|(\w+)|hsl\(([^)]+)\))$/i;var match=value.match(simple);if(match){if(match[1]){var hex=match[1].toUpperCase();var format;if(hex.length===3){format=WebInspector.Color.Format.ShortHEX;hex=hex.charAt(0)+hex.charAt(0)+hex.charAt(1)+hex.charAt(1)+hex.charAt(2)+hex.charAt(2);}else format=WebInspector.Color.Format.HEX;var r=parseInt(hex.substring(0,2),16);var g=parseInt(hex.substring(2,4),16);var b=parseInt(hex.substring(4,6),16);return new WebInspector.Color([r/255,g/255,b/255,1],format,text);} if(match[2]){var rgbString=match[2].split(/\s*,\s*/);var rgba=[WebInspector.Color._parseRgbNumeric(rgbString[0]),WebInspector.Color._parseRgbNumeric(rgbString[1]),WebInspector.Color._parseRgbNumeric(rgbString[2]),1];return new WebInspector.Color(rgba,WebInspector.Color.Format.RGB,text);} if(match[3]){var nickname=match[3].toLowerCase();if(nickname in WebInspector.Color.Nicknames){var rgba=WebInspector.Color.Nicknames[nickname];var color=WebInspector.Color.fromRGBA(rgba);color._format=WebInspector.Color.Format.Nickname;color._originalText=nickname;return color;} return null;} if(match[4]){var hslString=match[4].replace(/%/g,"").split(/\s*,\s*/);var hsla=[WebInspector.Color._parseHueNumeric(hslString[0]),WebInspector.Color._parseSatLightNumeric(hslString[1]),WebInspector.Color._parseSatLightNumeric(hslString[2]),1];var rgba=WebInspector.Color._hsl2rgb(hsla);return new WebInspector.Color(rgba,WebInspector.Color.Format.HSL,text);} return null;} var advanced=/^(?:rgba\(([^)]+)\)|hsla\(([^)]+)\))$/;match=value.match(advanced);if(match){if(match[1]){var rgbaString=match[1].split(/\s*,\s*/);var rgba=[WebInspector.Color._parseRgbNumeric(rgbaString[0]),WebInspector.Color._parseRgbNumeric(rgbaString[1]),WebInspector.Color._parseRgbNumeric(rgbaString[2]),WebInspector.Color._parseAlphaNumeric(rgbaString[3])];return new WebInspector.Color(rgba,WebInspector.Color.Format.RGBA,text);} if(match[2]){var hslaString=match[2].replace(/%/g,"").split(/\s*,\s*/);var hsla=[WebInspector.Color._parseHueNumeric(hslaString[0]),WebInspector.Color._parseSatLightNumeric(hslaString[1]),WebInspector.Color._parseSatLightNumeric(hslaString[2]),WebInspector.Color._parseAlphaNumeric(hslaString[3])];var rgba=WebInspector.Color._hsl2rgb(hsla);return new WebInspector.Color(rgba,WebInspector.Color.Format.HSLA,text);}} return null;} WebInspector.Color.fromRGBA=function(rgba) {return new WebInspector.Color([rgba[0]/255,rgba[1]/255,rgba[2]/255,rgba[3]]);} WebInspector.Color.fromHSVA=function(hsva) {var h=hsva[0];var s=hsva[1];var v=hsva[2];var t=(2-s)*v;if(v===0||s===0) s=0;else s*=v/(t<1?t:2-t);var hsla=[h,s,t/2,hsva[3]];return new WebInspector.Color(WebInspector.Color._hsl2rgb(hsla),WebInspector.Color.Format.HSLA);} WebInspector.Color.prototype={format:function() {return this._format;},hsla:function() {if(this._hsla) return this._hsla;var r=this._rgba[0];var g=this._rgba[1];var b=this._rgba[2];var max=Math.max(r,g,b);var min=Math.min(r,g,b);var diff=max-min;var add=max+min;if(min===max) var h=0;else if(r===max) var h=((1/6*(g-b)/diff)+1)%1;else if(g===max) var h=(1/6*(b-r)/diff)+1/3;else var h=(1/6*(r-g)/diff)+2/3;var l=0.5*add;if(l===0) var s=0;else if(l===1) var s=1;else if(l<=0.5) var s=diff/add;else var s=diff/(2-add);this._hsla=[h,s,l,this._rgba[3]];return this._hsla;},hsva:function() {var hsla=this.hsla();var h=hsla[0];var s=hsla[1];var l=hsla[2];s*=l<0.5?l:1-l;return[h,s!==0?2*s/(l+s):0,(l+s),hsla[3]];},hasAlpha:function() {return this._rgba[3]!==1;},canBeShortHex:function() {if(this.hasAlpha()) return false;for(var i=0;i<3;++i){var c=Math.round(this._rgba[i]*255);if(c%17) return false;} return true;},toString:function(format) {if(!format) format=this._format;function toRgbValue(value) {return Math.round(value*255);} function toHexValue(value) {var hex=Math.round(value*255).toString(16);return hex.length===1?"0"+hex:hex;} function toShortHexValue(value) {return(Math.round(value*255)/17).toString(16);} switch(format){case WebInspector.Color.Format.Original:return this._originalText;case WebInspector.Color.Format.RGB:if(this.hasAlpha()) return null;return String.sprintf("rgb(%d, %d, %d)",toRgbValue(this._rgba[0]),toRgbValue(this._rgba[1]),toRgbValue(this._rgba[2]));case WebInspector.Color.Format.RGBA:return String.sprintf("rgba(%d, %d, %d, %f)",toRgbValue(this._rgba[0]),toRgbValue(this._rgba[1]),toRgbValue(this._rgba[2]),this._rgba[3]);case WebInspector.Color.Format.HSL:if(this.hasAlpha()) return null;var hsl=this.hsla();return String.sprintf("hsl(%d, %d%, %d%)",Math.round(hsl[0]*360),Math.round(hsl[1]*100),Math.round(hsl[2]*100));case WebInspector.Color.Format.HSLA:var hsla=this.hsla();return String.sprintf("hsla(%d, %d%, %d%, %f)",Math.round(hsla[0]*360),Math.round(hsla[1]*100),Math.round(hsla[2]*100),hsla[3]);case WebInspector.Color.Format.HEX:if(this.hasAlpha()) return null;return String.sprintf("#%s%s%s",toHexValue(this._rgba[0]),toHexValue(this._rgba[1]),toHexValue(this._rgba[2])).toUpperCase();case WebInspector.Color.Format.ShortHEX:if(!this.canBeShortHex()) return null;return String.sprintf("#%s%s%s",toShortHexValue(this._rgba[0]),toShortHexValue(this._rgba[1]),toShortHexValue(this._rgba[2])).toUpperCase();case WebInspector.Color.Format.Nickname:return this.nickname();} return this._originalText;},_canonicalRGBA:function() {var rgba=new Array(3);for(var i=0;i<3;++i) rgba[i]=Math.round(this._rgba[i]*255);if(this._rgba[3]!==1) rgba.push(this._rgba[3]);return rgba;},nickname:function() {if(!WebInspector.Color._rgbaToNickname){WebInspector.Color._rgbaToNickname={};for(var nickname in WebInspector.Color.Nicknames){var rgba=WebInspector.Color.Nicknames[nickname];WebInspector.Color._rgbaToNickname[rgba]=nickname;}} return WebInspector.Color._rgbaToNickname[this._canonicalRGBA()]||null;},toProtocolRGBA:function() {var rgba=this._canonicalRGBA();var result={r:rgba[0],g:rgba[1],b:rgba[2]};if(rgba[3]!==1) result.a=rgba[3];return result;},invert:function() {var rgba=[];rgba[0]=1-this._rgba[0];rgba[1]=1-this._rgba[1];rgba[2]=1-this._rgba[2];rgba[3]=this._rgba[3];return new WebInspector.Color(rgba);},setAlpha:function(alpha) {var rgba=this._rgba.slice();rgba[3]=alpha;return new WebInspector.Color(rgba);}} WebInspector.Color._parseRgbNumeric=function(value) {var parsed=parseInt(value,10);if(value.indexOf("%")!==-1) parsed/=100;else parsed/=255;return parsed;} WebInspector.Color._parseHueNumeric=function(value) {return isNaN(value)?0:(parseFloat(value)/360)%1;} WebInspector.Color._parseSatLightNumeric=function(value) {return parseFloat(value)/100;} WebInspector.Color._parseAlphaNumeric=function(value) {return isNaN(value)?0:parseFloat(value);} WebInspector.Color._hsl2rgb=function(hsl) {var h=hsl[0];var s=hsl[1];var l=hsl[2];function hue2rgb(p,q,h) {if(h<0) h+=1;else if(h>1) h-=1;if((h*6)<1) return p+(q-p)*h*6;else if((h*2)<1) return q;else if((h*3)<2) return p+(q-p)*((2/3)-h)*6;else return p;} if(s<0) s=0;if(l<=0.5) var q=l*(1+s);else var q=l+s-(l*s);var p=2*l-q;var tr=h+(1/3);var tg=h;var tb=h-(1/3);var r=hue2rgb(p,q,tr);var g=hue2rgb(p,q,tg);var b=hue2rgb(p,q,tb);return[r,g,b,hsl[3]];} WebInspector.Color.Nicknames={"aliceblue":[240,248,255],"antiquewhite":[250,235,215],"aquamarine":[127,255,212],"azure":[240,255,255],"beige":[245,245,220],"bisque":[255,228,196],"black":[0,0,0],"blanchedalmond":[255,235,205],"blue":[0,0,255],"blueviolet":[138,43,226],"brown":[165,42,42],"burlywood":[222,184,135],"cadetblue":[95,158,160],"chartreuse":[127,255,0],"chocolate":[210,105,30],"coral":[255,127,80],"cornflowerblue":[100,149,237],"cornsilk":[255,248,220],"crimson":[237,20,61],"cyan":[0,255,255],"darkblue":[0,0,139],"darkcyan":[0,139,139],"darkgoldenrod":[184,134,11],"darkgray":[169,169,169],"darkgrey":[169,169,169],"darkgreen":[0,100,0],"darkkhaki":[189,183,107],"darkmagenta":[139,0,139],"darkolivegreen":[85,107,47],"darkorange":[255,140,0],"darkorchid":[153,50,204],"darkred":[139,0,0],"darksalmon":[233,150,122],"darkseagreen":[143,188,143],"darkslateblue":[72,61,139],"darkslategray":[47,79,79],"darkslategrey":[47,79,79],"darkturquoise":[0,206,209],"darkviolet":[148,0,211],"deeppink":[255,20,147],"deepskyblue":[0,191,255],"dimgray":[105,105,105],"dimgrey":[105,105,105],"dodgerblue":[30,144,255],"firebrick":[178,34,34],"floralwhite":[255,250,240],"forestgreen":[34,139,34],"gainsboro":[220,220,220],"ghostwhite":[248,248,255],"gold":[255,215,0],"goldenrod":[218,165,32],"gray":[128,128,128],"grey":[128,128,128],"green":[0,128,0],"greenyellow":[173,255,47],"honeydew":[240,255,240],"hotpink":[255,105,180],"indianred":[205,92,92],"indigo":[75,0,130],"ivory":[255,255,240],"khaki":[240,230,140],"lavender":[230,230,250],"lavenderblush":[255,240,245],"lawngreen":[124,252,0],"lemonchiffon":[255,250,205],"lightblue":[173,216,230],"lightcoral":[240,128,128],"lightcyan":[224,255,255],"lightgoldenrodyellow":[250,250,210],"lightgreen":[144,238,144],"lightgray":[211,211,211],"lightgrey":[211,211,211],"lightpink":[255,182,193],"lightsalmon":[255,160,122],"lightseagreen":[32,178,170],"lightskyblue":[135,206,250],"lightslategray":[119,136,153],"lightslategrey":[119,136,153],"lightsteelblue":[176,196,222],"lightyellow":[255,255,224],"lime":[0,255,0],"limegreen":[50,205,50],"linen":[250,240,230],"magenta":[255,0,255],"maroon":[128,0,0],"mediumaquamarine":[102,205,170],"mediumblue":[0,0,205],"mediumorchid":[186,85,211],"mediumpurple":[147,112,219],"mediumseagreen":[60,179,113],"mediumslateblue":[123,104,238],"mediumspringgreen":[0,250,154],"mediumturquoise":[72,209,204],"mediumvioletred":[199,21,133],"midnightblue":[25,25,112],"mintcream":[245,255,250],"mistyrose":[255,228,225],"moccasin":[255,228,181],"navajowhite":[255,222,173],"navy":[0,0,128],"oldlace":[253,245,230],"olive":[128,128,0],"olivedrab":[107,142,35],"orange":[255,165,0],"orangered":[255,69,0],"orchid":[218,112,214],"palegoldenrod":[238,232,170],"palegreen":[152,251,152],"paleturquoise":[175,238,238],"palevioletred":[219,112,147],"papayawhip":[255,239,213],"peachpuff":[255,218,185],"peru":[205,133,63],"pink":[255,192,203],"plum":[221,160,221],"powderblue":[176,224,230],"purple":[128,0,128],"red":[255,0,0],"rosybrown":[188,143,143],"royalblue":[65,105,225],"saddlebrown":[139,69,19],"salmon":[250,128,114],"sandybrown":[244,164,96],"seagreen":[46,139,87],"seashell":[255,245,238],"sienna":[160,82,45],"silver":[192,192,192],"skyblue":[135,206,235],"slateblue":[106,90,205],"slategray":[112,128,144],"slategrey":[112,128,144],"snow":[255,250,250],"springgreen":[0,255,127],"steelblue":[70,130,180],"tan":[210,180,140],"teal":[0,128,128],"thistle":[216,191,216],"tomato":[255,99,71],"turquoise":[64,224,208],"violet":[238,130,238],"wheat":[245,222,179],"white":[255,255,255],"whitesmoke":[245,245,245],"yellow":[255,255,0],"yellowgreen":[154,205,50],"transparent":[0,0,0,0],};WebInspector.Color.PageHighlight={Content:WebInspector.Color.fromRGBA([111,168,220,.66]),ContentLight:WebInspector.Color.fromRGBA([111,168,220,.5]),ContentOutline:WebInspector.Color.fromRGBA([9,83,148]),Padding:WebInspector.Color.fromRGBA([147,196,125,.55]),PaddingLight:WebInspector.Color.fromRGBA([147,196,125,.4]),Border:WebInspector.Color.fromRGBA([255,229,153,.66]),BorderLight:WebInspector.Color.fromRGBA([255,229,153,.5]),Margin:WebInspector.Color.fromRGBA([246,178,107,.66]),MarginLight:WebInspector.Color.fromRGBA([246,178,107,.5]),EventTarget:WebInspector.Color.fromRGBA([255,196,196,.66])} WebInspector.Color.Format={Original:"original",Nickname:"nickname",HEX:"hex",ShortHEX:"shorthex",RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla"} WebInspector.TextRange=function(startLine,startColumn,endLine,endColumn) {this.startLine=startLine;this.startColumn=startColumn;this.endLine=endLine;this.endColumn=endColumn;} WebInspector.TextRange.createFromLocation=function(line,column) {return new WebInspector.TextRange(line,column,line,column);} WebInspector.TextRange.fromObject=function(serializedTextRange) {return new WebInspector.TextRange(serializedTextRange.startLine,serializedTextRange.startColumn,serializedTextRange.endLine,serializedTextRange.endColumn);} WebInspector.TextRange.comparator=function(range1,range2) {return range1.compareTo(range2);} WebInspector.TextRange.prototype={isEmpty:function() {return this.startLine===this.endLine&&this.startColumn===this.endColumn;},immediatelyPrecedes:function(range) {if(!range) return false;return this.endLine===range.startLine&&this.endColumn===range.startColumn;},immediatelyFollows:function(range) {if(!range) return false;return range.immediatelyPrecedes(this);},follows:function(range) {return(range.endLine===this.startLine&&range.endColumn<=this.startColumn)||range.endLinethis.endLine||(this.startLine===this.endLine&&this.startColumn>this.endColumn)) return new WebInspector.TextRange(this.endLine,this.endColumn,this.startLine,this.startColumn);else return this.clone();},clone:function() {return new WebInspector.TextRange(this.startLine,this.startColumn,this.endLine,this.endColumn);},serializeToObject:function() {var serializedTextRange={};serializedTextRange.startLine=this.startLine;serializedTextRange.startColumn=this.startColumn;serializedTextRange.endLine=this.endLine;serializedTextRange.endColumn=this.endColumn;return serializedTextRange;},compareTo:function(other) {if(this.startLine>other.startLine) return 1;if(this.startLineother.startColumn) return 1;if(this.startColumn=6) return WebInspector.PlatformFlavor.WindowsVista;return null;}else if(WebInspector.platform()==="mac"){var match=userAgent.match(/Mac OS X\s*(?:(\d+)_(\d+))?/);if(!match||match[1]!=10) return WebInspector.PlatformFlavor.MacSnowLeopard;switch(Number(match[2])){case 4:return WebInspector.PlatformFlavor.MacTiger;case 5:return WebInspector.PlatformFlavor.MacLeopard;case 6:return WebInspector.PlatformFlavor.MacSnowLeopard;case 7:return WebInspector.PlatformFlavor.MacLion;case 8:case 9:default:return"";}}} if(!WebInspector._platformFlavor) WebInspector._platformFlavor=detectFlavor();return WebInspector._platformFlavor;} WebInspector.port=function() {if(!WebInspector._port) WebInspector._port=InspectorFrontendHost.port();return WebInspector._port;} WebInspector.fontFamily=function() {if(WebInspector._fontFamily) return WebInspector._fontFamily;switch(WebInspector.platform()){case"linux":WebInspector._fontFamily="Ubuntu, Arial, sans-serif";break;case"mac":WebInspector._fontFamily="'Lucida Grande', sans-serif";break;case"windows":WebInspector._fontFamily="'Segoe UI', Tahoma, sans-serif";break;} return WebInspector._fontFamily;} WebInspector.monospaceFontFamily=function() {if(WebInspector._monospaceFontFamily) return WebInspector._monospaceFontFamily;switch(WebInspector.platform()){case"linux":WebInspector._monospaceFontFamily="dejavu sans mono, monospace";break;case"mac":WebInspector._monospaceFontFamily="Menlo, monospace";break;case"windows":WebInspector._monospaceFontFamily="Consolas, monospace";break;} return WebInspector._monospaceFontFamily;} WebInspector.Geometry={};WebInspector.Geometry._Eps=1e-5;WebInspector.Geometry.Vector=function(x,y,z) {this.x=x;this.y=y;this.z=z;} WebInspector.Geometry.Vector.prototype={length:function() {return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);},normalize:function() {var length=this.length();if(length<=WebInspector.Geometry._Eps) return;this.x/=length;this.y/=length;this.z/=length;}} WebInspector.Geometry.EulerAngles=function(alpha,beta,gamma) {this.alpha=alpha;this.beta=beta;this.gamma=gamma;} WebInspector.Geometry.EulerAngles.fromRotationMatrix=function(rotationMatrix) {var beta=Math.atan2(rotationMatrix.m23,rotationMatrix.m33);var gamma=Math.atan2(-rotationMatrix.m13,Math.sqrt(rotationMatrix.m11*rotationMatrix.m11+rotationMatrix.m12*rotationMatrix.m12));var alpha=Math.atan2(rotationMatrix.m12,rotationMatrix.m11);return new WebInspector.Geometry.EulerAngles(WebInspector.Geometry.radToDeg(alpha),WebInspector.Geometry.radToDeg(beta),WebInspector.Geometry.radToDeg(gamma));} WebInspector.Geometry.scalarProduct=function(u,v) {return u.x*v.x+u.y*v.y+u.z*v.z;} WebInspector.Geometry.crossProduct=function(u,v) {var x=u.y*v.z-u.z*v.y;var y=u.z*v.x-u.x*v.z;var z=u.x*v.y-u.y*v.x;return new WebInspector.Geometry.Vector(x,y,z);} WebInspector.Geometry.subtract=function(u,v) {var x=u.x-v.x;var y=u.y-v.y;var z=u.z-v.z;return new WebInspector.Geometry.Vector(x,y,z);} WebInspector.Geometry.multiplyVectorByMatrixAndNormalize=function(v,m) {var t=v.x*m.m14+v.y*m.m24+v.z*m.m34+m.m44;var x=(v.x*m.m11+v.y*m.m21+v.z*m.m31+m.m41)/t;var y=(v.x*m.m12+v.y*m.m22+v.z*m.m32+m.m42)/t;var z=(v.x*m.m13+v.y*m.m23+v.z*m.m33+m.m43)/t;return new WebInspector.Geometry.Vector(x,y,z);} WebInspector.Geometry.calculateAngle=function(u,v) {var uLength=u.length();var vLength=v.length();if(uLength<=WebInspector.Geometry._Eps||vLength<=WebInspector.Geometry._Eps) return 0;var cos=WebInspector.Geometry.scalarProduct(u,v)/uLength/vLength;if(Math.abs(cos)>1) return 0;return WebInspector.Geometry.radToDeg(Math.acos(cos));} WebInspector.Geometry.radToDeg=function(rad) {return rad*180/Math.PI;} function Size(width,height) {this.width=width;this.height=height;} Size.prototype.isEqual=function(size) {return!!size&&this.width===size.width&&this.height===size.height;};Size.prototype.widthToMax=function(size) {return new Size(Math.max(this.width,(typeof size==="number"?size:size.width)),this.height);};Size.prototype.addWidth=function(size) {return new Size(this.width+(typeof size==="number"?size:size.width),this.height);};Size.prototype.heightToMax=function(size) {return new Size(this.width,Math.max(this.height,(typeof size==="number"?size:size.height)));};Size.prototype.addHeight=function(size) {return new Size(this.width,this.height+(typeof size==="number"?size:size.height));};var Capabilities={isMainFrontend:false,canProfilePower:false,} WebInspector.Settings=function() {this._eventSupport=new WebInspector.Object();this._registry=({});this.colorFormat=this.createSetting("colorFormat","original");this.consoleHistory=this.createSetting("consoleHistory",[]);this.domWordWrap=this.createSetting("domWordWrap",true);this.eventListenersFilter=this.createSetting("eventListenersFilter","all");this.lastViewedScriptFile=this.createSetting("lastViewedScriptFile","application");this.monitoringXHREnabled=this.createSetting("monitoringXHREnabled",false);this.preserveConsoleLog=this.createSetting("preserveConsoleLog",false);this.consoleTimestampsEnabled=this.createSetting("consoleTimestampsEnabled",false);this.resourcesLargeRows=this.createSetting("resourcesLargeRows",true);this.resourcesSortOptions=this.createSetting("resourcesSortOptions",{timeOption:"responseTime",sizeOption:"transferSize"});this.resourceViewTab=this.createSetting("resourceViewTab","preview");this.showInheritedComputedStyleProperties=this.createSetting("showInheritedComputedStyleProperties",false);this.showUserAgentStyles=this.createSetting("showUserAgentStyles",true);this.watchExpressions=this.createSetting("watchExpressions",[]);this.breakpoints=this.createSetting("breakpoints",[]);this.eventListenerBreakpoints=this.createSetting("eventListenerBreakpoints",[]);this.domBreakpoints=this.createSetting("domBreakpoints",[]);this.xhrBreakpoints=this.createSetting("xhrBreakpoints",[]);this.jsSourceMapsEnabled=this.createSetting("sourceMapsEnabled",true);this.cssSourceMapsEnabled=this.createSetting("cssSourceMapsEnabled",true);this.cacheDisabled=this.createSetting("cacheDisabled",false);this.showUAShadowDOM=this.createSetting("showUAShadowDOM",false);this.savedURLs=this.createSetting("savedURLs",{});this.javaScriptDisabled=this.createSetting("javaScriptDisabled",false);this.showAdvancedHeapSnapshotProperties=this.createSetting("showAdvancedHeapSnapshotProperties",false);this.highResolutionCpuProfiling=this.createSetting("highResolutionCpuProfiling",false);this.searchInContentScripts=this.createSetting("searchInContentScripts",false);this.textEditorIndent=this.createSetting("textEditorIndent"," ");this.textEditorAutoDetectIndent=this.createSetting("textEditorAutoIndentIndent",true);this.textEditorAutocompletion=this.createSetting("textEditorAutocompletion",true);this.textEditorBracketMatching=this.createSetting("textEditorBracketMatching",true);this.cssReloadEnabled=this.createSetting("cssReloadEnabled",false);this.timelineLiveUpdate=this.createSetting("timelineLiveUpdate",true);this.showMetricsRulers=this.createSetting("showMetricsRulers",false);this.workerInspectorWidth=this.createSetting("workerInspectorWidth",600);this.workerInspectorHeight=this.createSetting("workerInspectorHeight",600);this.messageURLFilters=this.createSetting("messageURLFilters",{});this.networkHideDataURL=this.createSetting("networkHideDataURL",false);this.networkResourceTypeFilters=this.createSetting("networkResourceTypeFilters",{});this.messageLevelFilters=this.createSetting("messageLevelFilters",{});this.splitVerticallyWhenDockedToRight=this.createSetting("splitVerticallyWhenDockedToRight",true);this.visiblePanels=this.createSetting("visiblePanels",{});this.shortcutPanelSwitch=this.createSetting("shortcutPanelSwitch",false);this.showWhitespacesInEditor=this.createSetting("showWhitespacesInEditor",false);this.skipStackFramesSwitch=this.createSetting("skipStackFramesSwitch",false);this.skipStackFramesPattern=this.createRegExpSetting("skipStackFramesPattern","");this.pauseOnExceptionEnabled=this.createSetting("pauseOnExceptionEnabled",false);this.pauseOnCaughtException=this.createSetting("pauseOnCaughtException",false);this.enableAsyncStackTraces=this.createSetting("enableAsyncStackTraces",false);this.showMediaQueryInspector=this.createSetting("showMediaQueryInspector",false);} WebInspector.Settings.prototype={createSetting:function(key,defaultValue) {if(!this._registry[key]) this._registry[key]=new WebInspector.Setting(key,defaultValue,this._eventSupport,window.localStorage);return this._registry[key];},createRegExpSetting:function(key,defaultValue,regexFlags) {if(!this._registry[key]) this._registry[key]=new WebInspector.RegExpSetting(key,defaultValue,this._eventSupport,window.localStorage,regexFlags);return this._registry[key];},createBackendSetting:function(key,defaultValue,setterCallback) {if(!this._registry[key]) this._registry[key]=new WebInspector.BackendSetting(key,defaultValue,this._eventSupport,window.localStorage,setterCallback);return this._registry[key];},initializeBackendSettings:function() {this.showPaintRects=WebInspector.settings.createBackendSetting("showPaintRects",false,PageAgent.setShowPaintRects.bind(PageAgent));this.showDebugBorders=WebInspector.settings.createBackendSetting("showDebugBorders",false,PageAgent.setShowDebugBorders.bind(PageAgent));this.continuousPainting=WebInspector.settings.createBackendSetting("continuousPainting",false,PageAgent.setContinuousPaintingEnabled.bind(PageAgent));this.showFPSCounter=WebInspector.settings.createBackendSetting("showFPSCounter",false,PageAgent.setShowFPSCounter.bind(PageAgent));this.showScrollBottleneckRects=WebInspector.settings.createBackendSetting("showScrollBottleneckRects",false,PageAgent.setShowScrollBottleneckRects.bind(PageAgent));}} WebInspector.Setting=function(name,defaultValue,eventSupport,storage) {this._name=name;this._defaultValue=defaultValue;this._eventSupport=eventSupport;this._storage=storage;} WebInspector.Setting.prototype={addChangeListener:function(listener,thisObject) {this._eventSupport.addEventListener(this._name,listener,thisObject);},removeChangeListener:function(listener,thisObject) {this._eventSupport.removeEventListener(this._name,listener,thisObject);},get name() {return this._name;},get:function() {if(typeof this._value!=="undefined") return this._value;this._value=this._defaultValue;if(this._storage&&this._name in this._storage){try{this._value=JSON.parse(this._storage[this._name]);}catch(e){delete this._storage[this._name];}} return this._value;},set:function(value) {this._value=value;if(this._storage){try{this._storage[this._name]=JSON.stringify(value);}catch(e){console.error("Error saving setting with name:"+this._name);}} this._eventSupport.dispatchEventToListeners(this._name,value);}} WebInspector.RegExpSetting=function(name,defaultValue,eventSupport,storage,regexFlags) {WebInspector.Setting.call(this,name,defaultValue,eventSupport,storage);this._regexFlags=regexFlags;} WebInspector.RegExpSetting.prototype={set:function(value) {delete this._regex;WebInspector.Setting.prototype.set.call(this,value);},asRegExp:function() {if(typeof this._regex!=="undefined") return this._regex;this._regex=null;try{this._regex=new RegExp(this.get(),this._regexFlags||"");}catch(e){} return this._regex;},__proto__:WebInspector.Setting.prototype} WebInspector.BackendSetting=function(name,defaultValue,eventSupport,storage,setterCallback) {WebInspector.Setting.call(this,name,defaultValue,eventSupport,storage);this._setterCallback=setterCallback;var currentValue=this.get();if(currentValue!==defaultValue) this.set(currentValue);} WebInspector.BackendSetting.prototype={set:function(value) {function callback(error) {if(error){WebInspector.messageSink.addErrorMessage("Error applying setting "+this._name+": "+error);this._eventSupport.dispatchEventToListeners(this._name,this._value);return;} WebInspector.Setting.prototype.set.call(this,value);} this._setterCallback(value,callback.bind(this));},__proto__:WebInspector.Setting.prototype} WebInspector.ExperimentsSettings=function(experimentsEnabled) {this._experimentsEnabled=experimentsEnabled;this._setting=WebInspector.settings.createSetting("experiments",{});this._experiments=[];this._enabledForTest={};this.applyCustomStylesheet=this._createExperiment("applyCustomStylesheet","Allow custom UI themes");this.canvasInspection=this._createExperiment("canvasInspection ","Canvas inspection");this.devicesPanel=this._createExperiment("devicesPanel","Devices panel",true);this.disableAgentsWhenProfile=this._createExperiment("disableAgentsWhenProfile","Disable other agents and UI when profiler is active",true);this.dockToLeft=this._createExperiment("dockToLeft","Dock to left",true);this.editorInDrawer=this._createExperiment("showEditorInDrawer","Editor in drawer",true);this.fileSystemInspection=this._createExperiment("fileSystemInspection","FileSystem inspection");this.frameworksDebuggingSupport=this._createExperiment("frameworksDebuggingSupport","JavaScript frameworks debugging");this.gpuTimeline=this._createExperiment("gpuTimeline","GPU data on timeline",true);this.heapAllocationProfiler=this._createExperiment("allocationProfiler","Heap allocation profiler");this.heapSnapshotStatistics=this._createExperiment("heapSnapshotStatistics","Heap snapshot statistics",true);this.layersPanel=this._createExperiment("layersPanel","Layers panel",true);this.networkConditions=this._createExperiment("networkConditions","Network conditions",true);this.responsiveDesign=this._createExperiment("responsiveDesign","Responsive design");this.timelineFlameChart=this._createExperiment("timelineFlameChart","Timeline flame chart");this.timelineOnTraceEvents=this._createExperiment("timelineOnTraceEvents","Timeline on trace events",true);this.timelinePowerProfiler=this._createExperiment("timelinePowerProfiler","Timeline power profiler");this.timelineTracingMode=this._createExperiment("timelineTracingMode","Timeline tracing mode");this.timelineJSCPUProfile=this._createExperiment("timelineJSCPUProfile","Timeline with JS sampling");this.timelineNoLiveUpdate=this._createExperiment("timelineNoLiveUpdate","Timeline w/o live update",true);this.workersInMainWindow=this._createExperiment("workersInMainWindow","Workers in main window",true);this._cleanUpSetting();} WebInspector.ExperimentsSettings.prototype={get experiments() {return this._experiments.slice();},get experimentsEnabled() {return this._experimentsEnabled;},_createExperiment:function(experimentName,experimentTitle,hidden) {var experiment=new WebInspector.Experiment(this,experimentName,experimentTitle,!!hidden);this._experiments.push(experiment);return experiment;},isEnabled:function(experimentName) {if(this._enabledForTest[experimentName]) return true;if(!this.experimentsEnabled) return false;var experimentsSetting=this._setting.get();return experimentsSetting[experimentName];},setEnabled:function(experimentName,enabled) {var experimentsSetting=this._setting.get();experimentsSetting[experimentName]=enabled;this._setting.set(experimentsSetting);},_enableForTest:function(experimentName) {this._enabledForTest[experimentName]=true;},_cleanUpSetting:function() {var experimentsSetting=this._setting.get();var cleanedUpExperimentSetting={};for(var i=0;i