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;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")]()];"string"!=typeof e&&(e=e[n("0x1a")]());for(var i=/(.*?)%(.)(.*)/,o=e,r=[];t[n("0x7")];){var s=i[n("0xb")](o);if(!s)break;var a=t[n("0x12")](),o=s[3];r[n("0x11")](s[1]),"%"!=s[2]?r.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")]()}(a,s[2])):(r.push("%"),t[n("0x17")](a))}r[n("0x11")](o);var c=[][n("0x18")][n("0xe")](t);return c[n("0x17")](r[n("0x25")]("")),c}window[u("0x10")][u("0x9")],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 r=winConsole[u("0x14")];logger[u("0x14")]=function(e){var t=u;r[t("0x2")](winConsole,arguments),n(t("0x1f"),arguments)};var s=winConsole[u("0x1d")];logger.warn=function(e){var t=u;s.apply(winConsole,arguments),n(t("0xd"),arguments)};var a=winConsole[u("0x1e")];logger[u("0x1e")]=function(e){var t=u;a[t("0x2")](winConsole,arguments),n(t("0x19"),arguments)};var c=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),c[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;nthis.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})),c.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 r,e;t<1||4=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).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).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).constructor=b,t.setPoint=function(e){e instanceof w&&(e=[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).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:1this.options.minDistance&&(this.direction=1.73*nthis.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 r(e)},DIRECTION:o});function r(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 w,F={drawArrow:w=function(e,t,n,i,o,r,s,a,c,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)),r=void 0!==r?r:3,s=void 0!==s?s:1,a=void 0!==a?a:Math.PI/8,c=void 0!==c?c:10;var l,_,f="function"!=typeof r?b:r,d=Math.sqrt((i-t)*(i-t)+(o-n)*(o-n)),h=(d-c/3)/d,d=1&s?(l=Math.round(t+(i-t)*h),Math.round(n+(o-n)*h)):(l=i,o),h=2&s?(_=t+(i-t)*(1-h),n+(o-n)*(1-h)):(_=t,n);e.beginPath(),e.moveTo(_,h),e.lineTo(l,d),e.stroke();var p,y,v,g,d=Math.atan2(o-n,i-t),c=Math.abs(c/Math.cos(a));1&s&&(p=d+Math.PI+a,y=i+Math.cos(p)*c,v=o+Math.sin(p)*c,g=d+Math.PI-a,f(e,y,v,i,o,i+Math.cos(g)*c,o+Math.sin(g)*c,r,u)),2&s&&(p=d+a,g=d-a,f(e,y=t+Math.cos(p)*c,v=n+Math.sin(p)*c,t,n,t+Math.cos(g)*c,n+Math.sin(g)*c,r,u))},drawArcedArrow:function(e,t,n,i,o,r,s,a,c,u,l,_,f,d){var h,p,y,v,g;a=void 0!==a?a:3,c=void 0!==c?c: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,r,s),e.stroke(),1&c&&(h=Math.cos(o)*i+t,p=Math.sin(o)*i+n,y=Math.atan2(t-h,p-n),g=s?(v=h+10*Math.cos(y),p+10*Math.sin(y)):(v=h-10*Math.cos(y),p-10*Math.sin(y)),w(e,h,p,v,g,a,2,u,l,d)),2&c&&(h=Math.cos(r)*i+t,p=Math.sin(r)*i+n,y=Math.atan2(t-h,p-n),g=s?(v=h-10*Math.cos(y),p-10*Math.sin(y)):(v=h+10*Math.cos(y),p+10*Math.sin(y)),w(e,h-f*Math.sin(r),p+f*Math.cos(r),v-f*Math.sin(r),g+f*Math.cos(r),a,2,u,l,d)),e.restore()}};function b(e,t,n,i,o,r,s,a,c){switch("string"==typeof t&&(t=parseFloat(t)),"string"==typeof n&&(n=parseFloat(n)),"string"==typeof i&&(i=parseFloat(i)),"string"==typeof o&&(o=parseFloat(o)),"string"==typeof r&&(r=parseFloat(r)),"string"==typeof s&&(s=parseFloat(s)),Math.PI,e.save(),a){case 0:var u=Math.sqrt((r-t)*(r-t)+(s-n)*(s-n));e.arcTo(i,o,t,n,.55*u),e.fill();break;case 1:.5=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:(c=s=a=null,u=!1,_=l=100,f=50,d=!(r=15),(h=["green"])[0],p=1,y={startAngle:0,speed:5,color:h[0],counterClockwise:!1,globalCompositeOperation:"source-out",lineWidth:r},v={startAngle:0,speed:5,color:"white",counterClockwise:!1,globalCompositeOperation:"destination-out",lineWidth:r+40},b=y,m="draw",I=50,S=x=w=g=0,{init:function(e,t){this.reset(),S=0,d=!1,s=e.querySelector("canvas"),c=s.getContext?s.getContext("2d"):s,u=!s.getContext,w=g=0,y.startAngle=v.startAngle=0,x=R(g),p=1,h=[t.options.color],y.color=h[p],m="draw",b=y,a=t,u?l=_=f=(40-2*9)/2:(l=_=100,f=50)},reset:function(){c=s=null},drawArrowedArcByDis:function(e){O(e)},drawArc:function(e){C?console.log("not support"):A()},clearCurrent:function(){var e,n,i,o,t;C?console.log("not support"):(t=a.$pullTip.ownerDocument.defaultView.getComputedStyle(a.$pullTip,null),(t=(e=t.transform,t=0,e&&(t=(e=(e=e.replace("matrix(","").replace(")","")).replace(/\s+/gi,"")).split(",")[5]||0),t))
'.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(t.firstElementChild),n=this.$pullTip,this.$pullTipInner=n.querySelector("div"),t=n.offsetHeight,E=25*this.options.ratio,this.minRefreshDistance=70*this.options.ratio,(n=n).querySelector("canvas"),n.style.top=this.options.offset-t+"px",n.style.webkitTransition="none",n.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():E=40*this.options.ratio&&this.canvasObj.rotate(e),this.canvasObj.drawArrowedArcByDis(e-E),this.canvasObj.changeOpacity(e-E))))},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)}}}(),y=/complete|loaded|interactive/,v=!1;window.__setPullToRefresh__=function(i,o){var e;e=function(){return!i.support&&s?(s.reset(),s.touchPull.detachEvent(),void(v=!0)):void(i.support&&(980===(n=window.innerWidth)&&(n=window.plus&&plus.screen.resolutionWidth||window.screen.width),e=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),s?(s.options.useCapture=useCapture,v&&s.touchPull.initEvent(),i.offset&&(s.options.offset=t),i.range&&(s.options.range=n),i.color&&(s.options.color=i.color),s.options.doRefresh=o):s=a.init({offset:t,range:n,ratio:e,useCapture:useCapture,color:i.color||"green",doRefresh:o})));var e,t,n},y.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",function(){e()},!1)},window.__endPullToRefresh__=function(){s&&s.reset()},window.__beginPullToRefresh__=function(){s&&s.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(i){var i=i,o=window.plus.bridge,r=window.plus.tools,s="Push";function a(e,t,n){this.__UUID__=null,this.message=e,this.Payload=t,this.options=n}i.push={getClientInfo:function(){return o.execSync2(s,"getClientInfo",[])},getClientInfoAsync:function(t,n){var e=o.callbackId(function(e){"function"==typeof t&&t(e)},function(e){"function"==typeof n&&n(e)});o.exec(s,"getClientInfoAsync",[e])},createMessage:function(e,t,n){r.platform==r.IOS?o.exec(s,"createMessage",[e,t,n]):(n&&n.icon&&(n.icon=i.io.convertLocalFileSystemURL(n.icon)),e=new a(e,t,n),n=o.execSync(s,"createMessage",[e]),e.__UUID__=n)},clear:function(){o.exec(s,"clear",[])},addEventListener:function(e,t,n){var i=r.UUID(e);__Mkey__Push__.pushCallback_Push(i,t,n),o.exec(s,"addEventListener",[window.__HtMl_Id__,i,e])},remove:function(e){o.exec(s,"remove",[e.__UUID__])},getAllMessage:function(){return o.execSync(s,"getAllMessage",[])},setAutoNotification:function(e){o.exec(s,"setAutoNotification",[e])}}}(window.plus),function(e){var e=e,a=window.plus.bridge,c="Runtime";e.runtime={arguments:null,version:null,innerVersion:null,uniVersion:"",launchLoadedTime:null,launcher:null,origin:null,processId:null,startupTime:null,isRecovery:!1,restart:function(){a.exec(c,"restart",[])},install:function(e,t,n,i){i=a.callbackId(n,i);a.exec(c,"install",[e,i,t])},getProperty:function(e,t){t=a.callbackId(t);a.exec(c,"getProperty",[e,t])},quit:function(){a.exec(c,"quit",[])},openURL:function(e,t,n){var i=a.callbackId(null,function(e){"function"==typeof t&&t(e)});a.exec(c,"openURL",[e,i,n])},launchApplication:function(e,t){var n=a.callbackId(null,function(e){"function"==typeof t&&t(e)});a.exec(c,"launchApplication",[e,n])},setBadgeNumber:function(e,t){"number"==typeof e&&a.exec(c,"setBadgeNumber",[e,t])},openFile:function(e,t,n){var i=a.callbackId(null,function(e){"function"==typeof n&&n(e)});a.exec(c,"openFile",[e,t,i])},openDocument:function(e,t,n,i){var o=a.callbackId(function(e){"function"==typeof n&&n(e)},function(e){"function"==typeof i&&i(e)});a.exec(c,"openDocument",[e,t,o])},isStreamValid:function(){return a.execSync(c,"isStreamValid")},openWeb:function(e){return a.exec(c,"openWeb",[e])},isApplicationExist:function(e){return null!=e&&"string"!=typeof e&&a.execSync(c,"isApplicationExist",[e])},processDirectPage:function(){return a.execSync(c,"processDirectPage",[])},isCustomLaunchPath:function(){return a.execSync(c,"isCustomLaunchPath")},getDCloudId:function(){return a.execSync(c,"getDCloudId")},agreePrivacy:function(){a.exec(c,"agreePrivacy",[])},disagreePrivacy:function(){a.exec(c,"disagreePrivacy",[])},isAgreePrivacy:function(){return a.execSync(c,"isAgreePrivacy",[])},downloadFile:function(o,r,s){var e;if("string"==typeof o.url)10r.Uninitialized&&("function"==typeof this.onabort&&this.onabort(this.__progessEvent__),this.__init__(),o.exec(r.__F__,"abort",[this.__UUID__]))},s.getAllResponseHeaders=function(){if(this.readyState>=r.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},s.getResponseHeader=function(e){if("string"==typeof e&&this.readyState>=r.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},s.setRequestHeader=function(e,t){var n;"string"==typeof e&&"string"==typeof t&&r.Open==this.readyState&&(n=this.__requestHeaders__[e],this.__requestHeaders__[e]=n?n+", "+t:t)},s.open=function(e,t,n,i){r.Open!=this.readyState&&r.Loaded!=this.readyState||this.__init__(),r.Uninitialized==this.readyState&&(this.readyState=r.Open,o.exec(r.__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())},s.overrideMimeType=function(e){o.exec(r.__F__,"overrideMimeType",[this.__UUID__,e])},s.send=function(e){var n=this;if(r.Open!=this.readyState)throw new Error("XMLHttpRequest not open");this.readyState=r.Sent,"function"==typeof this.onloadstart&&this.onloadstart(n.__progessEvent__);var t=o.callbackId(function(e){if(r.Receiving==e.readyState)r.Sent==n.readyState?(n.readyState=r.Receiving,n.status=e.status,n.statusText=e.statusText,n.__responseHeaders__=e.header,n.__progessEvent__.lengthComputable=e.lengthComputable,n.__progessEvent__.total=e.totalSize):r.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(r.Loaded==e.readyState){n.readyState=r.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__)}});return o.exec(r.__F__,"send",[this.__UUID__,t,e,this.__requestHeaders__]),void("function"==typeof this.onreadystatechange&&this.onreadystatechange())},e.net={XMLHttpRequest:r}}(window.plus),function(e){var e=e,o=window.plus.bridge,r="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(r,"compressVideo",[e,n])},decompress:function(e,t,n,i){i=o.callbackId(n,i);o.exec(r,"decompress",[e,t,i])},compress:function(e,t,n,i){i=o.callbackId(n,i);o.exec(r,"compress",[e,t,i])},compressImage:function(e,t,n){n=o.callbackId(function(e){t&&(e={target:e.path,width:e.w,height:e.h,size:e.size},t(e))},n);o.exec(r,"compressImage",[e,n])}}}(window.plus),function(i){var r=(i=i).bridge,s="ShortVideo",o=i.tools;function a(e){return o.getElementOffsetXInWebview(e)}function c(e){return o.getElementOffsetYInWebview(e)}function e(e,t){this.id=o.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=[a(div),c(div),div.offsetWidth,div.offsetHeight];r.exec(s,"resize",[n,e])},200)},!1):div.addEventListener("resize",function(){var e=[a(div),c(div),div.offsetWidth,div.offsetHeight];r.exec(s,"resize",[n,e])},!1),e=[a(div),c(div),div.offsetWidth,div.offsetHeight]),r.exec(s,"ShortVideo",[this.id,e,t])}var t=e.prototype;function n(e,t){this.id=o.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=[a(div),c(div),div.offsetWidth,div.offsetHeight];r.exec(s,"shortVideoEditor_resize",[n,e])},200)},!1):div.addEventListener("resize",function(){var e=[a(div),c(div),div.offsetWidth,div.offsetHeight];r.exec(s,"shortVideoEditor_resize",[n,e])},!1),e=[a(div),c(div),div.offsetWidth,div.offsetHeight]),r.exec(s,"ShortVideoEditor",[this.id,e,t])}t.start=function(e){r.exec(s,"ShortVideo_start",[this.id,e])},t.pause=function(){r.exec(s,"ShortVideo_pause",[this.id])},t.resume=function(){r.exec(s,"ShortVideo_resume",[this.id])},t.stop=function(){r.exec(s,"ShortVideo_stop",[this.id])},t.close=function(){r.exec(s,"ShortVideo_close",[this.id])},t.switchCamera=function(e){r.exec(s,"ShortVideo_switchCamera",[this.id,e])},t.setStyles=function(e){r.exec(s,"ShortVideo_setStyles",[this.id,e])},t.startMixAudio=function(e){r.exec(s,"ShortVideo_startMixAudio",[this.id,e])},t.pauseMixAudio=function(){r.exec(s,"ShortVideo_pauseMixAudio",[this.id])},t.resumeMixAudio=function(){r.exec(s,"ShortVideo_resumeMixAudio",[this.id])},t.stopMixAudio=function(){r.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=r.callbackId(n)),r.exec(s,"ShortVideo_addEventListener",[this.id,e,n])},(t=n.prototype).play=function(){r.exec(s,"shortVideoEditor_play",[this.id])},t.pause=function(){r.exec(s,"shortVideoEditor_pause",[this.id])},t.resume=function(){r.exec(s,"shortVideoEditor_resume",[this.id])},t.stop=function(){r.exec(s,"shortVideoEditor_stop",[this.id])},t.close=function(){r.exec(s,"shortVideoEditor_close",[this.id])},t.setStyles=function(e){r.exec(s,"shortVideoEditor_setStyles",[this.id,e])},t.save=function(e,t,n){var i="function"!=typeof t?null:function(e){t(e)},o="function"!=typeof n?null:function(e){n(e)},o=r.callbackId(i,o);r.exec(s,"shortVideoEditor_save",[this.id,e,o])},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=r.callbackId(n)),r.exec(s,"shortVideoEditor_addEventListener",[this.id,e,n])},t={Camera:e,Editor:n,upload:function(e,t,n){var i="function"!=typeof t?null:function(e){t(e)},o="function"!=typeof n?null:function(e){n(e)},o=r.callbackId(i,o);r.exec(s,"uploader",[e,o])}},i.shortvideo=t}(window.plus),function(e){var o="iBeacon",r=e.bridge,t={startBeaconDiscovery:function(t){if("object"==typeof t){var n="function"!=typeof t.complete?function(){}:t.complete,e="function"!=typeof t.success?n:function(e){t.success(e),n(e)},i="function"!=typeof t.fail?n:function(e){t.fail(e),n(e)};return callbackID=r.callbackId(e,i),r.exec(o,"startBeaconDiscovery",[callbackID,t.uuids])}},stopBeaconDiscovery:function(t){var n="function"!=typeof t.complete?function(){}:t.complete,e="function"!=typeof t.success?n:function(e){t.success(e),n(e)},i="function"!=typeof t.fail?n:function(e){t.fail(e),n(e)};return callbackID=r.callbackId(e,i),r.exec(o,"stopBeaconDiscovery",[callbackID])},getBeacons:function(t){var n="function"!=typeof t.complete?function(){}:t.complete,e="function"!=typeof t.success?n:function(e){t.success(e),n(e)},i="function"!=typeof t.fail?n:function(e){t.fail(e),n(e)};return callbackID=r.callbackId(e,i),r.exec(o,"getBeacons",[callbackID])},onBeaconUpdate:function(e){e="function"!=typeof e?null:e;return callbackID=r.callbackId(e),r.exec(o,"onBeaconUpdate",[callbackID])},onBeaconServiceChange:function(e){e="function"!=typeof e?null:e;return callbackID=r.callbackId(e),r.execSync(o,"onBeaconServiceChange",[callbackID])}};e.ibeacon=t}(window.plus),function(e){var i="Bluetooth",c=window.plus.bridge,t={closeBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),c.exec(i,"closeBluetoothAdapter",[callbackID])},openBluetoothAdapter:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),c.exec(i,"openBluetoothAdapter",[callbackID])},getBluetoothAdapterState:function(e){return callbackID=this.getCallbackIDByFunction(e.success,e.fail,e.complete),c.exec(i,"getBluetoothAdapterState",[callbackID])},getBluetoothDevices:function(r){var s=this,a="function"!=typeof r.complete?function(){}:r.complete,e="function"!=typeof r.success?null:function(e){for(var t=e.devices,n=0;n