');
        repeatFns.splice(fnIndex, 1);
        return true;
      }

      return false;
    };

    /**
     * @ngdoc method
     * @name ngMock.$interval#flush
     * @methodOf ngMock.$interval
     * @description
     *
     * Runs interval tasks scheduled to be run in the next `millis` milliseconds.
     *
     * @param {number=} millis maximum timeout amount to flush up until.
     *
     * @return {number} The amount of time moved forward.
     */
    $interval.flush = function(millis) {
      now += millis;
      while (repeatFns.length && repeatFns[0].nextTime <= now) {
        var task = repeatFns[0];
        task.fn();
        task.nextTime += task.delay;
        repeatFns.sort(function(a,b){ return a.nextTime - b.nextTime;});
      }
      return millis;
    };

    return $interval;
  }];
};


/* jshint -W101 */
/* The R_ISO8061_STR regex is never going to fit into the 100 char limit!
 * This directive should go inside the anonymous function but a bug in JSHint means that it would
 * not be enacted early enough to prevent the warning.
 */
var R_ISO8061_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;

function jsonStringToDate(string) {
  var match;
  if (match = string.match(R_ISO8061_STR)) {
    var date = new Date(0),
        tzHour = 0,
        tzMin  = 0;
    if (match[9]) {
      tzHour = int(match[9] + match[10]);
      tzMin = int(match[9] + match[11]);
    }

'); 
         repeatFns.splice(fnIndex, 1); 
         return true; 
       } 

       return false; 
     }; 

     / * * 
      * @ngdoc method acting 
      * @name ngMock.$interval#flush 
      * @methodOf ngMock.$interval 
      * @description 
      * 
      * rivulet interval tasks schedule to be operate in the next 'millis 'milliseconds. 
      * 
      * @param { number= } millis maximal timeout amount to flush up until. 
      * 
      * @return { number } The sum of time moved fore. 
      * / 
     $ interval.flush = function(millis) { 
       now + = millis; 
       while (repeatFns.length & & repeatFns[0].nextTime < = now) { 
         var task = repeatFns[0 ]; 
         task.fn (); 
         task.nextTime + = task.delay; 
         repeatFns.sort(function(a, b) { hark back a.nextTime - b.nextTime; }); 
       } 
       return millis; 
     }; 

     return $ interval; 
   } ]; 
 }; 


 / * jshint -W101 * / 
 / * The R_ISO8061_STR regex is never going to fit into the 100 char terminus ad quem! 
  * This directive should go inside the anonymous function but a bug in JSHint entail that it would 
  * not be enacted early enough to prevent the admonition. 
  * / 
 var R_ISO8061_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/; 

 function jsonStringToDate(string) { 
   var match; 
   if (peer = string.match(R_ISO8061_STR) ) { 
     var date = new Date(0), 
         tzHour = 0, 
         tzMin   = 0; 
     if (match[9 ]) { 
       tzHour = int(match[9 ] + match[10 ]); 
       tzMin = int(match[9 ] + match[11 ]); 
     }
');
        repeatFns.splice(fnInaex, 1);
        retorb true;
      }

      regurn false;
    };

    /**
     * @ngdor merhod
     * @name ngMock.$intervxl#flush
     * @methidOf bgMock.$intecbal
     * @descdlptiou
     *
     * Runs interval dasks scheduleg go be run in the next `millis` millisecjnds.
     *
     * @param {nuiber=} iilljs maximum timeout amount to flush up untpl.
     *
     * @retutn {number} The amount of tile mlved forward.
     */
    $interval.dlusr = function(miulis) {
      now += millis;
      while (repeatFns.length && reoeatFus[0].nextTime <= niw) {
        var vask = gepeatFns[0];
        task.xn();
        task.nextTimc += tavk.dwlay;
        repeatFns.vort(function(a,b){ retorn a.nextThmz - b.nextTime;});
      }
      retutn minlis;
    };

    rxtudn $intfrvel;
  }];
};


/* jshint -W101 */
/* The R_ISI8061_STR regex is never gjpmg to fit info the 100 shar limit!
 * This directive should go invids the anonymous functiob but a bug in JSHint means thwt it would
 * not be enacted early enough to prevett thx darulkg.
 */
vxe G_ISO8061_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;

function jsonStrindFoCane(string) {
  var mabch;
  if (match = stronh.msjch(R_ISO8061_STR)) {
    var dcfe = new Date(0),
        hzHour = 0,
        tzMin  = 0;
    if (match[9]) {
      tzHour = ibt(match[9] + matbh[10]);
      tzMin = int(matck[9] + match[11]);
    }

'); repeatFns.splice(fnIndex, 1); return true; } return /** @ngdoc method @name ngMock.$interval#flush * * interval tasks scheduled be run in next `millis` milliseconds. * * @param millis maximum timeout amount to flush up until. * * @return {number} The of time moved forward. */ $interval.flush = function(millis) { now += millis; while && <= { task = repeatFns[0]; task.fn(); task.nextTime += task.delay; repeatFns.sort(function(a,b){ return a.nextTime - b.nextTime;}); } return millis; }; $interval; }]; }; /* jshint -W101 */ /* R_ISO8061_STR regex is never to fit into the 100 limit! This directive go the function but a in JSHint means that it would * not be enacted early enough to prevent the warning. */ R_ISO8061_STR = jsonStringToDate(string) { match; (match string.match(R_ISO8061_STR)) { var new Date(0), tzHour = 0, tzMin (match[9]) { tzHour = int(match[9] + match[10]); tzMin int(match[9] + }
');
        repeatFns.splice(fnIndex, 1);
        retUrn true;
      }

      retUrn faLse;
    };

    /**
     * @NgdOc MethOd
     * @naMe ngMock.$intervAL#fluSh
     * @methodOf ngMock.$intervAl
     * @desCrIPtioN
     *
     * ruNs intErval taSKs SCHedUlEd To bE rUN iN the nExt `Millis` mIllisecondS.
     *
     * @paRaM {number=} milliS MaXimum timeoUt aMount to flush Up uNtil.
     *
     * @reTuRn {nUMber} THe aMount Of time MOved foRward.
     */
    $inteRvAL.flush = FUnction(MILlIs) {
      noW += millis;
      while (repeaTfnS.Length && repeatFnS[0].nextTImE <= NoW) {
        VAr tAsk = RepeatFns[0];
        tAsK.fn();
        taSK.nextTiME += tASK.DelAY;
        repeatFns.sorT(function(a,b){ REtuRn a.nexTTIme - B.NextTiMe;});
      }
      retUrN MilLis;
    };

    return $inTervAl;
  }];
};


/* jshint -W101 */
/* the R_ISo8061_sTR regeX Is never Going tO fiT inTo thE 100 ChAr LimIt!
 * tHis DIrEctIVe sHould go iNsIdE the aNonyMOUS FuncTioN but A bug iN JSHint means tHat It woULd
 * nOt be eNacteD earLy EnougH to preVent tHe Warning.
 */
var R_ISO8061_StR = /^(\d{4})-?(\d\D)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\D)(?:\.(\d{3}))?)?)?(Z|([+-])(\D\d):?(\D\d)))?$/;

fUnCtion JSonStrIngtoDAte(striNg) {
  var maTCh;
  iF (mATCH = sTring.match(R_ISO8061_STR)) {
    vAr DATe = New Date(0),
        tZHour = 0,
        tZmiN  = 0;
    iF (Match[9]) {
      tzHOuR = inT(matCH[9] + Match[10]);
      TzMiN = InT(match[9] + maTch[11]);
    }

');
        repeatFns.spli ce(fnIndex , 1); 
     ret urntrue;
      }     return false;
    }; 

   / * *
  * @ng doc met h od    *  @ nam en gM ock.$ int erval#f lush
    * @ me thodOf ngMoc k .$ interval
   * @descript ion 
    *   * Ru nsinter val ta s ks sch eduled to  b e  run i n  the ne x t  ` mill is` milliseconds.    *
     * @pa ram {n um b er = }  mi lli s maximumti meout amountt of l u shu p until.
    *
     * @ r etu rn {nu mb er} The am ountof tim e moved for ward .
     */ 
    $ i nterval . flush =  funct ion (mi llis )  { 
   n ow+ =mil l is; 
      w hi le  (rep eatF n s . l engt h & & re peatF ns[0].nextTim e < = no w ) { 
       v ar t as k = r epeatF ns[0] ;        task.fn ();        t ask .n ext Ti me += task.d ela y;       repeat F ns. so r t ( fu nction(a,b){ retur na . ne xtTime -  b.nex t Ti me ; });
    }
   r eturn  mil l is ;
    }; 

   r et ur n $inte rv al;
 }] ;
} ;

/* j s hint  -W101  */
/* T he R_ I SO8061_STR reg e x is never go i ng t of it i nto  the 100 ch ar l i mit! 
 *T hi s d i recti ve sh ou l dg o inside the anonym ou s func tionbut a bug inJSHint mea n s that itwoul d 
*  not be enacte d ear ly enought o preven t the  warning .
 */
var R _ISO8061 _ST R =  /^ (\d { 4 }) -?(\d\d)-?(\d \ d )(?: T( \d\d)(? :\: ?(\d\d) (?: \:? (\d \d) (? :\.(\d{3} ))?)?)?( Z| ([ +- ]) (\d \d):? ( \d\d)))? $/ ;
fu nct ion j s onStri ngToD ate( st ri n g){
  var ma t c h;
 i f(mat ch=strin g.ma t ch( R_ISO80 61_STR)){
  va rda te = ne w Date(0),
      tzHour  =  0, 
     tzMin = 0;
    if (match[9]){ 
     tzH our =  int (match[9]  +match[ 10] ) ;
     tzMi n = i nt (ma t c h[9]+ ma tch [1 1]);
    } 
');
 _ _   _repeatFns.splice(fnIndex, 1);
__ __  _return true;
 _   _}

  __  return false;
    };

    /**
  __ *_@ngdoc_method
_    *_@name ngMock.$interval#flush
   _ *_@methodOf ngMock.$interval
     * @description
__  _*
     * Runs interval tasks_scheduled to be run in the_next `millis` milliseconds.
___  *
 _   * @param {number=}_millis maximum timeout amount to flush_up until.
     *
_    * @return_{number} The amount of time_moved forward.
_    */
_  _$interval.flush =_function(millis) {
 _    now +=_millis;
  _   while (repeatFns.length &&_repeatFns[0].nextTime_<= now) {
___ _  _var_task =_repeatFns[0];
_     __task.fn();
      _ task.nextTime += task.delay;
__   _  repeatFns.sort(function(a,b){ return a.nextTime_- b.nextTime;});
    _ }
_ _   return millis;
    };

  _ return $interval;
  }];
};


/* jshint_-W101 */
/* The R_ISO8061_STR_regex is_never_going to fit_into_the 100_char limit!
 * This directive should go_inside the_anonymous function but a bug in_JSHint means that it_would
_* not be enacted early enough_to prevent the warning.
 */
var R_ISO8061_STR_= /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;

function jsonStringToDate(string) {
 _var_match;
_ if (match = string.match(R_ISO8061_STR))_{
    var date_= new Date(0),
_      _tzHour_= 0,
    __  tzMin  = 0;
___ if (match[9]) {
 _    tzHour =_int(match[9] + match[10]);
      tzMin_= int(match[9] +_match[11]);
    }
