eidolon/static/js/skel.min.js.old

2 lines
19 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* skel.js v1.0 | (c) n33 | n33.co | MIT licensed */
var skel=function(){var e="breakpoints",t="config",n="iterate",r="stateId",i="elements",s="getElementsByClassName",o="stateElements",u=!1,a="getElementsByTagName",f="length",l="parentNode",c=null,h="insertBefore",p="push",d="getCachedElement",v="className",m="newInline",g="config_breakpoint",y="orientationChange",b="locations",w="createElement",E="match",S="deviceType",x="newElement",T="substring",N="object",C=!0,k="viewport",L="cache",A="cacheElement",O="_skel_isReversed",M="head",_="!important",D="indexOf",P="vars",H="containers",B="replace",j="matchesMedia",F="extend",I="events",q="}",R=" 0 0 ",U="onorientationchange",z="isArray",W="DOMReady",X="skel-placeholder-breakpoint",V="addEventListener",$="getComputedStyle",J="^head",K="{display:none!important}",Q="parseMeasurement",G="hasOwnProperty",Y="padding-top:0!important",Z="registerLocation",et="defaults",tt="IEVersion",nt="documentElement",rt="attachElements",it="attachElement",st="change",ot="DOMContentLoaded",ut="text/css",at="initial-scale=1",ft="_skel_attach",lt="firstChild",ct="states",ht="placeholder",pt="removeEventListener",dt="applyRowTransforms",vt="resize",mt="(min-width: ",gt="attached",yt="padding-top:",bt=".row",wt="media",Et="forceDefaultState",St="_skel_placeholder",xt="collapse",Tt="html",Nt="nextSibling",Ct="querySelectorAll",kt="min-height",Lt="max-height",At="gutters",Ot="max-width",Mt="innerHTML",_t="min-width",Dt="prototype",Pt="padding:",Ht="domready",Bt="isStatic",jt=".\\3$1 ",Ft="href",It="readyState",qt="priority",Rt="android",Ut="onresize",zt={breakpoints:[],breakpointList:[],cache:{elements:{},states:{},stateElements:{}},config:{breakpoints:{"skel-placeholder-breakpoint":{href:u,media:""}},containers:960,defaultState:c,events:{},grid:{collapse:u,gutters:40},pollOnce:u,preload:u,reset:u,RTL:u,viewport:{width:"device-width"}},css:{bm:"*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}",n:'article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a{background:transparent}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"C" "D" "8" "9"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}',r:"html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}body{-webkit-text-size-adjust:none}"},defaults:{breakpoint:{config:c,elements:c,test:c},config_breakpoint:{containers:"100%",grid:{},href:u,media:"",viewport:{}}},events:[],forceDefaultState:u,isInit:u,isStatic:u,locations:{body:c,head:c,html:c},me:c,plugins:{},sd:"/",stateId:"",vars:{},DOMReady:c,getElementsByClassName:c,indexOf:c,isArray:c,iterate:c,matchesMedia:c,extend:function(e,t){var r;zt[n](t,function(n){zt[z](t[n])?(zt[z](e[n])||(e[n]=[]),zt[F](e[n],t[n])):typeof t[n]==N?(typeof e[n]!=N&&(e[n]={}),zt[F](e[n],t[n])):e[n]=t[n]})},getArray:function(e){return zt[z](e)?e:[e]},getLevel:function(e){return typeof e=="boolean"?e?100:0:parseInt(e)},parseMeasurement:function(e){var t,n;if(typeof e!="string")t=[e,"px"];else if(e=="fluid")t=[100,"%"];else{var n;n=e[E](/([0-9\.]+)([^\s]*)/),n[f]<3||!n[2]?t=[parseFloat(e),"px"]:t=[parseFloat(n[1]),n[2]]}return t},canUse:function(t){return zt[e][t]&&zt[e][t].test()},hasActive:function(e){var t=u;return zt[n](e,function(n){t=t||zt.isActive(e[n])}),t},isActive:function(e){return zt[D](zt[r],zt.sd+e)!==-1},useActive:function(e){if(typeof e!==N)return e;var t=c;return zt[n](e,function(n){if(t!==c)return;zt.isActive(n)&&(t=e[n])}),t},wasActive:function(e){return zt[D](zt[P].lastStateId,zt.sd+e)!==-1},applyRowTransforms:function(e){var r,i,o,a=zt.getLevel(e[t].grid[xt]);zt[t].RTL&&(zt.unreverseRows(),a>0&&zt.reverseRows(a)),i="_skel_cell_important_placeholder",r=zt[s]("skel-cell-important"),r&&r[f]>0&&zt[n](r,function(e){if(e===f)return;var n=r[e],s,o=n[l],c;if(!o)return;o[v][E](/no-collapse/)?c=101:o[v][E](/collapse-at-([0-9])/)?c=parseInt(RegExp.$1):c=0;if(a>0&&c<=a){if(n[G](i)&&n[i]!==u)return;s=zt[t].RTL?Nt:"previousSibling",o=n[s];while(o&&o.nodeName=="#text")o=o[s];if(!o)return;n[l][h](n,n[l][lt]),n[i]=o}else n[G](i)||(n[i]=u),o=n[i],o!==u&&(n[l][h](n,o[Nt]),n[i]=u)})},reverseRows:function(e){var t=zt[s]("row");zt[n](t,function(n){if(n===f)return;var r=t[n];if(r[O]||e>0&&r[v][E](/\bcollapse-at-([0-9])\b/)&&parseInt(RegExp.$1)>=e)return;var i=r.children,s;for(s=1;s<i[f];s++)r[h](i[s],i[0]);r[O]=C})},unreverseRows:function(){var e=zt[s]("row");zt[n](e,function(t){if(t===f)return;var n=e[t];if(!n[O])return;var r=n.children,i;for(i=1;i<r[f];i++)n[h](r[i],r[0]);n[O]=u})},bind:function(e,t){zt[I][e]||(zt[I][e]=[]),zt[I][e][p](t),e==st&&zt.isInit&&t()},change:function(e){zt.bind(st,e)},trigger:function(e){if(!zt[I][e]||zt[I][e][f]==0)return;var t;zt[n](zt[I][e],function(t){zt[I][e][t]()})},registerLocation:function(e,t){e==M?t[ft]=function(e,t){t?this[h](e,this[lt]):this===zt.me[l]?this[h](e,zt.me):this.appendChild(e)}:t[ft]=function(e,t){t?this[h](e,this[lt]):this.appendChild(e)},zt[b][e]=t},addCachedElementToBreakpoint:function(t,n){zt[e][t]&&zt[e][t][i][p](n)},addCachedElementToState:function(e,t){zt[L][o][e]?zt[L][o][e][p](t):zt[L][o][e]=[t]},attachElement:function(e){var t,n=e.location,r=u;return e[gt]?C:(n[0]=="^"&&(n=n[T](1),r=C),n in zt[b]?(t=zt[b][n],t[ft](e[N],r),e[gt]=C,e.onAttach&&e.onAttach(),C):u)},attachElements:function(e){var t=[],r=[],i,s,o;zt[n](e,function(n){t[e[n][qt]]||(t[e[n][qt]]=[]),t[e[n][qt]][p](e[n])}),zt[n](t,function(e){if(t[e][f]==0)return;zt[n](t[e],function(n){zt[it](t[e][n])||r[p](t[e][n])})}),r[f]>0&&zt[W](function(){zt[n](r,function(e){zt[it](r[e])})})},cacheElement:function(e,t,n,r){return t[l]&&t[l].removeChild(t),zt[L][i][e]=zt[x](e,t,n,r)},detachAllElements:function(e){var t,r,s={};zt[n](e,function(t){s[e[t].id]=C}),zt[n](zt[L][i],function(e){if(e in s)return;zt.detachElement(e)})},detachElement:function(e){var t=zt[L][i][e],n;if(!t[gt])return;n=t[N];if(!n[l]||n[l]&&!n[l].tagName)return;n[l].removeChild(n),t[gt]=u,t.onDetach&&t.onDetach()},getCachedElement:function(e){return zt[L][i][e]?zt[L][i][e]:c},newElement:function(e,t,n,r){return{id:e,object:t,location:n,priority:r,attached:u}},changeState:function(s){var a,l,c,h,v,y,b,w;zt[P].lastStateId=zt[r],zt[r]=s;if(!zt[L][ct][zt[r]]){zt[L][ct][zt[r]]={config:{},elements:[],values:{}},c=zt[L][ct][zt[r]],zt[r]===zt.sd?a=[]:a=zt[r][T](1).split(zt.sd),zt[F](c[t],zt[et][g]),zt[n](a,function(n){zt[F](c[t],zt[e][a[n]][t])}),h=[],y="mV"+zt[r],c[t][k].content?b=c[t][k].content:(c[t][k].scalable===u?h[p]("user-scalable=no"):h[p]("user-scalable=yes"),c[t][k].width?h[p]("width="+c[t][k].width):h[p](at),b=h.join(",")),(v=zt[d](y))||(v=zt[A](y,zt.newMeta(k,b),J,4)),c[i][p](v);var E,S;h=zt[Q](c[t][H]),E=h[0],S=h[1],c.values[H]=E+S,y="iC"+c.values[H];if(!(v=zt[d](y))){var x,N,C;x=E*.75+S,N=E+S,C=E*1.25+S,v=zt[A](y,zt[m]("body{min-width:"+N+q+".container{margin-left:auto;margin-right:auto;width:"+N+q+".container.small{width:"+x+q+".container.big{width:100%;max-width:"+C+";min-width:"+N+q),M,3)}c[i][p](v),y="iGG"+c[t].grid[At];if(!(v=zt[d](y))){var O,j,I,U,z,X,V;h=zt[Q](c[t].grid[At]),O=h[0],j=h[1],I=O+j,U=O/2+j,z=O/4+j,X=O*1.5+j,V=O*2+j,v=zt[A]("iGG"+c[t].grid[At],zt[m](".row>*{padding-left:"+I+q+".row+.row>*{padding:"+I+R+I+q+".row{margin-left:-"+I+q+".row.flush>*{padding-left:0}"+".row+.row.flush>*{padding:0}"+".row.flush{margin-left:0}"+".row.half>*{padding-left:"+U+q+".row+.row.half>*{padding:"+U+R+U+q+".row.half{margin-left:-"+U+q+".row.quarter>*{padding-left:"+z+q+".row+.row.quarter>*{padding:"+z+R+z+q+".row.quarter{margin-left:-"+z+q+".row.oneandhalf>*{padding-left:"+X+q+".row+.row.oneandhalf>*{padding:"+X+R+X+q+".row.oneandhalf{margin-left:-"+X+q+".row.double>*{padding-left:"+V+q+".row+.row.double>*{padding:"+V+R+V+q+".row.double{margin-left:-"+V+q),M,3)}c[i][p](v);if(c[t].grid[xt]){var $=zt.getLevel(c[t].grid[xt]);y="iGC"+$+"-"+c.values[H];if(!(v=zt[d](y))){b=":not(.no-collapse)";switch($){case 4:break;case 3:b+=":not(.collapse-at-4)";break;case 2:b+=":not(.collapse-at-4):not(.collapse-at-3)";break;case 1:b+=":not(.collapse-at-4):not(.collapse-at-3):not(.collapse-at-2)"}h=zt[Q](c[t].grid[At]),w=h[0]+h[1],v=zt[A](y,zt[m](".row>*{padding-left:"+w+_+q+".row>*:first-child{"+Y+q+".row+.row>*{"+Pt+w+R+w+_+q+".row{"+"margin-left:-"+w+_+q+bt+b+">*{"+"float:none!important;"+"width:100%!important;"+"margin-left:0!important"+q+".row:not(.flush)"+b+":first-child>*{"+yt+w+_+q+bt+b+":first-child>:first-child {"+Y+q+bt+b+">*{"+yt+w+q+bt+b+">*:first-child{"+"padding-top:0"+q+".row+.row"+b+">*{"+Pt+w+R+w+q+".row.flush>*{"+"padding:0!important"+q+".row.flush{"+"margin-left:0px!important"+q+".container{"+"max-width:none!important;"+"min-width:0!important;"+"width:"+c[t][H]+_+q),M,3)}c[i][p](v)}y="iCd"+zt[r];if(!(v=zt[d](y))){b=[],w=[],zt[n](zt[e],function(e){zt[D](a,e)!==-1?b[p](".not-"+e):w[p](".only-"+e)});var G=(b[f]>0?b.join(",")+K:"")+(w[f]>0?w.join(",")+K:"");v=zt[A](y,zt[m](G[B](/\.([0-9])/,jt)),M,3),c[i][p](v)}zt[n](a,function(r){zt[e][a[r]][t][Ft]&&(y="ss"+a[r],(v=zt[d](y))||(v=zt[A](y,zt.newStyleSheet(zt[e][a[r]][t][Ft]),M,5)),c[i][p](v)),zt[e][a[r]][i][f]>0&&zt[n](zt[e][a[r]][i],function(t){c[i][p](zt[e][a[r]][i][t])})}),zt[L][o][zt[r]]&&(zt[n](zt[L][o][zt[r]],function(e){c[i][p](zt[L][o][zt[r]][e])}),zt[L][o][zt[r]]=[])}else c=zt[L][ct][zt[r]];zt.detachAllElements(c[i]),zt[rt](c[i]),zt[W](function(){zt[dt](c)}),zt[P].state=zt[L][ct][zt[r]],zt[P][r]=zt[r],zt.trigger(st)},getStateId:function(){if(zt[Et]&&zt[t].defaultState)return zt[t].defaultState;var r="";return zt[n](zt[e],function(t){zt[e][t].test()&&(r+=zt.sd+t)}),r},poll:function(){var e="";e=zt.getStateId(),e===""&&(e=zt.sd),e!==zt[r]&&(zt[Bt]?zt.changeState(e):(zt[b][Tt][v]=zt[b][Tt][v][B](zt[r][T](1)[B](new RegExp(zt.sd,"g")," "),""),zt.changeState(e),zt[b][Tt][v]=zt[b][Tt][v]+" "+zt[r][T](1)[B](new RegExp(zt.sd,"g")," "),zt[b][Tt][v].charAt(0)==" "&&(zt[b][Tt][v]=zt[b][Tt][v][T](1))))},updateState:function(){var t,s,u,a,l=[];if(zt[r]==zt.sd)return;t=zt[r][T](1).split(zt.sd),zt[n](t,function(o){s=zt[e][t[o]];if(s[i][f]==0)return;zt[n](s[i],function(e){zt[L][ct][zt[r]][i][p](s[i][e]),l[p](s[i][e])})}),zt[L][o][zt[r]]&&(zt[n](zt[L][o][zt[r]],function(e){zt[L][ct][zt[r]][i][p](zt[L][o][zt[r]][e]),l[p](zt[L][o][zt[r]][e])}),zt[L][o][zt[r]]=[]),l[f]>0&&zt[rt](l)},newDiv:function(e){var t=document[w]("div");return t[Mt]=e,t},newInline:function(e){var t;return t=document[w]("style"),t.type=ut,t[Mt]=e,t},newMeta:function(e,t){var n=document[w]("meta");return n.name=e,n.content=t,n},newStyleSheet:function(e){var t=document[w]("link");return t.rel="stylesheet",t.type=ut,t[Ft]=e,t},initPlugin:function(e,n){typeof n==N&&zt[F](e[t],n),e.init&&e.init()},registerPlugin:function(e,t){if(!t)return u;zt.plugins[e]=t,t._=this,t.register&&t.register()},init:function(e,t){zt.initConfig(e),zt.initElements(),zt.initEvents(),zt.poll(),zt[n](zt.plugins,function(e){zt.initPlugin(zt.plugins[e],typeof t==N&&e in t?t[e]:c)}),zt.isInit=C},initAPI:function(){var e,t,r=navigator.userAgent;zt[P][tt]=99,e="other",r[E](/Firefox/)?e="firefox":r[E](/Chrome/)?e="chrome":r[E](/Safari/)&&!r[E](/Chrome/)?e="safari":r[E](/(OPR|Opera)/)?e="opera":r[E](/MSIE ([0-9]+)/)?(e="ie",zt[P][tt]=RegExp.$1):r[E](/Trident\/.+rv:([0-9]+)/)&&(e="ie",zt[P][tt]=RegExp.$1),zt[P].browser=e,zt[P][S]="other",t={ios:"(iPad|iPhone|iPod)",android:"Android",mac:"Macintosh",wp:"Windows Phone",windows:"Windows NT"},zt[n](t,function(e){r[E](new RegExp(t[e],"g"))&&(zt[P][S]=e)});switch(zt[P][S]){case"ios":r[E](/([0-9_]+) like Mac OS X/),e=parseFloat(RegExp.$1[B]("_",".")[B]("_",""));break;case Rt:r[E](/Android ([0-9\.]+)/),e=parseFloat(RegExp.$1);break;case"mac":r[E](/Mac OS X ([0-9_]+)/),e=parseFloat(RegExp.$1[B]("_",".")[B]("_",""));break;case"wp":r[E](/IEMobile\/([0-9\.]+)/),e=parseFloat(RegExp.$1);break;case"windows":r[E](/Windows NT ([0-9\.]+)/),e=parseFloat(RegExp.$1);break;default:e=99}zt[P].deviceVersion=e,zt[P].isTouch=zt[P][S]=="wp"?navigator.msMaxTouchPoints>0:"ontouchstart"in window,zt[P].isMobile=zt[P][S]=="wp"||zt[P][S]==Rt||zt[P][S]=="ios"},initConfig:function(r){var s=[],o=[];typeof r==N&&(r[e]&&(zt[t][e]={}),zt[F](zt[t],r)),zt[F](zt[et][g].grid,zt[t].grid),zt[et][g][H]=zt[t][H],zt[n](zt[t][e],function(n){var r,s={},u,a;zt[F](s,zt[t][e][n]),Ft in s||(s[Ft]=zt[et][g][Ft]),wt in s||(s[wt]=zt[et][g][wt]),"range"in s&&(u=s.range,u=="*"?a="":u.charAt(0)=="-"?a="(max-width: "+parseInt(u[T](1))+"px)":u.charAt(u[f]-1)=="-"?a=mt+parseInt(u[T](0,u[f]-1))+"px)":zt[D](u,"-")!=-1&&(u=u.split("-"),a=mt+parseInt(u[0])+"px) and (max-width: "+parseInt(u[1])+"px)"),s[wt]=a),zt[t][e][n]=s,r={},zt[F](r,zt[et].breakpoint),r[t]=zt[t][e][n],r.test=function(){return zt[j](s[wt])},r[i]=[],zt[t].preload&&r[t][Ft]&&o[p](r[t][Ft]),zt[e][n]=r,zt.breakpointList[p](n)}),X in zt[t][e]&&(zt[Bt]=C,zt[t][e][X][k]=zt[t][k]),zt[n](zt[t][I],function(e){zt.bind(e,zt[t][I][e])}),o[f]>0&&window.location.protocol!="file:"&&zt[W](function(){var e,t=document[a](M)[0],r=new XMLHttpRequest;zt[n](o,function(e){r.open("GET",o[e],u),r.send("")})})},initElements:function(){var e=[];e[p](zt[x]("mV",zt.newMeta(k,at),J,1));switch(zt[t].reset){case"full":e[p](zt[x]("iR",zt[m](zt.css.r),J,2));break;case"normalize":e[p](zt[x]("iN",zt[m](zt.css.n),J,2))}e[p](zt[x]("iBM",zt[m](zt.css.bm),J,1)),e[p](zt[x]("iG",zt[m](".\\31 2u{width:100%}.\\31 1u{width:91.6666666667%}.\\31 0u{width:83.3333333333%}.\\39 u{width:75%}.\\38 u{width:66.6666666667%}.\\37 u{width:58.3333333333%}.\\36 u{width:50%}.\\35 u{width:41.6666666667%}.\\34 u{width:33.3333333333%}.\\33 u{width:25%}.\\32 u{width:16.6666666667%}.\\31 u{width:8.3333333333%}.\\-11u{margin-left:91.6666666667%}.\\-10u{margin-left:83.3333333333%}.\\-9u{margin-left:75%}.\\-8u{margin-left:66.6666666667%}.\\-7u{margin-left:58.3333333333%}.\\-6u{margin-left:50%}.\\-5u{margin-left:41.6666666667%}.\\-4u{margin-left:33.3333333333%}.\\-3u{margin-left:25%}.\\-2u{margin-left:16.6666666667%}.\\-1u{margin-left:8.3333333333%}"),M,3)),e[p](zt[x]("iGR",zt[m](".row>*{float:left}.row:after{content:'';display:block;clear:both;height:0}.row:first-child>*{padding-top:0!important}"),M,3)),zt[rt](e)},initEvents:function(){var e;!zt[t].pollOnce&&!zt[Bt]&&(zt.bind(vt,function(){zt.poll()}),zt.bind(y,function(){zt.poll()})),zt[P][S]=="ios"&&zt[W](function(){zt.bind(y,function(){var e=document[a]("input");zt[n](e,function(t){e[t][St]=e[t][ht],e[t][ht]=""}),window.setTimeout(function(){zt[n](e,function(t){e[t][ht]=e[t][St]})},100)})}),window[Ut]&&zt.bind(vt,window[Ut]),window[Ut]=function(){zt.trigger(vt)},window[U]&&zt.bind(y,window[U]),window[U]=function(){zt.trigger(y)}},initUtilityMethods:function(){document[V]?!function(e,t){zt[W]=t()}(Ht,function(){function e(e){s=1;while(e=t.shift())e()}var t=[],n,r=document,i=ot,s=/^loaded|^c/.test(r[It]);return r[V](i,n=function(){r[pt](i,n),e()}),function(e){s?e():t[p](e)}}):!function(e,t){zt[W]=t()}(Ht,function(e){function t(e){d=1;while(e=n.shift())e()}var n=[],r,i=!1,s=document,o=s[nt],u=o.doScroll,a=ot,f=V,l="onreadystatechange",c=It,h=u?/^loaded|^c/:/^loaded|c/,d=h.test(s[c]);return s[f]&&s[f](a,r=function(){s[pt](a,r,i),t()},i),u&&s.attachEvent(l,r=function(){/^c/.test(s[c])&&(s.detachEvent(l,r),t())}),e=u?function(t){self!=top?d?t():n[p](t):function(){try{o.doScroll("left")}catch(n){return setTimeout(function(){e(t)},50)}t()}()}:function(e){d?e():n[p](e)}}),document[s]?zt[s]=function(e){return document[s](e)}:zt[s]=function(e){var t=document;return t[Ct]?t[Ct](("."+e[B](" "," ."))[B](/\.([0-9])/,jt)):[]},Array[Dt][D]?zt[D]=function(e,t){return e[D](t)}:zt[D]=function(e,t){if(typeof e=="string")return e[D](t);var n,r=t?t:0,i;if(!this)throw new TypeError;i=this[f];if(i===0||r>=i)return-1;r<0&&(r=i-Math.abs(r));for(n=r;n<i;n++)if(this[n]===e)return n;return-1},Array[z]?zt[z]=function(e){return Array[z](e)}:zt[z]=function(e){return Object[Dt].toString.call(e)==="[object Array]"},Object.keys?zt[n]=function(e,t){if(!e)return[];var n,r=Object.keys(e);for(n=0;r[n];n++)t(r[n])}:zt[n]=function(e,t){if(!e)return[];var n;for(n in e)Object[Dt][G].call(e,n)&&t(n)},window.matchMedia?zt[j]=function(e){return e==""?C:window.matchMedia(e).matches}:window.styleMedia||window[wt]?zt[j]=function(e){if(e=="")return C;var t=window.styleMedia||window[wt];return t.matchMedium(e||"all")}:window[$]?zt[j]=function(e){if(e=="")return C;var t=document[w]("style"),n=document[a]("script")[0],r=c;t.type=ut,t.id="matchmediajs-test",n[l][h](t,n),r=$ in window&&window[$](t,c)||t.currentStyle;var i="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=i:t.textContent=i,r.width==="1px"}:(zt[Et]=C,zt[j]=function(e){if(e=="")return C;var t,n,r,i,s={"min-width":c,"max-width":c},o=u;n=e.split(/\s+and\s+/);for(i in n)t=n[i],t.charAt(0)=="("&&(t=t[T](1,t[f]-1),r=t.split(/:\s+/),r[f]==2&&(s[r[0][B](/^\s+|\s+$/g,"")]=parseInt(r[1]),o=C));if(!o)return u;var a=document[nt].clientWidth,l=document[nt].clientHeight;return s[_t]!==c&&a<s[_t]||s[Ot]!==c&&a>s[Ot]||s[kt]!==c&&l<s[kt]||s[Lt]!==c&&l>s[Lt]?u:C})},preInit:function(){var e=document[a]("script");zt.me=e[e[f]-1],zt.initUtilityMethods(),zt.initAPI(),zt[Z](Tt,document[a](Tt)[0]),zt[Z](M,document[a](M)[0]),zt[W](function(){zt[Z]("body",document[a]("body")[0])}),zt[P][tt]>=10&&zt[it](zt[x]("msie-viewport-fix",zt[m]("@-ms-viewport{width:device-width;}"),J,1))}};return zt.preInit(),zt[P][tt]<9&&(zt[dt]=function(e){},zt[m]=function(e){var t;return t=document[w]("span"),t[Mt]='&nbsp;<style type="text/css">'+e+"</style>",t}),zt}();