define(["Ti/_","Ti/_/lang"],function(t,o){function e(t,e,i){var c,p,_={},a=[];return"string"!=typeof t&&(i=e,e=t,t=""),_.__def__=i=i||{},p=i.constructor,"function"==typeof p&&p!==r.constructor&&a.push(p),"function"==typeof e?(p=e.prototype,p.__ctors__&&(a=a.concat(p.__ctors__)),o.mixProps(_,p,0,1)):e&&"object"==typeof e&&o.mixProps(_,e,0,1),_.declaredClass=t,o.mixProps(_,i),_.__ctors__=a,c=new Function("con","return function "+(t&&t.replace(s,"")||"AnonymousClass")+"(){con.apply(this,arguments);};")(function(){var t,o,e,s,i=this.declaredClass,c=arguments,p=c[0],_=["properties","constants"],u=this.__def__,l=this.__values__={};for(i&&(n[i]||(n[i]=0),this.widgetId=i+":"+n[i]++),t=0;t<_.length;t++)if(e=_[t],u[e])for(o in u[e])s=u[e][o],s&&"object"==typeof s&&("function"==typeof s.get||"function"==typeof s.set||s.post)?(l[e]||(l[e]={}),l[e][o]=s.value):"function"!=typeof s&&(l[e]||(l[e]={}),l[e][o]=s);for(t=a.length;t;)a[--t].apply(this,c);if(p&&"object"==typeof p){o=this.__values__.constants;for(t in p)(o&&o.hasOwnProperty(t)?o:this)[t]=p[t]}this.toString===r.toString&&(this.toString=function(){return"[object "+(i?i.replace(/\./g,""):"Object")+"]"}),f=this.postscript,f&&f.apply(this,c)}),c.prototype=_,t&&o.setObject(t,c),c}var n={},r=Object.prototype,s=/^\d*|[^A-Za-z0-9_]*/g;return t.declare=e});