4906c6fd00c057ee9021f86a4818dc59fa00dc4f.svn-base 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. if (!dojo._hasResource["dojox.encoding.tests.colors2"]) { // _hasResource
  2. // checks added by
  3. // build. Do not use
  4. // _hasResource
  5. // directly in your
  6. // code.
  7. dojo._hasResource["dojox.encoding.tests.colors2"] = true;
  8. dojo.provide("dojox.encoding.tests.colors2");
  9. // all CSS3 colors
  10. dojox.encoding.tests.colors2 = {};
  11. (function() {
  12. var n = "!mi-='%@Md%8;F\"=E5(:$@nHf!(;HYAOL),#XJKa#UHDMYQ0@q6C8='JBa#m1`YRS;3_\\P=@.(bN\\!)0d:Nar*Fo]]G`\\[X7Cb@r#pc;D3!k*8^\"bS8DAYbu'J5[`7Fh5S1e8`@1^N\"n8R:+ZQt]Ab.S>NP-jkO\"N$oQpbVbYtZl1&rSs%_;'!e8\"ij:*R!%9&P.+o0%cF&0F<\"eWn+rm!a<(02!d\\-J\\O@`K![IaPrqh6H4S!U<Nh]PS,\"!C;0W&Y]X[<[E&`1gQ?_;g\\mbQn^c!eV!05V['T@)Lio1O0QV>7CU!\"5jICR2\\X?!FilaO:$aE\"G1NIfMJ<.)1d;?OH9VU%LiGhi9=d?$EjW!BM0)1mGfg@\"os1\\E*A>+>YdjUK:P>T'7tj.UQ?<89]$:\\Li]GF*H8o*Z,o]Q_E]tq?C^%'^cfU9B9sH-^t.-R;J6P9!buNg*%$9#>Y'*n;MPc7=>*]sb&NmgKSZcd2nWt6I@SX7agi3!0)M'T3O@@/>W+I:H9?@A7tjT8':(9PG\\m@_T8Ws\\\".VLCkg7IYKZ7M3.XQqX$4V`bEQF?<#jJ>#4Z#6:ZeYffa.W#0CW3@s2*ESkiD6hN#EAhXBm5F%&U_=k*tFq@rYS/!:$=M9epZ<`=HN:X\"!CRI(`>iqTRe(S@A\"&0!Dib&)1p9P)$NZb^e+i_UHHq\\_8AYC+oiIMLj_TW=u'3Nn?c=#_6Z^s/;EY/3Z(cZ\"CaOq6g>>I+;'H>Nh`>\"-3N</&5*&\\7KQKk5tM(]O9-gi%iL^#RH+KW@$+oOOO9;*#)6$,]ge#)$j.>DnX+!(g67=pRcf38l7XNQ:_FJ,l2V)C@@A;H1dN#\\$n75qg6-:\".KQkn!?a7e\"J7C0p3Pn`]hKrG_4WG*5qo\\tH,20o2QOZljnj_lZ&C6!.u8Qu:_L$8$4.[V@`&A0J,fQL";
  13. var c = "nG*%[ldl.:s*t'unGiO]p\"]T._uKc;s6Io0!<7p,ih\\+ShRJ>JStLT5!7GR&s*mjUQ0nVHgtWT+!<<'!!/gi8Mn\"KLWMuisA,rU.WP,cVMZAZ8CG5^H!1>UdMZ<bAQ?nV)O%;El02G@s:JUu9d?FX[rtLXs^]/\"^Bk_9q*g$E-+sR'`n03c7rrE)Sgt_]\"s8U[Ng8,pBJ:IWM!3Q8SJ:N1>s7$&&[*;i\\9)sSDs7#O?N99:!s7#]/quHcnc)oX\\n:6&Is8VrldaQ[oORA4Ze'n?*_>g0S+L8#&cMDa@R<OITYf,Dus53nW!&DeSqXEYI!<7QL!+sKU!!(9T<R[.NgH;f^HYDgIqO0t&bf:HP)&[Dds8)cViW%uHs5'jX!.b%@k(%s^CQ9Y>V#^Na!8;DCmc^[<qj=STmb;]Es6nM<g:>I^5QAOBh4WT.i9#OiJH#TL]T8+>C#Ot='Dd6\"oV>kIMc]rOm\\!H0^qda@cKf4Kc#A2pE.F&MqYC3lIn#$sd^4r5J:Q:ef`,GO5iC#WK'r<gZiC(*p%A\"XrrAM41&q:S";
  14. var a = function(s) {
  15. var n = s.length, r = [], b = [0, 0, 0, 0, 0], i, j, t, x, y, d;
  16. for (i = 0; i < n; i += 5) {
  17. for (j = 0; j < 5; ++j) {
  18. b[j] = s.charCodeAt(i + j) - 33;
  19. }
  20. t = (((b[0] * 85 + b[1]) * 85 + b[2]) * 85 + b[3]) * 85 + b[4];
  21. x = t & 255;
  22. t >>>= 8;
  23. y = t & 255;
  24. t >>>= 8;
  25. r.push(t >>> 8, t & 255, y, x);
  26. }
  27. return r;
  28. };
  29. var B = function(f) {
  30. this.f = f;
  31. this.y = this.t = 0;
  32. };
  33. B.prototype.g = function(b) {
  34. var r = 0;
  35. while (b) {
  36. var w = Math.min(b, 8 - this.t), v = this.f[this.y] >>> (8
  37. - this.t - w);
  38. r <<= w;
  39. r |= v & ~(~0 << w);
  40. if ((this.t += w) == 8) {
  41. ++this.y;
  42. this.t = 0;
  43. }
  44. b -= w;
  45. }
  46. return r;
  47. };
  48. var D = function(n, w) {
  49. this.c = new Array(n);
  50. this.w = w;
  51. this.p = -1;
  52. for (var i = 0; i < n; ++i) {
  53. this.c[i] = [i + 97];
  54. }
  55. };
  56. D.prototype.d = function(s) {
  57. var c = s.g(this.w), v;
  58. if (c < this.c.length) {
  59. v = this.c[c];
  60. if (this.p >= 0) {
  61. this.c.push(this.c[this.p].concat(v[0]));
  62. }
  63. } else {
  64. this.c.push([]);
  65. ++this.w;
  66. return [];
  67. }
  68. this.p = c;
  69. return v;
  70. };
  71. var i = new B(a(n)), d = new D(27, 5), t = [];
  72. while (t.length < 1455) {
  73. var v = d.d(i);
  74. dojo.forEach(v, function(x) {
  75. t.push(x);
  76. });
  77. }
  78. var n2 = dojo.map(t, function(x) {
  79. return String.fromCharCode(x);
  80. }).join("").split("{");
  81. i = a(c);
  82. for (var j = 0, k = 0; j < n2.length; ++j) {
  83. dojox.encoding.tests.colors2[n2[j]] = [i[k++], i[k++], i[k++]];
  84. }
  85. })();
  86. }