-
Notifications
You must be signed in to change notification settings - Fork 0
/
eCSStender.js
executable file
·9 lines (9 loc) · 18.2 KB
/
eCSStender.js
1
2
3
4
5
6
7
8
9
/*------------------------------------------------------------------------------
Function: eCSStender()
Author: Aaron Gustafson (aaron at easy-designs dot net)
Creation Date: 2006-12-03
Version: 1.2.5.2
Homepage: http://eCSStender.org
License: MIT License (see homepage)
------------------------------------------------------------------------------*/
(function(){var o,ag=true,be=false,X=null,bl="string",ae="number",bL="object",K=Array,bf=Function,aP=RegExp,g=document,aB=window,ax=aB.location.href,k=function(){},ao="eCSStender",h="extension",a9="selector",S="property",E="specificity",aN="all",aL="media",s="find_by",y="test",x="lookup",bJ="fragment",aX="prefix",aM="properties",aq="callback",al="filter",bi="processed",aH="fingerprint",a7="||||",aA="",R=" ",bb="*",p="/",bD=":",bt=";",aj="-",bp="{",bj="}",V="div",T="type",bM="complete",bH=".*?",ap="-.*",bm="$1",a0="!"+ao+"-media-placeholder!",bx={},r=0,bd=0,a2=[],aW=0,t={},aJ={},bK=X,v=be,c=[],J=[a9,E],by=ax.replace(/^\w+:\/\/\/?(.*?)\/.*/,bm),am=(ax.indexOf("http")!==0),bs={},H=[],O=g.expando,aF=k,a1=g.getElementsByTagName("head")[0],bN=X,aw=ak("style"),B=[],ay=k,an="-count",b={},aE=be,e=be,aC={xhr:{},extension:{},selector:{},property:{}},aQ={},a5,at=k,bg=k,bI=k,q=ak("script"),I=/\s*,\s*/,aT=/.*\/(.*?\..*?)(?:\?.*)?$/,aD=/@([\w-]+)(.*?)\{([^}]*)\}/ig,aG=/:(?!\/\/)/,bo={name:ao,version:"1.2.5.2",fonts:[],pages:{},at:{},methods:{},cache:be,exec_time:0};aB.eCSStender=bo;function ba(){if(v){return}v=ag;bo.exec_time=a3();bN=g.getElementsByTagName("body")[0];ah();a6();M()}function aa(){af();bG();av();bv();ac();bo.exec_time=(a3()-bo.exec_time)*0.001;d()}function a6(){var bQ=g.styleSheets,bP=0,bO=bQ.length;for(;bP<bO;bP++){D(bQ[bP])}if(bO>0){bK=ag}}function M(){var bQ=0,bP=a2.length,bR,bO,bS;for(;bQ<bP;bQ++){bR=u(a2[bQ]);bh(bR);Q(a2[bQ])}i()}function af(){if(aE||am){return}var bP,bQ=aC.xhr,bO=j=0;bo.cache=ag;for(bP in b){bO++;if(!aK(b,bP)&&b[bP]!=X){j++;if(!Z(bQ[bP])||bQ[bP]!=b[bP]){bo.cache=be}aC.xhr[bP]=b[bP]}}if(bO>j||(bO===0&&j===0)){bo.cache=be}}function bG(){if(bo.cache){return}var bP={},bR,bQ=0,bO;for(bR in bx){if(!aK(bx,bR)){bO=bx[bR][y];if(!Z(bO)||(L(bO,bf)&&bO())){bP[bR]=bx[bR];bQ++}}}bx=bP;r=bQ}function av(){if(r<1){return}var bO,bU,bZ,bY,bQ,b1,bW,b2,bT,bR,bV,b5,b0,bP,b3,bX,b4,bS;if(!bo.cache){for(bO in t){if(!aK(t,bO)){bU=t[bO];bZ=P(bU);for(bY=0,bQ=bZ.length;bY<bQ;bY++){b1=bZ[bY][a9];bW:for(b2 in bx){if(!aK(bx,b2)){bT=bx[b2][aL];if(Z(bT)&&bT!=aN){bT=bT.split(I);if(bO!=aN&&!ab(bO,bT)){continue}}bV=bx[b2][s];bR=bx[b2][x];bP=bR.length;if(bV==a9){for(b0=0;b0<bP;b0++){if(W(b1,bR[b0])){aV(b2,bO,b1);continue bW}}}else{if(bV==S){for(b0=0;b0<bP;b0++){if(Z(bU[b1][bR[b0]])){aV(b2,bO,b1);continue bW}}}else{if(bV==bJ||bV==aX){b4=(bV==bJ)?bH+bR+bH:aj+bR+ap;b4=ai(b4);for(bS in bU[b1]){if(!aK(bU,b1)&&!ab(bS,J)&&bS.match(b4)){aV(b2,bO,b1);continue bW}}}}}}}}}}}}function aV(bR,bQ,bO){var bP=bQ+a7+bO;bA(h,h+(bd++),bR+a7+bP,be)}function bv(){var bS=0,bU,bV,bT,bO,bR,bQ,bP;for(;bS<bd;bS++){bU=aC[h][h+bS].split(a7);bV=bx[bU[0]];if(Z(t[bU[1]])){bT=t[bU[1]][bU[2]];bO=bU[1]+a7+bU[2];if(!Z(bV)||!Z(bT)||ab(bO,bV[bi])||(Z(bV[al])&&!f(bT,bV[al]))){continue}bQ=(!bo.cache)?bT[E]:bu(bU[2]);bR=aY(bU[1],bU[2],bV[aM]);bV[aq](bU[2],bR,bU[1],bQ);bV[bi].push(bO)}}}function d(){for(var bO=H.length-1;bO>=0;bO--){H[bO]()}}function n(bO){if(!Z(bO.imports)){n=function(bR){var bS=bR.cssRules||bR.rules,bQ=0,bP;if(bS===X){return}for(bP=bS.length;bQ<bP;bQ++){if(bS[bQ].type!=3){return}D(bS[bQ].styleSheet)}if(bQ===bP&&bR.href){c.push(bR.href.replace(aT,bm))}}}else{n=function(bS){var bQ=bS.imports,bR=0,bP=bQ.length;for(;bR<bP;bR++){D(bQ[bR])}}}n(bO)}function D(bP){var bO=bP.href;if(bP.disabled||(bO&&(Q(bP).indexOf(by)==-1||ab(bO.replace(aT,bm),c)))){return}n(bP);a2.push(bP)}function P(bR){var bP=[],bQ,bO;for(bO in bR){if(!aK(bR,bO)){bQ=bR[bO];bQ[a9]=bO;bQ[E]=bu(bO);bP.push(bQ)}}bP.sort(bc);return bP}function bc(bQ,bP){var bO=bQ[E],bR=bP[E];return((bO<bR)?-1:((bO>bR)?1:0))}function bu(bO){var bP=0,bQ;bO=bO.replace(/\s*\+\s*|\s*\>\s*/,R);bO=bO.replace(/(:not)\((.*)\)/,"$1 $2");bQ=bO.match(/#/);if(bQ!=X){bP+=(bQ.length*100)}bO=bO.replace(/#[\w-_]+/,aA);bQ=bO.match(/::|:|\.|\[.*?\]/);if(bQ!=X){bP+=(bQ.length*10)}bO=bO.replace(/(?:::|:|\.)[\w-_()]+|\[.*?\]/,aA);bQ=Y(bO)!=aA?bO.split(R):[];bP+=bQ.length;return bP}function Q(bP){var bO=/\w+?\:\/\//,bW=bP.actual_path,bS=bW||bP.href,bV=bP.parentStyleSheet,bQ,bR,bT,bU=prefix=aA;if(!bS){bS=X}if(!bW&&(bV!=X||(bS!=X&&bS.match(bO)===X))){if(bS.indexOf(p)===0){bS=bS.substring(1)}bQ=ax.substring(0,ax.lastIndexOf(p));bR=bS.lastIndexOf(p);bT=bS.substring(bR+1);if(bV==X){if(Z(bP.ownerNode)&&Z(CSSImportRule)&&L(bP.ownerRule,CSSImportRule)){bV=bP.ownerRule.parentStyleSheet}}if(bV==X){prefix=bQ+p+bS.substring(0,bR)}else{bU=Q(bV);prefix=bU.substring(0,bU.lastIndexOf(p))}bS=prefix+p+bT}bP.actual_path=bS;return bS}function u(bO){var bP=bO.media;if(!L(bP,bl)){u=function(bR){var bT=bR.media,bQ=bR.ownerRule,bS=be;if(!L(bT,bl)){if(bQ!=X){bS=bQ.media.mediaText;if(!bS){bS=u(bQ.parentStyleSheet)}}else{bS=bT.mediaText}}bR.actual_media=bS?bS:aN;if(L(bR.actual_media,bl)){bR.actual_media=bR.actual_media.split(I)}return bR.actual_media}}else{u=function(bQ){var bR=bQ.media;bQ.actual_media=bR?bR:aN;if(L(bQ.actual_media,bl)){bQ.actual_media=bQ.actual_media.split(I)}return bQ.actual_media}}return u(bO)}function au(bO){bO=az(bO);bO=ad(bO);bO=bE(bO);bO=bz(bO);return bO}function az(bP){var bQ=/@font-face\s*?\{(.*?)\s*?\}/ig,bO;while((bO=bQ.exec(bP))!=X){bo.fonts.push(C(bO[1]))}return bP.replace(bQ,aA)}function ad(bS){var bY="pages",bW="@",bR,bU,bQ,bT,bX,bV,bO,bP=/@page\s*?([\w:]*){0,1}\{\s*?((?:@[\w-]+\{[^\}]*\}|[\w-]+:[^;]+;)*)\s*?\}/ig;while((bR=bP.exec(bS))!=X){bU=bR[1];if(!Z(bU)||bU==aA){bU=aN}else{if(bU.indexOf(bD)==0){bU=bU.replace(bD,aA)}}bT=bR[2];if(!Z(bo[bY][bU])){bo[bY][bU]={}}while((bQ=aD.exec(bT))!=X){bX=bQ[1];bV=C(bQ[3]);if(!Z(bo[bY][bU][bW])){bo[bY][bU][bW]={}}if(!Z(bo[bY][bU][bW][bX])){bo[bY][bU][bW][bX]=bV}else{for(bO in bV){if(!aK(bV,bO)){bo[bY][bU][bW][bX][bO]=bV[bO]}}}bT=bT.replace(bQ[0],aA)}bV=C(bT);for(bO in bV){if(!aK(bV,bO)){bo[bY][bU][bO]=bV[bO]}}}return bS.replace(bP,aA)}function bE(bR){var bQ=/@media\s*(.*?)\s*\{(.*?})\}/ig,bP,bT,bO,bV,bS,bU=0;while((bP=bQ.exec(bR))!=X){bR=G(bR,bP,bU);bU++}return bR}function bz(bQ){var bP,bT,bS,bO,bR,bU;while((bP=aD.exec(bQ))!=X){bT=bP[1];bS=Y(bP[2]);bS=(bS==aA)?be:bS.split(I);bR=C(bP[3]);if(!Z(bo.at[bT])){bo.at[bT]=!bS?aO([]):{}}if(!bS){bo.at[bT].push(bR)}else{bO=bS.length;while(bO--){if(!Z(bo.at[bT][bS[bO]])){bo.at[bT][bS[bO]]=bR}else{for(bU in bR){if(!aK(bR,bU)){bo.at[bT][bS[bO]][bU]=bR[bU]}}}}}}return bQ.replace(aD,aA)}function G(bP,bO,bQ){media=bO[1].split(I);styles=bO[2];bh(media);aJ[bQ]={media:media,styles:styles};return bP.replace(bO[0],a0+"{id:"+bQ+bj)}function aI(bP){var bO=aJ[bP];N(bO.media,bO.styles);aJ[bP]=X}function N(bT,bX,bR){bT=bn(bT);var bP=bX.split(bj),bZ=m=a=0,bO,bS=bT.length,bY,bQ,bV,b0,bW,bU;bP.pop();for(bO=bP.length;bZ<bO;bZ++){bP[bZ]=bP[bZ].split(bp);bY=C(bP[bZ][1]);bV=bP[bZ][0];if(bV.indexOf(a0)!=-1){aI(bY.id)}else{bW=bV.split(I);for(a=0,bU=bW.length;a<bU;a++){bV=Y(bW[a]);for(m=0;m<bS;m++){b0=bT[m];if(!Z(bR)){if(!Z(t[b0][bV])){t[b0][bV]={}}for(bQ in bY){if(!aK(bY,bQ)){t[b0][bV][bQ]=bY[bQ]}}}else{if(!Z(bs[bR][bV])){bs[bR][bV]={}}for(bQ in bY){if(!aK(bY,bQ)){bs[bR][bV][bQ]=bY[bQ]}}}}}}}}function C(bQ){if(!L(bQ,bl)){return{}}bQ=bQ.split(bt);var bR={},bT=0,bP=bQ.length,bO,bS;for(;bT<bP;bT++){bS=Y(bQ[bT]);if(bS==aA){continue}bO=bS.split(aG);bR[Y(bO[0])]=Y(bO[1])}return bR}function bF(bV,bQ){var bS=[],bU,bP,bT,bR,bO;if(!A(bQ)){if(bQ!=bb){if(L(bQ,bl)){bS.push(bQ)}else{if(L(bQ,K)){for(bR=0,bO=bQ.length;bR<bO;bR++){bS.push(bQ[bR])}}}}else{bS=bQ}}if(bQ!=bb){bU=bV[S];bP=bV[bJ];bT=bV[aX];if(Z(bU)){if(L(bU,bl)){bS.push(bU)}else{if(L(bU,K)){for(bR=0,bO=bU.length;bR<bO;bR++){bS.push(bU[bR])}}}}else{if(Z(bP)){bS.push(ai(bH+bP+bH))}else{if(Z(bT)){bS.push(ai(aj+bT+ap))}}}}return bS}function aY(bW,bQ,bT){var bO,bV,bS={},bP=0,bR,bU=t[bW][bQ];if(L(bT,K)){for(bR=bT.length;bP<bR;bP++){bO=bT[bP];if(L(bO,aP)){for(bV in bU){if(!aK(bU,bV)&&!ab(bV,J)&&bV.match(bO)!=X){bS[bV]=bU[bV]}}}else{if(L(bO,bl)&&Z(bU[bO])){bS[bO]=bU[bO]}}}}else{for(bV in bU){if(!aK(bU,bV)&&!ab(bV,J)){bS[bV]=bU[bV]}}}return bS}function bn(bS){var bQ=aO([]),bU=0,bP,bR,bT,bO;if(!L(bS,K)){if(L(bS,bL)&&!L(bS,aP)){for(bU in bS){if(!aK(bS,bU)){bQ.push(bS[bU])}}}else{if(L(bS,bl)&&bS.indexOf(",")!=-1){bR=bS.split(I);for(bP=bR.length;bU<bP;bU++){bQ.push(bR[bU])}}else{bQ=[bS]}}}else{for(bP=bS.length;bU<bP;bU++){if(L(bS[bU],bl)&&bS[bU].indexOf(",")!=-1){bR=bS[bU].split(I);for(bT=0,bO=bR.length;bT<bO;bT++){bQ.push(bR[bT])}}else{bQ.push(bS[bU])}}}return bQ}function bh(bP){if(!L(bP,K)){bP=(bP+aA).split(I)}for(var bO=0,bQ=bP.length;bO<bQ;bO++){if(!Z(t[bP[bO]])){t[bP[bO]]={}}}}function W(bP,bQ){var bO=/\*(?!\s|>|\+)/g;return((L(bQ,aP)&&bP.match(bQ)!=X)||(L(bQ,bf)&&bQ.call(bP)===ag)||(L(bQ,bl)&&bP.indexOf(Y(bQ.replace(bO,aA)))!=-1))}function f(bO,bR){var bQ,bS,bT,bP;for(bT in bO){if(!aK(bO,bT)&&!ab(bT,J)){bQ=bS=0;for(bP in bR){if(!aK(bR,bP)){bS++;if(bP==S){if(bT.match(bR[bP])){bQ++}}else{if(bP=="value"){if(bO[bT].match(bR[bP])){bQ++}}}}}}if(bQ==bS){return ag}}return be}function bC(bR){var bO=/\s*(?:\<\!--|--\>)\s*/g,bQ=/\/\*(?:.|\s)*?\*\//g,bP=/\s*([,{}:;])\s*/g,bS=/@import.*?;/g;return bR.replace(bO,aA).replace(bQ,aA).replace(bP,bm).replace(bS,aA)}function ab(bQ,bP){for(var bO in bP){if(bP[bO]==bQ){return ag}}return be}function a3(){return new Date().getTime()}function L(bQ,bR){var bO=be;try{bO=bQ instanceof bR}catch(bP){bO=(typeof(bR)==bl&&typeof(bQ)==bR)}return bO}function A(bO){return bO===be}function Z(bO){return bO!=o}function aR(bO){return String.fromCharCode(bO)}function i(){if(bK){i=function(){var bT,bS,bR,bQ;if(bT=a2[aW]){if(bS=bT.actual_path){if(bS===X||ab(bS.replace(aT,bm),c)){aW++;i()}else{bK=new F();bK.onreadystatechange=aS;bK.open("GET",bS,be);bK.send(X);try{if(bK.onreadystatechange!=aS){bK.onreadystatechange=aS()}}catch(bU){}}}else{a8(bB(bT),bT.actual_media);aW++;i()}}else{aa()}};i()}else{for(var bP=0,bO=a2;bP<bO;bP++){if(!ab(a2[bP].actual_path.replace(aT,bm),c)){a8(a2[bP].cssText,a2[bP].actual_media)}}}}function aS(bO){if(bK.readyState==4){status=bK.status;if(status==0||(status>=200&&status<300)||status==304){a8(bK.responseText,a2[aW].actual_media);b[aZ(a2[aW].actual_path)]=bK.getResponseHeader("Last-Modified")}aW++;i()}}function a8(bO,bP){bO=bC(bO);bO=au(bO);N(bP,bO)}function bB(bO){var bP;if(Z(bO.cssText)){bB=function(bR){return bR.ownerNode.innerHTML};bP=bB()}else{try{bP=bO.ownerNode.innerHTML;bB=function(bR){return bR.ownerNode.innerHTML}}catch(bQ){bP=bO.owningElement.innerHTML;bB=function(bR){return bR.owningElement.innerHTML}}}return bP}function a4(bO){return L(bO,bl)?bO.toLowerCase():bO}function l(bS){var bR=bS.split(aj),bP=bR.length,bO,bQ=1;if(bP==1){return bR[0]}if(bS.charAt(0)==aj){bO=bR[0].charAt(0).toUpperCase()+bR[0].substring(1)}else{bO=bR[0]}while(bQ<bP){bO+=bR[bQ].charAt(0).toUpperCase()+bR[bQ].substring(1);bQ++}return bO}function bk(bO){if(L(bO,bl)){bO=bO.replace(/(\s0)px/g,bm)}return bO}function br(bO,bQ,bP){try{bO.style[bQ]=bP;bO.style[l(bQ)]=bP}catch(bR){return be}return ag}function F(){var bO;try{bO=new XMLHttpRequest()}catch(bP){try{bO=new ActiveXObject("Msxml2.XMLHTTP")}catch(bP){try{bO=new ActiveXObject("Microsoft.XMLHTTP")}catch(bP){bO=be}}}return(!bO)?X:bO}function ak(bO){return g.createElement(bO)}function ai(bO){return new RegExp(bO)}function aO(bO){return bO}if(Array.prototype.push==X){var w=function(bO){this[this.length]=bO;return this.length};bo.fonts.push=bx.push=a2.push=B.push=H.push=w;aO=function(bO){if(typeof(bO)==K){bO.push=w}return bO}}if(Z(O)){aF=function(){if(!Z(g.old_expando)||g.old_expando==X){g.old_expando=g.expando;g.expando=be}else{g.expando=g.old_expando;g.old_expando=X}}}function U(){var bR,bP,bQ,bO;for(bR in bs){if(!aK(bs,bR)){bP=g.getElementById(bR);bQ="";for(bO in bs[bR]){if(!aK(bs,bR)){bQ+=bO+bp+z(bs[bR][bO],bO)+bj}}ay(bP,bQ)}}}H.push(U);function ar(){if(Z(aB.localStorage)){a5=aB.localStorage;bI=function(){a5.clear()};at=function(bQ,bR){return a5.getItem(bQ+aj+bR)};bg=function(bQ,bR,bS){a5.setItem(bQ+aj+bR,bS)}}else{var bP=ak(V),bO=new Date();bP.style.behavior="url(#default#userData)";bN.appendChild(bP);if(Z(bP.XMLDocument)){a5=bP;a5.load(ao);bO.setMinutes(bO.getMinutes()+10080);bO=bO.toUTCString();a5.expires=bO;bI=function(){a5.XMLDocument.childNodes[0].attributes.length=0};at=function(bQ,bR){return a5.getAttribute(bQ+aj+bR)};bg=function(bQ,bR,bS){a5.setAttribute(bQ+aj+bR,bS);a5.save(ao)}}}}function ah(){if(aE||am){return}ar();var bQ,bP,bO;for(bQ in aC){if(!aK(aC,bQ)&&Z(bQ)){bO=at(ao,bQ+an);if(Z(bO)){if(bQ==h){bd=bO;if(bO<1){bo.cache=be}}while(bO>=0){bP=at(bQ,bO);if(bP!=X){if(bQ==h){aC[bQ][h+bO]=bP}else{bP=bP.split(a7);if(bP[1]=="true"){bP[1]=ag}if(bP[1]=="false"){bP[1]=be}aC[bQ][bP[0]]=bP[1]}}bO--}}}}}function ac(){if(aE||am){return}var bQ,bO,bP,bR;for(bQ in aC){if(!aK(aC,bQ)&&Z(bQ)){bP=0;for(bO in aC[bQ]){if(!aK(aC[bQ],bO)&&Z(bQ)){if(bQ==h){bR=aC[bQ][bO];bR[bi]=[];bg(bQ,bP,bR)}else{bg(bQ,bP,bO+a7+aC[bQ][bO])}bP++}}bg(ao,bQ+an,bP)}}e=ag}function z(bP){var bQ=aA,bO;for(bO in bP){if(!aK(bP,bO)){bQ+=bO+bD+bP[bO]+bt}}return bQ}function bq(bQ){var bO,bP=be;if((bO=bQ.exec(/^\{(.*?)\}$/))!=X){bP=C(bO[1])}return bP}function aZ(bY){bY=bY.replace(/\r\n/g,"\n");var bO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",bT,bP=bY.length,bV=aA,bS,bR,bQ,bZ,bX,bW,bU;for(bT=0;bT<bP;bT++){bS=bY.charCodeAt(bT);if(bS<128){bV+=aR(bS)}else{if((bS>127)&&(bS<2048)){bV+=aR((bS>>6)|192);bV+=aR((bS&63)|128)}else{bV+=aR((bS>>12)|224);bV+=aR(((bS>>6)&63)|128);bV+=aR((bS&63)|128)}}}bY=bV;bV=aA;bT=0;bP=bY.length;while(bT<bP){bS=bY.charCodeAt(bT++);bR=bY.charCodeAt(bT++);bQ=bY.charCodeAt(bT++);bZ=bS>>2;bX=((bS&3)<<4)|(bR>>4);bW=((bR&15)<<2)|(bQ>>6);bU=bQ&63;if(isNaN(bR)){bW=bU=64}else{if(isNaN(bQ)){bU=64}}bV+=bO.charAt(bZ)+bO.charAt(bX)+bO.charAt(bW)+bO.charAt(bU)}return bV}function bA(bR,bO,bQ,bP){bP=!Z(bP)?ag:bP;if(!A(bP)){bO=aZ(bO)}aC[bR][bO]=bQ;if(e){bg(bR,bO,bQ)}}function aU(bR,bO,bP){bP=!Z(bP)?ag:bP;if(!A(bP)){bO=aZ(bO)}var bQ=aC[bR][bO];return !Z(bQ)?o:bQ}bo.register=function(bX,bR,bU){var bW={},bQ,bP,bV,bY,bS=[],bT,bO=aA;if(Z(bX[a9])){bW[s]=a9;bW[x]=bX[a9]}else{if(Z(bX[S])){bW[s]=S;bW[x]=bX[S]}else{if(Z(bX[bJ])){bW[s]=bJ;bW[x]=bX[bJ]}else{if(Z(bX[aX])){bW[s]=aX;bW[x]=bX[aX]}}}}if(bW[s]==a9||bW[s]==S){bW[x]=bn(bW[x])}if(Z(bX[al])){bW[al]=bX[al]}if(Z(bX[aL])){bW[aL]=bX[aL]}if(Z(bX[y])){bW[y]=bX[y]}bW[aM]=bF(bX,bR);if(!Z(bX[aH])){for(bT in bW){if(!aK(bW,bT)){bO+=bT+bD+bW[bT].toString()+bt}}bO=aZ(bO+"::"+r)}else{bO=bX[aH]}bW[aq]=bU;bW[bi]=[];bx[bO]=bW;r++};bo.lookup=function(b9,bV){var bS=b9[E],bR=b9[a9],b3=b9[S],bY=b9[bJ],bO=b9[aX],ca=b9[aL],b2,b7,bT,bW,bQ,bX,b1,b0,bU,b5,bZ,b6,b4,b8,bP=[];if(Z(bS)){if(L(bS,ae)){b7=bS;b2=0}else{if(L(bS,bL)){b7=bS.max;b2=bS.min}}}if(Z(bR)){bR=bn(bR)}else{if(Z(b3)){b3=bn(b3)}}props=bF(b9,bV);for(bT in t){if(!aK(t,bT)){if(Z(ca)&&ca!=aN){bW=ca.split(I);if(bT!=aN&&!ab(bT,bW)){continue}}bX=t[bT];b1=P(bX);bQ:for(b0=0,bU=b1.length;b0<bU;b0++){b5=b1[b0][a9];block=bX[b5];if(Z(bR)){bZ=be;for(b6=0,b4=bR.length;b6<b4;b6++){if(W(b5,bR[b6])){bZ=ag;break}}if(A(bZ)){continue}}else{if(Z(b3)){bZ=be;for(b6=0,b4=b3.length;b6<b4;b6++){if(Z(block[b3[b6]])){bZ=ag;break}}if(A(bZ)){continue}}else{if(Z(bY)||Z(bO)){bZ=be;b8=(Z(bY))?bH+bY+bH:aj+bO+ap;b8=ai(b8);for(property in block){if(!aK(bX,b5)&&!ab(property,J)&&property.match(b8)){bZ=ag;break}}if(A(bZ)){continue}}}}if(Z(bS)){if(block[E]<b2||block[E]>b7){continue}}bP.push({medium:bT,properties:aY(bT,b5,props),selector:b5,specificity:block[E]})}}}return bP};bo.addMethod=function(bO,bP){if(!Z(bo.methods[bO])){bo.methods[bO]=bP}};bo.onComplete=function(bO){H.push(bO)};bo.embedCSS=function(bQ,bR,bO){bR=bR||aN;bO=Z(bO)?bO:ag;var bS="eCSStension-"+bR,bP;if(!ab(bR,B)){bP=bw(bR,bS,bO);B.push(bR)}else{bP=g.getElementById(bS)}if(bP!=X){if(!bO){ay(bP,bQ)}else{N(bR,bQ,bS)}}return bP};function bw(bQ,bR,bO){var bP=aw.cloneNode(ag);bQ=bQ||aN;bP.setAttribute(aL,bQ);bR=bR||"temp-"+Math.round(Math.random()*2+1);bP.setAttribute("id",bR);bO=Z(bO)?bO:ag;if(bO){bs[bR]={}}a1.appendChild(bP);return bP}bo.newStyleElement=bw;aw.setAttribute(T,"text/css");if(Z(aw.styleSheet)){ay=function(bO,bP){bO.styleSheet.cssText+=bP}}else{ay=function(bO,bP){bO.appendChild(g.createTextNode(bP))}}bo.addRules=ay;bo.isSupported=function(bW,bX,bS,bP){var b0,bZ,bY,bV=ag,bR=aB.getComputedStyle,bT="visibility",bQ="hidden",bO;if(Z(b0=aU(bW,bX))){return b0}else{b0=be;if(bW==S){bP=ak(V);bN.appendChild(bP);bX=bX.split(aG);bZ=bX[0];bY=Y(bX[1]);bX=bX.join(bD);aF();if(!br(bP,bZ,bY)){bV=be}aF();if(bV&&(bP.currentStyle&&bk(bP.currentStyle[l(bZ)])==bY)||(bR&&bk(bR(bP,X).getPropertyValue(bZ))==bY)){b0=ag}bN.removeChild(bP);bP=X}else{if(bW==a9){if(bS){bN.appendChild(bS)}bO=bw("screen",be,be);try{ay(bO,bX+bp+bT+bD+bQ+bt+bj);if((bP.currentStyle&&bP.currentStyle[bT]==bQ)||(bR&&bR(bP,X).getPropertyValue(bT)==bQ)){b0=ag}}catch(bU){}if(bS){bN.removeChild(bS)}bO.parentNode.removeChild(bO);bO=X}}bA(bW,bX,b0);return b0}};bo.applyWeightedStyle=function(bQ,bP,bO){if(!Z(bQ.inlineStyles)){bQ.inlineStyles={}}var bS,bR=bQ.inlineStyles;for(bS in bP){if(!aK(bP,bS)&&(!Z(bR[bS])||bR[bS]<=bO)){br(bQ,bS,bP[bS]);bQ.inlineStyles[bS]=bO}}};bo.ignore=function(bQ){if(L(bQ,bl)){bQ=[bQ]}else{if(!L(bQ,K)){return}}for(var bP=0,bO=bQ.length;bP<bO;bP++){c.push(bQ[bP])}};bo.disableCache=function(){aE=ag};function Y(bO){if(L(bO,bl)){return bO.replace(/^\s+|\s+$/g,aA)}return bO}bo.trim=Y;q.setAttribute(T,"text/javascript");bo.loadScript=function(bS,bT){var bO=g.getElementsByTagName("script"),bR=bO.length,bP=q.cloneNode(ag),bQ=be;bT=bT||k;while(bR--){if(bO[bR].src==bS){bP=be}}if(bP){bP.onload=bP.onreadystatechange=function(){if(!bQ&&(!Z(bP.readyState)||bP.readyState=="loaded"||bP.readyState==bM)){bQ=ag;bP.onload=bP.onreadystatechange=X;bT()}};bP.setAttribute("src",bS);a1.appendChild(bP)}else{setTimeout(bT,100)}};function aK(bO,bP){if(bO.hasOwnProperty){aK=function(bQ,bR){return !bQ.hasOwnProperty(bR)}}else{aK=function(bQ,bS){var bR=bQ.constructor;if(bR&&bR.prototype){return bQ[bS]===bR.prototype[bS]}return ag}}bo.isInheritedProperty=aK;return aK(bO,bP)}(function(){var bQ="DOMContentLoaded",bP="onreadystatechange",bR=aB.onload,bO=g.documentElement.doScroll;if(g.addEventListener){g.addEventListener(bQ,function(){g.removeEventListener(bQ,arguments.callee,be);ba()},be)}else{if(g.attachEvent){g.attachEvent(bP,function(){if(g.readyState===bM){g.detachEvent(bP,arguments.callee);ba()}});if(bO&&aB==aB.top){(function(){try{bO("left")}catch(bS){setTimeout(arguments.callee,0);return}ba()})()}}}})()})();