-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-java-applet-compiled.js
More file actions
73 lines (64 loc) · 20.3 KB
/
deploy-java-applet-compiled.js
File metadata and controls
73 lines (64 loc) · 20.3 KB
1
/**Example:var myApplet = new Applet( [ ['jnlp_href','/src/applet-webstart.jnlp'], ['HOST','stroytorgi.dev'], ['PHPSESSID','m0cf9jmq10r2em3mlregn4cpu6'] ], 0, // applet tag width 0 // applet tag height );myApplet.addCallback( 'STARTED_CALLBACK', function(){console.log(this);}, true // "is ready" method );myApplet.addCallback( 'MESSAGE_CALLBACK', function(){console.log('MESSAGE_CALLBACK');} );myApplet.addCallback( 'FINISH_CALLBACK', function(){console.log('FINISH_CALLBACK');} ); myApplet.render();//myApplet.destroy();*/(function(){var h,k=this;function l(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"== b&&"undefined"==typeof a.call)return"object";return b}function aa(a){var b=l(a);return"array"==b||"object"==b&&"number"==typeof a.length}function n(a){return"string"==typeof a}function p(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var q="closure_uid_"+(1E9*Math.random()>>>0),r=0;function s(a,b){function c(){}c.prototype=b.prototype;a.c=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.ba=function(a,c,f){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}};function t(a){if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}s(t,Error);t.prototype.name="CustomError";var u;function ba(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function v(a){if(!ca.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(da,"&"));-1!=a.indexOf("<")&&(a=a.replace(ea,"<"));-1!=a.indexOf(">")&&(a=a.replace(fa,">"));-1!=a.indexOf('"')&&(a=a.replace(ga,"""));-1!=a.indexOf("'")&&(a=a.replace(ha,"'"));return a}var da=/&/g,ea=/</g,fa=/>/g,ga=/"/g,ha=/'/g,ca=/[&<>"']/;function w(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var m=d[g]||"",X=e[g]||"",Ya=RegExp("(\\d*)(\\D*)","g"),Za=RegExp("(\\d*)(\\D*)","g");do{var I=Ya.exec(m)||["","",""],J=Za.exec(X)||["","",""];if(0==I[0].length&&0==J[0].length)break;c=x(0==I[1].length?0:parseInt(I[1],10),0==J[1].length?0:parseInt(J[1],10))||x(0==I[2].length,0==J[2].length)||x(I[2],J[2])}while(0== c)}return c}function x(a,b){return a<b?-1:a>b?1:0};function y(a,b){b.unshift(a);t.call(this,ba.apply(null,b));b.shift()}s(y,t);y.prototype.name="AssertionError";function ia(a,b){throw new y("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var z=Array.prototype,ja=z.indexOf?function(a,b,c){return z.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(n(a))return n(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},A=z.forEach?function(a,b,c){z.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};function ka(a,b){var c=ja(a,b),d;(d=0<=c)&&z.splice.call(a,c,1);return d}function la(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function ma(a,b,c){return 2>=arguments.length?z.slice.call(a,b):z.slice.call(a,b,c)};var B;a:{var na=k.navigator;if(na){var oa=na.userAgent;if(oa){B=oa;break a}}B=""};var C=-1!=B.indexOf("Opera")||-1!=B.indexOf("OPR"),D=-1!=B.indexOf("Trident")||-1!=B.indexOf("MSIE"),E=-1!=B.indexOf("Gecko")&&-1==B.toLowerCase().indexOf("webkit")&&!(-1!=B.indexOf("Trident")||-1!=B.indexOf("MSIE")),F=-1!=B.toLowerCase().indexOf("webkit"),pa=k.navigator||null,qa=-1!=(pa&&pa.platform||"").indexOf("Win");function ra(){var a=k.document;return a?a.documentMode:void 0}var sa=function(){var a="",b;if(C&&k.opera)return a=k.opera.version,"function"==l(a)?a():a;E?b=/rv\:([^\);]+)(\)|;)/:D?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:F&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(B))?a[1]:"");return D&&(b=ra(),b>parseFloat(a))?String(b):a}(),ta={};function G(a){return ta[a]||(ta[a]=0<=w(sa,a))}var ua=k.document,va=ua&&D?ra()||("CSS1Compat"==ua.compatMode?parseInt(sa,10):5):void 0;var wa;wa=!1;var H=B;H&&(-1!=H.indexOf("Firefox")||-1!=H.indexOf("Camino")||-1!=H.indexOf("iPhone")||-1!=H.indexOf("iPod")||-1!=H.indexOf("iPad")||-1!=H.indexOf("Chrome")||-1!=H.indexOf("Android")||-1!=H.indexOf("Safari")&&(wa=!0));var xa=wa;var ya=!D||D&&9<=va;!E&&!D||D&&D&&9<=va||E&&G("1.9.1");D&&G("9");function za(a,b){var c;c=a.className;c=n(c)&&c.match(/\S+/g)||[];for(var d=ma(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=ja(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Aa(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Ba(a,b){var c;a:{for(c in a)if(b.call(void 0,a[c],c,a))break a;c=void 0}return c&&a[c]}var Ca="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Da(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ca.length;f++)c=Ca[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Ea(a,b){Aa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Fa?a.setAttribute(Fa[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Fa={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Ga(a,b,c){return Ha(document,arguments)}function Ha(a,b){var c=b[0],d=b[1];if(!ya&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',v(d.name),'"');if(d.type){c.push(' type="',v(d.type),'"');var e={};Da(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:"array"==l(d)?za.apply(null,[c].concat(d)):Ea(c,d));2<b.length&&Ia(a,c,b,2);return c}function Ia(a,b,c,d){function e(c){c&&b.appendChild(n(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(!aa(f)||p(f)&&0<f.nodeType)e(f);else{var g;a:{if(f&&"number"==typeof f.length){if(p(f)){g="function"==typeof f.item||"string"==typeof f.item;break a}if("function"==l(f)){g="function"==typeof f.item;break a}}g=!1}A(g?la(f):f,e)}}}function K(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function Ja(a){this.k=a||k.document||document}h=Ja.prototype;h.P=function(a){return n(a)?this.k.getElementById(a):a};h.G=function(a,b,c){return Ha(this.k,arguments)};h.createElement=function(a){return this.k.createElement(a)};h.createTextNode=function(a){return this.k.createTextNode(String(a))};h.appendChild=function(a,b){a.appendChild(b)};h.append=function(a,b){Ia(9==a.nodeType?a:a.ownerDocument||a.document,a,arguments,1)};h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};h.removeNode=K;h.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};function L(){0!=Ka&&(La[this[q]||(this[q]=++r)]=this)}var Ka=0,La={};L.prototype.N=!1;L.prototype.t=function(){if(!this.N&&(this.N=!0,this.e(),0!=Ka)){var a=this[q]||(this[q]=++r);delete La[a]}};L.prototype.e=function(){if(this.T)for(;this.T.length;)this.T.shift()()};var Ma=!D||D&&9<=va,Na=D&&!G("9");!F||G("528");E&&G("1.9b")||D&&G("8")||C&&G("9.5")||F&&G("528");E&&!G("8")||D&&G("9");function M(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.i=!1;this.U=!0}M.prototype.e=function(){};M.prototype.t=function(){};M.prototype.stopPropagation=function(){this.i=!0};M.prototype.preventDefault=function(){this.defaultPrevented=!0;this.U=!1};function Oa(a){Oa[" "](a);return a}Oa[" "]=function(){};function N(a,b){M.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.l=this.state=null;if(a){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(E){var e;a:{try{Oa(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=null)}}else"mouseover"==c?d= a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=F||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=F||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey= a.metaKey;this.state=a.state;this.l=a;a.defaultPrevented&&this.preventDefault()}}s(N,M);N.prototype.stopPropagation=function(){N.c.stopPropagation.call(this);this.l.stopPropagation?this.l.stopPropagation():this.l.cancelBubble=!0};N.prototype.preventDefault=function(){N.c.preventDefault.call(this);var a=this.l;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Na)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};N.prototype.e=function(){};var Pa="closure_listenable_"+(1E6*Math.random()|0);function Qa(a){try{return!(!a||!a[Pa])}catch(b){return!1}}var Ra=0;function Sa(a,b,c,d,e){this.g=a;this.D=null;this.src=b;this.type=c;this.q=!!d;this.w=e;this.key=++Ra;this.j=this.p=!1}function O(a){a.j=!0;a.g=null;a.D=null;a.src=null;a.w=null};function P(a){this.src=a;this.a={};this.o=0}P.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.a[f];a||(a=this.a[f]=[],this.o++);var g=Ta(a,b,d,e);-1<g?(b=a[g],c||(b.p=!1)):(b=new Sa(b,this.src,f,!!d,e),b.p=c,a.push(b));return b};P.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.a))return!1;var e=this.a[a];b=Ta(e,b,c,d);return-1<b?(O(e[b]),z.splice.call(e,b,1),0==e.length&&(delete this.a[a],this.o--),!0):!1};function Ua(a,b){var c=b.type;c in a.a&&ka(a.a[c],b)&&(O(b),0==a.a[c].length&&(delete a.a[c],a.o--))}function Va(a,b){var c=b&&b.toString(),d=0,e;for(e in a.a)if(!c||e==c){for(var f=a.a[e],g=0;g<f.length;g++)++d,O(f[g]);delete a.a[e];a.o--}}P.prototype.I=function(a,b,c,d){a=this.a[a.toString()];var e=-1;a&&(e=Ta(a,b,c,d));return-1<e?a[e]:null};function Ta(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.j&&f.g==b&&f.q==!!c&&f.w==d)return e}return-1};var Wa="closure_lm_"+(1E6*Math.random()|0),Xa={},$a=0;function ab(a,b,c,d,e){if("array"==l(b))for(var f=0;f<b.length;f++)ab(a,b[f],c,d,e);else if(c=bb(c),Qa(a))a.d.add(String(b),c,!1,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,g=Q(a);g||(a[Wa]=g=new P(a));c=g.add(b,c,!1,d,e);c.D||(d=cb(),c.D=d,d.src=a,d.g=c,a.addEventListener?a.addEventListener(b.toString(),d,f):a.attachEvent(db(b.toString()),d),$a++)}}function cb(){var a=eb,b=Ma?function(c){return a.call(b.src,b.g,c)}:function(c){c=a.call(b.src,b.g,c);if(!c)return c};return b}function fb(a,b,c,d,e){if("array"==l(b))for(var f=0;f<b.length;f++)fb(a,b[f],c,d,e);else c=bb(c),Qa(a)?a.d.remove(String(b),c,d,e):a&&(a=Q(a))&&(b=a.I(b,c,!!d,e))&&gb(b)}function gb(a){if("number"!=typeof a&&a&&!a.j){var b=a.src;if(Qa(b))Ua(b.d,a);else{var c=a.type,d=a.D;b.removeEventListener?b.removeEventListener(c,d,a.q):b.detachEvent&&b.detachEvent(db(c),d);$a--;(c=Q(b))?(Ua(c,a),0==c.o&&(c.src=null,b[Wa]=null)):O(a)}}}function db(a){return a in Xa?Xa[a]:Xa[a]="on"+a}function hb(a,b,c,d){var e=1;if(a=Q(a))if(b=a.a[b.toString()])for(b=la(b),a=0;a<b.length;a++){var f=b[a];f&&f.q==c&&!f.j&&(e&=!1!==ib(f,d))}return Boolean(e)}function ib(a,b){var c=a.g,d=a.w||a.src;a.p&&gb(a);return c.call(d,b)}function eb(a,b){if(a.j)return!0;if(!Ma){var c;if(!(c=b))a:{c=["window","event"];for(var d=k,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break a}c=d}e=c;c=new N(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(g){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,m=e.length-1;!c.i&&0<=m;m--)c.currentTarget=e[m],d&=hb(e[m],f,!0,c);for(m=0;!c.i&&m<e.length;m++)c.currentTarget= e[m],d&=hb(e[m],f,!1,c)}return d}return ib(a,new N(b,this))}function Q(a){a=a[Wa];return a instanceof P?a:null}var jb="__closure_events_fn_"+(1E9*Math.random()>>>0);function bb(a){return"function"==l(a)?a:a[jb]||(a[jb]=function(b){return a.handleEvent(b)})};function R(){L.call(this);this.d=new P(this);this.V=this}s(R,L);R.prototype[Pa]=!0;h=R.prototype;h.C=null;h.L=function(a){this.C=a};h.addEventListener=function(a,b,c,d){ab(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){fb(this,a,b,c,d)};h.dispatchEvent=function(a){var b,c=this.C;if(c)for(b=[];c;c=c.C)b.push(c);var c=this.V,d=a.type||a;if(n(a))a=new M(a,c);else if(a instanceof M)a.target=a.target||c;else{var e=a;a=new M(d,c);Da(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.i&&0<=g;g--)f=a.currentTarget=b[g],e=S(f,d,!0,a)&&e;a.i||(f=a.currentTarget=c,e=S(f,d,!0,a)&&e,a.i||(e=S(f,d,!1,a)&&e));if(b)for(g=0;!a.i&&g<b.length;g++)f=a.currentTarget=b[g],e=S(f,d,!1,a)&&e;return e};h.e=function(){R.c.e.call(this);this.d&&Va(this.d,void 0);this.C=null};function S(a,b,c,d){b=a.d.a[String(b)];if(!b)return!0;b=la(b);for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.j&&g.q==c){var m=g.g,X=g.w||g.src;g.p&&Ua(a.d,g);e=!1!==m.call(X,d)&&e}}return e&&0!=d.U}h.I=function(a,b,c,d){return this.d.I(String(a),b,c,d)};function T(){}T.W=function(){return T.R?T.R:T.R=new T};T.prototype.Y=0;function U(a){R.call(this);this.O=a||u||(u=new Ja)}s(U,R);h=U.prototype;h.X=T.W();h.Q=null;h.f=!1;h.b=null;h.h=null;h.s=null;h.r=null;h.aa=!1;h.P=function(){return this.b};h.getParent=function(){return this.h};h.L=function(a){if(this.h&&this.h!=a)throw Error("Method not supported");U.c.L.call(this,a)};h.G=function(){this.b=this.O.createElement("div")};h.$=function(a){this.K(a)};h.K=function(a,b){if(this.f)throw Error("Component already rendered");this.b||this.G();a?a.insertBefore(this.b,b||null):this.O.k.body.appendChild(this.b);this.h&&!this.h.f||this.u()};h.H=function(a){this.b=a};h.u=function(){this.f=!0;kb(this,function(a){!a.f&&a.P()&&a.u()})};h.m=function(){kb(this,function(a){a.f&&a.m()});this.v&&Va(this.v);this.f=!1};h.e=function(){this.f&&this.m();this.v&&(this.v.t(),delete this.v);kb(this,function(a){a.t()});!this.aa&&this.b&&K(this.b);this.h=this.b=this.r=this.s=null;U.c.e.call(this)};function kb(a,b){a.s&&A(a.s,b,void 0)}h.removeChild=function(a,b){if(a){var c=n(a)?a:a.Q||(a.Q=":"+(a.X.Y++).toString(36)),d;this.r&&c?(d=this.r,d=(c in d?d[c]:void 0)||null):d=null;a=d;if(c&&a){d=this.r;c in d&&delete d[c];ka(this.s,a);b&&(a.m(),a.b&&K(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.h=null;U.c.L.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};D&&G(8);v("".ea?"".fa:"");function lb(a){var b=(D?mb:nb)||null,c=(u||(u=new Ja)).createElement("DIV");a=b(a||ob,void 0,void 0);p(a)?(ia("Soy template output is unsafe for use as HTML: "+a),a="zSoyz"):a=String(a);a.match(pb);c.innerHTML=a;return 1==c.childNodes.length&&(a=c.firstChild,1==a.nodeType)?a:c}var pb=/^<(body|caption|col|colgroup|head|html|tr|td|tbody|thead|tfoot)>/i,ob={};function V(a){return"object"===typeof a&&a&&0===a.ca?a.content:String(a).replace(qb,rb)}var sb={"\x00":"�",'"':""","&":"&","'":"'","<":"<",">":">","\t":"	","\n":" ","\x0B":"","\f":"","\r":" "," ":" ","-":"-","/":"/","=":"=","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"};function rb(a){return sb[a]}var qb=/[\x00\x22\x26\x27\x3c\x3e]/g;function nb(a){a=a||{};var b='<embed type="application/x-java-applet"'+(a.B?' width="'+V(a.B)+'"':"")+(a.A?' height="'+V(a.A)+'"':"");if(a.n){a=a.n;for(var c=a.length,d=0;d<c;d++)var e=a[d],b=b+(" "+V(e[0])+'="'+V(e[1])+'"')}return b+" />"}function mb(a){a=a||{};var b='<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"'+(a.B?' width="'+V(a.B)+'"':"")+(a.A?' height="'+V(a.A)+'"':"")+">";if(a.n){a=a.n;for(var c=a.length,d=0;d<c;d++)var e=a[d],b=b+('<param name="'+V(e[0])+'" value="'+V(e[1])+'" />')}return b+"</object>"}function W(a){if("undefined"==typeof ActiveXObject||!ActiveXObject)return!1;try{return null!=new ActiveXObject("JavaWebStart.isInstalled."+a+".0")}catch(b){return!1}}function tb(){if("undefined"!=typeof window.oClientCaps){var a=window.oClientCaps.getComponentVersion("{08B0E5C0-4FCB-11CF-AAA5-00401C608500}","ComponentID");return!(""==a||"5,0,5000,0"==a)}return!1}function Y(a){var b=navigator.mimeTypes;if(!b)return!1;for(var c=0;c<b.length;++c){var d=b[c].type.match(/^application\/x-java-applet\x3Bversion=(1\.8|1\.7|1\.6|1\.5|1\.4\.2)$/);if(null!=d&&w(d[1],a)+1)return!0}return!1}function Z(a){var b=navigator.plugins;if(!b||!b.length)return!1;for(var c=0;c<b.length;++c){var d=b[c].description;if(-1!=d.search(/^Java Switchable Plug-in (Cocoa)/)){if(w("1.5.0",a)+1)return!0}else if(-1!=d.search(/^Java/)&&qa&&(w("1.5.0",a)+1||w("1.6.0",a)+1))return!0}return!!(w("1.5.0",a)+1)}function ub(a,b,c,d){if(!a||!b)return!1;var e=a.match(/^(\d+)(?:\.(\d+)(?:\.(\d+)(?:_(\d+))?)?)?$/),f=0;a=[];var g;if(null!=e){for(g=1;g<e.length;++g)"string"==typeof e[g]&&""!=e[g]&&(a[f]=e[g],f++);e=Math.min(a.length,b.length);if(d){for(g=0;g<e;++g){if(a[g]<b[g])return!1;if(a[g]>b[g])break}return!0}for(g=0;g<e;++g)if(a[g]!=b[g])return!1;return c?!0:a.length==b.length}return!1}var vb=function(){var a=[],b,c=navigator.mimeTypes,d,e,f;if(!C&&!xa&&c){if(D)b=Ga("OBJECT",{classid:"clsid:CAFEEFAC-DEC7-0000-0001-ABCDEFFEDCBA",widht:0,height:0});else if(F||E)e=Ba(c,function(a){return"application/java-deployment-toolkit"==a.type&&a.enabledPlugin}),b=Ga("EMBED",{hidden:"hidden",type:e?"application/java-deployment-toolkit":"application/npruntime-scriptable-plugin;DeploymentToolkit"});if(b){document.body.appendChild(b);if(f=b.jvms)for(e=0;e<f.getLength();e++)a[e]=f.get(e).version; K(b)}}for(e=0;e<c.length&&(b=c[e].type.match(/^application\/x-java-applet;jpi-version=(.*)$/),null==b||(d=b[1],C));++e);a.length||(D?W("1.7.0")?a[0]="1.7.0":W("1.6.0")?a[0]="1.6.0":W("1.5.0")?a[0]="1.5.0":W("1.4.2")?a[0]="1.4.2":tb()&&(a[0]="1.1"):null!=d?a[0]=d:Y("1.7")?a[0]="1.7.0":Y("1.6")?a[0]="1.6.0":Y("1.5")?a[0]="1.5.0":Y("1.4.2")?a[0]="1.4.2":xa&&(Z("1.7.0")?a[0]="1.7.0":Z("1.6")?a[0]="1.6.0":Z("1.5")?a[0]="1.5.0":Z("1.4.2")&&(a[0]="1.4.2")));return a}(),wb=!!vb.length;function $(a,b,c,d,e){U.call(this,e);this.J={n:a||[],Z:d||"1.1+",B:b||"0",A:c||"0"};if(a=wb)a:{var f=this.J.Z;a=0;c=b=!1;d=[];e=f.match(/^(\d+)(?:\.(\d+)(?:\.(\d+)(?:_(\d+))?)?)?(\*|\+)?$/);if(null!=e){for(f=1;f<e.length;++f)"string"==typeof e[f]&&""!=e[f]&&(d[a]=e[f],a++);"+"==d[d.length-1]?(c=!0,b=!1,d.length--):"*"==d[d.length-1]?(c=!1,b=!0,d.length--):4>d.length&&(c=!1,b=!0);for(f=0;f<vb.length;++f)if(ub(vb[f],d,b,c)){a=!0;break a}}else alert("Invalid version pattern passed: "+f);a=!1}this.S= a;this.F=!1;this.M=[]}s($,U);$.prototype.addCallback=function(a,b,c){var d=this;a=[a];var e="appletCallback"+(b[q]||(b[q]=++r));window[e]=!this.F&&c?function(){d.dispatchEvent(new M("ready",d));b.apply(d,arguments)}:b;a.push(e);this.J.n.push(a);this.M.push(e);c&&(this.F=!0)};$.prototype.getElement=function(){return this.b};$.prototype.destroy=function(){A(this.M,function(a){window[a]=void 0;D||delete window[a]},this);this.dispatchEvent(new M("destroy"));this.t()};$.prototype.G=function(){this.S&&this.H(lb(this.J))};$.prototype.H=function(a){$.c.H.call(this,a)};$.prototype.render=function(){$.c.$.call(this)};$.prototype.K=function(a,b){this.S?$.c.K.call(this,a,b):this.dispatchEvent(new M("nojava",this))};$.prototype.u=function(){$.c.u.call(this);this.F||this.dispatchEvent(new M("ready",this))};$.prototype.m=function(){$.c.m.call(this)};window.Applet=$;})();