/* Copyright (c) 2004-2016, The JS Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/router/RouterBase",["dojo/_base/declare","dojo/hash","dojo/topic"],function(_1,_2,_3){var _4;if(String.prototype.trim){_4=function(_5){return _5.trim();};}else{_4=function(_6){return _6.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};}function _7(_8,_9,_a){var _b,_c,_d,_e,_f,i,l;_b=this.callbackQueue;_c=false;_d=false;_e={stopImmediatePropagation:function(){_c=true;},preventDefault:function(){_d=true;},oldPath:_9,newPath:_a,params:_8};_f=[_e];if(_8 instanceof Array){_f=_f.concat(_8);}else{for(var key in _8){_f.push(_8[key]);}}for(i=0,l=_b.length;i0?_28:null;},_indexRoutes:function(){var i,l,_2a,_2b,_2c=this._routes;_2b=this._routeIndex={};for(i=0,l=_2c.length;i