function drupal_init(){try{jDrupal||(jDrupal={}),jDrupal.csrf_token=!1,jDrupal.sessid=null,jDrupal.user=drupal_user_defaults(),jDrupal.settings={app_directory:"app",base_path:"/",cache:{entity:{enabled:!1,expiration:3600},views:{enabled:!1,expiration:3600}},debug:!1,endpoint:"",file_public_path:"sites/default/files",language_default:"und",site_path:""},jDrupal.includes={},jDrupal.includes.module={},jDrupal.modules={core:{},contrib:{},custom:{}},jDrupal.services_queue={comment:{retrieve:{}},file:{retrieve:{}},node:{retrieve:{}},taxonomy_term:{retrieve:{}},taxonomy_vocabulary:{retrieve:{}},user:{retrieve:{}}},jDrupal.cache_expiration=window.localStorage.getItem("cache_expiration"),jDrupal.cache_expiration?jDrupal.cache_expiration=JSON.parse(jDrupal.cache_expiration):jDrupal.cache_expiration={entities:{}}}catch(e){console.log("drupal_init - "+e)}}function date(e){try{var t=null,r=null;arguments[1]?(r=arguments[1],"string"==typeof r&&(r=parseInt(r)),t=new Date(r)):(t=new Date,r=t.getTime());for(var o="",n=!1,a=0;a"):console.log(e)):console.log("")}catch(e){console.log("dpm - "+e)}}function drupal_user_defaults(){try{return{uid:"0",roles:{1:"anonymous user"},permissions:[]}}catch(e){console.log("drupal_user_defaults - "+e)}}function empty(e){try{return null===e||("object"==typeof e?0===Object.keys(e).length:"undefined"==typeof e||""==e)}catch(e){console.log("empty - "+e)}}function function_exists(name){try{return"function"==eval("typeof "+name)}catch(e){alert("function_exists - "+e)}}function http_status_code_title(e){try{var t="";switch(e){case 200:t="OK";break;case 401:t="Unauthorized";break;case 404:t="Not Found";break;case 406:t="Not Acceptable";break;case 500:t="Internal Server Error"}return t}catch(e){console.log("http_status_code_title - "+e)}}function in_array(e,t){try{if("undefined"==typeof t)return!1;if("string"==typeof e)return t.indexOf(e)>-1;for(var r=!1,o=0;o0;t--){var r=Math.floor(Math.random()*(t+1)),o=e[t];e[t]=e[r],e[r]=o}return e}catch(e){console.log("shuffle - "+e)}}function time(){var e=new Date;return Math.floor(e/1e3)}function ucfirst(e){e+="";var t=e.charAt(0).toUpperCase();return t+e.substr(1)}function module_implements(e){try{var t=[];if(e)for(var r=module_types(),o=0;ot.expiration}function entity_clean_local_storage(){if(jDrupal.cache_expiration.entities)for(var e in jDrupal.cache_expiration.entities)if(jDrupal.cache_expiration.entities.hasOwnProperty(e)){var t=jDrupal.cache_expiration.entities[e];if(!(t>time())){delete jDrupal.cache_expiration.entities[e];var r=e.split("_"),o=r[0],n=r[1];_entity_local_storage_delete(o,n),window.localStorage.setItem("cache_expiration",JSON.stringify(jDrupal.cache_expiration))}}}function _entity_get_expiration_time(e,t){try{var r=null,o=entity_get_bundle(e,t);if(entity_caching_enabled(e,o)){var r=0,n=jDrupal.settings.cache;"undefined"!==n.entity.expiration&&(r=n.entity.expiration),"undefined"!==n.entity.entity_types&&(n.entity.entity_types[e]&&"undefined"!=typeof n.entity.entity_types[e].expiration&&(r=n.entity.entity_types[e].expiration),o&&n.entity.entity_types[e]&&n.entity.entity_types[e].bundles&&n.entity.entity_types[e].bundles[o]&&"undefined"!=typeof n.entity.entity_types[e].bundles[o].expiration&&(r=n.entity.entity_types[e].bundles[o].expiration))}return r&&(r+=time()),r}catch(e){console.log("_entity_get_expiration_time - "+e)}}function _entity_set_expiration_time(e,t){try{t.expiration=_entity_get_expiration_time(e,t)}catch(e){console.log("_entity_set_expiration_time - "+e)}}function entity_types(){var e=["comment","file","node","taxonomy_term","taxonomy_vocabulary","user"],t=services_entity_types();return t.length&&e.push.apply(e,t),e}function _entity_index_local_storage_load(e,t,r){try{var o=!1;r&&r.reset&&_entity_index_local_storage_delete(t);var n=entity_index_local_storage_key(t);if(o=window.localStorage.getItem(n))if(o=JSON.parse(o),"undefined"!=typeof o.expiration&&0!=o.expiration&&time()>o.expiration)_entity_index_local_storage_delete(t),o=!1;else{for(var a=[],s=0;s