Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' of yuisource.corp.yahoo.com:yui3

  • Loading branch information...
commit fbf33b9abf97129768e0920e2ba04b99ab238da7 2 parents 2a0377f + 971f808
Eric Ferraiuolo authored
21  build/get/get-debug.js
@@ -11,6 +11,9 @@ Provides dynamic loading of remote JavaScript and CSS resources.
11 11
 **/
12 12
 
13 13
 var Lang = Y.Lang,
  14
+
  15
+    CUSTOM_ATTRS, // defined lazily in Y.Get.Transaction._createNode()
  16
+
14 17
     Get, Transaction;
15 18
 
16 19
 Y.Get = Get = {
@@ -907,11 +910,25 @@ Transaction.prototype = {
907 910
     // -- Protected Methods ----------------------------------------------------
908 911
     _createNode: function (name, attrs, doc) {
909 912
         var node = doc.createElement(name),
910  
-            attr;
  913
+            attr, testEl;
  914
+
  915
+        if (!CUSTOM_ATTRS) {
  916
+            // IE6 and IE7 expect property names rather than attribute names for
  917
+            // certain attributes. Rather than sniffing, we do a quick feature
  918
+            // test the first time _createNode() runs to determine whether we
  919
+            // need to provide a workaround.
  920
+            testEl = doc.createElement('div');
  921
+            testEl.setAttribute('class', 'a');
  922
+
  923
+            CUSTOM_ATTRS = testEl.className === 'a' ? {} : {
  924
+                'for'  : 'htmlFor',
  925
+                'class': 'className'
  926
+            };
  927
+        }
911 928
 
912 929
         for (attr in attrs) {
913 930
             if (attrs.hasOwnProperty(attr)) {
914  
-                node.setAttribute(attr, attrs[attr]);
  931
+                node.setAttribute(CUSTOM_ATTRS[attr] || attr, attrs[attr]);
915 932
             }
916 933
         }
917 934
 
4  build/get/get-min.js
... ...
@@ -1,2 +1,2 @@
1  
-YUI.add("get",function(c){var b=c.Lang,d,a;c.Get=d={cssOptions:{attributes:{rel:"stylesheet"},doc:c.config.linkDoc||c.config.doc,pollInterval:50},jsOptions:{autopurge:true,doc:c.config.scriptDoc||c.config.doc},options:{attributes:{charset:"utf-8"},purgethreshold:20},REGEX_CSS:/\.css(?:[?;].*)?$/i,REGEX_JS:/\.js(?:[?;].*)?$/i,_insertCache:{},_pending:null,_purgeNodes:[],_queue:[],abort:function(j){var f,k,g,e,h;if(!j.abort){k=j;h=this._pending;j=null;if(h&&h.transaction.id===k){j=h.transaction;this._pending=null;}else{for(f=0,e=this._queue.length;f<e;++f){g=this._queue[f].transaction;if(g.id===k){j=g;this._queue.splice(f,1);break;}}}}j&&j.abort();},css:function(f,e,g){return this._load("css",f,e,g);},js:function(f,e,g){return this._load("js",f,e,g);},load:function(f,e,g){return this._load(null,f,e,g);},_autoPurge:function(e){if(e&&this._purgeNodes.length>=e){this._purge(this._purgeNodes);}},_getEnv:function(){var f=c.config.doc,e=c.UA;return(this._env={async:f&&f.createElement("script").async===true,cssLoad:(!e.gecko&&!e.webkit)||e.gecko>=9||e.webkit>=535.24,preservesScriptOrder:!!(e.gecko||e.opera)});},_getTransaction:function(k,g){var l=[],h,e,j,f;if(!b.isArray(k)){k=[k];}g=c.merge(this.options,g);g.attributes=c.merge(this.options.attributes,g.attributes);for(h=0,e=k.length;h<e;++h){f=k[h];j={attributes:{}};if(typeof f==="string"){j.url=f;}else{if(f.url){c.mix(j,f,false,null,0,true);f=f.url;}else{continue;}}c.mix(j,g,false,null,0,true);if(!j.type){if(this.REGEX_CSS.test(f)){j.type="css";}else{if(!this.REGEX_JS.test(f)){}j.type="js";}}c.mix(j,j.type==="js"?this.jsOptions:this.cssOptions,false,null,0,true);j.attributes.id||(j.attributes.id=c.guid());if(j.win){j.doc=j.win.document;}else{j.win=j.doc.defaultView||j.doc.parentWindow;}if(j.charset){j.attributes.charset=j.charset;}l.push(j);}return new a(l,g);},_load:function(f,g,e,i){var h;if(typeof e==="function"){i=e;e={};}e||(e={});e.type=f;if(!this._env){this._getEnv();}h=this._getTransaction(g,e);this._queue.push({callback:i,transaction:h});this._next();return h;},_next:function(){var e;if(this._pending){return;}e=this._queue.shift();if(e){this._pending=e;e.transaction.execute(function(){e.callback&&e.callback.apply(this,arguments);d._pending=null;d._next();});}},_purge:function(e){var g=this._purgeNodes,i=e!==g,f,h;while(h=e.pop()){if(!h._yuiget_finished){continue;}h.parentNode&&h.parentNode.removeChild(h);if(i){f=c.Array.indexOf(g,h);if(f>-1){g.splice(f,1);}}}}};d.script=d.js;d.Transaction=a=function(g,f){var e=this;e.id=a._lastId+=1;e.data=f.data;e.errors=[];e.nodes=[];e.options=f;e.requests=g;e._callbacks=[];e._queue=[];e._waiting=0;e.tId=e.id;e.win=f.win||c.config.win;};a._lastId=0;a.prototype={_state:"new",abort:function(e){this._pending=null;this._pendingCSS=null;this._pollTimer=clearTimeout(this._pollTimer);this._queue=[];this._waiting=0;this.errors.push({error:e||"Aborted"});this._finish();},execute:function(m){var g=this,l=g.requests,k=g._state,h,f,e,j;if(k==="done"){m&&m(g.errors.length?g.errors:null,g);return;}else{m&&g._callbacks.push(m);if(k==="executing"){return;}}g._state="executing";g._queue=e=[];if(g.options.timeout){g._timeout=setTimeout(function(){g.abort("Timeout");},g.options.timeout);}for(h=0,f=l.length;h<f;++h){j=g.requests[h];if(j.async||j.type==="css"){g._insert(j);}else{e.push(j);}}g._next();},purge:function(){d._purge(this.nodes);},_createNode:function(g,f,i){var h=i.createElement(g),e;for(e in f){if(f.hasOwnProperty(e)){h.setAttribute(e,f[e]);}}return h;},_finish:function(){var k=this.errors.length?this.errors:null,f=this.options,j=f.context||this,h,g,e;if(this._state==="done"){return;}this._state="done";for(g=0,e=this._callbacks.length;g<e;++g){this._callbacks[g].call(j,k,this);}h=this._getEventData();if(k){if(f.onTimeout&&k[k.length-1].error==="Timeout"){f.onTimeout.call(j,h);}if(f.onFailure){f.onFailure.call(j,h);}}else{if(f.onSuccess){f.onSuccess.call(j,h);}}if(f.onEnd){f.onEnd.call(j,h);}},_getEventData:function(e){if(e){return c.merge(this,{abort:this.abort,purge:this.purge,request:e,url:e.url,win:e.win});}else{return this;}},_getInsertBefore:function(i){var j=i.doc,g=i.insertBefore,f,h,e;if(g){return typeof g==="string"?j.getElementById(g):g;}f=d._insertCache;e=c.stamp(j);if((g=f[e])){return g;}if((g=j.getElementsByTagName("base")[0])){return(f[e]=g);}g=j.head||j.getElementsByTagName("head")[0];if(g){g.appendChild(j.createTextNode(""));return(f[e]=g.lastChild);}return(f[e]=j.getElementsByTagName("script")[0]);},_insert:function(m){var j=d._env,k=this._getInsertBefore(m),g=m.type==="js",f=m.node,n=this,e=c.UA,h;if(!f){if(g){h="script";}else{if(!j.cssLoad&&e.gecko){h="style";}else{h="link";}}f=m.node=this._createNode(h,m.attributes,m.doc);}function i(){n._progress("Failed to load "+m.url,m);}function l(){n._progress(null,m);}if(g){f.setAttribute("src",m.url);if(m.async){f.async=true;}else{if(j.async){f.async=false;}if(!j.preservesScriptOrder){this._pending=m;}}}else{if(!j.cssLoad&&e.gecko){f.innerHTML=(m.attributes.charset?'@charset "'+m.attributes.charset+'";':"")+'@import "'+m.url+'";';}else{f.setAttribute("href",m.url);}}if(g&&e.ie&&e.ie<9){f.onreadystatechange=function(){if(/loaded|complete/.test(f.readyState)){f.onreadystatechange=null;l();}};}else{if(!g&&!j.cssLoad){this._poll(m);}else{f.onerror=i;f.onload=l;}}this._waiting+=1;this.nodes.push(f);k.parentNode.insertBefore(f,k);},_next:function(){if(this._pending){return;}if(this._queue.length){this._insert(this._queue.shift());}else{if(!this._waiting){this._finish();}}},_poll:function(m){var p=this,q=p._pendingCSS,k=c.UA.webkit,g,e,f,o,n,h;if(m){q||(q=p._pendingCSS=[]);q.push(m);if(p._pollTimer){return;}}p._pollTimer=null;for(g=0;g<q.length;++g){n=q[g];if(k){h=n.doc.styleSheets;f=h.length;o=n.node.href;while(--f>=0){if(h[f].href===o){q.splice(g,1);g-=1;p._progress(null,n);break;}}}else{try{e=!!n.node.sheet.cssRules;q.splice(g,1);g-=1;p._progress(null,n);}catch(l){}}}if(q.length){p._pollTimer=setTimeout(function(){p._poll.call(p);},p.options.pollInterval);
2  
-}},_progress:function(g,f){var e=this.options;if(g){f.error=g;this.errors.push({error:g,request:f});}f.node._yuiget_finished=f.finished=true;if(e.onProgress){e.onProgress.call(e.context||this,this._getEventData(f));}if(f.autopurge){d._autoPurge(this.options.purgethreshold);d._purgeNodes.push(f.node);}if(this._pending===f){this._pending=null;}this._waiting-=1;this._next();}};},"@VERSION@",{requires:["yui-base"]});
  1
+YUI.add("get",function(d){var c=d.Lang,b,e,a;d.Get=e={cssOptions:{attributes:{rel:"stylesheet"},doc:d.config.linkDoc||d.config.doc,pollInterval:50},jsOptions:{autopurge:true,doc:d.config.scriptDoc||d.config.doc},options:{attributes:{charset:"utf-8"},purgethreshold:20},REGEX_CSS:/\.css(?:[?;].*)?$/i,REGEX_JS:/\.js(?:[?;].*)?$/i,_insertCache:{},_pending:null,_purgeNodes:[],_queue:[],abort:function(k){var g,l,h,f,j;if(!k.abort){l=k;j=this._pending;k=null;if(j&&j.transaction.id===l){k=j.transaction;this._pending=null;}else{for(g=0,f=this._queue.length;g<f;++g){h=this._queue[g].transaction;if(h.id===l){k=h;this._queue.splice(g,1);break;}}}}k&&k.abort();},css:function(g,f,h){return this._load("css",g,f,h);},js:function(g,f,h){return this._load("js",g,f,h);},load:function(g,f,h){return this._load(null,g,f,h);},_autoPurge:function(f){if(f&&this._purgeNodes.length>=f){this._purge(this._purgeNodes);}},_getEnv:function(){var g=d.config.doc,f=d.UA;return(this._env={async:g&&g.createElement("script").async===true,cssLoad:(!f.gecko&&!f.webkit)||f.gecko>=9||f.webkit>=535.24,preservesScriptOrder:!!(f.gecko||f.opera)});},_getTransaction:function(l,h){var m=[],j,f,k,g;if(!c.isArray(l)){l=[l];}h=d.merge(this.options,h);h.attributes=d.merge(this.options.attributes,h.attributes);for(j=0,f=l.length;j<f;++j){g=l[j];k={attributes:{}};if(typeof g==="string"){k.url=g;}else{if(g.url){d.mix(k,g,false,null,0,true);g=g.url;}else{continue;}}d.mix(k,h,false,null,0,true);if(!k.type){if(this.REGEX_CSS.test(g)){k.type="css";}else{if(!this.REGEX_JS.test(g)){}k.type="js";}}d.mix(k,k.type==="js"?this.jsOptions:this.cssOptions,false,null,0,true);k.attributes.id||(k.attributes.id=d.guid());if(k.win){k.doc=k.win.document;}else{k.win=k.doc.defaultView||k.doc.parentWindow;}if(k.charset){k.attributes.charset=k.charset;}m.push(k);}return new a(m,h);},_load:function(g,h,f,j){var i;if(typeof f==="function"){j=f;f={};}f||(f={});f.type=g;if(!this._env){this._getEnv();}i=this._getTransaction(h,f);this._queue.push({callback:j,transaction:i});this._next();return i;},_next:function(){var f;if(this._pending){return;}f=this._queue.shift();if(f){this._pending=f;f.transaction.execute(function(){f.callback&&f.callback.apply(this,arguments);e._pending=null;e._next();});}},_purge:function(f){var h=this._purgeNodes,j=f!==h,g,i;while(i=f.pop()){if(!i._yuiget_finished){continue;}i.parentNode&&i.parentNode.removeChild(i);if(j){g=d.Array.indexOf(h,i);if(g>-1){h.splice(g,1);}}}}};e.script=e.js;e.Transaction=a=function(h,g){var f=this;f.id=a._lastId+=1;f.data=g.data;f.errors=[];f.nodes=[];f.options=g;f.requests=h;f._callbacks=[];f._queue=[];f._waiting=0;f.tId=f.id;f.win=g.win||d.config.win;};a._lastId=0;a.prototype={_state:"new",abort:function(f){this._pending=null;this._pendingCSS=null;this._pollTimer=clearTimeout(this._pollTimer);this._queue=[];this._waiting=0;this.errors.push({error:f||"Aborted"});this._finish();},execute:function(n){var h=this,m=h.requests,l=h._state,j,g,f,k;if(l==="done"){n&&n(h.errors.length?h.errors:null,h);return;}else{n&&h._callbacks.push(n);if(l==="executing"){return;}}h._state="executing";h._queue=f=[];if(h.options.timeout){h._timeout=setTimeout(function(){h.abort("Timeout");},h.options.timeout);}for(j=0,g=m.length;j<g;++j){k=h.requests[j];if(k.async||k.type==="css"){h._insert(k);}else{f.push(k);}}h._next();},purge:function(){e._purge(this.nodes);},_createNode:function(h,g,j){var i=j.createElement(h),f,k;if(!b){k=j.createElement("div");k.setAttribute("class","a");b=k.className==="a"?{}:{"for":"htmlFor","class":"className"};}for(f in g){if(g.hasOwnProperty(f)){i.setAttribute(b[f]||f,g[f]);}}return i;},_finish:function(){var l=this.errors.length?this.errors:null,g=this.options,k=g.context||this,j,h,f;if(this._state==="done"){return;}this._state="done";for(h=0,f=this._callbacks.length;h<f;++h){this._callbacks[h].call(k,l,this);}j=this._getEventData();if(l){if(g.onTimeout&&l[l.length-1].error==="Timeout"){g.onTimeout.call(k,j);}if(g.onFailure){g.onFailure.call(k,j);}}else{if(g.onSuccess){g.onSuccess.call(k,j);}}if(g.onEnd){g.onEnd.call(k,j);}},_getEventData:function(f){if(f){return d.merge(this,{abort:this.abort,purge:this.purge,request:f,url:f.url,win:f.win});}else{return this;}},_getInsertBefore:function(j){var k=j.doc,h=j.insertBefore,g,i,f;if(h){return typeof h==="string"?k.getElementById(h):h;}g=e._insertCache;f=d.stamp(k);if((h=g[f])){return h;}if((h=k.getElementsByTagName("base")[0])){return(g[f]=h);}h=k.head||k.getElementsByTagName("head")[0];if(h){h.appendChild(k.createTextNode(""));return(g[f]=h.lastChild);}return(g[f]=k.getElementsByTagName("script")[0]);},_insert:function(n){var k=e._env,l=this._getInsertBefore(n),h=n.type==="js",g=n.node,o=this,f=d.UA,i;if(!g){if(h){i="script";}else{if(!k.cssLoad&&f.gecko){i="style";}else{i="link";}}g=n.node=this._createNode(i,n.attributes,n.doc);}function j(){o._progress("Failed to load "+n.url,n);}function m(){o._progress(null,n);}if(h){g.setAttribute("src",n.url);if(n.async){g.async=true;}else{if(k.async){g.async=false;}if(!k.preservesScriptOrder){this._pending=n;}}}else{if(!k.cssLoad&&f.gecko){g.innerHTML=(n.attributes.charset?'@charset "'+n.attributes.charset+'";':"")+'@import "'+n.url+'";';}else{g.setAttribute("href",n.url);}}if(h&&f.ie&&f.ie<9){g.onreadystatechange=function(){if(/loaded|complete/.test(g.readyState)){g.onreadystatechange=null;m();}};}else{if(!h&&!k.cssLoad){this._poll(n);}else{g.onerror=j;g.onload=m;}}this._waiting+=1;this.nodes.push(g);l.parentNode.insertBefore(g,l);},_next:function(){if(this._pending){return;}if(this._queue.length){this._insert(this._queue.shift());}else{if(!this._waiting){this._finish();}}},_poll:function(n){var q=this,r=q._pendingCSS,l=d.UA.webkit,h,f,g,p,o,k;if(n){r||(r=q._pendingCSS=[]);r.push(n);if(q._pollTimer){return;}}q._pollTimer=null;for(h=0;h<r.length;++h){o=r[h];if(l){k=o.doc.styleSheets;g=k.length;p=o.node.href;while(--g>=0){if(k[g].href===p){r.splice(h,1);h-=1;q._progress(null,o);break;}}}else{try{f=!!o.node.sheet.cssRules;r.splice(h,1);
  2
+h-=1;q._progress(null,o);}catch(m){}}}if(r.length){q._pollTimer=setTimeout(function(){q._poll.call(q);},q.options.pollInterval);}},_progress:function(h,g){var f=this.options;if(h){g.error=h;this.errors.push({error:h,request:g});}g.node._yuiget_finished=g.finished=true;if(f.onProgress){f.onProgress.call(f.context||this,this._getEventData(g));}if(g.autopurge){e._autoPurge(this.options.purgethreshold);e._purgeNodes.push(g.node);}if(this._pending===g){this._pending=null;}this._waiting-=1;this._next();}};},"@VERSION@",{requires:["yui-base"]});
21  build/get/get.js
@@ -11,6 +11,9 @@ Provides dynamic loading of remote JavaScript and CSS resources.
11 11
 **/
12 12
 
13 13
 var Lang = Y.Lang,
  14
+
  15
+    CUSTOM_ATTRS, // defined lazily in Y.Get.Transaction._createNode()
  16
+
14 17
     Get, Transaction;
15 18
 
16 19
 Y.Get = Get = {
@@ -891,11 +894,25 @@ Transaction.prototype = {
891 894
     // -- Protected Methods ----------------------------------------------------
892 895
     _createNode: function (name, attrs, doc) {
893 896
         var node = doc.createElement(name),
894  
-            attr;
  897
+            attr, testEl;
  898
+
  899
+        if (!CUSTOM_ATTRS) {
  900
+            // IE6 and IE7 expect property names rather than attribute names for
  901
+            // certain attributes. Rather than sniffing, we do a quick feature
  902
+            // test the first time _createNode() runs to determine whether we
  903
+            // need to provide a workaround.
  904
+            testEl = doc.createElement('div');
  905
+            testEl.setAttribute('class', 'a');
  906
+
  907
+            CUSTOM_ATTRS = testEl.className === 'a' ? {} : {
  908
+                'for'  : 'htmlFor',
  909
+                'class': 'className'
  910
+            };
  911
+        }
895 912
 
896 913
         for (attr in attrs) {
897 914
             if (attrs.hasOwnProperty(attr)) {
898  
-                node.setAttribute(attr, attrs[attr]);
  915
+                node.setAttribute(CUSTOM_ATTRS[attr] || attr, attrs[attr]);
899 916
             }
900 917
         }
901 918
 
21  build/yui-base/yui-base-debug.js
@@ -3635,6 +3635,9 @@ Provides dynamic loading of remote JavaScript and CSS resources.
3635 3635
 **/
3636 3636
 
3637 3637
 var Lang = Y.Lang,
  3638
+
  3639
+    CUSTOM_ATTRS, // defined lazily in Y.Get.Transaction._createNode()
  3640
+
3638 3641
     Get, Transaction;
3639 3642
 
3640 3643
 Y.Get = Get = {
@@ -4531,11 +4534,25 @@ Transaction.prototype = {
4531 4534
     // -- Protected Methods ----------------------------------------------------
4532 4535
     _createNode: function (name, attrs, doc) {
4533 4536
         var node = doc.createElement(name),
4534  
-            attr;
  4537
+            attr, testEl;
  4538
+
  4539
+        if (!CUSTOM_ATTRS) {
  4540
+            // IE6 and IE7 expect property names rather than attribute names for
  4541
+            // certain attributes. Rather than sniffing, we do a quick feature
  4542
+            // test the first time _createNode() runs to determine whether we
  4543
+            // need to provide a workaround.
  4544
+            testEl = doc.createElement('div');
  4545
+            testEl.setAttribute('class', 'a');
  4546
+
  4547
+            CUSTOM_ATTRS = testEl.className === 'a' ? {} : {
  4548
+                'for'  : 'htmlFor',
  4549
+                'class': 'className'
  4550
+            };
  4551
+        }
4535 4552
 
4536 4553
         for (attr in attrs) {
4537 4554
             if (attrs.hasOwnProperty(attr)) {
4538  
-                node.setAttribute(attr, attrs[attr]);
  4555
+                node.setAttribute(CUSTOM_ATTRS[attr] || attr, attrs[attr]);
4539 4556
             }
4540 4557
         }
4541 4558
 
6  build/yui-base/yui-base-min.js
... ...
@@ -1,6 +1,6 @@
1 1
 if(typeof YUI!="undefined"){YUI._YUI=YUI;}var YUI=function(){var c=0,f=this,b=arguments,a=b.length,e=function(h,g){return(h&&h.hasOwnProperty&&(h instanceof g));},d=(typeof YUI_config!=="undefined")&&YUI_config;if(!(e(f,YUI))){f=new YUI();}else{f._init();if(YUI.GlobalConfig){f.applyConfig(YUI.GlobalConfig);}if(d){f.applyConfig(d);}if(!a){f._setup();}}if(a){for(;c<a;c++){f.applyConfig(b[c]);}f._setup();}f.instanceOf=e;return f;};(function(){var q,b,r="@VERSION@",i=".",o="http://yui.yahooapis.com/",u="yui3-js-enabled",d="yui3-css-stamp",m=function(){},h=Array.prototype.slice,s={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},g=(typeof window!="undefined"),f=(g)?window:null,w=(g)?f.document:null,e=w&&w.documentElement,a=e&&e.className,c={},j=new Date().getTime(),n=function(A,z,y,x){if(A&&A.addEventListener){A.addEventListener(z,y,x);}else{if(A&&A.attachEvent){A.attachEvent("on"+z,y);}}},v=function(B,A,z,x){if(B&&B.removeEventListener){try{B.removeEventListener(A,z,x);}catch(y){}}else{if(B&&B.detachEvent){B.detachEvent("on"+A,z);}}},t=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;if(g){v(window,"load",t);}},k=function(z,y){var x=z.Env._loader;if(x){x.ignoreRegistered=false;x.onEnd=null;x.data=null;x.required=[];x.loadType=null;}else{x=new z.Loader(z.config);z.Env._loader=x;}YUI.Env.core=z.Array.dedupe([].concat(YUI.Env.core,["loader-base","loader-rollup","loader-yui3"]));return x;},p=function(z,y){for(var x in y){if(y.hasOwnProperty(x)){z[x]=y[x];}}},l={success:true};if(e&&a.indexOf(u)==-1){if(a){a+=" ";}a+=u;e.className=a;}if(r.indexOf("@")>-1){r="3.3.0";}q={applyConfig:function(E){E=E||m;var z,C,B=this.config,D=B.modules,y=B.groups,A=B.aliases,x=this.Env._loader;for(C in E){if(E.hasOwnProperty(C)){z=E[C];if(D&&C=="modules"){p(D,z);}else{if(A&&C=="aliases"){p(A,z);}else{if(y&&C=="groups"){p(y,z);}else{if(C=="win"){B[C]=(z&&z.contentWindow)||z;B.doc=B[C]?B[C].document:null;}else{if(C=="_yuid"){}else{B[C]=z;}}}}}}}if(x){x._config(E);}},_config:function(x){this.applyConfig(x);},_init:function(){var A,z,B=this,x=YUI.Env,y=B.Env,C;B.version=r;if(!y){B.Env={core:["get","features","intl-base","yui-log","yui-later"],mods:{},versions:{},base:o,cdn:o+r+"/build/",_idx:0,_used:{},_attached:{},_missed:[],_yidx:0,_uidx:0,_guidp:"y",_loaded:{},_BASE_RE:/(?:\?(?:[^&]*&)*([^&]*))?\b(simpleyui|yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,parseBasePath:function(H,F){var D=H.match(F),G,E;if(D){G=RegExp.leftContext||H.slice(0,H.indexOf(D[0]));E=D[3];if(D[1]){G+="?"+D[1];}G={filter:E,path:G};}return G;},getBase:x&&x.getBase||function(H){var F=(w&&w.getElementsByTagName("script"))||[],I=y.cdn,E,G,D,J;for(G=0,D=F.length;G<D;++G){J=F[G].src;if(J){E=B.Env.parseBasePath(J,H);if(E){A=E.filter;I=E.path;break;}}}return I;}};y=B.Env;y._loaded[r]={};if(x&&B!==YUI){y._yidx=++x._yidx;y._guidp=("yui_"+r+"_"+y._yidx+"_"+j).replace(/\./g,"_");}else{if(YUI._YUI){x=YUI._YUI.Env;y._yidx+=x._yidx;y._uidx+=x._uidx;for(C in x){if(!(C in y)){y[C]=x[C];}}delete YUI._YUI;}}B.id=B.stamp(B);c[B.id]=B;}B.constructor=YUI;B.config=B.config||{bootstrap:true,cacheUse:true,debug:true,doc:w,fetchCSS:true,throwFail:true,useBrowserConsole:true,useNativeES5:true,win:f};if(w&&!w.getElementById(d)){z=w.createElement("div");z.innerHTML='<div id="'+d+'" style="position: absolute !important; visibility: hidden !important"></div>';YUI.Env.cssStampEl=z.firstChild;e.insertBefore(YUI.Env.cssStampEl,e.firstChild);}B.config.lang=B.config.lang||"en-US";B.config.base=YUI.config.base||B.Env.getBase(B.Env._BASE_RE);if(!A||(!("mindebug").indexOf(A))){A="min";}A=(A)?"-"+A:A;B.config.loaderPath=YUI.config.loaderPath||"loader/loader"+A+".js";},_setup:function(C){var y,B=this,x=[],A=YUI.Env.mods,z=B.config.core||[].concat(YUI.Env.core);for(y=0;y<z.length;y++){if(A[z[y]]){x.push(z[y]);}}B._attach(["yui-base"]);B._attach(x);if(B.Loader){k(B);}},applyTo:function(D,C,z){if(!(C in s)){this.log(C+": applyTo not allowed","warn","yui");return null;}var y=c[D],B,x,A;if(y){B=C.split(".");x=y;for(A=0;A<B.length;A=A+1){x=x[B[A]];if(!x){this.log("applyTo not found: "+C,"warn","yui");}}return x&&x.apply(y,z);}return null;},add:function(y,D,C,x){x=x||{};var B=YUI.Env,E={name:y,fn:D,version:C,details:x},F,A,z=B.versions;B.mods[y]=E;z[C]=z[C]||{};z[C][y]=E;for(A in c){if(c.hasOwnProperty(A)){F=c[A].Env._loader;if(F){if(!F.moduleInfo[y]){F.addModule(x,y);}}}}return this;},_attach:function(C,N){var G,O,M,J,x,E,z,A=YUI.Env.mods,H=YUI.Env.aliases,y=this,F,B=y.Env._loader,D=y.Env._attached,I=C.length,B,L=[];for(G=0;G<I;G++){O=C[G];M=A[O];L.push(O);if(B&&B.conditions[O]){y.Object.each(B.conditions[O],function(Q){var P=Q&&((Q.ua&&y.UA[Q.ua])||(Q.test&&Q.test(y)));if(P){L.push(Q.name);}});}}C=L;I=C.length;for(G=0;G<I;G++){if(!D[C[G]]){O=C[G];M=A[O];if(H&&H[O]){y._attach(H[O]);continue;}if(!M){if(B&&B.moduleInfo[O]){M=B.moduleInfo[O];N=true;}if(!N&&O){if((O.indexOf("skin-")===-1)&&(O.indexOf("css")===-1)){y.Env._missed.push(O);y.Env._missed=y.Array.dedupe(y.Env._missed);y.message("NOT loaded: "+O,"warn","yui");}}}else{D[O]=true;for(F=0;F<y.Env._missed.length;F++){if(y.Env._missed[F]===O){y.message("Found: "+O+" (was reported as missing earlier)","warn","yui");y.Env._missed.splice(F,1);}}J=M.details;x=J.requires;E=J.use;z=J.after;if(x){for(F=0;F<x.length;F++){if(!D[x[F]]){if(!y._attach(x)){return false;}break;}}}if(z){for(F=0;F<z.length;F++){if(!D[z[F]]){if(!y._attach(z,true)){return false;}break;}}}if(M.fn){try{M.fn(y,O);}catch(K){y.error("Attach error: "+O,K,O);return false;}}if(E){for(F=0;F<E.length;F++){if(!D[E[F]]){if(!y._attach(E)){return false;}break;}}}}}}return true;},use:function(){var A=h.call(arguments,0),E=A[A.length-1],D=this,C=0,y=[],z,x=D.Env,B=true;if(D.Lang.isFunction(E)){A.pop();}else{E=null;}if(D.Lang.isArray(A[0])){A=A[0];}if(D.config.cacheUse){while((z=A[C++])){if(!x._attached[z]){B=false;break;}}if(B){if(A.length){}D._notify(E,l,A);return D;}}if(D._loading){D._useQueue=D._useQueue||new D.Queue();D._useQueue.add([A,E]);}else{D._use(A,function(G,F){G._notify(E,F,A);
2 2
 });}return D;},_notify:function(A,x,y){if(!x.success&&this.config.loadErrorFn){this.config.loadErrorFn.call(this,this,A,x,y);}else{if(A){try{A(this,x);}catch(z){this.error("use callback error",z,y);}}}},_use:function(z,B){if(!this.Array){this._attach(["yui-base"]);}var O,G,P,L,y=this,Q=YUI.Env,A=Q.mods,x=y.Env,D=x._used,N=Q.aliases,K=Q._loaderQueue,T=z[0],F=y.Array,R=y.config,E=R.bootstrap,M=[],I=[],S=true,C=R.fetchCSS,J=function(X,W){var V=0,U=[];if(!X.length){return;}if(N){for(V=0;V<X.length;V++){if(N[X[V]]){U=[].concat(U,N[X[V]]);}else{U.push(X[V]);}}X=U;}F.each(X,function(aa){if(!W){I.push(aa);}if(D[aa]){return;}var Y=A[aa],ab,Z;if(Y){D[aa]=true;ab=Y.details.requires;Z=Y.details.use;}else{if(!Q._loaded[r][aa]){M.push(aa);}else{D[aa]=true;}}if(ab&&ab.length){J(ab);}if(Z&&Z.length){J(Z,1);}});},H=function(Y){var W=Y||{success:true,msg:"not dynamic"},V,U,X=true,Z=W.data;y._loading=false;if(Z){U=M;M=[];I=[];J(Z);V=M.length;if(V){if(M.sort().join()==U.sort().join()){V=false;}}}if(V&&Z){y._loading=false;y._use(z,function(){if(y._attach(Z)){y._notify(B,W,Z);}});}else{if(Z){X=y._attach(Z);}if(X){y._notify(B,W,z);}}if(y._useQueue&&y._useQueue.size()&&!y._loading){y._use.apply(y,y._useQueue.next());}};if(T==="*"){S=y._attach(y.Object.keys(A));if(S){H();}return y;}if(A["loader"]&&!y.Loader){y._attach(["loader"]);}if(E&&y.Loader&&z.length){G=k(y);G.require(z);G.ignoreRegistered=true;G._boot=true;G.calculate(null,(C)?null:"js");z=G.sorted;G._boot=false;}J(z);O=M.length;if(O){M=y.Object.keys(F.hash(M));O=M.length;}if(E&&O&&y.Loader){y._loading=true;G=k(y);G.onEnd=H;G.context=y;G.data=z;G.ignoreRegistered=false;G.require(z);G.insert(null,(C)?null:"js");}else{if(E&&O&&y.Get&&!x.bootstrapped){y._loading=true;P=function(){y._loading=false;K.running=false;x.bootstrapped=true;Q._bootstrapping=false;if(y._attach(["loader"])){y._use(z,B);}};if(Q._bootstrapping){K.add(P);}else{Q._bootstrapping=true;y.Get.script(R.base+R.loaderPath,{onEnd:P});}}else{S=y._attach(z);if(S){H();}}}return y;},namespace:function(){var y=arguments,C,A=0,z,B,x;for(;A<y.length;A++){C=this;x=y[A];if(x.indexOf(i)>-1){B=x.split(i);for(z=(B[0]=="YAHOO")?1:0;z<B.length;z++){C[B[z]]=C[B[z]]||{};C=C[B[z]];}}else{C[x]=C[x]||{};C=C[x];}}return C;},log:m,message:m,dump:function(x){return""+x;},error:function(B,y,A){var z=this,x;if(z.config.errorFn){x=z.config.errorFn.apply(z,arguments);}if(z.config.throwFail&&!x){throw (y||new Error(B));}else{z.message(B,"error",""+A);}return z;},guid:function(x){var y=this.Env._guidp+"_"+(++this.Env._uidx);return(x)?(x+y):y;},stamp:function(z,A){var x;if(!z){return z;}if(z.uniqueID&&z.nodeType&&z.nodeType!==9){x=z.uniqueID;}else{x=(typeof z==="string")?z:z._yuid;}if(!x){x=this.guid();if(!A){try{z._yuid=x;}catch(y){x=null;}}}return x;},destroy:function(){var x=this;if(x.Event){x.Event._unload();}delete c[x.id];delete x.Env;delete x.config;}};YUI.prototype=q;for(b in q){if(q.hasOwnProperty(b)){YUI[b]=q[b];}}YUI.applyConfig=function(x){if(!x){return;}if(YUI.GlobalConfig){this.prototype.applyConfig.call(this,YUI.GlobalConfig);}this.prototype.applyConfig.call(this,x);YUI.GlobalConfig=this.config;};YUI._init();if(g){n(window,"load",t);}else{t();}YUI.Env.add=n;YUI.Env.remove=v;if(typeof exports=="object"){exports.YUI=YUI;}}());YUI.add("yui-base",function(b){var i=b.Lang||(b.Lang={}),n=String.prototype,k=Object.prototype.toString,a={"undefined":"undefined","number":"number","boolean":"boolean","string":"string","[object Function]":"function","[object RegExp]":"regexp","[object Array]":"array","[object Date]":"date","[object Error]":"error"},c=/\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g,r=/^\s+|\s+$/g,e=/\{\s*\[(?:native code|function)\]\s*\}/i;i._isNative=function(v){return !!(b.config.useNativeES5&&v&&e.test(v));};i.isArray=i._isNative(Array.isArray)?Array.isArray:function(v){return i.type(v)==="array";};i.isBoolean=function(v){return typeof v==="boolean";};i.isDate=function(v){return i.type(v)==="date"&&v.toString()!=="Invalid Date"&&!isNaN(v);};i.isFunction=function(v){return i.type(v)==="function";};i.isNull=function(v){return v===null;};i.isNumber=function(v){return typeof v==="number"&&isFinite(v);};i.isObject=function(x,w){var v=typeof x;return(x&&(v==="object"||(!w&&(v==="function"||i.isFunction(x)))))||false;};i.isString=function(v){return typeof v==="string";};i.isUndefined=function(v){return typeof v==="undefined";};i.isValue=function(w){var v=i.type(w);switch(v){case"number":return isFinite(w);case"null":case"undefined":return false;default:return !!v;}};i.now=Date.now||function(){return new Date().getTime();};i.sub=function(v,w){return v.replace?v.replace(c,function(x,y){return i.isUndefined(w[y])?x:w[y];}):v;};i.trim=n.trim?function(v){return v&&v.trim?v.trim():v;}:function(v){try{return v.replace(r,"");}catch(w){return v;}};i.trimLeft=n.trimLeft?function(v){return v.trimLeft();}:function(v){return v.replace(/^\s+/,"");};i.trimRight=n.trimRight?function(v){return v.trimRight();}:function(v){return v.replace(/\s+$/,"");};i.type=function(v){return a[typeof v]||a[k.call(v)]||(v?"object":"null");};var f=b.Lang,q=Array.prototype,o=Object.prototype.hasOwnProperty;function j(x,A,z){var w,v;A||(A=0);if(z||j.test(x)){try{return q.slice.call(x,A);}catch(y){v=[];for(w=x.length;A<w;++A){v.push(x[A]);}return v;}}return[x];}b.Array=j;j.dedupe=function(A){var z={},x=[],w,y,v;for(w=0,v=A.length;w<v;++w){y=A[w];if(!o.call(z,y)){z[y]=1;x.push(y);}}return x;};j.each=j.forEach=f._isNative(q.forEach)?function(x,v,w){q.forEach.call(x||[],v,w||b);return b;}:function(z,x,y){for(var w=0,v=(z&&z.length)||0;w<v;++w){if(w in z){x.call(y||b,z[w],w,z);}}return b;};j.hash=function(y,w){var z={},A=(w&&w.length)||0,x,v;for(x=0,v=y.length;x<v;++x){if(x in y){z[y[x]]=A>x&&x in w?w[x]:true;}}return z;};j.indexOf=f._isNative(q.indexOf)?function(x,v,w){return q.indexOf.call(x,v,w);}:function(y,w,x){var v=y.length;x=+x||0;x=(x>0||-1)*Math.floor(Math.abs(x));if(x<0){x+=v;if(x<0){x=0;}}for(;x<v;++x){if(x in y&&y[x]===w){return x;}}return -1;};j.numericSort=function(w,v){return w-v;
3 3
 };j.some=f._isNative(q.some)?function(x,v,w){return q.some.call(x,v,w);}:function(z,x,y){for(var w=0,v=z.length;w<v;++w){if(w in z&&x.call(y,z[w],w,z)){return true;}}return false;};j.test=function(x){var v=0;if(f.isArray(x)){v=1;}else{if(f.isObject(x)){try{if("length" in x&&!x.tagName&&!x.alert&&!x.apply){v=2;}}catch(w){}}}return v;};function t(){this._init();this.add.apply(this,arguments);}t.prototype={_init:function(){this._q=[];},next:function(){return this._q.shift();},last:function(){return this._q.pop();},add:function(){this._q.push.apply(this._q,arguments);return this;},size:function(){return this._q.length;}};b.Queue=t;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new t();var m="__",o=Object.prototype.hasOwnProperty,l=b.Lang.isObject;b.cached=function(x,v,w){v||(v={});return function(y){var z=arguments.length>1?Array.prototype.join.call(arguments,m):String(y);if(!(z in v)||(w&&v[z]==w)){v[z]=x.apply(x,arguments);}return v[z];};};b.getLocation=function(){var v=b.config.win;return v&&v.location;};b.merge=function(){var x=arguments,y=0,w=x.length,v={};for(;y<w;++y){b.mix(v,x[y],true);}return v;};b.mix=function(v,w,C,x,z,D){var A,G,F,y,H,B,E;if(!v||!w){return v||b;}if(z){if(z===2){b.mix(v.prototype,w.prototype,C,x,0,D);}F=z===1||z===3?w.prototype:w;E=z===1||z===4?v.prototype:v;if(!F||!E){return v;}}else{F=w;E=v;}A=C&&!D;if(x){for(y=0,B=x.length;y<B;++y){H=x[y];if(!o.call(F,H)){continue;}G=A?false:H in E;if(D&&G&&l(E[H],true)&&l(F[H],true)){b.mix(E[H],F[H],C,null,0,D);}else{if(C||!G){E[H]=F[H];}}}}else{for(H in F){if(!o.call(F,H)){continue;}G=A?false:H in E;if(D&&G&&l(E[H],true)&&l(F[H],true)){b.mix(E[H],F[H],C,null,0,D);}else{if(C||!G){E[H]=F[H];}}}if(b.Object._hasEnumBug){b.mix(E,F,C,b.Object._forceEnum,z,D);}}return v;};var f=b.Lang,o=Object.prototype.hasOwnProperty,u,g=b.Object=f._isNative(Object.create)?function(v){return Object.create(v);}:(function(){function v(){}return function(w){v.prototype=w;return new v();};}()),d=g._forceEnum=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","toLocaleString","valueOf"],s=g._hasEnumBug=!{valueOf:0}.propertyIsEnumerable("valueOf"),p=g._hasProtoEnumBug=(function(){}).propertyIsEnumerable("prototype"),h=g.owns=function(w,v){return !!w&&o.call(w,v);};g.hasKey=h;g.keys=f._isNative(Object.keys)?Object.keys:function(z){if(!f.isObject(z)){throw new TypeError("Object.keys called on a non-object");}var y=[],x,w,v;if(p&&typeof z==="function"){for(w in z){if(h(z,w)&&w!=="prototype"){y.push(w);}}}else{for(w in z){if(h(z,w)){y.push(w);}}}if(s){for(x=0,v=d.length;x<v;++x){w=d[x];if(h(z,w)){y.push(w);}}}return y;};g.values=function(z){var y=g.keys(z),x=0,v=y.length,w=[];for(;x<v;++x){w.push(z[y[x]]);}return w;};g.size=function(w){try{return g.keys(w).length;}catch(v){return 0;}};g.hasValue=function(w,v){return b.Array.indexOf(g.values(w),v)>-1;};g.each=function(y,w,z,x){var v;for(v in y){if(x||h(y,v)){w.call(z||b,y[v],v,y);}}return b;};g.some=function(y,w,z,x){var v;for(v in y){if(x||h(y,v)){if(w.call(z||b,y[v],v,y)){return true;}}}return false;};g.getValue=function(z,y){if(!f.isObject(z)){return u;}var w,x=b.Array(y),v=x.length;for(w=0;z!==u&&w<v;w++){z=z[x[w]];}return z;};g.setValue=function(B,z,A){var v,y=b.Array(z),x=y.length-1,w=B;if(x>=0){for(v=0;w!==u&&v<x;v++){w=w[y[v]];}if(w!==u){w[y[v]]=A;}else{return u;}}return B;};g.isEmpty=function(v){return !g.keys(Object(v)).length;};YUI.Env.parseUA=function(B){var A=function(E){var F=0;return parseFloat(E.replace(/\./g,function(){return(F++==1)?"":".";}));},D=b.config.win,v=D&&D.navigator,y={ie:0,opera:0,gecko:0,webkit:0,safari:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,silk:0,accel:false,webos:0,caja:v&&v.cajaVersion,secure:false,os:null,nodejs:0},w=B||v&&v.userAgent,C=D&&D.location,x=C&&C.href,z;y.userAgent=w;y.secure=x&&(x.toLowerCase().indexOf("https")===0);if(w){if((/windows|win32/i).test(w)){y.os="windows";}else{if((/macintosh|mac_powerpc/i).test(w)){y.os="macintosh";}else{if((/android/i).test(w)){y.os="android";}else{if((/symbos/i).test(w)){y.os="symbos";}else{if((/linux/i).test(w)){y.os="linux";}else{if((/rhino/i).test(w)){y.os="rhino";}}}}}}if((/KHTML/).test(w)){y.webkit=1;}if((/IEMobile|XBLWP7/).test(w)){y.mobile="windows";}if((/Fennec/).test(w)){y.mobile="gecko";}z=w.match(/AppleWebKit\/([^\s]*)/);if(z&&z[1]){y.webkit=A(z[1]);y.safari=y.webkit;if(/ Mobile\//.test(w)||(/iPad|iPod|iPhone/).test(w)){y.mobile="Apple";z=w.match(/OS ([^\s]*)/);if(z&&z[1]){z=A(z[1].replace("_","."));}y.ios=z;y.os="ios";y.ipad=y.ipod=y.iphone=0;z=w.match(/iPad|iPod|iPhone/);if(z&&z[0]){y[z[0].toLowerCase()]=y.ios;}}else{z=w.match(/NokiaN[^\/]*|webOS\/\d\.\d/);if(z){y.mobile=z[0];}if(/webOS/.test(w)){y.mobile="WebOS";z=w.match(/webOS\/([^\s]*);/);if(z&&z[1]){y.webos=A(z[1]);}}if(/ Android/.test(w)){if(/Mobile/.test(w)){y.mobile="Android";}z=w.match(/Android ([^\s]*);/);if(z&&z[1]){y.android=A(z[1]);}}if(/Silk/.test(w)){z=w.match(/Silk\/([^\s]*)\)/);if(z&&z[1]){y.silk=A(z[1]);}if(!y.android){y.android=2.34;y.os="Android";}if(/Accelerated=true/.test(w)){y.accel=true;}}}z=w.match(/Chrome\/([^\s]*)/);if(z&&z[1]){y.chrome=A(z[1]);y.safari=0;}else{z=w.match(/AdobeAIR\/([^\s]*)/);if(z){y.air=z[0];}}}if(!y.webkit){if(/Opera/.test(w)){z=w.match(/Opera[\s\/]([^\s]*)/);if(z&&z[1]){y.opera=A(z[1]);}z=w.match(/Version\/([^\s]*)/);if(z&&z[1]){y.opera=A(z[1]);}if(/Opera Mobi/.test(w)){y.mobile="opera";z=w.replace("Opera Mobi","").match(/Opera ([^\s]*)/);if(z&&z[1]){y.opera=A(z[1]);}}z=w.match(/Opera Mini[^;]*/);if(z){y.mobile=z[0];}}else{z=w.match(/MSIE\s([^;]*)/);if(z&&z[1]){y.ie=A(z[1]);}else{z=w.match(/Gecko\/([^\s]*)/);if(z){y.gecko=1;z=w.match(/rv:([^\s\)]*)/);if(z&&z[1]){y.gecko=A(z[1]);}}}}}}if(!B){if(typeof process=="object"){if(process.versions&&process.versions.node){y.os=process.platform;y.nodejs=process.versions.node;}}YUI.Env.UA=y;}return y;};b.UA=YUI.Env.UA||YUI.Env.parseUA();YUI.Env.aliases={"anim":["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],"app":["app-base","app-transitions","model","model-list","router","view"],"attribute":["attribute-base","attribute-complex"],"autocomplete":["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"],"base":["base-base","base-pluginhost","base-build"],"cache":["cache-base","cache-offline","cache-plugin"],"collection":["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"],"controller":["router"],"dataschema":["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"],"datasource":["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"],"datatable":["datatable-core","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"],"datatable-deprecated":["datatable-base-deprecated","datatable-datasource-deprecated","datatable-sort-deprecated","datatable-scroll-deprecated"],"datatype":["datatype-number","datatype-date","datatype-xml"],"datatype-date":["datatype-date-parse","datatype-date-format"],"datatype-number":["datatype-number-parse","datatype-number-format"],"datatype-xml":["datatype-xml-parse","datatype-xml-format"],"dd":["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"],"dom":["dom-base","dom-screen","dom-style","selector-native","selector"],"editor":["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"],"event":["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange"],"event-custom":["event-custom-base","event-custom-complex"],"event-gestures":["event-flick","event-move"],"handlebars":["handlebars-compiler"],"highlight":["highlight-base","highlight-accentfold"],"history":["history-base","history-hash","history-hash-ie","history-html5"],"io":["io-base","io-xdr","io-form","io-upload-iframe","io-queue"],"json":["json-parse","json-stringify"],"loader":["loader-base","loader-rollup","loader-yui3"],"node":["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"],"pluginhost":["pluginhost-base","pluginhost-config"],"querystring":["querystring-parse","querystring-stringify"],"recordset":["recordset-base","recordset-sort","recordset-filter","recordset-indexer"],"resize":["resize-base","resize-proxy","resize-constrain"],"slider":["slider-base","slider-value-range","clickable-rail","range-slider"],"text":["text-accentfold","text-wordbreak"],"widget":["widget-base","widget-htmlparser","widget-skin","widget-uievents"]};
4  
-},"@VERSION@");YUI.add("get",function(c){var b=c.Lang,d,a;c.Get=d={cssOptions:{attributes:{rel:"stylesheet"},doc:c.config.linkDoc||c.config.doc,pollInterval:50},jsOptions:{autopurge:true,doc:c.config.scriptDoc||c.config.doc},options:{attributes:{charset:"utf-8"},purgethreshold:20},REGEX_CSS:/\.css(?:[?;].*)?$/i,REGEX_JS:/\.js(?:[?;].*)?$/i,_insertCache:{},_pending:null,_purgeNodes:[],_queue:[],abort:function(j){var f,k,g,e,h;if(!j.abort){k=j;h=this._pending;j=null;if(h&&h.transaction.id===k){j=h.transaction;this._pending=null;}else{for(f=0,e=this._queue.length;f<e;++f){g=this._queue[f].transaction;if(g.id===k){j=g;this._queue.splice(f,1);break;}}}}j&&j.abort();},css:function(f,e,g){return this._load("css",f,e,g);},js:function(f,e,g){return this._load("js",f,e,g);},load:function(f,e,g){return this._load(null,f,e,g);},_autoPurge:function(e){if(e&&this._purgeNodes.length>=e){this._purge(this._purgeNodes);}},_getEnv:function(){var f=c.config.doc,e=c.UA;return(this._env={async:f&&f.createElement("script").async===true,cssLoad:(!e.gecko&&!e.webkit)||e.gecko>=9||e.webkit>=535.24,preservesScriptOrder:!!(e.gecko||e.opera)});},_getTransaction:function(k,g){var l=[],h,e,j,f;if(!b.isArray(k)){k=[k];}g=c.merge(this.options,g);g.attributes=c.merge(this.options.attributes,g.attributes);for(h=0,e=k.length;h<e;++h){f=k[h];j={attributes:{}};if(typeof f==="string"){j.url=f;}else{if(f.url){c.mix(j,f,false,null,0,true);f=f.url;}else{continue;}}c.mix(j,g,false,null,0,true);if(!j.type){if(this.REGEX_CSS.test(f)){j.type="css";}else{if(!this.REGEX_JS.test(f)){}j.type="js";}}c.mix(j,j.type==="js"?this.jsOptions:this.cssOptions,false,null,0,true);j.attributes.id||(j.attributes.id=c.guid());if(j.win){j.doc=j.win.document;}else{j.win=j.doc.defaultView||j.doc.parentWindow;}if(j.charset){j.attributes.charset=j.charset;}l.push(j);}return new a(l,g);},_load:function(f,g,e,i){var h;if(typeof e==="function"){i=e;e={};}e||(e={});e.type=f;if(!this._env){this._getEnv();}h=this._getTransaction(g,e);this._queue.push({callback:i,transaction:h});this._next();return h;},_next:function(){var e;if(this._pending){return;}e=this._queue.shift();if(e){this._pending=e;e.transaction.execute(function(){e.callback&&e.callback.apply(this,arguments);d._pending=null;d._next();});}},_purge:function(e){var g=this._purgeNodes,i=e!==g,f,h;while(h=e.pop()){if(!h._yuiget_finished){continue;}h.parentNode&&h.parentNode.removeChild(h);if(i){f=c.Array.indexOf(g,h);if(f>-1){g.splice(f,1);}}}}};d.script=d.js;d.Transaction=a=function(g,f){var e=this;e.id=a._lastId+=1;e.data=f.data;e.errors=[];e.nodes=[];e.options=f;e.requests=g;e._callbacks=[];e._queue=[];e._waiting=0;e.tId=e.id;e.win=f.win||c.config.win;};a._lastId=0;a.prototype={_state:"new",abort:function(e){this._pending=null;this._pendingCSS=null;this._pollTimer=clearTimeout(this._pollTimer);this._queue=[];this._waiting=0;this.errors.push({error:e||"Aborted"});this._finish();},execute:function(m){var g=this,l=g.requests,k=g._state,h,f,e,j;if(k==="done"){m&&m(g.errors.length?g.errors:null,g);return;}else{m&&g._callbacks.push(m);if(k==="executing"){return;}}g._state="executing";g._queue=e=[];if(g.options.timeout){g._timeout=setTimeout(function(){g.abort("Timeout");},g.options.timeout);}for(h=0,f=l.length;h<f;++h){j=g.requests[h];if(j.async||j.type==="css"){g._insert(j);}else{e.push(j);}}g._next();},purge:function(){d._purge(this.nodes);},_createNode:function(g,f,i){var h=i.createElement(g),e;for(e in f){if(f.hasOwnProperty(e)){h.setAttribute(e,f[e]);}}return h;},_finish:function(){var k=this.errors.length?this.errors:null,f=this.options,j=f.context||this,h,g,e;if(this._state==="done"){return;}this._state="done";for(g=0,e=this._callbacks.length;g<e;++g){this._callbacks[g].call(j,k,this);}h=this._getEventData();if(k){if(f.onTimeout&&k[k.length-1].error==="Timeout"){f.onTimeout.call(j,h);}if(f.onFailure){f.onFailure.call(j,h);}}else{if(f.onSuccess){f.onSuccess.call(j,h);}}if(f.onEnd){f.onEnd.call(j,h);}},_getEventData:function(e){if(e){return c.merge(this,{abort:this.abort,purge:this.purge,request:e,url:e.url,win:e.win});}else{return this;}},_getInsertBefore:function(i){var j=i.doc,g=i.insertBefore,f,h,e;if(g){return typeof g==="string"?j.getElementById(g):g;}f=d._insertCache;e=c.stamp(j);if((g=f[e])){return g;}if((g=j.getElementsByTagName("base")[0])){return(f[e]=g);}g=j.head||j.getElementsByTagName("head")[0];if(g){g.appendChild(j.createTextNode(""));return(f[e]=g.lastChild);}return(f[e]=j.getElementsByTagName("script")[0]);},_insert:function(m){var j=d._env,k=this._getInsertBefore(m),g=m.type==="js",f=m.node,n=this,e=c.UA,h;if(!f){if(g){h="script";}else{if(!j.cssLoad&&e.gecko){h="style";}else{h="link";}}f=m.node=this._createNode(h,m.attributes,m.doc);}function i(){n._progress("Failed to load "+m.url,m);}function l(){n._progress(null,m);}if(g){f.setAttribute("src",m.url);if(m.async){f.async=true;}else{if(j.async){f.async=false;}if(!j.preservesScriptOrder){this._pending=m;}}}else{if(!j.cssLoad&&e.gecko){f.innerHTML=(m.attributes.charset?'@charset "'+m.attributes.charset+'";':"")+'@import "'+m.url+'";';}else{f.setAttribute("href",m.url);}}if(g&&e.ie&&e.ie<9){f.onreadystatechange=function(){if(/loaded|complete/.test(f.readyState)){f.onreadystatechange=null;l();}};}else{if(!g&&!j.cssLoad){this._poll(m);}else{f.onerror=i;f.onload=l;}}this._waiting+=1;this.nodes.push(f);k.parentNode.insertBefore(f,k);},_next:function(){if(this._pending){return;}if(this._queue.length){this._insert(this._queue.shift());}else{if(!this._waiting){this._finish();}}},_poll:function(m){var p=this,q=p._pendingCSS,k=c.UA.webkit,g,e,f,o,n,h;if(m){q||(q=p._pendingCSS=[]);q.push(m);if(p._pollTimer){return;}}p._pollTimer=null;for(g=0;g<q.length;++g){n=q[g];if(k){h=n.doc.styleSheets;f=h.length;o=n.node.href;while(--f>=0){if(h[f].href===o){q.splice(g,1);g-=1;p._progress(null,n);break;}}}else{try{e=!!n.node.sheet.cssRules;q.splice(g,1);g-=1;p._progress(null,n);}catch(l){}}}if(q.length){p._pollTimer=setTimeout(function(){p._poll.call(p);},p.options.pollInterval);
5  
-}},_progress:function(g,f){var e=this.options;if(g){f.error=g;this.errors.push({error:g,request:f});}f.node._yuiget_finished=f.finished=true;if(e.onProgress){e.onProgress.call(e.context||this,this._getEventData(f));}if(f.autopurge){d._autoPurge(this.options.purgethreshold);d._purgeNodes.push(f.node);}if(this._pending===f){this._pending=null;}this._waiting-=1;this._next();}};},"@VERSION@",{requires:["yui-base"]});YUI.add("features",function(b){var c={};b.mix(b.namespace("Features"),{tests:c,add:function(d,e,f){c[d]=c[d]||{};c[d][e]=f;},all:function(e,f){var g=c[e],d=[];if(g){b.Object.each(g,function(i,h){d.push(h+":"+(b.Features.test(e,h,f)?1:0));});}return(d.length)?d.join(";"):"";},test:function(e,g,f){f=f||[];var d,i,k,j=c[e],h=j&&j[g];if(!h){}else{d=h.result;if(b.Lang.isUndefined(d)){i=h.ua;if(i){d=(b.UA[i]);}k=h.test;if(k&&((!i)||d)){d=k.apply(b,f);}h.result=d;}}return d;}});var a=b.Features.add;a("load","0",{"name":"io-nodejs","trigger":"io-base","ua":"nodejs"});a("load","1",{"name":"graphics-canvas-default","test":function(h){var f=h.config.doc,g=h.config.defaultGraphicEngine&&h.config.defaultGraphicEngine=="canvas",e=f&&f.createElement("canvas"),d=(f&&f.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));return(!d||g)&&(e&&e.getContext&&e.getContext("2d"));},"trigger":"graphics"});a("load","2",{"name":"autocomplete-list-keys","test":function(d){return !(d.UA.ios||d.UA.android);},"trigger":"autocomplete-list"});a("load","3",{"name":"graphics-svg","test":function(h){var g=h.config.doc,f=!h.config.defaultGraphicEngine||h.config.defaultGraphicEngine!="canvas",e=g&&g.createElement("canvas"),d=(g&&g.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));return d&&(f||!e);},"trigger":"graphics"});a("load","4",{"name":"editor-para-ie","trigger":"editor-para","ua":"ie","when":"instead"});a("load","5",{"name":"graphics-vml-default","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});a("load","6",{"name":"graphics-svg-default","test":function(h){var g=h.config.doc,f=!h.config.defaultGraphicEngine||h.config.defaultGraphicEngine!="canvas",e=g&&g.createElement("canvas"),d=(g&&g.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));return d&&(f||!e);},"trigger":"graphics"});a("load","7",{"name":"history-hash-ie","test":function(e){var d=e.config.doc&&e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange" in e.config.win)||!d||d<8);},"trigger":"history-hash"});a("load","8",{"name":"transition-timer","test":function(g){var f=g.config.doc,e=(f)?f.documentElement:null,d=true;if(e&&e.style){d=!("MozTransition" in e.style||"WebkitTransition" in e.style);}return d;},"trigger":"transition"});a("load","9",{"name":"dom-style-ie","test":function(j){var h=j.Features.test,i=j.Features.add,f=j.config.win,g=j.config.doc,d="documentElement",e=false;i("style","computedStyle",{test:function(){return f&&"getComputedStyle" in f;}});i("style","opacity",{test:function(){return g&&"opacity" in g[d].style;}});e=(!h("style","opacity")&&!h("style","computedStyle"));return e;},"trigger":"dom-style"});a("load","10",{"name":"selector-css2","test":function(f){var e=f.config.doc,d=e&&!("querySelectorAll" in e);return d;},"trigger":"selector"});a("load","11",{"name":"widget-base-ie","trigger":"widget-base","ua":"ie"});a("load","12",{"name":"event-base-ie","test":function(e){var d=e.config.doc&&e.config.doc.implementation;return(d&&(!d.hasFeature("Events","2.0")));},"trigger":"node-base"});a("load","13",{"name":"dd-gestures","test":function(d){return((d.config.win&&("ontouchstart" in d.config.win))&&!(d.UA.chrome&&d.UA.chrome<6));},"trigger":"dd-drag"});a("load","14",{"name":"scrollview-base-ie","trigger":"scrollview-base","ua":"ie"});a("load","15",{"name":"app-transitions-native","test":function(f){var e=f.config.doc,d=e?e.documentElement:null;if(d&&d.style){return("MozTransition" in d.style||"WebkitTransition" in d.style);}return false;},"trigger":"app-transitions"});a("load","16",{"name":"graphics-canvas","test":function(h){var f=h.config.doc,g=h.config.defaultGraphicEngine&&h.config.defaultGraphicEngine=="canvas",e=f&&f.createElement("canvas"),d=(f&&f.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));return(!d||g)&&(e&&e.getContext&&e.getContext("2d"));},"trigger":"graphics"});a("load","17",{"name":"graphics-vml","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});},"@VERSION@",{requires:["yui-base"]});YUI.add("intl-base",function(b){var a=/[, ]/;b.mix(b.namespace("Intl"),{lookupBestLang:function(g,h){var f,j,c,e;function d(l){var k;for(k=0;k<h.length;k+=1){if(l.toLowerCase()===h[k].toLowerCase()){return h[k];}}}if(b.Lang.isString(g)){g=g.split(a);}for(f=0;f<g.length;f+=1){j=g[f];if(!j||j==="*"){continue;}while(j.length>0){c=d(j);if(c){return c;}else{e=j.lastIndexOf("-");if(e>=0){j=j.substring(0,e);if(e>=2&&j.charAt(e-2)==="-"){j=j.substring(0,e-2);}}else{break;}}}}return"";}});},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-log",function(d){var c=d,e="yui:log",a="undefined",b={debug:1,info:1,warn:1,error:1};c.log=function(j,s,g,q){var l,p,n,k,o,i=c,r=i.config,h=(i.fire)?i:YUI.Env.globalEvents;if(r.debug){if(g){p=r.logExclude;n=r.logInclude;if(n&&!(g in n)){l=1;}else{if(n&&(g in n)){l=!n[g];}else{if(p&&(g in p)){l=p[g];}}}}if(!l){if(r.useBrowserConsole){k=(g)?g+": "+j:j;if(i.Lang.isFunction(r.logFn)){r.logFn.call(i,j,s,g);}else{if(typeof console!=a&&console.log){o=(s&&console[s]&&(s in b))?s:"log";console[o](k);}else{if(typeof opera!=a){opera.postError(k);}}}}if(h&&!q){if(h==i&&(!h.getEvent(e))){h.publish(e,{broadcast:2});}h.fire(e,{msg:j,cat:s,src:g});
6  
-}}}return i;};c.message=function(){return c.log.apply(c,arguments);};},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-later",function(b){var a=[];b.later=function(j,f,k,g,h){j=j||0;g=(!b.Lang.isUndefined(g))?b.Array(g):a;f=f||b.config.win||b;var i=false,c=(f&&b.Lang.isString(k))?f[k]:k,d=function(){if(!i){if(!c.apply){c(g[0],g[1],g[2],g[3]);}else{c.apply(f,g||a);}}},e=(h)?setInterval(d,j):setTimeout(d,j);return{id:e,interval:h,cancel:function(){i=true;if(this.interval){clearInterval(e);}else{clearTimeout(e);}}};};b.Lang.later=b.later;},"@VERSION@",{requires:["yui-base"]});YUI.add("yui",function(a){},"@VERSION@",{use:["yui-base","get","features","intl-base","yui-log","yui-later"]});
  4
+},"@VERSION@");YUI.add("get",function(d){var c=d.Lang,b,e,a;d.Get=e={cssOptions:{attributes:{rel:"stylesheet"},doc:d.config.linkDoc||d.config.doc,pollInterval:50},jsOptions:{autopurge:true,doc:d.config.scriptDoc||d.config.doc},options:{attributes:{charset:"utf-8"},purgethreshold:20},REGEX_CSS:/\.css(?:[?;].*)?$/i,REGEX_JS:/\.js(?:[?;].*)?$/i,_insertCache:{},_pending:null,_purgeNodes:[],_queue:[],abort:function(k){var g,l,h,f,j;if(!k.abort){l=k;j=this._pending;k=null;if(j&&j.transaction.id===l){k=j.transaction;this._pending=null;}else{for(g=0,f=this._queue.length;g<f;++g){h=this._queue[g].transaction;if(h.id===l){k=h;this._queue.splice(g,1);break;}}}}k&&k.abort();},css:function(g,f,h){return this._load("css",g,f,h);},js:function(g,f,h){return this._load("js",g,f,h);},load:function(g,f,h){return this._load(null,g,f,h);},_autoPurge:function(f){if(f&&this._purgeNodes.length>=f){this._purge(this._purgeNodes);}},_getEnv:function(){var g=d.config.doc,f=d.UA;return(this._env={async:g&&g.createElement("script").async===true,cssLoad:(!f.gecko&&!f.webkit)||f.gecko>=9||f.webkit>=535.24,preservesScriptOrder:!!(f.gecko||f.opera)});},_getTransaction:function(l,h){var m=[],j,f,k,g;if(!c.isArray(l)){l=[l];}h=d.merge(this.options,h);h.attributes=d.merge(this.options.attributes,h.attributes);for(j=0,f=l.length;j<f;++j){g=l[j];k={attributes:{}};if(typeof g==="string"){k.url=g;}else{if(g.url){d.mix(k,g,false,null,0,true);g=g.url;}else{continue;}}d.mix(k,h,false,null,0,true);if(!k.type){if(this.REGEX_CSS.test(g)){k.type="css";}else{if(!this.REGEX_JS.test(g)){}k.type="js";}}d.mix(k,k.type==="js"?this.jsOptions:this.cssOptions,false,null,0,true);k.attributes.id||(k.attributes.id=d.guid());if(k.win){k.doc=k.win.document;}else{k.win=k.doc.defaultView||k.doc.parentWindow;}if(k.charset){k.attributes.charset=k.charset;}m.push(k);}return new a(m,h);},_load:function(g,h,f,j){var i;if(typeof f==="function"){j=f;f={};}f||(f={});f.type=g;if(!this._env){this._getEnv();}i=this._getTransaction(h,f);this._queue.push({callback:j,transaction:i});this._next();return i;},_next:function(){var f;if(this._pending){return;}f=this._queue.shift();if(f){this._pending=f;f.transaction.execute(function(){f.callback&&f.callback.apply(this,arguments);e._pending=null;e._next();});}},_purge:function(f){var h=this._purgeNodes,j=f!==h,g,i;while(i=f.pop()){if(!i._yuiget_finished){continue;}i.parentNode&&i.parentNode.removeChild(i);if(j){g=d.Array.indexOf(h,i);if(g>-1){h.splice(g,1);}}}}};e.script=e.js;e.Transaction=a=function(h,g){var f=this;f.id=a._lastId+=1;f.data=g.data;f.errors=[];f.nodes=[];f.options=g;f.requests=h;f._callbacks=[];f._queue=[];f._waiting=0;f.tId=f.id;f.win=g.win||d.config.win;};a._lastId=0;a.prototype={_state:"new",abort:function(f){this._pending=null;this._pendingCSS=null;this._pollTimer=clearTimeout(this._pollTimer);this._queue=[];this._waiting=0;this.errors.push({error:f||"Aborted"});this._finish();},execute:function(n){var h=this,m=h.requests,l=h._state,j,g,f,k;if(l==="done"){n&&n(h.errors.length?h.errors:null,h);return;}else{n&&h._callbacks.push(n);if(l==="executing"){return;}}h._state="executing";h._queue=f=[];if(h.options.timeout){h._timeout=setTimeout(function(){h.abort("Timeout");},h.options.timeout);}for(j=0,g=m.length;j<g;++j){k=h.requests[j];if(k.async||k.type==="css"){h._insert(k);}else{f.push(k);}}h._next();},purge:function(){e._purge(this.nodes);},_createNode:function(h,g,j){var i=j.createElement(h),f,k;if(!b){k=j.createElement("div");k.setAttribute("class","a");b=k.className==="a"?{}:{"for":"htmlFor","class":"className"};}for(f in g){if(g.hasOwnProperty(f)){i.setAttribute(b[f]||f,g[f]);}}return i;},_finish:function(){var l=this.errors.length?this.errors:null,g=this.options,k=g.context||this,j,h,f;if(this._state==="done"){return;}this._state="done";for(h=0,f=this._callbacks.length;h<f;++h){this._callbacks[h].call(k,l,this);}j=this._getEventData();if(l){if(g.onTimeout&&l[l.length-1].error==="Timeout"){g.onTimeout.call(k,j);}if(g.onFailure){g.onFailure.call(k,j);}}else{if(g.onSuccess){g.onSuccess.call(k,j);}}if(g.onEnd){g.onEnd.call(k,j);}},_getEventData:function(f){if(f){return d.merge(this,{abort:this.abort,purge:this.purge,request:f,url:f.url,win:f.win});}else{return this;}},_getInsertBefore:function(j){var k=j.doc,h=j.insertBefore,g,i,f;if(h){return typeof h==="string"?k.getElementById(h):h;}g=e._insertCache;f=d.stamp(k);if((h=g[f])){return h;}if((h=k.getElementsByTagName("base")[0])){return(g[f]=h);}h=k.head||k.getElementsByTagName("head")[0];if(h){h.appendChild(k.createTextNode(""));return(g[f]=h.lastChild);}return(g[f]=k.getElementsByTagName("script")[0]);},_insert:function(n){var k=e._env,l=this._getInsertBefore(n),h=n.type==="js",g=n.node,o=this,f=d.UA,i;if(!g){if(h){i="script";}else{if(!k.cssLoad&&f.gecko){i="style";}else{i="link";}}g=n.node=this._createNode(i,n.attributes,n.doc);}function j(){o._progress("Failed to load "+n.url,n);}function m(){o._progress(null,n);}if(h){g.setAttribute("src",n.url);if(n.async){g.async=true;}else{if(k.async){g.async=false;}if(!k.preservesScriptOrder){this._pending=n;}}}else{if(!k.cssLoad&&f.gecko){g.innerHTML=(n.attributes.charset?'@charset "'+n.attributes.charset+'";':"")+'@import "'+n.url+'";';}else{g.setAttribute("href",n.url);}}if(h&&f.ie&&f.ie<9){g.onreadystatechange=function(){if(/loaded|complete/.test(g.readyState)){g.onreadystatechange=null;m();}};}else{if(!h&&!k.cssLoad){this._poll(n);}else{g.onerror=j;g.onload=m;}}this._waiting+=1;this.nodes.push(g);l.parentNode.insertBefore(g,l);},_next:function(){if(this._pending){return;}if(this._queue.length){this._insert(this._queue.shift());}else{if(!this._waiting){this._finish();}}},_poll:function(n){var q=this,r=q._pendingCSS,l=d.UA.webkit,h,f,g,p,o,k;if(n){r||(r=q._pendingCSS=[]);r.push(n);if(q._pollTimer){return;}}q._pollTimer=null;for(h=0;h<r.length;++h){o=r[h];if(l){k=o.doc.styleSheets;g=k.length;p=o.node.href;while(--g>=0){if(k[g].href===p){r.splice(h,1);h-=1;q._progress(null,o);break;}}}else{try{f=!!o.node.sheet.cssRules;
  5
+r.splice(h,1);h-=1;q._progress(null,o);}catch(m){}}}if(r.length){q._pollTimer=setTimeout(function(){q._poll.call(q);},q.options.pollInterval);}},_progress:function(h,g){var f=this.options;if(h){g.error=h;this.errors.push({error:h,request:g});}g.node._yuiget_finished=g.finished=true;if(f.onProgress){f.onProgress.call(f.context||this,this._getEventData(g));}if(g.autopurge){e._autoPurge(this.options.purgethreshold);e._purgeNodes.push(g.node);}if(this._pending===g){this._pending=null;}this._waiting-=1;this._next();}};},"@VERSION@",{requires:["yui-base"]});YUI.add("features",function(b){var c={};b.mix(b.namespace("Features"),{tests:c,add:function(d,e,f){c[d]=c[d]||{};c[d][e]=f;},all:function(e,f){var g=c[e],d=[];if(g){b.Object.each(g,function(i,h){d.push(h+":"+(b.Features.test(e,h,f)?1:0));});}return(d.length)?d.join(";"):"";},test:function(e,g,f){f=f||[];var d,i,k,j=c[e],h=j&&j[g];if(!h){}else{d=h.result;if(b.Lang.isUndefined(d)){i=h.ua;if(i){d=(b.UA[i]);}k=h.test;if(k&&((!i)||d)){d=k.apply(b,f);}h.result=d;}}return d;}});var a=b.Features.add;a("load","0",{"name":"io-nodejs","trigger":"io-base","ua":"nodejs"});a("load","1",{"name":"graphics-canvas-default","test":function(h){var f=h.config.doc,g=h.config.defaultGraphicEngine&&h.config.defaultGraphicEngine=="canvas",e=f&&f.createElement("canvas"),d=(f&&f.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));return(!d||g)&&(e&&e.getContext&&e.getContext("2d"));},"trigger":"graphics"});a("load","2",{"name":"autocomplete-list-keys","test":function(d){return !(d.UA.ios||d.UA.android);},"trigger":"autocomplete-list"});a("load","3",{"name":"graphics-svg","test":function(h){var g=h.config.doc,f=!h.config.defaultGraphicEngine||h.config.defaultGraphicEngine!="canvas",e=g&&g.createElement("canvas"),d=(g&&g.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));return d&&(f||!e);},"trigger":"graphics"});a("load","4",{"name":"editor-para-ie","trigger":"editor-para","ua":"ie","when":"instead"});a("load","5",{"name":"graphics-vml-default","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});a("load","6",{"name":"graphics-svg-default","test":function(h){var g=h.config.doc,f=!h.config.defaultGraphicEngine||h.config.defaultGraphicEngine!="canvas",e=g&&g.createElement("canvas"),d=(g&&g.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));return d&&(f||!e);},"trigger":"graphics"});a("load","7",{"name":"history-hash-ie","test":function(e){var d=e.config.doc&&e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange" in e.config.win)||!d||d<8);},"trigger":"history-hash"});a("load","8",{"name":"transition-timer","test":function(g){var f=g.config.doc,e=(f)?f.documentElement:null,d=true;if(e&&e.style){d=!("MozTransition" in e.style||"WebkitTransition" in e.style);}return d;},"trigger":"transition"});a("load","9",{"name":"dom-style-ie","test":function(j){var h=j.Features.test,i=j.Features.add,f=j.config.win,g=j.config.doc,d="documentElement",e=false;i("style","computedStyle",{test:function(){return f&&"getComputedStyle" in f;}});i("style","opacity",{test:function(){return g&&"opacity" in g[d].style;}});e=(!h("style","opacity")&&!h("style","computedStyle"));return e;},"trigger":"dom-style"});a("load","10",{"name":"selector-css2","test":function(f){var e=f.config.doc,d=e&&!("querySelectorAll" in e);return d;},"trigger":"selector"});a("load","11",{"name":"widget-base-ie","trigger":"widget-base","ua":"ie"});a("load","12",{"name":"event-base-ie","test":function(e){var d=e.config.doc&&e.config.doc.implementation;return(d&&(!d.hasFeature("Events","2.0")));},"trigger":"node-base"});a("load","13",{"name":"dd-gestures","test":function(d){return((d.config.win&&("ontouchstart" in d.config.win))&&!(d.UA.chrome&&d.UA.chrome<6));},"trigger":"dd-drag"});a("load","14",{"name":"scrollview-base-ie","trigger":"scrollview-base","ua":"ie"});a("load","15",{"name":"app-transitions-native","test":function(f){var e=f.config.doc,d=e?e.documentElement:null;if(d&&d.style){return("MozTransition" in d.style||"WebkitTransition" in d.style);}return false;},"trigger":"app-transitions"});a("load","16",{"name":"graphics-canvas","test":function(h){var f=h.config.doc,g=h.config.defaultGraphicEngine&&h.config.defaultGraphicEngine=="canvas",e=f&&f.createElement("canvas"),d=(f&&f.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));return(!d||g)&&(e&&e.getContext&&e.getContext("2d"));},"trigger":"graphics"});a("load","17",{"name":"graphics-vml","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});},"@VERSION@",{requires:["yui-base"]});YUI.add("intl-base",function(b){var a=/[, ]/;b.mix(b.namespace("Intl"),{lookupBestLang:function(g,h){var f,j,c,e;function d(l){var k;for(k=0;k<h.length;k+=1){if(l.toLowerCase()===h[k].toLowerCase()){return h[k];}}}if(b.Lang.isString(g)){g=g.split(a);}for(f=0;f<g.length;f+=1){j=g[f];if(!j||j==="*"){continue;}while(j.length>0){c=d(j);if(c){return c;}else{e=j.lastIndexOf("-");if(e>=0){j=j.substring(0,e);if(e>=2&&j.charAt(e-2)==="-"){j=j.substring(0,e-2);}}else{break;}}}}return"";}});},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-log",function(d){var c=d,e="yui:log",a="undefined",b={debug:1,info:1,warn:1,error:1};c.log=function(j,s,g,q){var l,p,n,k,o,i=c,r=i.config,h=(i.fire)?i:YUI.Env.globalEvents;if(r.debug){if(g){p=r.logExclude;n=r.logInclude;if(n&&!(g in n)){l=1;}else{if(n&&(g in n)){l=!n[g];}else{if(p&&(g in p)){l=p[g];}}}}if(!l){if(r.useBrowserConsole){k=(g)?g+": "+j:j;if(i.Lang.isFunction(r.logFn)){r.logFn.call(i,j,s,g);}else{if(typeof console!=a&&console.log){o=(s&&console[s]&&(s in b))?s:"log";
  6
+console[o](k);}else{if(typeof opera!=a){opera.postError(k);}}}}if(h&&!q){if(h==i&&(!h.getEvent(e))){h.publish(e,{broadcast:2});}h.fire(e,{msg:j,cat:s,src:g});}}}return i;};c.message=function(){return c.log.apply(c,arguments);};},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-later",function(b){var a=[];b.later=function(j,f,k,g,h){j=j||0;g=(!b.Lang.isUndefined(g))?b.Array(g):a;f=f||b.config.win||b;var i=false,c=(f&&b.Lang.isString(k))?f[k]:k,d=function(){if(!i){if(!c.apply){c(g[0],g[1],g[2],g[3]);}else{c.apply(f,g||a);}}},e=(h)?setInterval(d,j):setTimeout(d,j);return{id:e,interval:h,cancel:function(){i=true;if(this.interval){clearInterval(e);}else{clearTimeout(e);}}};};b.Lang.later=b.later;},"@VERSION@",{requires:["yui-base"]});YUI.add("yui",function(a){},"@VERSION@",{use:["yui-base","get","features","intl-base","yui-log","yui-later"]});
21  build/yui-base/yui-base.js
@@ -3621,6 +3621,9 @@ Provides dynamic loading of remote JavaScript and CSS resources.
3621 3621
 **/
3622 3622
 
3623 3623
 var Lang = Y.Lang,
  3624
+
  3625
+    CUSTOM_ATTRS, // defined lazily in Y.Get.Transaction._createNode()
  3626
+
3624 3627
     Get, Transaction;
3625 3628
 
3626 3629
 Y.Get = Get = {
@@ -4501,11 +4504,25 @@ Transaction.prototype = {
4501 4504
     // -- Protected Methods ----------------------------------------------------
4502 4505
     _createNode: function (name, attrs, doc) {
4503 4506
         var node = doc.createElement(name),
4504  
-            attr;
  4507
+            attr, testEl;
  4508
+
  4509
+        if (!CUSTOM_ATTRS) {
  4510
+            // IE6 and IE7 expect property names rather than attribute names for
  4511
+            // certain attributes. Rather than sniffing, we do a quick feature
  4512
+            // test the first time _createNode() runs to determine whether we
  4513
+            // need to provide a workaround.
  4514
+            testEl = doc.createElement('div');
  4515
+            testEl.setAttribute('class', 'a');
  4516
+
  4517
+            CUSTOM_ATTRS = testEl.className === 'a' ? {} : {
  4518
+                'for'  : 'htmlFor',
  4519
+                'class': 'className'
  4520
+            };
  4521
+        }
4505 4522
 
4506 4523
         for (attr in attrs) {
4507 4524
             if (attrs.hasOwnProperty(attr)) {
4508  
-                node.setAttribute(attr, attrs[attr]);
  4525
+                node.setAttribute(CUSTOM_ATTRS[attr] || attr, attrs[attr]);
4509 4526
             }
4510 4527
         }
4511 4528
 
21  build/yui/yui-debug.js
@@ -3635,6 +3635,9 @@ Provides dynamic loading of remote JavaScript and CSS resources.
3635 3635
 **/
3636 3636
 
3637 3637
 var Lang = Y.Lang,
  3638
+
  3639
+    CUSTOM_ATTRS, // defined lazily in Y.Get.Transaction._createNode()
  3640
+
3638 3641
     Get, Transaction;
3639 3642
 
3640 3643
 Y.Get = Get = {
@@ -4531,11 +4534,25 @@ Transaction.prototype = {
4531 4534
     // -- Protected Methods ----------------------------------------------------
4532 4535
     _createNode: function (name, attrs, doc) {
4533 4536
         var node = doc.createElement(name),
4534  
-            attr;
  4537
+            attr, testEl;
  4538
+
  4539
+        if (!CUSTOM_ATTRS) {
  4540
+            // IE6 and IE7 expect property names rather than attribute names for
  4541
+            // certain attributes. Rather than sniffing, we do a quick feature
  4542
+            // test the first time _createNode() runs to determine whether we
  4543
+            // need to provide a workaround.
  4544
+            testEl = doc.createElement('div');
  4545
+            testEl.setAttribute('class', 'a');
  4546
+
  4547
+            CUSTOM_ATTRS = testEl.className === 'a' ? {} : {
  4548
+                'for'  : 'htmlFor',
  4549
+                'class': 'className'
  4550
+            };
  4551
+        }
4535 4552
 
4536 4553
         for (attr in attrs) {
4537 4554
             if (attrs.hasOwnProperty(attr)) {
4538  
-                node.setAttribute(attr, attrs[attr]);
  4555
+                node.setAttribute(CUSTOM_ATTRS[attr] || attr, attrs[attr]);
4539 4556
             }
4540 4557
         }
4541 4558
 
12  build/yui/yui-min.js
6 additions, 6 deletions not shown
21  build/yui/yui.js
@@ -3621,6 +3621,9 @@ Provides dynamic loading of remote JavaScript and CSS resources.
3621 3621
 **/
3622 3622
 
3623 3623
 var Lang = Y.Lang,
  3624
+
  3625
+    CUSTOM_ATTRS, // defined lazily in Y.Get.Transaction._createNode()
  3626
+
3624 3627
     Get, Transaction;
3625 3628
 
3626 3629
 Y.Get = Get = {
@@ -4501,11 +4504,25 @@ Transaction.prototype = {
4501 4504
     // -- Protected Methods ----------------------------------------------------
4502 4505
     _createNode: function (name, attrs, doc) {
4503 4506
         var node = doc.createElement(name),
4504  
-            attr;
  4507
+            attr, testEl;
  4508
+
  4509
+        if (!CUSTOM_ATTRS) {
  4510
+            // IE6 and IE7 expect property names rather than attribute names for
  4511
+            // certain attributes. Rather than sniffing, we do a quick feature
  4512
+            // test the first time _createNode() runs to determine whether we
  4513
+            // need to provide a workaround.
  4514
+            testEl = doc.createElement('div');
  4515
+            testEl.setAttribute('class', 'a');
  4516
+
  4517
+            CUSTOM_ATTRS = testEl.className === 'a' ? {} : {
  4518
+                'for'  : 'htmlFor',
  4519
+                'class': 'className'
  4520
+            };
  4521
+        }
4505 4522
 
4506 4523
         for (attr in attrs) {
4507 4524
             if (attrs.hasOwnProperty(attr)) {
4508  
-                node.setAttribute(attr, attrs[attr]);
  4525
+                node.setAttribute(CUSTOM_ATTRS[attr] || attr, attrs[attr]);
4509 4526
             }
4510 4527
         }
4511 4528
 
21  src/get/js/get.js
@@ -9,6 +9,9 @@ Provides dynamic loading of remote JavaScript and CSS resources.
9 9
 **/
10 10
 
11 11
 var Lang = Y.Lang,
  12
+
  13
+    CUSTOM_ATTRS, // defined lazily in Y.Get.Transaction._createNode()
  14
+
12 15
     Get, Transaction;
13 16
 
14 17
 Y.Get = Get = {
@@ -905,11 +908,25 @@ Transaction.prototype = {
905 908
     // -- Protected Methods ----------------------------------------------------
906 909
     _createNode: function (name, attrs, doc) {
907 910
         var node = doc.createElement(name),
908  
-            attr;
  911
+            attr, testEl;
  912
+
  913
+        if (!CUSTOM_ATTRS) {
  914
+            // IE6 and IE7 expect property names rather than attribute names for
  915
+            // certain attributes. Rather than sniffing, we do a quick feature
  916
+            // test the first time _createNode() runs to determine whether we
  917
+            // need to provide a workaround.
  918
+            testEl = doc.createElement('div');
  919
+            testEl.setAttribute('class', 'a');
  920
+
  921
+            CUSTOM_ATTRS = testEl.className === 'a' ? {} : {
  922
+                'for'  : 'htmlFor',
  923
+                'class': 'className'
  924
+            };
  925
+        }
909 926
 
910 927
         for (attr in attrs) {
911 928
             if (attrs.hasOwnProperty(attr)) {
912  
-                node.setAttribute(attr, attrs[attr]);
  929
+                node.setAttribute(CUSTOM_ATTRS[attr] || attr, attrs[attr]);
913 930
             }
914 931
         }
915 932
 
19  src/get/tests/get-test.js
@@ -2256,9 +2256,24 @@ YUI.add('get-test', function (Y) {
2256 2256
         }
2257 2257
     });
2258 2258
 
2259  
-    // -- TODO: Options --------------------------------------------------------------
  2259
+    // -- Options --------------------------------------------------------------
2260 2260
     Y.GetTests.Options = new Y.Test.Case({
2261  
-        name: 'Options'
  2261
+        name: 'Options',
  2262
+
  2263
+        '`class` attribute should be set correctly in all browsers': function () {
  2264
+            var test = this;
  2265
+
  2266
+            this.t = Y.Get.js('getfiles/a.js', {
  2267
+                attributes: {'class': 'get-class-test'}
  2268
+            }, function (err, t) {
  2269
+                test.resume(function () {
  2270
+                    Assert.areSame('get-class-test', t.nodes[0].className, 'className should be set');
  2271
+                    Assert.areSame(1, Y.all('.get-class-test').size(), 'selector should return one node');
  2272
+                });
  2273
+            });
  2274
+
  2275
+            this.wait();
  2276
+        }
2262 2277
     });
2263 2278
 
2264 2279
     // -- Functional tests -----------------------------------------------------

0 notes on commit fbf33b9

Please sign in to comment.
Something went wrong with that request. Please try again.