var plusContext={};const DC_INTERVAL_ID="__dc__Interval_id__";var __dc__setInterval=function(e,t){return setIntervalWeex(DC_INTERVAL_ID,e,t)},__dc__clearInterval=function(e){clearIntervalWeex(DC_INTERVAL_ID,e)};plusContext.setInterval=__dc__setInterval,plusContext.clearInterval=__dc__clearInterval,plusContext.setTimeout=function(e,t){var n=arguments.length,i=Array(2=this.southwest.longitude&&e.latitude<=this.northease.latitude&&e.latitude>=this.southwest.latitude)},I.prototype.equals=function(e){return e instanceof I&&(this.northease.equals(e.northease)&&this.southwest.equals(e.southwest))},I.prototype.getCenter=function(){var e=(this.northease.longitude-this.southwest.longitude)/2,t=(this.northease.latitude-this.southwest.latitude)/2;return new m(e+this.southwest.longitude,t+this.southwest.latitude)};b=m.prototype;function x(){this._UUID_=null,this.visable=!0}b.setLng=function(e){this.longitude=e},b.getLng=function(){return this.longitude},b.setLat=function(e){this.latitude=e},b.getLat=function(){return this.latitude},b.equals=function(e){return this.longitude==e.longitude&&this.latitude==e.latitude};b=x.prototype;function S(e){var n=this;this._UUID_=_.UUID("marker"),this.point=e,this.icon="",this.caption="",this.bubble=null,this.canDraggable=!1,this.onclick=function(e){},this.onDrag=function(e){},d.pushCallback(this._UUID_,function(e,t){"bubbleclick"==t.type?n.bubble&&n.bubble.onclick&&n.bubble.onclick(n.bubble):"markerclick"==t.type?n.onclick&&n.onclick(n):"onDrag"==t.type&&(n.point=t.pt,n.onDrag(n))}),h(this._UUID_,"marker",[e])}b.show=function(){1!=this.visable&&(this.visable=!0,y(this._UUID_,"show",["true"]))},b.hide=function(){0!=this.visable&&(this.visable=!1,y(this._UUID_,"hide",["false"]))},b.isVisible=function(){return this.visable},b.bringToTop=function(){y(this._UUID_,"bringToTop",[])};b=S.prototype=new x;function w(){this.strokeColor="#FFFFFF",this.strokeOpacity=1,this.fillColor="#FFFFFF",this.fillOpacity=1,this.lineWidth=5,this.visable=!0}b.constructor=S,b.setPoint=function(e){e instanceof m&&(e=[this.point=e],y(this._UUID_,"setPoint",e))},b.getPoint=function(){return this.point},b.setIcon=function(e){"string"==typeof e&&(this.icon=e,y(this._UUID_,"setIcon",[e]))},b.setLabel=function(e){"string"==typeof e&&(this.caption=e,y(this._UUID_,"setLabel",[e]))},b.getLabel=function(){return this.caption},b.setBubble=function(e,t){var n,i;e instanceof g?((n=e.marker)&&n!=this&&(i=[n.bubble=null,null,null,null,!1],y(n._UUID_,"setBubble",i)),(e.marker=this).bubble=e,i=[this.bubble.label,this.bubble.icon,this.bubble.__contentImageAsDataURL,this.bubble.__contentImage,t],y(this._UUID_,"setBubble",i)):null==e&&y(this._UUID_,"setBubble",[null,null,null,null,t])},b.hideBubble=function(){this.bubble&&y(this._UUID_,"hideBubble",[])},b.getBubble=function(){return this.bubble},b.setDraggable=function(e){e!=this.canDraggable&&(this.canDraggable=!this.canDraggable,y(this._UUID_,"setDraggable",[this.canDraggable]))},b.isDraggable=function(){return this.canDraggable},b.setIcons=function(e,t){y(this._UUID_,"setIcons",[e,t])};b=w.prototype=new x;function D(e,t){this.center=e,this.radius=t,this._UUID_=_.UUID("circle"),h(this._UUID_,"circle",[e,t])}b.constructor=w,b.setStrokeColor=function(e){"string"==typeof e&&(this.strokeColor=e,y(this._UUID_,"setStrokeColor",[e]))},b.getStrokeColor=function(){return this.strokeColor},b.setStrokeOpacity=function(e){"number"==typeof e&&(e<0?e=0:1a.Uninitialized&&("function"==typeof this.onabort&&this.onabort(this.__progessEvent__),this.__init__(),o.exec(a.__F__,"abort",[this.__UUID__]))},t.getAllResponseHeaders=function(){if(this.readyState>=a.Receiving){if(this.__noParseResponseHeader__)return this.__noParseResponseHeader__;var e,t="";for(e in this.__responseHeaders__)t=t+e+": "+this.__responseHeaders__[e]+"\r\n";return this.__noParseResponseHeader__=t,this.__noParseResponseHeader__}return null},t.getResponseHeader=function(e){if("string"==typeof e&&this.readyState>=a.Receiving){var t=null;if(e=e.toLowerCase(),t=this.__cacheReponseHeaders__[e])return t;for(n in this.__responseHeaders__){var n,i=this.__responseHeaders__[n];e===(n=n.toLowerCase())&&(t=t?t+", "+i:i)}return this.__cacheReponseHeaders__[e]=t}return null},t.setRequestHeader=function(e,t){var n;"string"==typeof e&&"string"==typeof t&&a.Open==this.readyState&&(n=this.__requestHeaders__[e],this.__requestHeaders__[e]=n?n+", "+t:t)},t.open=function(e,t,n,i){a.Open!=this.readyState&&a.Loaded!=this.readyState||this.__init__(),a.Uninitialized==this.readyState&&(this.readyState=a.Open,o.exec(a.__F__,"open",[this.__UUID__,e,"string"==typeof(t=t)?0==(t=t.replace(/(^\s*)|(\s*$)/g,"")).indexOf("http://")||0==t.indexOf("https://")?t:t=0==t.indexOf("/")?location.origin+t:location.origin+location.pathname+t:"",n,i,this.timeout]),"function"==typeof this.onreadystatechange&&this.onreadystatechange())},t.overrideMimeType=function(e){o.exec(a.__F__,"overrideMimeType",[this.__UUID__,e])},t.send=function(e){var n=this;if(a.Open!=this.readyState)throw new Error("XMLHttpRequest not open");this.readyState=a.Sent,"function"==typeof this.onloadstart&&this.onloadstart(n.__progessEvent__);var t=o.callbackId(function(e){if(a.Receiving==e.readyState)a.Sent==n.readyState?(n.readyState=a.Receiving,n.status=e.status,n.statusText=e.statusText,n.__responseHeaders__=e.header,n.__progessEvent__.lengthComputable=e.lengthComputable,n.__progessEvent__.total=e.totalSize):a.Receiving==n.readyState&&(n.responseText=e.responseText,n.__progessEvent__.loaded=e.revSize),"function"==typeof n.onreadystatechange&&n.onreadystatechange(),"function"==typeof n.onprogress&&n.onprogress(n.__progessEvent__);else if(a.Loaded==e.readyState){n.readyState=a.Loaded,e.status&&(n.status=e.status);try{n.responseText&&(t=new DOMParser,n.responseXML=t.parseFromString(n.responseText,"text/xml"))}catch(e){n.responseXML=null}try{var t;"document"==n.responseType?(t=new DOMParser,n.response=n.responseXML):"json"==n.responseType&&(n.response=JSON.parse(n.responseText))}catch(e){n.response=null}"function"==typeof n.onreadystatechange&&n.onreadystatechange(),e.error==c.Timeout?"function"==typeof n.ontimeout&&n.ontimeout(n.__progessEvent__):e.error==c.Other?"function"==typeof n.onerror&&n.onerror(n.__progessEvent__):"function"==typeof n.onload&&n.onload(n.__progessEvent__),"function"==typeof n.onloadend&&n.onloadend(n.__progessEvent__)}});return o.exec(a.__F__,"send",[this.__UUID__,t,e,this.__requestHeaders__]),void("function"==typeof this.onreadystatechange&&this.onreadystatechange())},{XMLHttpRequest:a}}),PlusObject.register("zip",function(e,t,n,i){var o=t.bridge,r="Zip";return{compressVideo:function(e,t,n){n=o.callbackId(function(e){t&&(e={tempFilePath:e.tempFilePath,size:e.size},t(e))},n);o.exec(r,"compressVideo",[e,n])},decompress:function(e,t,n,i){i=o.callbackId(n,i);o.exec(r,"decompress",[e,t,i])},compress:function(e,t,n,i){i=o.callbackId(n,i);o.exec(r,"compress",[e,t,i])},compressImage:function(e,t,n){n=o.callbackId(function(e){t&&(e={target:e.path,width:e.w,height:e.h,size:e.size},t(e))},n);o.exec(r,"compressImage",[e,n])}}}),PlusObject.register("beacon",function(e,t,n,i){var o="iBeacon",r=t.bridge,s={startBeaconDiscovery:function(t){if("object"==typeof t){var n="function"!=typeof t.complete?function(){}:t.complete,e="function"!=typeof t.success?n:function(e){t.success(e),n(e)},i="function"!=typeof t.fail?n:function(e){t.fail(e),n(e)};return callbackID=r.callbackId(e,i),r.exec(o,"startBeaconDiscovery",[callbackID,t.uuids])}},stopBeaconDiscovery:function(t){var n="function"!=typeof t.complete?function(){}:t.complete,e="function"!=typeof t.success?n:function(e){t.success(e),n(e)},i="function"!=typeof t.fail?n:function(e){t.fail(e),n(e)};return callbackID=r.callbackId(e,i),r.exec(o,"stopBeaconDiscovery",[callbackID])},getBeacons:function(t){var n="function"!=typeof t.complete?function(){}:t.complete,e="function"!=typeof t.success?n:function(e){t.success(e),n(e)},i="function"!=typeof t.fail?n:function(e){t.fail(e),n(e)};return callbackID=r.callbackId(e,i),r.exec(o,"getBeacons",[callbackID])},onBeaconUpdate:function(e){e="function"!=typeof e?null:e;return callbackID=r.callbackId(e),r.exec(o,"onBeaconUpdate",[callbackID])},onBeaconServiceChange:function(e){e="function"!=typeof e?null:e;return callbackID=r.callbackId(e),r.execSync(o,"onBeaconServiceChange",[callbackID])}};t.ibeacon=s}),PlusObject.register("bluetooth",function(e,t,n,i){var o="Bluetooth",a=t.bridge,r={closeBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),a.exec(o,"closeBluetoothAdapter",[callbackID])},openBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),a.exec(o,"openBluetoothAdapter",[callbackID])},getBluetoothAdapterState:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),a.exec(o,"getBluetoothAdapterState",[callbackID])},getBluetoothDevices:function(r){var s=this,c="function"!=typeof r.complete?function(){}:r.complete,e="function"!=typeof r.success?null:function(e){for(var t=e.devices,n=0;nthis.length?this.position=this.length:this.position=e)},n.truncate=function(e){if(this.readyState===b.WRITING)throw new _(_.INVALID_STATE_ERR);this.readyState=b.WRITING;var t=this;"function"==typeof t.onwritestart&&t.onwritestart(new i("writestart",{target:this})),l.exec(function(e){t.readyState!==b.DONE&&(t.readyState=b.DONE,t.length=e,t.position=Math.min(t.position,e),"function"==typeof t.onwrite&&t.onwrite(new i("write",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new i("writeend",{target:t})))},function(e){t.readyState!==b.DONE&&(t.readyState=b.DONE,t.error=new _(e),"function"==typeof t.onerror&&t.onerror(new i("error",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new i("writeend",{target:t})))},"truncate",[this.fileName,e,this.position])},{FileSystem:I,DirectoryEntry:y,DirectoryReader:v,FileReader:g,FileWriter:b,requestFileSystem:function(t,n,i){function o(e){"function"==typeof i&&i(new _(e))}var r,e;t<1||4