Commits

Jacob Kaplan-Moss committed 0e258eb

Added a mechanism for monkeypatching in debug views, and also added
jquery as both a test case and a place to get started making some js improvements.

I'm not totally thrilled with this approach -- it feels *very* hackish. The alternative might be to simply require installers to add a line to their ROOT_URLCONF, which wouldn't be *bad*, but I like the "load automatically" part of this thing.

Comments (0)

Files changed (4)

debug_toolbar/media/jquery.js

+/*
+ * jQuery 1.2.5 - New Wave Javascript
+ *
+ * Copyright (c) 2008 John Resig (jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * $Date: 2008-05-20 23:14:54 -0400 (Tue, 20 May 2008) $
+ * $Rev: 5651 $
+ */
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(G(){I w=19.4G,3k$=19.$;I D=19.4G=19.$=G(a,b){H 2t D.16.5r(a,b)};I u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,61=/^.[^:#\\[\\.]*$/,11;D.16=D.4d={5r:G(d,b){d=d||R;7(d.12){6[0]=d;6.J=1;H 6}7(1i d=="21"){I c=u.2K(d);7(c&&(c[1]||!b)){7(c[1])d=D.4g([c[1]],b);N{I a=R.5X(c[3]);7(a){7(a.2w!=c[3])H D().2x(d);H D(a)}d=[]}}N H D(b).2x(d)}N 7(D.1E(d))H D(R)[D.16.28?"28":"40"](d);H 6.6W(D.2d(d))},5u:"1.2.5",8F:G(){H 6.J},J:0,3o:G(a){H a==11?D.2d(6):6[a]},2C:G(b){I a=D(b);a.5j=6;H a},6W:G(a){6.J=0;2p.4d.1o.1y(6,a);H 6},O:G(a,b){H D.O(6,a,b)},5f:G(b){I a=-1;H D.2E(b&&b.5u?b[0]:b,6)},1J:G(c,a,b){I d=c;7(c.1u==54)7(a===11)H 6[0]&&D[b||"1J"](6[0],c);N{d={};d[c]=a}H 6.O(G(i){Q(c 1m d)D.1J(b?6.T:6,c,D.1h(6,d[c],b,i,c))})},1f:G(b,a){7((b==\'2g\'||b==\'1S\')&&2Y(a)<0)a=11;H 6.1J(b,a,"2a")},1q:G(b){7(1i b!="3V"&&b!=U)H 6.4E().3v((6[0]&&6[0].2y||R).5F(b));I a="";D.O(b||6,G(){D.O(6.3t,G(){7(6.12!=8)a+=6.12!=1?6.74:D.16.1q([6])})});H a},5y:G(b){7(6[0])D(b,6[0].2y).5S().38(6[0]).2j(G(){I a=6;1H(a.1z)a=a.1z;H a}).3v(6);H 6},8X:G(a){H 6.O(G(){D(6).6Q().5y(a)})},8Q:G(a){H 6.O(G(){D(6).5y(a)})},3v:G(){H 6.3S(17,L,P,G(a){7(6.12==1)6.3R(a)})},6F:G(){H 6.3S(17,L,L,G(a){7(6.12==1)6.38(a,6.1z)})},6E:G(){H 6.3S(17,P,P,G(a){6.1b.38(a,6)})},5k:G(){H 6.3S(17,P,L,G(a){6.1b.38(a,6.2F)})},3m:G(){H 6.5j||D([])},2x:G(b){I c=D.2j(6,G(a){H D.2x(b,a)});H 6.2C(/[^+>] [^+>]/.Y(b)||b.1g("..")>-1?D.4q(c):c)},5S:G(e){I f=6.2j(G(){7(D.15.1e&&!D.4m(6)){I a=6.6m(L),5e=R.3h("1t");5e.3R(a);H D.4g([5e.4I])[0]}N H 6.6m(L)});I d=f.2x("*").5H().O(G(){7(6[E]!=11)6[E]=U});7(e===L)6.2x("*").5H().O(G(i){7(6.12==3)H;I c=D.K(6,"3w");Q(I a 1m c)Q(I b 1m c[a])D.V.1d(d[i],a,c[a][b],c[a][b].K)});H f},1C:G(b){H 6.2C(D.1E(b)&&D.3C(6,G(a,i){H b.1j(a,i)})||D.3f(b,6))},4V:G(b){7(b.1u==54)7(61.Y(b))H 6.2C(D.3f(b,6,L));N b=D.3f(b,6);I a=b.J&&b[b.J-1]!==11&&!b.12;H 6.1C(G(){H a?D.2E(6,b)<0:6!=b})},1d:G(a){H 6.2C(D.4q(D.2O(6.3o(),1i a==\'21\'?D(a):D.2d(a))))},3A:G(a){H!!a&&D.3f(a,6).J>0},7S:G(a){H 6.3A("."+a)},6e:G(b){7(b==11){7(6.J){I c=6[0];7(D.W(c,"2A")){I e=c.63,60=[],14=c.14,2W=c.M=="2A-2W";7(e<0)H U;Q(I i=2W?e:0,2c=2W?e+1:14.J;i<2c;i++){I d=14[i];7(d.3a){b=D.15.1e&&!d.ap.2u.al?d.1q:d.2u;7(2W)H b;60.1o(b)}}H 60}N H(6[0].2u||"").1n(/\\r/g,"")}H 11}H 6.O(G(){7(6.12!=1)H;7(b.1u==2p&&/5O|5L/.Y(6.M))6.4D=(D.2E(6.2u,b)>=0||D.2E(6.37,b)>=0);N 7(D.W(6,"2A")){I a=D.2d(b);D("9S",6).O(G(){6.3a=(D.2E(6.2u,a)>=0||D.2E(6.1q,a)>=0)});7(!a.J)6.63=-1}N 6.2u=b})},2I:G(a){H a==11?(6.J?6[0].4I:U):6.4E().3v(a)},7c:G(a){H 6.5k(a).1Y()},77:G(i){H 6.3s(i,i+1)},3s:G(){H 6.2C(2p.4d.3s.1y(6,17))},2j:G(b){H 6.2C(D.2j(6,G(a,i){H b.1j(a,i,a)}))},5H:G(){H 6.1d(6.5j)},K:G(d,b){I a=d.1P(".");a[1]=a[1]?"."+a[1]:"";7(b===11){I c=6.5C("9z"+a[1]+"!",[a[0]]);7(c===11&&6.J)c=D.K(6[0],d);H c===11&&a[1]?6.K(a[0]):c}N H 6.1R("9u"+a[1]+"!",[a[0],b]).O(G(){D.K(6,d,b)})},2V:G(a){H 6.O(G(){D.2V(6,a)})},3S:G(g,f,h,d){I e=6.J>1,3p;H 6.O(G(){7(!3p){3p=D.4g(g,6.2y);7(h)3p.9n()}I b=6;7(f&&D.W(6,"1U")&&D.W(3p[0],"4N"))b=6.3F("1W")[0]||6.3R(6.2y.3h("1W"));I c=D([]);D.O(3p,G(){I a=e?D(6).5S(L)[0]:6;7(D.W(a,"1k")){c=c.1d(a)}N{7(a.12==1)c=c.1d(D("1k",a).1Y());d.1j(b,a)}});c.O(6S)})}};D.16.5r.4d=D.16;G 6S(i,a){7(a.3X)D.3T({1a:a.3X,3c:P,1K:"1k"});N D.5s(a.1q||a.6O||a.4I||"");7(a.1b)a.1b.2Z(a)}G 1x(){H+2t 8J}D.1l=D.16.1l=G(){I b=17[0]||{},i=1,J=17.J,4z=P,14;7(b.1u==8H){4z=b;b=17[1]||{};i=2}7(1i b!="3V"&&1i b!="G")b={};7(J==i){b=6;--i}Q(;i<J;i++)7((14=17[i])!=U)Q(I c 1m 14){I a=b[c],2B=14[c];7(b===2B)6M;7(4z&&2B&&1i 2B=="3V"&&!2B.12)b[c]=D.1l(4z,a||(2B.J!=U?[]:{}),2B);N 7(2B!==11)b[c]=2B}H b};I E="4G"+1x(),6L=0,5o={},6H=/z-?5f|8A-?8z|1r|6B|8v-?1S/i,3N=R.3N||{};D.1l({8t:G(a){19.$=3k$;7(a)19.4G=w;H D},1E:G(a){H!!a&&1i a!="21"&&!a.W&&a.1u!=2p&&/^[\\s[]?G/.Y(a+"")},4m:G(a){H a.1F&&!a.1c||a.2e&&a.2y&&!a.2y.1c},5s:G(a){a=D.3l(a);7(a){I b=R.3F("6v")[0]||R.1F,1k=R.3h("1k");1k.M="1q/4s";7(D.15.1e)1k.1q=a;N 1k.3R(R.5F(a));b.38(1k,b.1z);b.2Z(1k)}},W:G(b,a){H b.W&&b.W.2o()==a.2o()},1V:{},K:G(c,d,b){c=c==19?5o:c;I a=c[E];7(!a)a=c[E]=++6L;7(d&&!D.1V[a])D.1V[a]={};7(b!==11)D.1V[a][d]=b;H d?D.1V[a][d]:a},2V:G(c,b){c=c==19?5o:c;I a=c[E];7(b){7(D.1V[a]){2X D.1V[a][b];b="";Q(b 1m D.1V[a])1T;7(!b)D.2V(c)}}N{1Z{2X c[E]}1X(e){7(c.5h)c.5h(E)}2X D.1V[a]}},O:G(d,a,c){I e,i=0,J=d.J;7(c){7(J==11){Q(e 1m d)7(a.1y(d[e],c)===P)1T}N Q(;i<J;)7(a.1y(d[i++],c)===P)1T}N{7(J==11){Q(e 1m d)7(a.1j(d[e],e,d[e])===P)1T}N Q(I b=d[0];i<J&&a.1j(b,i,b)!==P;b=d[++i]){}}H d},1h:G(b,a,c,i,d){7(D.1E(a))a=a.1j(b,i);H a&&a.1u==5g&&c=="2a"&&!6H.Y(d)?a+"2U":a},1G:{1d:G(c,b){D.O((b||"").1P(/\\s+/),G(i,a){7(c.12==1&&!D.1G.3J(c.1G,a))c.1G+=(c.1G?" ":"")+a})},1Y:G(c,b){7(c.12==1)c.1G=b!=11?D.3C(c.1G.1P(/\\s+/),G(a){H!D.1G.3J(b,a)}).6r(" "):""},3J:G(b,a){H D.2E(a,(b.1G||b).6q().1P(/\\s+/))>-1}},6p:G(b,c,a){I e={};Q(I d 1m c){e[d]=b.T[d];b.T[d]=c[d]}a.1j(b);Q(I d 1m c)b.T[d]=e[d]},1f:G(d,e,c){7(e=="2g"||e=="1S"){I b,3I={30:"64",5d:"1B",18:"3G"},2Q=e=="2g"?["5c","6j"]:["5a","6h"];G 59(){b=e=="2g"?d.8e:d.8b;I a=0,2m=0;D.O(2Q,G(){a+=2Y(D.2a(d,"55"+6,L))||0;2m+=2Y(D.2a(d,"2m"+6+"49",L))||0});b-=26.83(a+2m)}7(D(d).3A(":4i"))59();N D.6p(d,3I,59);H 26.2c(0,b)}H D.2a(d,e,c)},2a:G(f,l,k){I e,T=f.T;G 3D(b){7(!D.15.2k)H P;I a=3N.51(b,U);H!a||a.50("3D")==""}7(l=="1r"&&D.15.1e){e=D.1J(T,"1r");H e==""?"1":e}7(D.15.2J&&l=="18"){I d=T.4W;T.4W="0 7X 7W";T.4W=d}7(l.1A(/4h/i))l=y;7(!k&&T&&T[l])e=T[l];N 7(3N.51){7(l.1A(/4h/i))l="4h";l=l.1n(/([A-Z])/g,"-$1").3g();I c=3N.51(f,U);7(c&&!3D(f))e=c.50(l);N{I g=[],2D=[],a=f,i=0;Q(;a&&3D(a);a=a.1b)2D.6g(a);Q(;i<2D.J;i++)7(3D(2D[i])){g[i]=2D[i].T.18;2D[i].T.18="3G"}e=l=="18"&&g[2D.J-1]!=U?"2L":(c&&c.50(l))||"";Q(i=0;i<g.J;i++)7(g[i]!=U)2D[i].T.18=g[i]}7(l=="1r"&&e=="")e="1"}N 7(f.4f){I h=l.1n(/\\-(\\w)/g,G(a,b){H b.2o()});e=f.4f[l]||f.4f[h];7(!/^\\d+(2U)?$/i.Y(e)&&/^\\d/.Y(e)){I j=T.1w,65=f.62.1w;f.62.1w=f.4f.1w;T.1w=e||0;e=T.aK+"2U";T.1w=j;f.62.1w=65}}H e},4g:G(l,h){I k=[];h=h||R;7(1i h.3h==\'11\')h=h.2y||h[0]&&h[0].2y||R;D.O(l,G(i,d){7(!d)H;7(d.1u==5g)d+=\'\';7(1i d=="21"){d=d.1n(/(<(\\w+)[^>]*?)\\/>/g,G(b,a,c){H c.1A(/^(aG|3H|7C|aD|4S|7z|ay|3y|ax|av|as)$/i)?b:a+"></"+c+">"});I f=D.3l(d).3g(),1t=h.3h("1t");I e=!f.1g("<ar")&&[1,"<2A 7v=\'7v\'>","</2A>"]||!f.1g("<ao")&&[1,"<7u>","</7u>"]||f.1A(/^<(an|1W|ak|ai|af)/)&&[1,"<1U>","</1U>"]||!f.1g("<4N")&&[2,"<1U><1W>","</1W></1U>"]||(!f.1g("<ad")||!f.1g("<aa"))&&[3,"<1U><1W><4N>","</4N></1W></1U>"]||!f.1g("<7C")&&[2,"<1U><1W></1W><7n>","</7n></1U>"]||D.15.1e&&[1,"1t<1t>","</1t>"]||[0,"",""];1t.4I=e[1]+d+e[2];1H(e[0]--)1t=1t.5R;7(D.15.1e){I g=!f.1g("<1U")&&f.1g("<1W")<0?1t.1z&&1t.1z.3t:e[1]=="<1U>"&&f.1g("<1W")<0?1t.3t:[];Q(I j=g.J-1;j>=0;--j)7(D.W(g[j],"1W")&&!g[j].3t.J)g[j].1b.2Z(g[j]);7(/^\\s/.Y(d))1t.38(h.5F(d.1A(/^\\s*/)[0]),1t.1z)}d=D.2d(1t.3t)}7(d.J===0&&(!D.W(d,"3W")&&!D.W(d,"2A")))H;7(d[0]==11||D.W(d,"3W")||d.14)k.1o(d);N k=D.2O(k,d)});H k},1J:G(d,f,c){7(!d||d.12==3||d.12==8)H 11;I e=!D.4m(d),41=c!==11,1e=D.15.1e;f=e&&D.3I[f]||f;7(d.2e){I g=/5N|3X|T/.Y(f);7(f=="3a"&&D.15.2k)d.1b.63;7(e&&!g&&f 1m d){7(41){7(f=="M"&&D.W(d,"4S")&&d.1b)7l"M a1 9Y\'t 9U 9T";d[f]=c}7(D.W(d,"3W")&&d.7e(f))H d.7e(f).74;H d[f]}7(1e&&e&&f=="T")H D.1J(d.T,"9Q",c);7(41)d.9P(f,""+c);7(1e&&g&&e)H d.4J(f,2);H d.4J(f)}7(1e&&f=="1r"){7(41){d.6B=1;d.1C=(d.1C||"").1n(/7b\\([^)]*\\)/,"")+(3r(c)+\'\'=="9K"?"":"7b(1r="+c*79+")")}H d.1C&&d.1C.1g("1r=")>=0?(2Y(d.1C.1A(/1r=([^)]*)/)[1])/79)+\'\':""}f=f.1n(/-([a-z])/9G,G(a,b){H b.2o()});7(41)d[f]=c;H d[f]},3l:G(a){H(a||"").1n(/^\\s+|\\s+$/g,"")},2d:G(b){I a=[];7(b!=U){I i=b.J;7(i==U||b.1P||b.4H||b.1j)a[0]=b;N 1H(i)a[--i]=b[i]}H a},2E:G(b,a){Q(I i=0,J=a.J;i<J;i++)7(a[i]===b)H i;H-1},2O:G(a,b){I i=0,S,2R=a.J;7(D.15.1e){1H(S=b[i++])7(S.12!=8)a[2R++]=S}N 1H(S=b[i++])a[2R++]=S;H a},4q:G(a){I c=[],2z={};1Z{Q(I i=0,J=a.J;i<J;i++){I b=D.K(a[i]);7(!2z[b]){2z[b]=L;c.1o(a[i])}}}1X(e){c=a}H c},3C:G(c,a,d){I b=[];Q(I i=0,J=c.J;i<J;i++)7(!d!=!a(c[i],i))b.1o(c[i]);H b},2j:G(d,a){I c=[];Q(I i=0,J=d.J;i<J;i++){I b=a(d[i],i);7(b!=U)c[c.J]=b}H c.78.1y([],c)}});I v=9A.9y.3g();D.15={5B:(v.1A(/.+(?:9x|9v|9t|9s)[\\/: ]([\\d.]+)/)||[])[1],2k:/73/.Y(v),2J:/2J/.Y(v),1e:/1e/.Y(v)&&!/2J/.Y(v),42:/42/.Y(v)&&!/(9q|73)/.Y(v)};I y=D.15.1e?"7m":"6Z";D.1l({6Y:!D.15.1e||R.6X=="7r",3I:{"Q":"9k","9h":"1G","4h":y,6Z:y,7m:y,9e:"9c",9b:"9a",98:"97"}});D.O({6U:G(a){H a.1b},94:G(a){H D.4T(a,"1b")},92:G(a){H D.34(a,2,"2F")},8Z:G(a){H D.34(a,2,"4R")},8Y:G(a){H D.4T(a,"2F")},8W:G(a){H D.4T(a,"4R")},8V:G(a){H D.5t(a.1b.1z,a)},8U:G(a){H D.5t(a.1z)},6Q:G(a){H D.W(a,"8T")?a.8S||a.8R.R:D.2d(a.3t)}},G(c,d){D.16[c]=G(b){I a=D.2j(6,d);7(b&&1i b=="21")a=D.3f(b,a);H 6.2C(D.4q(a))}});D.O({6P:"3v",8P:"6F",38:"6E",8O:"5k",8N:"7c"},G(c,b){D.16[c]=G(){I a=17;H 6.O(G(){Q(I i=0,J=a.J;i<J;i++)D(a[i])[b](6)})}});D.O({8M:G(a){D.1J(6,a,"");7(6.12==1)6.5h(a)},8L:G(a){D.1G.1d(6,a)},8K:G(a){D.1G.1Y(6,a)},8I:G(a){D.1G[D.1G.3J(6,a)?"1Y":"1d"](6,a)},1Y:G(a){7(!a||D.1C(a,[6]).r.J){D("*",6).1d(6).O(G(){D.V.1Y(6);D.2V(6)});7(6.1b)6.1b.2Z(6)}},4E:G(){D(">*",6).1Y();1H(6.1z)6.2Z(6.1z)}},G(a,b){D.16[a]=G(){H 6.O(b,17)}});D.O(["6N","49"],G(i,c){I b=c.3g();D.16[b]=G(a){H 6[0]==19?D.15.2J&&R.1c["5q"+c]||D.15.2k&&19["5p"+c]||R.6X=="7r"&&R.1F["5q"+c]||R.1c["5q"+c]:6[0]==R?26.2c(26.2c(R.1c["4y"+c],R.1F["4y"+c]),26.2c(R.1c["2i"+c],R.1F["2i"+c])):a==11?(6.J?D.1f(6[0],b):U):6.1f(b,a.1u==54?a:a+"2U")}});G 25(a,b){H a[0]&&3r(D.2a(a[0],b,L),10)||0}I C=D.15.2k&&3r(D.15.5B)<8G?"(?:[\\\\w*3k-]|\\\\\\\\.)":"(?:[\\\\w\\8E-\\8D*3k-]|\\\\\\\\.)",6K=2t 4w("^>\\\\s*("+C+"+)"),6J=2t 4w("^("+C+"+)(#)("+C+"+)"),6I=2t 4w("^([#.]?)("+C+"*)");D.1l({6G:{"":G(a,i,m){H m[2]=="*"||D.W(a,m[2])},"#":G(a,i,m){H a.4J("2w")==m[2]},":":{8C:G(a,i,m){H i<m[3]-0},8B:G(a,i,m){H i>m[3]-0},34:G(a,i,m){H m[3]-0==i},77:G(a,i,m){H m[3]-0==i},3n:G(a,i){H i==0},3Q:G(a,i,m,r){H i==r.J-1},6D:G(a,i){H i%2==0},6C:G(a,i){H i%2},"3n-4u":G(a){H a.1b.3F("*")[0]==a},"3Q-4u":G(a){H D.34(a.1b.5R,1,"4R")==a},"8y-4u":G(a){H!D.34(a.1b.5R,2,"4R")},6U:G(a){H a.1z},4E:G(a){H!a.1z},8x:G(a,i,m){H(a.6O||a.8w||D(a).1q()||"").1g(m[3])>=0},4i:G(a){H"1B"!=a.M&&D.1f(a,"18")!="2L"&&D.1f(a,"5d")!="1B"},1B:G(a){H"1B"==a.M||D.1f(a,"18")=="2L"||D.1f(a,"5d")=="1B"},8u:G(a){H!a.3O},3O:G(a){H a.3O},4D:G(a){H a.4D},3a:G(a){H a.3a||D.1J(a,"3a")},1q:G(a){H"1q"==a.M},5O:G(a){H"5O"==a.M},5L:G(a){H"5L"==a.M},5m:G(a){H"5m"==a.M},3E:G(a){H"3E"==a.M},5l:G(a){H"5l"==a.M},6A:G(a){H"6A"==a.M},6y:G(a){H"6y"==a.M},2q:G(a){H"2q"==a.M||D.W(a,"2q")},4S:G(a){H/4S|2A|6x|2q/i.Y(a.W)},3J:G(a,i,m){H D.2x(m[3],a).J},8s:G(a){H/h\\d/i.Y(a.W)},8r:G(a){H D.3C(D.3M,G(b){H a==b.S}).J}}},6w:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2t 4w("^([:.#]*)("+C+"+)")],3f:G(a,c,b){I d,1s=[];1H(a&&a!=d){d=a;I f=D.1C(a,c,b);a=f.t.1n(/^\\s*,\\s*/,"");1s=b?c=f.r:D.2O(1s,f.r)}H 1s},2x:G(t,o){7(1i t!="21")H[t];7(o&&o.12!=1&&o.12!=9)H[];o=o||R;I d=[o],2z=[],3Q,W;1H(t&&3Q!=t){I r=[];3Q=t;t=D.3l(t);I l=P,3j=6K,m=3j.2K(t);7(m){W=m[1].2o();Q(I i=0;d[i];i++)Q(I c=d[i].1z;c;c=c.2F)7(c.12==1&&(W=="*"||c.W.2o()==W))r.1o(c);d=r;t=t.1n(3j,"");7(t.1g(" ")==0)6M;l=L}N{3j=/^([>+~])\\s*(\\w*)/i;7((m=3j.2K(t))!=U){r=[];I k={};W=m[2].2o();m=m[1];Q(I j=0,3i=d.J;j<3i;j++){I n=m=="~"||m=="+"?d[j].2F:d[j].1z;Q(;n;n=n.2F)7(n.12==1){I g=D.K(n);7(m=="~"&&k[g])1T;7(!W||n.W.2o()==W){7(m=="~")k[g]=L;r.1o(n)}7(m=="+")1T}}d=r;t=D.3l(t.1n(3j,""));l=L}}7(t&&!l){7(!t.1g(",")){7(o==d[0])d.4r();2z=D.2O(2z,d);r=d=[o];t=" "+t.6u(1,t.J)}N{I h=6J;I m=h.2K(t);7(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2K(t)}m[2]=m[2].1n(/\\\\/g,"");I f=d[d.J-1];7(m[1]=="#"&&f&&f.5X&&!D.4m(f)){I p=f.5X(m[2]);7((D.15.1e||D.15.2J)&&p&&1i p.2w=="21"&&p.2w!=m[2])p=D(\'[@2w="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.W(p,m[3]))?[p]:[]}N{Q(I i=0;d[i];i++){I a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];7(a=="*"&&d[i].W.3g()=="3V")a="3y";r=D.2O(r,d[i].3F(a))}7(m[1]==".")r=D.5i(r,m[2]);7(m[1]=="#"){I e=[];Q(I i=0;r[i];i++)7(r[i].4J("2w")==m[2]){e=[r[i]];1T}r=e}d=r}t=t.1n(h,"")}}7(t){I b=D.1C(t,r);d=r=b.r;t=D.3l(b.t)}}7(t)d=[];7(d&&o==d[0])d.4r();2z=D.2O(2z,d);H 2z},5i:G(r,m,a){m=" "+m+" ";I c=[];Q(I i=0;r[i];i++){I b=(" "+r[i].1G+" ").1g(m)>=0;7(!a&&b||a&&!b)c.1o(r[i])}H c},1C:G(t,r,h){I d;1H(t&&t!=d){d=t;I p=D.6w,m;Q(I i=0;p[i];i++){m=p[i].2K(t);7(m){t=t.8q(m[0].J);m[2]=m[2].1n(/\\\\/g,"");1T}}7(!m)1T;7(m[1]==":"&&m[2]=="4V")r=61.Y(m[3])?D.1C(m[3],r,L).r:D(r).4V(m[3]);N 7(m[1]==".")r=D.5i(r,m[2],h);N 7(m[1]=="["){I g=[],M=m[3];Q(I i=0,3i=r.J;i<3i;i++){I a=r[i],z=a[D.3I[m[2]]||m[2]];7(z==U||/5N|3X|3a/.Y(m[2]))z=D.1J(a,m[2])||\'\';7((M==""&&!!z||M=="="&&z==m[5]||M=="!="&&z!=m[5]||M=="^="&&z&&!z.1g(m[5])||M=="$="&&z.6u(z.J-m[5].J)==m[5]||(M=="*="||M=="~=")&&z.1g(m[5])>=0)^h)g.1o(a)}r=g}N 7(m[1]==":"&&m[2]=="34-4u"){I e={},g=[],Y=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2K(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.Y(m[3])&&"8p+"+m[3]||m[3]),3n=(Y[1]+(Y[2]||1))-0,d=Y[3]-0;Q(I i=0,3i=r.J;i<3i;i++){I j=r[i],1b=j.1b,2w=D.K(1b);7(!e[2w]){I c=1;Q(I n=1b.1z;n;n=n.2F)7(n.12==1)n.4p=c++;e[2w]=L}I b=P;7(3n==0){7(j.4p==d)b=L}N 7((j.4p-d)%3n==0&&(j.4p-d)/3n>=0)b=L;7(b^h)g.1o(j)}r=g}N{I f=D.6G[m[1]];7(1i f=="3V")f=f[m[2]];7(1i f=="21")f=6t("P||G(a,i){H "+f+";}");r=D.3C(r,G(a,i){H f(a,i,m,r)},h)}}H{r:r,t:t}},4T:G(b,c){I a=[],1s=b[c];1H(1s&&1s!=R){7(1s.12==1)a.1o(1s);1s=1s[c]}H a},34:G(a,e,c,b){e=e||1;I d=0;Q(;a;a=a[c])7(a.12==1&&++d==e)1T;H a},5t:G(n,a){I r=[];Q(;n;n=n.2F){7(n.12==1&&n!=a)r.1o(n)}H r}});D.V={1d:G(f,i,g,e){7(f.12==3||f.12==8)H;7(D.15.1e&&f.4H)f=19;7(!g.23)g.23=6.23++;7(e!=11){I h=g;g=6.3L(h,G(){H h.1y(6,17)});g.K=e}I j=D.K(f,"3w")||D.K(f,"3w",{}),1D=D.K(f,"1D")||D.K(f,"1D",G(){7(1i D!="11"&&!D.V.5n)H D.V.1D.1y(17.3P.S,17)});1D.S=f;D.O(i.1P(/\\s+/),G(c,b){I a=b.1P(".");b=a[0];g.M=a[1];I d=j[b];7(!d){d=j[b]={};7(!D.V.2s[b]||D.V.2s[b].4o.1j(f)===P){7(f.3K)f.3K(b,1D,P);N 7(f.6s)f.6s("4n"+b,1D)}}d[g.23]=g;D.V.24[b]=L});f=U},23:1,24:{},1Y:G(e,h,f){7(e.12==3||e.12==8)H;I i=D.K(e,"3w"),1I,5f;7(i){7(h==11||(1i h=="21"&&h.8o(0)=="."))Q(I g 1m i)6.1Y(e,g+(h||""));N{7(h.M){f=h.2v;h=h.M}D.O(h.1P(/\\s+/),G(b,a){I c=a.1P(".");a=c[0];7(i[a]){7(f)2X i[a][f.23];N Q(f 1m i[a])7(!c[1]||i[a][f].M==c[1])2X i[a][f];Q(1I 1m i[a])1T;7(!1I){7(!D.V.2s[a]||D.V.2s[a].4A.1j(e)===P){7(e.6o)e.6o(a,D.K(e,"1D"),P);N 7(e.6n)e.6n("4n"+a,D.K(e,"1D"))}1I=U;2X i[a]}}})}Q(1I 1m i)1T;7(!1I){I d=D.K(e,"1D");7(d)d.S=U;D.2V(e,"3w");D.2V(e,"1D")}}},1R:G(h,c,f,g,i){c=D.2d(c);7(h.1g("!")>=0){h=h.3s(0,-1);I a=L}7(!f){7(6.24[h])D("*").1d([19,R]).1R(h,c)}N{7(f.12==3||f.12==8)H 11;I b,1I,16=D.1E(f[h]||U),V=!c[0]||!c[0].31;7(V){c.6g({M:h,2G:f,31:G(){},3Y:G(){},4l:1x()});c[0][E]=L}c[0].M=h;7(a)c[0].6l=L;I d=D.K(f,"1D");7(d)b=d.1y(f,c);7((!16||(D.W(f,\'a\')&&h=="4K"))&&f["4n"+h]&&f["4n"+h].1y(f,c)===P)b=P;7(V)c.4r();7(i&&D.1E(i)){1I=i.1y(f,b==U?c:c.78(b));7(1I!==11)b=1I}7(16&&g!==P&&b!==P&&!(D.W(f,\'a\')&&h=="4K")){6.5n=L;1Z{f[h]()}1X(e){}}6.5n=P}H b},1D:G(b){I a,1I,36,5A,4k;b=17[0]=D.V.6k(b||19.V);36=b.M.1P(".");b.M=36[0];36=36[1];5A=!36&&!b.6l;4k=(D.K(6,"3w")||{})[b.M];Q(I j 1m 4k){I c=4k[j];7(5A||c.M==36){b.2v=c;b.K=c.K;1I=c.1y(6,17);7(a!==P)a=1I;7(1I===P){b.31();b.3Y()}}}H a},6k:G(b){7(b[E]==L)H b;I d=b;b={8n:d};I c="8m 8l 8k 8j 2q 8i 45 5D 6i 5b 8h K 8g 8f 4j 2v 58 57 8d 8c 56 6f 8a 89 4L 87 86 85 6c 2G 4l 6b M 82 81 2Q".1P(" ");Q(I i=c.J;i;i--)b[c[i]]=d[c[i]];b[E]=L;b.31=G(){7(d.31)d.31();d.80=P};b.3Y=G(){7(d.3Y)d.3Y();d.7Z=L};b.4l=b.4l||1x();7(!b.2G)b.2G=b.6c||R;7(b.2G.12==3)b.2G=b.2G.1b;7(!b.4L&&b.4j)b.4L=b.4j==b.2G?b.6b:b.4j;7(b.56==U&&b.5D!=U){I a=R.1F,1c=R.1c;b.56=b.5D+(a&&a.2h||1c&&1c.2h||0)-(a.6a||0);b.6f=b.6i+(a&&a.2b||1c&&1c.2b||0)-(a.69||0)}7(!b.2Q&&((b.45||b.45===0)?b.45:b.58))b.2Q=b.45||b.58;7(!b.57&&b.5b)b.57=b.5b;7(!b.2Q&&b.2q)b.2Q=(b.2q&1?1:(b.2q&2?3:(b.2q&4?2:0)));H b},3L:G(a,b){b.23=a.23=a.23||b.23||6.23++;H b},2s:{28:{4o:G(){53();H},4A:G(){H}},4b:{4o:G(){7(D.15.1e)H P;D(6).2N("52",D.V.2s.4b.2v);H L},4A:G(){7(D.15.1e)H P;D(6).4c("52",D.V.2s.4b.2v);H L},2v:G(a){7(F(a,6))H L;a.M="4b";H D.V.1D.1y(6,17)}},4e:{4o:G(){7(D.15.1e)H P;D(6).2N("4Z",D.V.2s.4e.2v);H L},4A:G(){7(D.15.1e)H P;D(6).4c("4Z",D.V.2s.4e.2v);H L},2v:G(a){7(F(a,6))H L;a.M="4e";H D.V.1D.1y(6,17)}}}};D.16.1l({2N:G(c,a,b){H c=="4Y"?6.2W(c,a,b):6.O(G(){D.V.1d(6,c,b||a,b&&a)})},2W:G(d,b,c){I e=D.V.3L(c||b,G(a){D(6).4c(a,e);H(c||b).1y(6,17)});H 6.O(G(){D.V.1d(6,d,e,c&&b)})},4c:G(a,b){H 6.O(G(){D.V.1Y(6,a,b)})},1R:G(c,a,b){H 6.O(G(){D.V.1R(c,a,6,L,b)})},5C:G(c,a,b){H 6[0]&&D.V.1R(c,a,6[0],P,b)},2l:G(b){I c=17,i=1;1H(i<c.J)D.V.3L(b,c[i++]);H 6.4K(D.V.3L(b,G(a){6.4X=(6.4X||0)%i;a.31();H c[6.4X++].1y(6,17)||P}))},7Y:G(a,b){H 6.2N(\'4b\',a).2N(\'4e\',b)},28:G(a){53();7(D.2P)a.1j(R,D);N D.3B.1o(G(){H a.1j(6,D)});H 6}});D.1l({2P:P,3B:[],28:G(){7(!D.2P){D.2P=L;7(D.3B){D.O(D.3B,G(){6.1j(R)});D.3B=U}D(R).5C("28")}}});I x=P;G 53(){7(x)H;x=L;7(R.3K&&!D.15.2J)R.3K("68",D.28,P);7(D.15.1e&&19==1O)(G(){7(D.2P)H;1Z{R.1F.7V("1w")}1X(3d){3z(17.3P,0);H}D.28()})();7(D.15.2J)R.3K("68",G(){7(D.2P)H;Q(I i=0;i<R.4U.J;i++)7(R.4U[i].3O){3z(17.3P,0);H}D.28()},P);7(D.15.2k){I a;(G(){7(D.2P)H;7(R.3e!="67"&&R.3e!="1N"){3z(17.3P,0);H}7(a===11)a=D("T, 7z[7U=7T]").J;7(R.4U.J!=a){3z(17.3P,0);H}D.28()})()}D.V.1d(19,"40",D.28)}D.O(("7R,7Q,40,7P,4y,4Y,4K,84,"+"7O,7N,7M,52,4Z,88,2A,"+"5l,7L,7K,7J,3d").1P(","),G(i,b){D.16[b]=G(a){H a?6.2N(b,a):6.1R(b)}});I F=G(a,c){I b=a.4L;1H(b&&b!=c)1Z{b=b.1b}1X(3d){b=c}H b==c};D(19).2N("4Y",G(){D("*").1d(R).4c()});D.16.1l({6d:D.16.40,40:G(g,d,c){7(1i g!=\'21\')H 6.6d(g);I e=g.1g(" ");7(e>=0){I i=g.3s(e,g.J);g=g.3s(0,e)}c=c||G(){};I f="2S";7(d)7(D.1E(d)){c=d;d=U}N{d=D.3y(d);f="66"}I h=6;D.3T({1a:g,M:f,1K:"2I",K:d,1N:G(a,b){7(b=="22"||b=="6z")h.2I(i?D("<1t/>").3v(a.4C.1n(/<1k(.|\\s)*?\\/1k>/g,"")).2x(i):a.4C);h.O(c,[a.4C,b,a])}});H 6},aL:G(){H D.3y(6.7H())},7H:G(){H 6.2j(G(){H D.W(6,"3W")?D.2d(6.aH):6}).1C(G(){H 6.37&&!6.3O&&(6.4D||/2A|6x/i.Y(6.W)||/1q|1B|3E/i.Y(6.M))}).2j(G(i,c){I b=D(6).6e();H b==U?U:b.1u==2p?D.2j(b,G(a,i){H{37:c.37,2u:a}}):{37:c.37,2u:b}}).3o()}});D.O("7G,7F,7E,7D,7B,7A".1P(","),G(i,o){D.16[o]=G(f){H 6.2N(o,f)}});I B=1x();D.1l({3o:G(d,b,a,c){7(D.1E(b)){a=b;b=U}H D.3T({M:"2S",1a:d,K:b,22:a,1K:c})},aC:G(b,a){H D.3o(b,U,a,"1k")},aB:G(c,b,a){H D.3o(c,b,a,"3u")},aA:G(d,b,a,c){7(D.1E(b)){a=b;b={}}H D.3T({M:"66",1a:d,K:b,22:a,1K:c})},az:G(a){D.1l(D.5Z,a)},5Z:{1a:5Y.5N,24:L,M:"2S",2T:0,7y:"4t/x-aw-3W-au",7w:L,3c:L,K:U,5V:U,3E:U,4v:{2M:"4t/2M, 1q/2M",2I:"1q/2I",1k:"1q/4s, 4t/4s",3u:"4t/3u, 1q/4s",1q:"1q/aq",4Q:"*/*"}},4x:{},3T:G(s){s=D.1l(L,s,D.1l(L,{},D.5Z,s));I g,33=/=\\?(&|$)/g,1v,K,M=s.M.2o();7(s.K&&s.7w&&1i s.K!="21")s.K=D.3y(s.K);7(s.1K=="4P"){7(M=="2S"){7(!s.1a.1A(33))s.1a+=(s.1a.1A(/\\?/)?"&":"?")+(s.4P||"7t")+"=?"}N 7(!s.K||!s.K.1A(33))s.K=(s.K?s.K+"&":"")+(s.4P||"7t")+"=?";s.1K="3u"}7(s.1K=="3u"&&(s.K&&s.K.1A(33)||s.1a.1A(33))){g="4P"+B++;7(s.K)s.K=(s.K+"").1n(33,"="+g+"$1");s.1a=s.1a.1n(33,"="+g+"$1");s.1K="1k";19[g]=G(a){K=a;22();1N();19[g]=11;1Z{2X 19[g]}1X(e){}7(i)i.2Z(h)}}7(s.1K=="1k"&&s.1V==U)s.1V=P;7(s.1V===P&&M=="2S"){I j=1x();I k=s.1a.1n(/(\\?|&)3k=.*?(&|$)/,"$am="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1A(/\\?/)?"&":"?")+"3k="+j:"")}7(s.K&&M=="2S"){s.1a+=(s.1a.1A(/\\?/)?"&":"?")+s.K;s.K=U}7(s.24&&!D.4O++)D.V.1R("7G");I n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;7(s.1K=="1k"&&M=="2S"&&n.Y(s.1a)&&n.2K(s.1a)[1]!=5Y.aj){I i=R.3F("6v")[0];I h=R.3h("1k");h.3X=s.1a;7(s.7s)h.ah=s.7s;7(!g){I l=P;h.ag=h.ae=G(){7(!l&&(!6.3e||6.3e=="67"||6.3e=="1N")){l=L;22();1N();i.2Z(h)}}}i.3R(h);H 11}I m=P;I c=19.7q?2t 7q("ac.ab"):2t 7p();7(s.5V)c.7o(M,s.1a,s.3c,s.5V,s.3E);N c.7o(M,s.1a,s.3c);1Z{7(s.K)c.4B("a9-a8",s.7y);7(s.5Q)c.4B("a7-5P-a6",D.4x[s.1a]||"a5, a4 a3 a2 5x:5x:5x a0");c.4B("X-9X-9W","7p");c.4B("9V",s.1K&&s.4v[s.1K]?s.4v[s.1K]+", */*":s.4v.4Q)}1X(e){}7(s.7k&&s.7k(c,s)===P){s.24&&D.4O--;c.7j();H P}7(s.24)D.V.1R("7A",[c,s]);I d=G(a){7(!m&&c&&(c.3e==4||a=="2T")){m=L;7(f){7i(f);f=U}1v=a=="2T"&&"2T"||!D.7h(c)&&"3d"||s.5Q&&D.7g(c,s.1a)&&"6z"||"22";7(1v=="22"){1Z{K=D.7f(c,s.1K,s.9R)}1X(e){1v="5I"}}7(1v=="22"){I b;1Z{b=c.5z("7d-5P")}1X(e){}7(s.5Q&&b)D.4x[s.1a]=b;7(!g)22()}N D.5G(s,c,1v);1N();7(s.3c)c=U}};7(s.3c){I f=4H(d,13);7(s.2T>0)3z(G(){7(c){c.7j();7(!m)d("2T")}},s.2T)}1Z{c.9O(s.K)}1X(e){D.5G(s,c,U,e)}7(!s.3c)d();G 22(){7(s.22)s.22(K,1v);7(s.24)D.V.1R("7B",[c,s])}G 1N(){7(s.1N)s.1N(c,1v);7(s.24)D.V.1R("7E",[c,s]);7(s.24&&!--D.4O)D.V.1R("7F")}H c},5G:G(s,a,b,e){7(s.3d)s.3d(a,b,e);7(s.24)D.V.1R("7D",[a,s,e])},4O:0,7h:G(a){1Z{H!a.1v&&5Y.9N=="5m:"||(a.1v>=70&&a.1v<9L)||a.1v==7a||a.1v==9J||D.15.2k&&a.1v==11}1X(e){}H P},7g:G(a,c){1Z{I b=a.5z("7d-5P");H a.1v==7a||b==D.4x[c]||D.15.2k&&a.1v==11}1X(e){}H P},7f:G(a,c,b){I d=a.5z("9I-M"),2M=c=="2M"||!c&&d&&d.1g("2M")>=0,K=2M?a.9H:a.4C;7(2M&&K.1F.2e=="5I")7l"5I";7(b)K=b(K,c);7(c=="1k")D.5s(K);7(c=="3u")K=6t("("+K+")");H K},3y:G(a){I s=[];7(a.1u==2p||a.5u)D.O(a,G(){s.1o(3q(6.37)+"="+3q(6.2u))});N Q(I j 1m a)7(a[j]&&a[j].1u==2p)D.O(a[j],G(){s.1o(3q(j)+"="+3q(6))});N s.1o(3q(j)+"="+3q(D.1E(a[j])?a[j]():a[j]));H s.6r("&").1n(/%20/g,"+")}});D.16.1l({1M:G(c,b){H c?6.2f({1S:"1M",2g:"1M",1r:"1M"},c,b):6.1C(":1B").O(G(){6.T.18=6.5E||"";7(D.1f(6,"18")=="2L"){I a=D("<"+6.2e+" />").6P("1c");6.T.18=a.1f("18");7(6.T.18=="2L")6.T.18="3G";a.1Y()}}).3m()},1L:G(b,a){H b?6.2f({1S:"1L",2g:"1L",1r:"1L"},b,a):6.1C(":4i").O(G(){6.5E=6.5E||D.1f(6,"18");6.T.18="2L"}).3m()},76:D.16.2l,2l:G(a,b){H D.1E(a)&&D.1E(b)?6.76.1y(6,17):a?6.2f({1S:"2l",2g:"2l",1r:"2l"},a,b):6.O(G(){D(6)[D(6).3A(":1B")?"1M":"1L"]()})},9F:G(b,a){H 6.2f({1S:"1M"},b,a)},9E:G(b,a){H 6.2f({1S:"1L"},b,a)},9D:G(b,a){H 6.2f({1S:"2l"},b,a)},9C:G(b,a){H 6.2f({1r:"1M"},b,a)},9B:G(b,a){H 6.2f({1r:"1L"},b,a)},9M:G(c,a,b){H 6.2f({1r:a},c,b)},2f:G(k,j,i,g){I h=D.75(j,i,g);H 6[h.35===P?"O":"35"](G(){7(6.12!=1)H P;I f=D.1l({},h),p,1B=D(6).3A(":1B"),46=6;Q(p 1m k){7(k[p]=="1L"&&1B||k[p]=="1M"&&!1B)H f.1N.1j(6);7(p=="1S"||p=="2g"){f.18=D.1f(6,"18");f.32=6.T.32}}7(f.32!=U)6.T.32="1B";f.44=D.1l({},k);D.O(k,G(c,a){I e=2t D.29(46,f,c);7(/2l|1M|1L/.Y(a))e[a=="2l"?1B?"1M":"1L":a](k);N{I b=a.6q().1A(/^([+-]=)?([\\d+-.]+)(.*)$/),27=e.1s(L)||0;7(b){I d=2Y(b[2]),2H=b[3]||"2U";7(2H!="2U"){46.T[c]=(d||1)+2H;27=((d||1)/e.1s(L))*27;46.T[c]=27+2H}7(b[1])d=((b[1]=="-="?-1:1)*d)+27;e.47(27,d,2H)}N e.47(27,a,"")}});H L})},35:G(a,b){7(D.1E(a)||(a&&a.1u==2p)){b=a;a="29"}7(!a||(1i a=="21"&&!b))H A(6[0],a);H 6.O(G(){7(b.1u==2p)A(6,a,b);N{A(6,a).1o(b);7(A(6,a).J==1)b.1j(6)}})},9w:G(b,c){I a=D.3M;7(b)6.35([]);6.O(G(){Q(I i=a.J-1;i>=0;i--)7(a[i].S==6){7(c)a[i](L);a.7I(i,1)}});7(!c)6.5T();H 6}});I A=G(b,c,a){7(b){c=c||"29";I q=D.K(b,c+"35");7(!q||a)q=D.K(b,c+"35",D.2d(a))}H q};D.16.5T=G(a){a=a||"29";H 6.O(G(){I q=A(6,a);q.4r();7(q.J)q[0].1j(6)})};D.1l({75:G(b,a,c){I d=b&&b.1u==9Z?b:{1N:c||!c&&a||D.1E(b)&&b,2r:b,48:c&&a||a&&a.1u!=9r&&a};d.2r=(d.2r&&d.2r.1u==5g?d.2r:D.29.5J[d.2r])||D.29.5J.72;d.5M=d.1N;d.1N=G(){7(d.35!==P)D(6).5T();7(D.1E(d.5M))d.5M.1j(6)};H d},48:{71:G(p,n,b,a){H b+a*p},5K:G(p,n,b,a){H((-26.9p(p*26.9o)/2)+0.5)*a+b}},3M:[],43:U,29:G(b,c,a){6.14=c;6.S=b;6.1h=a;7(!c.3Z)c.3Z={}}});D.29.4d={4M:G(){7(6.14.39)6.14.39.1j(6.S,6.1x,6);(D.29.39[6.1h]||D.29.39.4Q)(6);7(6.1h=="1S"||6.1h=="2g")6.S.T.18="3G"},1s:G(a){7(6.S[6.1h]!=U&&6.S.T[6.1h]==U)H 6.S[6.1h];I r=2Y(D.1f(6.S,6.1h,a));H r&&r>-9m?r:2Y(D.2a(6.S,6.1h))||0},47:G(c,b,d){6.5v=1x();6.27=c;6.3m=b;6.2H=d||6.2H||"2U";6.1x=6.27;6.2R=6.4F=0;6.4M();I e=6;G t(a){H e.39(a)}t.S=6.S;D.3M.1o(t);7(D.43==U){D.43=4H(G(){I a=D.3M;Q(I i=0;i<a.J;i++)7(!a[i]())a.7I(i--,1);7(!a.J){7i(D.43);D.43=U}},13)}},1M:G(){6.14.3Z[6.1h]=D.1J(6.S.T,6.1h);6.14.1M=L;6.47(0,6.1s());7(6.1h=="2g"||6.1h=="1S")6.S.T[6.1h]="9l";D(6.S).1M()},1L:G(){6.14.3Z[6.1h]=D.1J(6.S.T,6.1h);6.14.1L=L;6.47(6.1s(),0)},39:G(a){I t=1x();7(a||t>6.14.2r+6.5v){6.1x=6.3m;6.2R=6.4F=1;6.4M();6.14.44[6.1h]=L;I b=L;Q(I i 1m 6.14.44)7(6.14.44[i]!==L)b=P;7(b){7(6.14.18!=U){6.S.T.32=6.14.32;6.S.T.18=6.14.18;7(D.1f(6.S,"18")=="2L")6.S.T.18="3G"}7(6.14.1L)6.S.T.18="2L";7(6.14.1L||6.14.1M)Q(I p 1m 6.14.44)D.1J(6.S.T,p,6.14.3Z[p])}7(b)6.14.1N.1j(6.S);H P}N{I n=t-6.5v;6.4F=n/6.14.2r;6.2R=D.48[6.14.48||(D.48.5K?"5K":"71")](6.4F,n,0,1,6.14.2r);6.1x=6.27+((6.3m-6.27)*6.2R);6.4M()}H L}};D.1l(D.29,{5J:{9j:9i,9g:70,72:9f},39:{2h:G(a){a.S.2h=a.1x},2b:G(a){a.S.2b=a.1x},1r:G(a){D.1J(a.S.T,"1r",a.1x)},4Q:G(a){a.S.T[a.1h]=a.1x+a.2H}}});D.16.2i=G(){I b=0,1O=0,S=6[0],3x;7(S)9d(D.15){I d=S.1b,3U=S,1p=S.1p,1Q=S.2y,5w=2k&&3r(5B)<99&&!/at/i.Y(v),1f=D.2a,3b=1f(S,"30")=="3b";7(S.6V){I c=S.6V();1d(c.1w+26.2c(1Q.1F.2h,1Q.1c.2h),c.1O+26.2c(1Q.1F.2b,1Q.1c.2b));1d(-1Q.1F.6a,-1Q.1F.69)}N{1d(S.5U,S.5W);1H(1p){1d(1p.5U,1p.5W);7(42&&!/^t(96|d|h)$/i.Y(1p.2e)||2k&&!5w)2m(1p);7(!3b&&1f(1p,"30")=="3b")3b=L;3U=/^1c$/i.Y(1p.2e)?3U:1p;1p=1p.1p}1H(d&&d.2e&&!/^1c|2I$/i.Y(d.2e)){7(!/^95|1U.*$/i.Y(1f(d,"18")))1d(-d.2h,-d.2b);7(42&&1f(d,"32")!="4i")2m(d);d=d.1b}7((5w&&(3b||1f(3U,"30")=="64"))||(42&&1f(3U,"30")!="64"))1d(-1Q.1c.5U,-1Q.1c.5W);7(3b)1d(26.2c(1Q.1F.2h,1Q.1c.2h),26.2c(1Q.1F.2b,1Q.1c.2b))}3x={1O:1O,1w:b}}G 2m(a){1d(D.2a(a,"6T",L),D.2a(a,"7x",L))}G 1d(l,t){b+=3r(l,10)||0;1O+=3r(t,10)||0}H 3x};D.16.1l({30:G(){I a=0,1O=0,3x;7(6[0]){I b=6.1p(),2i=6.2i(),4a=/^1c|2I$/i.Y(b[0].2e)?{1O:0,1w:0}:b.2i();2i.1O-=25(6,\'93\');2i.1w-=25(6,\'aE\');4a.1O+=25(b,\'7x\');4a.1w+=25(b,\'6T\');3x={1O:2i.1O-4a.1O,1w:2i.1w-4a.1w}}H 3x},1p:G(){I a=6[0].1p;1H(a&&(!/^1c|2I$/i.Y(a.2e)&&D.1f(a,\'30\')==\'aF\'))a=a.1p;H D(a)}});D.O([\'5c\',\'5a\'],G(i,b){I c=\'4y\'+b;D.16[c]=G(a){7(!6[0])H;H a!=11?6.O(G(){6==19||6==R?19.91(!i?a:D(19).2h(),i?a:D(19).2b()):6[c]=a}):6[0]==19||6[0]==R?46[i?\'90\':\'aI\']||D.6Y&&R.1F[c]||R.1c[c]:6[0][c]}});D.O(["6N","49"],G(i,b){I c=i?"5c":"5a",3H=i?"6j":"6h";D.16["5p"+b]=G(){H 6[b.3g()]()+25(6,"55"+c)+25(6,"55"+3H)};D.16["aJ"+b]=G(a){H 6["5p"+b]()+25(6,"2m"+c+"49")+25(6,"2m"+3H+"49")+(a?25(6,"6R"+c)+25(6,"6R"+3H):0)}})})();',62,668,'||||||this|if|||||||||||||||||||||||||||||||||||function|return|var|length|data|true|type|else|each|false|for|document|elem|style|null|event|nodeName||test|||undefined|nodeType||options|browser|fn|arguments|display|window|url|parentNode|body|add|msie|css|indexOf|prop|typeof|call|script|extend|in|replace|push|offsetParent|text|opacity|cur|div|constructor|status|left|now|apply|firstChild|match|hidden|filter|handle|isFunction|documentElement|className|while|ret|attr|dataType|hide|show|complete|top|split|doc|trigger|height|break|table|cache|tbody|catch|remove|try||string|success|guid|global|num|Math|start|ready|fx|curCSS|scrollTop|max|makeArray|tagName|animate|width|scrollLeft|offset|map|safari|toggle|border||toUpperCase|Array|button|duration|special|new|value|handler|id|find|ownerDocument|done|select|copy|pushStack|stack|inArray|nextSibling|target|unit|html|opera|exec|none|xml|bind|merge|isReady|which|pos|GET|timeout|px|removeData|one|delete|parseFloat|removeChild|position|preventDefault|overflow|jsre|nth|queue|namespace|name|insertBefore|step|selected|fixed|async|error|readyState|multiFilter|toLowerCase|createElement|rl|re|_|trim|end|first|get|elems|encodeURIComponent|parseInt|slice|childNodes|json|append|events|results|param|setTimeout|is|readyList|grep|color|password|getElementsByTagName|block|br|props|has|addEventListener|proxy|timers|defaultView|disabled|callee|last|appendChild|domManip|ajax|offsetChild|object|form|src|stopPropagation|orig|load|set|mozilla|timerId|curAnim|charCode|self|custom|easing|Width|parentOffset|mouseenter|unbind|prototype|mouseleave|currentStyle|clean|float|visible|fromElement|handlers|timeStamp|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|application|child|accepts|RegExp|lastModified|scroll|deep|teardown|setRequestHeader|responseText|checked|empty|state|jQuery|setInterval|innerHTML|getAttribute|click|relatedTarget|update|tr|active|jsonp|_default|previousSibling|input|dir|styleSheets|not|outline|lastToggle|unload|mouseout|getPropertyValue|getComputedStyle|mouseover|bindReady|String|padding|pageX|metaKey|keyCode|getWH|Top|ctrlKey|Left|visibility|container|index|Number|removeAttribute|classFilter|prevObject|after|submit|file|triggered|windowData|inner|client|init|globalEval|sibling|jquery|startTime|safari2|00|wrapAll|getResponseHeader|all|version|triggerHandler|clientX|oldblock|createTextNode|handleError|andSelf|parsererror|speeds|swing|checkbox|old|href|radio|Modified|ifModified|lastChild|clone|dequeue|offsetLeft|username|offsetTop|getElementById|location|ajaxSettings|values|isSimple|runtimeStyle|selectedIndex|absolute|rsLeft|POST|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|_load|val|pageY|unshift|Bottom|clientY|Right|fix|exclusive|cloneNode|detachEvent|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|notmodified|image|zoom|odd|even|before|prepend|expr|exclude|quickClass|quickID|quickChild|uuid|continue|Height|textContent|appendTo|contents|margin|evalScript|borderLeftWidth|parent|getBoundingClientRect|setArray|compatMode|boxModel|cssFloat|200|linear|def|webkit|nodeValue|speed|_toggle|eq|concat|100|304|alpha|replaceWith|Last|getAttributeNode|httpData|httpNotModified|httpSuccess|clearInterval|abort|beforeSend|throw|styleFloat|colgroup|open|XMLHttpRequest|ActiveXObject|CSS1Compat|scriptCharset|callback|fieldset|multiple|processData|borderTopWidth|contentType|link|ajaxSend|ajaxSuccess|col|ajaxError|ajaxComplete|ajaxStop|ajaxStart|serializeArray|splice|keyup|keypress|keydown|mousemove|mouseup|mousedown|resize|focus|blur|hasClass|stylesheet|rel|doScroll|black|solid|hover|cancelBubble|returnValue|wheelDelta|view|round|dblclick|shiftKey|screenY|screenX|change|relatedNode|prevValue|offsetHeight|originalTarget|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|enabled|line|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|toggleClass|Date|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|prev|pageYOffset|scrollTo|next|marginTop|parents|inline|able|cellSpacing|cellspacing|522|maxLength|maxlength|readOnly|with|readonly|400|fast|class|600|slow|htmlFor|1px|10000|reverse|PI|cos|compatible|Function|ie|ra|setData|it|stop|rv|userAgent|getData|navigator|fadeOut|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|300|fadeTo|protocol|send|setAttribute|cssText|dataFilter|option|changed|be|Accept|With|Requested|can|Object|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|th|XMLHTTP|Microsoft|td|onreadystatechange|cap|onload|charset|colg|host|tfoot|specified|1_|thead|leg|attributes|plain|opt|embed|adobeair|urlencoded|area|www|hr|meta|ajaxSetup|post|getJSON|getScript|img|marginLeft|static|abbr|elements|pageXOffset|outer|pixelLeft|serialize'.split('|'),0,{}))

debug_toolbar/middleware.py

 import re
 from django.conf import settings
 from django.utils.encoding import smart_str
+from django.conf.urls.defaults import include, patterns
+import debug_toolbar.urls
 from debug_toolbar.toolbar.loader import DebugToolbar
 
 _HTML_TYPES = ('text/html', 'application/xhtml+xml')
         if self.show_toolbar(request):
             self.debug_toolbar = DebugToolbar(request)
             self.debug_toolbar.load_panels()
+            
+            # Monkeypatch in the URLpatterns for the debug toolbar. The last item
+            # in the URLpatterns needs to be ```('', include(ROOT_URLCONF))``` so
+            # that the existing URLs load *after* the ones we patch in. However,
+            # this is difficult to get right: a previous middleware might have
+            # changed request.urlconf, so we need to pick that up instead.
+            original_urlconf = getattr(request, 'urlconf', settings.ROOT_URLCONF)
+            debug_toolbar.urls.urlpatterns += patterns('',
+                ('', include(original_urlconf)),
+            )
+            request.urlconf = 'debug_toolbar.urls'
+            
         return None
 
     def process_response(self, request, response):

debug_toolbar/urls.py

+"""
+URLpatterns for the debug toolbar. 
+
+These should not be loaded explicitly; the debug toolbar middleware will patch
+this into the urlconf for the request.
+"""
+
+from django.conf.urls.defaults import *
+from django.conf import settings
+
+urlpatterns = patterns('', 
+    url('^__debug__/m/(.*)$', 'debug_toolbar.views.debug_media', name='debug_toolbar_media'),
+)

debug_toolbar/views.py

+"""
+Helper views for the debug toolbar. These are dynamically installed when the
+debug toolbar is displayed, and typically can do Bad Things, so hooking up these
+views in any other way is generally not advised.
+"""
+
+import os
+import django.views.static
+from django.conf import settings
+
+def debug_media(request, path):
+    root = getattr(settings, 'DEBUG_TOOLBAR_MEDIA_ROOT', None)
+    if root is None:
+        parent = os.path.abspath(os.path.dirname(__file__))
+        root = os.path.join(parent, 'media')
+    return django.views.static.serve(request, path, root)