-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboost.js
2 lines (2 loc) · 22 KB
/
boost.js
1
2
/*! Boost.js v2.3 | Javascript loader | MIT License | Github:jsfsa/boost*/
(function(S){var c,i="&",B="#",H=function(R){var K=function(J){if(i in K){return K[i].apply(null,arguments);}else{K[i]=J;}};K[B]=R;K["."+B]=S;return K;};var D=typeof self!="undefined"?self:global;c=D[S]=function(){var d=arguments,b,j=[],F,N=d.length,p=0;while(p<N){var C=d[p];++p;switch(typeof C){case"string":j.push(C);break;case"function":F=C;break;}}b=j.shift();if(b in c){return c[b];}if(!F)throw new Error;var K=c[b]=H(b),X=[K];j.forEach(function(I){X.push(c[I]);});F.apply(null,X);};})("_6O");_6O("C",function(r){r.t=function(o,$){var D,K=!$;D=new XMLHttpRequest();D.open("GET",o,!K);D.send(null);if(K){if(o.indexOf("file://")==0){return D.responseText;}else if(D.status!=200){return null;}else{return D.responseText;}}else{D.onreadystatechange=function(){if(D.readyState==4){if(D.status!=200){$(null,D.status,D.responseText);}else{$(D.responseText);}}else{}};return null;}};});_6O("u",function(b){var V=Object.prototype.hasOwnProperty,k=typeof Object.keys=="function",m=!({"toString":null}).propertyIsEnumerable("toString"),S=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],x=S.length;b.J=function(G,e){if(!e&&k){return Object.keys(G);}if(typeof G!=="object"&&typeof G!=="function"||G===null){throw new TypeError("non-object");}var W=[],q=function(F){if(e){if(e(F)){W.push(F);}}else{W.push(F);}};var z;for(z in G){if(V.call(G,z)){q(z);}}if(m){var $=0;for($=0;$<x;$++){if(V.call(G,S[$])){q(S[$]);}}}return W;};b.N=function(Y){return(Y.indexOf(".")!=0);};});_6O("v",function(E){E.J=function(L,I,r){var m,G;for(m=0;m<L.length;++m){G=L[m];if(r){if(r(I,G)){return m;}}else{if(I===G){return m;}}}return null;};});_6O("k",function(_){var z=/(^.*)\.(\w+|\*)$/,s="#",t="Tmp",L=function(Q,k,d){var w="";if(!k){_[t]=Q;}for(var Y in Q){if(d&&d(Y)){}else{w+="var "+Y+"=";if(k){w+=k+"."+Y+";";}else{w+=_["."+s]+"[\""+_[s]+"\"]."+t+"."+Y+";";}}}if(!k){w+="delete "+_["."+s]+"[\""+_[s]+"\"]."+t+";";}return w;};_.a=function(R,E){switch(typeof R){case"string":var m=R.replace(z,"$2"),Q,Y,S;if("*"==m){Q=R.replace(z,"$1");Y=eval("("+Q+")");return L(Y,Q,E);}return("var "+m+"="+R+";");case"object":case"function":return L(R,null,E);default:throw new Error();}};});_6O("A",function(K){var u={},d=".tag",Z=function($){if($ in u){return u[$];}else{var U=u[$]=new RegExp("(?:<"+$+".*?>)((?:\\n|\\r|.)*?)(?:<\\/"+$+">)","img");U[d]=new RegExp("<\\/?"+$+".*?>","gi");return U;}};K.n=function(S){return S.replace(Z("script"),"");};var J=function(t,w){var l=Z(w),Y=l[d],H=t.match(l),_="",M;if(H){for(M=0;M<H.length;M++){_+=H[M].replace(Y,"")+"\n";}}return _;};K.P=function(a,t){return a.replace(Z(t),"");};K.F=function(p){return J(p,"script");};K.X=function(h){return J(h,"style");};var N=/(?:\/\*)((?:\n|\r|.)*?)(?:\*\/)/img,c=/(\/\/.*?$)/gm;K.x=function(s){return s.replace(N,"").replace(c,"");};});_6O("S","u","v","k","A",function(P,u,y,Y,N){P.i=function(v,i,D,Q){var k={},F,V=new RegExp("\\s*\\b"+Q+"\\b\\s*\\(\\s*[\"']([\\w.\\/\\d]+)[\"']\\s*\\)","gm");v=N.x(v);while((F=V.exec(v))!=null){if(F["index"]=="."){continue;}var L=F[1];if(L==i){throw new Error("require: can't require self in :"+i);}if(y.J(D,L)!=null){throw new Error("require: can't take shape closed loop:"+D.toString()+"->"+i+"");}k[L]=1;}return u.J(k);};var O=P.p="._gv_.";P.Q=function(f,Q,R){eval(Y.a(f));var B=eval("(function(){//"+R+"\n"+Q+"\n})");B[O]=function(T){return eval(T);};return B;};});_6O("w",function(C){C.s=function(){return parseInt((""+Math.random()).replace(/^0\./,"1"));};});_6O("n",function(t){var U=/^(\s|\u00A0)+|(\s|\u00A0)+$/g;t.G=function(e){return("trim"in String.prototype)?(e||"").trim():(e||"").replace(U,"");};});_6O("x",function(d){var e="cache",I={},V="get",u="set",i="transaction",_="objectStore",g="readonly",k="readwrite",$="result",Y="onsuccess",o="onerror";d.Y=function(A,K){K=K||e;var q="+"+A+"_"+K,y=I[q];if(!y){y=I[q]={};var Z=[],w=[],E=self.indexedDB.open(A),z=null;E[o]=function(v,P){throw("Allow IndexedDB?");};E.onupgradeneeded=function(f,G){this[$].createObjectStore(K,{});};E[Y]=function(f,c){z=this[$];var X=z[i]([K],g),Q=X[_](K);Z.forEach(function(r){Q.get(r[0])[Y]=function(H){r[1](H.target[$]);};});Z.length=0;var r=z[i]([K],k),W=r[_](K);w.forEach(function(U){var s=W.put(U[1],U[0]);if(U[2]){s[Y]=U[2];}});w.length=0;};y[V]=function(G,h){if(!z){Z.push([G,h]);return;}else{var J=z[i]([K],g)[_](K).get(G);J[Y]=function(l){h(l.target[$]);};J[o]=function(l){h(null,l);};}};y[u]=function(C,R,m){if(!z){w.push([C,R,m]);return;}else{var J=z[i]([K],k)[_](K).put(R,C);if(m){J[Y]=m;J[o]=m;}}};}return y;};});_6O("q",function(_){_.o=function(Y,i){if(typeof JSON!="undefined"&&!i){return JSON.parse(Y);}else{return eval("("+Y+")");}};});_6O("Q","C","q",function(m,L,P){m.E=function(F,n,s){var D=!n,U;if(D){return P.o(L.t(F,!D),s);}else{L.t(F,function(N){U=P.o(N,s);n(U);});return null;}};});_6O("m",function(K){var i=Array.prototype.slice;K.f=function(o){return i.call(o,0);};});_6O("R",function(g){g.o="number";g.g="function";g.i="undefined";g.I="object";g.q="string";g.s=null;g.R=true;g.E=false;g.K=Error;g.P="toString";g.r="indexOf";g.p="toUpperCase";g.Z="split";g.L="push";g._="join";g.j="shift";g.Y="match";g.y="concat";g.H="pop";g.X="call";g.$="apply";g.M=Math;g.W="round";g.U=Array;g.A="";g.e=undefined;g.w=parseInt;g.G=parseFloat;g.n=isNaN;g.h=0;g.J=1;g.V=3;g.O="get";g.v="set";g.T="size";g.D="length";g.u="width";g.a="height";g.k="top";g.z="left";g.F="bottom";g.b="right";g.S="invisible";g.d="padding";g.m="100%";g.f="/";g.N="\"";g.B=" ";g.l="children";g.Q="\r\n";g.x="-";g.C=":";g.t=";";});_6O("g","m","R",function(m,h,F){var w=F.D,G=F.U,W=F.e,R=F.h,j=F.o,e=F.q,J=F.H,A=F.j,$=F.X,o=F.$,S=F.J;m.B=function(E){var T,V,y=E,N,Z=arguments[w];if(Z<2){T=W;}else{for(V=S;V<Z;++V){N=arguments[V];if(N in y){y=y[N];}else{return W;}}T=y;}return T;};var x=m.H=function(X,k){var H=this,I=R,q;if(!(X instanceof G)){X=[X];}var P=X[w];for(I=R;I<P;++I){q=X[I];if(typeof q!=e&&typeof q!=j){throw new Error;}if(I==P-S){H[q]=k;return;}if(q in H){}else{H[q]={};}H=H[q];}};m._=function(Q,b){var d=b[w],r=R,l,z;for(;r<d;r+=2){l=b[r];z=b[r+S];if(typeof l==e){Q[l]=z;}else if(l instanceof G){x[o](Q,l,z);}else{throw new Error;}}return Q;};m.G=function(){var Z=h.f(arguments),Y=Z[w];if(Y<3){throw new Error;}var u=Z[A](),M=Z[J]();x[$](u,Z,M);};});_6O("W","m","g",function(v,o,O){v.e=function(y){return O._({},y);};v.p=function(){var q=o.f(arguments);return v.e(q);};v.n=function(N,R){N=N||[];var g;if(R){for(g in R){N.push(g);N.push(R[g]);}}return N;};});_6O("K","w",function(U,Q){var t=".",N="#",w="._uuid",V=function(D){var n;if(N in D){n=D[N];}else{if(w in D){n=D[w];}else{var j=""+Q.s();n=D[w]=j;}}return t+n;};var v=function(G){if(typeof G!="undefined"&&typeof window!="undefined"&&(G===window||G===document||(G!=null&&G.hasOwnProperty==null))){var O=V(_imports);if(!G[O]){G[O]={};}return G[O];}else{return G;}};var b=function(O,g){var F=v(O),M=V(g);return F.hasOwnProperty(M)?F[M]:false;};U.L=function(F,n,q,m,x){var Z=b(F,m);if(!Z){if(x){return q;}else{Z=v(F)[V(m)]={};return Z[n]=q;}}else{if(Z.hasOwnProperty(n)){return Z[n];}else{if(x){return q;}else{return Z[n]=q;}}}};var Z=U.$=function(G,F){var $=v(G),K=V(F);if(!$.hasOwnProperty(K)){$[K]={};}};U.v=function(Y,_,B,O){var m=v(Y);Z(Y,O);return m[V(O)][_]=B;};U.G=function(c,H){var h=v(c),W=typeof h;return(W=="object"&&h!=null)||W=="function"?h.hasOwnProperty(V(H)):false;};U.T=function(G,a){var y=v(G),x=V(a);if(y.hasOwnProperty(x)){delete y[x];}};U.I=function(X,i,O){var f=v(X),S=V(i),j=b(X,i);if(j){var x;for(x in j){if(O(x)){delete j[x];}}}};U.s=function(p,O,q,r){var e=b(p,r);if(!e){return q;}else{if(e.hasOwnProperty(O)){var i=e[O];delete e[O];return i;}else{return q;}}};});_6O("$","K",function(V,k){V.$=function(y){return k.G(y,V);};V(function(c,H){var z=function(d,T){if(T){if(typeof d!="function"){throw new Error;}}H=T;c=d;};var E=function(){return H?c():c;};z(c,H);var x=function(Y,Q){var a=arguments.length;if(a>2){throw new Error();}if(a>0){z(Y,Q);return x;}else{return E();}};x.toString=function(){return E();};k.$(x,V);return x;});});_6O("O","m","K",function(Z,t,C){var X=Z.Y=function(M){return C.G(M,Z);};var M=Z.q=function(P,z){var p,b=0,W=P.length,o=false,d;while(z!=0&&b<W){d=P[b++];if(X(d)){if(!o){p=P.slice(0,b-1);o=true;}p.splice.apply(p,[p.length,0].concat(M(d,z-1)));}else{if(o){p.push(d);}else{}}}return o?p:P;};Z.o=function(Q){C.$(Q,Z);return Q;};var D=Z.J=function(u){var A=M(u);C.$(A,Z);return A;};var Y=Z.O=function(b){return D(t.f(b));};Z.W=function(){return Y(arguments);};});_6O("U","m","$",function(P,u,O){var R=P.z={},b=P.S={},V=P._=function(j,n){var m=[],r=0,o=j.length,c=false;while(r<o){var _=j[r];if(_===R){if(c){throw new Error;}else{m.push(n.shift());}}else if(_===b){if(c){throw new Error;}else{c=true;m=m.concat(n);n=[];}}else if(O.$(_)){m.push(_());}else{m.push(_);}r=r+1;}if(n.length>0){m=m.concat(n);}return m;};var z=P.E=function(H,v,o,G){var a=V(o,G);return H.apply(v,a);};var f=function(N,t,v){return function(){var G=u.f(arguments);return z(N,t,v,G);};};P(function(){var S=u.f(arguments),l=S.shift(),n=S.shift();return f(l,n,S);});});_6O("N","m","g","W","$","O","U","K",function(h,D,U,i,l,a,j,E){var Q=h.$="then",v=h.j="tlidx",_=h.A="press",I=h.s={},q=h.h="get",H=h.r="set";h.t=j.z;h.R=j.S;var z=h.d="getData",o=h.m="getFrames",N=h.F="reset",g=h.Q="delay",F=h.v="getIdx",n=h.p="stop",V="r",G="suspended",P=h.x=function(x){return E.G(x,h);};var d=function($,s,m,J){var W=false;if(P($)){$=$[z]();}$=$||{};if(!m){m=[];J=0;}else{if(J>=0){if(J>m.length){J=m.length;}}else{J=0;}}var B={};E.$(B,h);B[V]=s?true:false;B[g]=function(){B[V]=true;return J;};var f,x=false,r=B[H]=function(){var C=D.f(arguments);C.unshift($);return U.G.apply(null,C);};var w,O=null,p=B[_]=function(){if(O){O=null;}var T=D.f(arguments),k=m[J];if(k&&!W){r(v,J);B[V]=true;var M=k[0],R=k.slice(1);if(x){if(T.length>0){throw new Error();}if(a.Y(f)){T=f;}else if(f!==undefined){T=[f];}else{T=[];}}else{};var t;t=j.E(M,B,R,a.q(T,1));++J;if(t===I){x=false;}else{B[V]=false;f=t;x=true;w();}}else{B[V]=false;}};w=function(){if(!B[V]){if(!O){O=setTimeout(p,0);}}};var X=B[Q]=function(){var c=D.f(arguments);if(arguments.length==1&&c[0]instanceof Array){c=c[0];var Y=0,k=c.length;for(;Y<k;++Y){var y=c[Y];if(!(y instanceof Array)){throw new Error("then idx:"+Y+" is not Array.\n "+y);}if(typeof y[0]!="function"){throw new Error("then idx:"+Y);}else{m.push(y);}}}else if(typeof c[0]!="function"){throw new Error();}else{m.push(c);}w();return B;};B[z]=function(){return $;};B[o]=function(){return m;};B[q]=function(){var Z=D.f(arguments);Z.unshift($);return U.B.apply(null,Z);};B[F]=function(){return J;};B[N]=function(R){J=R>=0?R:0;W=false;};B[G]=I;B[n]=function(){W=true;};return B;};h.q=function(){var s=D.f(arguments),K,k;switch(s.length){case 0:break;case 1:if(typeof s[0]=="boolean"){k=s[0];}else{K=s[0];}break;case 2:if(typeof s[0]=="boolean"){k=s.shift();K=s.shift();break;}else{}default:{if(typeof s[0]=="boolean"){k=s.shift();}K=i.e(s);}}var W=d(K,k);return W;};h.n=function(T,x){return d(T,true,T[o](),x);};h.Z=function(){return a.O(arguments);};h.w=function(x,u){return l.$(x,u);};});_6O("B",function(E){E(function(e){var m=[],N=0,w,M,F;while(N<e.length){w=e[N];if(w<0x80){m.push(String.fromCharCode(w));N++;}else if((w>=0xC0)&&(w<0xE0)){M=e[N+1];m.push(String.fromCharCode(((w&0x1F)<<6)|(M&0x3F)));N+=2;}else{M=e[N+1];F=e[N+2];m.push(String.fromCharCode(((w&0xF)<<12)|((M&0x3F)<<6)|(F&0x3F)));N+=3;}}return m.join("");});});_6O("b","B",function(r,F){var g=typeof Buffer!="undefined",i=typeof java!="undefined"&&java.io,o=function(_){_=_.charCodeAt(0);return(_>=48&&_<=57)||(_>=97&&_<=102)||(_>=65&&_<=70);};r(function(P,R,t){var C,v=P.length,H,f,Z,_,I;if(typeof Buffer!="undefined"){I=Buffer.alloc(v/2);}else if(typeof java!="undefined"&&java.io){I=new java.io.ByteArrayOutputStream();}else{I=[];}var N=0;if(P==null){return P;}C="";var z=function(){if(g){if(N>0){C+=I.toString(t,0,N);N=0;}}else if(i){I.close();C+=new String((new java.lang.String(I.toByteArray(),t)));I.reset();}else{C+=F(I);I=[];}};for(_=0;_<v;++_){H=P.charAt(_);if(H=="%"){if(_<v-5&&(P.charAt(_+1)=="u"||P.charAt(_+1)=="U")&&o(P.charAt(_+2))&&o(P.charAt(_+3))&&o(P.charAt(_+4))&&o(P.charAt(_+5))){z();Z=P.substr(_+2,4);f=parseInt(Z,16);C+=String.fromCharCode(f);_+=5;}else if(_<v-2&&o(P.charAt(_+1))&&o(P.charAt(_+2))){Z=P.substr(_+1,2);f=parseInt(Z,16);if(g){I.writeUInt8(f,N++);}else if(i){I.write(f);}else{I.push(f);}_+=2;}else{z();C+=H;}}else if(H=="+"){z();if(R){C+=H;}else{C+=" ";}}else{z();C+=H;}}z();return C;});});_6O("X","b",function(I,J){I.e=function(x,k,m,Y){var H,A,z,D;for(H in k){var _;A=k[H];z=m?J(H,false,Y):H;D=x[z];if(typeof D=="string"){if(typeof A=="string"){x[z]=[D,(m?J(A,false,Y):A)];}else if(A instanceof Array){x[z]=[];x[z].push(D);for(;_<A.length;++_){x[z].push(m?J(A[_],false,Y):A[_]);}}}else if(D instanceof Array){if(typeof A=="string"){D.push(m?J(A,false,Y):A);}else if(A instanceof Array){for(;_<A.length;++_){D.push(m?J(A[_],false,Y):A[_]);}}}else{if(typeof A=="string"){x[z]=m?J(A,false,Y):A;}else if(A instanceof Array){x[z]=[];for(;_<A.length;++_){x[z][_]=m?J(A[_],false,Y):A[_];}}else{}}}return x;};I.n=function(b,Y){if(typeof java!="undefined"&&b instanceof java.lang.String){b=new String(b);}else if(typeof b=="string"||b instanceof String){}else if(b.getClass().isArray()){b=new String(new java.lang.String(b,"ISO8859-1"));}else{throw new Error();}var Z=b.length,v=0,m=0,l="",f,C,j={},L={},n,D,G,X,F,H=function(){D=j[f];if(typeof D=="string"){j[f]=[D,C];}else if(D instanceof Array){D.push(C);}else{j[f]=C;}};while(v<Z){var S=b.charAt(v++);if(m==0){if(S=="="){m=1;f=l;l="";}else{l+=S;}}else if(m==1){if(S=="&"){C=l;m=2;l="";}else{l+=S;}}else if(m==2){if(S=="&"){C+="&"+l;l="";}else if(S=="="){H();f=l;m=1;l="";}else{l+=S;}}else{}}if(m==1){C=l;H();}else if(m==2){C+=l;H();}else if(m==0){C="";f=l;H();}I.e(L,j,true,Y);return L;};});_6O("d",function(v){var $=v.X="path",O=v.f="uriPath",U=v.H="scheme",F=v.o="isWindows",c=v.L="filePath",L=v.r="mark",W=v.N="query",l=v.S="fileName",p=v.D="extend",z=v._="name",_=v.t="uriHost",r=v.E="domain",R=v.b="port",P,M;v.Q=function(A,V){return P(A,V)[$];};var q=/^([a-z-]+):\/\//i,a=/^[a-z]:\\/i,N=/^\/[a-z]:\//i;v.I=function(V,Q,y){Q=Q||(y?"\\":"/");if(V.indexOf(Q)==0){return true;}else if(y){return a.test(V);}else{return false;}};var C=v.z=function(X){var o=q.exec(X);if(o){return o[1].toLowerCase();}else{return null;}};v.g=function(I){return C(I)!=null;};var x=function(y,Z){var h=0,H=y.length-1;for(;H>=0;--H){var S=y[H];if(S=="."){y.splice(H,1);}else if(S==".."){y.splice(H,1);h++;}else if(h){y.splice(H,1);h--;}}if(Z){for(;h--;){y.unshift("..");}}return y;};v.u=function(E){if(E[U]){return E[O];}else{return E[$];}};var s=v.a=function(Q,Z){if(Q[U]){Q[O]=Z;}else{Q[$]=Z;}};v.U=function(h,m,E){var i=P(h,m),j=i[U],S,V;if(j=="file"&&i[F]){var f=i[c],J=f.substring(0,2),e=f.substr(2);S=e.split("\\");S=x(S,false);V=S.join(m);s(i,m+J+V);}else{V=v.u(i);var B=v.I(V,m,E);S=V.split(m);S=x(S,!B);V=S.join(m);s(i,V);}return M(i,m);};P=v.k=function(e,X){var h={},n=C(e),b;b=e.indexOf("#");if(b!=-1){h[L]=e.substring(b+1);e=e.substring(0,b);}b=e.indexOf("?");if(b!=-1){h[W]=e.substring(b+1);e=e.substring(0,b);}b=e.lastIndexOf(X);if(n!=null&&b<n.length+3){h[$]=e;h[l]="";}else{h[$]=b==-1?"":e.substring(0,b);h[l]=b==-1?e:e.substring(b+1);}if(h[l]){b=h[l].lastIndexOf(".");if(b!=-1){h[p]=h[l].substring(b+1);h[z]=h[l].substring(0,b);}else{h[z]=h[l];}}if(q.exec(h[$])){var G=RegExp.rightContext,n=h[U]=RegExp.$1.toLowerCase();if(n=="file"){h[O]=G;if(N.test(G)){h[c]=G.substr(1).replace(X,"\\");h[F]=true;}else{h[c]=G;}}else{b=G.indexOf(X);var B;if(b!=-1){h[O]=G.substr(b);B=h[_]=G.substring(0,b);}else{h[O]="";B=h[_]=G;}var I=B.indexOf(":");if(I!=-1){h[r]=B.substring(0,I);h[R]=B.substr(I+1);}else{h[r]=B;}}}return h;};var m=function(K,f){var X="",J=K[U];if(K[z]){if(K[$]||K[O]){X+=f;}X+=K[z];}else{if(J&&!K[O]){X+=f;}else if(K[O]){X+=f;}}if(K[p]){X+="."+K[p];}if(K[W]){X+="?"+K[W];}return X;};v.$=function(J){return J[O]+m(J,"/");};var y=function(G){var Q="";if(G[_]){Q+=G[_];}else if(G[r]){Q+=G[r];if(G[R]){Q+=":"+G[R];}}else{throw new Error;}return Q;};v.K=function(f){var w="",V=f[U];if(V){w+=V;w+="://";w+=y(f);}else{throw new Error;}return w;};M=v.Y=function(T,D,E){var B="",V=T[U];if(V){B+=V;B+="://";if(V=="file"){B+=T[O];}else{B+=y(T);B+=T[O];}}else{if(T[$]){B+=T[$];}}B+=m(T,D);if(!E&&T[L]){B+="#"+T[L];}return B;};});_6O("z","d",function(c,z){c.j=function(J){return c.G(J)[z.X];};c.G=function(o){return z.k(o,"/");};c.r=function(g){return z.Y(g,"/");};});_6O("boots","C","S","w","n","x","Q","N","X","z","d","A",function(O,h,e,w,A,i,m,a,K,F,t,n){var v=a.$,E=a.s,N=a.A,M=a.q,o="c",_="v",r="$",H="#",X="Boost",B="src",C="dep",y="tmp",Z="_HTML_",V="_name_",D="_namespace_",G="_modules_",W="_baseon_",I=H,U=r,Q=function(){return{};};var d=function(J){var u;if((u=J.lastIndexOf("."))==J.length-5){return J.substring(u+1).toUpperCase()=="HTML";}else{return false;}};var J=O.N=function(x,$,l,k,T,j,z,R){T=T||"require";j=j||"exports";if(!x.match(/^\w+$/)){throw new Error("namespace should be [A-Za-z0-9_]+");}if(x in self){throw new Error("the boots.js namespace:\""+namespace1+"\" exist.");}var u=null,c={},f={},b,g,p,S;if(!R){R=function(q,P,Y,s){return q+"/"+P+((Y)?"":".js")+"?rnd="+s;};}if(!Array.isArray($)){if(typeof $=="string"){if($[0]=="["){$=JSON.parse($);}else{$=[$];}}else{throw new Error;}}else{throw new Error;}var s=function(P){return c[P];};b=function(L,P,Y,q,BS){if(typeof L!="string"){throw new Error();}if(!P instanceof Array){throw new Error("define: need a Array as depended modules.");}if(typeof Y!="function"){throw new Error("define: need a function as define's callback.");}if(typeof q!="function"){throw new Error("define: need a callback.");}if(L in c){throw new Error("define: Cannot define a module \""+L+"\" repeatedly.");}var _S=function(){Y();q();};if(P.length>0){var nS=P.every(function(Le){if(Le in c){return true;}return false;});if(nS){_S();}else{BS=BS.concat();BS.push(L);g(P,function(){_S();},BS);}}else{_S();}};var Y,q=function(P){return i.Y(X+"_"+x+"_"+(P?P:u[_])+"_"+C);};var P=function(L){return i.Y(X+"_"+x+"_"+(L?L:u[_])+"_"+B);};var L=function(AI){return i.Y(X+"_"+x+"_"+(AI?AI:u[_])+"_"+y);};var FD=function(FK,xK){if(self.indexedDB.databases){self.indexedDB.databases().then(function(xS){xS.some(function(OH){return FK(OH.name);});if(xK){xK();}});}};var xD=function(){FD(function(WU){if(WU.match(new RegExp("^"+X+"_"+x+"_"+"([\\w-]+)"+"_(:?"+B+"|"+C+"|"+y+")$"))){if(RegExp.$1!=u[_]){self.indexedDB.deleteDatabase(WU);}}});};var $D=self[x]=function(Cw,jw){var ew=function(){u={};u[o]=false;Y.forEach(function(Jf){Jf();});Y=null;g(Cw,jw,[]);};var Tw=function(dp){var bp=function(){u={};u[o]=true;u[_]=dp;};var sp=function(){xD();Y.forEach(function(vQ){vQ();});Y=null;g(Cw,jw,[]);};var Ep=function(){bp();sp();};if(z){var ep=false;FD(function($r){if($r.match(new RegExp("^"+X+"_"+x+"_"+"([\\w-]+)"+"_(:?"+B+"|"+C+"|"+y+")$"))){if(RegExp.$1==dp){return ep=true;}}},function(){if(!ep){m.E(z,function(tT){if(tT!=null&&tT["version"]){var jT=tT["version"];if(dp==jT){var MT=P(dp),aT=q(dp),AT=L(dp),xT=M(),pT=tT["cache"],mT,QT,NT=function(yj){aT.set(yj,pT[yj][0],xT[N]);return E;};var rT=function(C6){MT.set(C6,pT[C6][1],xT[N]);return E;};var JT=function(Vq){AT.set(Vq,pT[Vq][2],xT[N]);return E;};for(mT in pT){QT=d(mT);xT[v](NT,mT);xT[v](rT,mT);if(QT){xT[v](JT,mT);}}xT[v](Ep);}else{Ep();}}else{Ep();}});}else{Ep();}});}else{Ep();}};if(u==null){if(Y==null){Y=[];if((!l&&!k)||(!self.indexedDB)){ew();}else{if(l){h.t(l+"?rnd="+w.s(),function(hM){hM=A.G(hM);if(hM){Tw(hM);}else{if(k){Tw(k);}else{ew();}}});}else{Tw(k);}}}else{Y.push(function(){g(Cw,jw,[]);});}}else{g(Cw,jw,[]);}};$D["AddNameSpace"]=J;$D[G]=c;g=function(tb,fb,Tb){if(!tb instanceof Array){throw new Error("require: need a Array as depended modules.");}if(typeof fb!="function"){throw new Error("require: need a function as its callback.");}if(!Tb instanceof Array){throw new Error;}var rb=0,_b=[],Cb=tb.length,pb=function(Ak,$k){if(!Ak){throw new Error("require:error on loading "+$k);}rb++;_b.push(Ak);if(rb<Cb){p(tb[rb],pb,Tb);}else{fb.apply(null,_b);}};if(Cb==0){fb.apply(null,_b);return;}p(tb[rb],pb,Tb);};p=function(m7,$7,M7){var g7=typeof m7;if(g7!="string"){throw new Error("require: module id should be a string.");}if(m7 in c){$7(c[m7],m7);}else if(m7 in f){f[m7].push(function(lX){$7(lX,m7);});}else{var X7=f[m7]=[];S(m7,function(rm){X7.forEach(function(aV){aV(rm);});delete f[m7];$7(rm,m7);},M7);}};var JD=function(zH,kH,AH,PH,QH,vH){var XH=Q(),NH={};NH[T]=s;NH[j]=XH;NH[Z]=PH;NH[V]=zH;NH[D]=x;NH[W]=$;var dH=e.Q(NH,AH,zH);b(zH,kH,dH,function(){var aw=dH[e.p](j);if(aw!==XH){XH=aw;}c[zH]=XH;vH(XH);},QH);};var MD=w.s(),QD=function(){if(u[_]){return u[_];}else{return MD;}};var eD=function(ux,Bx,Zx){var yx,px,dx=false,Jx=ux.lastIndexOf(".js")==ux.length-3,Mx=F.G(ux),fx=Mx[t.D];if(fx){dx=fx.toUpperCase()=="HTML";}var Ax=$.map(function(K_){return R(K_,ux,fx,QD());});var kx=Ax.shift();yx=function(eV){var qV;if(eV!=null){if(dx){qV=n.n(eV);eV=n.F(eV);}var _V=e.i(eV,ux,Zx,T);if(u&&u[o]){P().set(ux,eV,function(Eh){q().set(ux,_V,function(bY){if(dx){L().set(ux,qV,function(ST){JD(ux,_V,eV,qV,Zx,Bx);});}else{JD(ux,_V,eV,qV,Zx,Bx);}});});}else{JD(ux,_V,eV,qV,Zx,Bx);}}else{kx=Ax.shift();if(!kx){Bx(null);}else{h.t(kx,yx);}}};h.t(kx,yx);};S=function(aH,$H,lH){if(u&&u[o]){q().get(aH,function(ja){if(!ja){eD(aH,$H,lH);}else{P().get(aH,function(JZ){if(!JZ){eD(aH,$H,lH);}else{var HZ,lZ=d(aH);if(lZ){L().get(aH,function(P7){JD(aH,ja,JZ,P7,lH,$H);});}else{JD(aH,ja,JZ,HZ,lH,$H);}}});}});}else{eD(aH,$H,lH);}};};O.Start=function(){var j="cum";if(typeof window=="undefined"&&typeof importScripts=="function"){var k,R;if(typeof _load_=="object"){k=_load_;R=k[j];}else{var u=location.href,p=F.G(location.href);k=K.n(p[t.r]);R=eval(k[j]);}var P=k["namespace"]||"boost",Y=k["baseon"];if(!Y){throw new Error("baseon");}var b=k["main"];J(P,Y,k["version_uri"],k["version"],k["require"],k["exports"],k["package"],R);if(b){importScripts(b);}}else{var g,T;{var c,f=document.getElementsByTagName("SCRIPT"),z;for(z=f.length-1;z>=0;--z){c=f[z];g=c.getAttribute("baseon");T=c.getAttribute("namespace");if(g&&T){break;}c=null;}if(c==null){throw new Error("No Found Boost.js with valid attributes.");}}J(T,g,c.getAttribute("version_uri"),c.getAttribute("version"),c.getAttribute("require"),c.getAttribute("exports"),c.getAttribute("package"),eval(c.getAttribute(j)));}};});_6O("boots").Start();