add pre build version of ACE

This commit is contained in:
Fabian Jakobs 2010-11-04 16:34:15 +01:00
commit 8969f5802b
81 changed files with 8015 additions and 0 deletions

129
build/require/i18n.js Normal file
View file

@ -0,0 +1,129 @@
(function() {
function p(a, c) {
c = c.nlsWaiting;
return c[a] || (c[a] = c[c.push({_name:a}) - 1])
}
function n(a, c, e, b) {
var d, i, h, k, j, g, f = "root";
i = e.split("-");
h = [];
k = p(a, b);
for(d = i.length;d > -1;d--) {
j = d ? i.slice(0, d).join("-") : "root";
if(g = c[j]) {
if(e === b.config.locale && !k._match) {
k._match = j
}if(f === "root") {
f = j
}k[j] = j;
if(g === true) {
g = a.split("/");
g.splice(-1, 0, j);
g = g.join("/");
if(!b.specified[g] && !(g in b.loaded) && !b.defined[g]) {
b.defPlugin[g] = "i18n";
h.push(g)
}
}
}
}if(f !== e) {
if(b.defined[f]) {
b.defined[e] = b.defined[f]
}else {
k[e] = f
}
}h.length && require(h, b.contextName)
}
var q = /(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/, r = {};
require.plugin({prefix:"i18n", require:function(a, c, e, b) {
var d, i = b.defined[a];
d = q.exec(a);
if(d[5]) {
a = d[1] + d[5];
c = p(a, b);
c[d[4]] = d[4];
c = b.nls[a];
if(!c) {
b.defPlugin[a] = "i18n";
require([a], b.contextName);
c = b.nls[a] = {}
}c[d[4]] = e
}else {
if(c = b.nls[a]) {
require.mixin(c, i)
}else {
c = b.nls[a] = i
}b.nlsRootLoaded[a] = true;
if(d = b.nlsToLoad[a]) {
delete b.nlsToLoad[a];
for(e = 0;e < d.length;e++) {
n(a, c, d[e], b)
}
}n(a, c, b.config.locale, b)
}
}, newContext:function(a) {
require.mixin(a, {nlsWaiting:[], nls:{}, nlsRootLoaded:{}, nlsToLoad:{}});
if(!a.config.locale) {
a.config.locale = typeof navigator === "undefined" ? "root" : (navigator.language || navigator.userLanguage || "root").toLowerCase()
}
}, load:function(a, c) {
var e = require.s.contexts[c], b;
b = q.exec(a);
var d = b[4];
if(b[5]) {
a = b[1] + b[5];
b = e.nls[a];
if(e.nlsRootLoaded[a] && b) {
n(a, b, d, e)
}else {
(e.nlsToLoad[a] || (e.nlsToLoad[a] = [])).push(d);
e.defPlugin[a] = "i18n";
require([a], c)
}
}else {
if(!e.nlsRootLoaded[a]) {
e.defPlugin[a] = "i18n";
require.load(a, c)
}
}
}, checkDeps:function() {
}, isWaiting:function(a) {
return!!a.nlsWaiting.length
}, orderDeps:function(a) {
var c, e, b, d, i, h, k, j, g, f, o, m, s = a.nlsWaiting, l;
a.nlsWaiting = [];
a.nlsToLoad = {};
for(c = 0;d = s[c];c++) {
b = d._name;
i = a.nls[b];
o = null;
h = b.split("/");
g = h.slice(0, h.length - 1).join("/");
k = h[h.length - 1];
for(f in d) {
if(f !== "_name" && !(f in r)) {
if(f === "_match") {
o = d[f]
}else {
if(d[f] !== f) {
(l || (l = {}))[f] = d[f]
}else {
j = {};
h = f.split("-");
for(e = h.length;e > 0;e--) {
m = h.slice(0, e).join("-");
m !== "root" && i[m] && require.mixin(j, i[m])
}i.root && require.mixin(j, i.root);
a.defined[g + "/" + f + "/" + k] = j
}
}
}
}a.defined[b] = a.defined[g + "/" + o + "/" + k];
if(l) {
for(f in l) {
f in r || (a.defined[g + "/" + f + "/" + k] = a.defined[g + "/" + l[f] + "/" + k])
}
}
}
}})
})();

38
build/require/jsonp.js Normal file
View file

@ -0,0 +1,38 @@
(function() {
var j = 0;
require._jsonp = {};
require.plugin({prefix:"jsonp", require:function() {
}, newContext:function(a) {
require.mixin(a, {jsonpWaiting:[]})
}, load:function(a, d) {
var b = a.indexOf("?"), c = a.substring(0, b);
b = a.substring(b + 1, a.length);
var f = require.s.contexts[d], i = {name:a}, g = "f" + j++, h = require.s.head, e = h.ownerDocument.createElement("script");
require._jsonp[g] = function(k) {
i.value = k;
f.loaded[a] = true;
setTimeout(function() {
h.removeChild(e);
delete require._jsonp[g]
}, 15)
};
f.jsonpWaiting.push(i);
c = require.nameToUrl(c, "?", d);
c += (c.indexOf("?") === -1 ? "?" : "") + b.replace("?", "require._jsonp." + g);
f.loaded[a] = false;
e.type = "text/javascript";
e.charset = "utf-8";
e.src = c;
e.async = true;
h.appendChild(e)
}, checkDeps:function() {
}, isWaiting:function(a) {
return!!a.jsonpWaiting.length
}, orderDeps:function(a) {
var d, b, c = a.jsonpWaiting;
a.jsonpWaiting = [];
for(d = 0;b = c[d];d++) {
a.defined[b.name] = b.value
}
}})
})();

38
build/require/order.js Normal file
View file

@ -0,0 +1,38 @@
(function() {
function g(a) {
var b = a.currentTarget || a.srcElement, c, d, e, f;
if(a.type === "load" || h.test(b.readyState)) {
d = b.getAttribute("data-requirecontext");
c = b.getAttribute("data-requiremodule");
a = require.s.contexts[d];
e = a.orderWaiting;
f = a.orderCached;
f[c] = true;
for(c = 0;f[e[c]];c++);c > 0 && require(e.splice(0, c), d);
if(!e.length) {
a.orderCached = {}
}setTimeout(function() {
b.parentNode.removeChild(b)
}, 15)
}
}
var i = window.opera && Object.prototype.toString.call(window.opera) === "[object Opera]" || "MozAppearance" in document.documentElement.style, h = /^(complete|loaded)$/;
require.plugin({prefix:"order", require:function() {
}, newContext:function(a) {
require.mixin(a, {orderWaiting:[], orderCached:{}})
}, load:function(a, b) {
var c = require.s.contexts[b], d = require.nameToUrl(a, null, b);
require.s.skipAsync[d] = true;
if(i) {
require([a], b)
}else {
c.orderWaiting.push(a);
c.loaded[a] = false;
require.attach(d, b, a, g, "script/cache")
}
}, checkDeps:function() {
}, isWaiting:function(a) {
return!!a.orderWaiting.length
}, orderDeps:function() {
}})
})();

8
build/require/rhino.js Normal file
View file

@ -0,0 +1,8 @@
require.load = function(b, a) {
var c = require.nameToUrl(b, null, a);
a = require.s.contexts[a];
require.s.isDone = false;
a.loaded[b] = false;
load(c);
require.completeLoad(b, a)
};

89
build/require/text.js Normal file
View file

@ -0,0 +1,89 @@
(function() {
var j = ["Msxml2.XMLHTTP", "Microsoft.XMLHTTP", "Msxml2.XMLHTTP.4.0"], l = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im, m = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im;
if(!require.textStrip) {
require.textStrip = function(a) {
if(a) {
a = a.replace(l, "");
var c = a.match(m);
if(c) {
a = c[1]
}
}else {
a = ""
}return a
}
}if(!require.getXhr) {
require.getXhr = function() {
var a, c, b;
if(typeof XMLHttpRequest !== "undefined") {
return new XMLHttpRequest
}else {
for(c = 0;c < 3;c++) {
b = j[c];
try {
a = new ActiveXObject(b)
}catch(g) {
}if(a) {
j = [b];
break
}
}
}if(!a) {
throw new Error("require.getXhr(): XMLHttpRequest not available");
}return a
}
}if(!require.fetchText) {
require.fetchText = function(a, c) {
var b = require.getXhr();
b.open("GET", a, true);
b.onreadystatechange = function() {
b.readyState === 4 && c(b.responseText)
};
b.send(null)
}
}require.plugin({prefix:"text", require:function() {
}, newContext:function(a) {
require.mixin(a, {text:{}, textWaiting:[]})
}, load:function(a, c) {
var b = false, g = null, e, d = a.indexOf("."), k = a.substring(0, d), h = a.substring(d + 1, a.length), f = require.s.contexts[c], i = f.textWaiting;
d = h.indexOf("!");
if(d !== -1) {
b = h.substring(d + 1, h.length);
h = h.substring(0, d);
d = b.indexOf("!");
if(d !== -1 && b.substring(0, d) === "strip") {
g = b.substring(d + 1, b.length);
b = "strip"
}else {
if(b !== "strip") {
g = b;
b = null
}
}
}e = k + "!" + h;
d = b ? e + "!" + b : e;
if(g !== null && !f.text[e]) {
f.defined[a] = f.text[e] = g
}else {
if(!f.text[e] && !f.textWaiting[e] && !f.textWaiting[d]) {
i[d] || (i[d] = i[i.push({name:a, key:e, fullKey:d, strip:!!b}) - 1]);
c = require.nameToUrl(k, "." + h, c);
f.loaded[a] = false;
require.fetchText(c, function(n) {
f.text[e] = n;
f.loaded[a] = true
})
}
}
}, checkDeps:function() {
}, isWaiting:function(a) {
return!!a.textWaiting.length
}, orderDeps:function(a) {
var c, b, g, e = a.textWaiting;
a.textWaiting = [];
for(c = 0;b = e[c];c++) {
g = a.text[b.key];
a.defined[b.name] = b.strip ? require.textStrip(g) : g
}
}})
})();

View file

@ -0,0 +1,9 @@
require.define = function(c, d) {
var b, a;
for(b in c) {
if(c.hasOwnProperty(b)) {
a = c[b];
require.def(b, (a.injects || ["require", "exports", "module"]).concat(d || []), typeof a === "function" ? a : a.factory)
}
}
};