function __adsfsdaf99dsafsd090dsfsd__(){function e(e,t){t=[e][i[5]]([][i[6]][i[7]](t)),logger[i[8]][i[9]](logger,t)}function t(e,t){try{switch(t){case i[10]:case i[11]:return JSON[i[12]](e);case i[13]:return i[14]}}catch(e){return i[15]+e}return null===e||void 0===e?Object[i[16]].toString[i[7]](e):e[i[17]]()}function n(e,n){if(null===e||void 0===e)return[i[18]];if(1==arguments[i[19]])return[e[i[17]]()];typeof e!=i[20]&&(e=e[i[17]]());for(var o=/(.*?)%(.)(.*)/,r=e,s=[];n[i[19]];){var a=o[i[21]](r);if(!a)break;var c=n[i[22]]();r=a[3],s[i[23]](a[1]),a[2]!=i[24]?s[i[23]](t(c,a[2])):(s[i[23]](i[24]),n[i[26]](c))}s[i[23]](r);var u=[][i[6]][i[7]](n);return u[i[26]](s[i[27]](i[14])),u}var i=["plus","tools","bridge","Console","console","concat","slice","call","logLevel","apply","j","o","stringify","c","","error JSON.stringify()ing argument: ","prototype","toString","","length","string","exec","shift","push","%","%","unshift","join","","log","LOG","info","INFO","warn","WARN","error","ERROR","assert","ASSERT:","clear","clear","time","valueOf","timeEnd","Timer [",": ","ms]","format","logLevel"," ","debug","addEventListener","error","message","\rfilename:","filename","\rlineno:","lineno"],o=(window[i[0]][i[1]],window[i[0]]);B=window[i[0]][i[2]],_LOGF=i[3],winConsole=window[i[4]],Timers={},logger={},logger[i[29]]=function(t){e(i[30],arguments)},logger[i[31]]=function(t){e(i[32],arguments)},logger[i[33]]=function(t){e(i[34],arguments)},logger[i[35]]=function(t){e(i[36],arguments)},logger[i[37]]=function(e){if(!e){var t=vformat([][i[6]][i[7]](arguments,1));throw logger[i[29]](i[38]+t),new Error(t)}},logger[i[39]]=function(){B[i[21]](_LOGF,i[40],0)},logger[i[41]]=function(e){Timers[e]=(new Date)[i[42]]()},logger[i[43]]=function(e){var t=Timers[e];if(t){var n=(new Date)[i[42]]()-t;logger[i[29]](i[44]+e+i[45]+n+i[46])}},logger[i[8]]=function(e){var t=[][i[6]][i[7]](arguments,1),n=logger[i[47]][i[9]](logger[i[47]],t);B[i[21]](_LOGF,i[48],[e,n])},logger[i[47]]=function(e,t){return n(arguments[0],[][i[6]][i[7]](arguments,1))[i[27]](i[49])},o[i[4]]={},o[i[4]][i[29]]=function(){},o[i[4]][i[31]]=function(){},o[i[4]][i[35]]=function(){},o[i[4]][i[33]]=function(){},o[i[4]][i[37]]=function(){},o[i[4]][i[39]]=function(){},o[i[4]][i[41]]=function(){},o[i[4]][i[43]]=function(){},o[i[1]][i[50]]&&(window[i[4]][i[29]]=logger[i[29]],window[i[4]][i[31]]=logger[i[31]],window[i[4]][i[35]]=logger[i[35]],window[i[4]][i[33]]=logger[i[33]],window[i[51]](i[52],function(e){var t=e[i[53]]+i[54]+e[i[55]]+i[56]+e[i[57]];window[i[4]][i[35]](t)}))}if(!window.plus||window.plus&&!window.plus.isReady){var type=typeof window.plus;"function"==type||"object"==type?(window.plus.isReady=!0,navigator.plus=window.__html5plus__=window.plus):window.__html5plus__=window.plus=navigator.plus={isReady:!0}}!function(e){var t=e.tools={__UUID__:0,UNKNOWN:-1,IOS:0,ANDROID:1,platform:-1,debug:!1,UUID:function(e){return e+this.__UUID__+++(new Date).valueOf()},extend:function(e,t){for(var n in t)e[n]=t[n]},typeName:function(e){return Object.prototype.toString.call(e).slice(8,-1)},isDate:function(e){return"Date"==t.typeName(e)},isArray:function(e){return"Array"==t.typeName(e)},isDebug:function(){return e.tools.debug},stringify:function(e){return window.JSON3?window.JSON3.stringify(e):JSON.stringify(e)},isNumber:function(e){return"number"==typeof e||e instanceof Number},getElementOffsetInWebview:function(e,t){for(var n=0,i=e;i;)n+=i[t],i=i.offsetParent;return n},getElementOffsetXInWebview:function(e){return t.getElementOffsetInWebview(e,"offsetLeft")},getElementOffsetYInWebview:function(e){return t.getElementOffsetInWebview(e,"offsetTop")},execJSfile:function(e){function t(e){var n=document.head,i=document.body;n?n.insertBefore(e,n.firstChild):i?i.insertBefore(e,i.firstChild):setTimeout(function(){t(e)},100)}var n=document.createElement("script");n.type="text/javascript",n.src=e,t(n)},copyObjProp2Obj:function(e,t,n){var i=n instanceof Array;for(var o in t){var r=!0;if(i)for(var s=0;s-1&&(_.splice(t,1),0===_.length&&i())}var e=e,s=e.bridge,a=e.tools,c="Accelerometer",u=!1,l={},_=[],f=null,d=function(e,t,n){this.xAxis=e,this.yAxis=t,this.zAxis=n},h={getCurrentAcceleration:function(e,t,i){var s=o(function(t){r(s),e(t)},function(e){r(s),t&&t(e)});_.push(s),u||n(-1)},watchAcceleration:function(e,i,s){var c=s&&s.frequency&&"number"==typeof s.frequency?s.frequency:500,d=a.UUID("watch"),h=o(function(){},function(e){r(h),i&&i(e)});return _.push(h),l[d]={timer:t.setInterval(function(){f&&e(f)},c),listeners:h},u?f&&e(f):n(c),d},clearWatch:function(e){e&&l[e]&&(t.clearInterval(l[e].timer),r(l[e].listeners),delete l[e])}};e.accelerometer=h}(this.plus,this),function(e){var e=e,t=e.bridge,n=e.tools;e.audio={getRecorder:function(){var e={_Audio_UUID__:n.UUID("Record"),supportedFormats:["amr","3gp","aac"],supportedSamplerates:[44100,16e3,8e3],record:function(e,n,i){var o=t.callbackId(n,i);t.exec("Audio","RecorderExecMethod",["record",[this._Audio_UUID__,o,e]])},stop:function(){t.exec("Audio","RecorderExecMethod",["stop",[this._Audio_UUID__]])},pause:function(){t.exec("Audio","RecorderExecMethod",["pause",[this._Audio_UUID__]])},resume:function(){t.exec("Audio","RecorderExecMethod",["resume",[this._Audio_UUID__]])}};return n.IOS==n.platform&&(e.supportedFormats=["wav","aac","amr","mp3"]),e},createPlayer:function(e){var i={_Player_Param:e,_Audio_Player_UUID_:n.UUID("Player"),play:function(e,n){var i=t.callbackId(e,n);t.exec("Audio","AudioExecMethod",["play",[this._Audio_Player_UUID_,i]])},pause:function(){t.exec("Audio","AudioExecMethod",["pause",[this._Audio_Player_UUID_]])},resume:function(){t.exec("Audio","AudioExecMethod",["resume",[this._Audio_Player_UUID_]])},stop:function(){t.exec("Audio","AudioExecMethod",["stop",[this._Audio_Player_UUID_]])},seekTo:function(e){t.exec("Audio","AudioExecMethod",["seekTo",[this._Audio_Player_UUID_,e]])},getDuration:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getDuration",[this._Audio_Player_UUID_]])},getPosition:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getPosition",[this._Audio_Player_UUID_]])},setRoute:function(e){t.exec("Audio","AudioExecMethod",["setRoute",[this._Audio_Player_UUID_,e]])},setSessionCategory:function(e){n.IOS==n.platform&&t.exec("Audio","AudioExecMethod",["setSessionCategory",[this._Audio_Player_UUID_,e]])},isPaused:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getPaused",[this._Audio_Player_UUID_]])},getBuffered:function(){return t.execSync2("Audio","AudioSyncExecMethod",["getBuffered",[this._Audio_Player_UUID_]])},getStyles:function(e){return t.execSync2("Audio","AudioSyncExecMethod",["getStyles",[this._Audio_Player_UUID_,e]])},setStyles:function(e){t.exec("Audio","AudioExecMethod",["setStyles",[this._Audio_Player_UUID_,e]])},addEventListener:function(e,n){var i=t.callbackId(n);t.exec("Audio","AudioExecMethod",["addEventListener",[this._Audio_Player_UUID_,e,i]])},removeEventListener:function(e){t.exec("Audio","AudioExecMethod",["removeEventListener",[this._Audio_Player_UUID_,e]])},close:function(){t.exec("Audio","AudioExecMethod",["close",[this._Audio_Player_UUID_]])}},o={};return"string"==typeof i._Player_Param?o.src=i._Player_Param:o=i._Player_Param,t.execSync("Audio","AudioSyncExecMethod",["CreatePlayer",[i._Audio_Player_UUID_,o]]),i},ROUTE_SPEAKER:0,ROUTE_EARPIECE:1}}(window.plus),function(e){function t(e,t,n,i,a){var c=this;c.IDENTITY=o,c.onmarked=null,c.onerror=null,c.isClose=!1,c.__uuid__=r.UUID("bc"),c.callbackId=null;var u=null;this.id=void 0!=i?i:c.__uuid__,this.callbackId=s.callbackId(function(e){"function"==typeof c.onmarked&&c.onmarked(e.type,e.message,e.file)},function(e){"function"==typeof c.onerror&&c.onerror(e)}),div=document.getElementById(e),null!=div&&void 0!=div&&(div.addEventListener("resize",function(){var e=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];s.exec(o,"resize",[e])},!1),u=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight]);var l=!0;void 0==a||null==a||a||(l=!1),l&&s.exec(o,"Barcode",[this.__uuid__,this.callbackId,this.id,u,t,n])}function n(t,n,i){var o=new e.barcode.Barcode(null,n,i,t,!0);return a[o.__uuid__]=o,a[o.__uuid__]}function i(t){if(t&&"string"==typeof t){var n=s.execSync(o,"getBarcodeById",[t]);if(null!=n&&null!=n.uuid){if(a[n.uuid])return a[n.uuid];if(null!=n&&void 0!=n){var i=new e.barcode.Barcode(null,n.filters,n.options,t,!1);return i.__uuid__=n.uuid,s.exec(o,"addCallBack",[i.__uuid__,i.callbackId]),a[i.__uuid__]=i,i}return null}}}var e=e,o="barcode",r=e.tools,s=e.bridge,a={},c=t.prototype;c.setStyle=function(e){this.isClose||s.exec(o,"setStyle",[this.__uuid__,e])},c.start=function(e){this.isClose||s.exec(o,"start",[this.__uuid__,e])},c.setFlash=function(e){this.isClose||s.exec(o,"setFlash",[this.__uuid__,e])},c.cancel=function(){this.isClose||s.exec(o,"cancel",[this.__uuid__])},c.close=function(){this.isClose||(s.exec(o,"close",[this.__uuid__]),this.isClose=!0)};var u={Barcode:t,create:n,getBarcodeById:i,scan:function(e,t,n,i){var r="function"!=typeof t?null:function(e){t(e.type,e.message,e.file)},a="function"!=typeof n?null:function(e){n(e)},c=s.callbackId(r,a);s.exec(o,"scan",[c,e,i])}};u.QR=0,u.EAN13=1,u.EAN8=2,u.AZTEC=3,u.DATAMATRIX=4,u.UPCA=5,u.UPCE=6,u.CODABAR=7,u.CODE39=8,u.CODE93=9,u.CODE128=10,u.ITF=11,u.MAXICODE=12,u.PDF417=13,u.RSS14=14,u.RSSEXPANDED=15,e.barcode=u}(window.plus),function(e){var e=e,t=e.bridge,n="Cache";e.cache={clear:function(e){var i=t.callbackId(function(t){e&&e()},null);window.localStorage.clear(),window.sessionStorage.clear(),t.exec(n,"clear",[i])},calculate:function(e){var i=t.callbackId(function(t){e&&e(t)},null);t.exec(n,"calculate",[i])},setMaxSize:function(e){t.exec(n,"setMaxSize",[e])}}}(window.plus),function(e){function t(){this.index=1,this.__busy__=!1,this.supportedImageResolutions=[],this.supportedVideoResolutions=[],this.supportedImageFormats=[],this.supportedVideoFormats=[]}var n,e=e,i=e.bridge,o=t.prototype;o.captureImage=function(e,t,n){var o=this;if(!o.__busy__){var r="function"!=typeof e?null:function(t){o.__busy__=!1,e(t)},s="function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},a=i.callbackId(r,s);n||(n={}),n.index||(n.index=this.index),i.exec("Camera","captureImage",[a,n])}},o.startVideoCapture=function(e,t,n){var o=this;if(!o.__busy__){var r="function"!=typeof e?null:function(t){o.__busy__=!1,e(t)},s="function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},a=i.callbackId(r,s);n||(n={}),n.index||(n.index=this.index),i.exec("Camera","startVideoCapture",[a,n])}},o.stopVideoCapture=function(){i.exec("Camera","stopVideoCapture",[])};var r={getCamera:function(e){if(n)return n;n=new t,n.index=e;var o=i.execSync("Camera","getCamera",[n.__UUID__,e]);return o?(n.supportedImageFormats=o.supportedImageFormats,n.supportedVideoFormats=o.supportedVideoFormats,n.supportedImageResolutions=o.supportedImageResolutions,n.supportedVideoResolutions=o.supportedVideoResolutions):(n.supportedImageFormats=["png","jpg"],n.supportedImageResolutions=["640*480","1280*720","960*540","high","medium","low"],n.supportedVideoFormats=["mp4"],n.supportedVideoResolutions=["640*480","1280*720","960*540"]),n}};e.camera=r}(window.plus),plus.__updateStartArgs=function(e){e.debug?__adsfsdaf99dsafsd090dsfsd__():(plus.console={},plus.console.log=function(){},plus.console.info=function(){},plus.console.error=function(){},plus.console.warn=function(){},plus.console.assert=function(){},plus.console.clear=function(){},plus.console.time=function(){},plus.console.timeEnd=function(){}),plus.runtime&&(plus.runtime.isRecovery=e.isRecovery)},plus.__updateStartArgs(plus.tools),function(e){function t(e,t,n,i,o,r,s,a,c,u,l,_,f,d,h){this.id=e||null,this.rawId=h||null,this.target=0,this.displayName=t||null,this.name=n||null,this.nickname=i||null,this.phoneNumbers=o||null,this.emails=r||null,this.addresses=s||null,this.ims=a||null,this.organizations=c||null,this.birthday=u||null,this.note=l||null,this.photos=_||null,this.categories=f||null,this.urls=d||null}function n(e,t){function n(e,t){if(e&&t)for(var n=e.length,i=0;i0&&(t.maximumAge=e.maximumAge),void 0!==e.enableHighAccuracy&&(t.enableHighAccuracy=e.enableHighAccuracy),void 0===e.timeout||isNaN(e.timeout)||(e.timeout<0?t.timeout=0:t.timeout=e.timeout),e.coordsType&&(t.coordsType=e.coordsType),e.provider&&(t.provider=e.provider),void 0!==e.geocode&&(t.geocode=e.geocode)),t}function r(e,t){var n=setTimeout(function(){s(n),n=null,e(new i(i.TIMEOUT,"Position retrieval timed out."))},t);return n}function s(e){!0!==e&&clearTimeout(e)}function a(e,t,a,l){a=o(a);var _={timer:null},d=function(t){if(s(_.timer),_.timer){var i=new n({latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,accuracy:t.accuracy,heading:t.heading,velocity:t.velocity,coordsType:t.coordsType,address:t.address,addresses:t.addresses,altitudeAccuracy:t.altitudeAccuracy},void 0===t.timestamp?(new Date).getTime():t.timestamp instanceof Date?t.timestamp.getTime():t.timestamp);f.lastPosition=i,e(i)}},h=function(e){s(_.timer),_.timer=null;var n=new i(e.code,e.message);t&&t(n)};if(f.lastPosition&&a.maximumAge&&(new Date).getTime()-f.lastPosition.timestamp<=a.maximumAge)e(f.lastPosition);else if(0===a.timeout)h(new i(i.TIMEOUT,"timeout value in PositionOptions set to 0 and no cached Position object available, or cached Position object's age exceeds provided PositionOptions' maximumAge parameter."));else if(a.timeout!==1/0?_.timer=r(h,a.timeout):_.timer=!0,l){var p=u.callbackId(d,h);u.exec(c,"getCurrentPosition",[p,a.enableHighAccuracy,a.maximumAge,a.coordsType,a.provider,a.geocode,a.timeout],{cbid:p,l:location.href})}return _}var e=e,c="Geolocation",u=e.bridge,l=e.tools,_={};i.PERMISSION_DENIED=1,i.POSITION_UNAVAILABLE=2,i.TIMEOUT=3,i.UNKNOWN_ERROR=4;var f=e.geolocation={lastPosition:null,getCurrentPosition:function(e,t,n){a(e,t,n,!0)},watchPosition:function(e,t,d){d=o(d);var h=l.UUID("timer");_[h]=a(e,t,d,!1);var p=function(e){s(_[h].timer);var n=new i(e.code,e.message);t&&t(n)},v=function(t){s(_[h].timer),d.timeout!==1/0&&(_[h].timer=r(p,d.timeout));var i=new n({latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,accuracy:t.accuracy,heading:t.heading,velocity:t.velocity,coordsType:t.coordsType,address:t.address,addresses:t.addresses,altitudeAccuracy:t.altitudeAccuracy},void 0===t.timestamp?(new Date).getTime():t.timestamp instanceof Date?t.timestamp.getTime():t.timestamp);f.lastPosition=i,e(i)},y=u.callbackId(v,p);return u.exec(c,"watchPosition",[y,h,d.enableHighAccuracy,d.coordsType,d.provider,d.geocode,d.timeout,d.maximumAge],{cbid:y,l:location.href}),h},clearWatch:function(e){e&&void 0!==_[e]&&(s(_[e].timer),_[e].timer=!1,u.exec(c,"clearWatch",[e]))}}}(window.plus),function(e){function t(e){this.code=e.code||null,this.message=e.message||""}function n(e){var n="未知错误";switch(e){case t.NOT_FOUND_ERR:n="文件没有发现";break;case t.SECURITY_ERR:n="没有获得授权";break;case t.ABORT_ERR:n="取消";break;case t.NOT_READABLE_ERR:n="不允许读";break;case t.ENCODING_ERR:n="编码错误";break;case t.NO_MODIFICATION_ALLOWED_ERR:n="不允许修改";break;case t.INVALID_STATE_ERR:n="无效的状态";break;case t.SYNTAX_ERR:n="语法错误";break;case t.INVALID_MODIFICATION_ERR:n="无效的修改";break;case t.QUOTA_EXCEEDED_ERR:n="执行出错";break;case t.TYPE_MISMATCH_ERR:n="类型不匹配";break;case t.PATH_EXISTS_ERR:n="路径存在"}return{code:e,message:n}}function i(e,t){t=t||{},this.type=e,this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.lengthComputable=!1,this.loaded=t.loaded||0,this.total=t.total||0,this.target=t.target||null}function o(e,t,n,i,o){this.size=o||0,this.type=n||null,this.name=e||"",this.lastModifiedDate=new Date(i)||null,this.fullPath=t||null}function r(e){this.modificationTime=void 0!==e?new Date(e):null,this.size=0,this.directoryCount=0,this.fileCount=0}function s(e,t,n,i,o,r){this.isFile=void 0!==e&&e,this.isDirectory=void 0!==t&&t,this.name=n||"",this.fullPath=i||"",this.fileSystem=o||null,this.__PURL__=r||"",this.__remoteURL__=r?"http://localhost:13131/"+r:""}function a(e,t,n,i){T.constructor.apply(this,[!0,!1,e,t,n,i])}function c(e,t,n,i){T.constructor.apply(this,[!1,!0,e,t,n,i])}function u(e,t){this.path=e||null,this.__fileSystem__=t||null}function l(){this.fileName="",this.readyState=0,this.result=null,this.error=null,this.onloadstart=null,this.onprogress=null,this.onload=null,this.onabort=null,this.onerror=null,this.onloadend=null}function _(e){this.fileName="",this.readyState=0,this.result=null,this.length=0,e&&(this.fileName=e.fullPath||e,this.length=e.size||0),this.position=0,this.error=null,this.onwritestart=null,this.onprogress=null,this.onwrite=null,this.onabort=null,this.onsuccess=null,this.onerror=null,this.onwriteend=null}function f(e,t){this.name=e||null,this.root=null,t&&(this.root=new c(t.name,t.fullPath,this,t.remoteURL))}function d(e,i,o){var r=function(e){"function"==typeof o&&o(new t(e))};if(e<1||e>4)r(n(t.SYNTAX_ERR));else{var s=S[e],a=function(o){o?"function"==typeof i&&(s||(s=new f(o.name,o.root),S[e]=s),i(s)):r(n(t.NOT_FOUND_ERR))};s?window.setTimeout(a(s),0):D.exec(a,r,"requestFileSystem",[e])}}function h(e,i,o){var r=function(e){o&&o(new t(e))};if("string"!=typeof e)return void setTimeout(function(){r(n(t.ENCODING_ERR))},0);var s=function(e){var o;if(e){if(i){var s=S[e.type];s||(s=new f(e.fsName,e.fsRoot),S[e.type]=s),o=e.isDirectory?new c(e.name,e.fullPath,s,e.remoteURL):new a(e.name,e.fullPath,s,e.remoteURL),i(o)}}else r(n(t.NOT_FOUND_ERR))};D.exec(s,r,"resolveLocalFileSystemURL",[e])}function p(e){return I.execSync(D.NATIVEF,"convertLocalFileSystemURL",[e])}function v(e){return I.execSync(D.NATIVEF,"convertAbsoluteFileSystem",[e])}function y(e){var t="function"!=typeof e.complete?function(){}:e.complete,n="function"!=typeof e.success?t:function(n){e.success(n),t(n)},i="function"!=typeof e.fail?t:function(n){e.fail(n),t(n)};callbackID=I.callbackId(n,i),x.ANDROID==x.platform?I.execSync(D.NATIVEF,"getImageInfo",[callbackID,e.src]):I.exec(D.NATIVEF,"getImageInfo",[callbackID,e.src])}function g(e,t,n){ var i="function"!=typeof e.complete?function(){}:e.complete,o="function"!=typeof e.success?i:function(t){e.success(t),i(t)},r="function"!=typeof e.fail?i:function(t){e.fail(t),i(t)};callbackID=I.callbackId(o,r),I.exec(D.NATIVEF,t,[callbackID,n()])}function w(e){g(e,"getFileInfo",function(){return{filePath:e.filePath,digestAlgorithm:e.digestAlgorithm}})}function m(e){g(e,"getAudioInfo",function(){return{filePath:e.filePath}})}function b(e){g(e,"getVideoInfo",function(){return{filePath:e.filePath}})}var e=e,I=e.bridge,x=e.tools,S=[],D={NATIVEF:"File",exec:function(e,t,n,i){var o=I.callbackId(e,t);I.exec(D.NATIVEF,n,[o,i])}};t.NOT_FOUND_ERR=1,t.SECURITY_ERR=2,t.ABORT_ERR=3,t.NOT_READABLE_ERR=4,t.ENCODING_ERR=5,t.NO_MODIFICATION_ALLOWED_ERR=6,t.INVALID_STATE_ERR=7,t.SYNTAX_ERR=8,t.INVALID_MODIFICATION_ERR=9,t.QUOTA_EXCEEDED_ERR=10,t.TYPE_MISMATCH_ERR=11,t.PATH_EXISTS_ERR=12;var k=o.prototype;k.slice=function(e,t,n){var i=this.size>0?this.size-1:0,r=0,s=i;if(arguments.length&&(r=e<0?Math.max(i+e,0):Math.min(i,e)),arguments.length>=2&&(s=t<0?Math.max(i+t,0):Math.min(t,i)),sthis.length?this.position=this.length:this.position=e)},R.truncate=function(e){if(this.readyState===_.WRITING)throw new t(t.INVALID_STATE_ERR);this.readyState=_.WRITING;var n=this;"function"==typeof n.onwritestart&&n.onwritestart(new i("writestart",{target:this})),D.exec(function(e){n.readyState!==_.DONE&&(n.readyState=_.DONE,n.length=e,n.position=Math.min(n.position,e),"function"==typeof n.onwrite&&n.onwrite(new i("write",{target:n})),"function"==typeof n.onwriteend&&n.onwriteend(new i("writeend",{target:n})))},function(e){n.readyState!==_.DONE&&(n.readyState=_.DONE,n.error=new t(e),"function"==typeof n.onerror&&n.onerror(new i("error",{target:n})),"function"==typeof n.onwriteend&&n.onwriteend(new i("writeend",{target:n})))},"truncate",[this.fileName,e,this.position])},e.io={FileSystem:f,DirectoryEntry:c,DirectoryReader:u,FileReader:l,FileWriter:_,requestFileSystem:d,resolveLocalFileSystemURL:h,convertLocalFileSystemURL:p,convertAbsoluteFileSystem:v,getImageInfo:y,getFileInfo:w,getAudioInfo:m,getVideoInfo:b,PRIVATE_WWW:1,PRIVATE_DOC:2,PUBLIC_DOCUMENTS:3,PUBLIC_DOWNLOADS:4}}(window.plus),function(e){function t(e,t){this.type=e,this.value=t}function n(){this.__TYPE__="JSBObject",this.__UUID__=a.UUID("JSBaseObject")}function i(t,n){t=r(t);var i=this;this.__UUID__=a.UUID("JSImplements"),this.callback=n,this.callbackId=s.callbackId(function(t){for(var n=t.arguments,o=[],r=0;r0)for(var _=0;_=0;c--)i=c==a-1?u.importClass(o[c],null):u.importClass(o[c],o[c+1]);return t&&(t.__proto__=i.prototype),i}return null},o.prototype.invoke=function(t,n){for(var i=null,o=[],r=2;r=1&&(t.zoom=e.zoom),!e||"MAPTYPE_NORMAL"!=e.type&&"MAPTYPE_SATELLITE"!=e.type||(t.type=e.type),e&&"boolean"==typeof e.traffic&&(t.traffic=e.traffic),e&&"boolean"==typeof e.zoomControls&&(t.zoomControls=e.zoomControls),e&&"string"==typeof e.position&&(t.position=e.position),e&&(t.top=e.top,t.left=e.left,t.width=e.width,t.height=e.height),t}function s(i,o,s,a,l){function _(e,t){if("click"==t.callbackType)f.onclick&&f.onclick(t.payload);else if("change"==t.callbackType&&(f&&(f.zoom=t.zoom),f.onstatuschanged)){var n={};n.target=f,n.zoom=t.zoom,n.center=new u(t.center.long,t.center.lat),t.northease&&(n.bounds=new c(new u(t.northease.long,t.northease.lat),new u(t.southwest.long,t.southwest.lat))),f.onstatuschanged(n)}}o=r(o);var f=this;if(this.IDENTITY=D,this._UUID_=l||S.UUID("map"),this._map_id_=s,this._ui_div_id_=i,this.__showUserLocationVisable__=!1,this.center=o.center?o.center:new e.maps.Point(116.39716,39.91669),this.zoom=o.zoom,this.userLocation=null,this.mapType=o.type,this.zoomControlsVisable=o.zoomControls,this.trafficVisable=o.traffic,this.visable=!0,this.onclick=function(e){},this.onstatuschanged=function(){},R.pushCallback(this._UUID_,_),!a){var d=document.getElementById(this._ui_div_id_),h=[o];d&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight];n(f._UUID_,"resize",e)},200)},!1):d.addEventListener("resize",function(){var e=[d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight];n(f._UUID_,"resize",e)},!1),h=[o,d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight]),A[this._UUID_]=t(this._UUID_,"mapview",h,this._map_id_)}}function a(e){this._UUID_=S.UUID("Bubble"),this.label="string"==typeof e?e:"",this.icon=null,this.marker=null,this.__contentImage=null,this.__contentImageAsDataURL=null,this.onclick=function(e){}}function c(e,t,n,i){"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i?(this.northease=new u(e,t),this.northeast=new u(e,t),this.southwest=new u(n,i)):e instanceof u&&t instanceof u&&(this.northease=e,this.northeast=e,this.southwest=t)}function u(e,t){this.longitude=e,this.latitude=t}function l(){this._UUID_=null,this.visable=!0}function _(e){function n(e,t){"bubbleclick"==t.type?i.bubble&&i.bubble.onclick&&i.bubble.onclick(i.bubble):"markerclick"==t.type?i.onclick&&i.onclick(i):"onDrag"==t.type&&(i.point=t.pt,i.onDrag(i))}var i=this;this._UUID_=S.UUID("marker"),this.point=e,this.icon="",this.caption="",this.bubble=null,this.canDraggable=!1,this.onclick=function(e){},this.onDrag=function(e){},R.pushCallback(this._UUID_,n),t(this._UUID_,"marker",[e])}function f(){this.strokeColor="#FFFFFF",this.strokeOpacity=1,this.fillColor="#FFFFFF",this.fillOpacity=1,this.lineWidth=5,this.visable=!0}function d(e,n){this.center=e,this.radius=n,this._UUID_=S.UUID("circle"),t(this._UUID_,"circle",[e,n])}function h(e){this.path=e,this._UUID_=S.UUID("polygon"),t(this._UUID_,"polygon",[e])}function p(e){this.path=e,this._UUID_=S.UUID("polyline"),t(this._UUID_,"polyline",[e])}function v(e,n,i){this._UUID_=S.UUID("route"),this.startPoint=e,this.endPoint=n,this.pointCount=0,this.pointList=[],this.distance=0,this.routeTip="",void 0===i&&t(this._UUID_,"route",[e,n,i])}function y(e){this.point=e,this.address="",this.city="",this.name="",this.phone="",this.postcode=""}function g(){this.__state__=0,this.__type__=1,this.startPosition=null,this.endPosition=null,this.routeNumber=0,this.routeList=[]}function w(){this.__state__=0,this.__type__=0,this.totalNumber=0,this.currentNumber=0,this.pageNumber=0,this.pageIndex=0,this.poiList=[]}function m(e){function n(e,t){0==t.__type__?i.onPoiSearchComplete&&i.onPoiSearchComplete(t.__state__,t):1==t.__type__&&i.onRouteSearchComplete&&i.onRouteSearchComplete(t.__state__,t)}var i=this;this._UUID_=S.UUID("search"),this.pageCapacity=10,this.map=e,this.onPoiSearchComplete=function(e,t){},this.onRouteSearchComplete=function(e,t){},R.pushCallback(this._UUID_,n),t(this._UUID_,"search",[null])}function b(e,t,n,i){return new s(void 0,t,e,n,i)}function I(e){var t;if(t=S.ANDROID==S.platform?x.execSync(D,"getMapById",[S.stringify([e])],null):x.execSync(D,"getMapById",[e],null)){var n=A[t.uuid];return n||(n=b(e,t.options,"no",t.uuid),A[t.uuid]=n),n}return null}var e=e,x=e.bridge,S=e.tools,D="Maps",k="createObject",T="updateObject",U="updateObjectSYNC",E="execMethod",R={callback:[],pushCallback:function(e,t,n){this.callback[e]={fun:t,nokeep:n}},execCallback:function(e,t){this.callback[e]&&(this.callback[e].fun&&this.callback[e].fun(e,t),this.callback[e].nokeep&&delete this.callback[e])}},A={},C=s.prototype;C.close=function(){o("map","close",this._UUID_),A[this._UUID_]&&delete A[this._UUID_]},C.centerAndZoom=function(e,t){if(e instanceof u&&"number"==typeof t){this.center=e,this.zoom=t;var i=[e,t];n(this._UUID_,"centerAndZoom",i)}},C.setCenter=function(e){if(e instanceof u){this.center=e;var t=[e];n(this._UUID_,"setCenter",t)}},C.getCenter=function(){return this.center},C.setZoom=function(e){"number"==typeof e&&(this.zoom=e,n(this._UUID_,"setZoom",[e]))},C.resize=function(){var e=document.getElementById(this._ui_div_id_),t=[null];e&&(t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),n(this._UUID_,"resize",t)},C.getZoom=function(){return this.zoom},C.setMapType=function(e){"MAPTYPE_NORMAL"!=e&&"MAPTYPE_SATELLITE"!=e||(this.mapType=e,n(this._UUID_,"setMapType",[e]))},C.getMapType=function(){return this.mapType},C.showUserLocation=function(e){if("boolean"==typeof e&&this.__showUserLocationVisable__!=e){this.__showUserLocationVisable__=e;var t=[e];n(this._UUID_,"showUserLocation",t)}},C.isShowUserLocation=function(){return this.__showUserLocationVisable__},C.getUserLocation=function(e){function t(t,n){e&&e(n.state,n.point)}if("function"==typeof e){var i=S.UUID("callback");R.pushCallback(i,t,!0);var o=[i,window.__HtMl_Id__];return n(this._UUID_,"getUserLocation",o),!0}return!1},C.getCurrentCenter=function(e){function t(t,n){e&&e(n.state,n.point)}if("function"==typeof e){var i=x.callbackId(t);R.pushCallback(i,t,!0);var o=[i,window.__HtMl_Id__];return n(this._UUID_,"getCurrentCenter",o),!0}return!1},C.setTraffic=function(e){if("boolean"==typeof e&&e!=this.trafficVisable){this.trafficVisable=e;var t=[e];n(this._UUID_,"setTraffic",t)}},C.isTraffic=function(){return this.trafficVisable},C.showZoomControls=function(e){if("boolean"==typeof e&&e!=this.zoomControlsVisable){this.zoomControlsVisable=e;var t=[e];n(this._UUID_,"showZoomControls",t)}},C.isShowZoomControls=function(){return this.zoomControlsVisable},C.getBounds=function(){var e=i(this._UUID_,"getBounds",[]);return new c(new u(e.northease.longitude,e.northease.latitude),new u(e.southwest.longitude,e.southwest.latitude))},C.reset=function(){n(this._UUID_,"reset",[null])},C.show=function(){if(1!=this.visable){this.visable=!0;var e=document.getElementById(this._ui_div_id_),t=[null];e&&(e.style.display="",t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),n(this._UUID_,"show",t)}},C.hide=function(){if(0!=this.visable){this.visable=!1;document.getElementById(this._ui_div_id_)&&(document.getElementById(this._ui_div_id_).style.display="none"),n(this._UUID_,"hide",[null])}},C.addOverlay=function(e){if(e instanceof d||e instanceof h||e instanceof p||e instanceof v||e instanceof _){var t=[e._UUID_];return n(this._UUID_,"addOverlay",t),!0}return!1},C.removeOverlay=function(e){if(e instanceof d||e instanceof h||e instanceof p||e instanceof v||e instanceof _){var t=[e._UUID_];return n(this._UUID_,"removeOverlay",t),!0}return!1},C.clearOverlays=function(){var e=[null];n(this._UUID_,"clearOverlays",e)},s.calculateDistance=function(e,t,n,i){var o=x.callbackId(function(e){"function"==typeof n&&n({distance:e})},function(e){"function"==typeof i&&i(e)});x.exec(D,"calculateDistance",[e,t,o])},s.calculateArea=function(e,t,n){var i=x.callbackId(function(e){"function"==typeof t&&t({area:e})},function(e){"function"==typeof n&&n(e)});x.exec(D,"calculateArea",[e,i])},s.convertCoordinates=function(e,t,n,i){var o=x.callbackId(function(e){if("function"==typeof n){var t={};t.coord=new u(e.long,e.lat),t.coordType=e.type,n(t)}},function(e){"function"==typeof i&&i(e)});x.exec(D,"convertCoordinates",[e,t,o])},s.geocode=function(e,t,n,i){var o=x.callbackId(function(e){if("function"==typeof n){var t={};t.coord=new u(e.long,e.lat),t.address=e.addr,t.coordType=e.type,n(t)}},function(e){"function"==typeof i&&i(e)});x.exec(D,"geocode",[e,t,o])},s.reverseGeocode=function(e,t,n,i){var o=x.callbackId(function(e){if("function"==typeof n){var t={};t.coord=new u(e.long,e.lat),t.address=e.addr,t.coordType=e.type,n(t)}},function(e){"function"==typeof i&&i(e)});x.exec(D,"reverseGeocode",[e,t,o])};var N=a.prototype;N.setIcon=function(e){"string"==typeof e&&(this.icon=e,this.marker&&n(this.marker._UUID_,"setBubbleIcon",[this.icon]))},N.loadImage=function(e){this.__contentImage=e,this.__contentImageAsDataURL=null,this.marker&&n(this.marker._UUID_,"loadImage",[e])},N.loadImageDataURL=function(e){this.__contentImage=null,this.__contentImageAsDataURL=e,this.marker&&n(this.marker._UUID_,"loadImageDataURL",[e])},N.getLabel=function(){return this.label},N.setLabel=function(e){"string"==typeof e&&(this.label=e,this.marker&&n(this.marker._UUID_,"setBubbleLabel",[this.label]))},N.belongMarker=function(){return this.marker},c.prototype.setNorthEase=function(e){e instanceof u&&(this.northease=e,this.northeast=e)},c.prototype.setNorthEast=function(e){e instanceof u&&(this.northeast=e,this.northease=e)},c.prototype.getNorthEase=function(){return this.northease},c.prototype.getNorthEast=function(){return this.northeast},c.prototype.setSouthWest=function(e){e instanceof u&&(this.southwest=e)},c.prototype.getSouthWest=function(){return this.southwest},c.prototype.contains=function(e){return e instanceof u&&(e.longitude<=this.northease.longitude&&e.longitude>=this.southwest.longitude&&e.latitude<=this.northease.latitude&&e.latitude>=this.southwest.latitude)},c.prototype.equals=function(e){return e instanceof c&&(this.northease.equals(e.northease)&&this.southwest.equals(e.southwest))},c.prototype.getCenter=function(){var e=(this.northease.longitude-this.southwest.longitude)/2,t=(this.northease.latitude-this.southwest.latitude)/2;return new u(e+this.southwest.longitude,t+this.southwest.latitude)};var O=u.prototype;O.setLng=function(e){this.longitude=e},O.getLng=function(){return this.longitude},O.setLat=function(e){this.latitude=e},O.getLat=function(){return this.latitude},O.equals=function(e){return this.longitude==e.longitude&&this.latitude==e.latitude};var P=l.prototype;P.show=function(){1!=this.visable&&(this.visable=!0,n(this._UUID_,"show",["true"]))},P.hide=function(){0!=this.visable&&(this.visable=!1,n(this._UUID_,"hide",["false"]))},P.isVisible=function(){return this.visable},P.bringToTop=function(){n(this._UUID_,"bringToTop",[])},_.prototype=new l;var L=_.prototype;L.constructor=_,L.setPoint=function(e){if(e instanceof u){this.point=e;var t=[e];n(this._UUID_,"setPoint",t)}},L.getPoint=function(){return this.point},L.setIcon=function(e){"string"==typeof e&&(this.icon=e,n(this._UUID_,"setIcon",[e]))},L.setLabel=function(e){"string"==typeof e&&(this.caption=e,n(this._UUID_,"setLabel",[e]))},L.getLabel=function(){return this.caption},L.setBubble=function(e,t){if(e instanceof a){var i=e.marker;if(i&&i!=this){i.bubble=null;var o=[null,null,null,null,!1];n(i._UUID_,"setBubble",o)}e.marker=this,this.bubble=e;var o=[this.bubble.label,this.bubble.icon,this.bubble.__contentImageAsDataURL,this.bubble.__contentImage,t];n(this._UUID_,"setBubble",o)}else null==e&&n(this._UUID_,"setBubble",[null,null,null,null,t])},L.hideBubble=function(){this.bubble&&n(this._UUID_,"hideBubble",[])},L.getBubble=function(){return this.bubble},L.setDraggable=function(e){e!=this.canDraggable&&(this.canDraggable=!this.canDraggable,n(this._UUID_,"setDraggable",[this.canDraggable]))},L.isDraggable=function(){return this.canDraggable},L.setIcons=function(e,t){n(this._UUID_,"setIcons",[e,t])},f.prototype=new l;var B=f.prototype;B.constructor=f,B.setStrokeColor=function(e){"string"==typeof e&&(this.strokeColor=e,n(this._UUID_,"setStrokeColor",[e]))},B.getStrokeColor=function(){return this.strokeColor},B.setStrokeOpacity=function(e){"number"==typeof e&&(e<0?e=0:e>1&&(e=1),this.strokeOpacity=e,n(this._UUID_,"setStrokeOpacity",[e]))},B.getStrokeOpacity=function(){return this.strokeOpacity},B.setFillColor=function(e){"string"==typeof e&&(this.fillColor=e,n(this._UUID_,"setFillColor",[e]))},B.getFillColor=function(){return this.fillColor},B.setFillOpacity=function(e){"number"==typeof e&&(e<0?e=0:e>1&&(e=1),this.fillOpacity=e,n(this._UUID_,"setFillOpacity",[e]))},B.getFillOpacity=function(){return this.fillOpacity}, B.setLineWidth=function(e){"number"==typeof e&&(e<0&&(e=0),this.lineWidth=e,n(this._UUID_,"setLineWidth",[e]))},B.getLineWidth=function(){return this.lineWidth},d.prototype=new f;var V=d.prototype;V.constructor=d,V.setCenter=function(e){e instanceof u&&(this.center=e,n(this._UUID_,"setCenter",[e]))},V.getCenter=function(){return this.center},V.setRadius=function(e){"number"==typeof e&&e>=0&&(this.radius=e,n(this._UUID_,"setRadius",[e]))},V.getRadius=function(){return this.radius},h.prototype=new f;var M=h.prototype;M.constructor=h,M.setPath=function(e){this.path=e,n(this._UUID_,"setPath",[e])},M.getPath=function(){return this.path},p.prototype=new f;var F=p.prototype;F.constructor=p,F.setPath=function(e){this.path=e,n(this._UUID_,"setPath",[e])},F.getPath=function(){return this.path},v.prototype=new l,v.prototype.constructor=v,g.prototype.getRoute=function(e){return e>=0&&e=0&&e-1&&(f.splice(t,1),0===f.length&&o())}var e=e,a=e.bridge,c=e.tools,u="Orientation",l=!1,_={},f=[],d=null,h=function(e,t,n,i,o,r){this.alpha=e,this.beta=t,this.gamma=n,this.magneticHeading=i,this.trueHeading=o,this.headingAccuracy=r},p=void 0,v=void 0,y=void 0,g={getCurrentOrientation:function(e,t){var n;n=r(function(t){s(n),e(t)},function(e){s(n),t&&t(e)}),f.push(n),l||i()},watchOrientation:function(e,t,n){var o=n&&n.frequency&&("number"==typeof n.frequency||n.frequency instanceof Number)?n.frequency:500,a=c.UUID("watch"),u=r(function(){},function(e){s(u),t&&t(e)});return f.push(u),_[a]={timer:window.setInterval(function(){d&&e(d)},o),listeners:u},l?d&&e(d):i(),a},clearWatch:function(e){e&&_[e]&&(window.clearInterval(_[e].timer),s(_[e].listeners),delete _[e])}};e.orientation=g}(window.plus),function(e){function t(){this.id="",this.description="",this.serviceReady=!0,this.installService=function(){i.exec(n,"installService",[this.id])},this.appStoreReceipt=function(){return i.execSync(n,"appStoreReceipt",[this.id])},this.restoreComplateRequest=function(e,t,o){if("appleiap"!==this.id){o({errorcode:"-3"})}var r="function"!=typeof t?null:function(e){t(e)},s="function"!=typeof o?null:function(e){o(e)},a=i.callbackId(r,s);i.exec(n,"restoreComplateRequest",[this.id,a,e])},this.requestOrder=function(e,t,o){if("appleiap"!==this.id){return void o({errorcode:"-3"})}var r="function"!=typeof t?null:function(e){t(e)},s="function"!=typeof o?null:function(e){o(e)},a=i.callbackId(r,s);i.exec(n,"requestOrder",[this.id,a,e])}}var e=e,n="Payment",i=window.plus.bridge,o={Channel:t,getChannels:function(e,t){var r="function"!=typeof e?null:function(t){for(var n=[],i=t.length,r=0;r-1&&(l.splice(t,1),0===l.length&&n())}var e=e,r=e.bridge,s=e.tools,a="Proximity",c=!1,u={},l=[],_={getCurrentProximity:function(e,t){var n=r.callbackId(function(t){s.IOS==s.platform&&(t=0==t?0:1/0),e&&e(t)},function(e){t&&t(e)});r.exec(a,"getCurrentProximity",[n])},watchProximity:function(e,n){var r=s.UUID("watch"),a=i(function(t){s.IOS==s.platform&&(t=0==t?0:1/0),e&&e(t)},function(e){o(a),n&&n(e)});return l.push(a),u[r]={listeners:a},c||t(),r},clearWatch:function(e){e&&u[e]&&(o(u[e].listeners),delete u[e])}};e.proximity=_}(window.plus),function(){var e='
';"function"!=typeof Object.assign&&(Object.assign=function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i1){for(;n1?s.call(arguments,0):n,--a||c.resolveWith(c,t)}}(n),c.reject,function(e){return function(t){o[e]=arguments.length>1?s.call(arguments,0):t,c.notifyWith(u,o)}}(n)):--a;a||c.resolveWith(c,t)}else c!==e&&c.resolveWith(c,i?[e]:[]);return u};return l.when=_,l.Callbacks=u,l}(),i=function(){var e=window,t=e.document,n={NONE:0,NOOP:1,UP:2,RIGHT:3,DOWN:4,LEFT:5,LEFT_RIGHT:6},i={con:"",minDistance:4,onPullStart:function(){},onMove:function(){},onPullEnd:function(){}},o=function(e){"string"==typeof e.con&&(e.con=t.querySelector(e.con)),this.options=Object.assign({},i,e),this.hasTouch=!1,this.direction=n.NONE,this.distanceX=this.startY=this.startX=0,this.isPull=!1,this.initEvent()};return o.prototype={initEvent:function(){var e=this;this._touchStart=function(t){e.__start(t)},this._touchMove=function(t){e.__move(t)},this._touchEnd=function(t){e.__end(t)};var t=e.options.useCapture;this.options.con.addEventListener("touchstart",this._touchStart,t),this.options.con.addEventListener("touchmove",this._touchMove,t),this.options.con.addEventListener("touchend",this._touchEnd,t)},detachEvent:function(){var e=this.options.useCapture;this.options.con.removeEventListener("touchstart",this._touchStart,e),this.options.con.removeEventListener("touchmove",this._touchMove,e),this.options.con.removeEventListener("touchend",this._touchEnd,e)},__start:function(t){var i=t.touches;t=t.targetTouches,1===t.length&&1===i.length&&(this.startX=t[0].pageX,this.startY=t[0].pageY,this.direction=n.NONE,this.distanceX=0,this.hasTouch=!0,this.startScrollY=e.scrollY)},__move:function(e){if(this.hasTouch){if(this.direction===n.UP)return;var t=e.targetTouches[0];if(this.direction===n.NONE){this.distanceX=t.pageX-this.startX,this.distanceY=t.pageY-this.startY;var i=Math.abs(this.distanceY),o=Math.abs(this.distanceX);o+i>this.options.minDistance&&(this.direction=o>1.73*i?n.LEFT_RIGHT:i>1.73*o?this.distanceY<0?n.UP:n.DOWN:n.NOOP,this.startScrollY<10&&this.distanceY>0&&(this.direction=n.DOWN)),this.startScrollY<10&&this.direction===n.DOWN&&this.distanceY>this.options.minDistance&&(this.isPull=!0,this.options.onPullStart(e,this.distanceY))}this.isPull&&this.direction===n.DOWN&&(this.distanceY=t.pageY-this.startY,this.refreshY=parseInt(this.distanceY*this.options.pullRatio),this.options.onMove(e,this.distanceY))}},__end:function(e){!this.hasTouch||n.LEFT_RIGHT!==this.direction&&n.DOWN!==this.direction||(this.direction===n.LEFT_RIGHT&&(e.preventDefault(),e.stopPropagation(),this.options.onPullEnd(e,this.distanceX,n.LEFT_RIGHT)),this.direction===n.DOWN&&this.isPull&&(e.preventDefault(),e.stopPropagation(),this.options.onPullEnd(e,this.distanceY,n.DOWN))),this.hasTouch=!1,this.isPull=!1}},{init:function(e){return new o(e)},DIRECTION:n}}(),o=function(){var e=function(e,t,n,i,o,r,s,a,c){switch("string"==typeof t&&(t=parseFloat(t)), "string"==typeof n&&(n=parseFloat(n)),"string"==typeof i&&(i=parseFloat(i)),"string"==typeof o&&(o=parseFloat(o)),"string"==typeof r&&(r=parseFloat(r)),"string"==typeof s&&(s=parseFloat(s)),Math.PI,e.save(),a){case 0:var u=Math.sqrt((r-t)*(r-t)+(s-n)*(s-n));e.arcTo(i,o,t,n,.55*u),e.fill();break;case 1:c>.5&&(e.save(),e.beginPath(),e.moveTo(t,n),e.lineTo(i,o),e.lineTo(r,s),e.lineTo(t,n),e.fill());break;case 2:e.stroke();break;case 3:var l=(t+i+r)/3,_=(n+o+s)/3;e.quadraticCurveTo(l,_,t,n),e.fill();break;case 4:var f,d,h,p,u;if(r==t)u=s-n,f=(i+t)/2,h=(i+t)/2,d=o+u/5,p=o-u/5;else{u=Math.sqrt((r-t)*(r-t)+(s-n)*(s-n));var v=(t+r)/2,y=(n+s)/2,g=(v+i)/2,w=(y+o)/2,m=(s-n)/(r-t),b=u/(2*Math.sqrt(m*m+1))/5,I=m*b;f=g-b,d=w-I,h=g+b,p=w+I}e.bezierCurveTo(f,d,h,p,t,n),e.fill()}e.restore()},t=function(e,t,i,o,r,s,a,c,u,l,_,f,d,h){c=void 0!==c?c:3,u=void 0!==u?u:1,l=void 0!==l?l:Math.PI/8,_=void 0!==_?_:10,f=void 0!==f?f:1,e.save(),e.beginPath(),e.globalAlpha=1,e.restore(),e.lineWidth=f,e.beginPath(),e.arc(t,i,o,r,s,a),e.stroke();var p,v,y,g,w;1&u&&(p=Math.cos(r)*o+t,v=Math.sin(r)*o+i,y=Math.atan2(t-p,v-i),a?(g=p+10*Math.cos(y),w=v+10*Math.sin(y)):(g=p-10*Math.cos(y),w=v-10*Math.sin(y)),n(e,p,v,g,w,c,2,l,_,h)),2&u&&(p=Math.cos(s)*o+t,v=Math.sin(s)*o+i,y=Math.atan2(t-p,v-i),a?(g=p-10*Math.cos(y),w=v-10*Math.sin(y)):(g=p+10*Math.cos(y),w=v+10*Math.sin(y)),n(e,p-d*Math.sin(s),v+d*Math.cos(s),g-d*Math.sin(s),w+d*Math.cos(s),c,2,l,_,h)),e.restore()},n=function(t,n,i,o,r,s,a,c,u,l){"string"==typeof n&&(n=parseFloat(n)),"string"==typeof i&&(i=parseFloat(i)),"string"==typeof o&&(o=parseFloat(o)),"string"==typeof r&&(r=parseFloat(r)),s=void 0!==s?s:3,a=void 0!==a?a:1,c=void 0!==c?c:Math.PI/8,u=void 0!==u?u:10;var _,f,d,h,p="function"!=typeof s?e:s,v=Math.sqrt((o-n)*(o-n)+(r-i)*(r-i)),y=(v-u/3)/v;1&a?(_=Math.round(n+(o-n)*y),f=Math.round(i+(r-i)*y)):(_=o,f=r),2&a?(d=n+(o-n)*(1-y),h=i+(r-i)*(1-y)):(d=n,h=i),t.beginPath(),t.moveTo(d,h),t.lineTo(_,f),t.stroke();var g=Math.atan2(r-i,o-n),w=Math.abs(u/Math.cos(c));if(1&a){var m=g+Math.PI+c,b=o+Math.cos(m)*w,I=r+Math.sin(m)*w,x=g+Math.PI-c,S=o+Math.cos(x)*w,D=r+Math.sin(x)*w;p(t,b,I,o,r,S,D,s,l)}if(2&a){var m=g+c,b=n+Math.cos(m)*w,I=i+Math.sin(m)*w,x=g-c,S=n+Math.cos(x)*w,D=i+Math.sin(x)*w;p(t,b,I,n,i,S,D,s,l)}};return{drawArrow:n,drawArcedArrow:t}}(),r=function(){var t=window,r=(t.document,window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}),s={con:"",minDistance:4},a=["onPullStart","onMove","onRelease","needRefresh","doRefresh","noop"],c=25,u=300,l=10,_=function(e){return 5*e/12},f=function(){var e=document.createElement("canvas"),t=!(!e.getContext||!e.getContext("2d")),n=navigator.userAgent.toLowerCase(),i=(n.match(/chrome\/([\d.]+)/),n.match(/version\/([\d.]+).*safari/)),o=(n.match(/firefox\/([\d.]+)/),n.match(/mx[\d.]+/)),r=!1;return o&&i&&(r=!0),!t&&r}(),d=function(e){e.con=document;for(var t={},n=this,o=0;o=this.minRefreshDistance&&(this.shouldRefresh=!0),this.shouldRefresh},pullTipExist:function(){return this.$pullTip},reset:function(){var e=this.isRefreshing;this.isRefreshing=!1,this.shouldRefresh=!1,this.removePullTip(e)},canvasObj:function(){function e(){var e=(N+1)%A.length;return N=e,e}function t(e){return 360+e-F}function i(){I.clearRect(0,0,2*S,2*D)}function s(e){if(!f){var t=e.start,n=e.end,o=e.lineWidth,r=e.color,s=e.counterClockwise,a=e.co;e.clearRect&&i(),I.save(),I.globalCompositeOperation=a,I.beginPath(),I.arc(S,D,k,w(t),w(n),s),I.lineWidth=o,I.strokeStyle=r,I.stroke(),I.restore()}}function a(){if(!f){var n=V.speed,i=V.startAngle,o=L,r=V.color,a=V.lineWidth,c=V.counterClockwise,u=V.globalCompositeOperation,l=H||+new Date;o=+new Date,n=360/R*(o-l),H=o,L+=n,o=Math.min(W,L);var _="draw"===M;if(!x&&(s({start:i,end:o,color:r,lineWidth:a,counterClockwise:c,co:u,clearRect:_}),L>=W))if(I.closePath(),V="erase"!==M?P:O,"draw"===(M="erase"!==M?"erase":"draw")){C=V.color;var d=e(C);V.color=A[d],V.startAngle=(V.startAngle-F)%360,L=V.startAngle,W=t(L)}else L=V.startAngle=O.startAngle}}function _(e){if(!f){var t=e,n=O.speed,i=O.startAngle,o=O.startAngle,r=A[0];if(!isNaN(e)){e=Math.min(m.minRefreshDistance-c,e);var s=e/(m.minRefreshDistance-c);n=(W-l)*s-O.startAngle}o+=n,B=o,h({start:i,end:o,color:r,distance:e,clip:t})}}function d(){var e=m.minRefreshDistance-c,t=e/R*1.3,i=A[0],o=e,s=+new Date,a=n();return r(function e(){if(o>=0){var n=+new Date;o-=t*(n-s),s=n;var u=o/(m.minRefreshDistance-c),_=(W-l)*u-O.startAngle,f=B-_;f=Math.min(f,B),h({start:f,end:B,color:i,distance:o,clip:o}),r(e)}else a.resolve()}),a}function h(e){var t=e.distance,n=x?10:25,r=U,s=t/(m.minRefreshDistance-c);isNaN(t)||(n*=s,r=U*s),i(),E||(I.globalAlpha=1*e.distance/(m.minRefreshDistance+10)),I.strokeStyle=e.color,I.fillStyle=e.color,o.drawArcedArrow(I,S,D,k,w(e.start),w(e.end),!1,1,2,w(45),n,U,r,I.globalAlpha)}function p(e){var t=0;if(e){e=e.replace("matrix(","").replace(")",""),e=e.replace(/\s+/gi,"");t=e.split(",")[5]||0}return t}function v(){var e=m.$pullTip.ownerDocument.defaultView.getComputedStyle(m.$pullTip,null),t=p(e.transform);if(!(tc&&m.$pullTip){var t=+new Date;o-=i*(t-s),_(o-c),s=t,r(e)}})}}function y(e){}function g(e,t){var n=e;t||(n=Math.max(0,(e-c-40*m.options.ratio)/m.minRefreshDistance*360)),b.style.webkitTransition="none",b.style.webkitTransform="rotate("+n+"deg)"}function w(e){return e*(Math.PI/180)}var m=null,b=null,I=null,x=!1,S=100,D=100,k=50,T=0,U=15,E=!1,R=1e3,A=["green"],C=A[0],N=1,O={startAngle:0,speed:5,color:A[0],counterClockwise:!1,globalCompositeOperation:"source-out",lineWidth:U},P={startAngle:0,speed:5,color:"white",counterClockwise:!1,globalCompositeOperation:"destination-out",lineWidth:U+40},L=0,B=0,V=O,M="draw",F=50,W=0,H=0;return{init:function(e,n){this.reset(),H=0,E=!1,b=e.querySelector("canvas"),I=b.getContext?b.getContext("2d"):b,x=!b.getContext,B=L=0,O.startAngle=P.startAngle=0,W=t(L),N=1,A=[n.options.color],O.color=A[N],M="draw",V=O,m=n,x?(T=9,S=D=k=(40-2*T)/2):(S=D=100,T=0,k=50)},reset:function(){b=null,I=null},drawArrowedArcByDis:function(e){_(e)},drawArc:function(e){f?console.log("not support"):a()},clearCurrent:function(){f?console.log("not support"):v()},rotate:g,changeOpacity:y,autoRotate:function(){var e=b.style.webkitTransform;e=e.replace("rotate(","").replace("deg","").replace(")","");var t=parseFloat(e),n=this,i=+new Date;r(function e(){if(E){var o=+new Date,s=t+.24*(o-i);i=o,n.rotate(s,!0),t=s,r(e)}})},autoDraw:function(){if(!f){var e=function e(){E&&(a(),r(e))};d().done(function(){r(e)})}},startAuto:function(){E=!0;b.parentNode.style;m.touchPull.detachEvent(),this.autoDraw(),this.autoRotate()},stopAuto:function(){E=!1;b.parentNode.style;m.touchPull.initEvent(),clearTimeout(-1)}}}(),initCanvas:function(){this.canvasObj.init(this.$pullTip,this)},beginPullToRefresh:function(){this.shouldRefresh=!0,this.addPullTip(document.body),this._onPullEnd(null,this.minRefreshDistance,4)},addPullTip:function(t){this.removePullTip(),this.options.con;var n=this.$pullTip;if(!n){var i=document.createElement("div");i.innerHTML=e.replace(/\{WIDTH\}/g,40*this.options.ratio+"px").replace(/\{SHADOWOFFSETY\}/g,2*this.options.ratio).replace(/\{SHADOWBLUR\}/g,5*this.options.ratio),this.$pullTip=document.body.appendChild(i.firstElementChild),n=this.$pullTip,this.$pullTipInner=n.querySelector("div");var o=n.offsetHeight;c=25*this.options.ratio,this.minRefreshDistance=70*this.options.ratio;var r=n;r.querySelector("canvas");r.style.top=this.options.offset-o+"px",r.style.webkitTransition="none",r.style.webkitTransform="translate3d(0,0,0)",this.initCanvas()}},movePullTip:function(e,t,n){if(this.pullTipExist()){var i=Math.min(this.options.range+20*this.options.ratio,e);this.$pullTip.style.webkitTransition=t||"none";var o=50*this.options.ratio;i=Math.max(0,i-o),this.$pullTip.style.webkitTransform="translate3d(0,"+i+"px,0)",this.$pullTip.style.height=Math.min(e,o)+"px",this.$pullTipInner.style.webkitTransform="translateY("+Math.min(0,Math.max(-o,e-o))+"px)",0===e?this.canvasObj.clearCurrent():e>c&&(this.shouldRefresh?this.isRefreshing||!0===n||this.canvasObj.rotate(e):(e<=this.options.range+20*this.options.ratio-5&&e>=40*this.options.ratio&&this.canvasObj.rotate(e),this.canvasObj.drawArrowedArcByDis(e-c),this.canvasObj.changeOpacity(e-c)))}},changePullTip:function(e,t){this.pullTipExist()},removePullTip:function(e){if(this.pullTipExist())if(e){var t=this;t.canvasObj.stopAuto(),t.$pullTip.style.webkitTransition="all 100ms linear",t.$pullTip.style.opacity=.1,t.$pullTip.style.webkitTransform+=" scale(0.1)"}else this.$pullTip.removeEventListener("webkitTransitionEnd",this.onTransitionEnd,!1),this.$pullTip.remove(),this.$pullTip=null}},{init:function(e){return new d(e)}}}(),s=/complete|loaded|interactive/,a=function(e){s.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",function(){e()},!1)},c=!1;window.__setPullToRefresh__=function(e,n){a(function(){if(!e.support&&t)return t.reset(),t.touchPull.detachEvent(),void(c=!0);if(e.support){var i=window.innerWidth;980===i&&(i=window.plus&&plus.screen.resolutionWidth||window.screen.width);var o=i/(window.plus&&plus.screen.resolutionWidth||window.screen.width),s=parseInt(e.offset),a=parseInt(e.range)||128;useCapture=!1!==e.useCapture,s*=o,a=a*o+s,t?(t.options.useCapture=useCapture,c&&t.touchPull.initEvent(),e.offset&&(t.options.offset=s),e.range&&(t.options.range=a),e.color&&(t.options.color=e.color),t.options.doRefresh=n):t=r.init({offset:s,range:a,ratio:o,useCapture:useCapture,color:e.color||"green",doRefresh:n})}})},window.__endPullToRefresh__=function(){t&&t.reset()},window.__beginPullToRefresh__=function(){t&&t.beginPullToRefresh()}}(),__Mkey__Push__=function(){var e=[];return{pushCallback_Push:function(t,n,i){e[t]={fun:n,nokeep:i}},execCallback_Push:function(t,n,i){e[t]&&e[t].fun&&e[t].fun(i)}}}(),function(e){function t(e,t,n){this.__UUID__=null,this.message=e,this.Payload=t,this.options=n}function n(){return r||(r=window.__requireNativePlugin__("UniPush"),r.initialize(),o.platform==o.ANDROID&&e.webview.currentWebview().addEventListener("close",function(){r.removePushEvent(window.__HtMl_Id__)})),r}var e=e,i=window.plus.bridge,o=window.plus.tools;window.__isUniPush__=!1,e.push={getClientInfo:function(){return __isUniPush__?n().getClientInfo():i.execSync2("Push","getClientInfo",[])},getClientInfoAsync:function(e,t){if(__isUniPush__)n().getClientInfo(function(n){0==n.ret?"function"==typeof e&&e(n.payload):"function"==typeof t&&t(n.payload)});else{var o=i.callbackId(function(t){"function"==typeof e&&e(t)},function(e){"function"==typeof t&&t(e)});i.exec("Push","getClientInfoAsync",[o])}},createMessage:function(r,s,a){if(o.platform==o.IOS)__isUniPush__?n().createMessage({content:r,payload:s,options:a}):i.exec("Push","createMessage",[r,s,a]);else{a&&a.icon&&(a.icon=e.io.convertLocalFileSystemURL(a.icon));var c,r=new t(r,s,a);c=__isUniPush__?n().createMessage(r):i.execSync("Push","createMessage",[r]),r.__UUID__=c}},clear:function(){__isUniPush__?n().clear():i.exec("Push","clear",[])},addEventListener:function(e,t,r){if(__isUniPush__)n().addPushEvent(window.__HtMl_Id__,e,t);else{var s=o.UUID(e);__Mkey__Push__.pushCallback_Push(s,t,r),i.exec("Push","addEventListener",[window.__HtMl_Id__,s,e])}},remove:function(e){__isUniPush__&&o.platform==o.ANDROID?n().remove(e.__UUID__):i.exec("Push","remove",[e.__UUID__])},getAllMessage:function(){return __isUniPush__&&o.platform==o.ANDROID?n().getAllMessage():i.execSync("Push","getAllMessage",[])},setAutoNotification:function(e){__isUniPush__&&o.platform==o.ANDROID?n().setAutoNotification(e):i.exec("Push","setAutoNotification",[e])}};var r}(window.plus),function(e){var e=e,t=window.plus.bridge;e.runtime={arguments:null,version:null,innerVersion:null,uniVersion:"",launchLoadedTime:null,launcher:null,origin:null,processId:null,startupTime:null,isRecovery:!1,restart:function(){t.exec("Runtime","restart",[])},install:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Runtime","install",[e,r,n])},getProperty:function(e,n){var i=t.callbackId(n);t.exec("Runtime","getProperty",[e,i])},quit:function(){t.exec("Runtime","quit",[])},openURL:function(e,n,i){var o=t.callbackId(null,function(e){"function"==typeof n&&n(e)});t.exec("Runtime","openURL",[e,o,i])},launchApplication:function(e,n){var i=t.callbackId(null,function(e){"function"==typeof n&&n(e)});t.exec("Runtime","launchApplication",[e,i])},setBadgeNumber:function(e,n){"number"==typeof e&&t.exec("Runtime","setBadgeNumber",[e,n])},openFile:function(e,n,i){var o=t.callbackId(null,function(e){"function"==typeof i&&i(e)});t.exec("Runtime","openFile",[e,n,o])},isStreamValid:function(){return t.execSync("Runtime","isStreamValid")},openWeb:function(e){return t.exec("Runtime","openWeb",[e])},isApplicationExist:function(e){return null!==e&&void 0!==e&&"string"!=typeof e&&t.execSync("Runtime","isApplicationExist",[e])},processDirectPage:function(){return t.execSync("Runtime","processDirectPage",[])},isCustomLaunchPath:function(){return t.execSync("Runtime","isCustomLaunchPath")},getDCloudId:function(){return t.execSync("Runtime","getDCloudId")},agreePrivacy:function(){t.exec("Runtime","agreePrivacy",[])},disagreePrivacy:function(){t.exec("Runtime","disagreePrivacy",[])},isAgreePrivacy:function(){return t.execSync("Runtime","isAgreePrivacy",[])},downloadFile:function(e,n,i){if("string"==typeof e.url)if(e.url.length>10&&"blob:file:"==e.url.substring(0,10)){var o=new XMLHttpRequest;o.open("GET",e.url,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.responseType="blob",o.onload=function(o){if(200==this.status){var r=this.response;try{const s=new FileReader;s.onload=function(o){var r=t.callbackId(n,i);t.exec("Runtime","downloadBlob",[o.target.result,e.fileName,r])},s.readAsDataURL(r),s.onerror=function(){i({code:-1,message:"blob error"})}}catch(e){var a={code:-1,message:e};i(a)}}else{var a={code:-1,message:this.status};i(a)}},o.onerror=function(e){i({code:-1,message:"data error"})},o.send()}else{var r=document.createElement("a");r.href=e.url+"&DCLOUD_DOWNLOAD_BLOB:"+e.fileName,r.download=e.fileName,r.click()}else try{const s=new FileReader;s.onload=function(o){var r=t.callbackId(n,i);t.exec("Runtime","downloadBlob",[o.target.result,e.fileName,r])},s.readAsDataURL(e.url),s.onerror=function(){i({code:-1,message:"blob error"})}}catch(e){var a={code:-1,message:e};i(a)}}}}(window.plus),function(e){function t(e,t,n,i){this.id=e,this.description=t,this.authenticated=n,this.accessToken=i,this.nativeClient=!1}function n(t,n){var s=this;s.__UUID__=o.UUID("Authorize"),s.__componentid__=t,s.display=n,s.onloaded=null,s.onauthenticated=null,s.onerror=null,s.__top__=0,s.__left__=0,s.__width__=0,s.__height__=0;var a=document.getElementById(s.__componentid__);a&&(s.__left__=a.offsetLeft,s.__top__=a.offsetTop,s.__width__=a.offsetWidth,s.__height__=a.offsetHeight);var c=function(e){"function"==typeof s.onerror&&s.onerror(e)},u=function(t){"load"==t.evt?"function"==typeof s.onloaded&&s.onloaded():"auth"==t.evt&&"function"==typeof s.onauthenticated&&e.share.getServices(function(e){for(var n=0;n=0;o--){var r=this.__view_array__[o];if(t==r.id)return r}var s=n.execSync(this,"findViewById",[t]),a=s.identity,c=s.option,u=(s.uuid,new e.ui.__nviews__[a](c));return u.__uuid__=s.uuid,this.__view_array__.push(u),u},n.NWindow=t}(window.plus),function(e){function t(e,t,n){this.type=r.getValue(e,""),this.handles=[],this.capture=r.getValue(n,!1),"function"==typeof t&&this.handles.push(t)}function n(e,t,n){this.__UUID__=r.UUID(),this.url=r.getValue(e,""),this.options=t||{},this.uploadedSize=0,this.totalSize=0,this.responseText="",this.method=r.getValue(this.options.method,"GET"),this.chunkSize=r.getValue(this.options.chunkSize,0),this.timeout=r.getValue(this.options.timeout,120),this.retry=r.getValue(this.options.retry,3),this.retryInterval=r.getValue(this.options.retryInterval,30),this.priority=r.getValue(this.options.priority,1),this.onCompleted=n||null,this.eventHandlers={},this.__requestHeaders__={},this.__responseHeaders__={},this.__noParseResponseHeader__=null,this.__cacheReponseHeaders__={}}var e=e,i=window.plus.bridge,o=window.plus.tools,r={UUID:function(){return o.UUID("uploader")},server:"Uploader",getValue:function(e,t){return void 0===e?t:e}};t.prototype.fire=function(e){for(var t=0;t0){for(var i=0;ii.Uninitialized&&("function"==typeof this.onabort&&this.onabort(this.__progessEvent__),this.__init__(),r.exec(i.__F__,"abort",[this.__UUID__]))},a.getAllResponseHeaders=function(){if(this.readyState>=i.Receiving){if(this.__noParseResponseHeader__)return this.__noParseResponseHeader__;var e="";for(var t in this.__responseHeaders__)e=e+t+": "+this.__responseHeaders__[t]+"\r\n";return this.__noParseResponseHeader__=e,this.__noParseResponseHeader__}return null},a.getResponseHeader=function(e){if("string"==typeof e&&this.readyState>=i.Receiving){var t=null;if(e=e.toLowerCase(),t=this.__cacheReponseHeaders__[e])return t;for(var n in this.__responseHeaders__){var o=this.__responseHeaders__[n];n=n.toLowerCase(),e===n&&(t=t?t+", "+o:o)}return this.__cacheReponseHeaders__[e]=t,t}return null},a.setRequestHeader=function(e,t){if("string"==typeof e&&"string"==typeof t&&i.Open==this.readyState){var n=this.__requestHeaders__[e];this.__requestHeaders__[e]=n?n+", "+t:t}},a.open=function(e,t,n,s){i.Open!=this.readyState&&i.Loaded!=this.readyState||this.__init__(),i.Uninitialized==this.readyState&&(this.readyState=i.Open,r.exec(i.__F__,"open",[this.__UUID__,e,o(t),n,s,this.timeout]),"function"==typeof this.onreadystatechange&&this.onreadystatechange())},a.overrideMimeType=function(e){r.exec(i.__F__,"overrideMimeType",[this.__UUID__,e])},a.send=function(e){var t=this;if(i.Open==this.readyState){this.readyState=i.Sent,"function"==typeof this.onloadstart&&this.onloadstart(t.__progessEvent__);var o=r.callbackId(function(e){if(i.Receiving==e.readyState)i.Sent==t.readyState?(t.readyState=i.Receiving,t.status=e.status,t.statusText=e.statusText,t.__responseHeaders__=e.header,t.__progessEvent__.lengthComputable=e.lengthComputable,t.__progessEvent__.total=e.totalSize):i.Receiving==t.readyState&&(t.responseText=e.responseText,t.__progessEvent__.loaded=e.revSize),"function"==typeof t.onreadystatechange&&t.onreadystatechange(),"function"==typeof t.onprogress&&t.onprogress(t.__progessEvent__);else if(i.Loaded==e.readyState){t.readyState=i.Loaded,e.status&&(t.status=e.status);try{if(t.responseText){var o=new DOMParser;t.responseXML=o.parseFromString(t.responseText,"text/xml")}}catch(e){t.responseXML=null}try{if("document"==t.responseType){var o=new DOMParser;t.response=t.responseXML}else"json"==t.responseType&&(t.response=JSON.parse(t.responseText))}catch(e){t.response=null}"function"==typeof t.onreadystatechange&&t.onreadystatechange(),e.error==n.Timeout?"function"==typeof t.ontimeout&&t.ontimeout(t.__progessEvent__):e.error==n.Other?"function"==typeof t.onerror&&t.onerror(t.__progessEvent__):"function"==typeof t.onload&&t.onload(t.__progessEvent__),"function"==typeof t.onloadend&&t.onloadend(t.__progessEvent__)}});return r.exec(i.__F__,"send",[this.__UUID__,o,e,this.__requestHeaders__]),void("function"==typeof this.onreadystatechange&&this.onreadystatechange())}throw new Error("XMLHttpRequest not open")},e.net={XMLHttpRequest:i}}(window.plus),function(e){var e=e,t=window.plus.bridge;e.zip={decompress:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Zip","decompress",[e,n,r])},compress:function(e,n,i,o){var r=t.callbackId(i,o);t.exec("Zip","compress",[e,n,r])},compressImage:function(e,n,i){var o=t.callbackId(function(e){if(n){var t={target:e.path,width:e.w,height:e.h,size:e.size};n(t)}},i);t.exec("Zip","compressImage",[e,o])}}}(window.plus),function(e){function t(e){return c.getElementOffsetXInWebview(e)}function n(e){return c.getElementOffsetYInWebview(e)}function i(i,o){this.id=c.UUID("dt"),this.IDENTITY=a,div=document.getElementById(i);var r=this.id,u=[];div&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];s.exec(a,"resize",[r,e])},200)},!1):div.addEventListener("resize",function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];s.exec(a,"resize",[r,e])},!1),u=[t(div),n(div),div.offsetWidth,div.offsetHeight]),s.exec(a,"ShortVideo",[this.id,u,o])}function o(i,o){this.id=c.UUID("dt"),this.IDENTITY=a,div=document.getElementById(i);var r=[],u=this.id;div&&(e.tools.platform==e.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];s.exec(a,"shortVideoEditor_resize",[u,e])},200)},!1):div.addEventListener("resize",function(){var e=[t(div),n(div),div.offsetWidth,div.offsetHeight];s.exec(a,"shortVideoEditor_resize",[u,e])},!1),r=[t(div),n(div),div.offsetWidth,div.offsetHeight]),s.exec(a,"ShortVideoEditor",[this.id,r,o])}function r(e,t,n){var i="function"!=typeof t?null:function(e){t(e)},o="function"!=typeof n?null:function(e){n(e)},r=s.callbackId(i,o);s.exec(a,"uploader",[e,r])}var e=e,s=e.bridge,a="ShortVideo",c=e.tools,u=i.prototype;u.start=function(e){s.exec(a,"ShortVideo_start",[this.id,e])},u.pause=function(){s.exec(a,"ShortVideo_pause",[this.id])},u.resume=function(){s.exec(a,"ShortVideo_resume",[this.id])},u.stop=function(){s.exec(a,"ShortVideo_stop",[this.id])},u.close=function(){s.exec(a,"ShortVideo_close",[this.id])},u.switchCamera=function(e){s.exec(a,"ShortVideo_switchCamera",[this.id,e])},u.setStyles=function(e){s.exec(a,"ShortVideo_setStyles",[this.id,e])},u.startMixAudio=function(e){s.exec(a,"ShortVideo_startMixAudio",[this.id,e])},u.pauseMixAudio=function(){s.exec(a,"ShortVideo_pauseMixAudio",[this.id])}, u.resumeMixAudio=function(){s.exec(a,"ShortVideo_resumeMixAudio",[this.id])},u.stopMixAudio=function(){s.exec(a,"ShortVideo_stopMixAudio",[this.id])},u.addEventListener=function(e,t){var n,i=this;if(t){var o=function(e){"function"==typeof t&&(e.target=i,t(e))};t.callback=o,n=s.callbackId(o)}s.exec(a,"ShortVideo_addEventListener",[this.id,e,n])};var l=o.prototype;l.play=function(){s.exec(a,"shortVideoEditor_play",[this.id])},l.pause=function(){s.exec(a,"shortVideoEditor_pause",[this.id])},l.resume=function(){s.exec(a,"shortVideoEditor_resume",[this.id])},l.stop=function(){s.exec(a,"shortVideoEditor_stop",[this.id])},l.close=function(){s.exec(a,"shortVideoEditor_close",[this.id])},l.setStyles=function(e){s.exec(a,"shortVideoEditor_setStyles",[this.id,e])},l.save=function(e,t,n){var i="function"!=typeof t?null:function(e){t(e)},o="function"!=typeof n?null:function(e){n(e)},r=s.callbackId(i,o);s.exec(a,"shortVideoEditor_save",[this.id,e,r])},l.addEventListener=function(e,t){var n,i=this;if(t){var o=function(e){"function"==typeof t&&(e.target=i,t(e))};t.callback=o,n=s.callbackId(o)}s.exec(a,"shortVideoEditor_addEventListener",[this.id,e,n])};var _={Camera:i,Editor:o,upload:r};e.shortvideo=_}(window.plus),function(e){var t=e.bridge,n={startBeaconDiscovery:function(e){if("object"==typeof e){var n="function"!=typeof e.complete?function(){}:e.complete,i="function"!=typeof e.success?n:function(t){e.success(t),n(t)},o="function"!=typeof e.fail?n:function(t){e.fail(t),n(t)};return callbackID=t.callbackId(i,o),t.exec("iBeacon","startBeaconDiscovery",[callbackID,e.uuids])}},stopBeaconDiscovery:function(e){var n="function"!=typeof e.complete?function(){}:e.complete,i="function"!=typeof e.success?n:function(t){e.success(t),n(t)},o="function"!=typeof e.fail?n:function(t){e.fail(t),n(t)};return callbackID=t.callbackId(i,o),t.exec("iBeacon","stopBeaconDiscovery",[callbackID])},getBeacons:function(e){var n="function"!=typeof e.complete?function(){}:e.complete,i="function"!=typeof e.success?n:function(t){e.success(t),n(t)},o="function"!=typeof e.fail?n:function(t){e.fail(t),n(t)};return callbackID=t.callbackId(i,o),t.exec("iBeacon","getBeacons",[callbackID])},onBeaconUpdate:function(e){var n="function"!=typeof e?null:e;return callbackID=t.callbackId(n),t.exec("iBeacon","onBeaconUpdate",[callbackID])},onBeaconServiceChange:function(e){var n="function"!=typeof e?null:e;return callbackID=t.callbackId(n),t.execSync("iBeacon","onBeaconServiceChange",[callbackID])}};e.ibeacon=n}(window.plus),function(e){var t=window.plus.bridge,n={closeBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","closeBluetoothAdapter",[callbackID])},openBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","openBluetoothAdapter",[callbackID])},getBluetoothAdapterState:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),t.exec("Bluetooth","getBluetoothAdapterState",[callbackID])},getBluetoothDevices:function(e){var n=this,i="function"!=typeof e.complete?function(){}:e.complete,o="function"!=typeof e.success?null:function(t){for(var o=t.devices,r=0;r