src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/Sizzle.min.js
changeset 81 472bd9195a15
equal deleted inserted replaced
80:181b3a0ee15a 81:472bd9195a15
       
     1 define("tinymce/dom/Sizzle",[],function(){var C,aw,s,L,O,m,aa,av,aA,M,ab,ad,G,t,am,ah,au,j,J,ao="sizzle"+-(new Date()),N=window.document,ax=0,ai=0,c=E(),an=E(),K=E(),I=function(i,e){if(i===e){ab=true}return 0},at=typeof undefined,U=1<<31,S=({}).hasOwnProperty,aq=[],ar=aq.pop,Q=aq.push,a=aq.push,r=aq.slice,h=aq.indexOf||function(aC){var aB=0,e=this.length;for(;aB<e;aB++){if(this[aB]===aC){return aB}}return -1},b="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",u="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ak="\\["+u+"*("+P+")(?:"+u+"*([*^$|!~]?=)"+u+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+u+"*\\]",p=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ak+")*)|.*)\\)|)",w=new RegExp("^"+u+"+|((?:^|[^\\\\])(?:\\\\.)*)"+u+"+$","g"),z=new RegExp("^"+u+"*,"+u+"*"),F=new RegExp("^"+u+"*([>+~]|"+u+")"+u+"*"),y=new RegExp("="+u+"*([^\\]'\"]*?)"+u+"*\\]","g"),W=new RegExp(p),Y=new RegExp("^"+P+"$"),ag={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+ak),PSEUDO:new RegExp("^"+p),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+u+"*(even|odd|(([+-]|)(\\d*)n|)"+u+"*(?:([+-]|)"+u+"*(\\d+)|))"+u+"*\\)|)","i"),bool:new RegExp("^(?:"+b+")$","i"),needsContext:new RegExp("^"+u+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+u+"*((?:-\\d)?\\d*)"+u+"*\\)|)(?=[^-]|$)","i")},g=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,T=/^[^{]+\{\s*\[native \w/,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,af=/[+~]/,R=/'|\\/g,x=new RegExp("\\\\([\\da-f]{1,6}"+u+"?|("+u+")|.)","ig"),aj=function(e,aC,i){var aB="0x"+aC-65536;return aB!==aB||i?aC:aB<0?String.fromCharCode(aB+65536):String.fromCharCode(aB>>10|55296,aB&1023|56320)};try{a.apply((aq=r.call(N.childNodes)),N.childNodes);aq[N.childNodes.length].nodeType}catch(H){a={apply:aq.length?function(i,e){Q.apply(i,r.call(e))}:function(aD,aC){var e=aD.length,aB=0;while((aD[e++]=aC[aB++])){}aD.length=e-1}}}function A(aI,aB,aM,aO){var aN,aF,aG,aK,aL,aE,aD,e,aC,aJ;if((aB?aB.ownerDocument||aB:N)!==G){ad(aB)}aB=aB||G;aM=aM||[];if(!aI||typeof aI!=="string"){return aM}if((aK=aB.nodeType)!==1&&aK!==9){return[]}if(am&&!aO){if((aN=V.exec(aI))){if((aG=aN[1])){if(aK===9){aF=aB.getElementById(aG);if(aF&&aF.parentNode){if(aF.id===aG){aM.push(aF);return aM}}else{return aM}}else{if(aB.ownerDocument&&(aF=aB.ownerDocument.getElementById(aG))&&J(aB,aF)&&aF.id===aG){aM.push(aF);return aM}}}else{if(aN[2]){a.apply(aM,aB.getElementsByTagName(aI));return aM}else{if((aG=aN[3])&&aw.getElementsByClassName){a.apply(aM,aB.getElementsByClassName(aG));return aM}}}}if(aw.qsa&&(!ah||!ah.test(aI))){e=aD=ao;aC=aB;aJ=aK===9&&aI;if(aK===1&&aB.nodeName.toLowerCase()!=="object"){aE=m(aI);if((aD=aB.getAttribute("id"))){e=aD.replace(R,"\\$&")}else{aB.setAttribute("id",e)}e="[id='"+e+"'] ";aL=aE.length;while(aL--){aE[aL]=e+n(aE[aL])}aC=af.test(aI)&&X(aB.parentNode)||aB;aJ=aE.join(",")}if(aJ){try{a.apply(aM,aC.querySelectorAll(aJ));return aM}catch(aH){}finally{if(!aD){aB.removeAttribute("id")}}}}}return av(aI.replace(w,"$1"),aB,aM,aO)}function E(){var i=[];function e(aB,aC){if(i.push(aB+" ")>s.cacheLength){delete e[i.shift()]}return(e[aB+" "]=aC)}return e}function o(e){e[ao]=true;return e}function k(i){var aC=G.createElement("div");try{return !!i(aC)}catch(aB){return false}finally{if(aC.parentNode){aC.parentNode.removeChild(aC)}aC=null}}function ay(aB,aD){var e=aB.split("|"),aC=aB.length;while(aC--){s.attrHandle[e[aC]]=aD}}function d(i,e){var aC=e&&i,aB=aC&&i.nodeType===1&&e.nodeType===1&&(~e.sourceIndex||U)-(~i.sourceIndex||U);if(aB){return aB}if(aC){while((aC=aC.nextSibling)){if(aC===e){return -1}}}return i?1:-1}function B(e){return function(aB){var i=aB.nodeName.toLowerCase();return i==="input"&&aB.type===e}}function f(e){return function(aB){var i=aB.nodeName.toLowerCase();return(i==="input"||i==="button")&&aB.type===e}}function al(e){return o(function(i){i=+i;return o(function(aB,aF){var aD,aC=e([],aB.length,i),aE=aC.length;while(aE--){if(aB[(aD=aC[aE])]){aB[aD]=!(aF[aD]=aB[aD])}}})})}function X(e){return e&&typeof e.getElementsByTagName!==at&&e}aw=A.support={};O=A.isXML=function(e){var i=e&&(e.ownerDocument||e).documentElement;return i?i.nodeName!=="HTML":false};ad=A.setDocument=function(aB){var e,aC=aB?aB.ownerDocument||aB:N,i=aC.defaultView;if(aC===G||aC.nodeType!==9||!aC.documentElement){return G}G=aC;t=aC.documentElement;am=!O(aC);if(i&&i!==i.top){if(i.addEventListener){i.addEventListener("unload",function(){ad()},false)}else{if(i.attachEvent){i.attachEvent("onunload",function(){ad()})}}}aw.attributes=k(function(aD){aD.className="i";return !aD.getAttribute("className")});aw.getElementsByTagName=k(function(aD){aD.appendChild(aC.createComment(""));return !aD.getElementsByTagName("*").length});aw.getElementsByClassName=T.test(aC.getElementsByClassName);aw.getById=k(function(aD){t.appendChild(aD).id=ao;return !aC.getElementsByName||!aC.getElementsByName(ao).length});if(aw.getById){s.find.ID=function(aF,aE){if(typeof aE.getElementById!==at&&am){var aD=aE.getElementById(aF);return aD&&aD.parentNode?[aD]:[]}};s.filter.ID=function(aE){var aD=aE.replace(x,aj);return function(aF){return aF.getAttribute("id")===aD}}}else{delete s.find.ID;s.filter.ID=function(aE){var aD=aE.replace(x,aj);return function(aG){var aF=typeof aG.getAttributeNode!==at&&aG.getAttributeNode("id");return aF&&aF.value===aD}}}s.find.TAG=aw.getElementsByTagName?function(aD,aE){if(typeof aE.getElementsByTagName!==at){return aE.getElementsByTagName(aD)}}:function(aD,aH){var aI,aG=[],aF=0,aE=aH.getElementsByTagName(aD);if(aD==="*"){while((aI=aE[aF++])){if(aI.nodeType===1){aG.push(aI)}}return aG}return aE};s.find.CLASS=aw.getElementsByClassName&&function(aE,aD){if(am){return aD.getElementsByClassName(aE)}};au=[];ah=[];if((aw.qsa=T.test(aC.querySelectorAll))){k(function(aD){aD.innerHTML="<select msallowcapture=''><option selected=''></option></select>";if(aD.querySelectorAll("[msallowcapture^='']").length){ah.push("[*^$]="+u+"*(?:''|\"\")")}if(!aD.querySelectorAll("[selected]").length){ah.push("\\["+u+"*(?:value|"+b+")")}if(!aD.querySelectorAll(":checked").length){ah.push(":checked")}});k(function(aE){var aD=aC.createElement("input");aD.setAttribute("type","hidden");aE.appendChild(aD).setAttribute("name","D");if(aE.querySelectorAll("[name=d]").length){ah.push("name"+u+"*[*^$|!~]?=")}if(!aE.querySelectorAll(":enabled").length){ah.push(":enabled",":disabled")}aE.querySelectorAll("*,:x");ah.push(",.*:")})}if((aw.matchesSelector=T.test((j=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector)))){k(function(aD){aw.disconnectedMatch=j.call(aD,"div");j.call(aD,"[s!='']:x");au.push("!=",p)})}ah=ah.length&&new RegExp(ah.join("|"));au=au.length&&new RegExp(au.join("|"));e=T.test(t.compareDocumentPosition);J=e||T.test(t.contains)?function(aE,aD){var aG=aE.nodeType===9?aE.documentElement:aE,aF=aD&&aD.parentNode;return aE===aF||!!(aF&&aF.nodeType===1&&(aG.contains?aG.contains(aF):aE.compareDocumentPosition&&aE.compareDocumentPosition(aF)&16))}:function(aE,aD){if(aD){while((aD=aD.parentNode)){if(aD===aE){return true}}}return false};I=e?function(aE,aD){if(aE===aD){ab=true;return 0}var aF=!aE.compareDocumentPosition-!aD.compareDocumentPosition;if(aF){return aF}aF=(aE.ownerDocument||aE)===(aD.ownerDocument||aD)?aE.compareDocumentPosition(aD):1;if(aF&1||(!aw.sortDetached&&aD.compareDocumentPosition(aE)===aF)){if(aE===aC||aE.ownerDocument===N&&J(N,aE)){return -1}if(aD===aC||aD.ownerDocument===N&&J(N,aD)){return 1}return M?(h.call(M,aE)-h.call(M,aD)):0}return aF&4?-1:1}:function(aE,aD){if(aE===aD){ab=true;return 0}var aK,aH=0,aJ=aE.parentNode,aG=aD.parentNode,aF=[aE],aI=[aD];if(!aJ||!aG){return aE===aC?-1:aD===aC?1:aJ?-1:aG?1:M?(h.call(M,aE)-h.call(M,aD)):0}else{if(aJ===aG){return d(aE,aD)}}aK=aE;while((aK=aK.parentNode)){aF.unshift(aK)}aK=aD;while((aK=aK.parentNode)){aI.unshift(aK)}while(aF[aH]===aI[aH]){aH++}return aH?d(aF[aH],aI[aH]):aF[aH]===N?-1:aI[aH]===N?1:0};return aC};A.matches=function(i,e){return A(i,null,null,e)};A.matchesSelector=function(aB,aD){if((aB.ownerDocument||aB)!==G){ad(aB)}aD=aD.replace(y,"='$1']");if(aw.matchesSelector&&am&&(!au||!au.test(aD))&&(!ah||!ah.test(aD))){try{var i=j.call(aB,aD);if(i||aw.disconnectedMatch||aB.document&&aB.document.nodeType!==11){return i}}catch(aC){}}return A(aD,G,null,[aB]).length>0};A.contains=function(e,i){if((e.ownerDocument||e)!==G){ad(e)}return J(e,i)};A.attr=function(aB,e){if((aB.ownerDocument||aB)!==G){ad(aB)}var i=s.attrHandle[e.toLowerCase()],aC=i&&S.call(s.attrHandle,e.toLowerCase())?i(aB,e,!am):undefined;return aC!==undefined?aC:aw.attributes||!am?aB.getAttribute(e):(aC=aB.getAttributeNode(e))&&aC.specified?aC.value:null};A.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};A.uniqueSort=function(aC){var aD,aE=[],e=0,aB=0;ab=!aw.detectDuplicates;M=!aw.sortStable&&aC.slice(0);aC.sort(I);if(ab){while((aD=aC[aB++])){if(aD===aC[aB]){e=aE.push(aB)}}while(e--){aC.splice(aE[e],1)}}M=null;return aC};L=A.getText=function(aE){var aD,aB="",aC=0,e=aE.nodeType;if(!e){while((aD=aE[aC++])){aB+=L(aD)}}else{if(e===1||e===9||e===11){if(typeof aE.textContent==="string"){return aE.textContent}else{for(aE=aE.firstChild;aE;aE=aE.nextSibling){aB+=L(aE)}}}else{if(e===3||e===4){return aE.nodeValue}}}return aB};s=A.selectors={cacheLength:50,createPseudo:o,match:ag,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(x,aj);e[3]=(e[3]||e[4]||e[5]||"").replace(x,aj);if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){if(!e[3]){A.error(e[0])}e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+((e[7]+e[8])||e[3]==="odd")}else{if(e[3]){A.error(e[0])}}return e},PSEUDO:function(i){var e,aB=!i[6]&&i[2];if(ag.CHILD.test(i[0])){return null}if(i[3]){i[2]=i[4]||i[5]||""}else{if(aB&&W.test(aB)&&(e=m(aB,true))&&(e=aB.indexOf(")",aB.length-e)-aB.length)){i[0]=i[0].slice(0,e);i[2]=aB.slice(0,e)}}return i.slice(0,3)}},filter:{TAG:function(i){var e=i.replace(x,aj).toLowerCase();return i==="*"?function(){return true}:function(aB){return aB.nodeName&&aB.nodeName.toLowerCase()===e}},CLASS:function(e){var i=c[e+" "];return i||(i=new RegExp("(^|"+u+")"+e+"("+u+"|$)"))&&c(e,function(aB){return i.test(typeof aB.className==="string"&&aB.className||typeof aB.getAttribute!==at&&aB.getAttribute("class")||"")})},ATTR:function(aB,i,e){return function(aD){var aC=A.attr(aD,aB);if(aC==null){return i==="!="}if(!i){return true}aC+="";return i==="="?aC===e:i==="!="?aC!==e:i==="^="?e&&aC.indexOf(e)===0:i==="*="?e&&aC.indexOf(e)>-1:i==="$="?e&&aC.slice(-e.length)===e:i==="~="?(" "+aC+" ").indexOf(e)>-1:i==="|="?aC===e||aC.slice(0,e.length+1)===e+"-":false}},CHILD:function(i,aD,aC,aE,aB){var aG=i.slice(0,3)!=="nth",e=i.slice(-4)!=="last",aF=aD==="of-type";return aE===1&&aB===0?function(aH){return !!aH.parentNode}:function(aN,aL,aQ){var aH,aT,aO,aS,aP,aK,aM=aG!==e?"nextSibling":"previousSibling",aR=aN.parentNode,aJ=aF&&aN.nodeName.toLowerCase(),aI=!aQ&&!aF;if(aR){if(aG){while(aM){aO=aN;while((aO=aO[aM])){if(aF?aO.nodeName.toLowerCase()===aJ:aO.nodeType===1){return false}}aK=aM=i==="only"&&!aK&&"nextSibling"}return true}aK=[e?aR.firstChild:aR.lastChild];if(e&&aI){aT=aR[ao]||(aR[ao]={});aH=aT[i]||[];aP=aH[0]===ax&&aH[1];aS=aH[0]===ax&&aH[2];aO=aP&&aR.childNodes[aP];while((aO=++aP&&aO&&aO[aM]||(aS=aP=0)||aK.pop())){if(aO.nodeType===1&&++aS&&aO===aN){aT[i]=[ax,aP,aS];break}}}else{if(aI&&(aH=(aN[ao]||(aN[ao]={}))[i])&&aH[0]===ax){aS=aH[1]}else{while((aO=++aP&&aO&&aO[aM]||(aS=aP=0)||aK.pop())){if((aF?aO.nodeName.toLowerCase()===aJ:aO.nodeType===1)&&++aS){if(aI){(aO[ao]||(aO[ao]={}))[i]=[ax,aS]}if(aO===aN){break}}}}}aS-=aB;return aS===aE||(aS%aE===0&&aS/aE>=0)}}},PSEUDO:function(aC,aB){var e,i=s.pseudos[aC]||s.setFilters[aC.toLowerCase()]||A.error("unsupported pseudo: "+aC);if(i[ao]){return i(aB)}if(i.length>1){e=[aC,aC,"",aB];return s.setFilters.hasOwnProperty(aC.toLowerCase())?o(function(aF,aH){var aE,aD=i(aF,aB),aG=aD.length;while(aG--){aE=h.call(aF,aD[aG]);aF[aE]=!(aH[aE]=aD[aG])}}):function(aD){return i(aD,0,e)}}return i}},pseudos:{not:o(function(e){var i=[],aB=[],aC=aa(e.replace(w,"$1"));return aC[ao]?o(function(aE,aJ,aH,aF){var aI,aD=aC(aE,null,aF,[]),aG=aE.length;while(aG--){if((aI=aD[aG])){aE[aG]=!(aJ[aG]=aI)}}}):function(aF,aE,aD){i[0]=aF;aC(i,null,aD,aB);return !aB.pop()}}),has:o(function(e){return function(i){return A(e,i).length>0}}),contains:o(function(e){e=e.replace(x,aj);return function(i){return(i.textContent||i.innerText||L(i)).indexOf(e)>-1}}),lang:o(function(e){if(!Y.test(e||"")){A.error("unsupported lang: "+e)}e=e.replace(x,aj).toLowerCase();return function(aB){var i;do{if((i=am?aB.lang:aB.getAttribute("xml:lang")||aB.getAttribute("lang"))){i=i.toLowerCase();return i===e||i.indexOf(e+"-")===0}}while((aB=aB.parentNode)&&aB.nodeType===1);return false}}),target:function(e){var i=window.location&&window.location.hash;return i&&i.slice(1)===e.id},root:function(e){return e===t},focus:function(e){return e===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===false},disabled:function(e){return e.disabled===true},checked:function(e){var i=e.nodeName.toLowerCase();return(i==="input"&&!!e.checked)||(i==="option"&&!!e.selected)},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeType<6){return false}}return true},parent:function(e){return !s.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return g.test(e.nodeName)},button:function(i){var e=i.nodeName.toLowerCase();return e==="input"&&i.type==="button"||e==="button"},text:function(i){var e;return i.nodeName.toLowerCase()==="input"&&i.type==="text"&&((e=i.getAttribute("type"))==null||e.toLowerCase()==="text")},first:al(function(){return[0]}),last:al(function(e,i){return[i-1]}),eq:al(function(e,aB,i){return[i<0?i+aB:i]}),even:al(function(e,aC){var aB=0;for(;aB<aC;aB+=2){e.push(aB)}return e}),odd:al(function(e,aC){var aB=1;for(;aB<aC;aB+=2){e.push(aB)}return e}),lt:al(function(e,aD,aC){var aB=aC<0?aC+aD:aC;for(;--aB>=0;){e.push(aB)}return e}),gt:al(function(e,aD,aC){var aB=aC<0?aC+aD:aC;for(;++aB<aD;){e.push(aB)}return e})}};s.pseudos.nth=s.pseudos.eq;for(C in {radio:true,checkbox:true,file:true,password:true,image:true}){s.pseudos[C]=B(C)}for(C in {submit:true,reset:true}){s.pseudos[C]=f(C)}function Z(){}Z.prototype=s.filters=s.pseudos;s.setFilters=new Z();m=A.tokenize=function(aD,aI){var i,aE,aG,aH,aF,aB,e,aC=an[aD+" "];if(aC){return aI?0:aC.slice(0)}aF=aD;aB=[];e=s.preFilter;while(aF){if(!i||(aE=z.exec(aF))){if(aE){aF=aF.slice(aE[0].length)||aF}aB.push((aG=[]))}i=false;if((aE=F.exec(aF))){i=aE.shift();aG.push({value:i,type:aE[0].replace(w," ")});aF=aF.slice(i.length)}for(aH in s.filter){if((aE=ag[aH].exec(aF))&&(!e[aH]||(aE=e[aH](aE)))){i=aE.shift();aG.push({value:i,type:aH,matches:aE});aF=aF.slice(i.length)}}if(!i){break}}return aI?aF.length:aF?A.error(aD):an(aD,aB).slice(0)};function n(aD){var aC=0,aB=aD.length,e="";for(;aC<aB;aC++){e+=aD[aC].value}return e}function v(aD,aB,aC){var e=aB.dir,aE=aC&&e==="parentNode",i=ai++;return aB.first?function(aH,aG,aF){while((aH=aH[e])){if(aH.nodeType===1||aE){return aD(aH,aG,aF)}}}:function(aJ,aH,aG){var aK,aI,aF=[ax,i];if(aG){while((aJ=aJ[e])){if(aJ.nodeType===1||aE){if(aD(aJ,aH,aG)){return true}}}}else{while((aJ=aJ[e])){if(aJ.nodeType===1||aE){aI=aJ[ao]||(aJ[ao]={});if((aK=aI[e])&&aK[0]===ax&&aK[1]===i){return(aF[2]=aK[2])}else{aI[e]=aF;if((aF[2]=aD(aJ,aH,aG))){return true}}}}}}}function az(e){return e.length>1?function(aE,aD,aB){var aC=e.length;while(aC--){if(!e[aC](aE,aD,aB)){return false}}return true}:e[0]}function D(aB,aE,aD){var aC=0,e=aE.length;for(;aC<e;aC++){A(aB,aE[aC],aD)}return aD}function ae(e,aB,aC,aD,aG){var aE,aJ=[],aF=0,aH=e.length,aI=aB!=null;for(;aF<aH;aF++){if((aE=e[aF])){if(!aC||aC(aE,aD,aG)){aJ.push(aE);if(aI){aB.push(aF)}}}}return aJ}function l(aB,i,aD,aC,aE,e){if(aC&&!aC[ao]){aC=l(aC)}if(aE&&!aE[ao]){aE=l(aE,e)}return o(function(aP,aM,aH,aO){var aR,aN,aJ,aI=[],aQ=[],aG=aM.length,aF=aP||D(i||"*",aH.nodeType?[aH]:aH,[]),aK=aB&&(aP||!i)?ae(aF,aI,aB,aH,aO):aF,aL=aD?aE||(aP?aB:aG||aC)?[]:aM:aK;if(aD){aD(aK,aL,aH,aO)}if(aC){aR=ae(aL,aQ);aC(aR,[],aH,aO);aN=aR.length;while(aN--){if((aJ=aR[aN])){aL[aQ[aN]]=!(aK[aQ[aN]]=aJ)}}}if(aP){if(aE||aB){if(aE){aR=[];aN=aL.length;while(aN--){if((aJ=aL[aN])){aR.push((aK[aN]=aJ))}}aE(null,(aL=[]),aR,aO)}aN=aL.length;while(aN--){if((aJ=aL[aN])&&(aR=aE?h.call(aP,aJ):aI[aN])>-1){aP[aR]=!(aM[aR]=aJ)}}}}else{aL=ae(aL===aM?aL.splice(aG,aL.length):aL);if(aE){aE(null,aM,aL,aO)}else{a.apply(aM,aL)}}})}function ap(aG){var aB,aE,aC,aF=aG.length,aJ=s.relative[aG[0].type],aK=aJ||s.relative[" "],aD=aJ?1:0,aH=v(function(i){return i===aB},aK,true),aI=v(function(i){return h.call(aB,i)>-1},aK,true),e=[function(aM,aL,i){return(!aJ&&(i||aL!==aA))||((aB=aL).nodeType?aH(aM,aL,i):aI(aM,aL,i))}];for(;aD<aF;aD++){if((aE=s.relative[aG[aD].type])){e=[v(az(e),aE)]}else{aE=s.filter[aG[aD].type].apply(null,aG[aD].matches);if(aE[ao]){aC=++aD;for(;aC<aF;aC++){if(s.relative[aG[aC].type]){break}}return l(aD>1&&az(e),aD>1&&n(aG.slice(0,aD-1).concat({value:aG[aD-2].type===" "?"*":""})).replace(w,"$1"),aE,aD<aC&&ap(aG.slice(aD,aC)),aC<aF&&ap((aG=aG.slice(aC))),aC<aF&&n(aG))}e.push(aE)}}return az(e)}function ac(aC,aB){var e=aB.length>0,aD=aC.length>0,i=function(aN,aH,aM,aL,aQ){var aI,aJ,aO,aS=0,aK="0",aE=aN&&[],aT=[],aR=aA,aG=aN||aD&&s.find.TAG("*",aQ),aF=(ax+=aR==null?1:Math.random()||0.1),aP=aG.length;if(aQ){aA=aH!==G&&aH}for(;aK!==aP&&(aI=aG[aK])!=null;aK++){if(aD&&aI){aJ=0;while((aO=aC[aJ++])){if(aO(aI,aH,aM)){aL.push(aI);break}}if(aQ){ax=aF}}if(e){if((aI=!aO&&aI)){aS--}if(aN){aE.push(aI)}}}aS+=aK;if(e&&aK!==aS){aJ=0;while((aO=aB[aJ++])){aO(aE,aT,aH,aM)}if(aN){if(aS>0){while(aK--){if(!(aE[aK]||aT[aK])){aT[aK]=ar.call(aL)}}}aT=ae(aT)}a.apply(aL,aT);if(aQ&&!aN&&aT.length>0&&(aS+aB.length)>1){A.uniqueSort(aL)}}if(aQ){ax=aF;aA=aR}return aE};return e?o(i):i}aa=A.compile=function(e,aC){var aD,aB=[],aF=[],aE=K[e+" "];if(!aE){if(!aC){aC=m(e)}aD=aC.length;while(aD--){aE=ap(aC[aD]);if(aE[ao]){aB.push(aE)}else{aF.push(aE)}}aE=K(e,ac(aF,aB));aE.selector=e}return aE};av=A.select=function(aC,e,aD,aG){var aE,aJ,aB,aK,aH,aI=typeof aC==="function"&&aC,aF=!aG&&m((aC=aI.selector||aC));aD=aD||[];if(aF.length===1){aJ=aF[0]=aF[0].slice(0);if(aJ.length>2&&(aB=aJ[0]).type==="ID"&&aw.getById&&e.nodeType===9&&am&&s.relative[aJ[1].type]){e=(s.find.ID(aB.matches[0].replace(x,aj),e)||[])[0];if(!e){return aD}else{if(aI){e=e.parentNode}}aC=aC.slice(aJ.shift().value.length)}aE=ag.needsContext.test(aC)?0:aJ.length;while(aE--){aB=aJ[aE];if(s.relative[(aK=aB.type)]){break}if((aH=s.find[aK])){if((aG=aH(aB.matches[0].replace(x,aj),af.test(aJ[0].type)&&X(e.parentNode)||e))){aJ.splice(aE,1);aC=aG.length&&n(aJ);if(!aC){a.apply(aD,aG);return aD}break}}}}(aI||aa(aC,aF))(aG,e,!am,aD,af.test(aC)&&X(e.parentNode)||e);return aD};aw.sortStable=ao.split("").sort(I).join("")===ao;aw.detectDuplicates=!!ab;ad();aw.sortDetached=k(function(e){return e.compareDocumentPosition(G.createElement("div"))&1});if(!k(function(e){e.innerHTML="<a href='#'></a>";return e.firstChild.getAttribute("href")==="#"})){ay("type|href|height|width",function(i,e,aB){if(!aB){return i.getAttribute(e,e.toLowerCase()==="type"?1:2)}})}if(!aw.attributes||!k(function(e){e.innerHTML="<input/>";e.firstChild.setAttribute("value","");return e.firstChild.getAttribute("value")===""})){ay("value",function(i,e,aB){if(!aB&&i.nodeName.toLowerCase()==="input"){return i.defaultValue}})}if(!k(function(e){return e.getAttribute("disabled")==null})){ay(b,function(i,e,aC){var aB;if(!aC){return i[e]===true?e.toLowerCase():(aB=i.getAttributeNode(e))&&aB.specified?aB.value:null}})}return A});