//>>built
define("dojox/mobile/common","dojo/_base/array,dojo/_base/config,dojo/_base/connect,dojo/_base/lang,dojo/_base/window,dojo/dom-class,dojo/dom-construct,dojo/ready,dijit/registry,./sniff,./uacss".split(","),function(k,e,h,i,b,j,n,o,p,c){var a=i.getObject("dojox.mobile",!0);a.getScreenSize=function(){return{h:b.global.innerHeight||b.doc.documentElement.clientHeight,w:b.global.innerWidth||b.doc.documentElement.clientWidth}};a.updateOrient=function(){var d=a.getScreenSize();j.replace(b.doc.documentElement,
d.h>d.w?"dj_portrait":"dj_landscape",d.h>d.w?"dj_landscape":"dj_portrait")};a.updateOrient();a.tabletSize=500;a.detectScreenSize=function(d){var l=a.getScreenSize(),c=Math.min(l.w,l.h),f,g;if(c>=a.tabletSize&&(d||!this._sz||this._sz<a.tabletSize))f="phone",g="tablet";else if(c<a.tabletSize&&(d||!this._sz||this._sz>=a.tabletSize))f="tablet",g="phone";g&&(j.replace(b.doc.documentElement,"dj_"+g,"dj_"+f),h.publish("/dojox/mobile/screenSize/"+g,[l]));this._sz=c};a.detectScreenSize();a.hideAddressBarWait=
"number"===typeof e.mblHideAddressBarWait?e.mblHideAddressBarWait:1500;a.hide_1=function(){scrollTo(0,1);a._hidingTimer=0==a._hidingTimer?200:2*a._hidingTimer;setTimeout(function(){a.isAddressBarHidden()||a._hidingTimer>a.hideAddressBarWait?(a.resizeAll(),a._hiding=!1):setTimeout(a.hide_1,a._hidingTimer)},50)};a.hideAddressBar=function(){if(!a.disableHideAddressBar&&!a._hiding){a._hiding=!0;a._hidingTimer=c("iphone")?200:0;var d=screen.availHeight;if(c("android")){d=outerHeight/devicePixelRatio;if(0==
d)a._hiding=!1,setTimeout(function(){a.hideAddressBar()},200);d<=innerHeight&&(d=outerHeight);if(3>c("android"))b.doc.documentElement.style.overflow=b.body().style.overflow="visible"}if(b.body().offsetHeight<d)b.body().style.minHeight=d+"px",a._resetMinHeight=!0;setTimeout(a.hide_1,a._hidingTimer)}};a.isAddressBarHidden=function(){return 1===pageYOffset};a.resizeAll=function(d,c){if(!a.disableResizeAll){h.publish("/dojox/mobile/resizeAll",[d,c]);h.publish("/dojox/mobile/beforeResizeAll",[d,c]);if(a._resetMinHeight)b.body().style.minHeight=
a.getScreenSize().h+"px";a.updateOrient();a.detectScreenSize();var e=function(a){var b=a.getParent&&a.getParent();return!(b&&b.resize||!a.resize)},f=function(a){k.forEach(a.getChildren(),function(a){e(a)&&a.resize();f(a)})};c?(c.resize&&c.resize(),f(c)):k.forEach(k.filter(p.toArray(),e),function(a){a.resize()});h.publish("/dojox/mobile/afterResizeAll",[d,c])}};a.openWindow=function(a,c){b.global.open(a,c||"_blank")};!1!==e.mblApplyPageStyles&&j.add(b.doc.documentElement,"mobile");c("chrome")&&j.add(b.doc.documentElement,
"dj_chrome");if(b.global._no_dojo_dm){var i=b.global._no_dojo_dm,m;for(m in i)a[m]=i[m];a.deviceTheme.setDm(a)}c.add("mblAndroidWorkaround",!1!==e.mblAndroidWorkaround&&3>c("android"),void 0,!0);c.add("mblAndroid3Workaround",!1!==e.mblAndroid3Workaround&&3<=c("android"),void 0,!0);o(function(){a.detectScreenSize(!0);!1!==e.mblAndroidWorkaroundButtonStyle&&c("android")&&n.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;}"},
b.doc.head,"first");c("mblAndroidWorkaround")&&n.create("style",{innerHTML:".mblView.mblAndroidWorkaround{position:absolute;top:-9999px !important;left:-9999px !important;}"},b.doc.head,"last");var d=a.resizeAll,l=-1!=navigator.appVersion.indexOf("Mobile")&&!(7<=c("iphone"));if(!1!==e.mblHideAddressBar&&l||!0===e.mblForceHideAddressBar)if(a.hideAddressBar(),!0===e.mblAlwaysHideAddressBar)d=a.hideAddressBar;var i=6<=c("iphone");if((c("android")||i)&&void 0!==b.global.onorientationchange){var f=d,g,
j,k;i?(j=b.doc.documentElement.clientWidth,k=b.doc.documentElement.clientHeight):(d=function(){var a=h.connect(null,"onresize",null,function(b){h.disconnect(a);f(b)})},g=a.getScreenSize());h.connect(null,"onresize",null,function(c){if(i){var d=b.doc.documentElement.clientWidth,e=b.doc.documentElement.clientHeight;d==j&&e!=k&&f(c);j=d;k=e}else d=a.getScreenSize(),d.w==g.w&&100<=Math.abs(d.h-g.h)&&f(c),g=d})}h.connect(null,void 0!==b.global.onorientationchange?"onorientationchange":"onresize",null,
d);b.body().style.visibility="visible"});return a});