rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
case 'SET[notimplemented]':
case 'SET_notimplemented':
var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; break; case 'SET[notimplemented]': className = 'testcaseNotImplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': className = 'showMemoryAndTime'; break; default: // Yikes! break; } return className; }
case 'SET[testdox]':
case 'SET_testdox':
var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; break; case 'SET[notimplemented]': className = 'testcaseNotImplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': className = 'showMemoryAndTime'; break; default: // Yikes! break; } return className; }
case 'SET[showMemoryAndTime]':
case 'SET_showMemoryAndTime':
var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; break; case 'SET[notimplemented]': className = 'testcaseNotImplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': className = 'showMemoryAndTime'; break; default: // Yikes! break; } return className; }
className = '';
var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; break; case 'SET[notimplemented]': className = 'testcaseNotImplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': className = 'showMemoryAndTime'; break; default: // Yikes! break; } return className; }
function (arg) { quickmarks.jumpTo(arg, /\bquickmark\b/.test(options["activate"]) ? dactyl.NEW_TAB : dactyl.NEW_BACKGROUND_TAB); },
function (arg) { quickmarks.jumpTo(arg, { from: "quickmark", where: dactyl.NEW_TAB }); },
mappings: function () { var myModes = config.browserModes; mappings.add(myModes, ["go"], "Jump to a QuickMark", function (arg) { quickmarks.jumpTo(arg, dactyl.CURRENT_TAB); }, { arg: true }); mappings.add(myModes, ["gn"], "Jump to a QuickMark in a new tab", function (arg) { quickmarks.jumpTo(arg, /\bquickmark\b/.test(options["activate"]) ? dactyl.NEW_TAB : dactyl.NEW_BACKGROUND_TAB); }, { arg: true }); mappings.add(myModes, ["M"], "Add new QuickMark for current URL", function (arg) { dactyl.assert(/^[a-zA-Z0-9]$/.test(arg)); quickmarks.add(arg, buffer.URL); }, { arg: true }); }
return editor.expandAbbreviation(modes.COMMAND_LINE);
editor.expandAbbreviation(modes.COMMAND_LINE); return true;
mappings: function () { var myModes = [modes.COMMAND_LINE]; // TODO: move "<Esc>", "<C-[>" here from mappings mappings.add(myModes, ["<C-c>"], "Focus content", function () { events.onEscape(); }); // Any "non-keyword" character triggers abbreviation expansion // TODO: Add "<CR>" and "<Tab>" to this list // At the moment, adding "<Tab>" breaks tab completion. Adding // "<CR>" has no effect. // TODO: Make non-keyword recognition smarter so that there need not // be two lists of the same characters (one here and a regex in // mappings.js) mappings.add(myModes, ["<Space>", '"', "'"], "Expand command line abbreviation", function () { commandline.resetCompletions(); return editor.expandAbbreviation(modes.COMMAND_LINE); }, { route: true }); mappings.add(myModes, ["<C-]>", "<C-5>"], "Expand command line abbreviation", function () { editor.expandAbbreviation(modes.COMMAND_LINE); }); mappings.add([modes.NORMAL], ["g<"], "Redisplay the last command output", function () { dactyl.assert(commandline._lastMowOutput, "No previous command output"); commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL); }); },
rangefinder._found = false; rangefinder.onSubmit(buffer.getCurrentWord(), false);
rangefinder.find(buffer.getCurrentWord(), false); rangefinder.findAgain();
mappings: function () { var myModes = config.browserModes.concat([modes.CARET]); mappings.add(myModes, ["/"], "Search forward for a pattern", function () { rangefinder.openPrompt(modes.FIND_FORWARD); }); mappings.add(myModes, ["?"], "Search backwards for a pattern", function () { rangefinder.openPrompt(modes.FIND_BACKWARD); }); mappings.add(myModes, ["n"], "Find next", function () { rangefinder.findAgain(false); }); mappings.add(myModes, ["N"], "Find previous", function () { rangefinder.findAgain(true); }); mappings.add(myModes.concat([modes.CARET, modes.TEXTAREA]), ["*"], "Find word under cursor", function () { rangefinder._found = false; rangefinder.onSubmit(buffer.getCurrentWord(), false); }); mappings.add(myModes.concat([modes.CARET, modes.TEXTAREA]), ["#"], "Find word under cursor backwards", function () { rangefinder._found = false; rangefinder.onSubmit(buffer.getCurrentWord(), true); }); },
rangefinder._found = false; rangefinder.onSubmit(buffer.getCurrentWord(), true);
rangefinder.find(buffer.getCurrentWord(), true); rangefinder.findAgain();
mappings: function () { var myModes = config.browserModes.concat([modes.CARET]); mappings.add(myModes, ["/"], "Search forward for a pattern", function () { rangefinder.openPrompt(modes.FIND_FORWARD); }); mappings.add(myModes, ["?"], "Search backwards for a pattern", function () { rangefinder.openPrompt(modes.FIND_BACKWARD); }); mappings.add(myModes, ["n"], "Find next", function () { rangefinder.findAgain(false); }); mappings.add(myModes, ["N"], "Find previous", function () { rangefinder.findAgain(true); }); mappings.add(myModes.concat([modes.CARET, modes.TEXTAREA]), ["*"], "Find word under cursor", function () { rangefinder._found = false; rangefinder.onSubmit(buffer.getCurrentWord(), false); }); mappings.add(myModes.concat([modes.CARET, modes.TEXTAREA]), ["#"], "Find word under cursor backwards", function () { rangefinder._found = false; rangefinder.onSubmit(buffer.getCurrentWord(), true); }); },
dactyl.assert(this._lastMowOutput); this._echoMultiline(this._lastMowOutput, commandline.HL_NORMAL);
dactyl.assert(commandline._lastMowOutput, "No previous command output"); commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL);
mappings: function () { var myModes = [modes.COMMAND_LINE]; // TODO: move "<Esc>", "<C-[>" here from mappings mappings.add(myModes, ["<C-c>"], "Focus content", function () { events.onEscape(); }); // Any "non-keyword" character triggers abbreviation expansion // TODO: Add "<CR>" and "<Tab>" to this list // At the moment, adding "<Tab>" breaks tab completion. Adding // "<CR>" has no effect. // TODO: Make non-keyword recognition smarter so that there need not // be two lists of the same characters (one here and a regex in // mappings.js) mappings.add(myModes, ["<Space>", '"', "'"], "Expand command line abbreviation", function () { commandline.resetCompletions(); return editor.expandAbbreviation(modes.COMMAND_LINE); }, { route: true }); mappings.add(myModes, ["<C-]>", "<C-5>"], "Expand command line abbreviation", function () { editor.expandAbbreviation(modes.COMMAND_LINE); }); mappings.add([modes.NORMAL], ["g<"], "Redisplay the last command output", function () { dactyl.assert(this._lastMowOutput); this._echoMultiline(this._lastMowOutput, commandline.HL_NORMAL); }); },
mappings.add([modes.NORMAL], ["<C-l>"],
mappings.add(modes.all, ["<C-l>"],
mappings: function () { mappings.add([modes.NORMAL], ["y"], "Yank current location to the clipboard", function () { dactyl.clipboardWrite(buffer.URL, true); }); // opening websites mappings.add([modes.NORMAL], ["o"], "Open one or more URLs", function () { commandline.open(":", "open ", modes.EX); }); mappings.add([modes.NORMAL], ["O"], "Open one or more URLs, based on current location", function () { commandline.open(":", "open " + buffer.URL, modes.EX); }); mappings.add([modes.NORMAL], ["t"], "Open one or more URLs in a new tab", function () { commandline.open(":", "tabopen ", modes.EX); }); mappings.add([modes.NORMAL], ["T"], "Open one or more URLs in a new tab, based on current location", function () { commandline.open(":", "tabopen " + buffer.URL, modes.EX); }); mappings.add([modes.NORMAL], ["w"], "Open one or more URLs in a new window", function () { commandline.open(":", "winopen ", modes.EX); }); mappings.add([modes.NORMAL], ["W"], "Open one or more URLs in a new window, based on current location", function () { commandline.open(":", "winopen " + buffer.URL, modes.EX); }); mappings.add([modes.NORMAL], ["<C-a>"], "Increment last number in URL", function (count) { Browser.incrementURL(Math.max(count, 1)); }, { count: true }); mappings.add([modes.NORMAL], ["<C-x>"], "Decrement last number in URL", function (count) { Browser.incrementURL(-Math.max(count, 1)); }, { count: true }); mappings.add([modes.NORMAL], ["~"], "Open home directory", function () { dactyl.open("~"); }); mappings.add([modes.NORMAL], ["gh"], "Open homepage", function () { BrowserHome(); }); mappings.add([modes.NORMAL], ["gH"], "Open homepage in a new tab", function () { let homepages = gHomeButton.getHomePage(); dactyl.open(homepages, { from: "homepage", where: dactyl.NEW_TAB }); }); mappings.add([modes.NORMAL], ["gu"], "Go to parent directory", function (count) { Browser.climbUrlPath(Math.max(count, 1)); }, { count: true }); mappings.add([modes.NORMAL], ["gU"], "Go to the root of the website", function () { Browser.climbUrlPath(-1); }); mappings.add([modes.NORMAL], ["<C-l>"], "Redraw the screen", function () { ex.redraw(); }); },
mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET],
mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET].filter(util.identity),
mappings: function () { // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command-line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET], ["<Tab>"], "Advance keyboard focus", function () { document.commandDispatcher.advanceFocus(); }); mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT], ["<S-Tab>"], "Rewind keyboard focus", function () { document.commandDispatcher.rewindFocus(); }); mappings.add(modes.all, ["<C-z>"], "Temporarily ignore all " + config.appName + " key bindings", function () { modes.push(modes.PASS_THROUGH); }); mappings.add(modes.all, ["<C-v>"], "Pass through next key", function () { modes.push(modes.QUOTE); }); mappings.add(modes.all, ["<Nop>"], "Do nothing", function () { return; }); // macros mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], ["q"], "Record a key sequence into a macro", function (arg) { events.startRecording(arg); }, { arg: true }); mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], ["@"], "Play a macro", function (count, arg) { count = Math.max(count, 1); while (count-- && events.playMacro(arg)) ; }, { arg: true, count: true }); },
mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT],
mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT].filter(util.identity),
mappings: function () { // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command-line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET], ["<Tab>"], "Advance keyboard focus", function () { document.commandDispatcher.advanceFocus(); }); mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT], ["<S-Tab>"], "Rewind keyboard focus", function () { document.commandDispatcher.rewindFocus(); }); mappings.add(modes.all, ["<C-z>"], "Temporarily ignore all " + config.appName + " key bindings", function () { modes.push(modes.PASS_THROUGH); }); mappings.add(modes.all, ["<C-v>"], "Pass through next key", function () { modes.push(modes.QUOTE); }); mappings.add(modes.all, ["<Nop>"], "Do nothing", function () { return; }); // macros mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], ["q"], "Record a key sequence into a macro", function (arg) { events.startRecording(arg); }, { arg: true }); mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], ["@"], "Play a macro", function (count, arg) { count = Math.max(count, 1); while (count-- && events.playMacro(arg)) ; }, { arg: true, count: true }); },
mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE],
mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE].filter(util.identity),
mappings: function () { // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command-line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET], ["<Tab>"], "Advance keyboard focus", function () { document.commandDispatcher.advanceFocus(); }); mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT], ["<S-Tab>"], "Rewind keyboard focus", function () { document.commandDispatcher.rewindFocus(); }); mappings.add(modes.all, ["<C-z>"], "Temporarily ignore all " + config.appName + " key bindings", function () { modes.push(modes.PASS_THROUGH); }); mappings.add(modes.all, ["<C-v>"], "Pass through next key", function () { modes.push(modes.QUOTE); }); mappings.add(modes.all, ["<Nop>"], "Do nothing", function () { return; }); // macros mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], ["q"], "Record a key sequence into a macro", function (arg) { events.startRecording(arg); }, { arg: true }); mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], ["@"], "Play a macro", function (count, arg) { count = Math.max(count, 1); while (count-- && events.playMacro(arg)) ; }, { arg: true, count: true }); },
/\bquickmark\b/.test(options["activate"]) ?
options.get("activate").has("all", "quickmark") ?
mappings: function () { var myModes = config.browserModes; mappings.add(myModes, ["go"], "Jump to a QuickMark", function (arg) { quickmarks.jumpTo(arg, liberator.CURRENT_TAB); }, { arg: true }); mappings.add(myModes, ["gn"], "Jump to a QuickMark in a new tab", function (arg) { quickmarks.jumpTo(arg, /\bquickmark\b/.test(options["activate"]) ? liberator.NEW_TAB : liberator.NEW_BACKGROUND_TAB); }, { arg: true }); mappings.add(myModes, ["M"], "Add new QuickMark for current URL", function (arg) { liberator.assert(/^[a-zA-Z0-9]$/.test(arg)); quickmarks.add(arg, buffer.URL); }, { arg: true }); }
mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET].filter(util.identity), ["<Tab>"], "Advance keyboard focus", function () { document.commandDispatcher.advanceFocus(); }); mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT].filter(util.identity), ["<S-Tab>"], "Rewind keyboard focus", function () { document.commandDispatcher.rewindFocus(); });
mappings: function () { // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command-line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET].filter(util.identity), ["<Tab>"], "Advance keyboard focus", function () { document.commandDispatcher.advanceFocus(); }); mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXT_EDIT].filter(util.identity), ["<S-Tab>"], "Rewind keyboard focus", function () { document.commandDispatcher.rewindFocus(); }); mappings.add(modes.all, ["<C-z>"], "Temporarily ignore all " + config.appName + " key bindings", function () { modes.push(modes.PASS_THROUGH); }); mappings.add(modes.all, ["<C-v>"], "Pass through next key", function () { modes.push(modes.QUOTE); }); mappings.add(modes.all, ["<Nop>"], "Do nothing", function () { return; }); // macros mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE].filter(util.identity), ["q"], "Record a key sequence into a macro", function (arg) { events.startRecording(arg); }, { arg: true }); mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE].filter(util.identity), ["@"], "Play a macro", function (count, arg) { count = Math.max(count, 1); while (count-- && events.playMacro(arg)) ; }, { arg: true, count: true }); },
commands.commandToString({ command: "bmark", options: options, arguments: [buffer.URL], bang: bmarks.length == 1 }),
commands.commandToString({ command: "bmark", options: options, arguments: [buffer.URL] }),
mappings: function () { var myModes = config.browserModes; mappings.add(myModes, ["a"], "Open a prompt to bookmark the current URL", function () { let options = {}; let bmarks = bookmarks.get(buffer.URL).filter(function (bmark) bmark.url == buffer.URL); if (bmarks.length == 1) { let bmark = bmarks[0]; options["-title"] = bmark.title; if (bmark.keyword) options["-keyword"] = bmark.keyword; if (bmark.tags.length > 0) options["-tags"] = bmark.tags.join(", "); } else { if (buffer.title != buffer.URL) options["-title"] = buffer.title; } commandline.open(":", commands.commandToString({ command: "bmark", options: options, arguments: [buffer.URL], bang: bmarks.length == 1 }), modes.EX); }); mappings.add(myModes, ["A"], "Toggle bookmarked state of current URL", function () { bookmarks.toggle(buffer.URL); }); },
commandline.open(":",
commandline.open("",
mappings: function () { var myModes = config.browserModes; mappings.add(myModes, ["a"], "Open a prompt to bookmark the current URL", function () { let options = {}; let bmarks = bookmarks.get(buffer.URL).filter(function (bmark) bmark.url == buffer.URL); if (bmarks.length == 1) { let bmark = bmarks[0]; options["-title"] = bmark.title; if (bmark.keyword) options["-keyword"] = bmark.keyword; if (bmark.tags.length > 0) options["-tags"] = bmark.tags.join(", "); } else { if (buffer.title != buffer.URL) options["-title"] = buffer.title; } commandline.open(":", commands.commandToString({ command: "bmark", options: options, arguments: [buffer.URL], bang: bmarks.length > 1 }), modes.EX); }); mappings.add(myModes, ["A"], "Toggle bookmarked state of current URL", function () { bookmarks.toggle(buffer.URL); }); },
commandline.open(":", "contact " + address + " " + displayName, modes.EX);
commandline.open("", "contact " + address + " " + displayName, modes.EX);
mappings: function () { var myModes = config.mailModes; mappings.add(myModes, ["a"], "Open a prompt to save a new addressbook entry for the sender of the selected message", function () { try { var to = gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor; } catch (e) { liberator.beep(); } if (!to) return; let address = to.substring(to.indexOf("<") + 1, to.indexOf(">")); let displayName = to.substr(0, to.indexOf("<") - 1); if (/^\S+\s+\S+\s*$/.test(displayName)) { let names = displayName.split(/\s+/); displayName = "-firstname=" + names[0].replace(/"/g, "") + " -lastname=" + names[1].replace(/"/g, ""); } else displayName = "-name=\"" + displayName.replace(/"/g, "") + "\""; commandline.open(":", "contact " + address + " " + displayName, modes.EX); }); }
function () { commandline.open(":", "", modes.EX); });
function () { commandline.open("", "", modes.EX); });
mappings: function () { mappings.add(modes.all, ["<Esc>", "<C-[>"], "Focus content", function () { events.onEscape(); }); // add the ":" mapping in all but insert mode mappings mappings.add(modes.matchModes({ extended: false, input: false }), [":"], "Enter command line mode", function () { commandline.open(":", "", modes.EX); }); // focus events mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET], ["<Tab>"], "Advance keyboard focus", function () { document.commandDispatcher.advanceFocus(); }); mappings.add([modes.NORMAL, modes.PLAYER, modes.VISUAL, modes.CARET, modes.INSERT, modes.TEXTAREA], ["<S-Tab>"], "Rewind keyboard focus", function () { document.commandDispatcher.rewindFocus(); }); mappings.add(modes.all, ["<C-z>"], "Temporarily ignore all " + config.name + " key bindings", function () { modes.passAllKeys = true; }); mappings.add(modes.all, ["<C-v>"], "Pass through next key", function () { modes.passNextKey = true; }); mappings.add(modes.all, ["<Nop>"], "Do nothing", function () { return; }); // macros mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], ["q"], "Record a key sequence into a macro", function (arg) { events.startRecording(arg); }, { arg: true }); mappings.add([modes.NORMAL, modes.PLAYER, modes.MESSAGE], ["@"], "Play a macro", function (count, arg) { if (count < 1) count = 1; while (count-- && events.playMacro(arg)) ; }, { arg: true, count: true }); }
if(this._indexMap[index] && this._indexMap[index] != view) debugger;
if(this._indexMap[index] && this._indexMap[index] != view) throw "index already mapped";
mapToIndex: function(view) { var index = view.contentIndex; // a view should never get mapped ontop of another view, you should always unmap then remap if(this._indexMap[index] && this._indexMap[index] != view) debugger; this._indexMap[index] = view; return view; },
var item = this.get('content').objectAt(index), views = this._viewsForItem[SC.guidFor(item)] || (this._viewsForItem[SC.guidFor(item)] = SC.CoreSet.create());
var item = view.content;
mapView: function(view, index) { var item = this.get('content').objectAt(index), views = this._viewsForItem[SC.guidFor(item)] || (this._viewsForItem[SC.guidFor(item)] = SC.CoreSet.create()); // add to cache for item views.add(view); this._indexMap[index] = view; },
views.add(view);
if(item) { var views = this._viewsForItem[SC.guidFor(item)] || (this._viewsForItem[SC.guidFor(item)] = SC.CoreSet.create()); views.add(view); }
mapView: function(view, index) { var item = this.get('content').objectAt(index), views = this._viewsForItem[SC.guidFor(item)] || (this._viewsForItem[SC.guidFor(item)] = SC.CoreSet.create()); // add to cache for item views.add(view); this._indexMap[index] = view; },
calcDuration("AIRPORT");
if(oldDist == "" && $('dst_time').value != $('dst_time').hintText) { calcDuration("ARRIVAL"); } else { calcDuration("AIRPORT"); }
function markAirport(element, quick) { if(element.startsWith("src_ap")) { var icon = '/img/icon_plane-src.png'; } else { var icon = '/img/icon_plane-dst.png'; } if(getCurrentPane() == "multiinput") { element = markingLimit(element); } if(!element) return; // nothing to draw var data = $(element + 'id').value.split(":"); var iata = data[0]; var apid = data[1]; var x = data[2]; var y = data[3]; if(apid > 0) { var point = new OpenLayers.Geometry.Point(x, y); var marker = new OpenLayers.Feature.Vector(point); marker.attributes = { name: "", icon: icon, size: 17, offset: -17/2, opacity: 1, code: data[0] }; airportLayer.addFeatures(marker, {silent: true}); } if(element.startsWith("src_ap")) { if(input_srcmarker) { airportLayer.removeFeatures([input_srcmarker]); } if(apid > 0) { input_srcmarker = marker; if(element == "src_ap") { input_toggle = "dst_ap"; // single input } else { var idx = multiinput_order.indexOf(element) + 1; if(idx == multiinput_order.length) idx = 0; input_toggle = multiinput_order[idx]; } } else { input_srcmarker = null; } } else { if(input_dstmarker) { airportLayer.removeFeatures([input_dstmarker]); } if(apid > 0) { input_dstmarker = marker; if(element == "dst_ap") { input_toggle = "src_ap"; // single input } else { var idx = multiinput_order.indexOf(element) + 1; if(idx == multiinput_order.length) idx = 0; input_toggle = multiinput_order[idx]; } } else { input_dstmarker = null; } } // Draw line and calculate distance and duration if(! quick) { if(input_line) { lineLayer.removeFeatures(input_line); input_line = null; } if(input_dstmarker && input_srcmarker) { if(getCurrentPane() == "input") { var lon1 = getX('src_ap'); var lat1 = getY('src_ap'); var lon2 = getX('dst_ap'); var lat2 = getY('dst_ap'); var distance = gcDistance(lat1, lon1, lat2, lon2); input_line = drawLine(parseFloat(lon1), parseFloat(lat1), parseFloat(lon2), parseFloat(lat2), 4, distance, COLOR_HIGHLIGHT); } else { input_line = []; for(i = 1; i <= multiinput_rows; i++) { var src_ap = $('src_ap' + i + 'id').value; var dst_ap = $('dst_ap' + i + 'id').value; if(src_ap != 0 && dst_ap != 0) { var src_ap_data = src_ap.split(":"); var lon1 = src_ap_data[2]; var lat1 = src_ap_data[3]; var dst_ap_data = dst_ap.split(":"); var lon2 = dst_ap_data[2]; var lat2 = dst_ap_data[3]; var distance = gcDistance(lat1, lon1, lat2, lon2); line = drawLine(parseFloat(lon1), parseFloat(lat1), parseFloat(lon2), parseFloat(lat2), 4, distance, COLOR_HIGHLIGHT); input_line = input_line.concat(line); } else { break; // stop drawing } } } lineLayer.addFeatures(input_line); $('distance').value = distance; calcDuration("AIRPORT"); } else { $('distance').value = ""; $('duration').value = ""; } }}
var el = document.getElementById(this.detailId);
var el = document.getElementById(this.detailID);
doctest.Example.prototype.markExample = function (name, detail) { if (! this.htmlID) { return; } if (this.detailID) { var el = document.getElementById(this.detailId); el.parentNode.removeChild(el); this.detailID = null; } var span = document.getElementById(this.htmlID); span.className = span.className.replace(/ doctest-failure/, '') .replace(/ doctest-success/, '') + ' ' + name; if (detail) { this.detailID = doctest.genID('doctest-example-detail'); var detailSpan = document.createElement('span'); detailSpan.className = 'doctest-example-detail'; detailSpan.setAttribute('id', this.detailID); detailSpan.appendChild(document.createTextNode(detail)); span.appendChild(detailSpan); }};
match: function(element) { this.tokens = []; var e = this.expression, ps = Selector.patterns, as = Selector.assertions; var le, p, m; while (e && le !== e && (/\S/).test(e)) { le = e; for (var i in ps) { p = ps[i]; if (m = e.match(p)) { if (as[i]) { this.tokens.push([i, Object.clone(m)]); e = e.replace(m[0], ''); } else { return this.findElements(document).include(element); } } } } var match = true, name, matches; for (var i = 0, token; token = this.tokens[i]; i++) { name = token[0], matches = token[1]; if (!Selector.assertions[name](element, matches)) { match = false; break; } } return match; },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
match: function(element) { this.tokens = []; var e = this.expression, ps = Selector.patterns, as = Selector.assertions; var le, p, m; while (e && le !== e && (/\S/).test(e)) { le = e; for (var i in ps) { p = ps[i]; if (m = e.match(p)) { // use the Selector.assertions methods unless the selector // is too complex. if (as[i]) { this.tokens.push([i, Object.clone(m)]); e = e.replace(m[0], ''); } else { // reluctantly do a document-wide search // and look for a match in the array return this.findElements(document).include(element); } } } } var match = true, name, matches; for (var i = 0, token; token = this.tokens[i]; i++) { name = token[0], matches = token[1]; if (!Selector.assertions[name](element, matches)) { match = false; break; } } return match; },
matchElements: function(elements, expression) { var matches = $$(expression), h = Selector.handlers; h.mark(matches); for (var i = 0, results = [], element; element = elements[i]; i++) if (element._countedByPrototype) results.push(element); h.unmark(matches); return results; },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
matchElements: function(elements, expression) { var matches = $$(expression), h = Selector.handlers; h.mark(matches); for (var i = 0, results = [], element; element = elements[i]; i++) if (element._countedByPrototype) results.push(element); h.unmark(matches); return results; },
(E||g);if(i.call(y)==="[object Array]")if(I)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&F(h,y[g])))k.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&k.push(u[g]);else k.push.apply(k,y);else B(y,k);if(S){p(S,r,k,m);p.uniqueSort(k)}return k};p.uniqueSort=function(g){if(D){j=o;g.sort(D);if(j)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};p.matches=function(g,h){return p(g,null,null,h)};p.find=function(g,h,k){var m,r;if(!g)return[];
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
(E||g);if(i.call(y)==="[object Array]")if(I)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&F(h,y[g])))k.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&k.push(u[g]);else k.push.apply(k,y);else B(y,k);if(S){p(S,r,k,m);p.uniqueSort(k)}return k};p.uniqueSort=function(g){if(D){j=o;g.sort(D);if(j)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};p.matches=function(g,h){return p(g,null,null,h)};p.find=function(g,h,k){var m,r;if(!g)return[];
var desc = self.name + '.' + name;
var desc = self._name + '.' + name;
self.method = function (name, options, extraOptions) { var desc = self.name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; };
description: "Forward Find mode, active when typing search input"
description: "Backward Find mode, active when typing search input"
modes: function () { /* Must come before commandline. */ modes.addMode("FIND_FORWARD", { extended: true, description: "Forward Find mode, active when typing search input" }); modes.addMode("FIND_BACKWARD", { extended: true, description: "Forward Find mode, active when typing search input" }); },
config.modes.forEach(function (mode) { modes.addMode.apply(modes, mode); });
modes: function () { this.ignoreKeys = { "<Return>": modes.NORMAL | modes.INSERT, "<Space>": modes.NORMAL | modes.INSERT, "<Up>": modes.NORMAL | modes.INSERT, "<Down>": modes.NORMAL | modes.INSERT }; },
}
},
modes: function () { for (let mode in modes) { this._main[mode] = []; this._user[mode] = []; } }
item_attrs["role"] = role;
item_attrs.role = role;
modifyUser: function(room, nick, role, affiliation, reason) { var item_attrs = {nick: Strophe.escapeNode(nick)}; if (role !== null) { item_attrs["role"] = role; } if (affiliation !== null) { item_attrs["affiliation"] = affiliation; } var item = $build("item", item_attrs); if (reason !== null) { item.cnode(Strophe.xmlElement("reason", reason)); } var room = $iq({to: room, type: "set"}) .c("query", {xmlns: Strophe.NS.MUC_OWNER}).cnode(item.tree()); return this._connection.sendIQ(room.tree(), function() {}, function() {}); },
item_attrs["affiliation"] = affiliation;
item_attrs.affiliation = affiliation;
modifyUser: function(room, nick, role, affiliation, reason) { var item_attrs = {nick: Strophe.escapeNode(nick)}; if (role !== null) { item_attrs["role"] = role; } if (affiliation !== null) { item_attrs["affiliation"] = affiliation; } var item = $build("item", item_attrs); if (reason !== null) { item.cnode(Strophe.xmlElement("reason", reason)); } var room = $iq({to: room, type: "set"}) .c("query", {xmlns: Strophe.NS.MUC_OWNER}).cnode(item.tree()); return this._connection.sendIQ(room.tree(), function() {}, function() {}); },
var room = $iq({to: room, type: "set"})
var roomiq = $iq({to: room, type: "set"})
modifyUser: function(room, nick, role, affiliation, reason) { var item_attrs = {nick: Strophe.escapeNode(nick)}; if (role !== null) { item_attrs["role"] = role; } if (affiliation !== null) { item_attrs["affiliation"] = affiliation; } var item = $build("item", item_attrs); if (reason !== null) { item.cnode(Strophe.xmlElement("reason", reason)); } var room = $iq({to: room, type: "set"}) .c("query", {xmlns: Strophe.NS.MUC_OWNER}).cnode(item.tree()); return this._connection.sendIQ(room.tree(), function() {}, function() {}); },
return this._connection.sendIQ(room.tree(),
return this._connection.sendIQ(roomiq.tree(),
modifyUser: function(room, nick, role, affiliation, reason) { var item_attrs = {nick: Strophe.escapeNode(nick)}; if (role !== null) { item_attrs["role"] = role; } if (affiliation !== null) { item_attrs["affiliation"] = affiliation; } var item = $build("item", item_attrs); if (reason !== null) { item.cnode(Strophe.xmlElement("reason", reason)); } var room = $iq({to: room, type: "set"}) .c("query", {xmlns: Strophe.NS.MUC_OWNER}).cnode(item.tree()); return this._connection.sendIQ(room.tree(), function() {}, function() {}); },
if (idx>=0) {
if (idx === this.overflowIndex) { this.showOverflowItems(); } else if (idx>=0) {
mouseDown: function(evt) { if (!this.get('isEnabled')) return YES; // nothing to do var idx = this.displayItemIndexForEvent(evt); // if mouse was pressed on a button, then start detecting pressed events if (idx>=0) { this._isMouseDown = YES ; this.set('activeIndex', idx); } return YES ; },
e.clientY + 20 < window.innerHeight && !hitTextNode(e)) {
e.clientY + 20 < window.innerHeight) {
function mouseDown(e) { console.log("mousedown"); var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight && !hitTextNode(e)) { document.addEventListener('mousemove', mouseMove, false); return gesture.beginGesture(e); } else { gesture.cancelGesture(e); return true; }}
e.clientY + 20 < window.innerHeight) {
e.clientY + 20 < window.innerHeight && !hitTextNode(e)) { document.addEventListener('mousemove', mouseMove, false);
function mouseDown(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { return gesture.beginGesture(e); }}
} else { gesture.cancelGesture(e); return true;
function mouseDown(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { return gesture.beginGesture(e); }}
console.log("mousedown");
function mouseDown(e) { console.log("mousedown"); var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { document.addEventListener('mousemove', mouseMove, false); return gesture.beginGesture(e); } else { gesture.cancelGesture(e); return true; }}
var use_gesture = local_options["enable_gesture"];
var use_gesture = local_options["enable_gesture"] == "true";
function mouseDown(e) { var use_gesture = local_options["enable_gesture"]; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { return gesture.beginGesture(e); }}
e.clientY + 20 < window.innerHeight) {
e.clientY + 20 < window.innerHeight && !gesture.in_gesture) {
function mouseDown(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture && !e.ctrlKey && !e.altKey && e.clientX + 20 < window.innerWidth && e.clientY + 20 < window.innerHeight) { document.addEventListener('mousemove', mouseMove, false); return gesture.beginGesture(e); } else { gesture.cancelGesture(e); return true; }}
activeChildView.set('isActive', NO);
if (activeChildView) activeChildView.set('isActive', NO);
mouseExited: function(evt) { var activeChildView; // if mouse was down, hide active index if (this._isMouseDown) { activeChildView = this.activeChildView; activeChildView.set('isActive', NO); this.activeChildView = null; } return YES; },
return false;
document.removeEventListener('mousemove', mouseMove, false); return true;
function mouseMove(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (!drag_and_go.in_drag && use_gesture) { return gesture.moveGesture(e); } return false;}
console.log("mousemove");
function mouseMove(e) { console.log("mousemove"); var use_gesture = local_options["enable_gesture"] == "true"; if (!drag_and_go.in_drag && use_gesture) { return gesture.moveGesture(e); } document.removeEventListener('mousemove', mouseMove, false); return true;}
var use_gesture = local_options["enable_gesture"];
var use_gesture = local_options["enable_gesture"] == "true";
function mouseMove(e) { var use_gesture = local_options["enable_gesture"]; if (!drag_and_go.in_drag && use_gesture) { return gesture.moveGesture(e); } return false;}
this.set('isActive', NO); this._isMouseDown = NO;
mouseUp: function(evt) { if(!this.get('isEnabled') || (evt && evt.target && !this.$().within(evt.target))) { return YES; } var val = this.get('value'); if (val === this.get('toggleOnValue')) { this.renderer.attr('ariaValue', 'false'); this.renderer.update(); this.set('value', this.get('toggleOffValue')); } else { this.renderer.attr('ariaValue', 'true'); this.renderer.update(); this.set('value', this.get('toggleOnValue')); } this.set('isActive', NO); this._isMouseDown = NO; return YES; },
this.set('isActive', NO);
mouseUp: function(evt) { var timestamp = new Date().getTime(), previousTimestamp = this._menuRenderedTimestamp, menu = this.get('menu'), touch = SC.platform.touch, targetMenuItem; if (menu) { targetMenuItem = menu.getPath('rootMenu.targetMenuItem'); if (targetMenuItem && targetMenuItem.get('mouseHasEntered')) { // Have the menu item perform its action. // If the menu returns NO, it had no action to // perform, so we should close the menu immediately. if (!targetMenuItem.performAction()) menu.remove(); } else if (!touch && (timestamp - previousTimestamp > SC.ButtonView.CLICK_AND_HOLD_DELAY)) { // If the user waits more than a certain length of time between // mouseDown and mouseUp, we can assume that they are clicking and // dragging to the menu item, and we should close the menu if they // mouseup anywhere not inside the menu. // As a special case, we should trigger an action on the currently // selected menu item if the menu item is under the mouse and the user // never moved their mouse before mouseup. if (!menu.get('mouseHasEntered') && !this.get('isDefaultPosition')) { targetMenuItem = menu.get('currentMenuItem'); if (targetMenuItem && !targetMenuItem.performAction()) { menu.remove(); } } else { // Otherwise, just remove the menu because no selection // has been made. menu.remove(); } } } // Reset state. this._isMouseDown = NO; return YES; },
this.set("isActive", NO);
mouseUp: function(evt) { var menu = this.get('menu'), targetMenuItem, success; if (menu) { targetMenuItem = menu.getPath('rootMenu.targetMenuItem'); if (targetMenuItem && menu.get('mouseHasEntered')) { // Have the menu item perform its action. // If the menu returns NO, it had no action to // perform, so we should close the menu immediately. if (!targetMenuItem.performAction()) menu.remove(); } else { // If the user waits more than 200ms between mouseDown and mouseUp, // we can assume that they are clicking and dragging to the menu item, // and we should close the menu if they mouseup anywhere not inside // the menu. if (evt.timeStamp - this._mouseDownTimestamp > 400) { menu.remove(); } } } // Reset state. this._isMouseDown = NO; return YES; },
console.log("mouseup");
function mouseUp(e) { var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture) { return gesture.endGesture(e); }}
console.log("mouseup");
function mouseUp(e) { console.log("mouseup"); var use_gesture = local_options["enable_gesture"] == "true"; if (use_gesture) { return gesture.endGesture(e); }}
var use_gesture = local_options["enable_gesture"];
var use_gesture = local_options["enable_gesture"] == "true";
function mouseUp(e) { var use_gesture = local_options["enable_gesture"]; if (use_gesture) { return gesture.endGesture(e); }}
evt.allowDefault(); return YES;
if(this.get('isTextArea')) { evt.allowDefault(); return YES; } else return NO;
mouseWheel: function(evt) { evt.allowDefault(); return YES; },
let index = Tabs.indexFromSpec(spec, wrap);
let index = tabs.indexFromSpec(spec, wrap);
move: function (tab, spec, wrap) { let index = Tabs.indexFromSpec(spec, wrap); config.tabbrowser.moveTabTo(tab, index); },
this.items[this.selectedIndex].style.backgroundColor = '#ffffff';
removeElementClass(this.items[this.selectedIndex], "selected");
moveCursor: function(offset){ var index = this.selectedIndex + offset; index = index >= this.rowCount ? 0: index < 0 ? (this.rowCount - 1) : index; this.items[this.selectedIndex].style.backgroundColor = '#ffffff'; this.selectedIndex = index this.items[this.selectedIndex].style.backgroundColor = '#ccf0ff'; },
this.items[this.selectedIndex].style.backgroundColor = '#ccf0ff';
addElementClass(this.items[this.selectedIndex], "selected");
moveCursor: function(offset){ var index = this.selectedIndex + offset; index = index >= this.rowCount ? 0: index < 0 ? (this.rowCount - 1) : index; this.items[this.selectedIndex].style.backgroundColor = '#ffffff'; this.selectedIndex = index this.items[this.selectedIndex].style.backgroundColor = '#ccf0ff'; },
if (!this.canvas.hasCanvas() && range && range.startContainer.nodeName == "#text" &&
if (!this.canvas.hasCanvas() && range &&
moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!this.canvas.hasCanvas() && range && range.startContainer.nodeName == "#text" && range.startContainer == range.endContainer && range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length) { this.cancelGesture(e); return true; } this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body); this.collectGestures(e); window.getSelection().empty(); this.canvas.showLineTo(this.last_pos.x, this.last_pos.y, false); return false; },
window.getSelection().empty();
moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for some us till we didn't see dragStart. return true; } this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body); this.collectGestures(e); this.canvas.showLineTo(this.last_pos.x, this.last_pos.y, false); return false; },
window.getSelection().empty();
var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!this.canvas.hasCanvas() && range && range.startContainer.nodeName == "#text" && range.startContainer == range.endContainer && range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length) { this.cancelGesture(e); return true; }
moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } window.getSelection().empty(); this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body); this.collectGestures(e); this.canvas.showLineTo(this.last_pos.x, this.last_pos.y, false); return false; },
window.getSelection().empty();
moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } window.getSelection().empty(); this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body); this.collectGestures(e); this.canvas.showLineTo(this.last_pos.x, this.last_pos.y, false); return false; },
var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!this.canvas.hasCanvas() && range &&
var range = null; if (window.getSelection().rangeCount > 0) { range = window.getSelection().getRangeAt(0); } if (!this.canvas.hasCanvas() && range &&
moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!this.canvas.hasCanvas() && range && range.startContainer == range.endContainer && (range.startContainer.nodeName == "#text" && range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length || range.startOffset == range.endOffset)) { this.cancelGesture(e); return true; } this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body); this.collectGestures(e); window.getSelection().empty(); this.canvas.showLineTo(this.last_pos.x, this.last_pos.y, false); return false; },
range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length) {
(range.startContainer.nodeName == "#text" && range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length || range.startOffset == range.endOffset)) {
moveGesture: function(e) { if (!this.in_gesture) { return true; } if (new Date().getTime() - this.start_time < 300) { // Wait for dragStart before some us time passes. return true; } var range = window.getSelection().getRangeAt(0); console.log(range); console.log(range); if (!this.canvas.hasCanvas() && range && range.startContainer == range.endContainer && range.startOffset < range.startContainer.length && range.endOffset < range.endContainer.length) { this.cancelGesture(e); return true; } this.canvas.showCanvas(this.last_pos.x, this.last_pos.y, document.body); this.collectGestures(e); window.getSelection().empty(); this.canvas.showLineTo(this.last_pos.x, this.last_pos.y, false); return false; },
this.utn11 = new TlsMyanmarUtn11();
function MyanmarConverterEventListener(conv){ this.messages = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService) .createBundle("chrome://myanmar-converter/locale/MyanmarConverter.properties"); this.conv=conv; return this;}
this.spaceCount = this.countSpaces();
function MyanmarConverterWordSeparatorListener(input){ this.input = input; return this;}
MochiKit.Signal.disconnect(_onbeforeunload)
MochiKit.Signal.disconnect(_onbeforeunload);
function navigate(){ if (!validate()) return true MochiKit.Signal.disconnect(_onbeforeunload) url = 'http://' + location.hostname + ':' + location.port + "/activity/virtualpatient/navigate/" + $('page_id').value + "/" + $('patient_id').value + "/" jsontxt = get_state() // defined by individual pages deferred = doXHR(url, { method: 'POST', sendContent: queryString({'json': jsontxt}) }); deferred.addCallbacks(onXHRSuccess, onXHRError) return false}
url = 'http:
var url = 'http:
function navigate(){ if (!validate()) return true MochiKit.Signal.disconnect(_onbeforeunload) url = 'http://' + location.hostname + ':' + location.port + "/activity/virtualpatient/navigate/" + $('page_id').value + "/" + $('patient_id').value + "/" jsontxt = get_state() // defined by individual pages deferred = doXHR(url, { method: 'POST', sendContent: queryString({'json': jsontxt}) }); deferred.addCallbacks(onXHRSuccess, onXHRError) return false}
jsontxt = get_state()
var jsontxt = get_state()
function navigate(){ if (!validate()) return true MochiKit.Signal.disconnect(_onbeforeunload) url = 'http://' + location.hostname + ':' + location.port + "/activity/virtualpatient/navigate/" + $('page_id').value + "/" + $('patient_id').value + "/" jsontxt = get_state() // defined by individual pages deferred = doXHR(url, { method: 'POST', sendContent: queryString({'json': jsontxt}) }); deferred.addCallbacks(onXHRSuccess, onXHRError) return false}
deferred = doXHR(url,
var deferred = doXHR(url,
function navigate(){ if (!validate()) return true MochiKit.Signal.disconnect(_onbeforeunload) url = 'http://' + location.hostname + ':' + location.port + "/activity/virtualpatient/navigate/" + $('page_id').value + "/" + $('patient_id').value + "/" jsontxt = get_state() // defined by individual pages deferred = doXHR(url, { method: 'POST', sendContent: queryString({'json': jsontxt}) }); deferred.addCallbacks(onXHRSuccess, onXHRError) return false}
var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css";
var base = ["base.js", "php.js"]; var css = "../resources/codemirror/css/phpcolors.css";
function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: var parser = ["tokenizejavascript.js", "parsejavascript.js"]; var css = "../resources/codemirror/css/jscolors.css"; break; case 2: var parser = "parsecss.js"; var css = "../resources/codemirror/css/csscolors.css"; break; default: var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"]; var css = ["../resources/codemirror/css/xmlcolors.css", "../resources/codemirror/css/jscolors.css", "../resources/codemirror/css/csscolors.css"]; break; } var textarea = document.getElementById(textareaId); var editor = CodeMirror.fromTextArea(textareaId, { parserfile: parser, stylesheet: css, path: "../resources/codemirror/js/", content: textarea.value, lineNumbers: true, //textWrapping: false, continuousScanning: 500, tabMode: "shift", height: editorHeight, iframeClass:"html-editor-iframe", readOnly: readOnlyState }); //editor.setLineNumbers(true); return editor;}
var parser = ["tokenizejavascript.js", "parsejavascript.js"];
var base = ["base.js", "javascript.js"];
function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: var parser = ["tokenizejavascript.js", "parsejavascript.js"]; var css = "../resources/codemirror/css/jscolors.css"; break; case 2: var parser = "parsecss.js"; var css = "../resources/codemirror/css/csscolors.css"; break; default: var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"]; var css = ["../resources/codemirror/css/xmlcolors.css", "../resources/codemirror/css/jscolors.css", "../resources/codemirror/css/csscolors.css"]; break; } var textarea = document.getElementById(textareaId); var editor = CodeMirror.fromTextArea(textareaId, { parserfile: parser, stylesheet: css, path: "../resources/codemirror/js/", content: textarea.value, lineNumbers: true, //textWrapping: false, continuousScanning: 500, tabMode: "shift", height: editorHeight, iframeClass:"html-editor-iframe", readOnly: readOnlyState }); //editor.setLineNumbers(true); return editor;}
var parser = "parsecss.js";
var base = ["base.js", "css.js"];
function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: var parser = ["tokenizejavascript.js", "parsejavascript.js"]; var css = "../resources/codemirror/css/jscolors.css"; break; case 2: var parser = "parsecss.js"; var css = "../resources/codemirror/css/csscolors.css"; break; default: var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"]; var css = ["../resources/codemirror/css/xmlcolors.css", "../resources/codemirror/css/jscolors.css", "../resources/codemirror/css/csscolors.css"]; break; } var textarea = document.getElementById(textareaId); var editor = CodeMirror.fromTextArea(textareaId, { parserfile: parser, stylesheet: css, path: "../resources/codemirror/js/", content: textarea.value, lineNumbers: true, //textWrapping: false, continuousScanning: 500, tabMode: "shift", height: editorHeight, iframeClass:"html-editor-iframe", readOnly: readOnlyState }); //editor.setLineNumbers(true); return editor;}
var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"];
var base = ["base.js", "html.js"];
function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: var parser = ["tokenizejavascript.js", "parsejavascript.js"]; var css = "../resources/codemirror/css/jscolors.css"; break; case 2: var parser = "parsecss.js"; var css = "../resources/codemirror/css/csscolors.css"; break; default: var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"]; var css = ["../resources/codemirror/css/xmlcolors.css", "../resources/codemirror/css/jscolors.css", "../resources/codemirror/css/csscolors.css"]; break; } var textarea = document.getElementById(textareaId); var editor = CodeMirror.fromTextArea(textareaId, { parserfile: parser, stylesheet: css, path: "../resources/codemirror/js/", content: textarea.value, lineNumbers: true, //textWrapping: false, continuousScanning: 500, tabMode: "shift", height: editorHeight, iframeClass:"html-editor-iframe", readOnly: readOnlyState }); //editor.setLineNumbers(true); return editor;}
parserfile: parser,
path: "../resources/codemirror/js/", basefiles: base, parserfile: [],
function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: var parser = ["tokenizejavascript.js", "parsejavascript.js"]; var css = "../resources/codemirror/css/jscolors.css"; break; case 2: var parser = "parsecss.js"; var css = "../resources/codemirror/css/csscolors.css"; break; default: var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"]; var css = ["../resources/codemirror/css/xmlcolors.css", "../resources/codemirror/css/jscolors.css", "../resources/codemirror/css/csscolors.css"]; break; } var textarea = document.getElementById(textareaId); var editor = CodeMirror.fromTextArea(textareaId, { parserfile: parser, stylesheet: css, path: "../resources/codemirror/js/", content: textarea.value, lineNumbers: true, //textWrapping: false, continuousScanning: 500, tabMode: "shift", height: editorHeight, iframeClass:"html-editor-iframe", readOnly: readOnlyState }); //editor.setLineNumbers(true); return editor;}
path: "../resources/codemirror/js/",
function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: var parser = ["tokenizejavascript.js", "parsejavascript.js"]; var css = "../resources/codemirror/css/jscolors.css"; break; case 2: var parser = "parsecss.js"; var css = "../resources/codemirror/css/csscolors.css"; break; default: var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"]; var css = ["../resources/codemirror/css/xmlcolors.css", "../resources/codemirror/css/jscolors.css", "../resources/codemirror/css/csscolors.css"]; break; } var textarea = document.getElementById(textareaId); var editor = CodeMirror.fromTextArea(textareaId, { parserfile: parser, stylesheet: css, path: "../resources/codemirror/js/", content: textarea.value, lineNumbers: true, //textWrapping: false, continuousScanning: 500, tabMode: "shift", height: editorHeight, iframeClass:"html-editor-iframe", readOnly: readOnlyState }); //editor.setLineNumbers(true); return editor;}
textWrapping: false,
function new_editor ( textareaId, editorHeight, readOnlyState, syntaxHighlight ){ switch (syntaxHighlight) { case 4: var parser = ["../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js"]; var css = "../resources/codemirror/contrib/php/css/phpcolors.css"; break; case 3: var parser = ["tokenizejavascript.js", "parsejavascript.js"]; var css = "../resources/codemirror/css/jscolors.css"; break; case 2: var parser = "parsecss.js"; var css = "../resources/codemirror/css/csscolors.css"; break; default: var parser = ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js"]; var css = ["../resources/codemirror/css/xmlcolors.css", "../resources/codemirror/css/jscolors.css", "../resources/codemirror/css/csscolors.css"]; break; } var textarea = document.getElementById(textareaId); var editor = CodeMirror.fromTextArea(textareaId, { parserfile: parser, stylesheet: css, path: "../resources/codemirror/js/", content: textarea.value, lineNumbers: true, //textWrapping: false, continuousScanning: 500, tabMode: "shift", height: editorHeight, iframeClass:"html-editor-iframe", readOnly: readOnlyState }); //editor.setLineNumbers(true); return editor;}
try { if (!("all" in this.FILE_MAP)) return redirect(uri.spec, uri, 1); switch(uri.host) { case "help": let url = this.FILE_MAP[decodeURIComponent(uri.path.replace(/^\/|#.*/g, ""))]; return makeChannel(url, uri); case "help-overlay": url = this.OVERLAY_MAP[decodeURIComponent(uri.path.replace(/^\/|#.*/g, ""))]; return makeChannel(url, uri); case "help-tag": let tag = decodeURIComponent(uri.path.substr(1)); if (tag in this.HELP_TAGS) return redirect("dactyl: } } catch (e) {} return fakeChannel(uri); }
let channel = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService) .newChannel("chrome: channel.originalURI = uri; return channel; },
newChannel: function (uri) { try { if (!("all" in this.FILE_MAP)) return redirect(uri.spec, uri, 1); switch(uri.host) { case "help": let url = this.FILE_MAP[decodeURIComponent(uri.path.replace(/^\/|#.*/g, ""))]; return makeChannel(url, uri); case "help-overlay": url = this.OVERLAY_MAP[decodeURIComponent(uri.path.replace(/^\/|#.*/g, ""))]; return makeChannel(url, uri); case "help-tag": let tag = decodeURIComponent(uri.path.substr(1)); if (tag in this.HELP_TAGS) return redirect("dactyl://help/" + this.HELP_TAGS[tag] + "#" + tag, uri); } } catch (e) {} return fakeChannel(uri); }
let sandbox = Components.utils.Sandbox(window);
let sandbox = Components.utils.Sandbox(window, { sandboxPrototype: proto || modules, wantXrays: false });
function newContext(proto) { let sandbox = Components.utils.Sandbox(window); // Hack: sandbox.Object = jsmodules.Object; sandbox.Math = jsmodules.Math; sandbox.__proto__ = proto || modules; return sandbox; }
var uri = Cc["@mozilla.org/network/standard-url;1"] .createInstance(Ci.nsIStandardURL) .QueryInterface(Ci.nsIURI); uri.init(uri.URLTYPE_STANDARD, this.defaultPort, spec, charset, baseURI);
var uri = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIStandardURL) .QueryInterface(Components.interfaces.nsIURI); uri.init(uri.URLTYPE_STANDARD, this.defaultPort, spec, charset, null);
newURI: function (spec, charset, baseURI) { var uri = Cc["@mozilla.org/network/standard-url;1"] .createInstance(Ci.nsIStandardURL) .QueryInterface(Ci.nsIURI); uri.init(uri.URLTYPE_STANDARD, this.defaultPort, spec, charset, baseURI); return uri; },
next: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element)); var nextSiblings = element.nextSiblings(); return Object.isNumber(expression) ? nextSiblings[expression] : Selector.findElement(nextSiblings, expression, index); },
Ext.DomHelper=function(){var m=null;var g=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i;var b=/^table|tbody|tr|td$/i;var a=function(w){if(typeof w=="string"){return w}var q="";if(Ext.isArray(w)){for(var u=0,r=w.length;u<r;u++){q+=a(w[u])}return q}if(!w.tag){w.tag="div"}q+="<"+w.tag;for(var p in w){if(p=="tag"||p=="children"||p=="cn"||p=="html"||typeof w[p]=="function"){continue}if(p=="style"){var v=w.style;if(typeof v=="function"){v=v.call()}if(typeof v=="string"){q+=' style="'+v+'"'}else{if(typeof v=="object"){q+=' style="';for(var t in v){if(typeof v[t]!="function"){q+=t+":"+v[t]+";"}}q+='"'}}}else{if(p=="cls"){q+=' class="'+w.cls+'"'}else{if(p=="htmlFor"){q+=' for="'+w.htmlFor+'"'}else{q+=" "+p+'="'+w[p]+'"'}}}}if(g.test(w.tag)){q+="/>"}else{q+=">";var x=w.children||w.cn;if(x){q+=a(x)}else{if(w.html){q+=w.html}}q+="</"+w.tag+">"}return q};var n=function(v,q){var u;if(Ext.isArray(v)){u=document.createDocumentFragment();for(var t=0,r=v.length;t<r;t++){n(v[t],u)}}else{if(typeof v=="string"){u=document.createTextNode(v)}else{u=document.createElement(v.tag||"div");var s=!!u.setAttribute;for(var p in v){if(p=="tag"||p=="children"||p=="cn"||p=="html"||p=="style"||typeof v[p]=="function"){continue}if(p=="cls"){u.className=v.cls}else{if(s){u.setAttribute(p,v[p])}else{u[p]=v[p]}}}Ext.DomHelper.applyStyles(u,v.style);var w=v.children||v.cn;if(w){n(w,u)}else{if(v.html){u.innerHTML=v.html}}}}if(q){q.appendChild(u)}return u};var j=function(u,r,q,t){m.innerHTML=[r,q,t].join("");var o=-1,p=m;while(++o<u){p=p.firstChild}return p};var k="<table>",e="</table>",c=k+"<tbody>",l="</tbody>"+e,i=c+"<tr>",d="</tr>"+l;var h=function(o,p,r,q){if(!m){m=document.createElement("div")}var s;var t=null;if(o=="td"){if(p=="afterbegin"||p=="beforeend"){return}if(p=="beforebegin"){t=r;r=r.parentNode}else{t=r.nextSibling;r=r.parentNode}s=j(4,i,q,d)}else{if(o=="tr"){if(p=="beforebegin"){t=r;r=r.parentNode;s=j(3,c,q,l)}else{if(p=="afterend"){t=r.nextSibling;r=r.parentNode;s=j(3,c,q,l)}else{if(p=="afterbegin"){t=r.firstChild}s=j(4,i,q,d)}}}else{if(o=="tbody"){if(p=="beforebegin"){t=r;r=r.parentNode;s=j(2,k,q,e)}else{if(p=="afterend"){t=r.nextSibling;r=r.parentNode;s=j(2,k,q,e)}else{if(p=="afterbegin"){t=r.firstChild}s=j(3,c,q,l)}}}else{if(p=="beforebegin"||p=="afterend"){return}if(p=="afterbegin"){t=r.firstChild}s=j(2,k,q,e)}}}r.insertBefore(s,t);return s};return{useDom:false,markup:function(p){return a(p)},applyStyles:function(q,r){if(r){q=Ext.fly(q);if(typeof r=="string"){var p=/\s?([a-z\-]*)\:\s?([^;]*);?/gi;var s;while((s=p.exec(r))!=null){q.setStyle(s[1],s[2])}}else{if(typeof r=="object"){for(var o in r){q.setStyle(o,r[o])}}else{if(typeof r=="function"){Ext.DomHelper.applyStyles(q,r.call())}}}}},insertHtml:function(q,s,r){q=q.toLowerCase();if(s.insertAdjacentHTML){if(b.test(s.tagName)){var p;if(p=h(s.tagName.toLowerCase(),q,s,r)){return p}}switch(q){case"beforebegin":s.insertAdjacentHTML("BeforeBegin",r);return s.previousSibling;case"afterbegin":s.insertAdjacentHTML("AfterBegin",r);return s.firstChild;case"beforeend":s.insertAdjacentHTML("BeforeEnd",r);return s.lastChild;case"afterend":s.insertAdjacentHTML("AfterEnd",r);return s.nextSibling}throw'Illegal insertion point -> "'+q+'"'}var o=s.ownerDocument.createRange();var t;switch(q){case"beforebegin":o.setStartBefore(s);t=o.createContextualFragment(r);s.parentNode.insertBefore(t,s);return s.previousSibling;case"afterbegin":if(s.firstChild){o.setStartBefore(s.firstChild);t=o.createContextualFragment(r);s.insertBefore(t,s.firstChild);return s.firstChild}else{s.innerHTML=r;return s.firstChild}case"beforeend":if(s.lastChild){o.setStartAfter(s.lastChild);t=o.createContextualFragment(r);s.appendChild(t);return s.lastChild}else{s.innerHTML=r;return s.lastChild}case"afterend":o.setStartAfter(s);t=o.createContextualFragment(r);s.parentNode.insertBefore(t,s.nextSibling);return s.nextSibling}throw'Illegal insertion point -> "'+q+'"'},insertBefore:function(p,r,q){return this.doInsert(p,r,q,"beforeBegin")},insertAfter:function(p,r,q){return this.doInsert(p,r,q,"afterEnd","nextSibling")},insertFirst:function(p,r,q){return this.doInsert(p,r,q,"afterBegin","firstChild")},doInsert:function(s,u,t,v,r){s=Ext.getDom(s);var q;if(this.useDom){q=n(u,null);(r==="firstChild"?s:s.parentNode).insertBefore(q,r?s[r]:s)}else{var p=a(u);q=this.insertHtml(v,s,p)}return t?Ext.get(q,true):q},append:function(r,t,s){r=Ext.getDom(r);var q;if(this.useDom){q=n(t,null);r.appendChild(q)}else{var p=a(t);q=this.insertHtml("beforeEnd",r,p)}return s?Ext.get(q,true):q},overwrite:function(p,r,q){p=Ext.getDom(p);p.innerHTML=a(r);return q?Ext.get(p.firstChild,true):p.firstChild},createTemplate:function(q){var p=a(q);return new Ext.Template(p)}}}();Ext.Template=function(g){var c=arguments;if(Ext.isArray(g)){g=g.join("")}else{if(c.length>1){var d=[];for(var e=0,b=c.length;e<b;e++){if(typeof c[e]=="object"){Ext.apply(this,c[e])}else{d[d.length]=c[e]}}g=d.join("")}}this.html=g;if(this.compiled){this.compile()}};Ext.Template.prototype={applyTemplate:function(b){if(this.compiled){return this.compiled(b)}var a=this.disableFormats!==true;var e=Ext.util.Format,c=this;var d=function(h,k,o,j){if(o&&a){if(o.substr(0,5)=="this."){return c.call(o.substr(5),b[k],b)}else{if(j){var n=/^\s*['"](.*)["']\s*$/;j=j.split(",");for(var l=0,g=j.length;l<g;l++){j[l]=j[l].replace(n,"$1")}j=[b[k]].concat(j)}else{j=[b[k]]}return e[o].apply(e,j)}}else{return b[k]!==undefined?b[k]:""}};return this.html.replace(this.re,d)},set:function(a,b){this.html=a;this.compiled=null;if(b){this.compile()}return this},disableFormats:false,re:/\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,compile:function(){var fm=Ext.util.Format;var useF=this.disableFormats!==true;var sep=Ext.isGecko?"+":",";var fn=function(m,name,format,args){if(format&&useF){args=args?","+args:"";if(format.substr(0,5)!="this."){format="fm."+format+"("}else{format='this.call("'+format.substr(5)+'", ';args=", values"}}else{args="";format="(values['"+name+"'] == undefined ? '' : "}return"'"+sep+format+"values['"+name+"']"+args+")"+sep+"'"};var body;if(Ext.isGecko){body="this.compiled = function(values){ return '"+this.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)+"';};"}else{body=["this.compiled = function(values){ return ['"];body.push(this.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn));body.push("'].join('');};");body=body.join("")}eval(body);return this},call:function(c,b,a){return this[c](b,a)},insertFirst:function(b,a,c){return this.doInsert("afterBegin",b,a,c)},insertBefore:function(b,a,c){return this.doInsert("beforeBegin",b,a,c)},insertAfter:function(b,a,c){return this.doInsert("afterEnd",b,a,c)},append:function(b,a,c){return this.doInsert("beforeEnd",b,a,c)},doInsert:function(c,e,b,a){e=Ext.getDom(e);var d=Ext.DomHelper.insertHtml(c,e,this.applyTemplate(b));return a?Ext.get(d,true):d},overwrite:function(b,a,c){b=Ext.getDom(b);b.innerHTML=this.applyTemplate(a);return c?Ext.get(b.firstChild,true):b.firstChild}};Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;Ext.DomHelper.Template=Ext.Template;Ext.Template.from=function(b,a){b=Ext.getDom(b);return new Ext.Template(b.value||b.innerHTML,a||"")};Ext.DomQuery=function(){var cache={},simpleCache={},valueCache={};var nonSpace=/\S/;var trimRe=/^\s+|\s+$/g;var tplRe=/\{(\d+)\}/g;var modeRe=/^(\s?[\/>+~]\s?|\s|$)/;var tagTokenRe=/^(#)?([\w-\*]+)/;var nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/;function child(p,index){var i=0;var n=p.firstChild;while(n){if(n.nodeType==1){if(++i==index){return n}}n=n.nextSibling}return null}function next(n){while((n=n.nextSibling)&&n.nodeType!=1){}return n}function prev(n){while((n=n.previousSibling)&&n.nodeType!=1){}return n}function children(d){var n=d.firstChild,ni=-1;while(n){var nx=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){d.removeChild(n)}else{n.nodeIndex=++ni}n=nx}return this}function byClassName(c,a,v){if(!v){return c}var r=[],ri=-1,cn;for(var i=0,ci;ci=c[i];i++){if((" "+ci.className+" ").indexOf(v)!=-1){r[++ri]=ci}}return r}function attrValue(n,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]}function getNodes(ns,mode,tagName){var result=[],ri=-1,cs;if(!ns){return result}tagName=tagName||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!mode){for(var i=0,ni;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(var j=0,ci;ci=cs[j];j++){result[++ri]=ci}}}else{if(mode=="/"||mode==">"){var utag=tagName.toUpperCase();for(var i=0,ni,cn;ni=ns[i];i++){cn=ni.children||ni.childNodes;for(var j=0,cj;cj=cn[j];j++){if(cj.nodeName==utag||cj.nodeName==tagName||tagName=="*"){result[++ri]=cj}}}}else{if(mode=="+"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=="*")){result[++ri]=n}}}else{if(mode=="~"){for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&(n.nodeType!=1||(tagName=="*"||n.tagName.toLowerCase()!=tagName))){}if(n){result[++ri]=n}}}}}}return result}function concat(a,b){if(b.slice){return a.concat(b)}for(var i=0,l=b.length;i<l;i++){a[a.length]=b[i]}return a}function byTag(cs,tagName){if(cs.tagName||cs==document){cs=[cs]}if(!tagName){return cs}var r=[],ri=-1;tagName=tagName.toLowerCase();for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){r[++ri]=ci}}return r}function byId(cs,attr,id){if(cs.tagName||cs==document){cs=[cs]}if(!id){return cs}var r=[],ri=-1;for(var i=0,ci;ci=cs[i];i++){if(ci&&ci.id==id){r[++ri]=ci;return r}}return r}function byAttribute(cs,attr,value,op,custom){var r=[],ri=-1,st=custom=="{";var f=Ext.DomQuery.operators[op];for(var i=0,ci;ci=cs[i];i++){var a;if(st){a=Ext.DomQuery.getStyle(ci,attr)}else{if(attr=="class"||attr=="className"){a=ci.className}else{if(attr=="for"){a=ci.htmlFor}else{if(attr=="href"){a=ci.getAttribute("href",2)}else{a=ci.getAttribute(attr)}}}}if((f&&f(a,value))||(!f&&a)){r[++ri]=ci}}return r}function byPseudo(cs,name,value){return Ext.DomQuery.pseudos[name](cs,value)}var isIE=window.ActiveXObject?true:false;eval("var batch = 30803;");var key=30803;function nodupIEXml(cs){var d=++key;cs[0].setAttribute("_nodup",d);var r=[cs[0]];for(var i=1,len=cs.length;i<len;i++){var c=cs[i];if(!c.getAttribute("_nodup")!=d){c.setAttribute("_nodup",d);r[r.length]=c}}for(var i=0,len=cs.length;i<len;i++){cs[i].removeAttribute("_nodup")}return r}function nodup(cs){if(!cs){return[]}var len=cs.length,c,i,r=cs,cj,ri=-1;if(!len||typeof cs.nodeType!="undefined"||len==1){return cs}if(isIE&&typeof cs[0].selectSingleNode!="undefined"){return nodupIEXml(cs)}var d=++key;cs[0]._nodup=d;for(i=1;c=cs[i];i++){if(c._nodup!=d){c._nodup=d}else{r=[];for(var j=0;j<i;j++){r[++ri]=cs[j]}for(j=i+1;cj=cs[j];j++){if(cj._nodup!=d){cj._nodup=d;r[++ri]=cj}}return r}}return r}function quickDiffIEXml(c1,c2){var d=++key;for(var i=0,len=c1.length;i<len;i++){c1[i].setAttribute("_qdiff",d)}var r=[];for(var i=0,len=c2.length;i<len;i++){if(c2[i].getAttribute("_qdiff")!=d){r[r.length]=c2[i]}}for(var i=0,len=c1.length;i<len;i++){c1[i].removeAttribute("_qdiff")}return r}function quickDiff(c1,c2){var len1=c1.length;if(!len1){return c2}if(isIE&&c1[0].selectSingleNode){return quickDiffIEXml(c1,c2)}var d=++key;for(var i=0;i<len1;i++){c1[i]._qdiff=d}var r=[];for(var i=0,len=c2.length;i<len;i++){if(c2[i]._qdiff!=d){r[r.length]=c2[i]}}return r}function quickId(ns,mode,root,id){if(ns==root){var d=root.ownerDocument||root;return d.getElementById(id)}ns=getNodes(ns,mode,"*");return byId(ns,null,id)}return{getStyle:function(el,name){return Ext.fly(el).getStyle(name)},compile:function(path,type){type=type||"select";var fn=["var f = function(root){\n var mode; ++batch; var n = root || document;\n"];var q=path,mode,lq;var tk=Ext.DomQuery.matchers;var tklen=tk.length;var mm;var lmode=q.match(modeRe);if(lmode&&lmode[1]){fn[fn.length]='mode="'+lmode[1].replace(trimRe,"")+'";';q=q.replace(lmode[1],"")}while(path.substr(0,1)=="/"){path=path.substr(1)}while(q&&lq!=q){lq=q;var tm=q.match(tagTokenRe);if(type=="select"){if(tm){if(tm[1]=="#"){fn[fn.length]='n = quickId(n, mode, root, "'+tm[2]+'");'}else{fn[fn.length]='n = getNodes(n, mode, "'+tm[2]+'");'}q=q.replace(tm[0],"")}else{if(q.substr(0,1)!="@"){fn[fn.length]='n = getNodes(n, mode, "*");'}}}else{if(tm){if(tm[1]=="#"){fn[fn.length]='n = byId(n, null, "'+tm[2]+'");'}else{fn[fn.length]='n = byTag(n, "'+tm[2]+'");'}q=q.replace(tm[0],"")}}while(!(mm=q.match(modeRe))){var matched=false;for(var j=0;j<tklen;j++){var t=tk[j];var m=q.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(x,i){return m[i]});q=q.replace(m[0],"");matched=true;break}}if(!matched){throw'Error parsing selector, parsing failed at "'+q+'"'}}if(mm[1]){fn[fn.length]='mode="'+mm[1].replace(trimRe,"")+'";';q=q.replace(mm[1],"")}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f},select:function(path,root,type){if(!root||root==document){root=document}if(typeof root=="string"){root=document.getElementById(root)}var paths=path.split(",");var results=[];for(var i=0,len=paths.length;i<len;i++){var p=paths[i].replace(trimRe,"");if(!cache[p]){cache[p]=Ext.DomQuery.compile(p);if(!cache[p]){throw p+" is not a valid selector"}}var result=cache[p](root);if(result&&result!=document){results=results.concat(result)}}if(paths.length>1){return nodup(results)}return results},selectNode:function(path,root){return Ext.DomQuery.select(path,root)[0]},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"");if(!valueCache[path]){valueCache[path]=Ext.DomQuery.compile(path,"select")}var n=valueCache[path](root);n=n[0]?n[0]:n;var v=(n&&n.firstChild?n.firstChild.nodeValue:null);return((v===null||v===undefined||v==="")?defaultValue:v)},selectNumber:function(path,root,defaultValue){var v=Ext.DomQuery.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=document.getElementById(el)}var isArray=Ext.isArray(el);var result=Ext.DomQuery.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0)},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"");if(!simpleCache[ss]){simpleCache[ss]=Ext.DomQuery.compile(ss,"simple")}var result=simpleCache[ss](els);return nonMatches?quickDiff(result,els):result},matchers:[{re:/^\.([\w-]+)/,select:'n = byClassName(n, null, " {1} ");'},{re:/^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w-]+)/,select:'n = byId(n, null, "{1}");'},{re:/^@([\w-]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],operators:{"=":function(a,v){return a==v},"!=":function(a,v){return a!=v},"^=":function(a,v){return a&&a.substr(0,v.length)==v},"$=":function(a,v){return a&&a.substr(a.length-v.length)==v},"*=":function(a,v){return a&&a.indexOf(v)!==-1},"%=":function(a,v){return(a%v)==0},"|=":function(a,v){return a&&(a==v||a.substr(0,v.length+1)==v+"-")},"~=":function(a,v){return a&&(" "+a+" ").indexOf(" "+v+" ")!=-1}},pseudos:{"first-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.previousSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"last-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"nth-child":function(c,a){var r=[],ri=-1;var m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a);var f=(m[1]||1)-0,l=m[2]-0;for(var i=0,n;n=c[i];i++){var pn=n.parentNode;if(batch!=pn._batch){var j=0;for(var cn=pn.firstChild;cn;cn=cn.nextSibling){if(cn.nodeType==1){cn.nodeIndex=++j}}pn._batch=batch}if(f==1){if(l==0||n.nodeIndex==l){r[++ri]=n}}else{if((n.nodeIndex+l)%f==0){r[++ri]=n}}}return r},"only-child":function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(!prev(ci)&&!next(ci)){r[++ri]=ci}}return r},empty:function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var cns=ci.childNodes,j=0,cn,empty=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){empty=false;break}}if(empty){r[++ri]=ci}}return r},contains:function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if((ci.textContent||ci.innerText||"").indexOf(v)!=-1){r[++ri]=ci}}return r},nodeValue:function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.firstChild&&ci.firstChild.nodeValue==v){r[++ri]=ci}}return r},checked:function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.checked==true){r[++ri]=ci}}return r},not:function(c,ss){return Ext.DomQuery.filter(c,ss,true)},any:function(c,selectors){var ss=selectors.split("|");var r=[],ri=-1,s;for(var i=0,ci;ci=c[i];i++){for(var j=0;s=ss[j];j++){if(Ext.DomQuery.is(ci,s)){r[++ri]=ci;break}}}return r},odd:function(c){return this["nth-child"](c,"odd")},even:function(c){return this["nth-child"](c,"even")},nth:function(c,a){return c[a-1]||[]},first:function(c){return c[0]||[]},last:function(c){return c[c.length-1]||[]},has:function(c,ss){var s=Ext.DomQuery.select;var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(s(ss,ci).length>0){r[++ri]=ci}}return r},next:function(c,ss){var is=Ext.DomQuery.is;var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=next(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},prev:function(c,ss){var is=Ext.DomQuery.is;var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=prev(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r}}}}();Ext.query=Ext.DomQuery.select;Ext.util.Observable=function(){if(this.listeners){this.on(this.listeners);delete this.listeners}};Ext.util.Observable.prototype={fireEvent:function(){if(this.eventsSuspended!==true){var a=this.events[arguments[0].toLowerCase()];if(typeof a=="object"){return a.fire.apply(a,Array.prototype.slice.call(arguments,1))}}return true},filterOptRe:/^(?:scope|delay|buffer|single)$/,addListener:function(a,c,b,h){if(typeof a=="object"){h=a;for(var g in h){if(this.filterOptRe.test(g)){continue}if(typeof h[g]=="function"){this.addListener(g,h[g],h.scope,h)}else{this.addListener(g,h[g].fn,h[g].scope,h[g])}}return}h=(!h||typeof h=="boolean")?{}:h;a=a.toLowerCase();var d=this.events[a]||true;if(typeof d=="boolean"){d=new Ext.util.Event(this,a);this.events[a]=d}d.addListener(c,b,h)},removeListener:function(a,c,b){var d=this.events[a.toLowerCase()];if(typeof d=="object"){d.removeListener(c,b)}},purgeListeners:function(){for(var a in this.events){if(typeof this.events[a]=="object"){this.events[a].clearListeners()}}},relayEvents:function(g,d){var e=function(h){return function(){return this.fireEvent.apply(this,Ext.combine(h,Array.prototype.slice.call(arguments,0)))}};for(var c=0,a=d.length;c<a;c++){var b=d[c];if(!this.events[b]){this.events[b]=true}g.on(b,e(b),this)}},addEvents:function(e){if(!this.events){this.events={}}if(typeof e=="string"){for(var d=0,b=arguments,c;c=b[d];d++){if(!this.events[b[d]]){this.events[b[d]]=true}}}else{Ext.applyIf(this.events,e)}},hasListener:function(a){var b=this.events[a];return typeof b=="object"&&b.listeners.length>0},suspendEvents:function(){this.eventsSuspended=true},resumeEvents:function(){this.eventsSuspended=false},getMethodEvent:function(i){if(!this.methodEvents){this.methodEvents={}}var h=this.methodEvents[i];if(!h){h={};this.methodEvents[i]=h;h.originalFn=this[i];h.methodName=i;h.before=[];h.after=[];var c,b,d;var g=this;var a=function(k,j,e){if((b=k.apply(j||g,e))!==undefined){if(typeof b==="object"){if(b.returnValue!==undefined){c=b.returnValue}else{c=b}if(b.cancel===true){d=true}}else{if(b===false){d=true}else{c=b}}}};this[i]=function(){c=b=undefined;d=false;var j=Array.prototype.slice.call(arguments,0);for(var k=0,e=h.before.length;k<e;k++){a(h.before[k].fn,h.before[k].scope,j);if(d){return c}}if((b=h.originalFn.apply(g,j))!==undefined){c=b}for(var k=0,e=h.after.length;k<e;k++){a(h.after[k].fn,h.after[k].scope,j);if(d){return c}}return c}}return h},beforeMethod:function(d,b,a){var c=this.getMethodEvent(d);c.before.push({fn:b,scope:a})},afterMethod:function(d,b,a){var c=this.getMethodEvent(d);c.after.push({fn:b,scope:a})},removeMethodListener:function(h,d,c){var g=this.getMethodEvent(h);for(var b=0,a=g.before.length;b<a;b++){if(g.before[b].fn==d&&g.before[b].scope==c){g.before.splice(b,1);return}}for(var b=0,a=g.after.length;b<a;b++){if(g.after[b].fn==d&&g.after[b].scope==c){g.after.splice(b,1);return}}}};Ext.util.Observable.prototype.on=Ext.util.Observable.prototype.addListener;Ext.util.Observable.prototype.un=Ext.util.Observable.prototype.removeListener;Ext.util.Observable.capture=function(c,b,a){c.fireEvent=c.fireEvent.createInterceptor(b,a)};Ext.util.Observable.releaseCapture=function(a){a.fireEvent=Ext.util.Observable.prototype.fireEvent};(function(){var b=function(g,i,e){var d=new Ext.util.DelayedTask();return function(){d.delay(i.buffer,g,e,Array.prototype.slice.call(arguments,0))}};var c=function(i,j,g,d){return function(){j.removeListener(g,d);return i.apply(d,arguments)}};var a=function(e,g,d){return function(){var h=Array.prototype.slice.call(arguments,0);setTimeout(function(){e.apply(d,h)},g.delay||10)}};Ext.util.Event=function(e,d){this.name=d;this.obj=e;this.listeners=[]};Ext.util.Event.prototype={addListener:function(h,g,e){g=g||this.obj;if(!this.isListening(h,g)){var d=this.createListener(h,g,e);if(!this.firing){this.listeners.push(d)}else{this.listeners=this.listeners.slice(0);this.listeners.push(d)}}},createListener:function(i,g,j){j=j||{};g=g||this.obj;var d={fn:i,scope:g,options:j};var e=i;if(j.delay){e=a(e,j,g)}if(j.single){e=c(e,this,i,g)}if(j.buffer){e=b(e,j,g)}d.fireFn=e;return d},findListener:function(k,j){j=j||this.obj;var g=this.listeners;for(var h=0,d=g.length;h<d;h++){var e=g[h];if(e.fn==k&&e.scope==j){return h}}return -1},isListening:function(e,d){return this.findListener(e,d)!=-1},removeListener:function(g,e){var d;if((d=this.findListener(g,e))!=-1){if(!this.firing){this.listeners.splice(d,1)}else{this.listeners=this.listeners.slice(0);this.listeners.splice(d,1)}return true}return false},clearListeners:function(){this.listeners=[]},fire:function(){var g=this.listeners,k,d=g.length;if(d>0){this.firing=true;var h=Array.prototype.slice.call(arguments,0);for(var j=0;j<d;j++){var e=g[j];if(e.fireFn.apply(e.scope||this.obj||window,arguments)===false){this.firing=false;return false}}this.firing=false}return true}}})();Ext.EventManager=function(){var w,p,l=false;var m,v,g,r;var o=Ext.lib.Event;var q=Ext.lib.Dom;var a="Ext";var i={};var n=function(C,y,B,A,z){var E=Ext.id(C);if(!i[E]){i[E]={}}var D=i[E];if(!D[y]){D[y]=[]}var x=D[y];x.push({id:E,ename:y,fn:B,wrap:A,scope:z});o.on(C,y,A);if(y=="mousewheel"&&C.addEventListener){C.addEventListener("DOMMouseScroll",A,false);o.on(window,"unload",function(){C.removeEventListener("DOMMouseScroll",A,false)})}if(y=="mousedown"&&C==document){Ext.EventManager.stoppedMouseDownEvent.addListener(A)}};var h=function(z,B,F,H){z=Ext.getDom(z);var x=Ext.id(z),G=i[x],y;if(G){var D=G[B],A;if(D){for(var C=0,E=D.length;C<E;C++){A=D[C];if(A.fn==F&&(!H||A.scope==H)){y=A.wrap;o.un(z,B,y);D.splice(C,1);break}}}}if(B=="mousewheel"&&z.addEventListener&&y){z.removeEventListener("DOMMouseScroll",y,false)}if(B=="mousedown"&&z==document&&y){Ext.EventManager.stoppedMouseDownEvent.removeListener(y)}};var d=function(B){B=Ext.getDom(B);var D=Ext.id(B),C=i[D],y;if(C){for(var A in C){if(C.hasOwnProperty(A)){y=C[A];for(var z=0,x=y.length;z<x;z++){o.un(B,A,y[z].wrap);y[z]=null}}C[A]=null}delete i[D]}};var c=function(){if(!l){l=true;Ext.isReady=true;if(p){clearInterval(p)}if(Ext.isGecko||Ext.isOpera){document.removeEventListener("DOMContentLoaded",c,false)}if(Ext.isIE){var x=document.getElementById("ie-deferred-loader");if(x){x.onreadystatechange=null;x.parentNode.removeChild(x)}}if(w){w.fire();w.clearListeners()}}};var b=function(){w=new Ext.util.Event();if(Ext.isGecko||Ext.isOpera){document.addEventListener("DOMContentLoaded",c,false)}else{if(Ext.isIE){document.write('<script id="ie-deferred-loader" defer="defer" src="
next: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element)); var nextSiblings = element.nextSiblings(); return Object.isNumber(expression) ? nextSiblings[expression] : Selector.findElement(nextSiblings, expression, index); },
else if (!this._top)
else if (!this._validHints.some(function (h) h.elem == elem))
(function next() { this._setClass(elem, n % 2); if (n--) this.timeout(next, 50); else if (!this._top) elem.removeAttributeNS(NS, "highlight"); }).call(this);
nextSiblings: function(element) { return $(element).recursivelyCollect('nextSibling'); },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
nextSiblings: function(element) { return $(element).recursivelyCollect('nextSibling'); },
o}return a};c.extend({noConflict:function(a){A.$=Na;if(a)A.jQuery=Ma;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",M,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
o}return a};c.extend({noConflict:function(a){A.$=Na;if(a)A.jQuery=Ma;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",M,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",
self = this; this.norbertLoaded = false; this.norbert.onload=function() { self.norbertLoaded = true; }
function NorbertNode() { this.norbert = new Image(); this.norbert.src = "img/norbert-8bit.png"; this.position = new Vector(0, 0, 0);}
if (options["autoexternal"] && !window.messageWasEditedExternally) { window.messageWasEditedExternally = true; editor.editFieldExternally(); }
liberator.log("NotifyDocumentStateChanged", 0); if (options["autoexternal"] && !window.messageWasEditedExternally) { window.messageWasEditedExternally = true; editor.editFieldExternally(); }
NotifyDocumentStateChanged: function (nowDirty) { // only edit with external editor if this window was not cached! if (options["autoexternal"] && !window.messageWasEditedExternally/* && !gMsgCompose.recycledWindow*/) { window.messageWasEditedExternally = true; editor.editFieldExternally(); } },
setFilters:{first:function(g,h){return h===0},last:function(g,h,k,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,m){var r=h[1],q=n.filters[r];if(q)return q(g,k,h,m);else if(r==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(r==="not"){h=
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
setFilters:{first:function(g,h){return h===0},last:function(g,h,k,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,m){var r=h[1],q=n.filters[r];if(q)return q(g,k,h,m);else if(r==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(r==="not"){h=
a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function o(){c.support.noCloneEvent=false;d.detachEvent("onclick",o)});d.cloneNode(true).fireEvent("onclick")}c(function(){var o=s.createElement("div");o.style.width=o.style.paddingLeft="1px";s.body.appendChild(o);c.boxModel=c.support.boxModel=o.offsetWidth===2;s.body.removeChild(o).style.display="none"});a=function(o){var p=s.createElement("div");o="on"+o;var n=o in
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function o(){c.support.noCloneEvent=false;d.detachEvent("onclick",o)});d.cloneNode(true).fireEvent("onclick")}c(function(){var o=s.createElement("div");o.style.width=o.style.paddingLeft="1px";s.body.appendChild(o);c.boxModel=c.support.boxModel=o.offsetWidth===2;s.body.removeChild(o).style.display="none"});a=function(o){var p=s.createElement("div");o="on"+o;var n=o in
function addEventHandler(i,p,k,n){function o(q){k(normalizeEvent(q||window.event))}if(typeof i.addEventListener=="function"){i.addEventListener(p,o,false);if(n)return function(){i.removeEventListener(p,o,false)}}else{i.attachEvent("on"+p,o);if(n)return function(){i.detachEvent("on"+p,o)}}}function nodeText(i){return i.textContent||i.innerText||i.nodeValue||""}function nodeTop(i){for(var p=0;i.offsetParent;){p+=i.offsetTop;i=i.offsetParent}return p}
r=f.addEventHandler(f,"resize",h,true);x=function(){o();r();if(k.updateNumbers==h)k.updateNumbers=null};h()}function g(){function h(n,z){q||(q=j.appendChild(document.createElement("DIV")));H&&H(q,z,n);t.push(q);t.push(n);A=q.offsetHeight+q.offsetTop;q=q.nextSibling}function o(){for(var n=0;n<t.length;n+=2)t[n].innerHTML=t[n+1];t=[]}function r(){if(!(!j.parentNode||j.parentNode!=k.lineNumbers)){for(var n=(new Date).getTime()+k.options.lineNumberTime;l;){for(h(B++,l.previousSibling);l&&!f.isBR(l);l=
function addEventHandler(i,p,k,n){function o(q){k(normalizeEvent(q||window.event))}if(typeof i.addEventListener=="function"){i.addEventListener(p,o,false);if(n)return function(){i.removeEventListener(p,o,false)}}else{i.attachEvent("on"+p,o);if(n)return function(){i.detachEvent("on"+p,o)}}}function nodeText(i){return i.textContent||i.innerText||i.nodeValue||""}function nodeTop(i){for(var p=0;i.offsetParent;){p+=i.offsetTop;i=i.offsetParent}return p}
(function(A,w){function oa(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(oa,1);return}c.ready()}}function La(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function $(a,b,d,f,e,i){var j=a.length;if(typeof b==="object"){for(var o in b)$(a,o,b[o],f,e,d);return a}if(d!==w){f=!i&&f&&c.isFunction(d);for(o=0;o<j;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,i);return a}return j?
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r= j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
(function(A,w){function oa(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(oa,1);return}c.ready()}}function La(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function $(a,b,d,f,e,i){var j=a.length;if(typeof b==="object"){for(var o in b)$(a,o,b[o],f,e,d);return a}if(d!==w){f=!i&&f&&c.isFunction(d);for(o=0;o<j;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,i);return a}return j?
} this.enumerableContentDidChange(range) ;
} this.enumerableContentDidChange(range.start, range.length) ;
objectsDidChangeInRange: function(range) { // delete cached content var content = this._sa_content ; if (content) { // if range covers entire length of cached content, just reset array if (range.start === 0 && SC.maxRange(range)>=content.length) { this._sa_content = null ; // otherwise, step through the changed parts and delete them. } else { var start = range.start, loc = Math.min(start + range.length, content.length); while (--loc>=start) content[loc] = undefined; } } this.enumerableContentDidChange(range) ; // notify return this ; },
doctest._reprTrackRestore(restorer);
doctest.objRepr = function (obj, indent, maxLen) { var ostring = '{'; var keys = doctest._sortedKeys(obj); for (var i=0; i<keys.length; i++) { if (ostring != '{') { ostring += ', '; } ostring += keys[i] + ': ' + doctest.repr(obj[keys[i]], indent, maxLen); } ostring += '}'; if (ostring.length > (maxLen - indent.length)) { return doctest.multilineObjRepr(obj, indent, maxLen); } return ostring;};
c.addObserver('isHidden', this, '_scfl_layoutPropertyDidChange');
c.addObserver('useAbsoluteLayout', this, '_scfl_layoutPropertyDidChange');
observeChildLayout: function(c) { if (c._scfl_isBeingObserved) return; c._scfl_isBeingObserved = YES; c.addObserver('isVisible', this, '_scfl_layoutPropertyDidChange'); c.addObserver('isHidden', this, '_scfl_layoutPropertyDidChange'); c.addObserver('calculatedWidth', this, '_scfl_layoutPropertyDidChange'); c.addObserver('calculatedHeight', this, '_scfl_layoutPropertyDidChange'); },
return observers.members ;
return observers.getMembers() ;
observersForKey: function(key) { var observers = this._kvo_for('_kvo_observers', key) ; return observers.members ; },
e.left+j};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a= this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],i;if(!e)return null;if(f!==w)return this.each(function(){if(i=wa(this))i.scrollTo(!a?f:c(i).scrollLeft(),a?f:c(i).scrollTop());else this[d]=f});else return(i=wa(e))?"pageXOffset"in i?i[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&i.document.documentElement[d]||i.document.body[d]:e[d]}});
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
e.left+j};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],i;if(!e)return null;if(f!==w)return this.each(function(){if(i=wa(this))i.scrollTo(!a?f:c(i).scrollLeft(),a?f:c(i).scrollTop());else this[d]=f});else return(i=wa(e))?"pageXOffset"in i?i[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&i.document.documentElement[d]||i.document.body[d]:e[d]}});
desc = "<span style='position: absolute; right: 5; bottom: 3;'>" +
desc = "<span style='position: absolute; right: 5; bottom: 1;'>" +
function onAirportSelect(airport) { apid = airport.attributes.apid; code = airport.attributes.code; coreid = airport.attributes.coreid; rdesc = airport.attributes.rdesc; // Single airport? if(!airport.cluster) { // Add toolbar to popup desc = "<span style='position: absolute; right: 5; bottom: 3;'>" + "<a href='#' onclick='JavaScript:selectAirport(" + apid + ", true);'><img src='/img/icon_plane-src.png' width=17 height=17 title='" + gt.gettext("Select this airport") + "' id='popup" + apid + "' style='visibility: hidden'></a>"; if(coreid == 0) { // Detailed flights accessible only if... // 1. user is logged in, or // 2. system is in "demo mode", or // 3. privacy is set to (O)pen if( logged_in || demo_mode || privacy == "O") { // Get list of user flights desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_FLIGHTS + "\"," + apid + ", \"" + encodeURI(airport.attributes.desc) + "\");'><img src='/img/icon_copy.png' width=16 height=16 title='" + gt.gettext("List my flights") + "'></a>"; } } else { if(code.length == 3) { // Get list of airport routes if(coreid.startsWith("L")) { idstring = coreid + "," + apid; } else { idstring = "R" + apid + "," + coreid; } desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_FLIGHTS + "\",\"" + idstring + "\", \"" + encodeURI(rdesc) + "\");'><img src='/img/icon_copy.png' width=16 height=16 title='" + gt.gettext("List routes") + "'></a> "; } } if(code.length == 3) { // IATA airport, we know its routes desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_ROUTES + "\"," + apid + ");'><img src='/img/icon_routes.png' width=17 height=17 title='" + gt.gettext("Map of routes from this airport") + "'></a>"; } desc += "</span>" + airport.attributes.desc.replace("Flights:", gt.gettext("Flights:")); } else { // Cluster, generate clickable list of members in reverse order (most flights first) desc = "<b>" + gt.gettext("Airports") + "</b><br>"; edit = (getCurrentPane() == "input" || getCurrentPane() == "multiinput") ? "true" : "false"; cmax = airport.cluster.length - 1; for(c = cmax; c >= 0; c--) { if(c < cmax) { desc += ", "; if((cmax-c) % 6 == 0) desc += "<br>"; } desc += "<a href='#' onclick='JavaScript:selectAirport(" + airport.cluster[c].attributes.apid + "," + edit + ")'>" + airport.cluster[c].attributes.code + "</a>"; } } desc = "<img src=\"/img/close.gif\" onclick=\"JavaScript:closePopup(true);\" width=17 height=17> " + desc; closePopup(false); if (airport.popup == null) { airport.popup = new OpenLayers.Popup.FramedCloud("airport", airport.geometry.getBounds().getCenterLonLat(), new OpenLayers.Size(200,80), desc, null, false); airport.popup.minSize = new OpenLayers.Size(200,80); airport.popup.overflow = "auto"; map.addPopup(airport.popup); airport.popup.show(); } else { airport.popup.setContentHTML(desc); airport.popup.toggle(); } if(airport.popup.visible()) { currentPopup = airport.popup; } else { closePane(); } // Show or hide toolbar when applicable if($('popup' + apid)) { if(getCurrentPane() == "input" || getCurrentPane() == "multiinput") { $('popup' + apid).style.visibility = "visible"; } else { $('popup' + apid).style.visibility = "hidden"; } }}
edit = (getCurrentPane() == "input" || getCurrentPane() == "multiinput") ? "true" : "false";
edit = isEditMode() ? "true" : "false";
function onAirportSelect(airport) { apid = airport.attributes.apid; code = airport.attributes.code; coreid = airport.attributes.coreid; rdesc = airport.attributes.rdesc; // Single airport? if(!airport.cluster) { // Add toolbar to popup desc = "<span style='position: absolute; right: 5; bottom: 3;'>" + "<a href='#' onclick='JavaScript:selectAirport(" + apid + ", true);'><img src='/img/icon_plane-src.png' width=17 height=17 title='" + gt.gettext("Select this airport") + "' id='popup" + apid + "' style='visibility: hidden'></a>"; if(coreid == 0) { // Detailed flights accessible only if... // 1. user is logged in, or // 2. system is in "demo mode", or // 3. privacy is set to (O)pen if( logged_in || demo_mode || privacy == "O") { // Get list of user flights desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_FLIGHTS + "\"," + apid + ", \"" + encodeURI(airport.attributes.desc) + "\");'><img src='/img/icon_copy.png' width=16 height=16 title='" + gt.gettext("List my flights") + "'></a>"; } } else { if(code.length == 3) { // Get list of airport routes if(coreid.startsWith("L")) { idstring = coreid + "," + apid; } else { idstring = "R" + apid + "," + coreid; } desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_FLIGHTS + "\",\"" + idstring + "\", \"" + encodeURI(rdesc) + "\");'><img src='/img/icon_copy.png' width=16 height=16 title='" + gt.gettext("List routes") + "'></a> "; } } if(code.length == 3) { // IATA airport, we know its routes desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_ROUTES + "\"," + apid + ");'><img src='/img/icon_routes.png' width=17 height=17 title='" + gt.gettext("Map of routes from this airport") + "'></a>"; } desc += "</span>" + airport.attributes.desc.replace("Flights:", gt.gettext("Flights:")); } else { // Cluster, generate clickable list of members in reverse order (most flights first) desc = "<b>" + gt.gettext("Airports") + "</b><br>"; edit = (getCurrentPane() == "input" || getCurrentPane() == "multiinput") ? "true" : "false"; cmax = airport.cluster.length - 1; for(c = cmax; c >= 0; c--) { if(c < cmax) { desc += ", "; if((cmax-c) % 6 == 0) desc += "<br>"; } desc += "<a href='#' onclick='JavaScript:selectAirport(" + airport.cluster[c].attributes.apid + "," + edit + ")'>" + airport.cluster[c].attributes.code + "</a>"; } } desc = "<img src=\"/img/close.gif\" onclick=\"JavaScript:closePopup(true);\" width=17 height=17> " + desc; closePopup(false); if (airport.popup == null) { airport.popup = new OpenLayers.Popup.FramedCloud("airport", airport.geometry.getBounds().getCenterLonLat(), new OpenLayers.Size(200,80), desc, null, false); airport.popup.minSize = new OpenLayers.Size(200,80); airport.popup.overflow = "auto"; map.addPopup(airport.popup); airport.popup.show(); } else { airport.popup.setContentHTML(desc); airport.popup.toggle(); } if(airport.popup.visible()) { currentPopup = airport.popup; } else { closePane(); } // Show or hide toolbar when applicable if($('popup' + apid)) { if(getCurrentPane() == "input" || getCurrentPane() == "multiinput") { $('popup' + apid).style.visibility = "visible"; } else { $('popup' + apid).style.visibility = "hidden"; } }}
if(getCurrentPane() == "input" || getCurrentPane() == "multiinput") {
if(isEditMode()) {
function onAirportSelect(airport) { apid = airport.attributes.apid; code = airport.attributes.code; coreid = airport.attributes.coreid; rdesc = airport.attributes.rdesc; // Single airport? if(!airport.cluster) { // Add toolbar to popup desc = "<span style='position: absolute; right: 5; bottom: 3;'>" + "<a href='#' onclick='JavaScript:selectAirport(" + apid + ", true);'><img src='/img/icon_plane-src.png' width=17 height=17 title='" + gt.gettext("Select this airport") + "' id='popup" + apid + "' style='visibility: hidden'></a>"; if(coreid == 0) { // Detailed flights accessible only if... // 1. user is logged in, or // 2. system is in "demo mode", or // 3. privacy is set to (O)pen if( logged_in || demo_mode || privacy == "O") { // Get list of user flights desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_FLIGHTS + "\"," + apid + ", \"" + encodeURI(airport.attributes.desc) + "\");'><img src='/img/icon_copy.png' width=16 height=16 title='" + gt.gettext("List my flights") + "'></a>"; } } else { if(code.length == 3) { // Get list of airport routes if(coreid.startsWith("L")) { idstring = coreid + "," + apid; } else { idstring = "R" + apid + "," + coreid; } desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_FLIGHTS + "\",\"" + idstring + "\", \"" + encodeURI(rdesc) + "\");'><img src='/img/icon_copy.png' width=16 height=16 title='" + gt.gettext("List routes") + "'></a> "; } } if(code.length == 3) { // IATA airport, we know its routes desc += " <a href='#' onclick='JavaScript:xmlhttpPost(\"" + URL_ROUTES + "\"," + apid + ");'><img src='/img/icon_routes.png' width=17 height=17 title='" + gt.gettext("Map of routes from this airport") + "'></a>"; } desc += "</span>" + airport.attributes.desc.replace("Flights:", gt.gettext("Flights:")); } else { // Cluster, generate clickable list of members in reverse order (most flights first) desc = "<b>" + gt.gettext("Airports") + "</b><br>"; edit = (getCurrentPane() == "input" || getCurrentPane() == "multiinput") ? "true" : "false"; cmax = airport.cluster.length - 1; for(c = cmax; c >= 0; c--) { if(c < cmax) { desc += ", "; if((cmax-c) % 6 == 0) desc += "<br>"; } desc += "<a href='#' onclick='JavaScript:selectAirport(" + airport.cluster[c].attributes.apid + "," + edit + ")'>" + airport.cluster[c].attributes.code + "</a>"; } } desc = "<img src=\"/img/close.gif\" onclick=\"JavaScript:closePopup(true);\" width=17 height=17> " + desc; closePopup(false); if (airport.popup == null) { airport.popup = new OpenLayers.Popup.FramedCloud("airport", airport.geometry.getBounds().getCenterLonLat(), new OpenLayers.Size(200,80), desc, null, false); airport.popup.minSize = new OpenLayers.Size(200,80); airport.popup.overflow = "auto"; map.addPopup(airport.popup); airport.popup.show(); } else { airport.popup.setContentHTML(desc); airport.popup.toggle(); } if(airport.popup.visible()) { currentPopup = airport.popup; } else { closePane(); } // Show or hide toolbar when applicable if($('popup' + apid)) { if(getCurrentPane() == "input" || getCurrentPane() == "multiinput") { $('popup' + apid).style.visibility = "visible"; } else { $('popup' + apid).style.visibility = "hidden"; } }}
pagespeed.ResourceAccumulator.prototype.onBody_ = function(text) {
pagespeed.ResourceAccumulator.prototype.onBody_ = function(text, encoding) {
pagespeed.ResourceAccumulator.prototype.onBody_ = function(text) { if (this.cancelled_) { return; // We've been cancelled so ignore the callback. } this.har_.entries[this.nextEntryIndex_].response.content.text = text; ++this.nextEntryIndex_; this.getNextEntryBody_();};
this.har_.entries[this.nextEntryIndex_].response.content.text = text;
var content = this.har_.entries[this.nextEntryIndex_].response.content; content.text = text; content.encoding = encoding;
pagespeed.ResourceAccumulator.prototype.onBody_ = function(text) { if (this.cancelled_) { return; // We've been cancelled so ignore the callback. } this.har_.entries[this.nextEntryIndex_].response.content.text = text; ++this.nextEntryIndex_; this.getNextEntryBody_();};
if (elem.inputField != dactyl.focus) {
if (elem.inputField != dactyl.focusedElement) {
onChange: function (elem) { if (elem.inputField != dactyl.focus) { try { elem.selectionStart = elem.value.length; elem.selectionEnd = elem.value.length; } catch (e) {} } if (!elem.collapsed) elem.focus(); },
elem.focus();
dactyl.focus(elem);
onChange: function (elem) { if (elem.inputField != dactyl.focus) { try { elem.selectionStart = elem.value.length; elem.selectionEnd = elem.value.length; } catch (e) {} } if (!elem.collapsed) elem.focus(); },