webui-aria2/js/libs/dijit/dijit.js

15 lines
73 KiB
JavaScript
Raw Normal View History

/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
/*
This is an optimized version of Dojo, built for deployment and not for
development. To get sources and documentation, please visit:
http://dojotoolkit.org
*/
//>>built
require({cache:{"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_1,_2,_3,_4,_5){var _6=_5.doc.documentElement,ie=_4("ie"),_7=_4("opera"),_8=Math.floor,ff=_4("ff"),_9=_1.boxModel.replace(/-/,""),_a={"dj_ie":ie,"dj_ie6":_8(ie)==6,"dj_ie7":_8(ie)==7,"dj_ie8":_8(ie)==8,"dj_ie9":_8(ie)==9,"dj_quirks":_4("quirks"),"dj_iequirks":ie&&_4("quirks"),"dj_opera":_7,"dj_khtml":_4("khtml"),"dj_webkit":_4("webkit"),"dj_safari":_4("safari"),"dj_chrome":_4("chrome"),"dj_gecko":_4("mozilla"),"dj_ff3":_8(ff)==3};_a["dj_"+_9]=true;var _b="";for(var _c in _a){if(_a[_c]){_b+=_c+" ";}}_6.className=_2.trim(_6.className+" "+_b);_3(90,function(){if(!_1.isBodyLtr()){var _d="dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl ");_6.className=_2.trim(_6.className+" "+_d+"dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl "));}});return _4;});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_e,_f,_10,_11,_12,_13,has,win){if(has("ie")||has("mozilla")){_13(90,function(){var div=_11.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_f.blankGif||_e.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_12.getComputedStyle(div);if(cs){var _14=cs.backgroundImage;var _15=(cs.borderTopColor==cs.borderRightColor)||(_14!=null&&(_14=="none"||_14=="url(invalid-url:)"));if(_15){_10.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_16,_17){return _16("dijit._Contained",null,{_getSibling:function(_18){var _19=this.domNode;do{_19=_19[_18+"Sibling"];}while(_19&&_19.nodeType!=1);return _19&&_17.byNode(_19);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dojo/parser":function(){define(["./_base/kernel","./_base/lang","./_base/array","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./query","./on","./ready"],function(_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22,_23,don){new Date("X");var _24={"dom-attributes-explicit":document.createElement("div").attributes.length<40};function has(_25){return _24[_25];};_1a.parser=new function(){var _26={};function _27(_28){var map={};for(var _29 in _28){if(_29.charAt(0)=="_"){continue;}map[_29.toLowerCase()]=_29;}return map;};_21.after(_1b,"extend",function(){_26={};},true);var _2a={};this._functionFromScript=function(_2b,_2c){var _2d="";var _2e="";var _2f=(_2b.getAttribute(_2c+"args")||_2b.getAttribute("args"));if(_2f){_1c.forEach(_2f.split(/\s*,\s*/),function(_30,idx){_2d+="var "+_30+" = arguments["+idx+"]; ";});}var _31=_2b.getAttribute("with");if(_31&&_31.length){_1c.forEach(_31.split(/\s*,\s*/),function(_32){_2d+="with("+_32+"){";_2e+="}";});}return new Function(_2d+_2b.innerHTML+_2e);};this.instantiate=function(_33,_34,_35){var _36=[],_34=_34||{};_35=_35||{};var _37=(_35.scope||_1a._scopeName)+"Type",_38="data-"+(_35.scope||_1a._scopeName)+"-",_39=_38+"type",_3a=_38+"props",_3b=_38+"attach-point",_3c=_38+"attach-event",_3d=_38+"id";var _3e={};_1c.forEach([_3a,_39,_37,_3d,"jsId",_3b,_3c,"dojoAttachPoint","dojoAttachEvent","class","style"],function(_3f){_3e[_3f.toLowerCase()]=_3f.replace(_35.scope,"dojo");});_1c.forEach(_33,function(obj){if(!obj){return;}var _40=obj.node||obj,_41=_37 in _34?_34[_37]:obj.node?obj.type:(_40.getAttribute(_39)||_40.getAttribute(_37)),_42=_2a[_41]||(_2a[_41]=_1b.getObject(_41)),_43=_42&&_42.prototype;if(!_42){throw new Error("Could not load class '"+_41);}var _44={};if(_35.defaults){_1b.mixin(_44,_35.defaults);}if(obj.inherited){_1b.mixin(_44,obj.inherited);}var _45;if(has("dom-attributes-e