Current Path : /var/www/u0635749/data/www/hobbyclick.ru/public/bitrix/js/mobileapp/__deviceload__/ |
Current File : /var/www/u0635749/data/www/hobbyclick.ru/public/bitrix/js/mobileapp/__deviceload__/cordova.min.js |
(function(){if(typeof window.Cordova!="undefined"||navigator.userAgent.search("AppleWebKit")>0){return}var CORDOVA_JS_BUILD_LABEL="3.6.3";var require,define;(function(){var e={},n=[],r={},o=".";function t(e){var n=e.factory,r=function(n){var r=n;if(n.charAt(0)==="."){r=e.id.slice(0,e.id.lastIndexOf(o))+o+n.slice(2)}return require(r)};e.exports={};delete e.factory;n(r,e.exports,e);return e.exports}require=function(o){if(!e[o]){throw"module "+o+" not found"}else if(o in r){var i=n.slice(r[o]).join("->")+"->"+o;throw"Cycle in require graph: "+i}if(e[o].factory){try{r[o]=n.length;n.push(o);return t(e[o])}finally{delete r[o];n.pop()}}return e[o].exports};define=function(n,r){if(e[n]){throw"module "+n+" already defined"}e[n]={id:n,factory:r}};define.remove=function(n){delete e[n]};define.moduleMap=e})();if(typeof module==="object"&&typeof require==="function"){module.exports.require=require;module.exports.define=define}define("cordova",function(e,n,r){var o=e("cordova/channel");var t=e("cordova/platform");var i=document.addEventListener;var a=document.removeEventListener;var d=window.addEventListener;var s=window.removeEventListener;var c={},l={};document.addEventListener=function(e,n,r){var o=e.toLowerCase();if(typeof c[o]!="undefined"){c[o].subscribe(n)}else{i.call(document,e,n,r)}};window.addEventListener=function(e,n,r){var o=e.toLowerCase();if(typeof l[o]!="undefined"){l[o].subscribe(n)}else{d.call(window,e,n,r)}};document.removeEventListener=function(e,n,r){var o=e.toLowerCase();if(typeof c[o]!="undefined"){c[o].unsubscribe(n)}else{a.call(document,e,n,r)}};window.removeEventListener=function(e,n,r){var o=e.toLowerCase();if(typeof l[o]!="undefined"){l[o].unsubscribe(n)}else{s.call(window,e,n,r)}};function u(e,n){var r=document.createEvent("Events");r.initEvent(e,false,false);if(n){for(var o in n){if(n.hasOwnProperty(o)){r[o]=n[o]}}}return r}var f={define:define,require:e,version:CORDOVA_JS_BUILD_LABEL,platformId:t.id,addWindowEventHandler:function(e){return l[e]=o.create(e)},addStickyDocumentEventHandler:function(e){return c[e]=o.createSticky(e)},addDocumentEventHandler:function(e){return c[e]=o.create(e)},removeWindowEventHandler:function(e){delete l[e]},removeDocumentEventHandler:function(e){delete c[e]},getOriginalHandlers:function(){return{document:{addEventListener:i,removeEventListener:a},window:{addEventListener:d,removeEventListener:s}}},fireDocumentEvent:function(e,n,r){var o=u(e,n);if(typeof c[e]!="undefined"){if(r){c[e].fire(o)}else{setTimeout(function(){if(e=="deviceready"){document.dispatchEvent(o)}c[e].fire(o)},0)}}else{document.dispatchEvent(o)}},fireWindowEvent:function(e,n){var r=u(e,n);if(typeof l[e]!="undefined"){setTimeout(function(){l[e].fire(r)},0)}else{window.dispatchEvent(r)}},callbackId:Math.floor(Math.random()*2e9),callbacks:{},callbackStatus:{NO_RESULT:0,OK:1,CLASS_NOT_FOUND_EXCEPTION:2,ILLEGAL_ACCESS_EXCEPTION:3,INSTANTIATION_EXCEPTION:4,MALFORMED_URL_EXCEPTION:5,IO_EXCEPTION:6,INVALID_ACTION:7,JSON_EXCEPTION:8,ERROR:9},callbackSuccess:function(e,n){try{f.callbackFromNative(e,true,n.status,[n.message],n.keepCallback)}catch(r){console.log("Error in success callback: "+e+" = "+r)}},callbackError:function(e,n){try{f.callbackFromNative(e,false,n.status,[n.message],n.keepCallback)}catch(r){console.log("Error in error callback: "+e+" = "+r)}},callbackFromNative:function(e,n,r,o,t){var i=f.callbacks[e];if(i){if(n&&r==f.callbackStatus.OK){i.success&&i.success.apply(null,o)}else if(!n){i.fail&&i.fail.apply(null,o)}if(!t){delete f.callbacks[e]}}},addConstructor:function(e){o.onCordovaReady.subscribe(function(){try{e()}catch(n){console.log("Failed to run constructor: "+n)}})}};r.exports=f});define("cordova/android/nativeapiprovider",function(e,n,r){var o=this._cordovaNative||e("cordova/android/promptbasednativeapi");var t=o;r.exports={get:function(){return t},setPreferPrompt:function(n){t=n?e("cordova/android/promptbasednativeapi"):o},set:function(e){t=e}}});define("cordova/android/promptbasednativeapi",function(e,n,r){r.exports={exec:function(e,n,r,o,t){return prompt(t,"gap:"+JSON.stringify([e,n,r,o]))},setNativeToJsBridgeMode:function(e,n){prompt(n,"gap_bridge_mode:"+e)},retrieveJsMessages:function(e,n){return prompt(+n,"gap_poll:"+e)}}});define("cordova/argscheck",function(e,n,r){var o=e("cordova/exec");var t=e("cordova/utils");var i=r.exports;var a={A:"Array",D:"Date",N:"Number",S:"String",F:"Function",O:"Object"};function d(e,n){return/.*?\((.*?)\)/.exec(e)[1].split(", ")[n]}function s(e,n,r,o){if(!i.enableChecks){return}var s=null;var c;for(var l=0;l<e.length;++l){var u=e.charAt(l),f=u.toUpperCase(),v=r[l];if(u=="*"){continue}c=t.typeName(v);if((v===null||v===undefined)&&u==f){continue}if(c!=a[f]){s="Expected "+a[f];break}}if(s){s+=", but got "+c+".";s='Wrong type for parameter "'+d(o||r.callee,l)+'" of '+n+": "+s;if(typeof jasmine=="undefined"){console.error(s)}throw TypeError(s)}}function c(e,n){return e===undefined?n:e}i.checkArgs=s;i.getValue=c;i.enableChecks=true});define("cordova/base64",function(e,n,r){var o=n;o.fromArrayBuffer=function(e){var n=new Uint8Array(e);return d(n)};o.toArrayBuffer=function(e){var n=typeof atob!="undefined"?atob(e):new Buffer(e,"base64").toString("binary");var r=new ArrayBuffer(n.length);var o=new Uint8Array(r);for(var t=0,i=n.length;t<i;t++){o[t]=n.charCodeAt(t)}return r};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i;var a=function(){i=[];for(var e=0;e<64;e++){for(var n=0;n<64;n++){i[e*64+n]=t[e]+t[n]}}a=function(){return i};return i};function d(e){var n=e.byteLength;var r="";var o;var i=a();for(var d=0;d<n-2;d+=3){o=(e[d]<<16)+(e[d+1]<<8)+e[d+2];r+=i[o>>12];r+=i[o&4095]}if(n-d==2){o=(e[d]<<16)+(e[d+1]<<8);r+=i[o>>12];r+=t[(o&4095)>>6];r+="="}else if(n-d==1){o=e[d]<<16;r+=i[o>>12];r+="=="}return r}});define("cordova/builder",function(e,n,r){var o=e("cordova/utils");function t(e,n,r){for(var o in e){if(e.hasOwnProperty(o)){n.apply(r,[e[o],o])}}}function i(e,r,t){n.replaceHookForTesting(e,r);e[r]=t;if(e[r]!==t){o.defineGetter(e,r,function(){return t})}}function a(e,n,r,t){if(t){o.defineGetter(e,n,function(){console.log(t);delete e[n];i(e,n,r);return r})}else{i(e,n,r)}}function d(n,r,i,c){t(r,function(r,t){try{var l=r.path?e(r.path):{};if(i){if(typeof n[t]==="undefined"){a(n,t,l,r.deprecated)}else if(typeof r.path!=="undefined"){if(c){s(n[t],l)}else{a(n,t,l,r.deprecated)}}l=n[t]}else{if(typeof n[t]=="undefined"){a(n,t,l,r.deprecated)}else{l=n[t]}}if(r.children){d(l,r.children,i,c)}}catch(u){o.alert("Exception building Cordova JS globals: "+u+' for key "'+t+'"')}})}function s(e,n){for(var r in n){if(n.hasOwnProperty(r)){if(e.prototype&&e.prototype.constructor===e){i(e.prototype,r,n[r])}else{if(typeof n[r]==="object"&&typeof e[r]==="object"){s(e[r],n[r])}else{i(e,r,n[r])}}}}}n.buildIntoButDoNotClobber=function(e,n){d(n,e,false,false)};n.buildIntoAndClobber=function(e,n){d(n,e,true,false)};n.buildIntoAndMerge=function(e,n){d(n,e,true,true)};n.recursiveMerge=s;n.assignOrWrapInDeprecateGetter=a;n.replaceHookForTesting=function(){}});define("cordova/channel",function(e,n,r){var o=e("cordova/utils"),t=1;var i=function(e,n){this.type=e;this.handlers={};this.state=n?1:0;this.fireArgs=null;this.numHandlers=0;this.onHasSubscribersChange=null},a={join:function(e,n){var r=n.length,o=r,t=function(){if(!--o)e()};for(var i=0;i<r;i++){if(n[i].state===0){throw Error("Can only use join with sticky channels.")}n[i].subscribe(t)}if(!r)e()},create:function(e){return a[e]=new i(e,false)},createSticky:function(e){return a[e]=new i(e,true)},deviceReadyChannelsArray:[],deviceReadyChannelsMap:{},waitForInitialization:function(e){if(e){var n=a[e]||this.createSticky(e);this.deviceReadyChannelsMap[e]=n;this.deviceReadyChannelsArray.push(n)}},initializationComplete:function(e){var n=this.deviceReadyChannelsMap[e];if(n){n.fire()}}};function d(e){if(typeof e!="function")throw"Function required as first argument!"}i.prototype.subscribe=function(e,n){d(e);if(this.state==2){e.apply(n||this,this.fireArgs);return}var r=e,i=e.observer_guid;if(typeof n=="object"){r=o.close(n,e)}if(!i){i=""+t++}r.observer_guid=i;e.observer_guid=i;if(!this.handlers[i]){this.handlers[i]=r;this.numHandlers++;if(this.numHandlers==1){this.onHasSubscribersChange&&this.onHasSubscribersChange()}}};i.prototype.unsubscribe=function(e){d(e);var n=e.observer_guid,r=this.handlers[n];if(r){delete this.handlers[n];this.numHandlers--;if(this.numHandlers===0){this.onHasSubscribersChange&&this.onHasSubscribersChange()}}};i.prototype.fire=function(e){var n=false,r=Array.prototype.slice.call(arguments);if(this.state==1){this.state=2;this.fireArgs=r}if(this.numHandlers){var o=[];for(var t in this.handlers){o.push(this.handlers[t])}for(var i=0;i<o.length;++i){o[i].apply(this,r)}if(this.state==2&&this.numHandlers){this.numHandlers=0;this.handlers={};this.onHasSubscribersChange&&this.onHasSubscribersChange()}}};a.createSticky("onDOMContentLoaded");a.createSticky("onNativeReady");a.createSticky("onCordovaReady");a.createSticky("onPluginsReady");a.createSticky("onDeviceReady");a.create("onResume");a.create("onPause");a.createSticky("onDestroy");a.waitForInitialization("onCordovaReady");a.waitForInitialization("onDOMContentLoaded");r.exports=a});define("cordova/exec",function(require,exports,module){var cordova=require("cordova"),nativeApiProvider=require("cordova/android/nativeapiprovider"),utils=require("cordova/utils"),base64=require("cordova/base64"),channel=require("cordova/channel"),jsToNativeModes={PROMPT:0,JS_OBJECT:1},nativeToJsModes={POLLING:0,LOAD_URL:1,ONLINE_EVENT:2,PRIVATE_API:3},jsToNativeBridgeMode,nativeToJsBridgeMode=nativeToJsModes.ONLINE_EVENT,pollEnabled=false,messagesFromNative=[],bridgeSecret=-1;function androidExec(e,n,r,o,t){if(bridgeSecret<0){throw new Error("exec() called without bridgeSecret")}if(jsToNativeBridgeMode===undefined){androidExec.setJsToNativeBridgeMode(jsToNativeModes.JS_OBJECT)}for(var i=0;i<t.length;i++){if(utils.typeName(t[i])=="ArrayBuffer"){t[i]=base64.fromArrayBuffer(t[i])}}var a=r+cordova.callbackId++,d=JSON.stringify(t);if(e||n){cordova.callbacks[a]={success:e,fail:n}}var s=nativeApiProvider.get().exec(bridgeSecret,r,o,a,d);if(jsToNativeBridgeMode==jsToNativeModes.JS_OBJECT&&s==="@Null arguments."){androidExec.setJsToNativeBridgeMode(jsToNativeModes.PROMPT);androidExec(e,n,r,o,t);androidExec.setJsToNativeBridgeMode(jsToNativeModes.JS_OBJECT);return}else{androidExec.processMessages(s,true)}}androidExec.init=function(){bridgeSecret=+prompt("","gap_init:"+nativeToJsBridgeMode);channel.onNativeReady.fire()};function pollOnceFromOnlineEvent(){pollOnce(true)}function pollOnce(e){if(bridgeSecret<0){return}var n=nativeApiProvider.get().retrieveJsMessages(bridgeSecret,!!e);androidExec.processMessages(n)}function pollingTimerFunc(){if(pollEnabled){pollOnce();setTimeout(pollingTimerFunc,50)}}function hookOnlineApis(){function e(e){cordova.fireWindowEvent(e.type)}window.addEventListener("online",pollOnceFromOnlineEvent,false);window.addEventListener("offline",pollOnceFromOnlineEvent,false);cordova.addWindowEventHandler("online");cordova.addWindowEventHandler("offline");document.addEventListener("online",e,false);document.addEventListener("offline",e,false)}hookOnlineApis();androidExec.jsToNativeModes=jsToNativeModes;androidExec.nativeToJsModes=nativeToJsModes;androidExec.setJsToNativeBridgeMode=function(e){if(e==jsToNativeModes.JS_OBJECT&&!window._cordovaNative){e=jsToNativeModes.PROMPT}nativeApiProvider.setPreferPrompt(e==jsToNativeModes.PROMPT);jsToNativeBridgeMode=e};androidExec.setNativeToJsBridgeMode=function(e){if(e==nativeToJsBridgeMode){return}if(nativeToJsBridgeMode==nativeToJsModes.POLLING){pollEnabled=false}nativeToJsBridgeMode=e;if(bridgeSecret>=0){nativeApiProvider.get().setNativeToJsBridgeMode(bridgeSecret,e)}if(e==nativeToJsModes.POLLING){pollEnabled=true;setTimeout(pollingTimerFunc,1)}};function processMessage(message){try{var firstChar=message.charAt(0);if(firstChar=="J"){eval(message.slice(1))}else if(firstChar=="S"||firstChar=="F"){var success=firstChar=="S";var keepCallback=message.charAt(1)=="1";var spaceIdx=message.indexOf(" ",2);var status=+message.slice(2,spaceIdx);var nextSpaceIdx=message.indexOf(" ",spaceIdx+1);var callbackId=message.slice(spaceIdx+1,nextSpaceIdx);var payloadKind=message.charAt(nextSpaceIdx+1);var payload;if(payloadKind=="s"){payload=message.slice(nextSpaceIdx+2)}else if(payloadKind=="t"){payload=true}else if(payloadKind=="f"){payload=false}else if(payloadKind=="N"){payload=null}else if(payloadKind=="n"){payload=+message.slice(nextSpaceIdx+2)}else if(payloadKind=="A"){var data=message.slice(nextSpaceIdx+2);var bytes=window.atob(data);var arraybuffer=new Uint8Array(bytes.length);for(var i=0;i<bytes.length;i++){arraybuffer[i]=bytes.charCodeAt(i)}payload=arraybuffer.buffer}else if(payloadKind=="S"){payload=window.atob(message.slice(nextSpaceIdx+2))}else{payload=JSON.parse(message.slice(nextSpaceIdx+1))}cordova.callbackFromNative(callbackId,success,status,[payload],keepCallback)}else{console.log("processMessage failed: invalid message: "+JSON.stringify(message))}}catch(e){console.log("processMessage failed: Error: "+e);console.log("processMessage failed: Stack: "+e.stack);console.log("processMessage failed: Message: "+message)}}var isProcessing=false;androidExec.processMessages=function(e,n){if(e){messagesFromNative.push(e)}if(isProcessing){return}if(n){window.setTimeout(androidExec.processMessages,0);return}isProcessing=true;try{while(messagesFromNative.length){var r=popMessageFromQueue();if(r=="*"&&messagesFromNative.length===0){setTimeout(pollOnce,0);return}processMessage(r)}}finally{isProcessing=false}};function popMessageFromQueue(){var e=messagesFromNative.shift();if(e=="*"){return"*"}var n=e.indexOf(" ");var r=+e.slice(0,n);var o=e.substr(n+1,r);e=e.slice(n+r+1);if(e){messagesFromNative.unshift(e)}return o}module.exports=androidExec});define("cordova/exec/proxy",function(e,n,r){var o={};r.exports={add:function(e,n){console.log("adding proxy for "+e);o[e]=n;return n},remove:function(e){var n=o[e];delete o[e];o[e]=null;return n},get:function(e,n){return o[e]?o[e][n]:null}}});define("cordova/init",function(e,n,r){var o=e("cordova/channel");var t=e("cordova");var i=e("cordova/modulemapper");var a=e("cordova/platform");var d=e("cordova/pluginloader");var s=[o.onNativeReady,o.onPluginsReady];function c(e){for(var n=0;n<e.length;++n){if(e[n].state!=2){console.log("Channel not fired: "+e[n].type)}}}window.setTimeout(function(){if(o.onDeviceReady.state!=2){console.log("deviceready has not fired after 5 seconds.");c(s);c(o.deviceReadyChannelsArray)}},5e3);function l(e){var n=function(){};n.prototype=e;var r=new n;if(n.bind){for(var o in e){if(typeof e[o]=="function"){r[o]=e[o].bind(e)}}}return r}if(window.navigator){window.navigator=l(window.navigator)}if(!window.console){window.console={log:function(){}}}if(!window.console.warn){window.console.warn=function(e){this.log("warn: "+e)}}o.onPause=t.addDocumentEventHandler("pause");o.onResume=t.addDocumentEventHandler("resume");o.onDeviceReady=t.addStickyDocumentEventHandler("deviceready");if(document.readyState=="complete"||document.readyState=="interactive"){o.onDOMContentLoaded.fire()}else{document.addEventListener("DOMContentLoaded",function(){o.onDOMContentLoaded.fire()},false)}if(window._nativeReady){o.onNativeReady.fire()}i.clobbers("cordova","cordova");i.clobbers("cordova/exec","cordova.exec");i.clobbers("cordova/exec","Cordova.exec");a.bootstrap&&a.bootstrap();setTimeout(function(){d.load(function(){o.onPluginsReady.fire()})},0);o.join(function(){i.mapModules(window);a.initialize&&a.initialize();o.onCordovaReady.fire();o.join(function(){e("cordova").fireDocumentEvent("deviceready")},o.deviceReadyChannelsArray)},s)});define("cordova/init_b",function(e,n,r){var o=e("cordova/channel");var t=e("cordova");var i=e("cordova/platform");var a=[o.onDOMContentLoaded,o.onNativeReady];t.exec=e("cordova/exec");function d(e){for(var n=0;n<e.length;++n){if(e[n].state!=2){console.log("Channel not fired: "+e[n].type)}}}window.setTimeout(function(){if(o.onDeviceReady.state!=2){console.log("deviceready has not fired after 5 seconds.");d(a);d(o.deviceReadyChannelsArray)}},5e3);function s(e){var n=function(){};n.prototype=e;var r=new n;if(n.bind){for(var o in e){if(typeof e[o]=="function"){r[o]=e[o].bind(e)}}}return r}if(window.navigator){window.navigator=s(window.navigator)}if(!window.console){window.console={log:function(){}}}if(!window.console.warn){window.console.warn=function(e){this.log("warn: "+e)}}o.onPause=t.addDocumentEventHandler("pause");o.onResume=t.addDocumentEventHandler("resume");o.onDeviceReady=t.addStickyDocumentEventHandler("deviceready");if(document.readyState=="complete"||document.readyState=="interactive"){o.onDOMContentLoaded.fire()}else{document.addEventListener("DOMContentLoaded",function(){o.onDOMContentLoaded.fire()},false)}if(window._nativeReady){o.onNativeReady.fire()}i.bootstrap&&i.bootstrap();o.join(function(){i.initialize&&i.initialize();o.onCordovaReady.fire();o.join(function(){e("cordova").fireDocumentEvent("deviceready")},o.deviceReadyChannelsArray)},a)});define("cordova/modulemapper",function(e,n,r){var o=e("cordova/builder"),t=define.moduleMap,i,a;n.reset=function(){i=[];a={}};function d(e,n,r,o){if(!(n in t)){throw new Error("Module "+n+" does not exist.")}i.push(e,n,r);if(o){a[r]=o}}n.clobbers=function(e,n,r){d("c",e,n,r)};n.merges=function(e,n,r){d("m",e,n,r)};n.defaults=function(e,n,r){d("d",e,n,r)};n.runs=function(e){d("r",e,null)};function s(e,n){if(!e){return n}var r=e.split(".");var o=n;for(var t=0,i;i=r[t];++t){o=o[i]=o[i]||{}}return o}n.mapModules=function(n){var r={};n.CDV_origSymbols=r;for(var t=0,d=i.length;t<d;t+=3){var c=i[t];var l=i[t+1];var u=e(l);if(c=="r"){continue}var f=i[t+2];var v=f.lastIndexOf(".");var p=f.substr(0,v);var g=f.substr(v+1);var y=f in a?"Access made to deprecated symbol: "+f+". "+y:null;var m=s(p,n);var h=m[g];if(c=="m"&&h){o.recursiveMerge(h,u)}else if(c=="d"&&!h||c!="d"){if(!(f in r)){r[f]=h}o.assignOrWrapInDeprecateGetter(m,g,u,y)}}};n.getOriginalSymbol=function(e,n){var r=e.CDV_origSymbols;if(r&&n in r){return r[n]}var o=n.split(".");var t=e;for(var i=0;i<o.length;++i){t=t&&t[o[i]]}return t};n.reset()});define("cordova/platform",function(e,n,r){r.exports={id:"android",bootstrap:function(){var n=e("cordova/channel"),r=e("cordova"),o=e("cordova/exec"),t=e("cordova/modulemapper");o.init();t.clobbers("cordova/plugin/android/app","navigator.app");var i=r.addDocumentEventHandler("backbutton");i.onHasSubscribersChange=function(){o(null,null,"App","overrideBackbutton",[this.numHandlers==1])};r.addDocumentEventHandler("menubutton");r.addDocumentEventHandler("searchbutton");function a(e){var n=r.addDocumentEventHandler(e+"button");n.onHasSubscribersChange=function(){o(null,null,"App","overrideButton",[e,this.numHandlers==1])}}a("volumeup");a("volumedown");n.onCordovaReady.subscribe(function(){o(null,null,"App","show",[])})}}});define("cordova/plugin/android/app",function(e,n,r){var o=e("cordova/exec");r.exports={clearCache:function(){o(null,null,"App","clearCache",[])},loadUrl:function(e,n){o(null,null,"App","loadUrl",[e,n])},cancelLoadUrl:function(){o(null,null,"App","cancelLoadUrl",[])},clearHistory:function(){o(null,null,"App","clearHistory",[])},backHistory:function(){o(null,null,"App","backHistory",[])},overrideBackbutton:function(e){o(null,null,"App","overrideBackbutton",[e])},overrideButton:function(e,n){o(null,null,"App","overrideButton",[e,n])},exitApp:function(){return o(null,null,"App","exitApp",[])}}});define("cordova/pluginloader",function(e,n,r){var o=e("cordova/modulemapper");var t=e("cordova/urlutil");n.injectScript=function(e,n,r){var o=document.createElement("script");o.onload=n;o.onerror=r;o.src=e;document.head.appendChild(o)};function i(e,r,o,t){t=t||o;if(e in define.moduleMap){o()}else{n.injectScript(r,function(){if(e in define.moduleMap){o()}else{t()}},t)}}function a(e,n){for(var r=0,t;t=e[r];r++){if(t.clobbers&&t.clobbers.length){for(var i=0;i<t.clobbers.length;i++){o.clobbers(t.id,t.clobbers[i])}}if(t.merges&&t.merges.length){for(var a=0;a<t.merges.length;a++){o.merges(t.id,t.merges[a])}}if(t.runs){o.runs(t.id)}}n()}function d(e,n,r){var o=n.length;if(!o){r();return}function t(){if(!--o){a(n,r)}}for(var d=0;d<n.length;d++){i(n[d].id,e+n[d].file,t)}}function s(){var e=null;var n=document.getElementsByTagName("script");var r="/cordova.js";for(var o=n.length-1;o>-1;o--){var t=n[o].src.replace(/\?.*$/,"");if(t.indexOf(r)==t.length-r.length){e=t.substring(0,t.length-r.length)+"/";break}}return e}n.load=function(n){var r="/bitrix/js/mobileapp/__deviceload__/";if(r===null){console.log("Could not find cordova.js script tag. Plugin loading may fail.");r=""}i("cordova/plugin_list",r+"cordova_plugins.js",function(){var o=e("cordova/plugin_list");d(r,o,n)},n)}});define("cordova/urlutil",function(e,n,r){n.makeAbsolute=function o(e){var n=document.createElement("a");n.href=e;return n.href}});define("cordova/utils",function(e,n,r){var o=n;o.defineGetterSetter=function(e,n,r,o){if(Object.defineProperty){var t={get:r,configurable:true};if(o){t.set=o}Object.defineProperty(e,n,t)}else{e.__defineGetter__(n,r);if(o){e.__defineSetter__(n,o)}}};o.defineGetter=o.defineGetterSetter;o.arrayIndexOf=function(e,n){if(e.indexOf){return e.indexOf(n)}var r=e.length;for(var o=0;o<r;++o){if(e[o]==n){return o}}return-1};o.arrayRemove=function(e,n){var r=o.arrayIndexOf(e,n);if(r!=-1){e.splice(r,1)}return r!=-1};o.typeName=function(e){return Object.prototype.toString.call(e).slice(8,-1)};o.isArray=function(e){return o.typeName(e)=="Array"};o.isDate=function(e){return o.typeName(e)=="Date"};o.clone=function(e){if(!e||typeof e=="function"||o.isDate(e)||typeof e!="object"){return e}var n,r;if(o.isArray(e)){n=[];for(r=0;r<e.length;++r){n.push(o.clone(e[r]))}return n}n={};for(r in e){if(!(r in n)||n[r]!=e[r]){n[r]=o.clone(e[r])}}return n};o.close=function(e,n,r){if(typeof r=="undefined"){return function(){return n.apply(e,arguments)}}else{return function(){return n.apply(e,r)}}};o.createUUID=function(){return t(4)+"-"+t(2)+"-"+t(2)+"-"+t(2)+"-"+t(6)};o.extend=function(){var e=function(){};return function(n,r){e.prototype=r.prototype;n.prototype=new e;n.__super__=r.prototype;n.prototype.constructor=n}}();o.alert=function(e){if(window.alert){window.alert(e)}else if(console&&console.log){console.log(e)}};function t(e){var n="";for(var r=0;r<e;r++){var o=parseInt(Math.random()*256,10).toString(16);if(o.length==1){o="0"+o}n+=o}return n}});window.cordova=require("cordova");require("cordova/init")})(); //# sourceMappingURL=cordova.map.js