rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
matches = array.nth(tabs.allTabs, function (t) t.linkedBrowser.lastURI.spec === buffer, 0);
matches = array.nth(tabs.allTabs, function (t) (t.linkedBrowser.lastURI || {}).spec === buffer, 0);
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") return tabs.selectAlternateTab(); count = Math.max(1, count || 1); reverse = Boolean(reverse); let matches = buffer.match(/^(\d+):?/); if (matches) return tabs.select(this.allTabs[parseInt(matches[1], 10) - 1], false); matches = array.nth(tabs.allTabs, function (t) t.linkedBrowser.lastURI.spec === buffer, 0); if (matches) return tabs.select(matches, false); matches = completion.runCompleter("buffer", buffer); if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { let index = (count - 1) % matches.length; if (reverse) index = matches.length - count; tabs.select(matches[index].id, false); } },
command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path;
command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path;
system: function (command, input) { dactyl.echomsg("Calling shell to execute: " + command, 4); function escape(str) '"' + str.replace(/[\\"$]/g, "\\$&") + '"'; return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("WINNT")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(options["shell"], options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this._cwd.path) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(options["shell"]), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; // if there is only one \n at the end, chop it off else if (output && output.indexOf("\n") == output.length - 1) output = output.substr(0, output.length - 1); return output; }) || ""; },
cmd.write("cd " + escape(this._cwd.path) + "\n" +
cmd.write("cd " + escape(this.cwd) + "\n" +
system: function (command, input) { dactyl.echomsg("Calling shell to execute: " + command, 4); function escape(str) '"' + str.replace(/[\\"$]/g, "\\$&") + '"'; return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("WINNT")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(options["shell"], options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this._cwd.path) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(options["shell"]), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; // if there is only one \n at the end, chop it off else if (output && output.indexOf("\n") == output.length - 1) output = output.substr(0, output.length - 1); return output; }) || ""; },
if (dactyl.has("Win32")) {
if (dactyl.has("WINNT")) {
system: function (command, input) { dactyl.echomsg("Calling shell to execute: " + command, 4); function escape(str) '"' + str.replace(/[\\"$]/g, "\\$&") + '"'; return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("Win32")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(options["shell"], options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this._cwd.path) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(options["shell"]), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; // if there is only one \n at the end, chop it off else if (output && output.indexOf("\n") == output.length - 1) output = output.substr(0, output.length - 1); return output; }) || ""; },
this.refreshInstance = function(){ instancePanel.refresh(); } this.refreshImage = function(){ imagePanel.refresh();
this.refreshPanel = function(panel){ eval(panel).refresh();
WakameGUI.SystemAdminCard = function(){ var instancePanel = new WakameGUI.Instance(); var imagePanel = new WakameGUI.Image(); var clusterPanel = new WakameGUI.Cluster(); var servicePanel = new WakameGUI.Service(); imagePanel.setInstancePanel(instancePanel); this.setUpPanel = function(obj){ imagePanel.setUpPanel(obj) } this.refreshInstance = function(){ instancePanel.refresh(); } this.refreshImage = function(){ imagePanel.refresh(); } WakameGUI.SystemAdminCard.superclass.constructor.call(this, { region: 'center', layout:'card', activeItem: 0, defaults: { border:false }, items: [instancePanel,imagePanel,clusterPanel,servicePanel] });}
function ChangePanel(no) {
var changePanel = function(no){
WakameGUI.SystemAdminDownPanel = function(cardPanel){ function ChangePanel(no) { if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ ChangePanel(0); } else if(node.id == 'menu02'){ ChangePanel(1); } else if(node.id == 'menu03'){ ChangePanel(2); } else if(node.id == 'menu04'){ ChangePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
ChangePanel(0);
changePanel(0);
WakameGUI.SystemAdminDownPanel = function(cardPanel){ function ChangePanel(no) { if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ ChangePanel(0); } else if(node.id == 'menu02'){ ChangePanel(1); } else if(node.id == 'menu03'){ ChangePanel(2); } else if(node.id == 'menu04'){ ChangePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
ChangePanel(1);
changePanel(1);
WakameGUI.SystemAdminDownPanel = function(cardPanel){ function ChangePanel(no) { if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ ChangePanel(0); } else if(node.id == 'menu02'){ ChangePanel(1); } else if(node.id == 'menu03'){ ChangePanel(2); } else if(node.id == 'menu04'){ ChangePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
ChangePanel(2);
changePanel(2);
WakameGUI.SystemAdminDownPanel = function(cardPanel){ function ChangePanel(no) { if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ ChangePanel(0); } else if(node.id == 'menu02'){ ChangePanel(1); } else if(node.id == 'menu03'){ ChangePanel(2); } else if(node.id == 'menu04'){ ChangePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
ChangePanel(3);
changePanel(3);
WakameGUI.SystemAdminDownPanel = function(cardPanel){ function ChangePanel(no) { if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ ChangePanel(0); } else if(node.id == 'menu02'){ ChangePanel(1); } else if(node.id == 'menu03'){ ChangePanel(2); } else if(node.id == 'menu04'){ ChangePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
if(WakameGUI.activePanel == 0){ cardPanel.refreshInstance(); } else if(WakameGUI.activePanel == 1){ cardPanel.refreshImage();
switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: break; case 3: break;
WakameGUI.SystemAdminDownPanel = function(cardPanel){ function ChangePanel(no) { if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); if(WakameGUI.activePanel == 0){ cardPanel.refreshInstance(); } else if(WakameGUI.activePanel == 1){ cardPanel.refreshImage(); } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ ChangePanel(0); } else if(node.id == 'menu02'){ ChangePanel(1); } else if(node.id == 'menu03'){ ChangePanel(2); } else if(node.id == 'menu04'){ ChangePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
var changePanel = function(no){ if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: break; case 3: break; } } }
WakameGUI.SystemAdminDownPanel = function(cardPanel){ var changePanel = function(no){ if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ changePanel(0); } else if(node.id == 'menu02'){ changePanel(1); } else if(node.id == 'menu03'){ changePanel(2); } else if(node.id == 'menu04'){ changePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
changePanel(0);
WakameGUI.changePanel(cardPanel,'instancePanel',0);
WakameGUI.SystemAdminDownPanel = function(cardPanel){ var changePanel = function(no){ if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ changePanel(0); } else if(node.id == 'menu02'){ changePanel(1); } else if(node.id == 'menu03'){ changePanel(2); } else if(node.id == 'menu04'){ changePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
changePanel(1);
WakameGUI.changePanel(cardPanel,'imagePanel',1);
WakameGUI.SystemAdminDownPanel = function(cardPanel){ var changePanel = function(no){ if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ changePanel(0); } else if(node.id == 'menu02'){ changePanel(1); } else if(node.id == 'menu03'){ changePanel(2); } else if(node.id == 'menu04'){ changePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
changePanel(2);
WakameGUI.changePanel(cardPanel,'clusterPanel',2);
WakameGUI.SystemAdminDownPanel = function(cardPanel){ var changePanel = function(no){ if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ changePanel(0); } else if(node.id == 'menu02'){ changePanel(1); } else if(node.id == 'menu03'){ changePanel(2); } else if(node.id == 'menu04'){ changePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
changePanel(3);
WakameGUI.changePanel(cardPanel,'servicePanel',3);
WakameGUI.SystemAdminDownPanel = function(cardPanel){ var changePanel = function(no){ if(WakameGUI.activePanel != no){ WakameGUI.activePanel = no; cardPanel.layout.setActiveItem(WakameGUI.activePanel); switch(no) { case 0: cardPanel.refreshPanel('instancePanel'); break; case 1: cardPanel.refreshPanel('imagePanel'); break; case 2: //cardPanel.refreshPanel('clusterPanel'); break; case 3: //cardPanel.refreshPanel('servicePanel'); break; } } } WakameGUI.SystemAdminDownPanel.superclass.constructor.call(this,{ region: "center", split: true, header: false, border: false, useArrows:true, enableDD:false, width: 150, listeners: { 'click': function(node){ if(node.id == 'menu01'){ changePanel(0); } else if(node.id == 'menu02'){ changePanel(1); } else if(node.id == 'menu03'){ changePanel(2); } else if(node.id == 'menu04'){ changePanel(3); } } }, rootVisible: false, root:{ text: '', draggable: false, id: 'root', expanded: true, children: [ { id: 'child1', text: 'Infrastructure', expanded: true, children: [ { id: 'menu01', text: 'Instance', leaf: true }, { id: 'menu02', text: 'Image', leaf: true } ] }, { id: 'child2', text: 'PlatHome', expanded: true, children: [ { id: 'menu03', text: 'Cluster', leaf: true }, { id: 'menu04', text: 'Service', leaf: true } ] } ] } });}
}).bind('keyup',function (e) {
}).bind('keypress',function (e) {
$.fn.tabby = function(options) { //debug(this); // build main options before element iteration var opts = $.extend({}, $.fn.tabby.defaults, options); var pressed = $.fn.tabby.pressed; // iterate and reformat each matched element return this.each(function() { $this = $(this); // build element specific options var options = $.meta ? $.extend({}, opts, $this.data()) : opts; $this.bind('keydown',function (e) { var kc = $.fn.tabby.catch_kc(e); if (16 == kc) pressed.shft = true; /* because both CTRL+TAB and ALT+TAB default to an event (changing tab/window) that will prevent js from capturing the keyup event, we'll set a timer on releasing them. */ if (17 == kc) {pressed.ctrl = true; setTimeout("$.fn.tabby.pressed.ctrl = false;",1000);} if (18 == kc) {pressed.alt = true; setTimeout("$.fn.tabby.pressed.alt = false;",1000);} if (9 == kc && !pressed.ctrl && !pressed.alt) { e.preventDefault; // does not work in O9.63 ?? pressed.last = kc; setTimeout("$.fn.tabby.pressed.last = null;",0); process_keypress ($(e.target).get(0), pressed.shft, options); return false; } }).bind('keyup',function (e) { if (16 == $.fn.tabby.catch_kc(e)) pressed.shft = false; }).bind('blur',function (e) { // workaround for Opera -- http://www.webdeveloper.com/forum/showthread.php?p=806588 if (9 == pressed.last) $(e.target).one('focus',function (e) {pressed.last = null;}).get(0).focus(); }); }); };
if(isPopup){ notify(Config['post']['tag_provider']+'\n'+e.message.indent(4)); } else { alert(Config['post']['tag_provider']+'\n'+e.message.indent(4)); }
notify(Config['post']['tag_provider']+'\n'+e.message.indent(4));
var Tags = function(ps, toggle){ this.container = [$('tags'), $('loading_icon'), $('suggestions')]; this.shown = true; toggle && this.toggle(); var self = this; this.candidates = []; this.delay = 130; this.score = 0,8 this.delimiter = ' '; this.autoComplete = false; this.popup = new Popup(this); this.suggestionShown = false; this.suggestionIcon = $('loading_icon'); this.suggestionShownDefault = background.TBRL.Popup.suggestionShownDefault; this.elmTags = {}; var ignoreTags = toggle; var tags = this.tags = $('tags'); // unload if(ps.tags && ps.tags.length){ ps.tags.forEach(function(tag){ this.injectCandidates(tag, true, false); }, this); } if(Config['post']['tag_auto_complete']){ if(background.TBRL.Popup.candidates){ this.candidates = background.TBRL.Popup.candidates; this.provider = background.TBRL.Popup.provider; self.autoComplete = true; } if(!ignoreTags){ background.Models[Config['post']['tag_provider']] .getSuggestions(ps.itemUrl) .addCallback(function(res){ self.arrangeSuggestions(res); self.setSuggestions(res); self.setTags(res.tags); removeElementClass(self.suggestionIcon, 'loading'); addElementClass(self.suggestionIcon, 'loaded'); connect(self.suggestionIcon, 'onclick', self, 'toggleSuggestions'); if(self.suggestionShownDefault){ self.toggleSuggestions(); } }).addErrback(function(e){ if(isPopup){ notify(Config['post']['tag_provider']+'\n'+e.message.indent(4)); } else { alert(Config['post']['tag_provider']+'\n'+e.message.indent(4)); } var icon = $('loading_icon'); removeElementClass(icon, 'loading'); addElementClass(icon, 'loaded'); }); } else { var icon = $('loading_icon'); icon.parentNode.removeChild(icon); } } else { var icon = $('loading_icon'); icon.parentNode.removeChild(icon); } connect(tags, 'oninput', this, function(ev){ // ずらさないとselectionStartの値が正確でない var self = this; this.refreshCheck(); setTimeout(function(){ self.onInput(ev) }, 0); }); connect(tags, 'onterminate', this, 'refreshCheck'); connect(tags, 'onkeydown', this, function(ev){ var key = ev.key(); if(key.string === "KEY_BACKSPACE" || key.string === "KEY_DELETE") this.deleting = true; if(key.string === "KEY_TAB" && !this.popup.visible) return; if(this.sleeping){ ev.preventDefault(); return; } if(this.delimiter.charCodeAt() === key.code){ this.deleting = false; } switch(key.string){ case "KEY_TAB": case "KEY_ARROW_DOWN": ev.preventDefault(); if(!this.popup.visible) this.complete(); if(this.popup.rowCount === 1){ this.popup.enter(true); } else { this.popup.moveCursor(1); } break; case "KEY_ARROW_UP": ev.preventDefault(); this.popup.moveCursor(-1); break; case "KEY_ENTER": if(this.popup.visible){ this.popup.enter(true); } break; } }); connect(tags, 'onblur', this, function(ev){ // FIXME タイミングしだいで失敗する可能性あり setTimeout(function(){ self.popup.hidePopup(); }, 200); }); connect(tags, 'onclick', this.popup, 'hidePopup');};
let tags = util.Array.uniq(util.Array.flatten([b.tags for ([k, b] in Iterator(this._cache.bookmarks))]));
let tags = util.Array.uniq(util.Array.flatten([b.tags for ([k, b] in Iterator(bookmarks._cache.bookmarks))]));
function tags(context, args) { let filter = context.filter; let have = filter.split(","); args.completeFilter = have.pop(); let prefix = filter.substr(0, filter.length - args.completeFilter.length); let tags = util.Array.uniq(util.Array.flatten([b.tags for ([k, b] in Iterator(this._cache.bookmarks))])); return [[prefix + tag, tag] for ([i, tag] in Iterator(tags)) if (have.indexOf(tag) < 0)]; }
window.scrollBy(0, -window.innerHeight / 2);
window.scrollBy(0, -window.innerHeight * 4 / 5);
takeAction: function(seq) { if (this.seq == "L") { history.back(); } else if (this.seq == "R") { history.forward(); } else if (this.seq == "U") { window.scrollBy(0, -window.innerHeight / 2); } else if (this.seq == "D") { window.scrollBy(0, window.innerHeight / 2); } else if (this.seq == "DR") { window.open('', '_self', ''); window.close(); } else if (this.seq == "UD") { location.reload(true); } else { return false; } return true; }
window.scrollBy(0, window.innerHeight / 2);
window.scrollBy(0, window.innerHeight * 4 / 5);
takeAction: function(seq) { if (this.seq == "L") { history.back(); } else if (this.seq == "R") { history.forward(); } else if (this.seq == "U") { window.scrollBy(0, -window.innerHeight / 2); } else if (this.seq == "D") { window.scrollBy(0, window.innerHeight / 2); } else if (this.seq == "DR") { window.open('', '_self', ''); window.close(); } else if (this.seq == "UD") { location.reload(true); } else { return false; } return true; }
return false;
return true;
takeAction: function(seq) { if (this.seq == "L") { history.back(); } else if (this.seq == "R") { history.forward(); } else if (this.seq == "U") { window.scrollBy(0, -window.innerHeight / 2); } else if (this.seq == "D") { window.scrollBy(0, window.innerHeight / 2); } else if (this.seq == "DR") { window.open('', '_self', ''); window.close(); } else if (this.seq == "UD") { location.reload(true); } return false; }
let toolbar = findToolbar(args[0]);
let toolbar = findToolbar(args[0] || "");
let tbcmd = function (names, desc, action, filter) { commands.add(names, desc, function (args) { let toolbar = findToolbar(args[0]); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, { argcount: "1", completer: function (context) { completion.toolbar(context); if (filter) context.filters.push(filter); }, literal: 0 }); };
teardown: function(){ jQuery.event.remove( this, orig, withinElement ); }
event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy=proxy||function(){return fn.apply(this,arguments);};proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:bindReady,teardown:function(){}}},specialAll:{live:{setup:function(selector,namespaces){jQuery.event.add(this,namespaces[0],liveHandler);},teardown:function(namespaces){if(namespaces.length){var remove=0,name=RegExp("(^|\\.)"+namespaces[0]+"(\\.|$)");jQuery.each((jQuery.data(this,"events").live||{}),function(){if(name.test(this.type)) remove++;});if(remove<1) jQuery.event.remove(this,namespaces[0],liveHandler);}}}}};jQuery.Event=function(src){if(!this.preventDefault)
teardown: function(){ jQuery.event.remove( this, orig, withinElement ); }
$eq('foo'.replace(/f(x)?/, '\\1'), 'oo');
function test_31() { $eq('xaba'.replace('a', 'c'), 'xcba'); $eq('xaba'.replace(/a/, 'c'), 'xcba'); $eq('xaba'.replace(/a/g, 'c'), 'xcbc'); $eq('xaba'.replace(/a/g, function(){return 33;}), 'x33b33'); $eq('xdabda'.replace(/d(a)/g, function(full) {return full + 1;}), 'xda1bda1'); $eq('xdabda'.replace(/d(a)/g, function(full, g1) {return g1;}), 'xaba'); $eq('xdabda'.replace(/d(a)/g, '\\1'), 'xaba'); $eq('xdabda'.replace(/d(a)/g, function(full, g1, pos) {return pos;}), 'x1b4'); $eq('xdabda'.replace(/d(a)/g, function(full, g1, pos, all) {return all;}), 'xxdabdabxdabda');}
a: for(;;) {for(;;) break a;} b: for(i = 0; i< 10 ; i = i + 1) {for(;;) continue b;}
a: for (;;) {for (;;) break a;} b: for (var i = 0; i < 10 ; i = i + 1) {for (;;) continue b;}
function test_9() { a: for(;;) {for(;;) break a;} b: for(i = 0; i< 10 ; i = i + 1) {for(;;) continue b;}}
'-c', '/dev/null' ];
'-c', dev_null ];
exports.test_cat = function() { var args = [ require('flusspferd').executableName, '-e', 'var line, sys = require("system"); while( (line = sys.stdin.readLine()) ) { sys.stdout.write(line); sys.stdout.flush(); }', '-c', '/dev/null' ]; var p = subprocess.popen(args); asserts.ok(p.stdin, "have stdin stream"); asserts.ok(p.stdout, "have stdout stream"); asserts.ok(p.stderr, "have stderr stream"); asserts.ok(p.poll() === null, "poll returns null when process still alive"); const data = 'hello world\nline 2\n'; p.stdin.write(data); p.stdin.flush(); asserts.same(p.stdout.read(data.length), data); p.terminate(); var ret = p.wait(); asserts.ok(ret !== null, "return code is non-null"); asserts.same(p.returncode, ret); asserts.same(p.poll(), ret);};
const data = 'hello world\nline 2\n';
const data = lines('hello world', 'line 2');
exports.test_cat = function() { var args = [ require('flusspferd').executableName, '-e', 'var line, sys = require("system"); while( (line = sys.stdin.readLine()) ) { sys.stdout.write(line); sys.stdout.flush(); }', '-c', '/dev/null' ]; var p = subprocess.popen(args); asserts.ok(p.stdin, "have stdin stream"); asserts.ok(p.stdout, "have stdout stream"); asserts.ok(p.stderr, "have stderr stream"); asserts.ok(p.poll() === null, "poll returns null when process still alive"); const data = 'hello world\nline 2\n'; p.stdin.write(data); p.stdin.flush(); asserts.same(p.stdout.read(data.length), data); p.terminate(); var ret = p.wait(); asserts.ok(ret !== null, "return code is non-null"); asserts.same(p.returncode, ret); asserts.same(p.poll(), ret);};
'-c', '/dev/null'
'-c', dev_null
exports.test_communicate = function() { var args = [ require('flusspferd').executableName, '-e', 'const out = require("system").stdout; out.write("hello world\\n"); out.flush();', '-c', '/dev/null' ]; var p = subprocess.popen(args, "r"); asserts.same(p.stdin, undefined, "stdin is closed"); asserts.same(p.stderr, undefined, "stderr is closed"); asserts.ok(p.stdout !== undefined, "stdout is opened"); var r = p.communicate(); asserts.same(r.returncode, 0, "returncode is 0"); asserts.same(p.poll(), r.returncode, "returncode returned from communicate"); asserts.same(r.returncode, p.returncode, "returncode stored on object"); asserts.same(r.stdout, "hello world\n", "stdout correct"); asserts.same(r.stderr, null, "stderr correct");};
asserts.same(r.stdout, "hello world\n", "stdout correct");
asserts.same(r.stdout, lines("hello world"), "stdout correct");
exports.test_communicate = function() { var args = [ require('flusspferd').executableName, '-e', 'const out = require("system").stdout; out.write("hello world\\n"); out.flush();', '-c', '/dev/null' ]; var p = subprocess.popen(args, "r"); asserts.same(p.stdin, undefined, "stdin is closed"); asserts.same(p.stderr, undefined, "stderr is closed"); asserts.ok(p.stdout !== undefined, "stdout is opened"); var r = p.communicate(); asserts.same(r.returncode, 0, "returncode is 0"); asserts.same(p.poll(), r.returncode, "returncode returned from communicate"); asserts.same(r.returncode, p.returncode, "returncode stored on object"); asserts.same(r.stdout, "hello world\n", "stdout correct"); asserts.same(r.stderr, null, "stderr correct");};
asserts.same(String(doc), '<?xml version="1.0"?>\n<html xmlns="http:
asserts.same(String(doc), '<?xml version="1.0"?>\n<html><body>\n<p>foo <b>baz <i>quxx</i></b><i> flibble</i>\n</p><p>\n</p></body></html>', "XML output as expected");
exports.test_HTML = function() { var doc = xml.HTMLParser.parse("test/fixtures/xml/sample.html"); asserts.instanceOf(doc, xml.Document, "parse returned a Document"); asserts.instanceOf(doc, xml.Node, "Document isa Node"); asserts.same(String(doc), '<?xml version="1.0"?>\n<html xmlns="http://www.w3.org/1999/xhtml"><body>\n<p>foo <b>baz <i>quxx</i></b><i> flibble</i>\n</p><p>\n</p></body></html>', "XML output as expected");}
want = '<?xml version="1.0"?>\n<html xmlns="http:
want = '<?xml version="1.0"?>\n<html><body>\n<p>foo <b>baz <i>quxx</i></b><i> flibble</i>\n</p><p/></body></html>';
exports.test_parseHTMLString = function() { var str = "<html>\n<body>\n<p>foo <b>baz <i>quxx</b> flibble</i>\n<p>", want = '<?xml version="1.0"?>\n<html xmlns="http://www.w3.org/1999/xhtml"><body>\n<p>foo <b>baz <i>quxx</i></b><i> flibble</i>\n</p><p/></body></html>'; var doc = xml.HTMLParser.parseString(str); asserts.same(String(doc), want, "XML output as expected from string literal"); // Couldn't get BinaryStream ctor working in C++ var blob = require('encodings').convertFromString("UTF-8", str) doc = xml.HTMLParser.parse(require('io').BinaryStream(blob)); asserts.same(String(doc), want, "XML output as expected from blob");}
'-c', '/dev/null'
'-c', dev_null
exports.test_retcode = function() { const retval = 12; const args = [ require('flusspferd').executableName, '-e', 'quit(' + retval + ');', '-c', '/dev/null' ]; var p = subprocess.popen({ args : args, stdin : false, stderr : false, stdout : false }); asserts.same(p.stdin, undefined, "stdin is closed"); asserts.same(p.stderr, undefined, "stderr is closed"); asserts.same(p.stdout, undefined, "stdout is closed"); asserts.same(p.wait(), retval, "wait() correct"); asserts.same(p.poll(), retval, "poll() correct"); asserts.same(p.returncode, retval, "returncode correct");};
' -e \'const out = require("system").stdout; out.write("' + data + '"); out.flush()\' -c ' + dev_null;
' -e "const out = require(\'system\').stdout; out.write(\'' + data + '\'); out.flush()" -c ' + dev_null;
exports.test_shell = function() { const data = "hello world"; const cmd = require('flusspferd').executableName + ' -e \'const out = require("system").stdout; out.write("' + data + '"); out.flush()\' -c ' + dev_null; // Had some issues where spawning multiple process and calling communicate //would fail the second time round. for (var i =0; i < 3; i++) { var p = subprocess.popen(cmd); //print("poll:", p.poll() ); var r = p.communicate(); asserts.same(r.returncode, 0, "exit code 0"); asserts.same(r.stdout, data, "stdout ok"); }};
asserts.same(r.stderr, "", "stderr ok");
exports.test_shell = function() { const data = "hello world"; const cmd = require('flusspferd').executableName + ' -e \'const out = require("system").stdout; out.write("' + data + '"); out.flush()\' -c ' + dev_null; // Had some issues where spawning multiple process and calling communicate //would fail the second time round. for (var i =0; i < 3; i++) { var p = subprocess.popen(cmd); //print("poll:", p.poll() ); var r = p.communicate(); asserts.same(r.returncode, 0, "exit code 0"); asserts.same(r.stdout, data, "stdout ok"); }};
' -e \'const out = require("system").stdout; out.write("' + data + '"); out.flush()\' -c /dev/null';
' -e \'const out = require("system").stdout; out.write("' + data + '"); out.flush()\' -c ' + dev_null;
exports.test_shell = function() { const data = "hello world"; const cmd = require('flusspferd').executableName + ' -e \'const out = require("system").stdout; out.write("' + data + '"); out.flush()\' -c /dev/null'; // Had some issues where spawning multiple process and calling communicate //would fail the second time round. for (var i =0; i < 3; i++) { var p = subprocess.popen(cmd); //print("poll:", p.poll() ); var r = p.communicate(); asserts.same(r.returncode, 0, "exit code 0"); asserts.same(r.stdout, data, "stdout ok"); }};
ctx.edit(["s", "h", "u", "a", "n", "g", "z", "i", "e", "\'", "g", "u", "n", "-"]);
ctx.edit("shuangziegun-errouzhongdaigang".split(""));
function testQuery(t) { Logger.info("testQuery:"); var ctx = t.engine.ctx; ctx.edit(["s", "h", "u", "a", "n", "g", "z", "i", "e", "\'", "g", "u", "n", "-"]); ctx.convert(); Logger.log("phrase: "); var a = ctx.phrase; for (var i = 0; i < a.length; ++i) { if (a[i]) { var b = a[i]; for (var j = 0; j < b.length; ++j) { if (b[j]) { var c = b[j]; for (var k = 0; k < c.length; ++k) { Logger.log("[" + i + ", " + j + ") " + c[k].text); } } } } } Logger.log("prediction: "); var d = ctx.prediction; for (var i = 0; i < d.length; ++i) { if (d[i]) { Logger.log(i + ": " + d[i].text); } }}
var a = ctx.phrase;
function testQuery(t) { Logger.info("testQuery:"); var ctx = t.engine.ctx; ctx.edit(["s", "h", "u", "a", "n", "g", "z", "i", "e", "\'", "g", "u", "n", "-"]); ctx.convert(); Logger.log("phrase: "); var a = ctx.phrase; for (var i = 0; i < a.length; ++i) { if (a[i]) { var b = a[i]; for (var j = 0; j < b.length; ++j) { if (b[j]) { var c = b[j]; for (var k = 0; k < c.length; ++k) { Logger.log("[" + i + ", " + j + ") " + c[k].text); } } } } } Logger.log("prediction: "); var d = ctx.prediction; for (var i = 0; i < d.length; ++i) { if (d[i]) { Logger.log(i + ": " + d[i].text); } }}
context.keys.text = function (f) f.path.substr(dir.length);
context.keys.text = function (f) this.path.substr(dir.length);
context.keys.text = function (f) f.path.substr(dir.length);
if (value === undefined) return jQuery.fn.text.apply(this, arguments);
if (value === undefined) { if (this.length < 1) return undefined; return jQuery.Buffer.bufferForElement(this[i]).text(); }
text: function(value) { if (value === undefined) return jQuery.fn.text.apply(this, arguments); // there is a vlaue. We are going to do it like jquery, but different. // in this, we inline "buffers" above var len = this.length, i; for (i = 0; i < len; i++) { var buffer = jQuery.Buffer.bufferForElement(this[i]); buffer.text(value); } return this; },
textarea: function(element, value) { if (Object.isUndefined(value)) return element.value; else element.value = value; },
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])*?\*\
textarea: function(element, value) { if (Object.isUndefined(value)) return element.value; else element.value = value; },
these: function() { var returnValue; for (var i = 0, length = arguments.length; i < length; i++) { var lambda = arguments[i]; try { returnValue = lambda(); break; } catch (e) { } } return returnValue; }
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])*?\*\
these: function() { var returnValue; for (var i = 0, length = arguments.length; i < length; i++) { var lambda = arguments[i]; try { returnValue = lambda(); break; } catch (e) { } } return returnValue; }
a.diag = " Got: " + e.toString() + "\n"
a.diag = " Got: " + e.toString() + "\n" +
throwsOk: function( testcase, expected, message ) { if ( message == undefined ) { message = expected; expected = undefined; } var suite = exports.__currentSuite__; var a = { type: "throwsOk", ok: 0, message: message, defaultMsg: "throws error ok", }; try { testcase(); a.diag = "No error thrown"; suite.do_assert( a ); } catch ( e ) { if ( expected === undefined || expected == e.toString() ) { a.ok = true; suite.do_assert( a ); } else { a.diag = " Got: " + e.toString() + "\n" "Wanted: " + expected; suite.do_assert( a ); } } }
c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Z);Z=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length|| c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Z);Z=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=
logDebug('Condition not met, trying again later');
if ((new Date()).getTime() - start > maxTime) { var msg = 'Error: wait(' + repr(condition) + ') has timed out'; writeln(msg); logDebug(msg); logDebug('Timeout after ' + ((new Date()).getTime() - start) + ' milliseconds'); finishThisRun(); return; }
var timeoutFunc = function () { if (condition === null || condition()) { finishThisRun(); } else { // Condition not met, try again soon... logDebug('Condition not met, trying again later'); setTimeout(timeoutFunc, time); } };
this.Data.noreload = false;
this.timeRange_Change = function(el) { this.Data.timeRange = $(el).val(); this.Data.from = 0; this.Data.till = 0; $('.tablePlus').attr('src', 'media/images/table_plus.png'); //this.Data.or = []; this.setupURL(); };
times: function(iterator, context) { $R(0, this, true).each(iterator, context); return this; },
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])*?\*\
times: function(iterator, context) { $R(0, this, true).each(iterator, context); return this; },
textTitle.appendChild($T(ps.item)); inputTitle.setAttribute('value', ps.item);
textTitle.appendChild($T(ps.item || "")); inputTitle.setAttribute('value', ps.item || "");
var Title = function(ps, toggle){ this.nativeToggle = toggle; this.container = $('title'); toggle && this.container.setAttribute('style', 'display:none !important;'); var textTitle = this.textTitle = $('title_text'); var inputTitle = this.inputTitle = $('title_input'); this.shownInput = false; this.shown = true; textTitle.appendChild($T(ps.item)); inputTitle.setAttribute('value', ps.item); connect(textTitle.parentNode, 'onclick', this, 'showInputTitle'); connect(inputTitle, 'onblur', this, 'hideInputTitle');};
"uVowel","lVowel","anusvara","uVowel","lVowel","aVowel","lDot","asat","lDot","visarga","lDot");
"uVowel","lDot","lVowel","anusvara","uVowel","lVowel","aVowel","lDot","asat","lDot","visarga","lDot");
function TlsMyanmarConverter(data){ if (typeof TlsDebug != "undefined") { this.debug = new TlsDebug(); } else { this.debug = new Object(); this.debug.print = function(text) {}; } this.data = data; this.sourceEncoding = this.data.fonts[0]; // null is used as a place holder for the ((lig)|((cons)|(numbers)(stack)?)) groups this.unicodeSequence = new Array("kinzi",null,"lig",null,"cons","stack","asat","yapin","yayit", "wasway","hatoh","eVowel","uVowel","lVowel","anusvara","aVowel","lDot","asat","lDot","visarga"); this.legacySequence = new Array("eVowel","yayit",null,"lig",null,"cons","stack","kinzi", "uVowel","anusvara","asat","stack","yapin","wasway","hatoh","wasway","yapin","kinzi", "uVowel","lVowel","anusvara","uVowel","lVowel","aVowel","lDot","asat","lDot","visarga","lDot"); this.unicodePattern = this.buildRegExp(this.unicodeSequence, true); this.legacyPattern = this.buildRegExp(this.legacySequence, false); this.fontFamily = ""; for (var i = 0; i < this.data.fonts.length; i++) { if (i > 0) this.fontFamily += ","; this.fontFamily += "'" + this.data.fonts[i] + "'"; tlsMyanmarConverters[this.data.fonts[i].toLowerCase()] = this; } return this;}
"uVowel","lDot","lVowel","anusvara","uVowel","lVowel","aVowel","stack","lDot","asat","lDot","visarga","lDot");
"uVowel","lDot","lVowel","anusvara","uVowel","lVowel","aVowel","stack", "lDot","visarga","asat","lDot","visarga","lDot");
function TlsMyanmarConverter(data){ if (typeof TlsDebug != "undefined") { this.debug = new TlsDebug(); } else { this.debug = new Object(); this.debug.print = function(text) {}; } this.data = data; this.useZwsp = false; this.sourceEncoding = this.data.fonts[0]; // null is used as a place holder for the ((lig)|((cons)|(numbers)(stack)?)) groups this.unicodeSequence = new Array("kinzi",null,"lig",null,"cons","stack","asat","yapin","yayit", "wasway","hatoh","eVowel","uVowel","lVowel","anusvara","aVowel","lDot","asat","lDot","visarga"); this.legacySequence = new Array("eVowel","yayit",null,"lig",null,"cons","stack","kinzi", "uVowel","anusvara","asat","stack","yapin","wasway","hatoh","wasway","yapin","kinzi", "uVowel","lDot","lVowel","anusvara","uVowel","lVowel","aVowel","stack","lDot","asat","lDot","visarga","lDot"); this.unicodePattern = this.buildRegExp(this.unicodeSequence, true); this.legacyPattern = this.buildRegExp(this.legacySequence, false); this.fontFamily = ""; for (var i = 0; i < this.data.fonts.length; i++) { if (i > 0) this.fontFamily += ","; this.fontFamily += "'" + this.data.fonts[i] + "'"; tlsMyanmarConverters[this.data.fonts[i].toLowerCase()] = this; } return this;}
this.kinzi = "((င|ရ|ၚ)်\u1039)?";
this.kinzi = "((င|ရ|ၚ)်္)?";
function TlsMyanmarUtn11(){ this.kinzi = "((င|ရ|ၚ)်\u1039)?";//1 this.cons = "(က|ခ|ဂ|ဃ|င|စ|ဆ|ဇ|ဈ|ဉ|ည|ဋ|ဌ|ဍ|ဎ|ဏ|တ|ထ|ဒ|ဓ|န|ပ|ဖ|ဗ|ဘ|မ|ယ|ရ|လ|ဝ|သ|ဟ|ဠ|အ|ဣ|ဤ|ဥ|ဦ|ဧ|ဩ|ဪ|ဿ|၀|၁|၂|၃|၄|၅|၆|၇|၈|၉|၌|၍|၎|၏|ၐ|ၑ|ၒ|ၓ|ၔ|ၕ|ၚ|ၛ|ၜ|ၝ|ၡ|ၥ|ၦ|ၮ|ၯ|ၰ|ၵ|ၶ|ၷ|ၸ|ၹ|ၺ|ၻ|ၼ|ၽ|ၾ|ၿ|ႀ|ႁ|ႎ|႐|႑|႒|႓|႔|႕|႖|႗|႘|႙|႟|ꩠ|ꩡ|ꩢ|ꩣ|ꩤ|ꩥ|ꩦ|ꩧ|ꩨ|ꩩ|ꩪ|ꩫ|ꩬ|ꩭ|ꩮ|ꩯ|ꩱ|ꩲ|ꩳ|ꩴ|ꩵ|ꩶ|꩷|꩸|꩹|ꩺ)";//3 this.stack = "(\u1039(က|ခ|ဂ|ဃ|င|စ|ဆ|ဇ|ဈ|ဉ|ည|ဋ|ဌ|ဍ|ဎ|ဏ|တ|ထ|ဒ|ဓ|န|ပ|ဖ|ဗ|ဘ|မ|ယ|ရ|လ|ဝ|သ|ဟ|ဠ|အ|ၚ|ၛ|ၜ|ၝ)){0,2}";//4 this.asat = "(\u103A)?";//6,11,22 this.medialY = "(ျ|ၞ|ၟ)?";//7 this.medialR = "(ြ)?";//8 this.medialW = "(ွ|ႂ)?";//9 this.medialH = "(ှ|ၠ)?";//10 // asat 11 this.eVowel = "(\u1031\u1031|\u1084\u1031|\u1031|\u1084)?";//12 this.uVowel = "(ိ|ီ|ဲ|ဳ|ဴ|ဵ|ံ|ၱ|ၲ|ၳ|ၴ|ႅ|ႝ)?";//13 this.lVowel = "(ု|ူ)?";//14 this.karenVowel = "(ၢ|့)?";//15 this.shanVowel = "(ႆ)?";//16 this.aVowel = "(ါ|ာ|ၢ|ၣ|ၧ|ၨ|ႃ)?";//17 this.anusvara = "(ဲ|ံ)?";//18 this.pwoTone = "(ၤ|ၩ|ၪ|ၫ|ၬ|ၭ)?";//19 this.lowerDot = "(့)?";//20 this.monH = "(ှ)?";//21 // asat 22 this.visarga = "(း|ႇ|ႈ|ႉ|ႊ|ႋ|ႌ|ႍ|ႏ|ႚ|ႛ|ႜ)?";//23 this.redup = "(ႝꩰ)?";//24 this.section = "(၊|။)?";//25 this.pattern = new RegExp(this.kinzi + this.cons + this.stack + this.asat +this.medialY + this.medialR + this.medialW + this.medialH + this.asat + this.eVowel + this.uVowel + this.lVowel + this.karenVowel + this.shanVowel + this.aVowel + this.anusvara + this.pwoTone + this.lowerDot + this.monH + this.asat + this.visarga + this.redup + this.section, "g"); return this;}
this.stack = "(\u1039(က|ခ|ဂ|ဃ|င|စ|ဆ|ဇ|ဈ|ဉ|ည|ဋ|ဌ|ဍ|ဎ|ဏ|တ|ထ|ဒ|ဓ|န|ပ|ဖ|ဗ|ဘ|မ|ယ|ရ|လ|ဝ|သ|ဟ|ဠ|အ|ၚ|ၛ|ၜ|ၝ)){0,2}"; this.asat = "(\u103A)?";
this.stack = "(္(က|ခ|ဂ|ဃ|င|စ|ဆ|ဇ|ဈ|ဉ|ည|ဋ|ဌ|ဍ|ဎ|ဏ|တ|ထ|ဒ|ဓ|န|ပ|ဖ|ဗ|ဘ|မ|ယ|ရ|လ|ဝ|သ|ဟ|ဠ|အ|ၚ|ၛ|ၜ|ၝ)){0,2}"; this.asat = "(်)?";
function TlsMyanmarUtn11(){ this.kinzi = "((င|ရ|ၚ)်\u1039)?";//1 this.cons = "(က|ခ|ဂ|ဃ|င|စ|ဆ|ဇ|ဈ|ဉ|ည|ဋ|ဌ|ဍ|ဎ|ဏ|တ|ထ|ဒ|ဓ|န|ပ|ဖ|ဗ|ဘ|မ|ယ|ရ|လ|ဝ|သ|ဟ|ဠ|အ|ဣ|ဤ|ဥ|ဦ|ဧ|ဩ|ဪ|ဿ|၀|၁|၂|၃|၄|၅|၆|၇|၈|၉|၌|၍|၎|၏|ၐ|ၑ|ၒ|ၓ|ၔ|ၕ|ၚ|ၛ|ၜ|ၝ|ၡ|ၥ|ၦ|ၮ|ၯ|ၰ|ၵ|ၶ|ၷ|ၸ|ၹ|ၺ|ၻ|ၼ|ၽ|ၾ|ၿ|ႀ|ႁ|ႎ|႐|႑|႒|႓|႔|႕|႖|႗|႘|႙|႟|ꩠ|ꩡ|ꩢ|ꩣ|ꩤ|ꩥ|ꩦ|ꩧ|ꩨ|ꩩ|ꩪ|ꩫ|ꩬ|ꩭ|ꩮ|ꩯ|ꩱ|ꩲ|ꩳ|ꩴ|ꩵ|ꩶ|꩷|꩸|꩹|ꩺ)";//3 this.stack = "(\u1039(က|ခ|ဂ|ဃ|င|စ|ဆ|ဇ|ဈ|ဉ|ည|ဋ|ဌ|ဍ|ဎ|ဏ|တ|ထ|ဒ|ဓ|န|ပ|ဖ|ဗ|ဘ|မ|ယ|ရ|လ|ဝ|သ|ဟ|ဠ|အ|ၚ|ၛ|ၜ|ၝ)){0,2}";//4 this.asat = "(\u103A)?";//6,11,22 this.medialY = "(ျ|ၞ|ၟ)?";//7 this.medialR = "(ြ)?";//8 this.medialW = "(ွ|ႂ)?";//9 this.medialH = "(ှ|ၠ)?";//10 // asat 11 this.eVowel = "(\u1031\u1031|\u1084\u1031|\u1031|\u1084)?";//12 this.uVowel = "(ိ|ီ|ဲ|ဳ|ဴ|ဵ|ံ|ၱ|ၲ|ၳ|ၴ|ႅ|ႝ)?";//13 this.lVowel = "(ု|ူ)?";//14 this.karenVowel = "(ၢ|့)?";//15 this.shanVowel = "(ႆ)?";//16 this.aVowel = "(ါ|ာ|ၢ|ၣ|ၧ|ၨ|ႃ)?";//17 this.anusvara = "(ဲ|ံ)?";//18 this.pwoTone = "(ၤ|ၩ|ၪ|ၫ|ၬ|ၭ)?";//19 this.lowerDot = "(့)?";//20 this.monH = "(ှ)?";//21 // asat 22 this.visarga = "(း|ႇ|ႈ|ႉ|ႊ|ႋ|ႌ|ႍ|ႏ|ႚ|ႛ|ႜ)?";//23 this.redup = "(ႝꩰ)?";//24 this.section = "(၊|။)?";//25 this.pattern = new RegExp(this.kinzi + this.cons + this.stack + this.asat +this.medialY + this.medialR + this.medialW + this.medialH + this.asat + this.eVowel + this.uVowel + this.lVowel + this.karenVowel + this.shanVowel + this.aVowel + this.anusvara + this.pwoTone + this.lowerDot + this.monH + this.asat + this.visarga + this.redup + this.section, "g"); return this;}
this.eVowel = "(\u1031\u1031|\u1084\u1031|\u1031|\u1084)?";
this.eVowel = "(ေေ|ႄေ|ေ|ႄ)?";
function TlsMyanmarUtn11(){ this.kinzi = "((င|ရ|ၚ)်\u1039)?";//1 this.cons = "(က|ခ|ဂ|ဃ|င|စ|ဆ|ဇ|ဈ|ဉ|ည|ဋ|ဌ|ဍ|ဎ|ဏ|တ|ထ|ဒ|ဓ|န|ပ|ဖ|ဗ|ဘ|မ|ယ|ရ|လ|ဝ|သ|ဟ|ဠ|အ|ဣ|ဤ|ဥ|ဦ|ဧ|ဩ|ဪ|ဿ|၀|၁|၂|၃|၄|၅|၆|၇|၈|၉|၌|၍|၎|၏|ၐ|ၑ|ၒ|ၓ|ၔ|ၕ|ၚ|ၛ|ၜ|ၝ|ၡ|ၥ|ၦ|ၮ|ၯ|ၰ|ၵ|ၶ|ၷ|ၸ|ၹ|ၺ|ၻ|ၼ|ၽ|ၾ|ၿ|ႀ|ႁ|ႎ|႐|႑|႒|႓|႔|႕|႖|႗|႘|႙|႟|ꩠ|ꩡ|ꩢ|ꩣ|ꩤ|ꩥ|ꩦ|ꩧ|ꩨ|ꩩ|ꩪ|ꩫ|ꩬ|ꩭ|ꩮ|ꩯ|ꩱ|ꩲ|ꩳ|ꩴ|ꩵ|ꩶ|꩷|꩸|꩹|ꩺ)";//3 this.stack = "(\u1039(က|ခ|ဂ|ဃ|င|စ|ဆ|ဇ|ဈ|ဉ|ည|ဋ|ဌ|ဍ|ဎ|ဏ|တ|ထ|ဒ|ဓ|န|ပ|ဖ|ဗ|ဘ|မ|ယ|ရ|လ|ဝ|သ|ဟ|ဠ|အ|ၚ|ၛ|ၜ|ၝ)){0,2}";//4 this.asat = "(\u103A)?";//6,11,22 this.medialY = "(ျ|ၞ|ၟ)?";//7 this.medialR = "(ြ)?";//8 this.medialW = "(ွ|ႂ)?";//9 this.medialH = "(ှ|ၠ)?";//10 // asat 11 this.eVowel = "(\u1031\u1031|\u1084\u1031|\u1031|\u1084)?";//12 this.uVowel = "(ိ|ီ|ဲ|ဳ|ဴ|ဵ|ံ|ၱ|ၲ|ၳ|ၴ|ႅ|ႝ)?";//13 this.lVowel = "(ု|ူ)?";//14 this.karenVowel = "(ၢ|့)?";//15 this.shanVowel = "(ႆ)?";//16 this.aVowel = "(ါ|ာ|ၢ|ၣ|ၧ|ၨ|ႃ)?";//17 this.anusvara = "(ဲ|ံ)?";//18 this.pwoTone = "(ၤ|ၩ|ၪ|ၫ|ၬ|ၭ)?";//19 this.lowerDot = "(့)?";//20 this.monH = "(ှ)?";//21 // asat 22 this.visarga = "(း|ႇ|ႈ|ႉ|ႊ|ႋ|ႌ|ႍ|ႏ|ႚ|ႛ|ႜ)?";//23 this.redup = "(ႝꩰ)?";//24 this.section = "(၊|။)?";//25 this.pattern = new RegExp(this.kinzi + this.cons + this.stack + this.asat +this.medialY + this.medialR + this.medialW + this.medialH + this.asat + this.eVowel + this.uVowel + this.lVowel + this.karenVowel + this.shanVowel + this.aVowel + this.anusvara + this.pwoTone + this.lowerDot + this.monH + this.asat + this.visarga + this.redup + this.section, "g"); return this;}
return value.toCoreSeto();
if(value) return value.toCoreSet(); else return SC.CoreSet.create();
to: function(value, attr, type, record, key) { return value.toCoreSeto(); },
if(value) return value.toSet(); else return SC.Set.create();
return SC.Set.create(value);
to: function(value, attr, type, record, key) { if(value) return value.toSet(); else return SC.Set.create(); },
toArray: function() { return this.map(); },
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])*?\*\
toArray: function() { return this.map(); },
na[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a!=null)return this.animate(L("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&& c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(L("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var i=c.extend({},e),j,o=this.nodeType===1&&c(this).is(":hidden"),
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
na[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a!=null)return this.animate(L("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(L("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var i=c.extend({},e),j,o=this.nodeType===1&&c(this).is(":hidden"),
toggle: function(element) { element = $(element); Element[Element.visible(element) ? 'hide' : 'show'](element); return element; },
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])*?\*\
toggle: function(element) { element = $(element); Element[Element.visible(element) ? 'hide' : 'show'](element); return element; },
var className = mapClasses(target.name);
var className = mapClasses(target.id);
var toggle = function (event) { var target = Event.getTarget(event); var display = target.checked ? 'block' : 'none'; var className = mapClasses(target.name); var state = target.checked; var checkbox; switch (target.id) { case 'SET[failure]': checkbox = 'failure'; break; case 'SET[error]': checkbox = 'error'; break; case 'SET[success]': checkbox = 'success'; break; case 'SET[skipped]': checkbox = 'skipped'; break; case 'SET[notimplemented]': checkbox = 'notimplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': checkbox = 'showMemoryAndTime'; break; default: // Nothing here. break; } YAHOO.util.Connect.asyncRequest('POST', 'ajax.php', { success: function (responseObj) { /* console.log('Success', responseObj); */ }, failure: function (responseObj) { /* console.log('Failure', responseObj); */} }, 'ajaxID=tx_phpunit_module1_ajax&state='+state+'&checkbox='+checkbox ); Dom.setStyle(Dom.getElementsByClassName(className), 'display', display); }
case 'SET[failure]':
case 'SET_failure':
var toggle = function (event) { var target = Event.getTarget(event); var display = target.checked ? 'block' : 'none'; var className = mapClasses(target.name); var state = target.checked; var checkbox; switch (target.id) { case 'SET[failure]': checkbox = 'failure'; break; case 'SET[error]': checkbox = 'error'; break; case 'SET[success]': checkbox = 'success'; break; case 'SET[skipped]': checkbox = 'skipped'; break; case 'SET[notimplemented]': checkbox = 'notimplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': checkbox = 'showMemoryAndTime'; break; default: // Nothing here. break; } YAHOO.util.Connect.asyncRequest('POST', 'ajax.php', { success: function (responseObj) { /* console.log('Success', responseObj); */ }, failure: function (responseObj) { /* console.log('Failure', responseObj); */} }, 'ajaxID=tx_phpunit_module1_ajax&state='+state+'&checkbox='+checkbox ); Dom.setStyle(Dom.getElementsByClassName(className), 'display', display); }
case 'SET[error]':
case 'SET_error':
var toggle = function (event) { var target = Event.getTarget(event); var display = target.checked ? 'block' : 'none'; var className = mapClasses(target.name); var state = target.checked; var checkbox; switch (target.id) { case 'SET[failure]': checkbox = 'failure'; break; case 'SET[error]': checkbox = 'error'; break; case 'SET[success]': checkbox = 'success'; break; case 'SET[skipped]': checkbox = 'skipped'; break; case 'SET[notimplemented]': checkbox = 'notimplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': checkbox = 'showMemoryAndTime'; break; default: // Nothing here. break; } YAHOO.util.Connect.asyncRequest('POST', 'ajax.php', { success: function (responseObj) { /* console.log('Success', responseObj); */ }, failure: function (responseObj) { /* console.log('Failure', responseObj); */} }, 'ajaxID=tx_phpunit_module1_ajax&state='+state+'&checkbox='+checkbox ); Dom.setStyle(Dom.getElementsByClassName(className), 'display', display); }
case 'SET[success]':
case 'SET_success':
var toggle = function (event) { var target = Event.getTarget(event); var display = target.checked ? 'block' : 'none'; var className = mapClasses(target.name); var state = target.checked; var checkbox; switch (target.id) { case 'SET[failure]': checkbox = 'failure'; break; case 'SET[error]': checkbox = 'error'; break; case 'SET[success]': checkbox = 'success'; break; case 'SET[skipped]': checkbox = 'skipped'; break; case 'SET[notimplemented]': checkbox = 'notimplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': checkbox = 'showMemoryAndTime'; break; default: // Nothing here. break; } YAHOO.util.Connect.asyncRequest('POST', 'ajax.php', { success: function (responseObj) { /* console.log('Success', responseObj); */ }, failure: function (responseObj) { /* console.log('Failure', responseObj); */} }, 'ajaxID=tx_phpunit_module1_ajax&state='+state+'&checkbox='+checkbox ); Dom.setStyle(Dom.getElementsByClassName(className), 'display', display); }
case 'SET[skipped]':
case 'SET_skipped':
var toggle = function (event) { var target = Event.getTarget(event); var display = target.checked ? 'block' : 'none'; var className = mapClasses(target.name); var state = target.checked; var checkbox; switch (target.id) { case 'SET[failure]': checkbox = 'failure'; break; case 'SET[error]': checkbox = 'error'; break; case 'SET[success]': checkbox = 'success'; break; case 'SET[skipped]': checkbox = 'skipped'; break; case 'SET[notimplemented]': checkbox = 'notimplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': checkbox = 'showMemoryAndTime'; break; default: // Nothing here. break; } YAHOO.util.Connect.asyncRequest('POST', 'ajax.php', { success: function (responseObj) { /* console.log('Success', responseObj); */ }, failure: function (responseObj) { /* console.log('Failure', responseObj); */} }, 'ajaxID=tx_phpunit_module1_ajax&state='+state+'&checkbox='+checkbox ); Dom.setStyle(Dom.getElementsByClassName(className), 'display', display); }
case 'SET[notimplemented]':
case 'SET_notimplemented':
var toggle = function (event) { var target = Event.getTarget(event); var display = target.checked ? 'block' : 'none'; var className = mapClasses(target.name); var state = target.checked; var checkbox; switch (target.id) { case 'SET[failure]': checkbox = 'failure'; break; case 'SET[error]': checkbox = 'error'; break; case 'SET[success]': checkbox = 'success'; break; case 'SET[skipped]': checkbox = 'skipped'; break; case 'SET[notimplemented]': checkbox = 'notimplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': checkbox = 'showMemoryAndTime'; break; default: // Nothing here. break; } YAHOO.util.Connect.asyncRequest('POST', 'ajax.php', { success: function (responseObj) { /* console.log('Success', responseObj); */ }, failure: function (responseObj) { /* console.log('Failure', responseObj); */} }, 'ajaxID=tx_phpunit_module1_ajax&state='+state+'&checkbox='+checkbox ); Dom.setStyle(Dom.getElementsByClassName(className), 'display', display); }
case 'SET[testdox]':
case 'SET_testdox':
var toggle = function (event) { var target = Event.getTarget(event); var display = target.checked ? 'block' : 'none'; var className = mapClasses(target.name); var state = target.checked; var checkbox; switch (target.id) { case 'SET[failure]': checkbox = 'failure'; break; case 'SET[error]': checkbox = 'error'; break; case 'SET[success]': checkbox = 'success'; break; case 'SET[skipped]': checkbox = 'skipped'; break; case 'SET[notimplemented]': checkbox = 'notimplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': checkbox = 'showMemoryAndTime'; break; default: // Nothing here. break; } YAHOO.util.Connect.asyncRequest('POST', 'ajax.php', { success: function (responseObj) { /* console.log('Success', responseObj); */ }, failure: function (responseObj) { /* console.log('Failure', responseObj); */} }, 'ajaxID=tx_phpunit_module1_ajax&state='+state+'&checkbox='+checkbox ); Dom.setStyle(Dom.getElementsByClassName(className), 'display', display); }
case 'SET[showMemoryAndTime]':
case 'SET_showMemoryAndTime':
var toggle = function (event) { var target = Event.getTarget(event); var display = target.checked ? 'block' : 'none'; var className = mapClasses(target.name); var state = target.checked; var checkbox; switch (target.id) { case 'SET[failure]': checkbox = 'failure'; break; case 'SET[error]': checkbox = 'error'; break; case 'SET[success]': checkbox = 'success'; break; case 'SET[skipped]': checkbox = 'skipped'; break; case 'SET[notimplemented]': checkbox = 'notimplemented'; break; case 'SET[testdox]': checkbox = 'testdox'; break; case 'SET[showMemoryAndTime]': checkbox = 'showMemoryAndTime'; break; default: // Nothing here. break; } YAHOO.util.Connect.asyncRequest('POST', 'ajax.php', { success: function (responseObj) { /* console.log('Success', responseObj); */ }, failure: function (responseObj) { /* console.log('Failure', responseObj); */} }, 'ajaxID=tx_phpunit_module1_ajax&state='+state+'&checkbox='+checkbox ); Dom.setStyle(Dom.getElementsByClassName(className), 'display', display); }
" "+b[j]}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var n=c(this);n.removeClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(fa),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var i=(" "+e.className+" ").replace(za," "),j=0,o=b.length;j<o;j++)i=i.replace(" "+b[j]+" "," ");e.className=i.substring(1,i.length-1)}else e.className=""}return this},toggleClass:function(a, b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var i=c(this);i.toggleClass(a.call(this,e,i.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,i=0,j=c(this),o=b,p=a.split(fa);e=p[i++];){o=f?o:!j.hasClass(e);j[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className= this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
" "+b[j]}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var n=c(this);n.removeClass(a.call(this,p,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(fa),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var i=(" "+e.className+" ").replace(za," "),j=0,o=b.length;j<o;j++)i=i.replace(" "+b[j]+" "," ");e.className=i.substring(1,i.length-1)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var i=c(this);i.toggleClass(a.call(this,e,i.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,i=0,j=c(this),o=b,p=a.split(fa);e=p[i++];){o=f?o:!j.hasClass(e);j[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=
toggleClassName: function(element, className) { if (!(element = $(element))) return; return element[element.hasClassName(className) ? 'removeClassName' : 'addClassName'](className); },
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])*?\*\
toggleClassName: function(element, className) { if (!(element = $(element))) return; return element[element.hasClassName(className) ? 'removeClassName' : 'addClassName'](className); },
Date.prototype.toJSON = function() { return '"' + this.getUTCFullYear() + '-' + (this.getUTCMonth() + 1).toPaddedString(2) + '-' + this.getUTCDate().toPaddedString(2) + 'T' + this.getUTCHours().toPaddedString(2) + ':' + this.getUTCMinutes().toPaddedString(2) + ':' + this.getUTCSeconds().toPaddedString(2) + 'Z"'; };
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])*?\*\
Date.prototype.toJSON = function() { return '"' + this.getUTCFullYear() + '-' + (this.getUTCMonth() + 1).toPaddedString(2) + '-' + this.getUTCDate().toPaddedString(2) + 'T' + this.getUTCHours().toPaddedString(2) + ':' + this.getUTCMinutes().toPaddedString(2) + ':' + this.getUTCSeconds().toPaddedString(2) + 'Z"';};
let toolbox = document.getElementById("navigator-toolbox");
completion.toolbar = function toolbar(context) { context.title = ["Toolbar"]; context.keys = { text: function (item) item.getAttribute("toolbarname"), description: function () "" }; context.completions = util.evaluateXPath("./*[@toolbarname]", document, toolbox); };
top: function(element, node) { element.insertBefore(node, element.firstChild); },
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])*?\*\
top: function(element, node) { element.insertBefore(node, element.firstChild); },
Top: function(element, content) { return Element.insert(element, {top:content}); },
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])*?\*\
Top: function(element, content) { return Element.insert(element, {top:content}); },
toQueryParams: function(separator) { var match = this.strip().match(/([^?#]*)(#.*)?$/); if (!match) return { }; return match[1].split(separator || '&').inject({ }, function(hash, pair) { if ((pair = pair.split('='))[0]) { var key = decodeURIComponent(pair.shift()); var value = pair.length > 1 ? pair.join('=') : pair[0]; if (value != undefined) value = decodeURIComponent(value); if (key in hash) { if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; hash[key].push(value); } else hash[key] = value; } return hash; }); },
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])*?\*\
toQueryParams: function(separator) { var match = this.strip().match(/([^?#]*)(#.*)?$/); if (!match) return { }; return match[1].split(separator || '&').inject({ }, function(hash, pair) { if ((pair = pair.split('='))[0]) { var key = decodeURIComponent(pair.shift()); var value = pair.length > 1 ? pair.join('=') : pair[0]; if (value != undefined) value = decodeURIComponent(value); if (key in hash) { if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; hash[key].push(value); } else hash[key] = value; } return hash; }); },
for(var i = 0, roma, kana, table = this.katakana ; i < s.length ; i += kana.length){
for(var i = 0, roma, kana, table = this.katakana, len = s.length; i < len; i += kana.length){
toSparseRomaReadings: function(s){ var res = []; for(var i = 0, roma, kana, table = this.katakana ; i < s.length ; i += kana.length){ kana = s.substring(i, i+2); roma = table[kana]; if(!roma){ kana = s.substring(i, i+1); roma = table[kana] || kana; } if(kana in this.lengthMap){ roma = '\u0001';// contains flag } res.push(roma); } return res.join('').replace(/ltu(.)/g, '$1$1').split('\u0000'); }
self.func.toString = function () { return "Spy('" + self._name + "').func"; };
doctest.Abort.prototype.toString = function () { return this.message; };
self.func.toString = function () { return "Spy('" + self._name + "').func"; };
return window.opera?Number(window.opera.version())>=9.52:/Apple Computers, Inc/.test(navigator.vendor)&&(e=navigator.userAgent.match(/Version\/(\d+(?:\.\d+)?)\./))?Number(e[1])>=3:document.selection&&window.ActiveXObject&&(e=navigator.userAgent.match(/MSIE (\d+(?:\.\d*)?)\b/))?Number(e[1])>=6:(e=navigator.userAgent.match(/gecko\/(\d{8})/i))?Number(e[1])>=20050901:(e=navigator.userAgent.match(/AppleWebKit\/(\d+)/))?Number(e[1])>=525:null};return o}();function method(i,p){return function(){i[p].apply(i,arguments)}}var StopIteration={toString:function(){return"StopIteration"}};function forEach(i,p){if(i.next)try{for(;;)p(i.next())}catch(k){if(k!=StopIteration)throw k;}else for(var n=0;n<i.length;n++)p(i[n])}function map(i,p){var k=[];forEach(i,function(n){k.push(p(n))});return k}function matcher(i){return function(p){return i.test(p)}}function hasClass(i,p){var k=i.className;return k&&RegExp("(^| )"+p+"($| )").test(k)}
d}else if(d)j=p*d;if(j)b.wrapping.style.height=Math.max(m+j,b.options.minHeight)+"px"}var b=this,c=b.options.cursorActivity,e=b.win,g=e.document.body,d=null,f=null,m=2*b.frame.offsetTop;g.style.overflowY="hidden";e.document.documentElement.style.overflowY="hidden";this.frame.scrolling="no";setTimeout(a,300);b.options.cursorActivity=function(p){c&&c(p);clearTimeout(f);f=setTimeout(a,100)}}};s.InvalidLineHandle={toString:function(){return"CodeMirror.InvalidLineHandle"}};s.replace=function(a){if(typeof a==
return window.opera?Number(window.opera.version())>=9.52:/Apple Computers, Inc/.test(navigator.vendor)&&(e=navigator.userAgent.match(/Version\/(\d+(?:\.\d+)?)\./))?Number(e[1])>=3:document.selection&&window.ActiveXObject&&(e=navigator.userAgent.match(/MSIE (\d+(?:\.\d*)?)\b/))?Number(e[1])>=6:(e=navigator.userAgent.match(/gecko\/(\d{8})/i))?Number(e[1])>=20050901:(e=navigator.userAgent.match(/AppleWebKit\/(\d+)/))?Number(e[1])>=525:null};return o}();function method(i,p){return function(){i[p].apply(i,arguments)}}var StopIteration={toString:function(){return"StopIteration"}};function forEach(i,p){if(i.next)try{for(;;)p(i.next())}catch(k){if(k!=StopIteration)throw k;}else for(var n=0;n<i.length;n++)p(i[n])}function map(i,p){var k=[];forEach(i,function(n){k.push(p(n))});return k}function matcher(i){return function(p){return i.test(p)}}function hasClass(i,p){var k=i.className;return k&&RegExp("(^| )"+p+"($| )").test(k)}
toString: function() { return $A(this).join(' '); }
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])*?\*\
toString: function() { return $A(this).join(' '); }
return "Spy('" + self.name + "').func";
return "Spy('" + self._name + "').func";
self.func.toString = function () { return "Spy('" + self.name + "').func"; };
if(children = transform.observesChildren) {
if(!SC.none(value) && (children = transform.observesChildren)) {
toType: function(record, key, value) { var transform = this.get('transform'), type = this.get('typeClass'), children; if (transform && transform.to) { value = transform.to(value, this, type, record, key) ; // if the transform needs to do something when its children change, we need to set up an observer for it if(children = transform.observesChildren) { var i, len = children.length, // store the record, transform, and key so the observer knows where it was called from context = { record: record, transform: transform, key: key }; for(i = 0; i < len; i++) value.addObserver(children[i], this, this._SCRA_childObserver, context); } } return value ; },
transform: transform,
toType: function(record, key, value) { var transform = this.get('transform'), type = this.get('typeClass'), children; if (transform && transform.to) { value = transform.to(value, this, type, record, key) ; // if the transform needs to do something when its children change, we need to set up an observer for it if(children = transform.observesChildren) { var i, len = children.length, // store the record, transform, and key so the observer knows where it was called from context = { record: record, transform: transform, key: key }; for(i = 0; i < len; i++) value.addObserver(children[i], this, this._SCRA_childObserver, context); } } return value ; },
if (this.touchIsInBoundary(touch)) this._action();
if (this.touchIsInBoundary(touch) && this.get('isEnabled')) { this._action(); }
touchEnd: function(touch){ this._touch_exited = NO; this.set('isActive', NO); // track independently in case isEnabled has changed if (this.get('buttonBehavior') !== SC.HOLD_BEHAVIOR) { if (this.touchIsInBoundary(touch)) this._action(); } touch.preventDefault(); return YES ; },
deltaY = touch.pageY - touch.startY;
deltaY = touch.pageY - touch.startY, absX = Math.abs(deltaX), absY = Math.abs(deltaY);
touchIsInGesture: function(touch, status) { // if we have not "flunked" the touch before, and it has moved if (!status.flunked) { var d = this.get('direction'), cd = this.get('currentDirection'), startDistance = this.get('startDistance'), deltaX = touch.pageX - touch.startX, deltaY = touch.pageY - touch.startY; if (Math.abs(deltaX) > startDistance || Math.abs(deltaY) > startDistance) { if (!cd) { if (d == SC.SWIPE_ANY) { if (deltaX > deltaY) cd = SC.SWIPE_HORIZONTAL; else if (deltaY > deltaX) cd = SC.SWIPE_VERTICAL; else return NO; // We can't determine a direction yet } else { cd = d; } this.set('currentDirection', cd); } var delta = (cd == SC.SWIPE_HORIZONTAL) ? deltaX : deltaY, oDelta = (cd == SC.SWIPE_HORIZONTAL) ? deltaY : deltaX; if (Math.abs(delta) * this.get("tolerance") > Math.abs(oDelta)) { return YES; } } } return NO; },
if (deltaX > deltaY) cd = SC.SWIPE_HORIZONTAL; else if (deltaY > deltaX) cd = SC.SWIPE_VERTICAL;
if (absX > absY) cd = SC.SWIPE_HORIZONTAL; else if (absY > absX) cd = SC.SWIPE_VERTICAL;
touchIsInGesture: function(touch, status) { // if we have not "flunked" the touch before, and it has moved if (!status.flunked) { var d = this.get('direction'), cd = this.get('currentDirection'), startDistance = this.get('startDistance'), deltaX = touch.pageX - touch.startX, deltaY = touch.pageY - touch.startY; if (Math.abs(deltaX) > startDistance || Math.abs(deltaY) > startDistance) { if (!cd) { if (d == SC.SWIPE_ANY) { if (deltaX > deltaY) cd = SC.SWIPE_HORIZONTAL; else if (deltaY > deltaX) cd = SC.SWIPE_VERTICAL; else return NO; // We can't determine a direction yet } else { cd = d; } this.set('currentDirection', cd); } var delta = (cd == SC.SWIPE_HORIZONTAL) ? deltaX : deltaY, oDelta = (cd == SC.SWIPE_HORIZONTAL) ? deltaY : deltaX; if (Math.abs(delta) * this.get("tolerance") > Math.abs(oDelta)) { return YES; } } } return NO; },
if (idx>=0) {
if (idx === this.overflowIndex) { this.showOverflowItems(); } else if (idx>=0) {
touchStart: function(touch) { if (!this.get('isEnabled')) return YES; // nothing to do var idx = this.displayItemIndexForEvent(touch); // if mouse was pressed on a button, then start detecting pressed events if (idx>=0) { this._isTouching = YES ; this.set('activeIndex', idx); } return YES ; },
touchStart: function(ev) {
touchStart: function(touch, evt) {
touchStart: function(ev) { // When the user presses the mouse down, we don't do much just yet. // Instead, we just need to save a bunch of state about the mouse down // so we can choose the right thing to do later. // Toggle selection only triggers on mouse up. Do nothing. if (this.get('useToggleSelection')) return true; // find the actual view the mouse was pressed down on. This will call // hitTest() on item views so they can implement non-square detection // modes. -- once we have an item view, get its content object as well. var itemView = this.itemViewForEvent(ev), content = this.get('content'), contentIndex = itemView ? itemView.get('contentIndex') : -1, info, anchor ; // become first responder if possible. this.becomeFirstResponder() ; this.select(contentIndex, NO); this._cv_performSelectAction(this, ev); return YES; },
var itemView = this.itemViewForEvent(ev),
var itemView = this.itemViewForEvent(touch),
touchStart: function(ev) { // When the user presses the mouse down, we don't do much just yet. // Instead, we just need to save a bunch of state about the mouse down // so we can choose the right thing to do later. // Toggle selection only triggers on mouse up. Do nothing. if (this.get('useToggleSelection')) return true; // find the actual view the mouse was pressed down on. This will call // hitTest() on item views so they can implement non-square detection // modes. -- once we have an item view, get its content object as well. var itemView = this.itemViewForEvent(ev), content = this.get('content'), contentIndex = itemView ? itemView.get('contentIndex') : -1, info, anchor ; // become first responder if possible. this.becomeFirstResponder() ; this.select(contentIndex, NO); this._cv_performSelectAction(this, ev); return YES; },
prefix+= (reqs[i]!="dojo" && reqs[i]!="dijit" && reqs[i].substring(0, 5)!="i18n!") ? "dojo.require(\"" + fileUtil.asyncRequireArgs[i] + "\");" + lineSeparator : "";
if (reqs[i].substring(0, 5)=="i18n!") { bundleMatch= reqs[i].match(/i18n\!(.+)\.nls\.(\w+)/); prefix+= "dojo.requireLocalization(\"" + bundleMatch[1].replace(/\ } else if (reqs[i]!="dojo" && reqs[i]!="dijit") { prefix+= "dojo.require(\"" + fileUtil.asyncRequireArgs[i] + "\");" + lineSeparator; }
fileUtil.transformAsyncModule= function(contents) { var match, lineSeparator = fileUtil.getLineSeparator(); if (contents.substring(0, 8)=="define(\"") { if (contents.substring(8, 13)=="i18n!") { return contents.substring(contents.indexOf("//begin v1.x content")+21, contents.indexOf("//end v1.x content")); } else if ((match= contents.match(/^define\((.+)\,\s+function.+$/m))) { eval("fileUtil.getAsyncArgs(" + match[1] + ")"); var prefix= "dojo.provide(\"" + fileUtil.asyncProvideArg + "\");" + lineSeparator; for (var reqs= fileUtil.asyncRequireArgs, i= 0; i<fileUtil.asyncRequireArgs.length; i++) { prefix+= (reqs[i]!="dojo" && reqs[i]!="dijit" && reqs[i].substring(0, 5)!="i18n!") ? "dojo.require(\"" + fileUtil.asyncRequireArgs[i] + "\");" + lineSeparator : ""; } var matchLength= match[0].length+1; var contentsLength= contents.search(/\s*return\s*[_a-zA-Z\.]+\s*;\s*\}\);\s*$/); if (contentsLength==-1) { //logger.info("warning: no return for: " + fileUtil.asyncProvideArg); contentsLength= contents.search(/\}\);\s*$/); } return prefix + lineSeparator + contents.substring(matchLength, contentsLength); } else { return contents; } } else { return contents; }};
if (contents.substring(0, 13)=="define(\"") { if (contents.substring(13, 18)=="i18n!") {
if (contents.substring(0, 8)=="define(\"") { if (contents.substring(8, 13)=="i18n!") {
fileUtil.transformAsyncModule= function(contents) { var match, lineSeparator = fileUtil.getLineSeparator(); if (contents.substring(0, 13)=="define(\"") { if (contents.substring(13, 18)=="i18n!") { return contents.substring(contents.indexOf("//begin v1.x content")+21, contents.indexOf("//end v1.x content")); } else if ((match= contents.match(/^require\.def\((.+)\,\s+function.+$/m))) { eval("fileUtil.getAsyncArgs(" + match[1] + ")"); var prefix= "dojo.provide(\"" + fileUtil.asyncProvideArg + "\");" + lineSeparator; for (var reqs= fileUtil.asyncRequireArgs, i= 0; i<fileUtil.asyncRequireArgs.length; i++) { prefix+= (reqs[i]!="dojo" && reqs[i]!="dijit" && reqs[i].substring(0, 5)!="i18n!") ? "dojo.require(\"" + fileUtil.asyncRequireArgs[i] + "\");" + lineSeparator : ""; } var matchLength= match[0].length+1; var contentsLength= contents.search(/\s*return\s*[_a-zA-Z\.]+\s*;\s*\}\);\s*$/); return prefix + lineSeparator + contents.substring(matchLength, contentsLength); } else { return contents; } } else { return contents; }};
} else if ((match= contents.match(/^require\.def\((.+)\,\s+function.+$/m))) {
} else if ((match= contents.match(/^define\((.+)\,\s+function.+$/m))) {
fileUtil.transformAsyncModule= function(contents) { var match, lineSeparator = fileUtil.getLineSeparator(); if (contents.substring(0, 13)=="define(\"") { if (contents.substring(13, 18)=="i18n!") { return contents.substring(contents.indexOf("//begin v1.x content")+21, contents.indexOf("//end v1.x content")); } else if ((match= contents.match(/^require\.def\((.+)\,\s+function.+$/m))) { eval("fileUtil.getAsyncArgs(" + match[1] + ")"); var prefix= "dojo.provide(\"" + fileUtil.asyncProvideArg + "\");" + lineSeparator; for (var reqs= fileUtil.asyncRequireArgs, i= 0; i<fileUtil.asyncRequireArgs.length; i++) { prefix+= (reqs[i]!="dojo" && reqs[i]!="dijit" && reqs[i].substring(0, 5)!="i18n!") ? "dojo.require(\"" + fileUtil.asyncRequireArgs[i] + "\");" + lineSeparator : ""; } var matchLength= match[0].length+1; var contentsLength= contents.search(/\s*return\s*[_a-zA-Z\.]+\s*;\s*\}\);\s*$/); return prefix + lineSeparator + contents.substring(matchLength, contentsLength); } else { return contents; } } else { return contents; }};
if (contentsLength==-1) { contentsLength= contents.search(/\}\);\s*$/); }
fileUtil.transformAsyncModule= function(contents) { var match, lineSeparator = fileUtil.getLineSeparator(); if (contents.substring(0, 13)=="define(\"") { if (contents.substring(13, 18)=="i18n!") { return contents.substring(contents.indexOf("//begin v1.x content")+21, contents.indexOf("//end v1.x content")); } else if ((match= contents.match(/^require\.def\((.+)\,\s+function.+$/m))) { eval("fileUtil.getAsyncArgs(" + match[1] + ")"); var prefix= "dojo.provide(\"" + fileUtil.asyncProvideArg + "\");" + lineSeparator; for (var reqs= fileUtil.asyncRequireArgs, i= 0; i<fileUtil.asyncRequireArgs.length; i++) { prefix+= (reqs[i]!="dojo" && reqs[i]!="dijit" && reqs[i].substring(0, 5)!="i18n!") ? "dojo.require(\"" + fileUtil.asyncRequireArgs[i] + "\");" + lineSeparator : ""; } var matchLength= match[0].length+1; var contentsLength= contents.search(/\s*return\s*[_a-zA-Z\.]+\s*;\s*\}\);\s*$/); return prefix + lineSeparator + contents.substring(matchLength, contentsLength); } else { return contents; } } else { return contents; }};
if (reqs[i].substring(0, 5)=="i18n!") {
if (reqs[i].substring(0, 5)=="text!") { } else if (reqs[i].substring(0, 5)=="i18n!") {
fileUtil.transformAsyncModule= function(filename, contents) { var match, bundleMatch, moduleId, requireArgs= [], lineSeparator = fileUtil.getLineSeparator(), dojo = {isBrowser:true}, getAsyncArgs= function(moduleId_, deps) { if (!deps) { //no moduleId given deps= moduleId_; } else { moduleId= moduleId_; } for (var i= 0; i<deps.length; i++) { if (deps[i]!="require") { requireArgs.push(deps[i].replace(/\//g, ".")); } } }; // the v1.x content in the i18n bundles is bracketed by "//begin v1.x content" and "//end v1.x content" match= contents.match(/(\/\/begin\sv1\.x\scontent)([\s\S]+)(\/\/end\sv1\.x\scontent)/); if (match) { return match[2]; } // must not be an i18n bundle match= contents.match(/\/\/\s*AMD\-ID\s*"([^\n"]+)"/i); moduleId= (match && match[1]) || ""; if (moduleId || contents.substring(0, 8)=="define(\"") { if ((match= contents.match(/^define\(([^\]]+)\]\s*\,[\s\n]*function.+$/m))) { eval("getAsyncArgs(" + match[1] + "])"); if (!moduleId) { logger.info("warning: the module " + filename + " looked like an AMD module, but didn't provide a module id"); return contents; } var prefix= "dojo.provide(\"" + moduleId.replace(/\//g, ".") + "\");" + lineSeparator; for (var reqs= requireArgs, i= 0; i<requireArgs.length; i++) { if (reqs[i].substring(0, 5)=="i18n!") { bundleMatch= reqs[i].match(/i18n\!(.+)\.nls\.(\w+)/); prefix+= "dojo.requireLocalization(\"" + bundleMatch[1].replace(/\//g, ".") + "\", \"" + bundleMatch[2] + "\");" + lineSeparator; } else if (reqs[i]!="dojo" && reqs[i]!="dijit" && reqs[i]!="dojox") { prefix+= "dojo.require(\"" + requireArgs[i] + "\");" + lineSeparator; } } // strip all module return values that end with the comment "// AMD-result" contents= contents.replace( /^\s*return\s+.+\/\/\s*AMD-return((\s.+)|(\s*))$/img , ""); var matchLength= match.index + match[0].length+1; var contentsLength= contents.search(/\s*return\s+[_a-zA-Z\.0-9]+\s*;\s*(\/\/.+)?\s*\}\);\s*$/); if (contentsLength==-1) { //logger.info("warning: no return for: " + fileUtil.asyncProvideArg); contentsLength= contents.search(/\}\);\s*$/); } return prefix + lineSeparator + contents.substring(matchLength, contentsLength); } else { return contents; } } else { return contents; }};
layout = this.get('layout'),
layout = this.getPath('view.layout'),
transitionDidEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), animation, idx; animation = this._activeAnimations ? this._activeAnimations[propertyName] : null; if(animation) { if (animation.callback) { // Charles says this is a good idea SC.RunLoop.begin(); // We're using invokeLater so we don't trigger any layout changes from the callbacks until the animations are done if (this._animatedTransforms && this._animatedTransforms.length > 0) { for (idx=0; idx < this._animatedTransforms.length; idx++) { this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, this._animatedTransforms[idx], NO); } } else { this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, propertyName, NO); } SC.RunLoop.end(); } this._scv_removeAnimationFromLayout(propertyName, YES); } },
this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, this._animatedTransforms[idx], NO);
this.invokeLater('runAnimationCallback', 1, animation.callback, evt, this._animatedTransforms[idx], NO);
transitionDidEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), animation, idx; animation = this._activeAnimations ? this._activeAnimations[propertyName] : null; if(animation) { if (animation.callback) { // Charles says this is a good idea SC.RunLoop.begin(); // We're using invokeLater so we don't trigger any layout changes from the callbacks until the animations are done if (this._animatedTransforms && this._animatedTransforms.length > 0) { for (idx=0; idx < this._animatedTransforms.length; idx++) { this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, this._animatedTransforms[idx], NO); } } else { this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, propertyName, NO); } SC.RunLoop.end(); } this._scv_removeAnimationFromLayout(propertyName, YES); } },
this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, propertyName, NO);
this.invokeLater('runAnimationCallback', 1, animation.callback, evt, propertyName, NO);
transitionDidEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), animation, idx; animation = this._activeAnimations ? this._activeAnimations[propertyName] : null; if(animation) { if (animation.callback) { // Charles says this is a good idea SC.RunLoop.begin(); // We're using invokeLater so we don't trigger any layout changes from the callbacks until the animations are done if (this._animatedTransforms && this._animatedTransforms.length > 0) { for (idx=0; idx < this._animatedTransforms.length; idx++) { this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, this._animatedTransforms[idx], NO); } } else { this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, propertyName, NO); } SC.RunLoop.end(); } this._scv_removeAnimationFromLayout(propertyName, YES); } },
this._scv_removeAnimationFromLayout(propertyName, YES);
this.removeAnimationFromLayout(propertyName, YES);
transitionDidEnd: function(evt){ // WARNING: Sometimes this will get called more than once for a property. Not sure why. var propertyName = evt.originalEvent.propertyName, layout = this.get('layout'), animation, idx; animation = this._activeAnimations ? this._activeAnimations[propertyName] : null; if(animation) { if (animation.callback) { // Charles says this is a good idea SC.RunLoop.begin(); // We're using invokeLater so we don't trigger any layout changes from the callbacks until the animations are done if (this._animatedTransforms && this._animatedTransforms.length > 0) { for (idx=0; idx < this._animatedTransforms.length; idx++) { this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, this._animatedTransforms[idx], NO); } } else { this.invokeLater('_scv_runAnimationCallback', 1, animation.callback, evt, propertyName, NO); } SC.RunLoop.end(); } this._scv_removeAnimationFromLayout(propertyName, YES); } },
dactyl.echomsg("Executing " + event + " Auto commands for \"*\"", 8);
dactyl.echomsg('Executing ' + event + ' Auto commands for "*"', 8);
trigger: function (event, args) { if (options.get("eventignore").has("all", event)) return; let autoCmds = this._store.filter(function (autoCmd) autoCmd.event == event); dactyl.echomsg("Executing " + event + " Auto commands for \"*\"", 8); let lastPattern = null; let url = args.url || ""; for (let [, autoCmd] in Iterator(autoCmds)) { if (autoCmd.pattern.test(url)) { if (!lastPattern || lastPattern.source != autoCmd.pattern.source) dactyl.echomsg("Executing " + event + " Auto commands for \"" + autoCmd.pattern.source + "\"", 8); lastPattern = autoCmd.pattern; dactyl.echomsg("autocommand " + autoCmd.command, 9); if (typeof autoCmd.command == "function") { try { autoCmd.command.call(autoCmd, args); } catch (e) { dactyl.reportError(e); dactyl.echoerr(e); } } else dactyl.execute(commands.replaceTokens(autoCmd.command, args), null, true); } } }
dactyl.echomsg("Executing " + event + " Auto commands for \"" + autoCmd.pattern.source + "\"", 8);
dactyl.echomsg("Executing " + event + " Auto commands for " + autoCmd.pattern.source.quote(), 8);
trigger: function (event, args) { if (options.get("eventignore").has("all", event)) return; let autoCmds = this._store.filter(function (autoCmd) autoCmd.event == event); dactyl.echomsg("Executing " + event + " Auto commands for \"*\"", 8); let lastPattern = null; let url = args.url || ""; for (let [, autoCmd] in Iterator(autoCmds)) { if (autoCmd.pattern.test(url)) { if (!lastPattern || lastPattern.source != autoCmd.pattern.source) dactyl.echomsg("Executing " + event + " Auto commands for \"" + autoCmd.pattern.source + "\"", 8); lastPattern = autoCmd.pattern; dactyl.echomsg("autocommand " + autoCmd.command, 9); if (typeof autoCmd.command == "function") { try { autoCmd.command.call(autoCmd, args); } catch (e) { dactyl.reportError(e); dactyl.echoerr(e); } } else dactyl.execute(commands.replaceTokens(autoCmd.command, args), null, true); } } }
i,c.data(a,"handle"));e=null;delete f[i]}}}}for(e in f)break;if(!e){if(B=c.data(a,"handle"))B.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[H]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType=== 8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;var i=c.data(d,"handle");i&&i.apply(d,b);var j,o;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){j=d[e];o=d["on"+e]}}catch(p){}i=c.nodeName(d,"a")&&e==="click";if(!f&&j&&!a.isDefaultPrevented()&&!i){this.triggered=true;try{d[e]()}catch(n){}}else if(o&&d["on"+e].apply(d,b)===false)a.result=false;this.triggered=false;if(!a.isPropagationStopped())(d=d.parentNode||d.ownerDocument)&&c.event.trigger(a,b,d,true)},
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type= e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
i,c.data(a,"handle"));e=null;delete f[i]}}}}for(e in f)break;if(!e){if(B=c.data(a,"handle"))B.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[H]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;var i=c.data(d,"handle");i&&i.apply(d,b);var j,o;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){j=d[e];o=d["on"+e]}}catch(p){}i=c.nodeName(d,"a")&&e==="click";if(!f&&j&&!a.isDefaultPrevented()&&!i){this.triggered=true;try{d[e]()}catch(n){}}else if(o&&d["on"+e].apply(d,b)===false)a.result=false;this.triggered=false;if(!a.isPropagationStopped())(d=d.parentNode||d.ownerDocument)&&c.event.trigger(a,b,d,true)},
triggerCallback: function (type, mode, data) {
triggerCallback: function (type, mode) {
triggerCallback: function (type, mode, data) { if (this._callbacks[type] && this._callbacks[type][mode]) this._callbacks[type][mode].call(this, data); },
this._callbacks[type][mode].call(this, data);
this._callbacks[type][mode].apply(this, Array.slice(arguments, 2));
triggerCallback: function (type, mode, data) { if (this._callbacks[type] && this._callbacks[type][mode]) this._callbacks[type][mode].call(this, data); },