text: //>>built
  define("dojox/widget/Rotator","dojo/aspect dojo/_base/declare dojo/_base/Deferred dojo/_base/lang dojo/_base/array dojo/_base/fx dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/topic dojo/on dojo/parser dojo/query dojo/fx/easing dojo/NodeList-dom".split(" "),function(y,r,z,k,p,A,B,n,q,t,l,u,E,C,x){r=r("dojox.widget.Rotator",null,{transition:"dojox.widget.rotator.swap",transitionParams:"duration:500",panes:null,constructor:function(a,c){k.mixin(this,a);var b=this;a=
  b.transition;var e=b._transitions={};b._idMap={};var g=b.transitionParams=eval("({ "+b.transitionParams+" })");c=b._domNode=B.byId(c);b._domNodeContentBox=t.getContentBox(c);b.id=c.id||(new Date).getTime();"static"==l.get(c,"position")&&l.set(c,"position","relative");e[a]=k.getObject(a);e[a]||(this._transitionWarn(a,"dojox.widget.rotator.swap"),e[b.transition="dojox.widget.rotator.swap"]=k.getObject("dojox.widget.rotator.swap"));g.duration||(g.duration=500);p.forEach(b.panes,function(h){q.create("div",
  h,c)});b.panes=[];x("\x3e *",c).forEach(function(h,f){b._initializePane(h,f)});b._controlSub=u.subscribe(b.id+"/rotator/control",k.hitch(b,this.control))},insert:function(a,c){var b=this.panes;null==c&&(c=b.length);c<b.length?(b=b[c],q.place(a,b.node,"before")):q.place(a,this._domNode,"last");this._initializePane(a,c)},remove:function(a){function c(f){var d=e.splice(f,1)[0];d&&(d.id&&(b._idMap[d.id]=void 0),b._domNode.removeChild(d.node));b.idx>f&&b.idx--}var b=this,e=this.panes;if("number"===typeof a)var g=
  a;else{for(var h=0;h<e.length;h++)if(e[h].node===a){g=h;break}if(null==g)return}if(g===this.idx&&(a=this.go(this.idx-1)))return a.then(function(){c(g)});c(g)},destroy:function(){p.forEach([this._controlSub,this.wfe],function(a){a&&a.remove()});q.destroy(this._domNode);this.panes=[]},next:function(){return this.go(this.idx+1)},prev:function(){return this.go(this.idx-1)},go:function(a){var c=this,b=c.idx,e=c.panes,g=e.length,h=c._idMap[a];c._resetWaitForEvent();a=null!=h?h:a||0;a=a<g?0>a?g-1:a:0;if(a==
  b||c.anim)return null;var f=e[b],d=e[a];l.set(f.node,"zIndex",2);l.set(d.node,"zIndex",1);var m={current:f,next:d,rotator:c};if(b=c.anim=c._transitions[d.trans](k.mixin({rotatorBox:c._domNodeContentBox},m,d.params))){var v=new z,w=d.waitForEvent,D=y.after(b,"onEnd",function(){l.set(f.node,{display:"none",left:0,opacity:1,top:0,zIndex:0});D.remove();c.anim=null;c.idx=a;if(f.onAfterOut)f.onAfterOut(m);if(d.onAfterIn)d.onAfterIn(m);c.onUpdate("onAfterTransition");w||(c._resetWaitForEvent(),v.callback())},
  !0);c.wfe=w?u.subscribe(w,function(){c._resetWaitForEvent();v.callback(!0)}):null;c.onUpdate("onBeforeTransition");if(f.onBeforeOut)f.onBeforeOut(m);if(d.onBeforeIn)d.onBeforeIn(m);b.play();return v}},onUpdate:function(a,c){u.publish(this.id+"/rotator/update",a,this,c||{})},_initializePane:function(a,c){var b={node:a,idx:c,params:k.mixin({},this.transitionParams,eval("({ "+(n.get(a,"transitionParams")||"")+" })"))},e=b.trans=n.get(a,"transition")||this.transition,g=this._transitions,h=this.panes,
  f={left:0,top:0,position:"absolute",display:"none"};p.forEach(["id","title","duration","waitForEvent"],function(d){b[d]=n.get(a,d)});b.id&&(this._idMap[b.id]=c);g[e]||(g[e]=k.getObject(e))||this._transitionWarn(e,b.trans=this.transition);if(null==this.idx||n.get(a,"selected"))null!=this.idx&&l.set(h[this.idx].node,"display","none"),this.idx=c,f.display="";l.set(a,f);x("\x3e script[type^\x3d'dojo/method']",a).orphan().forEach(function(d){var m=n.get(d,"event");m&&(b[m]=C._functionFromScript(d))});
  h.splice(c,0,b)},_resetWaitForEvent:function(){this.wfe&&(this.wfe.remove(),delete this.wfe)},control:function(a){var c=k._toArray(arguments),b=this;c.shift();b._resetWaitForEvent();b[a]?((c=b[a].apply(b,c))&&c.addCallback(function(){b.onUpdate(a)}),b.onManualChange(a)):console.warn(b.declaredClass,' - Unsupported action "',a,'".')},resize:function(a,c){var b=this._domNodeContentBox={w:a,h:c};t.setContentSize(this._domNode,b);p.forEach(this.panes,function(e){t.setContentSize(e.node,b)})},onManualChange:function(){},
  _transitionWarn:function(a,c){console.warn(this.declaredClass,' - Unable to find transition "',a,'", defaulting to "',c,'".')}});k.setObject("dojox.widget.rotator.swap",function(a){return new A.Animation({play:function(){l.set(a.current.node,"display","none");l.set(a.next.node,"display","");this._fire("onEnd")}})});return r});