var plusType;function __adsfsdaf99dsafsd090dsfsd__(){var t,n=["log","logLevel","unshift","slice","ERROR","toString","addEventListener","__message__","warn","error","INFO","plusready","assert","LOG","Timer [","valueOf","join","bridge","console","message","apply","clear","stringify","time","timeEnd","length","format","tools","concat","exec","error JSON.stringify()ing argument: ","WARN","call","prototype","plus","push","shift","level","info"];t=n,function(e){for(;--e;)t.push(t.shift())}(448);function l(e,t){return n[e=+e]}!function(e){var u=l;window[u("0x10")][u("0x9")];function n(e,t){var n=u;t=[e][n("0xa")]([].slice[n("0xe")](t)),logger[n("0x16")][n("0x2")](logger,t)}function i(e,t){var n=u;if(null==e)return[""];if(1==arguments[n("0x7")])return[e[n("0x1a")]()];for(var i=/(.*?)%(.)(.*)/,o=e="string"!=typeof e?e[n("0x1a")]():e,s=[];t[n("0x7")];){var r=i[n("0xb")](o);if(!r)break;var c=t[n("0x12")](),o=r[3];s[n("0x11")](r[1]),"%"!=r[2]?s.push(function(e,t){var n=u;try{switch(t){case"j":case"o":return JSON[n("0x4")](e);case"c":return""}}catch(e){return n("0xc")+e}return null==e?Object[n("0xf")][n("0x1a")][n("0xe")](e):e[n("0x1a")]()}(c,r[2])):(s.push("%"),t[n("0x17")](c))}s[n("0x11")](o);var a=[][n("0x18")][n("0xe")](t);return a[n("0x17")](s[n("0x25")]("")),a}B=window[u("0x10")][u("0x26")],_LOGF="Console",winConsole=window.console,Timers={},logger={};var o=winConsole[u("0x15")];logger[u("0x15")]=function(e){var t=u;o.apply(winConsole,arguments),n(t("0x22"),arguments)};var s=winConsole[u("0x14")];logger[u("0x14")]=function(e){var t=u;s[t("0x2")](winConsole,arguments),n(t("0x1f"),arguments)};var r=winConsole[u("0x1d")];logger.warn=function(e){var t=u;r.apply(winConsole,arguments),n(t("0xd"),arguments)};var c=winConsole[u("0x1e")];logger[u("0x1e")]=function(e){var t=u;c[t("0x2")](winConsole,arguments),n(t("0x19"),arguments)};var a=winConsole[u("0x21")];logger[u("0x21")]=function(e){var t=u;if(!e){var n=vformat([][t("0x18")].call(arguments,1));throw logger[t("0x15")]("ASSERT:"+n),a[t("0x2")](winConsole,arguments),new Error(n)}},logger[u("0x3")]=function(){var e=u;B[e("0xb")](_LOGF,e("0x3"),0)},logger[u("0x5")]=function(e){var t=u;Timers[e]=(new Date)[t("0x24")]()},logger[u("0x6")]=function(e){var t=u,n=Timers[e];n&&(n=(new Date)[t("0x24")]()-n,logger.log(t("0x23")+e+": "+n+"ms]"))},logger[u("0x16")]=function(e){var t=u,n=[][t("0x18")][t("0xe")](arguments,1),n=logger.format[t("0x2")](logger[t("0x8")],n);B[t("0xb")](_LOGF,"logLevel",[e,n])},logger[u("0x8")]=function(e,t){var n=u;return i(e,[][n("0x18")].call(arguments,1))[n("0x25")](" ")},e[u("0x0")]=logger,window[u("0x0")][u("0x15")]=logger[u("0x15")],window[u("0x0")].info=logger[u("0x14")],window[u("0x0")][u("0x1e")]=logger[u("0x1e")],window[u("0x0")][u("0x1d")]=logger.warn,document[u("0x1b")](u("0x20"),function(){var e=u,t=window[e("0x1c")];if(t)for(var n=0;n<t[e("0x7")];n++)B.exec(_LOGF,e("0x16"),[t[n][e("0x13")],t[n][e("0x1")]])},!1)}(window[l("0x10")])}window.plus&&(!window.plus||window.plus.isReady)||(plusType=typeof window.plus,"function"==plusType||"object"==plusType?(window.plus.isReady=!0,navigator.plus=window.__html5plus__=window.plus):window.__html5plus__=window.plus=navigator.plus={isReady:!0}),function(e){var i=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"==i.typeName(e)},isArray:function(e){return"Array"==i.typeName(e)},isDebug:function(){return e.tools.debug},stringify:function(e){return(window.JSON3||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 i.getElementOffsetInWebview(e,"offsetLeft")},getElementOffsetYInWebview:function(e){return i.getElementOffsetInWebview(e,"offsetTop")},execJSfile:function(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,function e(t){var n=document.head,i=document.body;n?n.insertBefore(t,n.firstChild):i?i.insertBefore(t,i.firstChild):setTimeout(function(){e(t)},100)}(t)},copyObjProp2Obj:function(e,t,n){var i,o=n instanceof Array;for(i in t){var s=!0;if(o)for(var r=0;r<n.length;r++)if(i==n[r]){s=!1;break}s?e[i]=t[i]:s=!0}},clone:function(e){if(!e||"function"==typeof e||i.isDate(e)||"object"!=typeof e)return e;var t,n;if(i.isArray(e)){for(t=[],n=0;n<e.length;++n)t.push(i.clone(e[n]));return t}for(n in t={},e)n in t&&t[n]==e[n]||(t[n]=i.clone(e[n]));return t}};i.debug=!(!window.__nativeparamer__||!window.__nativeparamer__.debug),i.platform=window._____platform_____}(window.plus),function(e){window.__prompt__=window.prompt;var a=e.tools,c=e.bridge={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,callbacks:{},isInEvalJs:0,exec:function(e,t,n,i,o){n&&n.push(i),a.IOS==a.platform?window.webkit&&window.webkit.messageHandlers?window.webkit.messageHandlers.plus.postMessage(a.stringify([window.__HtMl_Id__,e,t,i||null,n])):"function"==typeof __dc_plus_Command_&&__dc_plus_Command_(a.stringify([window.__HtMl_Id__,e,t,i||null,n])):a.ANDROID==a.platform&&(o||window._____platform_os_version_____&&window._____platform_os_version_____<21?window.__prompt__(a.stringify(n),"pdr:"+a.stringify([e,t,!0])):window._bridge.prompt(a.stringify(n),"pdr:"+a.stringify([e,t,!0])))},execSync2:function(t,n,e,i,o){try{if(a.IOS==a.platform&&"function"==typeof __dc__plusGo){var s=a.stringify([window.__HtMl_Id__,t,n,null,e]),r=__dc__plusGo(s);return i?i(r):window.eval(r)}}catch(e){console.log("sf:"+n+"-"+t)}return c.execSync(t,n,e,i,o)},execSync:function(t,n,e,i,o){if(a.IOS==a.platform){if("function"==typeof __dc__plusGo){var s=a.stringify([window.__HtMl_Id__,t,n,null,e]),r=__dc__plusGo(s);return i?i(r):window.eval(r)}try{if(window.webkit&&window.webkit.messageHandlers){var s=a.stringify([window.__HtMl_Id__,t,n,null,e]),c=prompt(s,"__dc__plusGo:");return i?i(c):window.eval(c)}}catch(e){console.log("sf:"+n+"-"+t)}return window.eval(sync.responseText)}var r;if(a.ANDROID==a.platform)return r=o||window._____platform_os_version_____&&window._____platform_os_version_____<21?window.__prompt__(a.stringify(e),"pdr:"+a.stringify([t,n,!1])):window._bridge.prompt(a.stringify(e),"pdr:"+a.stringify([t,n,!1])),(i||eval)(r)},callbackFromNative:function(e,t){var n=c.callbacks[e];n&&(t.status==c.OK&&n.success?n.success&&n.success(t.message):n.fail&&n.fail(t.message),t.keepCallback||delete c.callbacks[e])},callbackId:function(e,t){var n=a.UUID("plus");return c.callbacks[n]={success:e,fail:t},n}}}(window.plus),plus.obj=plus.obj||{},plus.obj.Callback=function(){function e(){var r=this;r.__callbacks__={},r.__callback_id__=plus.bridge.callbackId(function(e){var t=e.evt,n=e.args,i=r.__callbacks__[t];if(i)for(var o=i.length,s=0;s<o;s++)r.onCallback(i[s],t,n)})}return e.prototype.addEventListener=function(e,t,n){var i=!1;return t&&(this.__callbacks__[e]||(this.__callbacks__[e]=[],i=!0),this.__callbacks__[e].push(t)),i},e.prototype.removeEventListener=function(e,t){var n=!1;return this.__callbacks__[e]&&(this.__callbacks__[e].pop(t),(n=0===this.__callbacks__[e].length)&&(this.__callbacks__[e]=null)),n},e}(),function(e,s){function o(e,t,n){this.xAxis=e,this.yAxis=t,this.zAxis=n}var n=(e=e).bridge,r=e.tools,i="Accelerometer",c=!1,a={},u=[],l=null;function _(e){var t=n.callbackId(function(e){var t=u.slice(0);l=new o(e.x,e.y,e.z);for(var n=0,i=t.length;n<i;n++)t[n].win(l)},function(e){for(var t=u.slice(0),n=0,i=t.length;n<i;n++)t[n].fail(e)});n.exec(i,"start",[t,e]),c=!0}function f(e,t){return{win:e,fail:t}}function d(e){e=u.indexOf(e);-1<e&&(u.splice(e,1),0===u.length&&(n.exec(i,"stop",[]),c=!1))}var t={getCurrentAcceleration:function(t,n,e){var i=f(function(e){d(i),t(e)},function(e){d(i),n&&n(e)});u.push(i),c||_(-1)},watchAcceleration:function(e,t,n){var i=n&&n.frequency&&"number"==typeof n.frequency?n.frequency:500,n=r.UUID("watch"),o=f(function(){},function(e){d(o),t&&t(e)});return u.push(o),a[n]={timer:s.setInterval(function(){l&&e(l)},i),listeners:o},c?l&&e(l):_(i),n},clearWatch:function(e){e&&a[e]&&(s.clearInterval(a[e].timer),d(a[e].listeners),delete a[e])}};e.accelerometer=t}(this.plus,this),function(e){var i=(e=e).bridge,n=e.tools,o="Audio",s="RecorderExecMethod",r="AudioExecMethod",c="AudioSyncExecMethod";e.audio={getRecorder:function(){var e={_Audio_UUID__:n.UUID("Record"),supportedFormats:["amr","3gp","aac"],supportedSamplerates:[44100,16e3,8e3],record:function(e,t,n){n=i.callbackId(t,n);i.exec(o,s,["record",[this._Audio_UUID__,n,e]])},stop:function(){i.exec(o,s,["stop",[this._Audio_UUID__]])},pause:function(){i.exec(o,s,["pause",[this._Audio_UUID__]])},resume:function(){i.exec(o,s,["resume",[this._Audio_UUID__]])}};return n.IOS==n.platform&&(e.supportedFormats=["wav","aac","amr","mp3"]),e},createPlayer:function(e){var t={_Player_Param:e,_Audio_Player_UUID_:n.UUID("Player"),play:function(e,t){t=i.callbackId(e,t);i.exec(o,r,["play",[this._Audio_Player_UUID_,t]])},pause:function(){i.exec(o,r,["pause",[this._Audio_Player_UUID_]])},resume:function(){i.exec(o,r,["resume",[this._Audio_Player_UUID_]])},stop:function(){i.exec(o,r,["stop",[this._Audio_Player_UUID_]])},seekTo:function(e){i.exec(o,r,["seekTo",[this._Audio_Player_UUID_,e]])},getDuration:function(){return i.execSync2(o,c,["getDuration",[this._Audio_Player_UUID_]])},getPosition:function(){return i.execSync2(o,c,["getPosition",[this._Audio_Player_UUID_]])},setRoute:function(e){i.exec(o,r,["setRoute",[this._Audio_Player_UUID_,e]])},setSessionCategory:function(e){i.exec(o,r,["setSessionCategory",[this._Audio_Player_UUID_,e]])},isPaused:function(){return i.execSync2(o,c,["getPaused",[this._Audio_Player_UUID_]])},getBuffered:function(){return i.execSync2(o,c,["getBuffered",[this._Audio_Player_UUID_]])},getStyles:function(e){return i.execSync2(o,c,["getStyles",[this._Audio_Player_UUID_,e]])},setStyles:function(e){i.exec(o,r,["setStyles",[this._Audio_Player_UUID_,e]])},addEventListener:function(e,t){t=i.callbackId(t);i.exec(o,r,["addEventListener",[this._Audio_Player_UUID_,e,t]])},removeEventListener:function(e){i.exec(o,r,["removeEventListener",[this._Audio_Player_UUID_,e]])},close:function(){i.exec(o,r,["close",[this._Audio_Player_UUID_]])},playbackRate:function(e){i.exec(o,r,["playbackRate",[this._Audio_Player_UUID_,e]])}},e={};return"string"==typeof t._Player_Param?e.src=t._Player_Param:e=t._Player_Param,i.execSync(o,c,["CreatePlayer",[t._Audio_Player_UUID_,e]]),t},ROUTE_SPEAKER:0,ROUTE_EARPIECE:1}}(window.plus),function(o){var a="barcode",u=(o=o).tools,l=o.bridge,s={};function e(e,t,n,i,o,s){var r=this;r.IDENTITY=a,r.onmarked=null,r.onerror=null,r.isClose=!1,r.__uuid__=u.UUID("bc");var c=r.callbackId=null;o=o||r.__uuid__,this.callbackId=l.callbackId(function(e){"function"==typeof r.onmarked&&r.onmarked(e.type,e.message,e.file)},function(e){"function"==typeof r.onerror&&r.onerror(e)}),div=document.getElementById(e),null!=div&&null!=div&&(div.addEventListener("resize",function(){var e=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];l.exec(a,"resize",[e])},!1),c=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight]),null!=s&&!s||l.exec(a,"Barcode",[this.__uuid__,this.callbackId,o,c,t,n,i])}var t=e.prototype;t.setStyle=function(e){this.isClose||l.exec(a,"setStyle",[this.__uuid__,e])},t.start=function(e){this.isClose||l.exec(a,"start",[this.__uuid__,e])},t.setFlash=function(e){this.isClose||l.exec(a,"setFlash",[this.__uuid__,e])},t.cancel=function(){this.isClose||l.exec(a,"cancel",[this.__uuid__])},t.close=function(){this.isClose||(l.exec(a,"close",[this.__uuid__]),this.isClose=!0)};t={Barcode:e,create:function(e,t,n,i){return e=new o.barcode.Barcode(null,t,n,i,e,!0),s[e.__uuid__]=e,s[e.__uuid__]},getBarcodeById:function(e){if(e&&"string"==typeof e){var t=l.execSync(a,"getBarcodeById",[e]);if(null!=t&&null!=t.uuid){if(s[t.uuid])return s[t.uuid];if(null==t)return null;e=new o.barcode.Barcode(null,t.filters,t.options,t.autoDecodeCharset,e,!1);return e.__uuid__=t.uuid,l.exec(a,"addCallBack",[e.__uuid__,e.callbackId]),s[e.__uuid__]=e}}},scan:function(e,t,n,i,o){var s=l.callbackId("function"!=typeof t?null:function(e){t(e.type,e.message,e.file,e.charSet)},"function"!=typeof n?null:function(e){n(e)});l.exec(a,"scan",[s,e,i,o])},QR:0,EAN13:1,EAN8:2,AZTEC:3,DATAMATRIX:4,UPCA:5,UPCE:6,CODABAR:7,CODE39:8,CODE93:9,CODE128:10,ITF:11,MAXICODE:12,PDF417:13,RSS14:14,RSSEXPANDED:15};o.barcode=t}(window.plus),function(e){var n=(e=e).bridge,i="Cache";e.cache={clear:function(t){var e=n.callbackId(function(e){t&&t()},null);window.localStorage.clear(),window.sessionStorage.clear(),n.exec(i,"clear",[e])},calculate:function(t){var e=n.callbackId(function(e){t&&t(e)},null);n.exec(i,"calculate",[e])},setMaxSize:function(e){n.exec(i,"setMaxSize",[e])}}}(window.plus),function(i){var o,s=(i=i).bridge,r="Camera";function c(){this.index=1,this.__busy__=!1,this.supportedImageResolutions=[],this.supportedVideoResolutions=[],this.supportedImageFormats=[],this.supportedVideoFormats=[]}var e=c.prototype;e.captureImage=function(t,n,e){var i,o=this;o.__busy__||(i=s.callbackId("function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},"function"!=typeof n?null:function(e){o.__busy__=!1,n(e)}),(e=e||{}).index||(e.index=this.index),s.exec(r,"captureImage",[i,e]))},e.startVideoCapture=function(t,n,e){var i,o=this;o.__busy__||(i=s.callbackId("function"!=typeof t?null:function(e){o.__busy__=!1,t(e)},"function"!=typeof n?null:function(e){o.__busy__=!1,n(e)}),(e=e||{}).index||(e.index=this.index),s.exec(r,"startVideoCapture",[i,e]))},e.stopVideoCapture=function(){s.exec(r,"stopVideoCapture",[])};e={getCamera:function(e){if(o)return o;if((o=new c).index=e,i.tools.ANDROID!=i.tools.platform)return(t=s.execSync(r,"getCamera",[o.__UUID__,e]))?(o.supportedImageFormats=t.supportedImageFormats,o.supportedVideoFormats=t.supportedVideoFormats,o.supportedImageResolutions=t.supportedImageResolutions,o.supportedVideoResolutions=t.supportedVideoResolutions):(o.supportedImageFormats=["png","jpg"],o.supportedImageResolutions=["640*480","1280*720","960*540","high","medium","low"],o.supportedVideoFormats=["mp4"],o.supportedVideoResolutions=["640*480","1280*720","960*540"]),o;var t,n=s.callbackId(function(e){o.supportedImageFormats=e.supportedImageFormats,o.supportedVideoFormats=e.supportedVideoFormats,o.supportedImageResolutions=e.supportedImageResolutions,o.supportedVideoResolutions=e.supportedVideoResolutions},null);return(t=s.execSync(r,"getCamera",[o.__UUID__,e,n]))&&(o.supportedImageFormats=t.supportedImageFormats,o.supportedVideoFormats=t.supportedVideoFormats,o.supportedImageResolutions=t.supportedImageResolutions,o.supportedVideoResolutions=t.supportedVideoResolutions),o}};i.camera=e}(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 a(e){this.code=e||null}var u,l,_="Contacts",f=(e=e).bridge,d=e.tools;function i(e,t,n,i,o,s,r,c,a,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=s||null,this.addresses=r||null,this.ims=c||null,this.organizations=a||null,this.birthday=u||null,this.note=l||null,this.photos=_||null,this.categories=f||null,this.urls=d||null}a.UNKNOWN_ERROR=0,a.INVALID_ARGUMENT_ERROR=1,a.TIMEOUT_ERROR=2,a.PENDING_OPERATION_ERROR=3,a.IO_ERROR=4,a.NOT_SUPPORTED_ERROR=5,a.PERMISSION_DENIED_ERROR=20;var t=i.prototype;function o(e){this.type=e}t.remove=function(e,t){var n=t&&function(e){t(new a(e))};null===this.id?n(a.UNKNOWN_ERROR):(n=f.callbackId(e,n),f.exec(_,"remove",[n,this.id,this.target],{cbid:n}))},t.clone=function(){var e=d.clone(this);function t(e){if(e)for(var t=e.length,n=0;n<t;++n)e[n].id=null}return e.id=null,t(e.phoneNumbers),t(e.emails),t(e.addresses),t(e.ims),t(e.organizations),t(e.categories),t(e.photos),t(e.urls),e},t.save=function(s,t){var r=this,c=function(e){t&&t(new a(e))},e=function(e){var t=e.birthday;if(null!==t){if(!d.isDate(t))try{t=new Date(t)}catch(e){t=null}d.isDate(t)&&(t=t.valueOf()),e.birthday=t}return e}(d.clone(this)),n=f.callbackId(function(e){if(e)try{var t=(0==r.target?u:l).create(e);s&&(i=function(e){var t=e.birthday;try{d.isDate(t)||(e.birthday=new Date(parseFloat(t)))}catch(e){console.log("Cordova Contact convertIn error: exception creating date.")}return e}(t),(o=r).id=i.id,n(i.phoneNumbers,o.phoneNumbers),n(i.emails,o.emails),n(i.addresses,o.addresses),n(i.ims,o.ims),n(i.organizations,o.organizations),n(i.categories,o.categories),n(i.photos,o.photos),n(i.urls,o.urls),s(r))}catch(e){console.log(e)}else c(a.UNKNOWN_ERROR);function n(e,t){if(e&&t)for(var n=e.length,i=0;i<n;++i)t[i].id=e[i].id}var i,o},c);f.exec(_,"save",[n,e,this.target],{cbid:n})};t=o.prototype;t.create=function(e){var t,n=new i;for(t in n.target=this.type,e)void 0!==n[t]&&e.hasOwnProperty(t)&&(n[t]=e[t]);return n},t.find=function(e,o,t,n){t=f.callbackId(function(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(u.create(e[n]));o(t)},t);f.exec(_,"search",[t,e,n],{cbid:t})};var s=e.contacts={getAddressBook:function(t,n,i){0===t&&1===t||(t=0);var e=f.callbackId(function(e){n&&(s.ADDRESSBOOK_PHONE==t?u=u||new o(0):l=l||new o(1),n(u))},function(e){i(new a(e))});f.exec(_,"getAddressBook",[e,t],{cbid:e})},ADDRESSBOOK_PHONE:0,ADDRESSBOOK_SIM:1}}(window.plus),function(e){var s=(e=e).bridge;e.device={imei:"",imsi:[],model:"",vendor:"",uuid:"",dial:function(e,t){s.exec("Device","dial",[e,t])},beep:function(e){s.exec("Device","beep",[e])},vibrate:function(e){s.exec("Device","vibrate",[e])},setWakelock:function(e){s.exec("Device","setWakelock",[e])},isWakelock:function(){return s.execSync("Device","isWakelock",[])},setVolume:function(e){s.execSync("Device","setVolume",[e])},getVolume:function(){return s.execSync("Device","getVolume",[])},execCallback:function(t,e){var n="function"!=typeof t.complete?function(){}:t.complete,i="function"!=typeof t.success?n:function(e){t.success(e),n(e)},o="function"!=typeof t.fail?n:function(e){t.fail(e),n(e)};callbackID=s.callbackId(i,o),s.exec("Device",e,[callbackID])},getInfo:function(e){this.execCallback(e,"getInfo")},getOAID:function(e){this.execCallback(e,"getOAID")},getVAID:function(e){this.execCallback(e,"getVAID")},getAAID:function(e){this.execCallback(e,"getAAID")},getDeviceId:function(){return s.execSync("Device","getDeviceId",[])}},e.os={language:"",version:"",name:"",vendor:""},e.screen={resolutionHeight:0,resolutionWidth:0,scale:1,dpiX:0,dpiY:0,height:0,width:0,setBrightness:function(e,t){s.execSync("Device","setBrightness",[e,t])},lockOrientation:function(e){s.exec("Device","lockOrientation",[e])},unlockOrientation:function(){s.exec("Device","unlockOrientation",[])},getBrightness:function(e){return s.execSync("Device","getBrightness",[e])},getCureentSize:function(){return s.execSync("Device","getCurrentSize",[])},getCurrentSize:function(){return s.execSync("Device","getCurrentSize",[])},isCaptured:function(){return s.execSync("Device","isCaptured",[])}},e.display={resolutionHeight:0,resolutionWidth:0},e.networkinfo={getCurrentType:function(){return s.execSync("Device","getCurrentType",null)},getCurrentAPN:function(){return s.execSync("Device","getCurrentAPN",null)},isSetProxy:function(){return s.execSync("Device","isSetProxy",null)}},e.networkinfo.CONNECTION_TYPE=0,e.networkinfo.CONNECTION_UNKNOW=0,e.networkinfo.CONNECTION_NONE=1,e.networkinfo.CONNECTION_ETHERNET=2,e.networkinfo.CONNECTION_WIFI=3,e.networkinfo.CONNECTION_CELL2G=4,e.networkinfo.CONNECTION_CELL3G=5,e.networkinfo.CONNECTION_CELL4G=6,e.networkinfo.CONNECTION_CELL5G=7}(window.plus),function(e){var i=(e=e).bridge,o=e.tools,s="Downloader",a=function(e,t){return void 0===e?t:e};function r(e,t,n){this.type=a(e,""),this.handles=[],this.capture=a(n,!1),"function"==typeof t&&this.handles.push(t)}function u(e,t,n){var i=this;i.id=o.UUID("dt"),i.url=a(e,""),i.downloadedSize=0,i.totalSize=0,i.options=t||{},i.filename=a(i.options.filename,""),i.method=a(i.options.method,"GET"),i.timeout=a(i.options.timeout,120),i.retry=a(i.options.retry,3),i.retryInterval=a(i.options.retryInterval,30),i.priority=a(i.options.priority,1),i.onCompleted=n||null,i.eventHandlers={},i.data=a(i.options.data,null),i.__requestHeaders__={},i.__responseHeaders__={},i.__noParseResponseHeader__=null,i.__cacheReponseHeaders__={}}r.prototype.fire=function(e){for(var t=0;t<this.handles.length;++t)this.handles[t].apply(this,arguments)};var t=u.prototype;t.getFileName=function(){return this.filename},t.start=function(){i.exec(s,"start",[this.id,this.__requestHeaders__])},t.pause=function(){i.exec(s,"pause",[this.id])},t.resume=function(){i.exec(s,"resume",[this.id])},t.abort=function(){i.exec(s,"abort",[this.id])},t.getAllResponseHeaders=function(){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__},t.getResponseHeader=function(e){if("string"!=typeof e)return"";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},t.setRequestHeader=function(e,t){var n;"string"==typeof e&&"string"==typeof t&&(n=this.__requestHeaders__[e],this.__requestHeaders__[e]=n?n+", "+t:t)},t.addEventListener=function(e,t,n){var i;"string"==typeof e&&"function"==typeof t&&(i=e.toLowerCase(),void 0===this.eventHandlers[i]?this.eventHandlers[i]=new r(e,t,n):this.eventHandlers[i].handles.push(t))},t.__handlerEvt__=function(e){var t=this;t.filename=a(e.filename,t.filename),t.state=a(e.state,t.state),t.downloadedSize=a(e.downloadedSize,t.downloadedSize),t.totalSize=a(e.totalSize,t.totalSize),t.__responseHeaders__=a(e.headers,{});var n=this.eventHandlers.statechanged;n&&n.fire(t,e.status||null),4==t.state&&"function"==typeof t.onCompleted&&t.onCompleted(t,e.status||null)};var l=e.downloader={__taskList__:[],createDownload:function(e,t,n){if("string"!=typeof e)return null;n=new u(e,t,n);return l.__taskList__[n.id]=n,i.exec(s,"createDownload",[n]),n},enumerate:function(c,e){var t=i.callbackId(function(e){for(var t=[],n=e.length,i=0,o=l.__taskList__;i<n;i++){var s,r=e[i];r&&r.uuid&&((s=o[r.uuid])||((s=new u).id=r.uuid,o[s.id]=s),s.state=a(r.state,s.state),s.options=a(r.options,s.options),s.filename=a(r.filename,s.filename),s.url=a(r.url,s.url),s.downloadedSize=a(r.downloadedSize,s.downloadedSize),s.totalSize=a(r.totalSize,s.totalSize),s.__responseHeaders__=a(e.headers,s.__responseHeaders__),t.push(s))}"function"==typeof c&&c(t)});i.exec(s,"enumerate",[t,e])},clear:function(e){var t=-1e4;("number"==typeof e||e instanceof Number)&&(t=e),i.exec(s,"clear",[t])},startAll:function(){i.exec(s,"startAll",[0])},__handlerEvt__:function(e,t){var n=l.__taskList__[e];n&&(6==t.state&&delete l.__taskList__[e],n.__handlerEvt__(t))}}}(window.plus),function(e){var i=(e=e).bridge,o="fingerprint";function s(e,t){this.code=e,this.message=t,this.UNSUPPORT=1,this.KEYGUARD_INSECURE=2,this.FINGERPRINT_UNENROLLED=3,this.AUTHENTICATE_MISMATCH=4,this.AUTHENTICATE_OVERLIMIT=5,this.CANCEL=6,this.UNKNOWN_ERROR=7}e.fingerprint={isSupport:function(){return i.execSync(o,"isSupport")},isEnrolledFingerprints:function(){return i.execSync(o,"isEnrolledFingerprints")},isKeyguardSecure:function(){return i.execSync(o,"isKeyguardSecure")},authenticate:function(t,n,e){callbackID=i.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(new s(e.code,e.message))}),i.exec(o,"authenticate",[callbackID,e])},cancel:function(){return i.exec(o,"cancel")}}}(window.plus),function(e){var s=(e=e).bridge,r="Gallery",c=0,a=1;function u(e,t){this.code=e||null,this.message=t||""}u.BUSY=1;var l=e.gallery={__galleryStatus:c,onPickImageFinished:null,pick:function(n,t,e){var i,o;a!=l.__galleryStatus?(l.__galleryStatus=a,i=s.callbackId(function(e){var t;l.__galleryStatus=c,"function"==typeof n&&(e&&e.multiple?((t={}).files=e.files,n(t)):n(e.files[0]))},function(e){l.__galleryStatus=c,"function"==typeof t&&t(e)}),o=s.callbackId(function(){"function"==typeof e.onmaxed&&e.onmaxed()}),s.exec(r,"pick",[i,e,o],{cbid:i})):window.setTimeout(function(){"function"==typeof t&&t(new u(u.BUSY,"The album has been opened"))},0)},save:function(e,t,n){if("string"!=typeof e)return!1;var i=s.callbackId(function(e){"function"==typeof t&&t(e)},function(e){"function"==typeof n&&n(e)});return s.exec(r,"save",[e,i],{cbid:i}),!0},compress:function(e,t,n){if("string"!=typeof e)return!1;var i=s.callbackId(function(e){"function"==typeof t&&t(e)},function(e){"function"==typeof n&&n(e)});return s.exec(r,"compress",[e,i],{cbid:i}),!0}}}(window.plus),function(e){var r="Geolocation",c=(e=e).bridge,a=e.tools,u={};function n(e,t,n,i,o,s,r){this.latitude=e,this.longitude=t,this.accuracy=void 0!==i?i:null,this.altitude=void 0!==n?n:null,this.heading=void 0!==o?o:null,this.speed=void 0!==s?s:null,0!==this.speed&&null!==this.speed||(this.heading=NaN),this.altitudeAccuracy=void 0!==r?r:null}function l(e,t){e?(this.coordsType=e.coordsType,this.address=e.address,this.addresses=e.addresses,this.coords=new n(e.latitude,e.longitude,e.altitude,e.accuracy,e.heading,e.velocity,e.altitudeAccuracy)):this.coords=new n,this.timestamp=void 0!==t?t:(new Date).getTime()}function _(e,t){this.code=e||null,this.message=t||""}function f(e){var t={maximumAge:1e3,enableHighAccuracy:!1,timeout:1/0,geocode:!0};return e&&(void 0!==e.maximumAge&&!isNaN(e.maximumAge)&&0<e.maximumAge&&(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 d(e,t){var n=setTimeout(function(){h(n),n=null,e(new _(_.TIMEOUT,"Position retrieval timed out."))},t);return n}function h(e){!0!==e&&clearTimeout(e)}_.PERMISSION_DENIED=1,_.POSITION_UNAVAILABLE=2,_.TIMEOUT=3,_.UNKNOWN_ERROR=4;var p=e.geolocation={lastPosition:null,getCurrentPosition:function(e,t,n){y(e,t,n,!0)},watchPosition:function(t,n,i){i=f(i);var o=a.UUID("timer");u[o]=y(t,n,i,!1);function s(e){u[o].isStop=!0,h(u[o].timer),e=new _(e.code,e.message),n&&n(e)}var e=c.callbackId(function(e){u[o].isStop||(h(u[o].timer),i.timeout!==1/0&&(u[o].timer=d(s,i.timeout)),e=new l({latitude:e.latitude,longitude:e.longitude,altitude:e.altitude,accuracy:e.accuracy,heading:e.heading,velocity:e.velocity,coordsType:e.coordsType,address:e.address,addresses:e.addresses,altitudeAccuracy:e.altitudeAccuracy},void 0===e.timestamp?(new Date).getTime():e.timestamp instanceof Date?e.timestamp.getTime():e.timestamp),p.lastPosition=e,t(e))},s);return c.exec(r,"watchPosition",[e,o,i.enableHighAccuracy,i.coordsType,i.provider,i.geocode,i.timeout,i.maximumAge],{cbid:e,l:location.href}),o},clearWatch:function(e){e&&void 0!==u[e]&&(h(u[e].timer),u[e].isStop=!0,u[e].timer=!1,c.exec(r,"clearWatch",[e]))}};function y(t,n,e,i){e=f(e);var o={timer:null,isStop:!1},s=function(e){h(o.timer),o.timer=null;e=new _(e.code,e.message);n&&n(e)};return p.lastPosition&&e.maximumAge&&(new Date).getTime()-p.lastPosition.timestamp<=e.maximumAge?t(p.lastPosition):0===e.timeout?s(new _(_.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.")):(e.timeout!==1/0?o.timer=d(s,e.timeout):o.timer=!0,i&&(s=c.callbackId(function(e){h(o.timer),o.timer&&(e=new l({latitude:e.latitude,longitude:e.longitude,altitude:e.altitude,accuracy:e.accuracy,heading:e.heading,velocity:e.velocity,coordsType:e.coordsType,address:e.address,addresses:e.addresses,altitudeAccuracy:e.altitudeAccuracy},void 0===e.timestamp?(new Date).getTime():e.timestamp instanceof Date?e.timestamp.getTime():e.timestamp),p.lastPosition=e,t(e))},s),c.exec(r,"getCurrentPosition",[s,e.enableHighAccuracy,e.maximumAge,e.coordsType,e.provider,e.geocode,e.timeout],{cbid:s,l:location.href}))),o}}(window.plus),function(e){var r=(e=e).bridge,c=(e.tools,[]),a={NATIVEF:"File",exec:function(e,t,n,i){t=r.callbackId(e,t);r.exec(a.NATIVEF,n,[t,i])}};function u(e){this.code=e.code||null,this.message=e.message||""}function l(e){var t="unknown error";switch(e){case u.NOT_FOUND_ERR:t="file not found";break;case u.SECURITY_ERR:t="not authorized";break;case u.ABORT_ERR:t="cancel";break;case u.NOT_READABLE_ERR:t="not allowed to read";break;case u.ENCODING_ERR:t="Coding error";break;case u.NO_MODIFICATION_ALLOWED_ERR:t="no modification allowed";break;case u.INVALID_STATE_ERR:t="invalid state";break;case u.SYNTAX_ERR:t="syntax error";break;case u.INVALID_MODIFICATION_ERR:t="invalid modification";break;case u.QUOTA_EXCEEDED_ERR:t="execution error";break;case u.TYPE_MISMATCH_ERR:t="type mismatch";break;case u.PATH_EXISTS_ERR:t="the path exists"}return{code:e,message:t}}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 _(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}u.NOT_FOUND_ERR=1,u.SECURITY_ERR=2,u.ABORT_ERR=3,u.NOT_READABLE_ERR=4,u.ENCODING_ERR=5,u.NO_MODIFICATION_ALLOWED_ERR=6,u.INVALID_STATE_ERR=7,u.SYNTAX_ERR=8,u.INVALID_MODIFICATION_ERR=9,u.QUOTA_EXCEEDED_ERR=10,u.TYPE_MISMATCH_ERR=11,u.PATH_EXISTS_ERR=12;var t=_.prototype;function o(e){this.modificationTime=void 0!==e?new Date(e):null,this.size=0,this.directoryCount=0,this.fileCount=0}function n(e,t,n,i,o,s){this.isFile=void 0!==e&&e,this.isDirectory=void 0!==t&&t,this.name=n||"",this.fullPath=i||"",this.fileSystem=o||null,this.__PURL__=s||"",this.__remoteURL__=s?"http://localhost:13131/"+s:""}t.slice=function(e,t,n){var i=0<this.size?this.size-1:0,o=0,s=i;if(arguments.length&&(o=e<0?Math.max(i+e,0):Math.min(i,e)),(s=2<=arguments.length?t<0?Math.max(i+t,0):Math.min(t,i):s)<o)return null;i=new _(this.name,this.fullPath,this.type,this.lastModifiedDate,s-o+1);return i.start=o,i.end=s,i},t.close=function(){};var s=n.prototype;function f(e,t,n,i){s.constructor.apply(this,[!0,!1,e,t,n,i])}function d(e,t,n,i){s.constructor.apply(this,[!1,!0,e,t,n,i])}s.getMetadata=function(n,t,e){a.exec("function"!=typeof n?null:function(e){var t=new o(e.lastModifiedDate);t.size=e.size,t.directoryCount=e.directoryCount,t.fileCount=e.fileCount,n(t)},"function"!=typeof t?null:function(e){t(new u(e))},"getMetadata",[this.fullPath,e])},s.setMetadata=function(e,t,n){a.exec(e,t,"setMetadata",[this.fullPath,n])},s.moveTo=function(e,t,n,i){function o(e){"function"==typeof i&&i(new u(e))}var s,r=this;e?(s=this.fullPath,t=t||this.name,a.exec(function(e){if(e){if("function"==typeof n){e=new(e.isDirectory?d:f)(e.name,e.fullPath,r.fileSystem,e.remoteURL);try{n(e)}catch(e){}}}else o(l(u.NOT_FOUND_ERR))},o,"moveTo",[s,e.fullPath,t])):o(l(u.NOT_FOUND_ERR))},s.copyTo=function(e,t,n,i){function o(e){"function"==typeof i&&i(new u(e))}var s,r=this;e?(s=this.fullPath,t=t||this.name,a.exec(function(e){if(e){if("function"==typeof n){e=e.isDirectory?new d(e.name,e.fullPath,e.fileSystem,r.remoteURL):new f(e.name,e.fullPath,r.fileSystem,e.remoteURL);try{n(e)}catch(e){}}}else o(l(u.NOT_FOUND_ERR))},o,"copyTo",[s,e.fullPath,t])):o(l(u.NOT_FOUND_ERR))},s.remove=function(e,t){a.exec(e,"function"!=typeof t?null:function(e){t(new u(e))},"remove",[this.fullPath])},s.toURL=function(){return this.__PURL__},s.toLocalURL=function(){return"file://"+this.fullPath},s.toRemoteURL=function(){return this.__remoteURL__},s.getParent=function(t,n){var i=this;a.exec("function"!=typeof t?null:function(e){e=new d(e.name,e.fullPath,i.fileSystem,e.remoteURL);t(e)},"function"!=typeof n?null:function(e){n(new u(e))},"getParent",[this.fullPath])},((f.prototype=new n).constructor=f).prototype.createWriter=function(t,n){this.file(function(e){e=new y(e);null===e.fileName||""===e.fileName?"function"==typeof n&&n(new u(l(u.INVALID_STATE_ERR))):"function"==typeof t&&t(e)},n)},f.prototype.file=function(t,n){a.exec("function"!=typeof t?null:function(e){e=new _(e.name,e.fullPath,e.type,e.lastModifiedDate,e.size);t(e)},"function"!=typeof n?null:function(e){n(new u(e))},"getFileMetadata",[this.fullPath])};t=new n;function h(e,t){this.path=e||null,this.__fileSystem__=t||null}function p(){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}(d.prototype=t).constructor=d,t.createReader=function(){return new h(this.fullPath,this.fileSystem)},t.getDirectory=function(e,t,n,i){var o=this;a.exec("function"!=typeof n?null:function(e){e=new d(e.name,e.fullPath,o.fileSystem,e.remoteURL);n(e)},"function"!=typeof i?null:function(e){i(new u(e))},"getDirectory",[this.fullPath,e,t])},t.removeRecursively=function(e,t){a.exec(e,"function"!=typeof t?null:function(e){t(new u(e))},"removeRecursively",[this.fullPath])},t.getFile=function(e,t,n,i){var o=this;a.exec("function"!=typeof n?null:function(e){e=new f(e.name,e.fullPath,o.fileSystem,e.remoteURL);n(e)},"function"!=typeof i?null:function(e){i(new u(e))},"getFile",[this.fullPath,e,t])},h.prototype.readEntries=function(o,t){var s=this,e="function"!=typeof o?null:function(e){for(var t=[],n=0;n<e.length;n++){var i=null;e[n].isDirectory?i=new d(e[n].name,e[n].fullPath,s.__fileSystem__,e[n].remoteURL):e[n].isFile&&(i=new f(e[n].name,e[n].fullPath,s.__fileSystem__,e[n].remoteURL)),t.push(i)}o(t)};a.exec(e,"function"!=typeof t?null:function(e){t(new u(e))},"readEntries",[this.path])},p.EMPTY=0,p.LOADING=1,p.DONE=2;t=p.prototype;function y(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}t.abort=function(){this.result=null,this.readyState!=p.DONE&&this.readyState!=p.EMPTY&&(this.readyState=p.DONE,"function"==typeof this.onabort&&this.onabort(new i("abort",{target:this})),"function"==typeof this.onloadend&&this.onloadend(new i("loadend",{target:this})))},t.readAsText=function(e,t){if(this.fileName="",void 0===e.fullPath?this.fileName=e:this.fileName=e.fullPath,this.readyState==p.LOADING)throw new u(u.INVALID_STATE_ERR);this.readyState=p.LOADING,"function"==typeof this.onloadstart&&this.onloadstart(new i("loadstart",{target:this}));var n=this;a.exec(function(e){n.readyState!==p.DONE&&(n.result=e,"function"==typeof n.onload&&n.onload(new i("load",{target:n})),n.readyState=p.DONE,"function"==typeof n.onloadend&&n.onloadend(new i("loadend",{target:n})))},function(e){n.readyState!==p.DONE&&(n.readyState=p.DONE,n.result=null,n.error=new u(e),"function"==typeof n.onerror&&n.onerror(new i("error",{target:n})),"function"==typeof n.onloadend&&n.onloadend(new i("loadend",{target:n})))},"readAsText",[this.fileName,t||"UTF-8",e.start,e.end])},t.readAsDataURL=function(e){if(this.fileName="",void 0===e.fullPath?this.fileName=e:this.fileName=e.fullPath,this.readyState==p.LOADING)throw new u(u.INVALID_STATE_ERR);this.readyState=p.LOADING,"function"==typeof this.onloadstart&&this.onloadstart(new i("loadstart",{target:this}));var t=this;a.exec(function(e){t.readyState!==p.DONE&&(t.readyState=p.DONE,t.result=e,"function"==typeof t.onload&&t.onload(new i("load",{target:t})),"function"==typeof t.onloadend&&t.onloadend(new i("loadend",{target:t})))},function(e){t.readyState!==p.DONE&&(t.readyState=p.DONE,t.result=null,t.error=new u(e),"function"==typeof t.onerror&&t.onerror(new i("error",{target:t})),"function"==typeof t.onloadend&&t.onloadend(new i("loadend",{target:t})))},"readAsDataURL",[this.fileName,e.start,e.end])},t.readAsBase64=function(e){if(this.fileName="",void 0===e.fullPath?this.fileName=e:this.fileName=e.fullPath,this.readyState==p.LOADING)throw new u(u.INVALID_STATE_ERR);this.readyState=p.LOADING,"function"==typeof this.onloadstart&&this.onloadstart(new i("loadstart",{target:this}));var t=this;a.exec(function(e){t.readyState!==p.DONE&&(t.readyState=p.DONE,t.result=e,"function"==typeof t.onload&&t.onload(new i("load",{target:t})),"function"==typeof t.onloadend&&t.onloadend(new i("loadend",{target:t})))},function(e){t.readyState!==p.DONE&&(t.readyState=p.DONE,t.result=null,t.error=new u(e),"function"==typeof t.onerror&&t.onerror(new i("error",{target:t})),"function"==typeof t.onloadend&&t.onloadend(new i("loadend",{target:t})))},"readAsBase64",[this.fileName,e.start,e.end])},t.readAsArrayBuffer=function(e){},y.INIT=0,y.WRITING=1,y.DONE=2;t=y.prototype;function v(e,t){this.name=e||null,this.root=null,t&&(this.root=new d(t.name,t.fullPath,this,t.remoteURL))}function g(t,e,n){var i="function"!=typeof t.complete?function(){}:t.complete,o="function"!=typeof t.success?i:function(e){t.success(e),i(e)},s="function"!=typeof t.fail?i:function(e){t.fail(e),i(e)};callbackID=r.callbackId(o,s),r.exec(a.NATIVEF,e,[callbackID,n()])}t.abort=function(){if(this.readyState===y.DONE||this.readyState===y.INIT)throw new u(l(u.INVALID_STATE_ERR));this.error=new u(l(u.ABORT_ERR)),this.readyState=y.DONE,"function"==typeof this.onabort&&this.onabort(new i("abort",{target:this})),"function"==typeof this.onwriteend&&this.onwriteend(new i("writeend",{target:this}))},t.write=function(e){var t=this;if("string"!=typeof e)throw new u(u.TYPE_MISMATCH_ERR);if(this.readyState===y.WRITING)throw new u(u.INVALID_STATE_ERR);this.readyState=y.WRITING,"function"==typeof t.onwritestart&&t.onwritestart(new i("writestart",{target:t})),a.exec(function(e){t.readyState!==y.DONE&&(t.position+=e,t.length+=e,t.readyState=y.DONE,"function"==typeof t.onwrite&&t.onwrite(new i("write",{target:t})),"function"==typeof t.onsuccess&&t.onsuccess(new i("success",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new i("writeend",{target:t})))},function(e){t.readyState!==y.DONE&&(t.readyState=y.DONE,t.error=new u(e),"function"==typeof t.onerror&&t.onerror(new i("error",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new i("writeend",{target:t})))},"write",[this.fileName,e,this.position])},t.writeAsBinary=function(e){var t=this;if("string"!=typeof e)throw new u(u.TYPE_MISMATCH_ERR);if(this.readyState===y.WRITING)throw new u(u.INVALID_STATE_ERR);this.readyState=y.WRITING,"function"==typeof t.onwritestart&&t.onwritestart(new i("writestart",{target:t})),a.exec(function(e){t.readyState!==y.DONE&&(t.position+=e,t.length+=e,t.readyState=y.DONE,"function"==typeof t.onwrite&&t.onwrite(new i("write",{target:t})),"function"==typeof t.onsuccess&&t.onsuccess(new i("success",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new i("writeend",{target:t})))},function(e){t.readyState!==y.DONE&&(t.readyState=y.DONE,t.error=new u(e),"function"==typeof t.onerror&&t.onerror(new i("error",{target:t})),"function"==typeof t.onwriteend&&t.onwriteend(new i("writeend",{target:t})))},"writeAsBinary",[this.fileName,e,this.position])},t.seek=function(e){if(this.readyState===y.WRITING)throw new u(u.INVALID_STATE_ERR);!e&&0!==e||(e<0?this.position=Math.max(e+this.length,0):e>this.length?this.position=this.length:this.position=e)},t.truncate=function(e){if(this.readyState===y.WRITING)throw new u(u.INVALID_STATE_ERR);this.readyState=y.WRITING;var t=this;"function"==typeof t.onwritestart&&t.onwritestart(new i("writestart",{target:this})),a.exec(function(e){t.readyState!==y.DONE&&(t.readyState=y.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!==y.DONE&&(t.readyState=y.DONE,t.error=new u(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])},e.io={FileSystem:v,DirectoryEntry:d,DirectoryReader:h,FileReader:p,FileWriter:y,requestFileSystem:function(t,n,i){function o(e){"function"==typeof i&&i(new u(e))}var s,e;t<1||4<t?o(l(u.SYNTAX_ERR)):(e=function(e){e?"function"==typeof n&&(s||(s=new v(e.name,e.root),c[t]=s),n(s)):o(l(u.NOT_FOUND_ERR))},(s=c[t])?window.setTimeout(e(s),0):a.exec(e,o,"requestFileSystem",[t]))},resolveLocalFileSystemURL:function(e,n,t){function i(e){t&&t(new u(e))}"string"==typeof e?a.exec(function(e){var t;e?n&&((t=c[e.type])||(t=new v(e.fsName,e.fsRoot),c[e.type]=t),e=new(e.isDirectory?d:f)(e.name,e.fullPath,t,e.remoteURL),n(e)):i(l(u.NOT_FOUND_ERR))},i,"resolveLocalFileSystemURL",[e]):setTimeout(function(){i(l(u.ENCODING_ERR))},0)},convertLocalFileSystemURL:function(e){return r.execSync(a.NATIVEF,"convertLocalFileSystemURL",[e])},convertAbsoluteFileSystem:function(e){return r.execSync(a.NATIVEF,"convertAbsoluteFileSystem",[e])},getImageInfo: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)},o="string"!=typeof t.savePath?"":t.savePath;callbackID=r.callbackId(e,i),r.exec(a.NATIVEF,"getImageInfo",[callbackID,t.src,o])},getFileInfo:function(e){g(e,"getFileInfo",function(){return{filePath:e.filePath,digestAlgorithm:e.digestAlgorithm}})},getAudioInfo:function(e){g(e,"getAudioInfo",function(){return{filePath:e.filePath}})},getVideoInfo:function(e){g(e,"getVideoInfo",function(){return{filePath:e.filePath}})},chooseFile:function(e,t,n){callbackID=r.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)}),r.exec(a.NATIVEF,"chooseFile",[callbackID,e])},PRIVATE_WWW:1,PRIVATE_DOC:2,PUBLIC_DOCUMENTS:3,PUBLIC_DOWNLOADS:4}}(window.plus),function(u){var u=u,l=window.plus.bridge,s=window.plus.tools;_Server="Invocation",_importHash=[],_frameObjHash={},_currentFrameObj=null;var _={},f={};_.undefObjectHash={};var a="";function r(e,t){this.type=e,this.value=t}function c(){this.__TYPE__="JSBObject",this.__UUID__=s.UUID("JSBaseObject")}function n(e,t){e=d(e);var o=this;this.__UUID__=s.UUID("JSImplements"),this.callback=t,this.callbackId=l.callbackId(function(e){for(var t=e.arguments,n=[],i=0;i<t.length;i++)n.push(u.ios.__Tool.New(t[i],!0));o.callback[e.method].apply(o,n)},null);var n,i=[];for(n in t)i.push(n);e=l.execSync2(_Server,"implements",[this.__UUID__,e,i,this.callbackId],null,!0);return u.ios.__Tool.New(e,!0)}function e(){this.__Tool=_,this.__JSBBaseObject=c}u.tools.IOS==u.tools.platform?a+="plus.ios.":u.tools.ANDROID==u.tools.platform&&(a+="plus.android."),_.process=function(e){for(var t=[],n=0;n<e.length;n++)t.push(this.warp(e[n]));return t},_.attach=function(e,t){var n=this.undefObjectHash[e];if(n&&t){for(var i=0;i<n.length;i++)n[i].__proto__=t.prototype;delete this.undefObjectHash.className}},_.New=function(e,t){var n=null;if(e){if("object"==e.type){var i,o=f.isImport(e.className);if(o)n=new o(t);else{if(e.superClassNames)for(var s=0;s<e.superClassNames.length&&!(o=f.isImport(e.superClassNames[s]));s++);o?n=new o(t):(n=new c,(i=this.undefObjectHash[e.className])||(this.undefObjectHash[e.className]=i=[]),i.push(n))}return n.className=e.className,n.__UUID__=e.value,n}if("struct"==e.type)return new r(e.type,e.value);if(e.value instanceof Array)for(s=0;s<e.value.length;s++)e.value[s]=_.New(e.value[s],t);return e.value}return null},_.handleClassName=function(e){return e.replace("$",".")},_.saveContent=function(e,t){l.execSync2(_Server,"__saveContent",[e,t],null,!0)},_.warp=function(i){var e,t={};return i&&"JSBObject"==i.__TYPE__?(t.type="object",t.value=i.__UUID__):i instanceof r?(t.type=i.type,t.value=i.value,0==i.type.indexOf("@block")&&(t.type=i.type,e=l.callbackId(function(e){i.value;for(var t=[],n=0;n<e.length;n++)t.push(u.ios.__Tool.New(e[n],!0));i.value.apply(this,t)}),t.value=e,alert(t.value))):void 0===i||null==i?(t.type="null",t.value=i):"string"==typeof i||"String"==typeof i?(t.type="string",t.value=i):"number"==typeof i?(t.type="number",t.value=i):"boolean"==typeof i?(t.type="boolean",t.value=i):"function"==typeof i?(t.type="block",e=l.callbackId(function(e){for(var t=[],n=0;n<e.length;n++)t.push(u.ios.__Tool.New(e[n],!0));i.apply(this,t)}),t.value=e):u.tools.IOS==u.tools.platform&&"object"==typeof i?(t.type="jsonObject",t.value=i):t=i,t},r.prototype.constructor=r,c.prototype.plusSetAttribute=function(){var e=null;try{for(var t=[],n=1;n<arguments.length;n++)t.push(_.warp(arguments[n]));e=u.bridge.execSync2(_Server,"__plusSetAttribute",[this.__UUID__,arguments[0],t],null,!0),e=_.New(e,!0)}catch(e){throw e}return e},c.prototype.plusGetAttribute=function(e){var t=null;try{t=u.bridge.execSync2(_Server,"__plusGetAttribute",[this.__UUID__,e],null,!0),t=u.ios.__Tool.New(t,!0)}catch(e){throw e}return t},c.prototype.importClass=function(){return u.android.importClass(this)},c.prototype.plusCallMethod=function(e){var t=null;try{var n,i="",o=[],s=0;for(n in e){if("string"!=typeof n)return;var r=e[n];if(0==s){if(i=n,void 0===r){s++;break}i+=":"}else i+=n+":";o.push(r),s++}if(0==s)return;o=window.plus.ios.__Tool.process(o),t=window.plus.bridge.execSync2(_Server,"__exec",[this.__UUID__,i,o],null,!0);t=u.ios.__Tool.New(t,!0)}catch(e){throw e}return t},(n.prototype=new c).constructor=n,f.hashTable={},f.importClass=function(e,t){var n=this.isImport(e);if(n)return n;for(var i=this.newClassDefine(e,t),t=l.execSync2(_Server,"import",[e],null,!0),o=t.ClassMethod,s=0;s<o.length;s++)i+=this.AddMethodToClass(e,o[s],!0);for(var r=t.InstanceMethod,s=0;s<r.length;s++)i+=this.AddMethodToClass(e,r[s]);if(u.tools.ANDROID==u.tools.platform)for(var c=t.ClassConstKeys,a=t.ClassConstValues,s=0;s<c.length;s++)i+=this.AddStaticConstToClass(e,c[s],a[s]);return this.hashTable[e]=n=f.createClass(e,i),_.attach(e,n),n},f.isImport=function(e){return f.hashTable[e]},f.newClassDefine=function(e,t){var n="",i=e;e=_.handleClassName(e),t=t&&_.handleClassName(t);for(var o=a+t,s=(e=a+e).split("."),r="window",c=0;c<s.length-1;c++)n+="if(!"+(r=r+"."+s[c])+")",n+=r+"={};";return n+=r+"."+s[s.length-1]+"=",n+="function(nocreate) {            this.__UUID__ = window.plus.tools.UUID('JSB');            this.__TYPE__ = 'JSBObject';            var args = window.plus.ios.__Tool.process(arguments);            if ( nocreate && plus.tools.IOS == plus.tools.platform ) {} else {                window.plus.bridge.execSync2('"+_Server+"', '__Instance',[this.__UUID__, '"+i+"',args],null,true);            }        };",(t=t?o:"plus.ios.__JSBBaseObject")&&(n+=e+".prototype = new "+t+"('__super__constructor__');",n+=e+".prototype.constructor = "+e+";"),n},f.createClass=function(e,t){e=_.handleClassName(e);e="(function(plus){"+t+"return "+a+e+";})(window.plus);";return window.eval(e)},f.AddStaticConstToClass=function(e,t,n){var i;return e=_.handleClassName(e),n instanceof Array&&0==n.length?(i=a+e+"."+t+"=[];",i+=a+e+".prototype."+t+"=[];"):(i=a+e+"."+t+"="+n+";",i+=a+e+".prototype."+t+"="+n+";"),i},f.AddMethodToClass=function(e,t,n){var i=e;e=_.handleClassName(e);var o="";if(u.tools.IOS==u.tools.platform){var s=t.split(":"),r=s.length;if(0<r)for(var c=0;c<r;c++)o+=s[c];else o=s}else o=t;return e=n?a+e+"."+o:a+e+".prototype."+o,e+=" = function (){            var ret = null;            try {                var args = window.plus.ios.__Tool.process(arguments);",e+=n?"ret = window.plus.bridge.execSync2('"+_Server+"', '__execStatic', ['"+i+"', '"+t+"', args],null,true);":"ret = window.plus.bridge.execSync2('"+_Server+"', '__exec', [this.__UUID__, '"+t+"', args],null,true);",e+="ret = plus.ios.__Tool.New(ret, true);            } catch (e) {                throw e;            }            return ret;        };"},e.prototype.requestPermissions=function(e,t,n){Array.isArray(e)?(t=l.callbackId(t,n),l.exec(_Server,"requestPermissions",[t,e])):n({code:"-1",message:"Request permission must be array type"})},e.prototype.checkPermission=function(e,t,n){Array.isArray(e)?n():(n=l.callbackId(t,n),l.exec(_Server,"checkPermission",[n,e]))},e.prototype.importClass=function(e){var t,n;if((e=d(e)).__TYPE__){if(!e.className)return;n=e.__UUID__,e=(t=e).className}var i=f.isImport(e);if(i)return i;var o=l.execSync2(_Server,"__inheritList",[e,n],null,!0);if(o){for(var s=o.length,r=s-1;0<=r;r--)i=r==s-1?f.importClass(o[r],null):f.importClass(o[r],o[r+1]);return t&&(t.__proto__=i.prototype),i}return null},e.prototype.invoke=function(e,t){for(var n=null,i=[],o=2;o<arguments.length;o++)i.push(window.plus.ios.__Tool.warp(arguments[o]));if("string"==typeof e)try{n=window.plus.bridge.execSync2(_Server,"__execStatic",[e,t,i],null,!0)}catch(e){throw e}else e&&"JSBObject"==e.__TYPE__?n=window.plus.bridge.execSync2(_Server,"__exec",[e.__UUID__,t,i],null,!0):null==e&&"string"==typeof t&&(n=window.plus.bridge.execSync2(_Server,"__execCFunction",[t,i],null,!0));return n=u.ios.__Tool.New(n,!0)},e.prototype.autoCollection=function(e){e&&"JSBObject"==e.__TYPE__&&window.plus.bridge.execSync2(_Server,"__autoCollection",[e.__UUID__],null,!0)},e.prototype.setAttribute=function(e,t,n){"function"==typeof e||e&&"JSBObject"==e.__TYPE__&&e.plusSetAttribute(t,n)},e.prototype.getAttribute=function(e,t){return"function"!=typeof e&&e&&"JSBObject"==e.__TYPE__?e.plusGetAttribute(t):null},e.prototype.load=function(e){window.plus.bridge.execSync2(_Server,"__loadDylib",[e],null,!0)},e.prototype.newObject=function(e,t){var n=null;if("string"==typeof e){for(var i=[],o=1;o<arguments.length;o++)i.push(window.plus.ios.__Tool.warp(arguments[o]));n=window.plus.bridge.execSync2(_Server,"__newObject",[e,i],null,!0)}return(n=u.ios.__Tool.New(n,!0))?n:new r(e,t)},e.prototype.currentWebview=function(){var e;return _currentFrameObj||(e=window.plus.bridge.execSync2(_Server,"currentWebview",[],null,!0),_currentFrameObj=u.ios.__Tool.New(e,!0)),_currentFrameObj},e.prototype.getWebviewById=function(e){if(e===window.__HtMl_Id__)return this.currentWebview();var t=_frameObjHash[e];return t||(t=window.plus.bridge.execSync2(_Server,"getWebviewById",[e],null,!0),(t=u.ios.__Tool.New(t,!0))&&(_frameObjHash[e]=t)),t},e.prototype.deleteObject=function(e){l.execSync2(_Server,"__release",[e.__UUID__],null,!0)},e.prototype.implements=function(e,t){return new n(e,t)};var o={"io.dcloud.adapter.":"io.dcloud.common.adapter.","io.dcloud.android.content.":"io.dcloud.feature.internal.reflect.","io.dcloud.app.":"io.dcloud.common.app.","io.dcloud.constant.":"io.dcloud.common.constant.","io.dcloud.core.":"io.dcloud.common.core.","io.dcloud.DHInterface.":"io.dcloud.common.DHInterface.","io.dcloud.net.":"io.dcloud.common.util.net.","io.dcloud.permission.":"io.dcloud.common.core.permission.","io.dcloud.sdk.":"io.dcloud.feature.internal.sdk.","io.dcloud.splash.":"io.dcloud.feature.internal.splash.","io.dcloud.ui.":"io.dcloud.common.core.ui.","io.dcloud.util.":"io.dcloud.common.util."};function d(e){if("string"!=typeof e||s.platform==s.IOS)return e;var t,n,i;for(i in o)if(0==e.indexOf(i)){n=o[t=i];break}return n&&e?e.replace(t,n):e}u.ios=u.android=new e,u.tools.ANDROID==u.tools.platform&&(u.android.runtimeMainActivity=function(){if(u.android.__runtimeMainActivity__)return u.android.__runtimeMainActivity__;var t,e=u.bridge.callbackId(function(e){t.onActivityResult&&t.onActivityResult(e[0],e[1],e[2])}),e=(t=u.bridge.execSync2(_Server,"getContext",[e],null,!0)).className;return t.superClassNames=[],t=u.ios.__Tool.New(t,!0),u.android.importClass(e),u.android.__runtimeMainActivity__=t})}(window.plus),function(u){var s=(u=u).bridge,l=u.tools,_="Maps",o="createObject",i="updateObject",r="updateObjectSYNC",c="execMethod",f={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])}},d={};function h(e,t,n,i){return l.ANDROID==l.platform?s.exec(_,o,[l.stringify([e,t,n,i])],null):s.exec(_,o,[e,t,n,i],null)}function p(e,t,n){return l.ANDROID==l.platform?s.exec(_,i,[l.stringify([e,[t,n]])],null):s.exec(_,i,[e,[t,n]],null)}function a(e,t,n){return l.ANDROID==l.platform?s.exec(_,c,[l.stringify([e,[t,n]])],null):s.exec(_,c,[e,[t,n]],null)}function y(e,t,n,i,o){var s,r;r={zoom:12,type:"MAPTYPE_NORMAL",traffic:!1,zoomControls:!1},(s=t)&&s.center instanceof w&&(r.center=s.center),s&&"number"==typeof s.zoom&&s.zoom<=22&&1<=s.zoom&&(r.zoom=s.zoom),!s||"MAPTYPE_NORMAL"!=s.type&&"MAPTYPE_SATELLITE"!=s.type||(r.type=s.type),s&&"boolean"==typeof s.traffic&&(r.traffic=s.traffic),s&&"boolean"==typeof s.zoomControls&&(r.zoomControls=s.zoomControls),s&&"string"==typeof s.position&&(r.position=s.position),s&&(r.top=s.top,r.left=s.left,r.width=s.width,r.height=s.height),t=r;var c,a=this;this.IDENTITY=_,this._UUID_=o||l.UUID("map"),this._map_id_=n,this._ui_div_id_=e,this.__showUserLocationVisable__=!1,this.center=t.center||new u.maps.Point(116.39716,39.91669),this.zoom=t.zoom,this.userLocation=null,this.mapType=t.type,this.zoomControlsVisable=t.zoomControls,this.trafficVisable=t.traffic,this.visable=!0,this.onclick=function(e){},this.onstatuschanged=function(){},f.pushCallback(this._UUID_,function(e,t){var n;"click"==t.callbackType?a.onclick&&a.onclick(t.payload):"change"==t.callbackType&&(a&&(a.zoom=t.zoom),a.onstatuschanged&&((n={}).target=a,n.zoom=t.zoom,n.center=new w(t.center.long,t.center.lat),t.northease&&(n.bounds=new g(new w(t.northease.long,t.northease.lat),new w(t.southwest.long,t.southwest.lat))),a.onstatuschanged(n)))}),i||(i=[t],(c=document.getElementById(this._ui_div_id_))&&(u.tools.platform==u.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[c.offsetLeft,c.offsetTop,c.offsetWidth,c.offsetHeight];p(a._UUID_,"resize",e)},200)},!1):c.addEventListener("resize",function(){var e=[c.offsetLeft,c.offsetTop,c.offsetWidth,c.offsetHeight];p(a._UUID_,"resize",e)},!1),i=[t,c.offsetLeft,c.offsetTop,c.offsetWidth,c.offsetHeight]),d[this._UUID_]=h(this._UUID_,"mapview",i,this._map_id_))}var e=y.prototype;function v(e){this._UUID_=l.UUID("Bubble"),this.label="string"==typeof e?e:"",this.icon=null,this.marker=null,this.__contentImage=null,this.__contentImageAsDataURL=null,this.onclick=function(e){}}e.close=function(){a("map","close",this._UUID_),d[this._UUID_]&&delete d[this._UUID_]},e.centerAndZoom=function(e,t){e instanceof w&&"number"==typeof t&&(this.center=e,this.zoom=t,p(this._UUID_,"centerAndZoom",[e,t]))},e.setCenter=function(e){e instanceof w&&(this.center=e,p(this._UUID_,"setCenter",[e]))},e.getCenter=function(){return this.center},e.setZoom=function(e){"number"==typeof e&&(this.zoom=e,p(this._UUID_,"setZoom",[e]))},e.resize=function(){var e=document.getElementById(this._ui_div_id_),t=[null];e&&(t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),p(this._UUID_,"resize",t)},e.getZoom=function(){return this.zoom},e.setMapType=function(e){"MAPTYPE_NORMAL"!=e&&"MAPTYPE_SATELLITE"!=e||(this.mapType=e,p(this._UUID_,"setMapType",[e]))},e.getMapType=function(){return this.mapType},e.showUserLocation=function(e){"boolean"==typeof e&&this.__showUserLocationVisable__!=e&&(this.__showUserLocationVisable__=e,p(this._UUID_,"showUserLocation",[e]))},e.isShowUserLocation=function(){return this.__showUserLocationVisable__},e.getUserLocation=function(n){if("function"!=typeof n)return!1;var e=l.UUID("callback");f.pushCallback(e,function(e,t){n&&n(t.state,t.point)},!0);e=[e,window.__HtMl_Id__];return p(this._UUID_,"getUserLocation",e),!0},e.getCurrentCenter=function(n){if("function"!=typeof n)return!1;function e(e,t){n&&n(t.state,t.point)}var t=s.callbackId(e);f.pushCallback(t,e,!0);t=[t,window.__HtMl_Id__];return p(this._UUID_,"getCurrentCenter",t),!0},e.setTraffic=function(e){"boolean"==typeof e&&e!=this.trafficVisable&&(this.trafficVisable=e,p(this._UUID_,"setTraffic",[e]))},e.isTraffic=function(){return this.trafficVisable},e.showZoomControls=function(e){"boolean"==typeof e&&e!=this.zoomControlsVisable&&(this.zoomControlsVisable=e,p(this._UUID_,"showZoomControls",[e]))},e.isShowZoomControls=function(){return this.zoomControlsVisable},e.getBounds=function(){var e,t,n,n=(e=this._UUID_,t="getBounds",n=[],l.ANDROID==l.platform?s.execSync(_,r,[l.stringify([e,[t,n]])],null):s.execSync(_,r,[e,[t,n]],null));return new g(new w(n.northease.longitude,n.northease.latitude),new w(n.southwest.longitude,n.southwest.latitude))},e.reset=function(){p(this._UUID_,"reset",[null])},e.show=function(){var e,t;1!=this.visable&&(this.visable=!0,t=[null],(e=document.getElementById(this._ui_div_id_))&&(e.style.display="",t=[e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight]),p(this._UUID_,"show",t))},e.hide=function(){0!=this.visable&&(this.visable=!1,document.getElementById(this._ui_div_id_)&&(document.getElementById(this._ui_div_id_).style.display="none"),p(this._UUID_,"hide",[null]))},e.addOverlay=function(e){if(e instanceof I||e instanceof x||e instanceof S||e instanceof D||e instanceof b){e=[e._UUID_];return p(this._UUID_,"addOverlay",e),!0}return!1},e.removeOverlay=function(e){if(e instanceof I||e instanceof x||e instanceof S||e instanceof D||e instanceof b){e=[e._UUID_];return p(this._UUID_,"removeOverlay",e),!0}return!1},e.clearOverlays=function(){p(this._UUID_,"clearOverlays",[null])},y.calculateDistance=function(e,t,n,i){var o=s.callbackId(function(e){"function"==typeof n&&n({distance:e})},function(e){"function"==typeof i&&i(e)});s.exec(_,"calculateDistance",[e,t,o])},y.calculateArea=function(e,t,n){var i=s.callbackId(function(e){"function"==typeof t&&t({area:e})},function(e){"function"==typeof n&&n(e)});s.exec(_,"calculateArea",[e,i])},y.convertCoordinates=function(e,t,n,i){var o=s.callbackId(function(e){var t;"function"==typeof n&&((t={}).coord=new w(e.long,e.lat),t.coordType=e.type,n(t))},function(e){"function"==typeof i&&i(e)});s.exec(_,"convertCoordinates",[e,t,o])},y.geocode=function(e,t,n,i){var o=s.callbackId(function(e){var t;"function"==typeof n&&((t={}).coord=new w(e.long,e.lat),t.address=e.addr,t.coordType=e.type,n(t))},function(e){"function"==typeof i&&i(e)});s.exec(_,"geocode",[e,t,o])},y.reverseGeocode=function(e,t,n,i){var o=s.callbackId(function(e){var t;"function"==typeof n&&((t={}).coord=new w(e.long,e.lat),t.address=e.addr,t.coordType=e.type,n(t))},function(e){"function"==typeof i&&i(e)});s.exec(_,"reverseGeocode",[e,t,o])};var t=v.prototype;function g(e,t,n,i){"number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i?(this.northease=new w(e,t),this.northeast=new w(e,t),this.southwest=new w(n,i)):e instanceof w&&t instanceof w&&(this.northease=e,this.northeast=e,this.southwest=t)}function w(e,t){this.longitude=e,this.latitude=t}t.setIcon=function(e){"string"==typeof e&&(this.icon=e,this.marker&&p(this.marker._UUID_,"setBubbleIcon",[this.icon]))},t.loadImage=function(e){this.__contentImage=e,this.__contentImageAsDataURL=null,this.marker&&p(this.marker._UUID_,"loadImage",[e])},t.loadImageDataURL=function(e){this.__contentImage=null,this.__contentImageAsDataURL=e,this.marker&&p(this.marker._UUID_,"loadImageDataURL",[e])},t.getLabel=function(){return this.label},t.setLabel=function(e){"string"==typeof e&&(this.label=e,this.marker&&p(this.marker._UUID_,"setBubbleLabel",[this.label]))},t.belongMarker=function(){return this.marker},g.prototype.setNorthEase=function(e){e instanceof w&&(this.northease=e,this.northeast=e)},g.prototype.setNorthEast=function(e){e instanceof w&&(this.northeast=e,this.northease=e)},g.prototype.getNorthEase=function(){return this.northease},g.prototype.getNorthEast=function(){return this.northeast},g.prototype.setSouthWest=function(e){e instanceof w&&(this.southwest=e)},g.prototype.getSouthWest=function(){return this.southwest},g.prototype.contains=function(e){return e instanceof w&&(e.longitude<=this.northease.longitude&&e.longitude>=this.southwest.longitude&&e.latitude<=this.northease.latitude&&e.latitude>=this.southwest.latitude)},g.prototype.equals=function(e){return e instanceof g&&(this.northease.equals(e.northease)&&this.southwest.equals(e.southwest))},g.prototype.getCenter=function(){var e=(this.northease.longitude-this.southwest.longitude)/2,t=(this.northease.latitude-this.southwest.latitude)/2;return new w(e+this.southwest.longitude,t+this.southwest.latitude)};t=w.prototype;function n(){this._UUID_=null,this.visable=!0}t.setLng=function(e){this.longitude=e},t.getLng=function(){return this.longitude},t.setLat=function(e){this.latitude=e},t.getLat=function(){return this.latitude},t.equals=function(e){return this.longitude==e.longitude&&this.latitude==e.latitude};t=n.prototype;function b(e){var n=this;this._UUID_=l.UUID("marker"),this.point=e,this.icon="",this.caption="",this.bubble=null,this.canDraggable=!1,this.onclick=function(e){},this.onDrag=function(e){},f.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])}t.show=function(){1!=this.visable&&(this.visable=!0,p(this._UUID_,"show",["true"]))},t.hide=function(){0!=this.visable&&(this.visable=!1,p(this._UUID_,"hide",["false"]))},t.isVisible=function(){return this.visable},t.bringToTop=function(){p(this._UUID_,"bringToTop",[])};t=b.prototype=new n;function m(){this.strokeColor="#FFFFFF",this.strokeOpacity=1,this.fillColor="#FFFFFF",this.fillOpacity=1,this.lineWidth=5,this.visable=!0}t.constructor=b,t.setPoint=function(e){e instanceof w&&(this.point=e,p(this._UUID_,"setPoint",[e]))},t.getPoint=function(){return this.point},t.setIcon=function(e){"string"==typeof e&&(this.icon=e,p(this._UUID_,"setIcon",[e]))},t.setLabel=function(e){"string"==typeof e&&(this.caption=e,p(this._UUID_,"setLabel",[e]))},t.getLabel=function(){return this.caption},t.setBubble=function(e,t){var n,i;e instanceof v?((n=e.marker)&&n!=this&&(i=[n.bubble=null,null,null,null,!1],p(n._UUID_,"setBubble",i)),(e.marker=this).bubble=e,i=[this.bubble.label,this.bubble.icon,this.bubble.__contentImageAsDataURL,this.bubble.__contentImage,t],p(this._UUID_,"setBubble",i)):null==e&&p(this._UUID_,"setBubble",[null,null,null,null,t])},t.hideBubble=function(){this.bubble&&p(this._UUID_,"hideBubble",[])},t.getBubble=function(){return this.bubble},t.setDraggable=function(e){e!=this.canDraggable&&(this.canDraggable=!this.canDraggable,p(this._UUID_,"setDraggable",[this.canDraggable]))},t.isDraggable=function(){return this.canDraggable},t.setIcons=function(e,t){p(this._UUID_,"setIcons",[e,t])};t=m.prototype=new n;function I(e,t){this.center=e,this.radius=t,this._UUID_=l.UUID("circle"),h(this._UUID_,"circle",[e,t])}t.constructor=m,t.setStrokeColor=function(e){"string"==typeof e&&(this.strokeColor=e,p(this._UUID_,"setStrokeColor",[e]))},t.getStrokeColor=function(){return this.strokeColor},t.setStrokeOpacity=function(e){"number"==typeof e&&(e<0?e=0:1<e&&(e=1),this.strokeOpacity=e,p(this._UUID_,"setStrokeOpacity",[e]))},t.getStrokeOpacity=function(){return this.strokeOpacity},t.setFillColor=function(e){"string"==typeof e&&(this.fillColor=e,p(this._UUID_,"setFillColor",[e]))},t.getFillColor=function(){return this.fillColor},t.setFillOpacity=function(e){"number"==typeof e&&(e<0?e=0:1<e&&(e=1),this.fillOpacity=e,p(this._UUID_,"setFillOpacity",[e]))},t.getFillOpacity=function(){return this.fillOpacity},t.setLineWidth=function(e){"number"==typeof e&&(this.lineWidth=e=e<0?0:e,p(this._UUID_,"setLineWidth",[e]))},t.getLineWidth=function(){return this.lineWidth};t=I.prototype=new m;function x(e){this.path=e,this._UUID_=l.UUID("polygon"),h(this._UUID_,"polygon",[e])}t.constructor=I,t.setCenter=function(e){e instanceof w&&(this.center=e,p(this._UUID_,"setCenter",[e]))},t.getCenter=function(){return this.center},t.setRadius=function(e){"number"==typeof e&&0<=e&&(this.radius=e,p(this._UUID_,"setRadius",[e]))},t.getRadius=function(){return this.radius};t=x.prototype=new m;function S(e){this.path=e,this._UUID_=l.UUID("polyline"),h(this._UUID_,"polyline",[e])}t.constructor=x,t.setPath=function(e){this.path=e,p(this._UUID_,"setPath",[e])},t.getPath=function(){return this.path};t=S.prototype=new m;function D(e,t,n){this._UUID_=l.UUID("route"),this.startPoint=e,this.endPoint=t,this.pointCount=0,this.pointList=[],this.distance=0,this.routeTip="",void 0===n&&h(this._UUID_,"route",[e,t,n])}function k(){this.__state__=0,this.__type__=1,this.startPosition=null,this.endPosition=null,this.routeNumber=0,this.routeList=[]}function T(){this.__state__=0,this.__type__=0,this.totalNumber=0,this.currentNumber=0,this.pageNumber=0,this.pageIndex=0,this.poiList=[]}function E(e){var n=this;this._UUID_=l.UUID("search"),this.pageCapacity=10,this.map=e,this.onPoiSearchComplete=function(e,t){},this.onRouteSearchComplete=function(e,t){},f.pushCallback(this._UUID_,function(e,t){0==t.__type__?n.onPoiSearchComplete&&n.onPoiSearchComplete(t.__state__,t):1==t.__type__&&n.onRouteSearchComplete&&n.onRouteSearchComplete(t.__state__,t)}),h(this._UUID_,"search",[null])}t.constructor=S,t.setPath=function(e){this.path=e,p(this._UUID_,"setPath",[e])},t.getPath=function(){return this.path},(D.prototype=new n).constructor=D,k.prototype.getRoute=function(e){return 0<=e&&e<this.routeNumber?this.routeList[e]:null},T.prototype.getPosition=function(e){return 0<=e&&e<this.currentNumber?this.poiList[e]:null};t=E.prototype;function U(e,t,n,i){return new y(void 0,t,e,n,i)}t.setPageCapacity=function(e){this.pageCapacity=e,p(this._UUID_,"setPageCapacity",[e])},t.getPageCapacity=function(){return this.pageCapacity},t.poiSearchInCity=function(e,t,n){return"string"==typeof e&&"string"==typeof t&&(p(this._UUID_,"poiSearchInCity",[e,t,n]),!0)},t.poiSearchNearBy=function(e,t,n,i){return"string"==typeof e&&t instanceof w&&"number"==typeof n&&(p(this._UUID_,"poiSearchNearBy",[e,t,n,i]),!0)},t.poiSearchInbounds=function(e,t,n,i){return"string"==typeof e&&t instanceof w&&n instanceof w&&(p(this._UUID_,"poiSearchInbounds",[e,t,n,i]),!0)},t.setTransitPolicy=function(e){p(this._UUID_,"setTransitPolicy",[e])},t.transitSearch=function(e,t,n){return(e instanceof w||"string"==typeof e)&&(t instanceof w||"string"==typeof t)&&"string"==typeof n&&(p(this._UUID_,"transitSearch",[e,t,n]),!0)},t.setDrivingPolicy=function(e){p(this._UUID_,"setDrivingPolicy",[e])},t.drivingSearch=function(e,t,n,i){return(e instanceof w||"string"==typeof e)&&(n instanceof w||"string"==typeof n)&&"string"==typeof t&&"string"==typeof i&&(p(this._UUID_,"drivingSearch",[e,t,n,i]),!0)},t.walkingSearch=function(e,t,n,i){return(e instanceof w||"string"==typeof e)&&(n instanceof w||"string"==typeof n)&&"string"==typeof t&&"string"==typeof i&&(p(this._UUID_,"walkingSearch",[e,t,n,i]),!0)},e.setStyles=function(e){json_map=l.ANDROID==l.platform?s.exec(_,"setStyles",[l.stringify([this._UUID_,e])],null):s.exec(_,"setStyles",[this._UUID_,e],null)},u.maps={Map:y,openSysMap:function(e,t,n){e instanceof w&&n instanceof w&&a("map","openSysMap",[e,t,n])},MapType:{MAPTYPE_SATELLITE:"MAPTYPE_SATELLITE",MAPTYPE_NORMAL:"MAPTYPE_NORMAL"},Marker:b,Bubble:v,Point:w,Bounds:g,Circle:I,Polygon:x,Polyline:S,Position:function(e){this.point=e,this.address="",this.city="",this.name="",this.phone="",this.postcode=""},Route:D,Search:E,SearchPolicy:{TRANSIT_TIME_FIRST:"TRANSIT_TIME_FIRST",TRANSIT_TRANSFER_FIRST:"TRANSIT_TRANSFER_FIRST",TRANSIT_WALK_FIRST:"TRANSIT_WALK_FIRST",TRANSIT_FEE_FIRST:"TRANSIT_FEE_FIRST",DRIVING_TIME_FIRST:"DRIVING_TIME_FIRST",DRIVING_NO_EXPRESSWAY:"DRIVING_NO_EXPRESSWAY",DRIVING_FEE_FIRST:"DRIVING_FEE_FIRST"},__SearchRouteResult__:k,__SearchPoiResult__:T,__bridge__:f,create:U,getMapById:function(e){var t=l.ANDROID==l.platform?s.execSync(_,"getMapById",[l.stringify([e])],null):s.execSync(_,"getMapById",[e],null);if(t){var n=d[t.uuid];return n||(n=U(e,t.options,"no",t.uuid),d[t.uuid]=n),n}return null}}}(window.plus),function(e){var e=e,s=window.plus.bridge,r="Messaging";function c(e){this.__hasPendingOperation__=!1,this.to=[],this.cc=[],this.bcc=[],this.subject="",this.body="",this.bodyType="text",this.silent=!1,this.attachment=[],this.type=e}c.prototype.addAttachment=function(e){"string"==typeof e&&this.attachment.push(e)},e.messaging={createMessage:function(e){return new c(e)},sendMessage:function(t,e,n){var i,o;t instanceof c&&(i="function"!=typeof e?null:function(){t.__hasPendingOperation__=!1,e()},o="function"!=typeof n?null:function(e){t.__hasPendingOperation__=!1,n(e)},t.__hasPendingOperation__?o({code:2,message:"sending"}):(t.__hasPendingOperation__=!0,o=s.callbackId(i,o),s.exec(r,"sendMessage",[o,t],{cbid:o})))},listenMessage:function(t,n){var e=s.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});s.exec(r,"listenMessage",[e],{cbid:e})},TYPE_SMS:1,TYPE_MMS:2,TYPE_EMAIL:3}}(window.plus),function(o){var r=(o=o).bridge,c="NativeUI",a=o.bridge,s=o.tools;function e(e){r.execSync(c,"setUiStyle",[e])}function t(e){this.onCancel=null,this.onConfirm=null,this.onChange=null;var t=this,n=a.callbackId(function(){"function"==typeof t.onCancel&&t.onCancel()}),i=a.callbackId(function(e){"function"==typeof t.onConfirm&&t.onConfirm(e)}),o=a.callbackId(function(e){"function"==typeof t.onChange&&t.onChange(e)});r.exec(c,"showPicker",[e,n,i,o])}function n(e,t){this.__uuid__=o.tools.UUID("WaitingView"),this.onclose=null;var n=this,i=a.callbackId(function(){"function"==typeof n.onclose&&n.onclose()});r.exec(c,"WaitingView",[this.__uuid__,[e,t,i]])}function i(e,t,n){var i;this.__uuid__=o.tools.UUID("NativeObj_"),n&&(i=a.callbackId(function(e){var t={};t.index=e,n(t)})),r.exec("NativeUI",e,[window.__HtMl_Id__,[t,i,this.__uuid__]])}t.prototype.update=function(e){r.exec(c,"updatePicker",[e])},n.prototype.close=function(){r.exec(c,"WaitingView_close",[this.__uuid__])},n.prototype.setTitle=function(e){r.exec(c,"WaitingView_setTitle",[this.__uuid__,[e]])},i.prototype.close=function(){r.exec("NativeUI","_NativeObj_close",[this.__uuid__])},o.nativeUI={pickTime:function(n,t,e){var i,o;n&&"function"==typeof n&&(i=!1,"object"!=typeof e||(o=e.time)instanceof Date&&(e.__hours=o.getHours(),e.__minutes=o.getMinutes(),i=!0),o=a.callbackId("function"!=typeof n?null:function(e){var t=void 0!==e?new Date(e):null,e={};e.date=t,n(e)},"function"!=typeof t?null:function(e){t(e)}),r.exec(c,"pickTime",[window.__HtMl_Id__,[o,e]]),i&&(delete e.__hours,delete e.__minutes))},pickDate:function(n,t,e){var i;n&&"function"==typeof n&&(i={},e&&(e.minDate instanceof Date?(i.startYear=e.minDate.getFullYear(),i.startMonth=e.minDate.getMonth(),i.startDay=e.minDate.getDate()):s.isNumber(e.startYear)&&(i.startYear=e.startYear,i.startMonth=0,i.startDay=1),e.maxDate instanceof Date?(i.endYear=e.maxDate.getFullYear(),i.endMonth=e.maxDate.getMonth(),i.endDay=e.maxDate.getDate()):s.isNumber(e.endYear)&&(i.endYear=e.endYear,i.endMonth=11,i.endDay=31),e.date instanceof Date&&(i.setYear=e.date.getFullYear(),i.setMonth=e.date.getMonth(),i.setDay=e.date.getDate()),i.popover=e.popover,i.title=e.title),e=a.callbackId("function"!=typeof n?null:function(e){var t=void 0!==e?new Date(e):null,e={};e.date=t,n(e)},"function"!=typeof t?null:function(e){t(e)}),r.exec(c,"pickDate",[window.__HtMl_Id__,[e,i]]))},alert:function(e,t,n,i){var o;e&&(e="string"!=typeof e?e.toString():e,t&&(o=a.callbackId(function(e){t(e)})),r.exec(c,"alert",[window.__HtMl_Id__,[e,o,n,i]]))},confirm:function(e,n,t,i){var o;e&&(e="string"!=typeof e?e.toString():e,n&&(o=a.callbackId(function(e){var t={};t.index=e,n(t)})),r.exec(c,"confirm",[window.__HtMl_Id__,[e,o,t,i]]))},showWaiting:function(e,t){return new n(e,t)},prompt:function(e,t,n,i,o){var s;e&&(e="string"!=typeof e?e.toString():e,t&&(s=a.callbackId(function(e){e.value=e.message,t(e)})),r.exec(c,"prompt",[window.__HtMl_Id__,[e,s,n,i,o]]))},toast:function(e,t){e&&(e="string"!=typeof e?e.toString():e,r.exec(c,"toast",[window.__HtMl_Id__,[e,t]]))},closeToast:function(){r.exec(c,"closeToast",[window.__HtMl_Id__,[]])},showMenu:function(e,n,i){var t;e&&(e.onclick&&(e.__plus__onclickCallbackId=a.callbackId(e.onclick)),i&&(t=a.callbackId(function(e){var t={};t.index=e.index,t.target=n[e.index],i(t)})),r.exec(c,"showMenu",[window.__HtMl_Id__,[e,n,t]]))},hideMenu:function(){r.exec(c,"hideMenu",[window.__HtMl_Id__])},isTitlebarVisible:function(){return r.execSync(c,"isTitlebarVisible",[window.__HtMl_Id__])},setTitlebarVisible:function(e){return r.exec(c,"setTitlebarVisible",[window.__HtMl_Id__,[e]])},getTitlebarHeight:function(){return r.execSync(c,"getTitlebarHeight",[window.__HtMl_Id__])},actionSheet:function(e,t){return new i("actionSheet",e,t)},closeWaiting:function(){a.exec(c,"closeWaiting",[])},setUiStyle:e,setUIStyle:e,previewImage:function(e,t){var n=t,i=a.callbackId(function(e){"function"==typeof n.onLongPress&&n.onLongPress(e)});a.exec(c,"previewImage",[this.__uuid__,[e,t,i]])},closePreviewImage:function(){a.exec(c,"closePreviewImage",[this.__uuid__])},showPicker:function(e){return new t(e)}}}(window.plus),function(o){var r="NativeObj",c=(o=o).bridge,s=o.tools,a={},u={},n={},l={};function _(e,t,n){this.__id__=s.UUID("Bitmap"),this.id=e,this.type="bitmap",n||(u[this.__id__]=this,c.exec(r,"Bitmap",[this.__id__,e,t]))}function f(e){if(e instanceof Array)for(var t,n=0;n<e.length;n++)(t=e[n])&&"input"==t.tag?t.inputStyles&&(t.inputStyles.onComplete&&"function"==typeof t.inputStyles.onComplete&&(t.inputStyles.__onCompleteCallBackId__=c.callbackId(t.inputStyles.onComplete)),t.inputStyles.onFocus&&"function"==typeof t.inputStyles.onFocus&&(t.inputStyles.__onFocusCallBackId__=c.callbackId(t.inputStyles.onFocus)),t.inputStyles.onBlur&&"function"==typeof t.inputStyles.onBlur&&(t.inputStyles.__onBlurCallBackId__=c.callbackId(t.inputStyles.onBlur))):t&&"richtext"==t.tag&&t.richTextStyles&&t.richTextStyles.onClick&&"function"==typeof t.richTextStyles.onClick&&(t.richTextStyles.__onClickCallBackId__=c.callbackId(t.richTextStyles.onClick))}function d(e,t,n,i,o){this.__id__=e,this.id=e,this.__uuid__=s.UUID("NativeView"),this.type="nativeView",this.IDENTITY=r,i||(f(n),c.exec(r,"View",[this.__id__,this.__uuid__,t,n,o]),a[this.__uuid__]=this)}function i(e,t){var n,i=null;for(n in l){var o=l[n];if(t){if(o.uid&&o.uid==e||o.uuid&&o.uuid==e){i=o;break}}else if(o.id==e){i=o;break}}return i}function h(e){var t=a[e.uuid];return t||((t=new(e.type&&"ImageSlider"==e.type?o.nativeObj.ImageSlider:n[e.type]||o.nativeObj.View)(e.id,e.styles,"",!0)).__uuid__=e.uuid,a[t.__uuid__]=t),t}_.prototype.clear=function(){c.exec(r,"clear",[this.__id__]),this.__id__=void 0,u[this.__id__]&&delete u[this.__id__]},_.prototype.recycle=function(){c.exec(r,"bitmapRecycle",[this.__id__])},_.prototype.load=function(e,t,n){function i(e){"function"==typeof n&&n(e)}var o;this.__id__?(o=c.callbackId(function(){"function"==typeof t&&t()},i),c.exec(r,"load",[this.__id__,e,o])):i({code:-1,message:"Destroyed objects"})},_.prototype.loadBase64Data=function(e,t,n){function i(e){"function"==typeof n&&n(e)}var o;this.__id__?(o=c.callbackId(function(){"function"==typeof t&&t()},i),c.exec(r,"loadBase64Data",[this.__id__,e,o])):i({code:-1,message:"Destroyed objects"})},_.prototype.save=function(e,t,n,i){function o(e){"function"==typeof i&&i(e)}var s;this.__id__?(s=c.callbackId(function(e){"function"==typeof n&&(e={target:e.path,width:e.w,height:e.h,size:e.size},n(e))},o),c.exec(r,"save",[this.__id__,e,t,s])):o({code:-1,message:"Destroyed objects"})},_.prototype.__captureWebview=function(e,t,n,i){function o(e){"function"==typeof i&&i(e)}var s;this.__id__?(s=c.callbackId(function(){"function"==typeof n&&n()},o),c.exec(r,"captureWebview",[this.__id__,e,s,t])):o({code:-1,message:"Destroyed objects"})},_.prototype.toBase64Data=function(){return this.__id__?c.execSync(r,"toBase64Data",[this.__id__]):null},_.getItems=function(){for(var e=[],t=c.execSync(r,"getItems",[]),n=0;n<t.length;n++){var i,o=t[n].__id__,s=u[o];s||((i=new _(t[n].id,null,!0)).__id__=o,s=u[o]=i),e.push(s)}return e},_.getBitmapById=function(e){var t=c.execSync(r,"getBitmapById",[e]);if(t){var n=u[t.__id__];return n||((e=new _(t.id,null,!0)).__id__=t.__id__,n=u[t.__id__]=e),n}return null},d.prototype.setImages=function(e){c.exec(r,"setImages",[this.__id__,this.__uuid__,e])},d.prototype.currentImageIndex=function(){return c.execSync(r,"currentImageIndex",[this.__id__,this.__uuid__])},d.prototype.addImages=function(e){c.exec(r,"addImages",[this.__id__,this.__uuid__,e])},d.prototype.drawBitmap=function(e,t,n,i){c.exec(r,"drawBitmap",[this.__id__,this.__uuid__,e,t,n,i])},d.prototype.drawText=function(e,t,n,i){c.exec(r,"drawText",[this.__id__,this.__uuid__,e,t,n,i])},d.prototype.drawRichText=function(e,t,n,i){n&&n.onClick&&"function"==typeof n.onClick&&(n.__onClickCallBackId__=c.callbackId(n.onClick)),c.exec(r,"drawRichText",[this.__id__,this.__uuid__,e,t,n,i])},d.prototype.drawInput=function(e,t,n){t.onComplete&&"function"==typeof t.onComplete&&(t.__onCompleteCallBackId__=c.callbackId(t.onComplete)),t.onFocus&&"function"==typeof t.onFocus&&(t.__onFocusCallBackId__=c.callbackId(t.onFocus)),t.onBlur&&"function"==typeof t.onBlur&&(t.__onBlurCallBackId__=c.callbackId(t.onBlur)),c.exec(r,"drawInput",[this.__id__,this.__uuid__,e,t,n])},d.prototype.getInputValueById=function(e){return c.execSync(r,"getInputValueById",[this.__id__,this.__uuid__,e])},d.prototype.getInputFocusById=function(e){return c.execSync(r,"getInputFocusById",[this.__id__,this.__uuid__,e])},d.prototype.setInputFocusById=function(e,t){c.exec(r,"setInputFocusById",[this.__id__,this.__uuid__,e,t])},d.prototype.show=function(){c.exec(r,"show",[this.__id__,this.__uuid__])},d.prototype.setStyle=function(e){c.exec(r,"setStyle",[this.__id__,this.__uuid__,e])},d.prototype.hide=function(){c.exec(r,"hide",[this.__id__,this.__uuid__])},d.prototype.clear=function(){this.close()},d.prototype.close=function(){c.exec(r,"view_close",[this.__id__,this.__uuid__]),delete a[this.__uuid__]},d.prototype.animate=function(e,t){var n;t&&(n=c.callbackId(function(){"function"==typeof t&&t()})),c.exec(r,"view_animate",[this.__id__,this.__uuid__,e,n])},d.prototype.reset=function(){c.exec(r,"view_reset",[this.__id__,this.__uuid__])},d.prototype.restore=function(){c.exec(r,"view_restore",[this.__id__,this.__uuid__])},d.prototype.isVisible=function(){return c.execSync(r,"isVisible",[this.__id__,this.__uuid__])},d.prototype.drawRect=function(e,t,n){c.exec(r,"view_drawRect",[this.__id__,this.__uuid__,e,t,n])},d.prototype.interceptTouchEvent=function(e){c.exec(r,"interceptTouchEvent",[this.__id__,this.__uuid__,e])},d.prototype.addEventListener=function(e,t){var n,i=this;t&&(n=function(e){"function"==typeof t&&(e.target=i,t(e))},t.callback=n,n=c.callbackId(n)),c.exec(r,"addEventListener",[this.__id__,this.__uuid__,e,n])},d.prototype.setEventListener=function(e,t){var n,i=this;t&&(n=function(e){"function"==typeof t&&(e.target=i,t(e))},t.callback=n,n=c.callbackId(n)),c.exec(r,"setEventListener",[this.__id__,this.__uuid__,e,n])},d.prototype.setTouchEventRect=function(e){c.exec(r,"setTouchEventRect",[this.__id__,this.__uuid__,e])},d.getViewById=function(e){var t=c.execSync(r,"getViewById",[e]);return(t=t||i(e,!1))?h(t):null},d.__getViewByUidAndCreate=h,d.__getViewByUidFromCache=function(e){e=i(e,!0);return e?h(e):null},d.startAnimation=function(e,t,n,i){var o,s;e&&t&&(t=t instanceof d?{viewId:t.__uuid__}:{uuid:t.bitmap?t.bitmap.__id__:null,texts:{value:t.text,textStyles:t.textStyles,textRect:t.textRect}},n&&(s=n instanceof d?{viewId:n.__uuid__}:{uuid:n.bitmap?n.bitmap.__id__:null,texts:{value:n.text,textStyles:n.textStyles,textRect:n.textRect}}),i&&(o=c.callbackId(function(){"function"==typeof i&&i()})),c.exec(r,"startAnimation",[e,t,s,o]))},d.clearAnimation=function(e){c.exec(r,"clearAnimation",[e=e||"none"])},d.prototype.clearRect=function(e,t){c.exec(r,"view_clearRect",[this.__id__,this.__uuid__,e,t])},d.prototype.draw=function(e){f(e),c.exec(r,"view_draw",[this.__id__,this.__uuid__,e])};var e={Bitmap:_,View:d,ImageSlider:function(e,t,n,i){return(i=new d(e,t,n,i,"ImageSlider")).type="ImageSlider",i},__createNView:function(e,t,n,i){return(i=new o.nativeObj.View(t,n,i)).__uuid__=e,a[i.__uuid__]=i},__appendSubViewInfo:function(e){l[e.uuid]=e},__removeSubViewInfos:function(e){for(var t=0;t<e.length;t++)delete l[e[t]]},__regChildViews:function(e,t){e&&"function"==typeof t&&(n[e]=t)}};o.nativeObj=e}(plus),function(e){var e=e,i=window.plus.bridge,n=e.tools,o="Navigator";e.navigator={closeSplashscreen:function(){i.exec(o,"closeSplashscreen",[0])},updateSplashscreen:function(e){i.exec(o,"updateSplashscreen",[e])},isFullscreen:function(){return i.execSync(o,"isFullScreen",[0])},setFullscreen:function(e){i.exec(o,"setFullscreen",[e])},isImmersedStatusbar:function(){return i.execSync(o,"isImmersedStatusbar",[])},getStatusbarHeight:function(e){return this.__statusBarHeight__||(this.__statusBarHeight__=i.execSync(o,"getStatusbarHeight",[])),this.__statusBarHeight__},setStatusBarBackground:function(e){i.exec(o,"setStatusBarBackground",[e])},getStatusBarBackground:function(){return i.execSync(o,"getStatusBarBackground",[])},setStatusBarStyle:function(e){i.exec(o,"setStatusBarStyle",[e])},getStatusBarStyle:function(){return i.execSync(o,"getStatusBarStyle",[])},getUiStyle:function(){return i.execSync(o,"getUiStyle",[])},setUserAgent:function(e,t){i.execSync(o,"setUserAgent",[e,t])},getUserAgent:function(){return i.execSync(o,"getUserAgent",[],function(t){try{return null==window.eval(t)?null:t}catch(e){return t}return t})},removeCookie:function(e){i.exec(o,"removeCookie",[e])},removeSessionCookie:function(e,t){i.exec(o,"removeSessionCookie",[])},removeAllCookie:function(e,t){i.exec(o,"removeAllCookie",[])},setCookie:function(e,t){i.exec(o,"setCookie",[e,t])},getCookie:function(e){return i.execSync(o,"getCookie",[e],function(t){try{return null==window.eval(t)?null:t}catch(e){return t}return t})},setLogs:function(e){i.exec(o,"setLogs",[e])},isLogs:function(){return i.execSync(o,"isLogs",[0])},createShortcut:function(e,t,n){n=i.callbackId(t,n);i.exec(o,"createShortcut",[e,n])},hasShortcut:function(e,t){n.platform!=n.IOS&&(t=i.callbackId(t),i.exec(o,"hasShortcut",[e,t]))},checkPermission:function(e){return i.execSync(o,"checkPermission",[e])},requestPermission:function(e,t){t=i.callbackId(t);return i.exec(o,"requestPermission",[e,t])},isBackground:function(){return i.execSync(o,"isBackground",[])},hasNotchInScreen:function(){return i.execSync(o,"hasNotchInScreen",[])},hasSplashscreen:function(){return i.execSync(o,"hasSplashscreen",[])},hideSystemNavigation:function(){return i.exec(o,"hideSystemNavigation",[])},showSystemNavigation:function(){return i.exec(o,"showSystemNavigation",[])},getSafeAreaInsets:function(){return e.tools.ANDROID==e.tools.platform?{bottom:0,left:0,right:0,top:0,deviceBottom:0,deviceLeft:0,deviceRight:0,deviceTop:0}:i.execSync(o,"getSafeAreaInsets",[])},getOrientation:function(){return i.execSync(o,"getOrientation",[])},isRoot:function(){return e.tools.ANDROID!=e.tools.platform&&i.execSync(o,"isRoot",[])},isSimulator:function(){return i.execSync(o,"isSimulator",[])},getSignature:function(){return i.execSync(o,"getSignature",[])}},e.navigator.getUIStyle=e.navigator.getUiStyle}(window.plus),function(e){var r="OAuth",c=(e=e).bridge;function t(){this.id="",this.description="",this.nativeClient=!1,this.authResult=null,this.userInfo=null,this.appleInfo=null,this.univerifyInfo=null}function a(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)(function(e){var t;e.onclick&&"function"==typeof e.onclick&&(t=c.callbackId(function(){e.onclick(e)}),e.__cb__={id:t,htmlId:window.__HtMl_Id__})})(e[t])}t.prototype.getCheckBoxState=function(){if("univerify"==this.id)return c.execSync2(r,"getCheckBoxState",[this.id])},t.prototype.closeAuthView=function(){"univerify"==this.id&&c.exec(r,"closeAuthView",[this.id],{sid:this.id})},t.prototype.preLogin=function(t,n){var e;"univerify"==this.id?(e=c.callbackId("function"!=typeof t?null:function(e){t({})},"function"!=typeof n?null:function(e){n(e)}),c.exec(r,"preLogin",[this.id,e],{cbid:e,sid:this.id})):n({code:10012,message:"univerify only"})},t.prototype.login=function(n,t,e){var i;e&&"object"==typeof e&&(!(i=e.univerifyStyle)||"object"!=typeof i||(s=i.buttons)&&"object"==typeof s&&a(s.list));var o=this,s=c.callbackId("function"!=typeof n?null:function(e){var t={};(t.target=o).univerifyInfo=e.univerifyInfo,o.authResult=e.authResult,o.userInfo=e.userInfo,o.appleInfo=e.appleInfo,o.extra=e.extra,n(t)},"function"!=typeof t?null:function(e){t(e)});c.exec(r,"login",[this.id,s,e],{cbid:s,sid:this.id})},t.prototype.authorize=function(t,n,e){var i,o=this;"weixin"==o.id?(i=c.callbackId("function"!=typeof t?null:function(e){e.target=o,t(e)},"function"!=typeof n?null:function(e){n(e)}),c.exec(r,"authorize",[this.id,i,e],{cbid:i,sid:this.id})):n({code:10012,message:"WeChat only"})},t.prototype.logout=function(n,t){var i=this,e="function"!=typeof n?null:function(e){var t={};i.authResult=null,i.userInfo=null,i.appleInfo=null,i.extra=e.extra,t.target=i,n(t)},o="function"!=typeof t?null:function(e){t(e)};this.authResult=null,this.userInfo=null,this.appleInfo=null;o=c.callbackId(e,o);c.exec(r,"logout",[this.id,o],{cbid:o,sid:this.id})},t.prototype.getUserInfo=function(n,t){var i=this,e=c.callbackId("function"!=typeof n?null:function(e){var t={};i.authResult=e.authResult,i.userInfo=e.userInfo,i.appleInfo=e.appleInfo,i.extra=e.extra,t.target=i,n(t)},"function"!=typeof t?null:function(e){t(e)});c.exec(r,"getUserInfo",[this.id,e],{cbid:e,sid:this.id})},t.prototype.addPhoneNumber=function(n,t){var i=this,e=c.callbackId("function"!=typeof n?null:function(e){var t={};i.authResult=e.authResult,i.userInfo=e.userInfo,i.appleInfo=e.appleInfo,i.extra=e.extra,t.target=i,n(t)},"function"!=typeof t?null:function(e){t(e)});c.exec(r,"addPhoneNumber",[this.id,e],{cbid:e,sid:this.id})};var u={AuthService:t,getServices:function(s,t){var e=c.callbackId("function"!=typeof s?null:function(e){for(var t=[],n=e.length,i=0;i<n;i++){var o=new u.AuthService;o.id=e[i].id,o.description=e[i].description,o.authResult=e[i].authResult,o.userInfo=e[i].userInfo,o.appleInfo=e[i].appleInfo,o.univerifyInfo=e[i].univerifyInfo,o.nativeClient=e[i].nativeClient,t[i]=o}s(t)},"function"!=typeof t?null:function(e){t(e)});c.exec(r,"getServices",[e])}};e.oauth=u}(window.plus),function(e){var t=(e=e).bridge,s=e.tools,n="Orientation",r=!1,c={},a=[],u=null,o=function(e,t,n,i,o,s){this.alpha=e,this.beta=t,this.gamma=n,this.magneticHeading=i,this.trueHeading=o,this.headingAccuracy=s},l=void 0,_=void 0,f=void 0;function d(){var e=t.callbackId(function(e){l=e.magneticHeading,_=e.trueHeading,f=e.headingAccuracy,function(e){var t=a.slice(0);u=new o(e.alpha,e.beta,e.gamma,l,_,f);for(var n=0,i=t.length;n<i;n++)t[n].win(u)}(e)},function(e){!function(e){for(var t=a.slice(0),n=0,i=t.length;n<i;n++)t[n].fail(e)}(e)});t.exec(n,"start",[e]),r=!0}function h(e,t){return{win:e,fail:t}}function p(e){e=a.indexOf(e);-1<e&&(a.splice(e,1),0===a.length&&(t.exec(n,"stop",[]),r=!1))}var i={getCurrentOrientation:function(t,n){var i=h(function(e){p(i),t(e)},function(e){p(i),n&&n(e)});a.push(i),r||d()},watchOrientation:function(e,t,n){var i=n&&n.frequency&&("number"==typeof n.frequency||n.frequency instanceof Number)?n.frequency:500,n=s.UUID("watch"),o=h(function(){},function(e){p(o),t&&t(e)});return a.push(o),c[n]={timer:window.setInterval(function(){u&&e(u)},i),listeners:o},r?u&&e(u):d(),n},clearWatch:function(e){e&&c[e]&&(window.clearInterval(c[e].timer),p(c[e].listeners),delete c[e])}};e.orientation=i}(window.plus),function(s){var s=s,r="Payment",c=window.plus.bridge;function a(){function o(e){"object"==typeof e&&(e.errCode=e.code,e.errMsg=e.message||"")}this.id="",this.description="",this.serviceReady=!0,this.installService=function(){c.exec(r,"installService",[this.id])},this.appStoreReceipt=function(e,t,n){return c.execSync(r,"appStoreReceipt",[this.id])},this.finishTransaction=function(e,t,n){"appleiap"!==this.id&&n({errorcode:"-3"});var i=c.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){o(e),n(e)});c.exec(r,"finishTransactionRequest",[this.id,i,e])},this.restoreCompletedTransactions=function(e,t,n){this.restoreComplateRequest(e,t,n)},this.restoreComplateRequest=function(e,t,n){"appleiap"!==this.id&&n({errorcode:"-3"});var i=c.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){o(e),n(e)});c.exec(r,"restoreComplateRequest",[this.id,i,e])},this.requestProduct=function(e,t,n){this.requestOrder(e,t,n)},this.requestOrder=function(e,t,n){var i;"appleiap"===this.id?(i=c.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){o(e),n(e)}),c.exec(r,"requestOrder",[this.id,i,e])):n({errorcode:"-3"})},this.isReadyToPay=function(e,t,n){var i;s.tools.ANDROID==s.tools.platform&&(i=c.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)}),c.exec(r,"isReadyToPay",[this.id,e,i]))}}var u={Channel:a,getChannels:function(s,t){var e=c.callbackId("function"!=typeof s?null:function(e){for(var t=[],n=e.length,i=0;i<n;i++){var o=new u.Channel;o.id=e[i].id,o.description=e[i].description,o.serviceReady=e[i].serviceReady,t[i]=o}s(t)},"function"!=typeof t?null:function(e){t(e)});c.exec(r,"getChannels",[e])},request:function(e,t,n,i){var o,s="function"!=typeof i?null:function(e){i(e)};e instanceof a?(o=c.callbackId("function"!=typeof n?null:function(e){n(e)},s),c.exec(r,"request",[e.id,t,o])):window.setTimeout(function(){s({code:62e3})},0)}};s.payment=u}(window.plus),function(o){var o=o,s=window.plus.bridge,r="UI",n=o.tools,c="execMethod";o.key={},keyEvent={backbutton:"back",menubutton:"menu",searchbutton:"search",volumeupbutton:"volumeup",volumedownbutton:"volumedown",keyup:"keyup",keydown:"keydown",longpressed:"longpressed"},o.key.addEventListener=function(e,n,t){var i;e&&n&&"string"==typeof e&&"function"==typeof n&&(i=o.webview.currentWebview(),o.obj.Callback.prototype.addEventListener.apply(i,[keyEvent[e],function(e){var t={};t.keycode=e.keyType,t.keyCode=e.keyCode,t.keyType=e.keyType,n(t)},t])&&(e=[keyEvent[e],window.__HtMl_Id__],s.exec(r,c,[i.__IDENTITY__,"addEventListener",[i.__uuid__,e]])))},o.key.removeEventListener=function(e,t){var n;e&&t&&"string"==typeof e&&"function"==typeof t&&(n=o.webview.currentWebview(),o.obj.Callback.prototype.removeEventListener.apply(n,[keyEvent[e],t])&&(e=[keyEvent[e],window.__HtMl_Id__],n=o.webview.currentWebview(),s.exec(r,c,[n.__IDENTITY__,"removeEventListener",[n.__uuid__,e]])))},o.key.setAssistantType=function(e){var t;n.platform==n.IOS?window.__keyboardAssist.setInputType(e):(t=[e,window.__HtMl_Id__],e=o.webview.currentWebview(),s.exec(r,c,[e.__IDENTITY__,"setAssistantType",[e.__uuid__,t]]))},o.key.hideSoftKeybord=function(){var e,t;n.platform==n.IOS?s.exec("Runtime","hideSoftKeybord"):(e=[window.__HtMl_Id__],t=o.webview.currentWebview(),s.exec(r,c,[t.__IDENTITY__,"hideSoftKeybord",[t.__uuid__,e]]))},o.key.showSoftKeybord=function(){var e=[window.__HtMl_Id__],t=o.webview.currentWebview();s.exec(r,c,[t.__IDENTITY__,"showSoftKeybord",[t.__uuid__,e]])},o.key.setVolumeButtonEnabled=function(e){var t;n.ANDROID==n.platform&&(t=[e],e=o.webview.currentWebview(),s.exec(r,c,[e.__IDENTITY__,"setVolumeButtonEnabled",[e.__uuid__,t]]))}}(window.plus),function(e){var s=(e=e).bridge,r=e.tools,c="Proximity",a=!1,u={},l=[];function _(e){e=l.indexOf(e);-1<e&&(l.splice(e,1),0===l.length&&(s.exec(c,"stop",[]),a=!1))}var t={getCurrentProximity:function(t,n){var e=s.callbackId(function(e){r.IOS==r.platform&&(e=0==e?0:1/0),t&&t(e)},function(e){n&&n(e)});s.exec(c,"getCurrentProximity",[e])},watchProximity:function(t,n){var e,i=r.UUID("watch"),o={win:function(e){r.IOS==r.platform&&(e=0==e?0:1/0),t&&t(e)},fail:function(e){_(o),n&&n(e)}};return l.push(o),u[i]={listeners:o},a||(e=s.callbackId(function(e){for(var t=l.slice(0),n=0,i=t.length;n<i;n++)t[n].win(e)},function(e){for(var t=l.slice(0),n=0,i=t.length;n<i;n++)t[n].fail(e)}),s.exec(c,"start",[e]),a=!0),i},clearWatch:function(e){e&&u[e]&&(_(u[e].listeners),delete u[e])}};e.proximity=t}(window.plus),function(){"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;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n});var u,l,_,d,h,a,p,L=(u=Array.prototype.forEach,l=Object.prototype.hasOwnProperty,_={},d=function(e){return"object"==typeof e&&e instanceof Array},h=function(e){return"function"==typeof e},a=[].slice,p={},y.when=function(e){var n=a.call(arguments,0),t=0,i=n.length,o=new Array(i),s=i,r=i<=1&&e&&h(e.promise)?e:y(),c=r.promise();if(1<i){for(;t<i;t++)n[t]&&n[t].promise&&h(n[t].promise)?n[t].promise().then(function(t){return function(e){n[t]=1<arguments.length?a.call(arguments,0):e,--s||r.resolveWith(r,n)}}(t),r.reject,function(t){return function(e){o[t]=1<arguments.length?a.call(arguments,0):e,r.notifyWith(c,o)}}(t)):--s;s||r.resolveWith(r,n)}else r!==e&&r.resolveWith(r,i?[e]:[]);return c},y.Callbacks=f,y);function f(o){function s(e){for(var t,n=0,i=e.length;n<i;n++)t=e[n],d(t)?s(t):h(t)&&(o.unique&&f.has(t)||l.push(t))}function n(e,t){for(t=t||[],i=!o.memory||[e,t],r=!0,u=c||0,c=0,a=l.length;l&&u<a;u++)if(!1===l[u].apply(e,t)&&o.stopOnFalse){i=!0;break}r=!1,l&&(o.once?!0===i?f.disable():l=[]:_&&_.length&&(i=_.shift(),f.fireWith(i[0],i[1])))}o=o?p[o]||function(e){for(var t=p[e]={},n=0,i=(e=e.split(/\s+/)).length;n<i;n++)t[e[n]]=!0;return t}(o):{};var i,r,c,a,u,l=[],_=[],f={add:function(){var e;return l&&(e=l.length,s(arguments),r?a=l.length:i&&!0!==i&&(c=e,n(i[0],i[1]))),this},remove:function(){if(l)for(var e=arguments,t=0,n=e.length;t<n;t++)for(var i=0;i<l.length&&(e[t]!==l[i]||(r&&i<=a&&(a--,i<=u&&u--),l.splice(i--,1),!o.unique));i++);return this},has:function(e){if(l)for(var t=0,n=l.length;t<n;t++)if(e===l[t])return!0;return!1},empty:function(){return l=[],this},disable:function(){return l=_=i=void 0,this},disabled:function(){return!l},lock:function(){return _=void 0,i&&!0!==i||f.disable(),this},locked:function(){return!_},fireWith:function(e,t){return _&&(r?o.once||_.push([e,t]):o.once&&i||n(e,t)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f}function y(e){var t,n=f("once memory"),i=f("once memory"),o=f("memory"),s="pending",r={resolve:n,reject:i,notify:o},c={done:n.add,fail:i.add,progress:o.add,state:function(){return s},isResolved:n.fired,isRejected:i.fired,then:function(e,t,n){return a.done(e).fail(t).progress(n),this},always:function(){return a.done.apply(a,arguments).fail.apply(a,arguments),this},pipe:function(e,t,n){return y(function(s){!function(e,t,n){var i,o,s;if(e)if(u&&e.forEach===u)e.forEach(t,n);else if(e.length===+e.length){for(o=0,s=e.length;o<s;o++)if(o in e&&t.call(n,e[o],o,e)===_)return}else for(i in e)if(l.call(e,i)&&t.call(n,e[i],i,e)===_)return}({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){var n,i=e[0],o=e[1];h(i)?a[t](function(){(n=i.apply(this,arguments))&&h(n.promise)?n.promise().then(s.resolve,s.reject,s.notify):s[o+"With"](this===a?s:this,[n])}):a[t](s[o])})}).promise()},promise:function(e){if(e)for(var t in c)e[t]=c[t];else e=c;return e}},a=c.promise({});for(t in r)a[t]=r[t].fire,a[t+"With"]=r[t].fireWith;return a.done(function(){s="resolved"},i.disable,o.lock).fail(function(){s="rejected"},n.disable,o.lock),e&&e.call(a,a),a}var n,t,o,i,B=(n=window,t=n.document,o={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(){}},s.prototype={initEvent:function(){var t=this;this._touchStart=function(e){t.__start(e)},this._touchMove=function(e){t.__move(e)},this._touchEnd=function(e){t.__end(e)};var e=t.options.useCapture;this.options.con.addEventListener("touchstart",this._touchStart,e),this.options.con.addEventListener("touchmove",this._touchMove,e),this.options.con.addEventListener("touchend",this._touchEnd,e)},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(e){var t=e.touches;1===(e=e.targetTouches).length&&1===t.length&&(this.startX=e[0].pageX,this.startY=e[0].pageY,this.direction=o.NONE,this.distanceX=0,this.hasTouch=!0,this.startScrollY=n.scrollY)},__move:function(e){var t,n,i;this.hasTouch&&this.direction!==o.UP&&(t=e.targetTouches[0],this.direction===o.NONE&&(this.distanceX=t.pageX-this.startX,this.distanceY=t.pageY-this.startY,n=Math.abs(this.distanceY),(i=Math.abs(this.distanceX))+n>this.options.minDistance&&(this.direction=1.73*n<i?o.LEFT_RIGHT:1.73*i<n?this.distanceY<0?o.UP:o.DOWN:o.NOOP,this.startScrollY<10&&0<this.distanceY&&(this.direction=o.DOWN)),this.startScrollY<10&&this.direction===o.DOWN&&this.distanceY>this.options.minDistance&&(this.isPull=!0,this.options.onPullStart(e,this.distanceY))),this.isPull&&this.direction===o.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||o.LEFT_RIGHT!==this.direction&&o.DOWN!==this.direction||(this.direction===o.LEFT_RIGHT&&(e.preventDefault(),e.stopPropagation(),this.options.onPullEnd(e,this.distanceX,o.LEFT_RIGHT)),this.direction===o.DOWN&&this.isPull&&(e.preventDefault(),e.stopPropagation(),this.options.onPullEnd(e,this.distanceY,o.DOWN))),this.hasTouch=!1,this.isPull=!1}},{init:function(e){return new s(e)},DIRECTION:o});function s(e){"string"==typeof e.con&&(e.con=t.querySelector(e.con)),this.options=Object.assign({},i,e),this.hasTouch=!1,this.direction=o.NONE,this.distanceX=this.startY=this.startX=0,this.isPull=!1,this.initEvent()}var M={drawArrow:b,drawArcedArrow:function(e,t,n,i,o,s,r,c,a,u,l,_,f,d){var h,p,y,v,g;c=void 0!==c?c:3,a=void 0!==a?a:1,u=void 0!==u?u:Math.PI/8,l=void 0!==l?l:10,_=void 0!==_?_:1,e.save(),e.beginPath(),e.globalAlpha=1,e.restore(),e.lineWidth=_,e.beginPath(),e.arc(t,n,i,o,s,r),e.stroke(),1&a&&(h=Math.cos(o)*i+t,p=Math.sin(o)*i+n,y=Math.atan2(t-h,p-n),g=r?(v=h+10*Math.cos(y),p+10*Math.sin(y)):(v=h-10*Math.cos(y),p-10*Math.sin(y)),b(e,h,p,v,g,c,2,u,l,d)),2&a&&(h=Math.cos(s)*i+t,p=Math.sin(s)*i+n,y=Math.atan2(t-h,p-n),g=r?(v=h-10*Math.cos(y),p-10*Math.sin(y)):(v=h+10*Math.cos(y),p+10*Math.sin(y)),b(e,h-f*Math.sin(s),p+f*Math.cos(s),v-f*Math.sin(s),g+f*Math.cos(s),c,2,u,l,d)),e.restore()}};function w(e,t,n,i,o,s,r,c,a){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 s&&(s=parseFloat(s)),"string"==typeof r&&(r=parseFloat(r)),Math.PI,e.save(),c){case 0:var u=Math.sqrt((s-t)*(s-t)+(r-n)*(r-n));e.arcTo(i,o,t,n,.55*u),e.fill();break;case 1:.5<a&&(e.save(),e.beginPath(),e.moveTo(t,n),e.lineTo(i,o),e.lineTo(s,r),e.lineTo(t,n),e.fill());break;case 2:e.stroke();break;case 3:e.quadraticCurveTo((t+i+s)/3,(n+o+r)/3,t,n),e.fill();break;case 4:var l,_,f,d,h,p;p=s==t?(h=f=(i+t)/2,d=o+(u=r-n)/5,o-u/5):(_=((n+r)/2+o)/2,p=(r-n)/(s-t),f=(l=((t+s)/2+i)/2)-(u=(u=Math.sqrt((s-t)*(s-t)+(r-n)*(r-n)))/(2*Math.sqrt(p*p+1))/5),d=_-(p=p*u),h=l+u,_+p),e.bezierCurveTo(f,d,h,p,t,n),e.fill()}e.restore()}function b(e,t,n,i,o,s,r,c,a,u){"string"==typeof t&&(t=parseFloat(t)),"string"==typeof n&&(n=parseFloat(n)),"string"==typeof i&&(i=parseFloat(i)),"string"==typeof o&&(o=parseFloat(o)),s=void 0!==s?s:3,r=void 0!==r?r:1,c=void 0!==c?c:Math.PI/8,a=void 0!==a?a:10;var l,_,f="function"!=typeof s?w:s,d=((h=Math.sqrt((i-t)*(i-t)+(o-n)*(o-n)))-a/3)/h,h=1&r?(l=Math.round(t+(i-t)*d),Math.round(n+(o-n)*d)):(l=i,o),d=2&r?(_=t+(i-t)*(1-d),n+(o-n)*(1-d)):(_=t,n);e.beginPath(),e.moveTo(_,d),e.lineTo(l,h),e.stroke();var p,y,v,g,h=Math.atan2(o-n,i-t),a=Math.abs(a/Math.cos(c));1&r&&(p=h+Math.PI+c,y=i+Math.cos(p)*a,v=o+Math.sin(p)*a,g=h+Math.PI-c,f(e,y,v,i,o,i+Math.cos(g)*a,o+Math.sin(g)*a,s,u)),2&r&&(p=h+c,g=h-c,f(e,y=t+Math.cos(p)*a,v=n+Math.sin(p)*a,t,n,t+Math.cos(g)*a,n+Math.sin(g)*a,s,u))}var r,c=function(){window.document;function n(e){return 5*e/12}function t(e){e.con=document.body;for(var t={},n=0;n<k.length;n++)t[k[n]]=this["_"+k[n]].bind(this);this.options=Object.assign({},r,t,e),this.shouldRefresh=!1,this.isRefreshing=!1,this.$pullTip=null,t.onPullEnd=this._onPullEnd.bind(this),e=Object.assign({},t,e),this.touchPull=B.init(e),this.refreshTimes=0}var e,i,o,c,a,u,l,_,f,d,s,h,p,y,v,g,w,b,m,I,x,S,D=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},r={con:"",minDistance:4},k=["onPullStart","onMove","onRelease","needRefresh","doRefresh","noop"],T=25,E=(e=document.createElement("canvas"),i=!(!e.getContext||!e.getContext("2d")),(o=navigator.userAgent.toLowerCase()).match(/chrome\/([\d.]+)/),e=o.match(/version\/([\d.]+).*safari/),o.match(/firefox\/([\d.]+)/),o=o.match(/mx[\d.]+/),!i&&(o&&e?!0:!1));function U(e){return 360+e-50}function C(){u.clearRect(0,0,2*_,2*f)}function R(){var e,t,n,i,o,s,r,c;E||(m.speed,t=m.startAngle,n=w,i=m.color,o=m.lineWidth,r=m.counterClockwise,c=m.globalCompositeOperation,e=S||+new Date,n=+new Date,w+=.36*((S=n)-e),n=Math.min(x,w),!l&&(t={start:t,end:n,color:i,lineWidth:o,counterClockwise:r,co:c,clearRect:"draw"===I},E||(n=t.start,i=t.end,o=t.lineWidth,s=t.color,r=t.counterClockwise,c=t.co,t.clearRect&&C(),u.save(),u.globalCompositeOperation=c,u.beginPath(),u.arc(_,f,d,P(n),P(i),r),u.lineWidth=o,u.strokeStyle=s,u.stroke(),u.restore()),x<=w)&&(u.closePath(),m="erase"!==I?g:v,"draw"===(I="erase"!==I?"erase":"draw")?(m.color,s=(y+1)%p.length,s=y=s,m.color=p[s],m.startAngle=(m.startAngle-50)%360,w=m.startAngle,x=U(w)):w=m.startAngle=v.startAngle))}function N(e){var t,n,i,o,s,r;E||(t=e,r=v.speed,n=v.startAngle,i=v.startAngle,o=p[0],isNaN(e)||(s=(e=Math.min(c.minRefreshDistance-T,e))/(c.minRefreshDistance-T),r=(x-10)*s-v.startAngle),A({start:n,end:b=i+=r,color:o,distance:e,clip:t}))}function A(e){var t=e.distance,n=l?10:25,i=s,o=t/(c.minRefreshDistance-T);isNaN(t)||(n*=o,i=s*o),C(),h||(u.globalAlpha=+e.distance/(c.minRefreshDistance+10)),u.strokeStyle=e.color,u.fillStyle=e.color,M.drawArcedArrow(u,_,f,d,P(e.start),P(e.end),!1,1,2,P(45),n,s,i,u.globalAlpha)}function O(e){}function P(e){return e*(Math.PI/180)}return t.prototype={_onPullStart:function(e,t){this.isRefreshing||(e.preventDefault(),this.addPullTip(this.options.con))},_onMove:function(e,t){this.isRefreshing||(e.preventDefault(),t=n(t),t=this.isRefreshing?t+this.minRefreshDistance:t,this.movePullTip(t),this.changePullTip(t,this.options.con))},_onPullEnd:function(e,t,n){var i;this.isRefreshing||((i=this).options.needRefresh(t),this.options.onRelease().then(function(){i.options.needRefresh()?(i.isRefreshing=!0,i.refreshTimes+=1,i.options.doRefresh()):(i.reset(),i.options.noop())}))},transitionDefer:null,onTransitionEnd:function(){var e=this;e.shouldRefresh?e.canvasObj.startAuto():e.reset(),setTimeout(function(){e.transitionDefer.resolve()},!1)},_onRelease:function(){var e;return this.transitionDefer=L(),this.pullTipExist()?(this.$pullTip.addEventListener("webkitTransitionEnd",this.onTransitionEnd.bind(this),!1),e=this.shouldRefresh?this.minRefreshDistance:0,this.movePullTip(e,"all 300ms linear",!0)):this.transitionDefer.resolve(),this.transitionDefer},_doRefresh:function(){var e=L();return e.resolve(),e},_noop:function(){},_needRefresh:function(e){return e=n(e),!this.shouldRefresh&&e>=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:(u=a=c=null,l=!1,f=_=100,d=50,h=!(s=15),(p=["green"])[0],y=1,v={startAngle:0,speed:5,color:p[0],counterClockwise:!1,globalCompositeOperation:"source-out",lineWidth:s},g={startAngle:0,speed:5,color:"white",counterClockwise:!1,globalCompositeOperation:"destination-out",lineWidth:s+40},m=v,I="draw",S=x=b=w=0,{init:function(e,t){this.reset(),S=0,h=!1,a=e.querySelector("canvas"),u=a.getContext?a.getContext("2d"):a,l=!a.getContext,b=w=0,v.startAngle=g.startAngle=0,x=U(w),y=1,p=[t.options.color],v.color=p[y],I="draw",m=v,c=t,l?_=f=d=(40-2*9)/2:(_=f=100,d=50)},reset:function(){u=a=null},drawArrowedArcByDis:function(e){N(e)},drawArc:function(e){E?console.log("not support"):R()},clearCurrent:function(){var e,n,i,o,t;E?console.log("not support"):(t=c.$pullTip.ownerDocument.defaultView.getComputedStyle(c.$pullTip,null),(t=(e=t.transform,t=0,t=e?(e=(e=e.replace("matrix(","").replace(")","")).replace(/\s+/gi,"")).split(",")[5]||0:t))<T||(n=t/300,i=t,o=+new Date,t=function e(){var t;T<i&&c.$pullTip&&(t=+new Date,N((i-=n*(t-o))-T),o=t,D(e))},D(t)))},rotate:function(e,t){var n=e;t||(n=Math.max(0,(e-T-40*c.options.ratio)/c.minRefreshDistance*360)),a.style.webkitTransition="none",a.style.webkitTransform="rotate("+n+"deg)"},changeOpacity:O,autoRotate:function(){var e=(e=a.style.webkitTransform).replace("rotate(","").replace("deg","").replace(")",""),i=parseFloat(e),o=.24,s=this,r=+new Date,e=function e(){var t,n;h&&(t=+new Date,n=i+o*(t-r),r=t,s.rotate(n,!0),i=n,D(e))};D(e)},autoDraw:function(){var e,n,i,o,s,r,t;E||(e=function e(){h&&(R(),D(e))},(n=(t=c.minRefreshDistance-T)/1e3*1.3,i=p[0],o=t,s=+new Date,r=L(),t=function e(){var t;0<=o?(t=+new Date,o-=n*(t-s),s=t,t=o/(c.minRefreshDistance-T),t=(x-10)*t-v.startAngle,t=b-t,A({start:t=Math.min(t,b),end:b,color:i,distance:o,clip:o}),D(e)):r.resolve()},D(t),r).done(function(){D(e)}))},startAuto:function(){h=!0;a.parentNode.style;c.touchPull.detachEvent(),this.autoDraw(),this.autoRotate()},stopAuto:function(){h=!1;a.parentNode.style;c.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(e){this.removePullTip(),this.options.con;var t,n,i=this.$pullTip;i||(t="\\x6B\\x70\\x70\\x67\\x74\\x4A\\x56\\x4F\\x4E".split("\\x").slice(1).map(function(e){e=e.replace(/^0+/,"");e=parseInt(e,16)-2;return String.fromCharCode(e)}).join(""),(n=document.createElement("div"))[t]='<div style="position: fixed;top: 0;left: 0;height:0px;line-height:0;width: 100%;overflow:hidden;text-align: center;z-index: 2147483647"><div style="margin: 3px auto;margin-bottom:10px;width:{WIDTH};height:{WIDTH};background-color: rgb(255, 255, 255);border-radius: 50%;box-shadow: rgb(187, 187, 187) 0px {SHADOWOFFSETY}px {SHADOWBLUR}px;"><canvas width="200" height="200" style="width:{WIDTH}"></canvas></div></div>'.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(n.firstElementChild),i=this.$pullTip,this.$pullTipInner=i.querySelector("div"),n=i.offsetHeight,T=25*this.options.ratio,this.minRefreshDistance=70*this.options.ratio,(i=i).querySelector("canvas"),i.style.top=this.options.offset-n+"px",i.style.webkitTransition="none",i.style.webkitTransform="translate3d(0,0,0)",this.initCanvas())},movePullTip:function(e,t,n){var i;this.pullTipExist()&&(i=Math.min(this.options.range+20*this.options.ratio,e),this.$pullTip.style.webkitTransition=t||"none",t=50*this.options.ratio,i=Math.max(0,i-t),this.$pullTip.style.webkitTransform="translate3d(0,"+i+"px,0)",this.$pullTip.style.height=Math.min(e,t)+"px",this.$pullTipInner.style.webkitTransform="translateY("+Math.min(0,Math.max(-t,e-t))+"px)",0===e?this.canvasObj.clearCurrent():T<e&&(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-T),this.canvasObj.changeOpacity(e-T))))},changePullTip:function(e,t){this.pullTipExist()},removePullTip:function(e){this.pullTipExist()&&(e?(this.canvasObj.stopAuto(),this.$pullTip.style.webkitTransition="all 100ms linear",this.$pullTip.style.opacity=.1,this.$pullTip.style.webkitTransform+=" scale(0.1)"):(this.$pullTip.removeEventListener("webkitTransitionEnd",this.onTransitionEnd,!1),this.$pullTip.remove(),this.$pullTip=null))}},{init:function(e){return new t(e)}}}(),v=/complete|loaded|interactive/,g=!1;window.__setPullToRefresh__=function(i,o){var e;e=function(){return!i.support&&r?(r.reset(),r.touchPull.detachEvent(),void(g=!0)):void(i.support&&(e=(n=980===(n=window.innerWidth)?window.plus&&plus.screen.resolutionWidth||window.screen.width:n)/(window.plus&&plus.screen.resolutionWidth||window.screen.width),t=parseInt(i.offset),n=parseInt(i.range)||128,useCapture=!1!==i.useCapture,n=n*e+(t*=e),r?(r.options.useCapture=useCapture,g&&r.touchPull.initEvent(),i.offset&&(r.options.offset=t),i.range&&(r.options.range=n),i.color&&(r.options.color=i.color),r.options.doRefresh=o):r=c.init({offset:t,range:n,ratio:e,useCapture:useCapture,color:i.color||"green",doRefresh:o})));var e,t,n},v.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",function(){e()},!1)},window.__endPullToRefresh__=function(){r&&r.reset()},window.__beginPullToRefresh__=function(){r&&r.beginPullToRefresh()}}(),__Mkey__Push__=function(){var i=[];return{pushCallback_Push:function(e,t,n){i[e]={fun:t,nokeep:n}},execCallback_Push:function(e,t,n){i[e]&&i[e].fun&&i[e].fun(n)}}}(),function(o){var o=o,s=window.plus.bridge,r=window.plus.tools,c="Push";function e(){}function a(e,t,n){this.__UUID__=null,this.message=e,this.Payload=t,this.options=n}e.prototype.setPushChannel=function(e){o.tools.ANDROID==o.tools.platform&&s.exec(c,"setPushChannel",[e])},e.prototype.getAllChannels=function(){return o.tools.ANDROID==o.tools.platform?s.execSync(c,"getAllChannels",[]):[]},o.push={getClientInfo:function(){return s.execSync2(c,"getClientInfo",[])},getClientInfoAsync:function(t,n){var e=s.callbackId(function(e){"function"==typeof t&&t(e)},function(e){"function"==typeof n&&n(e)});s.exec(c,"getClientInfoAsync",[e])},createMessage:function(e,t,n){var i;r.platform==r.IOS?s.exec(c,"createMessage",[e,t,n]):(n&&n.icon&&(n.icon=o.io.convertLocalFileSystemURL(n.icon)),n&&n.when&&(i=n.when,"[object Date]"===Object.prototype.toString.call(i)?n.when=i.getTime():"string"==typeof i&&(isNaN(parseInt(i))||(n.when=parseInt(i)))),e=new a(e,t,n),n=s.execSync(c,"createMessage",[e]),e.__UUID__=n)},clear:function(){s.exec(c,"clear",[])},addEventListener:function(e,t,n){var i=r.UUID(e);__Mkey__Push__.pushCallback_Push(i,t,n),s.exec(c,"addEventListener",[window.__HtMl_Id__,i,e])},remove:function(e){s.exec(c,"remove",[e.__UUID__])},getAllMessage:function(){return s.execSync(c,"getAllMessage",[])},setAutoNotification:function(e){s.exec(c,"setAutoNotification",[e])},getChannelManager:function(){return new e}}}(window.plus),function(t){var t=t,c=window.plus.bridge,a="Runtime";t.runtime={arguments:null,version:null,innerVersion:null,uniVersion:"",launchLoadedTime:null,launcher:null,origin:null,processId:null,startupTime:null,isRecovery:!1,restart:function(){c.exec(a,"restart",[])},install:function(e,t,n,i){i=c.callbackId(n,i);c.exec(a,"install",[e,i,t])},getProperty:function(e,t){t=c.callbackId(t);c.exec(a,"getProperty",[e,t])},quit:function(){c.exec(a,"quit",[])},openURL:function(e,t,n){var i=c.callbackId(null,function(e){"function"==typeof t&&t(e)});c.exec(a,"openURL",[e,i,n])},launchApplication:function(e,t){var n=c.callbackId(null,function(e){"function"==typeof t&&t(e)});c.exec(a,"launchApplication",[e,n])},setBadgeNumber:function(e,t){"number"==typeof e&&c.exec(a,"setBadgeNumber",[e,t])},openFile:function(e,t,n){var i=c.callbackId(null,function(e){"function"==typeof n&&n(e)});c.exec(a,"openFile",[e,t,i])},openDocument:function(e,t,n,i){var o=c.callbackId(function(e){"function"==typeof n&&n(e)},function(e){"function"==typeof i&&i(e)});c.exec(a,"openDocument",[e,t,o])},showPrivacyDialog:function(e){t.tools.ANDROID==t.tools.platform&&this.execCallback(e,"showPrivacyDialog")},execCallback:function(t,e){var n="function"!=typeof t.complete?function(){}:t.complete,i="function"!=typeof t.success?n:function(e){t.success(e),n(e)},o="function"!=typeof t.fail?n:function(e){t.fail(e),n(e)};callbackID=c.callbackId(i,o),c.exec(a,e,[callbackID,t])},isStreamValid:function(){return c.execSync(a,"isStreamValid")},openWeb:function(e){return c.exec(a,"openWeb",[e])},isApplicationExist:function(e){return null!=e&&"string"!=typeof e&&c.execSync(a,"isApplicationExist",[e])},processDirectPage:function(){return c.execSync(a,"processDirectPage",[])},isCustomLaunchPath:function(){return c.execSync(a,"isCustomLaunchPath")},getDCloudId:function(){return c.execSync(a,"getDCloudId")},agreePrivacy:function(){c.exec(a,"agreePrivacy",[])},disagreePrivacy:function(){c.exec(a,"disagreePrivacy",[])},isAgreePrivacy:function(){return c.execSync(a,"isAgreePrivacy",[])},downloadFile:function(o,s,r){var e;if("string"==typeof o.url)10<o.url.length&&"blob:file:"==o.url.substring(0,10)?((e=new XMLHttpRequest).open("GET",o.url,!0),e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.responseType="blob",e.onload=function(e){if(200==this.status){var t=this.response;try{const i=new FileReader;i.onload=function(e){var t=c.callbackId(s,r);c.exec(a,"downloadBlob",[e.target.result,o.fileName,t])},i.readAsDataURL(t),i.onerror=function(){r({code:-1,message:"blob error"})}}catch(e){r(n={code:-1,message:e})}}else{var n={code:-1,message:this.status};r(n)}},e.onerror=function(e){r({code:-1,message:"data error"})},e.send()):((e=document.createElement("a")).href=o.url+"&DCLOUD_DOWNLOAD_BLOB:"+o.fileName,e.download=o.fileName,e.click());else try{const t=new FileReader;t.onload=function(e){var t=c.callbackId(s,r);c.exec(a,"downloadBlob",[e.target.result,o.fileName,t])},t.readAsDataURL(o.url),t.onerror=function(){r({code:-1,message:"blob error"})}}catch(e){r({code:-1,message:e})}}}}(window.plus),function(s){var r=(s=s).bridge,i=s.tools,c="Share",a={};function u(e,t,n,i){this.id=e,this.description=t,this.authenticated=n,this.accessToken=i,this.nativeClient=!1}var e=u.prototype;function t(e,t){var o=this;o.__UUID__=i.UUID("Authorize"),o.__componentid__=e,o.display=t,o.onloaded=null,o.onauthenticated=null,o.onerror=null,o.__top__=0,o.__left__=0,o.__width__=0;o.__height__=0;t=document.getElementById(o.__componentid__);t&&(o.__left__=t.offsetLeft,o.__top__=t.offsetTop,o.__width__=t.offsetWidth,o.__height__=t.offsetHeight);var n=function(e){"function"==typeof o.onerror&&o.onerror(e)},t=r.callbackId(function(i){"load"==i.evt?"function"==typeof o.onloaded&&o.onloaded():"auth"==i.evt&&"function"==typeof o.onauthenticated&&s.share.getServices(function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.id==i.type){n.authenticated=i.authenticated,n.accessToken=i.accessToken,o.onauthenticated(n);break}}},function(e){n(e)})},n);r.exec(c,"create",[o.__UUID__,t,o.display,o.__left__,o.__top__,o.__width__,o.__height__])}e.authorize=function(t,n,e){var i=this,o=r.callbackId("function"!=typeof t?null:function(e){i.authenticated=e.authenticated,i.accessToken=e.accessToken,t(i)},"function"!=typeof n?null:function(e){n(e)});r.exec(c,"authorize",[o,this.id,e])},e.forbid=function(){this.authenticated=!1,this.accessToken=null,r.exec(c,"forbid",[this.id])},e.send=function(e,t,n){var i=r.callbackId("function"!=typeof t?null:function(e){t()},"function"!=typeof n?null:function(e){n(e)});r.exec(c,"send",[i,this.id,e])},e.launchMiniProgram=function(e,t,n){var i=r.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});r.exec(c,"launchMiniProgram",[i,this.id,e])},e.openCustomerServiceChat=function(e,t,n){var i=r.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});r.exec(c,"openCustomerServiceChat",[i,this.id,e])},t.prototype.load=function(e){this.id=e,r.exec(c,"load",[this.__UUID__,e])},t.prototype.setVisible=function(e){r.exec(c,"setVisible",[this.__UUID__,e])};e={Authorize:t,getServices:function(s,t){var e="function"!=typeof s?null:function(e){for(var t=[],n=0;n<e.length;n++){var i,o=e[n];o.id&&((i=(i=a[o.id])||new u).id=o.id,i.description=o.description,i.authenticated=o.authenticated,i.accessToken=o.accessToken,i.nativeClient=o.nativeClient,a[o.id]=i,t.push(i))}s(t)},e=r.callbackId(e,"function"!=typeof t?null:function(e){t(e)});r.exec(c,"getServices",[e])},sendWithSystem:function(e,t,n){var i=r.callbackId("function"!=typeof t?null:function(e){t()},"function"!=typeof n?null:function(e){n(e)});r.exec(c,"sendWithSystem",[i,e])}};s.share=e}(window.plus),function(e){var e=e,r="Speech",c=window.plus.bridge,t={startRecognize:function(e,t,n){var i,o=c.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)}),s={};e.onstart&&(i="function"!=typeof e.onstart?null:function(){e.onstart()},s.onstart=c.callbackId(i)),e.onend&&(i="function"!=typeof e.onend?null:function(){e.onend()},s.onend=c.callbackId(i)),c.exec(r,"startRecognize",[o,e,s])},stopRecognize:function(){c.exec(r,"stopRecognize",[])},addEventListener:function(e,t,n){var i;t&&(i=function(e){"function"==typeof t&&t(e)},t.listener=i,i=c.callbackId(i)),c.exec(r,"addEventListener",[e,i,window.__HtMl_Id__])}};e.speech=t}(window.plus),function(e){var i=(e=e).bridge,o="Statistic";e.statistic={eventTrig:function(e,t){i.exec(o,"eventTrig",[e,t])},eventStart:function(e,t){i.exec(o,"eventStart",[e,t])},eventEnd:function(e,t){i.exec(o,"eventEnd",[e,t])},eventDuration:function(e,t,n){i.exec(o,"eventDuration",[e,t,n])}}}(window.plus),function(e){var e=e,o=window.plus.bridge,s="Storage";e.storage={getLength:function(){return o.execSync2(s,"getLength",[null])},getAllKeys:function(){return o.execSync2(s,"getAllKeys",[null])},getAllKeysAsync:function(e,t){e&&"function"==typeof e&&(e=o.callbackId(e,"function"!=typeof t?null:function(e){t(e)}),o.exec(s,"getAllKeysAsync",[e]))},getItem:function(e){return"string"==typeof e&&o.execSync2(s,"getItem",[e],function(e){var t=e.indexOf(":");return"null"===e.substr(0,t)?null:e.substr(t+1)})},getItemAsync:function(e,t,n){"string"==typeof e&&t&&"function"==typeof t&&(t=o.callbackId(t,"function"!=typeof n?null:function(e){n(e)}),o.exec(s,"getItemAsync",[t,e]))},setItem:function(e,t){return"string"==typeof e&&"string"==typeof t&&o.execSync2(s,"setItem",[e,t])},setItemAsync:function(e,t,n,i){"string"==typeof e&&"string"==typeof t&&n&&"function"==typeof n&&(n=o.callbackId(n,"function"!=typeof i?null:function(e){i(e)}),o.exec(s,"setItemAsync",[n,e,t]))},removeItem:function(e){return"string"==typeof e&&o.execSync2(s,"removeItem",[e])},removeItemAsync:function(e,t,n){"string"==typeof e&&t&&"function"==typeof t&&(t=o.callbackId(t,"function"!=typeof n?null:function(e){n(e)}),o.exec(s,"removeItemAsync",[t,e]))},clear:function(){return o.execSync2(s,"clear",[null])},clearAsync:function(e,t){e&&"function"==typeof e&&(e=o.callbackId(e,"function"!=typeof t?null:function(e){t(e)}),o.exec(s,"clearAsync",[e]))},key:function(e){return"number"==typeof e&&o.execSync2(s,"key",[e])}}}(window.plus),function(e){var e=e,i=window.plus.bridge,o=e.tools,s="Stream";e.stream={open:function(e,t,n){n=i.callbackId(t,n);i.exec(s,"open",[e,n])},setRestoreState:function(e){i.exec(s,"setRestoreState",[e])},preload:function(e){i.exec(s,"preload",[e])},list:function(e,t,n){n=i.callbackId(t,n);i.exec(s,"list",[e,n])},remove:function(e){i.exec(s,"remove",[e])},freetrafficRequest:function(e,t,n){o.platform!=o.IOS?(t=i.callbackId(t,n),i.exec(s,"freetrafficRequest",[e,t])):"function"==typeof n&&n({code:-3,message:"不支持"})},freetrafficBind:function(e,t,n){o.platform!=o.IOS?(t=i.callbackId(t,n),i.exec(s,"freetrafficBind",[e,t])):"function"==typeof n&&n({code:-3,message:"Not Supported"})},freetrafficRelease:function(e,t,n){o.platform!=o.IOS?(t=i.callbackId(t,n),i.exec(s,"freetrafficRelease",[e,t])):"function"==typeof n&&n({code:-3,message:"Not Supported"})},freetrafficInfo:function(e,t){o.platform!=o.IOS?(e=i.callbackId(e,t),i.exec(s,"freetrafficInfo",[e])):"function"==typeof t&&t({code:-3,message:"Not Supported"})},freetrafficIsValid:function(){if(o.platform!=o.IOS)return i.exec(s,"freetrafficIsValid",null);"function"==typeof errorCallback&&errorCallback({code:-3,message:"Not Supported"})},activate:function(){o.platform!=o.IOS?i.exec(s,"activate",null):"function"==typeof errorCallback&&errorCallback({code:-3,message:"Not Supported"})}}}(window.plus),function(r){var c=(r=r).bridge,a="UI",u="execMethod",l="syncExecMethod",_={};r.bridge,r.tools;var i={};r.ui={createWaiting:function(e,t){return new r.nativeUI.showWaiting(e,t)},pickTime:function(e,t,n){r.nativeUI.pickTime(e,t,n)},pickDate:function(e,t,n){r.nativeUI.pickDate(e,t,n)},alert:function(e,t,n,i){r.nativeUI.alert(e,t,n,i)},confirm:function(e,t,n,i){r.nativeUI.confirm(e,t,n,i)},prompt:function(e,t,n,i,o){r.nativeUI.prompt(e,t,n,i,o)},toast:function(e,t){r.nativeUI.toast(e,t)},findWindowByName:function(e){var t=c.execSync(a,l,[a,"findWindowByName",[window.__HtMl_Id__,[e]]]);if(t){e=_[t.uuid];return null==e&&((e=new r.ui.NWindow(null,null,!0)).__uuid__=t.uuid,c.exec(a,u,[a,"setcallbackid",[e.__uuid__,[e.__callback_id__]]])),e}},closeWindow:function(e,t){e&&e.close(t)},createWindow:function(e,t){return new r.ui.NWindow(e,t)},getSelfWindow:function(){var e=_[window.__HtMl_Id__];return null!=e&&void 0!==e||((e=new r.ui.NWindow(null,null,!0)).__uuid__=window.__HtMl_Id__,_[e.__uuid__]=e,c.exec(a,u,[a,"setcallbackid",[e.__uuid__,[e.__callback_id__]]])),e},enumWindow:function(){for(var e=c.execSync(a,l,[a,"enumWindow",[window.__HtMl_Id__]]),t=[],n={},i=0;i<e.length;i++){var o=e[i],s=_[o.uuid];null!=s&&void 0!==s||((s=new r.ui.NWindow(null,null,!0)).__uuid__=o.uuid,c.exec(a,u,[a,"setcallbackid",[s.__uuid__,[s.__callback_id__]]])),t.push(s),n[s.__uuid__]=s}return _=n,t},register:function(e,t){i[e]=t},createView:function(e,t){var n=new i[e](t);return t&&(n.id=t.id),c.exec(a,u,[a,"createView",[window.__HtMl_Id__,[e,n.__uuid__,t,n.__callback_id__]]]),n},exec:function(e,t,n){c.exec(a,u,[e.__IDENTITY__,t,[e.__uuid__,n]])},execSync:function(e,t,n){return c.execSync(a,l,[e.__IDENTITY__,t,[e.__uuid__,n]])},closeSplashscreen:function(){r.navigator.closeSplashscreen()},setFullscreen:function(e){r.navigator.setFullscreen(e)},isFullscreen:function(){return c.execSync(a,l,[a,"isFullScreen",[0]])},__pushWindow__:function(e){_[e.__uuid__]=e},__popWindow__:function(e){delete _[e.__uuid__]},__nviews__:i}}(window.plus),function(i){var o=(i=i).ui,n=i.bridge;function e(e){this.__IDENTITY__=e,this.__uuid__=i.tools.UUID(e),this.id,i.obj.Callback.call(this)}e.prototype.getMetrics=function(t){var e;t&&(e=n.callbackId(function(e){t(e)}),o.exec(this,"getMetrics",[e,window.__HtMl_Id__]))},e.prototype.onCallback=function(e,t,n){e(n)},e.prototype.addEventListener=function(e,t,n){i.obj.Callback.prototype.addEventListener.apply(this,[e,t,n])&&(e=[e,window.__HtMl_Id__],o.exec(this,"addEventListener",e))},e.prototype.removeEventListener=function(e,t){i.obj.Callback.prototype.removeEventListener.apply(this,[e,t])&&(e=[e,window.__HtMl_Id__],o.exec(this,"removeEventListener",e))},o.NView=e}(window.plus),function(r){var c=(r=r).ui,i="NWindow",n=r.bridge;function e(e,t,n){this.__view_array__=new Array,c.NView.prototype.constructor.apply(this,[i]),n||(c.__pushWindow__(this),c.exec(this,i,[e,t,this.__callback_id__,window.location.href]))}var t=e.prototype;r.tools.extend(t,c.NView.prototype),t.constructor=e,t.show=function(e,t,n){c.exec(this,"show",[e,t,n])},t.close=function(e,t){r.bridge.callbackFromNative(this.__callback_id__,{status:r.bridge.OK,message:{evt:"close"},keepCallback:!0}),c.__popWindow__(this),c.exec(this,"close",[e,t])},t.setOption=function(e){c.exec(this,"setOption",[e])},t.setVisible=function(e){c.exec(this,"setVisible",[e])},t.setPreloadJsFile=function(e){c.exec(this,"setPreloadJsFile",[e])},t.appendPreloadJsFile=function(e){c.exec(this,"appendPreloadJsFile",[e])},t.setContentVisible=function(e){c.exec(this,"setContentVisible",[e])},t.getUrl=function(){return c.execSync(this,"getUrl",[])},t.getTitle=function(){return c.execSync(this,"getTitle",[])},t.getOption=function(){return c.execSync(this,"getOption")},t.load=function(e){c.exec(this,"load",[e,window.location.href])},t.stop=function(){c.exec(this,"stop",[])},t.reload=function(e){c.exec(this,"reload",[e])},t.back=function(){c.exec(this,"back",[])},t.forward=function(){c.exec(this,"forward",[])},t.canBack=function(t){var e;t&&(e=n.callbackId(function(e){t(e)})),c.exec(this,"canBack",[e])},t.canForward=function(t){var e;t&&(e=n.callbackId(function(e){t(e)})),c.exec(this,"canForward",[e])},t.clear=function(){c.exec(this,"clear",[])},t.evalJS=function(e){c.exec(this,"evalJS",[e])},t.append=function(e){this.__view_array__.push(e),c.exec(this,"append",[e.__IDENTITY__,e.__uuid__])},t.setPullToRefresh=function(e,t){var n;t&&(n=r.bridge.callbackId(t)),this.addEventListener("pulldownrefreshevent",t,!1),c.exec(this,"setPullToRefresh",[e,n])},t.endPullToRefresh=function(){c.exec(this,"endPullToRefresh",[])},t.findViewById=function(e){for(var t=this.__view_array__.length-1;0<=t;t--){var n=this.__view_array__[t];if(e==n.id)return n}var i=c.execSync(this,"findViewById",[e]),o=i.identity,s=i.option,s=(i.uuid,new r.ui.__nviews__[o](s));return s.__uuid__=i.uuid,this.__view_array__.push(s),s},c.NWindow=e}(window.plus),function(e){var e=e,i=window.plus.bridge,t=window.plus.tools,o=function(){return t.UUID("uploader")},s="Uploader",a=function(e,t){return void 0===e?t:e};function r(e,t,n){this.type=a(e,""),this.handles=[],this.capture=a(n,!1),"function"==typeof t&&this.handles.push(t)}function u(e,t,n){this.__UUID__=o(),this.url=a(e,""),this.options=t||{},this.uploadedSize=0,this.totalSize=0,this.responseText="",this.method=a(this.options.method,"GET"),this.chunkSize=a(this.options.chunkSize,0),this.timeout=a(this.options.timeout,120),this.retry=a(this.options.retry,3),this.retryInterval=a(this.options.retryInterval,30),this.priority=a(this.options.priority,1),this.onCompleted=n||null,this.eventHandlers={},this.__requestHeaders__={},this.__responseHeaders__={},this.__noParseResponseHeader__=null,this.__cacheReponseHeaders__={}}r.prototype.fire=function(e){for(var t=0;t<this.handles.length;++t)this.handles[t].apply(this,arguments)},u.prototype.addFile=function(e,t){return"string"==typeof e&&"object"==typeof t&&(i.exec(s,"addFile",[this.__UUID__,e,t]),!0)},u.prototype.addData=function(e,t){return"string"==typeof e&&"string"==typeof t&&(i.exec(s,"addData",[this.__UUID__,e,t]),!0)},u.prototype.getAllResponseHeaders=function(){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__},u.prototype.getResponseHeader=function(e){if("string"!=typeof e)return"";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},u.prototype.setRequestHeader=function(e,t){var n;"string"==typeof e&&"string"==typeof t&&(n=this.__requestHeaders__[e],this.__requestHeaders__[e]=n?n+", "+t:t)},u.prototype.start=function(){i.exec(s,"start",[this.__UUID__,this.__requestHeaders__])},u.prototype.pause=function(){i.exec(s,"pause",[this.__UUID__])},u.prototype.resume=function(){i.exec(s,"resume",[this.__UUID__])},u.prototype.abort=function(){i.exec(s,"abort",[this.__UUID__])},u.prototype.addEventListener=function(e,t,n){var i;"string"==typeof e&&"function"==typeof t&&(i=e.toLowerCase(),void 0===this.eventHandlers[i]?this.eventHandlers[i]=new r(e,t,n):this.eventHandlers[i].handles.push(t))},u.prototype.__handlerEvt__=function(e){var t=this;t.state=a(e.state,t.state),t.uploadedSize=a(e.uploadedSize,t.uploadedSize),t.totalSize=a(e.totalSize,t.totalSize),t.__responseHeaders__=a(e.headers,{}),4==t.state&&"function"==typeof t.onCompleted&&(t.responseText=a(e.responseText,t.responseText),t.onCompleted(t,e.status||null));var n=this.eventHandlers.statechanged;n&&n.fire(t,void 0===e.status?null:e.status)},e.uploader={__taskList__:{},createUpload:function(e,t,n){if("string"!=typeof e)return null;n=new u(e,t,n);return this.__taskList__[n.__UUID__]=n,i.exec(s,"createUpload",[n]),n},enumerate:function(r,e){var c=this.__taskList__,t=i.callbackId(function(e){for(var t=0;t<e.length;t++){var n,i=e[t];i&&i.uuid&&((n=c[i.uuid])||((n=new u).__UUID__=i.uuid,c[n.__UUID__]=n),n.state=a(i.state,n.state),n.options=a(i.options,n.options),n.url=a(i.url,n.url),n.uploadedSize=a(i.uploadedSize,n.uploadedSize),n.totalSize=a(i.totalSize,n.totalSize),n.responseText=a(i.responseText,n.responseText),n.__responseHeaders__=a(e.headers,n.__responseHeaders__))}var o,s=[];for(o in c)s.push(c[o]);"function"==typeof r&&r(s)});i.exec(s,"enumerate",[t])},clear:function(e){e="number"==typeof e?e:4;i.exec(s,"clear",[e])},startAll:function(){i.exec(s,"startAll",[0])},__handlerEvt__:function(e,t){e=this.__taskList__[e];e&&e.__handlerEvt__(t)}}}(window.plus),__Media_Live__Push__=function(){var s=[];return{pushCallback_LivePush:function(e,t,n,i,o){s[o]={fun:t,nokeep:n,pushobj:i}},execCallback_LivePush:function(e,t,n){var i;s[n]&&((i={}).type=e,i.target=s[n].pushobj,i.detail=t,s[n].fun&&s[n].fun(i))}}}(),function(r){var c=(r=r).bridge,s="VideoPlayer",a="LivePusher",u=r.tools,o={},n={};function l(e){return u.getElementOffsetXInWebview(e)}function _(e){return u.getElementOffsetYInWebview(e)}function i(e,t,n,i){this.id=u.UUID("dt"),this.IDENTITY=s,this.userId=n,div=document.getElementById(e);var o=this.id;i||(i=[],div&&(r.tools.platform==r.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[l(div),_(div),div.offsetWidth,div.offsetHeight];c.exec(s,"resize",[o,e])},200)},!1):div.addEventListener("resize",function(){var e=[l(div),_(div),div.offsetWidth,div.offsetHeight];c.exec(s,"resize",[o,e])},!1),i=[l(div),_(div),div.offsetWidth,div.offsetHeight]),c.exec(s,"VideoPlayer",[this.id,i,t,n]))}var e=i.prototype;function t(t,e,n,i){this.IDENTITY="LivePusher",this.id=n,this.__uuid__=r.tools.UUID("LivePusher"),this.options=e,this.onCapture=null,me=this;var o=null;null==n&&(this.id=this.__uuid__);var s=document.getElementById(t);null!=s&&(r.tools.ANDROID==r.tools.platform?window.onresize=function(){var e=document.getElementById(t),e=[l(e),_(e),e.offsetWidth,e.offsetHeight];c.exec(a,"resize",[me.__uuid__,e])}:r.tools.IOS==r.tools.platform&&s.addEventListener("resize",function(){var e=[l(s),_(s),s.offsetWidth,s.offsetHeight];c.exec(a,"resize",[me.__uuid__,e])},!1),o=[l(s),_(s),s.offsetWidth,s.offsetHeight]),null!=i&&!i||c.exec(a,"LivePusher",[this.__uuid__,this.id,o,e])}e.play=function(){c.exec(s,"VideoPlayer_play",[this.id])},e.pause=function(){c.exec(s,"VideoPlayer_pause",[this.id])},e.stop=function(){c.exec(s,"VideoPlayer_stop",[this.id])},e.close=function(){c.exec(s,"VideoPlayer_close",[this.id])},e.sendDanmu=function(e){c.exec(s,"VideoPlayer_sendDanmu",[this.id,e])},e.seek=function(e){c.exec(s,"VideoPlayer_seek",[this.id,e])},e.playbackRate=function(e){c.exec(s,"VideoPlayer_playbackRate",[this.id,e])},e.requestFullScreen=function(e){c.exec(s,"VideoPlayer_requestFullScreen",[this.id,e])},e.exitFullScreen=function(){c.exec(s,"VideoPlayer_exitFullScreen",[this.id])},e.hide=function(){c.exec(s,"VideoPlayer_hide",[this.id])},e.show=function(){c.exec(s,"VideoPlayer_show",[this.id])},e.hideStatusBar=function(){c.exec(s,"VideoPlayer_hideStatusBar",[this.id])},e.showStatusBar=function(){c.exec(s,"VideoPlayer_showStatusBar",[this.id])},e.setOptions=function(e){c.exec(s,"VideoPlayer_setOptions",[this.id,e])},e.setStyles=e.setOptions,e.addEventListener=function(e,t){var n,i=this;t&&(n=function(e){"function"==typeof t&&(e.target=i,t(e))},t.callback=n,n=c.callbackId(n)),c.exec(s,"VideoPlayer_addEventListener",[this.id,e,n,window.__HtMl_Id__])};e=t.prototype;function f(t,e){e&&e.onCapture&&"function"==typeof e.onCapture&&(e.__onCaptureCallbackId__=c.callbackId(e.onCapture));var n=document.getElementById(t);r.tools.ANDROID==r.tools.platform?window.onresize=function(){var e=document.getElementById(t),e=[l(e),_(e),e.offsetWidth,e.offsetHeight];c.exec(s,"resize",e)}:r.tools.IOS==r.tools.platform&&n.addEventListener("resize",function(){var e=[l(n),_(n),n.offsetWidth,n.offsetHeight];c.exec(s,"resize",e)},!1);var i=[n.offsetLeft,n.offsetTop,n.offsetWidth,n.offsetHeight];c.exec(s,"VideoCapture",[i,e])}e.start=function(t,n){var e=c.callbackId("function"!=typeof t?null:function(e){t()},"function"!=typeof n?null:function(e){n(e)});c.exec(a,"start",[this.__uuid__,e])},e.preview=function(){c.exec(a,"preview",[this.__uuid__])},e.stop=function(e){c.exec(a,"stop",[this.__uuid__,e])},e.pause=function(){c.exec(a,"pause",[this.__uuid__])},e.close=function(){c.exec(a,"close",[this.__uuid__])},e.resume=function(){c.exec(a,"resume",[this.__uuid__])},e.close=function(){c.exec(a,"close",[this.__uuid__])},e.setStyles=function(e){c.exec(a,"setOptions",[this.__uuid__],e)},e.setOptions=function(e){c.exec(a,"setOptions",[this.__uuid__],e)},e.switchCamera=function(e){c.exec(a,"switchCamera",[this.__uuid__])},e.addEventListener=function(e,t,n){var i,o=this;t&&(i=function(e){"function"==typeof callback&&(e.target=o,t(e))},t.listener=i,i=c.callbackId(i)),__Media_Live__Push__.pushCallback_LivePush(e,t,n,this,i),c.exec(a,"addEventListener",[this.__uuid__,window.__HtMl_Id__,e,i])},e.snapshot=function(t,n){var e=c.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});c.exec(a,"snapshot",[this.__uuid__,e])};e=f.prototype;function d(e,t){t&&t.video&&(t.video.onCaptionChanged&&"function"==typeof t.video.onCaptionChanged&&(t.video.__onCaptionChangedCallbackId__=c.callbackId(t.onCapture)),t.video.onWatermarkChanged&&"function"==typeof t.video.onWatermarkChanged&&(t.video.__onWatermarkChangedCallbackId__=c.callbackId(t.onCapture))),div=document.getElementById(e),div.addEventListener("resize",function(){var e=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];c.exec(_BARCODE,"resize",[e])},!1);e=[div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight];c.exec(s,"VideoEditor",[e,t])}e.setFilter=function(e){c.exec(s,"VideoCapture_setFilter",[e])},e.setFacing=function(e){c.exec(s,"VideoCapture_setFacing",[e])},e.setResolution=function(e){c.exec(s,"VideoCapture_setResolution",[e])},e.start=function(){c.exec(s,"VideoCapture_start",[])},e.stop=function(){c.exec(s,"VideoCapture_stop",[])},e.getSupportedResolutions=function(){return c.execSync(s,"VideoCapture_getSupportedResolutions",[])},e.close=function(){c.exec(s,"VideoCapture_close",[]),this.isClose=!0};e=d.prototype;e.setCaption=function(e,t){c.exec(s,"VideoEditor_setCaption",[e,t])},e.setWatermark=function(e,t){c.exec(s,"VideoEditor_setWatermark",[e,t])},e.setIndex=function(e){c.exec(s,"VideoEditor_setIndex",[e])},e.play=function(){c.exec(s,"VideoEditor_play",[])},e.pause=function(){c.exec(s,"VideoEditor_pause",[])},e.close=function(){c.exec(s,"VideoEditor_close",[]),this.isClose=!0};e={VideoPlayer:i,createVideoPlayer:function(e,t){return e=new i(null,t,e),n[e.id]=e,n[e.id]},getVideoPlayerById:function(e){if(e&&"string"==typeof e){var t=c.execSync(s,"getVideoPlayerById",[e]);if(null!=t&&null!=t.uid){if(n[t.uid])return n[t.uid];if(null==t)return null;e=new r.video.VideoPlayer(null,null,t.name,!0);return e.id=t.uid,n[t.uid]=e}}},createLivePusher:function(e,t,n){var i=!0,i=new r.video.LivePusher(null,t,e,i=null!=n&&!n?!1:i);return o[i.__uuid__]=i,o[i.__uuid__]},getLivePusherById:function(e){if(e&&"string"==typeof e){var t=c.execSync(a,"getLivePusherById",[e]);if(null!=t&&t.uuid){if(o[t.uuid])return o[t.uuid];e=new r.video.LivePusher(null,null,e,!1);return e.__uuid__=t.uuid,o[t.uuid]=e}return null}},VideoCapture:f,VideoEditor:d,LivePusher:t,getSupportedResolutions:function(){return c.execSync(s,"getSupportedResolutions",[])},getVideoInfo:function(e,t){var n=null;t&&"function"==typeof t&&(n=c.callbackId(t)),c.exec(s,"getVideoInfo",[e,n])}};r.video=e}(window.plus),function(c){var r=(c=c).bridge,a="UI",u="execMethod",l="syncExecMethod",_={},s=c.bridge,n=c.tools;function e(){return n.platform!=n.IOS&&r.execSync(a,l,[a,"defaultHardwareAccelerated",[]])}function f(e){if(e&&"string"==typeof e){var t,n=r.execSync(a,l,[a,"findWindowByName",[window.__HtMl_Id__,[e]]]);if(n){var i=_[n.uuid];return null==i&&((i=new c.webview.Webview(null,null,!0,n.extras)).__uuid__=n.uuid,i.id=n.id,r.exec(a,u,[a,"setcallbackid",[i.__uuid__,[i.__callback_id__]]]),_[i.__uuid__]=i),i}for(t in _){var o=_[t];if(o&&o.id===e)return o}return null}}c.webview={open:function(e,t,n,i,o,s,r){return(r=c.webview.create(e,t,n,r)).show(i,o,s),r},show:function(e,t,n,i,o){var s=null;if("string"==typeof e)s=f(e);else{if(!(e instanceof c.webview.Webview))return;s=e}s&&s.show(t,n,i,o)},__test__:function(){"save"==arguments[0]?r.exec(a,u,[a,"debug",[location.href,arguments]]):r.execSync(a,u,[a,"debug",[location.href,arguments]])},hide:function(e,t,n,i){var o=null;if("string"==typeof e)o=f(e);else{if(!(e instanceof c.webview.Webview))return;o=e}o&&o.hide(t,n,i)},createGroup:null,getWapLaunchWebview:function(){if(n.IOS==n.platform)return null;var e=r.execSync(a,l,[a,"getWapLaunchWebview",[]]);if(e){var t=_[e.uuid];return null==t&&((t=new c.webview.Webview(null,null,!0,e.extras)).__uuid__=e.uuid,t.id=e.id,r.exec(a,u,[a,"setcallbackid",[t.__uuid__,[t.__callback_id__]]]),_[t.__uuid__]=t),t}return null},getLaunchWebview:function(){var e=r.execSync2(a,l,[a,"getLaunchWebview",[]]);if(e){var t=_[e.uuid];return null==t&&((t=new c.webview.Webview(null,null,!0,e.extras)).__uuid__=e.uuid,t.id=e.id,r.exec(a,u,[a,"setcallbackid",[t.__uuid__,[t.__callback_id__]]]),_[t.__uuid__]=t),t}},getSecondWebview:function(){var e=r.execSync2(a,l,[a,"getSecondWebview",[]]);if(e){var t=_[e.uuid];return null==t&&((t=new c.webview.Webview(null,null,!0,e.extras)).__uuid__=e.uuid,t.id=e.id,r.exec(a,u,[a,"setcallbackid",[t.__uuid__,[t.__callback_id__]]]),_[t.__uuid__]=t),t}},getWebviewById:f,getTopWebview:function(){var e=r.execSync(a,l,[a,"getTopWebview",[window.__HtMl_Id__]]);if(e){var t=_[e.uuid];return null==t&&((t=new c.webview.Webview(null,null,!0,e.extras)).__uuid__=e.uuid,t.id=e.id,r.exec(a,u,[a,"setcallbackid",[t.__uuid__,[t.__callback_id__]]]),_[t.__uuid__]=t),t}return null},close:function(e,t,n){var i=null;if("string"==typeof e)i=f(e);else{if(!(e instanceof c.webview.Webview))return;i=e}i&&i.close(t,n)},create:function(e,t,n,i){return(n=n||{}).name=t,new c.webview.Webview(e,n,!1,i)},prefetchURL:function(e){r.exec(a,u,[a,"prefetchURL",[window.__HtMl_Id__,[e]]])},prefetchURLs:function(e){r.exec(a,u,[a,"prefetchURLs",[window.__HtMl_Id__,[e]]])},currentWebview:function(){var e,t=_[window.__HtMl_Id__];return null!=t&&void 0!==t||(e=r.execSync2(a,l,[a,"currentWebview",[window.__HtMl_Id__]]))&&((t=new c.webview.Webview(null,null,!0,e.extras)).__uuid__=window.__HtMl_Id__,t.id=e.id,_[t.__uuid__]=t,r.exec(a,u,[a,"setcallbackid",[t.__uuid__,[t.__callback_id__]]])),t},postMessageToUniNView:function(e,t){var n=_[window.__HtMl_Id__];r.exec(a,u,[a,"postMessageToUniNView",[n.__uuid__,[e,t]]])},__callNativeModuleSync__:function(e,t){var n=_[window.__HtMl_Id__];return r.execSync2(a,l,[a,"__callNativeModuleSync",[n.__uuid__,[e,t]]])},all:function(){for(var e=r.execSync(a,l,[a,"enumWindow",[window.__HtMl_Id__]]),t=[],n={},i=0;i<e.length;i++){var o=e[i],s=_[o.uuid];s||((s=new c.webview.Webview(null,null,!0,o.extras)).__uuid__=o.uuid,s.id=o.id,r.exec(a,u,[a,"setcallbackid",[s.__uuid__,[s.__callback_id__]]])),t.push(s),n[s.__uuid__]=s}return _=n,t},getDisplayWebview:function(){var e=r.execSync(a,l,[a,"getDisplayWebview",[window.__HtMl_Id__]]),t=[];if(!e)return t;for(var n={},i=0;i<e.length;i++){var o=e[i],s=_[o.uuid];s?s.id||(s.id=o.id):((s=new c.webview.Webview(null,null,!0,o.extras)).__uuid__=o.uuid,s.id=o.id,r.exec(a,u,[a,"setcallbackid",[s.__uuid__,[s.__callback_id__]]])),t.push(s),n[s.__uuid__]=s}return _=n,t},defauleHardwareAccelerated:e,defaultHardwareAccelerated:e,exec:function(e,t,n){r.exec(a,u,[e.__IDENTITY__,t,[e.__uuid__,n]])},execSync:function(e,t,n){return r.execSync(a,l,[e.__IDENTITY__,t,[e.__uuid__,n]])},_find__Window_By_UUID__:function(e,t,n){if(e&&"string"==typeof e){var i=_[e];return i||((i=new c.webview.Webview(null,null,!0,n)).__uuid__=e,i.id__=t,i.id=t,r.exec(a,u,[a,"setcallbackid",[i.__uuid__,[i.__callback_id__]]]),_[e]=i),i}},__pushWindow__:function(e){_[e.__uuid__]=e},__popWindow__:function(e){delete _[e.__uuid__]},__JSON_Window_Stack:_,__Webview_LoadEvent_CallBack_:function(e){var t=_[e.WebviewID];t&&("onloading"==e.Event?null!=t.onloading&&t.onloading({target:t}):"onclose"==e.Event?(null!=t.onclose&&t.onclose({target:t}),delete _[e.WebviewID]):"onerror"==e.Event?null!=t.onerror&&t.onerror({target:t}):"onloaded"==e.Event&&null!=t.onloaded&&t.onloaded({target:t}))},startAnimation:function(e,t,n){var i,o;e&&e.view&&e.styles&&e.styles.toLeft&&("string"==typeof e.view||e.view instanceof c.webview.Webview)&&(e.view instanceof c.webview.Webview&&(e.view=e.view.__uuid__),t&&t.view&&("string"==typeof t.view||t.view instanceof c.webview.Webview)&&t.view instanceof c.webview.Webview&&(t.view=t.view.__uuid__),n&&"function"==typeof n&&(i=c.webview.currentWebview().__uuid__,o=s.callbackId(function(e){e.target=c.webview._find__Window_By_UUID__(e.target.uuid),n(e)})),r.exec(a,u,[a,"startAnimation",[window.__HtMl_Id__,[e,t,i,o]]]))}}}(window.plus),function(i){var o=(i=i).webview,t=i.bridge;function e(e){this.__IDENTITY__=e,this.__uuid__=i.tools.UUID(e),this.id,i.obj.Callback.call(this)}e.prototype.getMetrics=function(n){var e;n&&(e=t.callbackId(function(e){var t={};t.canForward=e,n(t)}),o.exec(this,"getMetrics",[e,window.__HtMl_Id__]))},e.prototype.onCallback=function(e,t,n){"popGesture"==t?(t=n.private_args,t={target:i.webview._find__Window_By_UUID__(t.uuid,t.id,t.extras),type:n.type,progress:n.progress},"result"in n&&(t.result=n.result),n=t):(n=n||{}).target=this,e(n)},e.prototype.addEventListener=function(e,t,n){i.obj.Callback.prototype.addEventListener.apply(this,[e,t,n])&&(e=[e,window.__HtMl_Id__],o.exec(this,"addEventListener",e))},e.prototype.removeEventListener=function(e,t){i.obj.Callback.prototype.removeEventListener.apply(this,[e,t])&&(e=[e,window.__HtMl_Id__],o.exec(this,"removeEventListener",e))},o.NView=e}(window.plus),function(r){function n(e,t){r.webview.NView.prototype.constructor.apply(this,["WebviewGroup"]),this.__children=[];var n=[];if(e instanceof Array)for(var i=0;i<e.length;i++){var o=e[i];o.styles=o.styles||{},o.styles.name=o.id;var s=new r.webview.Webview(o.url,o.styles,!0,o.extras);r.webview.__pushWindow__(s),this.__children.push(s);o=[s.__uuid__,[o.url,o.styles,s.__callback_id__,location.host+location.pathname,o.extras]];n.push(o)}r.webview.exec(this,"createGroup",[n,t,this.__callback_id__])}var e=n.prototype;r.tools.extend(e,r.webview.NView.prototype),(e.constructor=n).prototype.setSelectIndex=function(e){r.webview.exec(this,"setSelectIndex",[e])},n.prototype.children=function(){return this.__children},r.webview.createGroup=function(e,t){return new n(e,t)},r.webview.WebviewGroup=n}(window.plus),function(u){var l=(u=u).webview,_="NWindow",c=u.bridge,f=u.tools;function d(){return window.location.href}function h(e){if(e instanceof Array)for(var t=0;t<e.length;t++)n(e[t])}function n(e){var t;(t=e).onclick&&"function"==typeof t.onclick&&(e=c.callbackId(function(){t.onclick(t)}),t.__cb__={id:e,htmlId:window.__HtMl_Id__})}function p(e){if(e instanceof Array)for(var t,n=0;n<e.length;n++)(t=e[n])&&"input"==t.tag?t.inputStyles&&(t.inputStyles.onComplete&&"function"==typeof t.inputStyles.onComplete&&(t.inputStyles.__onCompleteCallBackId__=c.callbackId(t.inputStyles.onComplete)),t.inputStyles.onFocus&&"function"==typeof t.inputStyles.onFocus&&(t.inputStyles.__onFocusCallBackId__=c.callbackId(t.inputStyles.onFocus)),t.inputStyles.onBlur&&"function"==typeof t.inputStyles.onBlur&&(t.inputStyles.__onBlurCallBackId__=c.callbackId(t.inputStyles.onBlur))):t&&"richtext"==t.tag&&t.richTextStyles&&t.richTextStyles.onClick&&"function"==typeof t.richTextStyles.onClick&&(t.richTextStyles.__onClickCallBackId__=c.callbackId(t.richTextStyles.onClick))}function e(e,t,n,i){if(this.__view_array__=new Array,l.NView.prototype.constructor.apply(this,[_]),this.id=null,t&&t.name&&(this.id=t.name),i)for(var o in i)this[o]=i[o];!this.id&&e&&(this.id=t.name=e),f.platform==f.IOS&&t&&t.navigationbar&&(this.__navigationbar__=t.navigationbar);var s=[],r=null;if(t&&(r=t.titleNView||t.navigationbar)&&(r.uuid="_Nav_Bar_"+this.__uuid__,s.push(r.uuid),u.nativeObj.__appendSubViewInfo(r),h(r.buttons),p(r.tags)),t&&t.subNViews&&t.subNViews instanceof Array){for(var c=0;c<t.subNViews.length;c++){var a=t.subNViews[c];p(a.tags),a.uuid=f.UUID("Nativeview"),s.push(a.uuid),u.nativeObj.__appendSubViewInfo(a)}this.__subNViewsUids__=s,this.checkJSObject=!0,setTimeout(function(){this.checkJSObject=!1,u.nativeObj.__removeSubViewInfos(s)})}n||(l.__pushWindow__(this),l.exec(this,_,[e,t,this.__callback_id__,d(),i]))}var t=e.prototype;function i(){window.__needNotifyNative__&&"touchmove"==this.type&&(window.__needNotifyNative__=l.execSync(u.webview.currentWebview(),"needTouchEvent",[])),t.oldPreventDefault.call(this)}u.tools.extend(t,l.NView.prototype),t.constructor=e,t.show=function(e,t,n,i){var o;n&&"function"==typeof n&&(o=c.callbackId(function(){n()})),l.exec(this,"show",[e,t,null,o,i])},t.close=function(e,t,n){this===u.webview.__JSON_Window_Stack[window.__HtMl_Id__]&&u.bridge.callbackFromNative(this.__callback_id__,{status:u.bridge.OK,message:{evt:"close"},keepCallback:!0}),l.exec(this,"close",[e,t,n])},t.setStyle=function(e){var t;e&&"object"==typeof e&&(!e||(t=e.titleNView||e.navigationbar)&&(p(t.tags),h(t.buttons)),l.exec(this,"setOption",[e]))},t.updateSubNViews=function(e){if(e instanceof Array)for(var t,n=0;n<e.length;n++)(t=e[n])&&p(t.tags);l.exec(this,"updateSubNViews",[e])},t.nativeInstanceObject=function(){var e=u.ios||u.android;return e&&e.getWebviewById?e.getWebviewById(this.__uuid__):null},t.hide=function(e,t,n){l.exec(this,"hide",[e,t,n])},t.setVisible=function(e){l.exec(this,"setVisible",[e])},t.pause=function(){l.exec(this,"pause",[])},t.resume=function(){l.exec(this,"resume",[])},t.isPause=function(){return l.execSync(this,"isPause",[])},t.isVisible=function(){return l.execSync(this,"isVisible",[])},t.setFixBottom=function(e){l.exec(this,"setFixBottom",[e])},t.getSubNViews=function(){var e=[],t=l.execSync(this,"getSubNViews",[]);if(t&&t instanceof Array&&0<t.length){for(var n=0;n<t.length;n++){var i=u.nativeObj.View.__getViewByUidAndCreate(t[n]);e.push(i)}return e}if(this.checkJSObject&&this.__subNViewsUids__)for(n=0;n<this.__subNViewsUids__.length;n++)(i=u.nativeObj.View.__getViewByUidFromCache(this.__subNViewsUids__[n]))&&e.push(i);return e},t.getNavigationbar=function(){return this.getTitleNView()},t.setTitleNViewButtonBadge=function(e){l.exec(this,"setTitleNViewButtonBadge",[e])},t.removeTitleNViewButtonBadge=function(e){l.exec(this,"removeTitleNViewButtonBadge",[e])},t.showTitleNViewButtonRedDot=function(e){l.exec(this,"showTitleNViewButtonRedDot",[e])},t.hideTitleNViewButtonRedDot=function(e){l.exec(this,"hideTitleNViewButtonRedDot",[e])},t.setTitleNViewSearchInputFocus=function(e){l.exec(this,"setTitleNViewSearchInputFocus",[e])},t.setTitleNViewSearchInputText=function(e){l.exec(this,"setTitleNViewSearchInputText",[e])},t.getTitleNViewSearchInputText=function(){return l.execSync(this,"getTitleNViewSearchInputText")},t.setTitleNViewButtonStyle=function(e,t){null!=e&&t&&(n(t),l.exec(this,"setTitleNViewButtonStyle",[e,t]))},t.getTitleNView=function(){var e,t;return f.platform==f.IOS?(t="_Nav_Bar_"+this.__uuid__,!(e=u.nativeObj.View.getViewById(t))&&this.__navigationbar__&&((e=new u.nativeObj.View(t,this.__navigationbar__,"",!0)).__uuid__=t)):(t=this.__uuid__,(e=u.nativeObj.View.getViewById(t))||(t=l.execSync(this,"getTitleNView",[]))&&((e=new u.nativeObj.View(t.id,t.styles,!0)).__uuid__=t.uuid)),e},window.__needNotifyNative__=!1,t.__needTouchEvent__=function(){Event.prototype.preventDefault!==i&&(t.oldPreventDefault=Event.prototype.preventDefault,Event.prototype.preventDefault=i)},t.drag=function(e,t,n){if(e&&e.direction&&"string"==typeof e.direction&&e.moveMode&&"string"==typeof e.moveMode){var i=e.moveMode.toLocaleLowerCase();if("followfinger"==i||"follow"==i||"silent"==i||"bounce"==i){var o,s,r=e.direction.toLocaleLowerCase();if("left"==r||"right"==r||"rtl"==r||"ltr"==r){if("rtl"==r&&(e.direction="left"),"ltr"==r&&(e.direction="right"),t){r=t.view;if(null!=r&&("string"==typeof r||r instanceof u.webview.Webview||r instanceof u.nativeObj.View)&&("string"!=typeof r&&(t.view=r.__uuid__),t.moveMode)){if("string"!=typeof t.moveMode)return;r=t.moveMode.toLocaleLowerCase();if("follow"!=r&&"silent"!=r)return;if("silent"==i&&"silent"==r)return}}n&&"function"==typeof n&&(o=u.webview.currentWebview().__uuid__,s=c.callbackId(n)),l.exec(this,"drag",[e,t,o,s])}}}},t.setJsFile=function(e,t){e&&"string"==typeof e&&l.exec(this,"setPreloadJsFile",[e,t])},t.appendJsFile=function(e){e&&"string"==typeof e&&l.exec(this,"appendPreloadJsFile",[e])},t.setContentVisible=function(e){l.exec(this,"setContentVisible",[e])},t.opener=function(){var e=l.execSync(this,"opener",[]);return e?u.webview._find__Window_By_UUID__(e.uuid,e.id,e.extras):null},t.opened=function(){var e=l.execSync(this,"opened",[]);if(e){for(var t=[],n={},i=0;i<e.length;i++){var o=e[i],s=u.webview.__JSON_Window_Stack[o];s||((s=new u.webview.Webview(null,null,!0,o.extras)).__uuid__=o.uuid,s.id=o.id,c.exec("UI","execMethod",["UI","setcallbackid",[s.__uuid__,[s.__callback_id__]]])),t.push(s),n[s.__uuid__]=s}return t}},t.remove=function(e){var t;if("string"==typeof e)t=e;else{if(!(e instanceof u.webview.Webview))return e instanceof u.nativeObj.View?void l.exec(this,"removeNativeView",[_,e.__uuid__]):void 0;t=e.__uuid__}l.exec(this,"remove",[t])},t.removeFromParent=function(){l.exec(this,"removeFromParent",[])},t.parent=function(){var e=l.execSync(this,"parent",[]);return e?u.webview._find__Window_By_UUID__(e.uuid,e.id,e.extras):null},t.children=function(){for(var e=[],t=l.execSync(this,"children",[]),n=0;n<t.length;n++)e.push(u.webview._find__Window_By_UUID__(t[n].uuid,t[n].id,t[n].extras));return e},t.getURL=function(){return l.execSync(this,"getUrl",[])},t.getTitle=function(){return l.execSync(this,"getTitle",[])},t.getStyle=function(){return l.execSync(this,"getOption")},t.loadURL=function(e,t){e&&"string"==typeof e&&l.exec(this,"load",[e,d(),t])},t.loadData=function(e,t){e&&"string"==typeof e&&l.exec(this,"loadData",[e,t])},t.stop=function(){l.exec(this,"stop",[])},t.reload=function(e){l.exec(this,"reload",[e])},t.draw=function(e,t,n,i){var o,s;f.platform==f.IOS?e.__captureWebview?e.__captureWebview(this.__uuid__,i,t,n):"function"==typeof n&&n({code:-1,message:"Parameter error"}):(o=function(e){"function"==typeof n&&n(e)},e&&e.__id__?(s=c.callbackId(function(){"function"==typeof t&&t()},o),l.exec(this,"draw",[e.__id__,this.__uuid__,s,i])):o({code:-1,message:"Destroyed objects"}))},t.checkRenderedContent=function(e,t,n){var i=c.callbackId(function(e){"function"==typeof t&&t(e)},function(e){"function"==typeof n&&n(e)});l.exec(this,"checkRenderedContent",[this.__uuid__,i,e])},t.back=function(){l.exec(this,"back",[])},t.forward=function(){l.exec(this,"forward",[])},t.canBack=function(n){var e;n&&"function"==typeof n&&(n&&(e=c.callbackId(function(e){var t={};t.canBack=e,n(t)})),l.exec(this,"canBack",[e]))},t.canForward=function(n){var e;n&&"function"==typeof n&&(n&&(e=c.callbackId(function(e){var t={};t.canForward=e,n(t)})),l.exec(this,"canForward",[e]))},t.clear=function(){l.exec(this,"clear",[])},t.evalJS=function(e){e&&"string"==typeof e&&l.exec(this,"evalJS",[e])},t.test=function(e){l.exec(this,"test",[e])},t.append=function(e){e&&(e instanceof u.webview.Webview||e instanceof u.webview.WebviewGroup?(this.__view_array__.push(e),l.exec(this,"append",[e.__IDENTITY__,e.__uuid__])):e instanceof u.nativeObj.View?l.exec(this,"appendNativeView",[e.IDENTITY||_,e.__uuid__]):l.exec(this,"appendNativeView",[e.IDENTITY||_,e.__uuid__||e.id||e._UUID_]))},t.setPullToRefresh=function(e,t){var n;t&&(n=u.bridge.callbackId(t)),this.addEventListener("pulldownrefreshevent",t,!1),l.exec(this,"setPullToRefresh",[e,n])},t.endPullToRefresh=function(){l.exec(this,"endPullToRefresh",[])},t.beginPullToRefresh=function(){l.exec(this,"beginPullToRefresh",[])},t.setBounce=function(e,t){l.exec(this,"setBounce",[e,t])},t.resetBounce=function(){l.exec(this,"resetBounce",[])},t.setBlockNetworkImage=function(e){l.exec(this,"setBlockNetworkImage",[e])},t.captureSnapshot=function(e,t,n){var i="function"!=typeof t?null:function(e){t()},o=u.bridge.callbackId(i,"function"!=typeof n?null:function(e){n(e)});u.tools.platform==u.tools.IOS?i():l.exec(this,"captureSnapshot",[e,o])},t.clearSnapshot=function(e){u.tools.platform!=u.tools.IOS&&l.exec(this,"clearSnapshot",[e])},t.overrideUrlLoading=function(e,t){var n=c.callbackId(function(e){"function"==typeof t&&t(e)});l.exec(this,"overrideUrlLoading",[e,n])},t.overrideResourceRequest=function(e){l.exec(this,"overrideResourceRequest",[e])},t.isHardwareAccelerated=function(){return f.platform!=f.IOS&&l.execSync(this,"isHardwareAccelerated",[])},t.listenResourceLoading=function(e,t){var n=c.callbackId(function(e){"function"==typeof t&&t(e)});l.exec(this,"listenResourceLoading",[e,n])},t.setCssFile=function(e){l.exec(this,"setCssFile",[e])},t.setCssText=function(e){l.exec(this,"setCssText",[e])},t.showBehind=function(e){l.exec(this,"showBehind",[e.__IDENTITY__,e.__uuid__])},t.animate=function(e,t){var n;f.platform!=f.IOS?(t&&(n=c.callbackId(function(){"function"==typeof t&&t()})),l.exec(this,"webview_animate",[e,n])):setTimeout(t,10)},t.interceptTouchEvent=function(e){l.exec(this,"interceptTouchEvent",[e])},t.setFavoriteOptions=function(e){l.exec(this,"setFavoriteOptions",[e])},t.getFavoriteOptions=function(){return l.execSync(this,"getFavoriteOptions")},t.setShareOptions=function(e){l.exec(this,"setShareOptions",[e])},t.getShareOptions=function(){return l.execSync(this,"getShareOptions")},t.getSafeAreaInsets=function(){return u.tools.ANDROID==u.tools.platform?{bottom:0,left:0,right:0,top:0,deviceBottom:0,deviceLeft:0,deviceRight:0,deviceTop:0}:l.execSync(this,"getSafeAreaInsets")},t.restore=function(){l.exec(this,"webview_restore",null)},t.setSoftinputTemporary=function(e){l.exec(this,"setSoftinputTemporary",[e])},l.Webview=e}(window.plus),function(e){var o=(e=e).bridge,t=e.tools;function n(e,t,n,i){this.target=e,this.lengthComputable=t,this.loaded=n,this.total=i}function i(){}function s(){this.__init__(),this.__UUID__=t.UUID("xhr")}i.Timeout=0,i.Other=1,s.Uninitialized=0,s.Open=1,s.Sent=2,s.Receiving=3,s.Loaded=4,s.__F__="XMLHttpRequest";var r=s.prototype;r.__init__=function(){this.readyState=s.Uninitialized,this.responseText="",this.responseXML=null,this.status=s.Uninitialized,this.statusText=null,this.onreadystatechange,this.responseType=null,this.response=null,this.withCredentials=!0,this.timeout=12e4,this.__noParseResponseHeader__=null,this.__requestHeaders__={},this.__responseHeaders__={},this.__cacheReponseHeaders__={},this.__progessEvent__=new n(this,!1,0,0),Object.defineProperty(this.__progessEvent__,"target",{enumerable:!1})},r.abort=function(){this.readyState>s.Uninitialized&&("function"==typeof this.onabort&&this.onabort(this.__progessEvent__),this.__init__(),o.exec(s.__F__,"abort",[this.__UUID__]))},r.getAllResponseHeaders=function(){if(this.readyState>=s.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},r.getResponseHeader=function(e){if("string"==typeof e&&this.readyState>=s.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},r.setRequestHeader=function(e,t){var n;"string"==typeof e&&"string"==typeof t&&s.Open==this.readyState&&(n=this.__requestHeaders__[e],this.__requestHeaders__[e]=n?n+", "+t:t)},r.open=function(e,t,n,i){s.Open!=this.readyState&&s.Loaded!=this.readyState||this.__init__(),s.Uninitialized==this.readyState&&(this.readyState=s.Open,o.exec(s.__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())},r.overrideMimeType=function(e){o.exec(s.__F__,"overrideMimeType",[this.__UUID__,e])},r.send=function(e){var n=this;if(s.Open!=this.readyState)throw new Error("XMLHttpRequest not open");this.readyState=s.Sent,"function"==typeof this.onloadstart&&this.onloadstart(n.__progessEvent__);var t=o.callbackId(function(e){if(s.Receiving==e.readyState)s.Sent==n.readyState?(n.readyState=s.Receiving,n.status=e.status,n.statusText=e.statusText,n.__responseHeaders__=e.header,n.__progessEvent__.lengthComputable=e.lengthComputable,n.__progessEvent__.total=e.totalSize):s.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(s.Loaded==e.readyState){n.readyState=s.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==i.Timeout?"function"==typeof n.ontimeout&&n.ontimeout(n.__progessEvent__):e.error==i.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__)}});o.exec(s.__F__,"send",[this.__UUID__,t,e,this.__requestHeaders__]),"function"==typeof this.onreadystatechange&&this.onreadystatechange()},e.net={XMLHttpRequest:s}}(window.plus),function(e){var e=e,o=window.plus.bridge,s="Zip";e.zip={compressVideo:function(e,t,n){n=o.callbackId(function(e){t&&(e={tempFilePath:e.tempFilePath,size:e.size},t(e))},n);o.exec(s,"compressVideo",[e,n])},decompress:function(e,t,n,i){i=o.callbackId(n,i);o.exec(s,"decompress",[e,t,i])},compress:function(e,t,n,i){i=o.callbackId(n,i);o.exec(s,"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(s,"compressImage",[e,n])}}}(window.plus),function(i){var o=(i=i).bridge,s="ShortVideo",r=i.tools;function c(e){return r.getElementOffsetXInWebview(e)}function a(e){return r.getElementOffsetYInWebview(e)}function e(e,t){this.id=r.UUID("dt"),this.IDENTITY=s,div=document.getElementById(e);var n=this.id,e=[];div&&(i.tools.platform==i.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[c(div),a(div),div.offsetWidth,div.offsetHeight];o.exec(s,"resize",[n,e])},200)},!1):div.addEventListener("resize",function(){var e=[c(div),a(div),div.offsetWidth,div.offsetHeight];o.exec(s,"resize",[n,e])},!1),e=[c(div),a(div),div.offsetWidth,div.offsetHeight]),o.exec(s,"ShortVideo",[this.id,e,t])}var t=e.prototype;function n(e,t){this.id=r.UUID("dt"),this.IDENTITY=s,div=document.getElementById(e);var e=[],n=this.id;div&&(i.tools.platform==i.tools.ANDROID?document.addEventListener("plusorientationchange",function(){setTimeout(function(){var e=[c(div),a(div),div.offsetWidth,div.offsetHeight];o.exec(s,"shortVideoEditor_resize",[n,e])},200)},!1):div.addEventListener("resize",function(){var e=[c(div),a(div),div.offsetWidth,div.offsetHeight];o.exec(s,"shortVideoEditor_resize",[n,e])},!1),e=[c(div),a(div),div.offsetWidth,div.offsetHeight]),o.exec(s,"ShortVideoEditor",[this.id,e,t])}t.start=function(e){o.exec(s,"ShortVideo_start",[this.id,e])},t.pause=function(){o.exec(s,"ShortVideo_pause",[this.id])},t.resume=function(){o.exec(s,"ShortVideo_resume",[this.id])},t.stop=function(){o.exec(s,"ShortVideo_stop",[this.id])},t.close=function(){o.exec(s,"ShortVideo_close",[this.id])},t.switchCamera=function(e){o.exec(s,"ShortVideo_switchCamera",[this.id,e])},t.setStyles=function(e){o.exec(s,"ShortVideo_setStyles",[this.id,e])},t.startMixAudio=function(e){o.exec(s,"ShortVideo_startMixAudio",[this.id,e])},t.pauseMixAudio=function(){o.exec(s,"ShortVideo_pauseMixAudio",[this.id])},t.resumeMixAudio=function(){o.exec(s,"ShortVideo_resumeMixAudio",[this.id])},t.stopMixAudio=function(){o.exec(s,"ShortVideo_stopMixAudio",[this.id])},t.addEventListener=function(e,t){var n,i=this;t&&(n=function(e){"function"==typeof t&&(e.target=i,t(e))},t.callback=n,n=o.callbackId(n)),o.exec(s,"ShortVideo_addEventListener",[this.id,e,n])};t=n.prototype;t.play=function(){o.exec(s,"shortVideoEditor_play",[this.id])},t.pause=function(){o.exec(s,"shortVideoEditor_pause",[this.id])},t.resume=function(){o.exec(s,"shortVideoEditor_resume",[this.id])},t.stop=function(){o.exec(s,"shortVideoEditor_stop",[this.id])},t.close=function(){o.exec(s,"shortVideoEditor_close",[this.id])},t.setStyles=function(e){o.exec(s,"shortVideoEditor_setStyles",[this.id,e])},t.save=function(e,t,n){var i=o.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});o.exec(s,"shortVideoEditor_save",[this.id,e,i])},t.addEventListener=function(e,t){var n,i=this;t&&(n=function(e){"function"==typeof t&&(e.target=i,t(e))},t.callback=n,n=o.callbackId(n)),o.exec(s,"shortVideoEditor_addEventListener",[this.id,e,n])},i.shortvideo={Camera:e,Editor:n,upload:function(e,t,n){var i=o.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});o.exec(s,"uploader",[e,i])}}}(window.plus),function(e){var o="iBeacon",s=e.bridge;e.ibeacon={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=s.callbackId(e,i),s.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=s.callbackId(e,i),s.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=s.callbackId(e,i),s.exec(o,"getBeacons",[callbackID])},onBeaconUpdate:function(e){return callbackID=s.callbackId("function"!=typeof e?null:e),s.exec(o,"onBeaconUpdate",[callbackID])},onBeaconServiceChange:function(e){return callbackID=s.callbackId("function"!=typeof e?null:e),s.execSync(o,"onBeaconServiceChange",[callbackID])}}}(window.plus),function(e){var i="Bluetooth",o=window.plus.bridge;e.bluetooth={closeBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"closeBluetoothAdapter",[callbackID])},openBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"openBluetoothAdapter",[callbackID])},getBluetoothAdapterState:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"getBluetoothAdapterState",[callbackID])},getBluetoothDevices:function(s){var r=this,c="function"!=typeof s.complete?function(){}:s.complete,e="function"!=typeof s.success?null:function(e){for(var t=e.devices,n=0;n<t.length;n++){var i=t[n];if(i.advertisData&&"string"==typeof i.advertisData&&"{}"!=i.advertisData&&(i.advertisData=r.string2ArrayBuffer(i.advertisData)),i.serviceData&&"{}"!=i.serviceData)for(var o in i.serviceData)"string"==typeof i.serviceData[o]&&""!=i.serviceData[o]&&(i.serviceData[o]=r.string2ArrayBuffer(i.serviceData[o]))}s.success(e),c(e)},t="function"!=typeof s.fail?null:function(e){s.fail(e),c(e)},t=o.callbackId(e,t);return o.exec(i,"getBluetoothDevices",[t])},getConnectedBluetoothDevices:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"getConnectedBluetoothDevices",[callbackID,e])},startBluetoothDevicesDiscovery:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"startBluetoothDevicesDiscovery",[callbackID,e])},stopBluetoothDevicesDiscovery:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"stopBluetoothDevicesDiscovery",[callbackID])},onBluetoothAdapterStateChange:function(e){return callbackID=this.getCallbackIDByFunction(e),o.exec(i,"onBluetoothAdapterStateChange",[callbackID])},onBluetoothDeviceFound:function(s){var r=this;return callbackID=o.callbackId("function"!=typeof s?null:function(e){for(var t=e.devices,n=0;n<t.length;n++){var i=t[n];if(i.advertisData&&"string"==typeof i.advertisData&&"{}"!=i.advertisData&&(i.advertisData=r.string2ArrayBuffer(i.advertisData)),i.serviceData&&"{}"!=i.serviceData)for(var o in i.serviceData)"string"==typeof i.serviceData[o]&&""!=i.serviceData[o]&&(i.serviceData[o]=r.string2ArrayBuffer(i.serviceData[o]))}s(e)}),o.exec(i,"onBluetoothDeviceFound",[callbackID])},createBLEConnection:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"createBLEConnection",[callbackID,e])},closeBLEConnection:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"closeBLEConnection",[callbackID,e])},setBLEMTU:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"setBLEMTU",[callbackID,e])},getBLEDeviceRSSI:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"getBLEDeviceRSSI",[callbackID,e])},getBLEDeviceCharacteristics:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"getBLEDeviceCharacteristics",[callbackID,e])},getBLEDeviceServices:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"getBLEDeviceServices",[callbackID,e])},notifyBLECharacteristicValueChange:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"notifyBLECharacteristicValueChange",[callbackID,e])},onBLECharacteristicValueChange:function(t){var n=this;return callbackID=o.callbackId("function"!=typeof t?null:function(e){e.value&&"string"==typeof e.value&&(e.value=n.string2ArrayBuffer(e.value)),t(e)}),o.exec(i,"onBLECharacteristicValueChange",[callbackID])},onBLEConnectionStateChange:function(e){return callbackID=this.getCallbackIDByFunction(e),o.exec(i,"onBLEConnectionStateChange",[callbackID])},readBLECharacteristicValue:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),o.exec(i,"readBLECharacteristicValue",[callbackID,e])},writeBLECharacteristicValue:function(e){if("string"!=typeof e.value)return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),e.value=this.ab2hex(e.value),o.exec(i,"writeBLECharacteristicValue",[callbackID,e]);e.fail({code:10019,message:"Value cannot be a string"})},ab2hex:function(e){return Array.prototype.map.call(new Uint8Array(e),function(e){return("00"+e.toString(16)).slice(-2)}).join("")},string2ArrayBuffer:function(e){return new Uint8Array(e.match(/[\da-f]{2}/gi).map(function(e){return parseInt(e,16)})).buffer},getCallbackIDByFunction:function(t,n,i){i="function"!=typeof i?function(){}:i;return o.callbackId("function"!=typeof t?null:function(e){t(e),i(e)},"function"!=typeof n?null:function(e){n(e),i(e)})}}}(window.plus),function(e){var t="Sqlite",i=e.bridge;e.sqlite={isOpenDatabase:function(e){return i.execSync(t,"isOpenDatabase",[e])},openDatabase:function(e){if(e&&e.name&&e.path)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),i.exec(t,"openDatabase",[callbackID,e.name,e.path])},closeDatabase:function(e){if(e&&e.name)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),i.exec(t,"closeDatabase",[callbackID,e.name])},transaction:function(e){if(e&&e.name&&e.operation)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),i.exec(t,"transaction",[callbackID,e.name,e.operation])},executeSql:function(e){if(e&&e.name&&e.sql)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),i.exec(t,"executeSql",[callbackID,e.name,e.sql])},selectSql:function(e){if(e&&e.name&&e.sql)return callbackID=this.getCallbackIDByFunction(e.success,e.fail),i.exec(t,"selectSql",[callbackID,e.name,e.sql])},getCallbackIDByFunction:function(t,n,e){return i.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)})}}}(window.plus),window.__requireNativePlugin__=function(){"use strict";function i(e){if("function"!=typeof btoa)return"";e=Array.prototype.map.call(new Uint8Array(e),function(e){return String.fromCharCode(e)}).join("");return btoa(e)}function t(e){var t,n=(t=e,(t=Object.prototype.toString.call(t)).substring(8,t.length-1));switch(n){case"Undefined":case"Null":return"";case"RegExp":return e.toString();case"Date":return e.toISOString();case"Number":case"String":case"Boolean":case"Array":case"Object":return e;case"ArrayBuffer":return{"@type":"binary",dataType:n,base64:i(e)};case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return{"@type":"binary",dataType:n,base64:i(e.buffer)};default:return JSON.stringify(e)}}var n=+new Date,o={};window.__NATIVE_PLUGINS__={clipboard:["setString","getString"],globalEvent:["removeEventListener"],locale:["getLanguages","getLanguageSync","getLanguage"],modal:["confirm","toast","prompt","alert"],picker:["pickTime","pick","pickDate"],plus:["postMessage"],plusstorage:["getItem","getAllKeys","setItem","removeItem","length"],storage:["setItemPersistent","getItem","getAllKeys","setItem","removeItem","length"],stream:["sendHttp","fetch"],timer:["setInterval","clearInterval","setTimeout","clearTimeout"],webSocket:["onopen","onmessage","onclose","close","WebSocket","onerror","send"]},window.__NATIVE_PLUGINS_REGISTERED__=!1,document.addEventListener("uniNViewMessage",function(e){e.data&&"requireNativePluginCallback"===e.data.type&&function(e,t,n){var i=o[e];if(void 0!==n&&!1!==n||delete o[e],"function"==typeof i)try{return i(t)}catch(e){throw console.error("Failed to execute the callback function:\n "+e.toString()),e}new Error('invalid callback id "'+e+'"')}(e.data.data.id,e.data.data.ret,e.data.data.keepAlive)});var s="__uniapp__nvue";function r(e){return"function"==typeof e?"CALLBACK_"+(o[++n]=e,n):t(e)}function u(e,t,n,i){n={type:"requireNativePlugin",plugin:e,method:t,args:n=n.map(r)};return i?plus.webview.__callNativeModuleSync__(n,s):plus.webview.postMessageToUniNView(n,s)}function c(e,r,t){var t=t.split(":"),c=t[0],a="sync"===t[1];Object.defineProperty(e,c,{enumerable:!0,configurable:!0,get:function(){return i=r,o=c,s=a,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(i,o,t,s)};var i,o,s},set:function(e){return t=r,n=c,i=a,"function"!=typeof e?(console.error(t+"."+n+" must be assigned as a function."),null):function(e){return u(t,n,[e],i)};var t,n,i}})}var a={};return function(e){var t,n,i=a[e];if(!i){var o=window.__NATIVE_PLUGINS__[e];if(!o)throw new Error("当前运行的基座不包含原生插件["+e+"]，请在manifest中配置该插件，重新制作包括该原生插件的自定义运行基座");o=o,c(n={},t=e,"addEventListener"),o.forEach(function(e){return c(n,t,e)}),i=a[t]=n}return i}}(),function(s){var o=(s=s).bridge,t=s.tools,r="Ad";function n(e,t,n,i,o){s.nativeObj.View.prototype.constructor.call(this,e,t,n,i,o),this.type="UniAdView"}var e=n.prototype;function i(){var r=this;this.__cbs__={},this.callbackId=o.callbackId(function(e){var t=e.evt,n=e.args,i=r.__cbs__[t];if(i)for(var o=i.length,s=0,s=0;s<o;s++)i[s](n)})}function c(e){this.__uuid__=t.UUID("RewardedVideoAd"),this.__cbs__=new i,o.exec(r,"RewardedVideoAd",[this.__uuid__,e,this.__cbs__.callbackId])}function a(e){this.__uuid__=t.UUID("FullScreenVideoAd"),this.__cbs__=new i,o.exec(r,"FullscreenVideoAd",[this.__uuid__,e,this.__cbs__.callbackId])}function u(e){this.__uuid__=t.UUID("InterstitialAd"),this.__cbs__=new i,o.exec(r,"InterstitialAd",[this.__uuid__,e,this.__cbs__.callbackId])}s.tools.extend(e,s.nativeObj.View.prototype),e.constructor=n,s.nativeObj.__regChildViews("UniAdView",n),n.prototype.bind=function(e){o.exec(r,"bind",[e&&e.__id,e&&e.__provider,this.__uuid__])},n.prototype.renderingBind=function(e){o.exec(r,"renderingBind",[e&&e.__id,e&&e.__provider,this.__uuid__])},n.prototype.changeDownloadStatus=function(){o.exec(r,"changeDownloadStatus",[this.__uuid__])},n.prototype.setDownloadListener=function(e){this.setEventListener("download",e)},n.prototype.setRenderingListener=function(e){this.setEventListener("render",e)},n.prototype.setDislikeListener=function(e){this.setEventListener("dislike",e)},n.prototype.setAdClickedListener=function(e){this.setEventListener("adClicked",e)},i.prototype.push=function(e,t){this.__cbs__[e]||(this.__cbs__[e]=[]),this.__cbs__[e].push(t)},i.prototype.pop=function(e,t){this.__cbs__[e]&&this.__cbs__[e].pop(t)},c.prototype.load=function(){o.exec(r,"load",[this.__uuid__])},c.prototype.show=function(){o.exec(r,"show",[this.__uuid__])},c.prototype.getProvider=function(){return o.execSync(r,"getProvider",[this.__uuid__])},c.prototype.destroy=function(){o.exec(r,"destroy",[this.__uuid__])},c.prototype.onLoad=function(e){this.__cbs__.push("load",e)},c.prototype.offLoad=function(e){this.__cbs__.pop("load",e)},c.prototype.onError=function(e){this.__cbs__.push("error",e)},c.prototype.offError=function(e){this.__cbs__.pop("error",e)},c.prototype.onClose=function(e){this.__cbs__.push("close",e)},c.prototype.offClose=function(e){this.__cbs__.pop("close",e)},c.prototype.onVerify=function(e){this.__cbs__.push("verify",e)},c.prototype.offVerify=function(e){this.__cbs__.pop("verify",e)},c.prototype.onAdClicked=function(e){this.__cbs__.push("adClicked",e)},c.prototype.offAdClicked=function(e){this.__cbs__.pop("adClicked",e)},a.prototype.load=function(){o.exec(r,"fullscreen_load",[this.__uuid__])},a.prototype.show=function(){o.exec(r,"fullscreen_show",[this.__uuid__])},a.prototype.getProvider=function(){return o.execSync(r,"fullscreen_getProvider",[this.__uuid__])},a.prototype.destroy=function(){o.exec(r,"fullscreen_destroy",[this.__uuid__])},a.prototype.onLoad=function(e){this.__cbs__.push("load",e)},a.prototype.offLoad=function(e){this.__cbs__.pop("load",e)},a.prototype.onError=function(e){this.__cbs__.push("error",e)},a.prototype.offError=function(e){this.__cbs__.pop("error",e)},a.prototype.onClose=function(e){this.__cbs__.push("close",e)},a.prototype.offClose=function(e){this.__cbs__.pop("close",e)},a.prototype.onAdClicked=function(e){this.__cbs__.push("adClicked",e)},a.prototype.offAdClicked=function(e){this.__cbs__.pop("adClicked",e)},u.prototype.load=function(){o.exec(r,"interstitial_load",[this.__uuid__])},u.prototype.show=function(){o.exec(r,"interstitial_show",[this.__uuid__])},u.prototype.getProvider=function(){return o.execSync(r,"interstitial_getProvider",[this.__uuid__])},u.prototype.destroy=function(){o.exec(r,"interstitial_destroy",[this.__uuid__])},u.prototype.onLoad=function(e){this.__cbs__.push("load",e)},u.prototype.offLoad=function(e){this.__cbs__.pop("load",e)},u.prototype.onError=function(e){this.__cbs__.push("error",e)},u.prototype.offError=function(e){this.__cbs__.pop("error",e)},u.prototype.onClose=function(e){this.__cbs__.push("close",e)},u.prototype.offClose=function(e){this.__cbs__.pop("close",e)},u.prototype.onAdClicked=function(e){this.__cbs__.push("adClicked",e)},u.prototype.offAdClicked=function(e){this.__cbs__.pop("adClicked",e)},s.ad={setPrivacyConfig:function(e){},getPersonalizedAd:function(){return o.execSync(r,"getPersonalizedAd",null)},setPersonalizedAd:function(e){o.exec(r,"setPersonalizedAd",[e])},setSplashAd:function(e,t,n){var i=o.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});o.exec(r,"setSplashAd",[e,i])},getSplashAd:function(){return o.execSync(r,"getSplashAd",null)},showContentPage:function(e,t,n){var i=o.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});o.exec(r,"showContentPage",[i,e])},getProviders:function(t,n){var e=o.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});o.exec(r,"getProviders",[e])},getAds:function(e,t,n){var i=o.callbackId("function"!=typeof t?null:function(e){t(e)},"function"!=typeof n?null:function(e){n(e)});o.exec(r,"getAds",[i,e])},releaseAdData:function(e){o.exec(r,"releaseAdData",[e&&e.__id,e&&e.__provider])},measureAdHeight:function(e,t){return o.execSync(r,"measureAdHeight",[t&&t.__id,t&&t.__provider,e])},createAdView:function(e){return new n((e=e||{}).id,e,null,!1,"UniAdView")},createRewardedVideoAd:function(e){return new c(e=e||{})},createFullScreenVideoAd:function(e){return new a(e=e||{})},createInterstitialAd:function(e){return new u(e=e||{})}}}(window.plus);