function PSSelectEvent(a){this.onInActiveSelection=this.onActiveSelection=null}PSSelectEvent.prototype.dispatchEvents=function(a){if("true"==a)this.onActiveSelection();else this.onInActiveSelection()};PSSelectEvent.prototype.runJSX=function(a){evalScript("$._ext_ISSELECTIONACTIVE.run()",function(b){a.dispatchEvents(b)});return!0};PSSelectEvent.prototype.process=function(a,b){return a(b)};
PSSelectEvent.prototype.start=function(a,b){this.onActiveSelection=a;this.onInActiveSelection=b;this.startPoll(this.runJSX,this)};PSSelectEvent.prototype.startPoll=function(a,b){var e=0,c=!1,d=setInterval(function(){c||(c=!0,b.process(a,b)||clearInterval(d),1E5==++e&&clearInterval(d),c=!1)},100)};
