29 lines
74 KiB
JavaScript
29 lines
74 KiB
JavaScript
|
|
/*
|
||
|
|
* Ext Core Library 3.0 Beta
|
||
|
|
* http://extjs.com/
|
||
|
|
* Copyright(c) 2006-2009, Ext JS, LLC.
|
||
|
|
*
|
||
|
|
* The MIT License
|
||
|
|
*
|
||
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
|
* of this software and associated documentation files (the "Software"), to deal
|
||
|
|
* in the Software without restriction, including without limitation the rights
|
||
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
|
* copies of the Software, and to permit persons to whom the Software is
|
||
|
|
* furnished to do so, subject to the following conditions:
|
||
|
|
*
|
||
|
|
* The above copyright notice and this permission notice shall be included in
|
||
|
|
* all copies or substantial portions of the Software.
|
||
|
|
*
|
||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
|
|
* THE SOFTWARE.
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
Ext={version:"3.0"};window.undefined=window.undefined;Ext.apply=function(e,g,d){if(d){Ext.apply(e,d)}if(e&&g&&typeof g=="object"){for(var b in g){e[b]=g[b]}}return e};(function(){var g=0,r=navigator.userAgent.toLowerCase(),x=function(e){return e.test(r)},l=document.compatMode=="CSS1Compat",z=x(/opera/),i=x(/chrome/),s=x(/webkit/),v=!i&&x(/safari/),b=v&&x(/version\/3/),A=v&&x(/version\/4/),q=!z&&x(/msie/),p=q&&x(/msie 7/),o=q&&x(/msie 8/),n=!s&&x(/gecko/),c=n&&x(/rv:1\.9/),t=q&&!l,y=x(/windows|win32/),k=x(/macintosh|mac os x/),j=x(/adobeair/),m=x(/linux/),d=/^https/i.test(window.location.protocol);if(q&&!p){try{document.execCommand("BackgroundImageCache",false,true)}catch(u){}}Ext.apply(Ext,{isStrict:l,isSecure:d,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,applyIf:function(B,C){if(B){for(var e in C){if(Ext.isEmpty(B[e])){B[e]=C[e]}}}return B},id:function(e,B){return(e=Ext.getDom(e)||{}).id=e.id||(B||"ext-gen")+(++g)},extend:function(){var B=function(D){for(var C in D){this[C]=D[C]}};var e=Object.prototype.constructor;return function(I,E,H){if(Ext.isObject(E)){H=E;E=I;I=H.constructor!=e?H.constructor:function(){E.apply(this,arguments)}}var D=function(){},G,C=E.prototype;D.prototype=C;G=I.prototype=new D();G.constructor=I;I.superclass=C;if(C.constructor==e){C.constructor=E}I.override=function(F){Ext.override(I,F)};G.superclass=G.supr=(function(){return C});G.override=B;Ext.override(I,H);I.extend=function(F){Ext.extend(I,F)};return I}}(),override:function(e,C){if(C){var B=e.prototype;Ext.apply(B,C);if(Ext.isIE&&C.toString!=e.toString){B.toString=C.toString}}},namespace:function(){var B,e;Ext.each(arguments,function(C){e=C.split(".");B=window[e[0]]=window[e[0]]||{};Ext.each(e.slice(1),function(D){B=B[D]=B[D]||{}})});return B},urlEncode:function(F,E){var B=[],C,D=encodeURIComponent;for(C in F){Ext.each(F[C]||C,function(G,e){B.push("&",D(C),"=",G!=C?D(G):"")})}if(!E){B.shift();E=""}return E+B.join("")},urlDecode:function(C,B){var F={},E=C.split("&"),G=decodeURIComponent,e,D;Ext.each(E,function(H){H=H.split("=");e=G(H[0]);D=G(H[1]);F[e]=B||!F[e]?D:[].concat(F[e]).concat(D)});return F},toArray:function(){return q?function(e,D,B,C){C=[];Ext.each(e,function(E){C.push(E)});return C.slice(D||0,B||C.length)}:function(e,C,B){return Array.prototype.slice.call(e,C||0,B||e.length)}}(),each:function(E,D,C){if(Ext.isEmpty(E,true)){return}if(typeof E.length=="undefined"||typeof E=="string"){E=[E]}for(var B=0,e=E.length;B<e;B++){if(D.call(C||E[B],E[B],B,E)===false){return B}}},getDom:function(e){if(!e||!document){return null}return e.dom?e.dom:(typeof e=="string"?document.getElementById(e):e)},getBody:function(){return Ext.get(document.body||document.documentElement)},removeNode:q?function(){var e;return function(B){if(B&&B.tagName!="BODY"){e=e||document.createElement("div");e.appendChild(B);e.innerHTML=""}}}():function(e){if(e&&e.parentNode&&e.tagName!="BODY"){e.parentNode.removeChild(e)}},isEmpty:function(B,e){return B===null||B===undefined||((Ext.isArray(B)&&!B.length))||(!e?B==="":false)},isArray:function(e){return Object.prototype.toString.apply(e)==="[object Array]"},isObject:function(e){return e&&typeof e=="object"},isPrimitive:function(e){var B=typeof e;return B=="string"||B=="number"||B=="boolean"},isFunction:function(e){return typeof e=="function"},isOpera:z,isWebKit:s,isChrome:i,isSafari:v,isSafari3:b,isSafari4:A,isSafari2:v&&!b,isIE:q,isIE6:q&&!p&&!o,isIE7:p,isIE8:o,isGecko:n,isGecko2:n&&!c,isGecko3:c,isBorderBox:t,isLinux:m,isWindows:y,isMac:k,isAir:j});Ext.ns=Ext.namespace})();Ext.ns("Ext","Ext.util","Ext.lib","Ext.data");Ext.apply(Function.prototype,{createInterceptor:function(c,b){var d=this;return !Ext.isFunction(c)?this:function(){var g=this,e=arguments;c.target=g;c.method=d;return(c.apply(b||g||window,e)!==false)?d.apply(g||window,e):null}},createCallback:function(){var b=arguments,c=this;return function(){return c.apply(window,b)}},createDelegate:function(d,c,b){var e=this;return function(){var i=c||arguments;if(b===true){i=Array.prototype.slice.call(arguments,0);i=i.concat(c)}else{if(typeof b
|