You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
86KB

  1. function T(){return T=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},T.apply(this,arguments)}function ke(e,n,t,r,i,s,c){try{var a=e[s](c),l=a.value}catch(d){t(d);return}a.done?n(l):Promise.resolve(l).then(r,i)}function K(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var s=e.apply(n,t);function c(l){ke(s,r,i,c,a,"next",l)}function a(l){ke(s,r,i,c,a,"throw",l)}c(void 0)})}}var pn={exports:{}},fn={exports:{}};(function(e){function n(t){return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(fn);(function(e){var n=fn.exports.default;function t(){e.exports=t=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var r,i={},s=Object.prototype,c=s.hasOwnProperty,a=Object.defineProperty||function(h,f,m){h[f]=m.value},l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function v(h,f,m){return Object.defineProperty(h,f,{value:m,enumerable:!0,configurable:!0,writable:!0}),h[f]}try{v({},"")}catch(h){v=function(m,I,P){return m[I]=P}}function w(h,f,m,I){var P=f&&f.prototype instanceof ie?f:ie,k=Object.create(P.prototype),y=new se(I||[]);return a(k,"_invoke",{value:vt(h,m,y)}),k}function b(h,f,m){try{return{type:"normal",arg:h.call(f,m)}}catch(I){return{type:"throw",arg:I}}}i.wrap=w;var D="suspendedStart",J="suspendedYield",O="executing",M="completed",N={};function ie(){}function Y(){}function _(){}var te={};v(te,d,function(){return this});var re=Object.getPrototypeOf,$=re&&re(re(ce([])));$&&$!==s&&c.call($,d)&&(te=$);var z=_.prototype=ie.prototype=Object.create(te);function he(h){["next","throw","return"].forEach(function(f){v(h,f,function(m){return this._invoke(f,m)})})}function Q(h,f){function m(P,k,y,E){var R=b(h[P],h,k);if(R.type!=="throw"){var F=R.arg,L=F.value;return L&&n(L)=="object"&&c.call(L,"__await")?f.resolve(L.__await).then(function(W){m("next",W,y,E)},function(W){m("throw",W,y,E)}):f.resolve(L).then(function(W){F.value=W,y(F)},function(W){return m("throw",W,y,E)})}E(R.arg)}var I;a(this,"_invoke",{value:function(k,y){function E(){return new f(function(R,F){m(k,y,R,F)})}return I=I?I.then(E,E):E()}})}function vt(h,f,m){var I=D;return function(P,k){if(I===O)throw new Error("Generator is already running");if(I===M){if(P==="throw")throw k;return{value:r,done:!0}}for(m.method=P,m.arg=k;;){var y=m.delegate;if(y){var E=Ie(y,m);if(E){if(E===N)continue;return E}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(I===D)throw I=M,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);I=O;var R=b(h,f,m);if(R.type==="normal"){if(I=m.done?M:J,R.arg===N)continue;return{value:R.arg,done:m.done}}R.type==="throw"&&(I=M,m.method="throw",m.arg=R.arg)}}}function Ie(h,f){var m=f.method,I=h.iterator[m];if(I===r)return f.delegate=null,m==="throw"&&h.iterator.return&&(f.method="return",f.arg=r,Ie(h,f),f.method==="throw")||m!=="return"&&(f.method="throw",f.arg=new TypeError("The iterator does not provide a '"+m+"' method")),N;var P=b(I,h.iterator,f.arg);if(P.type==="throw")return f.method="throw",f.arg=P.arg,f.delegate=null,N;var k=P.arg;return k?k.done?(f[h.resultName]=k.value,f.next=h.nextLoc,f.method!=="return"&&(f.method="next",f.arg=r),f.delegate=null,N):k:(f.method="throw",f.arg=new TypeError("iterator result is not an object"),f.delegate=null,N)}function ht(h){var f={tryLoc:h[0]};1 in h&&(f.catchLoc=h[1]),2 in h&&(f.finallyLoc=h[2],f.afterLoc=h[3]),this.tryEntries.push(f)}function ae(h){var f=h.completion||{};f.type="normal",delete f.arg,h.completion=f}function se(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(ht,this),this.reset(!0)}function ce(h){if(h||h===""){var f=h[d];if(f)return f.call(h);if(typeof h.next=="function")return h;if(!isNaN(h.length)){var m=-1,I=function P(){for(;++m<h.length;)if(c.call(h,m))return P.value=h[m],P.done=!1,P;return P.value=r,P.done=!0,P};return I.next=I}}throw new TypeError(n(h)+" is not iterable")}return Y.prototype=_,a(z,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:Y,configurable:!0}),Y.displayName=v(_,p,"GeneratorFunction"),i.isGeneratorFunction=function(h){var f=typeof h=="function"&&h.constructor;return!!f&&(f===Y||(f.displayName||f.name)==="GeneratorFunction")},i.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,_):(h.__proto__=_,v(h,p,"GeneratorFunction")),h.prototype=Object.create(z),h},i.awrap=function(h){return{__await:h}},he(Q.prototype),v(Q.prototype,u,function(){return this}),i.AsyncIterator=Q,i.async=function(h,f,m,I,P){P===void 0&&(P=Promise);var k=new Q(w(h,f,m,I),P);return i.isGeneratorFunction(f)?k:k.next().then(function(y){return y.done?y.value:k.next()})},he(z),v(z,p,"Generator"),v(z,d,function(){return this}),v(z,"toString",function(){return"[object Generator]"}),i.keys=function(h){var f=Object(h),m=[];for(var I in f)m.push(I);return m.reverse(),function P(){for(;m.length;){var k=m.pop();if(k in f)return P.value=k,P.done=!1,P}return P.done=!0,P}},i.values=ce,se.prototype={constructor:se,reset:function(f){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(ae),!f)for(var m in this)m.charAt(0)==="t"&&c.call(this,m)&&!isNaN(+m.slice(1))&&(this[m]=r)},stop:function(){this.done=!0;var f=this.tryEntries[0].completion;if(f.type==="throw")throw f.arg;return this.rval},dispatchException:function(f){if(this.done)throw f;var m=this;function I(F,L){return y.type="throw",y.arg=f,m.next=F,L&&(m.method="next",m.arg=r),!!L}for(var P=this.tryEntries.length-1;P>=0;--P){var k=this.tryEntries[P],y=k.completion;if(k.tryLoc==="root")return I("end");if(k.tryLoc<=this.prev){var E=c.call(k,"catchLoc"),R=c.call(k,"finallyLoc");if(E&&R){if(this.prev<k.catchLoc)return I(k.catchLoc,!0);if(this.prev<k.finallyLoc)return I(k.finallyLoc)}else if(E){if(this.prev<k.catchLoc)return I(k.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return I(k.finallyLoc)}}}},abrupt:function(f,m){for(var I=this.tryEntries.length-1;I>=0;--I){var P=this.tryEntries[I];if(P.tryLoc<=this.prev&&c.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var k=P;break}}k&&(f==="break"||f==="continue")&&k.tryLoc<=m&&m<=k.finallyLoc&&(k=null);var y=k?k.completion:{};return y.type=f,y.arg=m,k?(this.method="next",this.next=k.finallyLoc,N):this.complete(y)},complete:function(f,m){if(f.type==="throw")throw f.arg;return f.type==="break"||f.type==="continue"?this.next=f.arg:f.type==="return"?(this.rval=this.arg=f.arg,this.method="return",this.next="end"):f.type==="normal"&&m&&(this.next=m),N},finish:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var I=this.tryEntries[m];if(I.finallyLoc===f)return this.complete(I.completion,I.afterLoc),ae(I),N}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var I=this.tryEntries[m];if(I.tryLoc===f){var P=I.completion;if(P.type==="throw"){var k=P.arg;ae(I)}return k}}throw new Error("illegal catch attempt")},delegateYield:function(f,m,I){return this.delegate={iterator:ce(f),resultName:m,nextLoc:I},this.method==="next"&&(this.arg=r),N}},i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(pn);var X=pn.exports(),x=X;try{regeneratorRuntime=X}catch(e){typeof globalThis=="object"?globalThis.regeneratorRuntime=X:Function("r","regeneratorRuntime = r")(X)}function Z(e){return e==="undefined"}function fe(){return!Z(typeof my)&&my!==null&&!Z(typeof my.alert)}var C;(function(e){e.CANCEL="-1",e.SUCCESS="0",e.API_UNDEFINED="1",e.INVALID_PARAMS="2",e.UNKNOWN_ERROR="3",e.UNAUTHORIZED_CALL="4",e.WRONG_CORP_ID="5",e.CREATE_CHAT_FAILED="6",e.UNAUTHORIZED_API="7",e.INVALID_CORP_ID="8",e.SERVER_RESPONSE_ERROR="9",e.WRONG_DEVICE_INFO="10",e.UPLOAD_FAIL="11",e.PROCESS_FAIL="12",e.DUPLICATED_CALL="13",e.TOO_LARGE_PIC="14",e.REQUEST_REJECT_OR_INSECURE_REQUEST="15",e.PC_NOT_ALLOWED_TO_OPEN_SIDE_PANE_OR_MODAL="21",e.PC_CLOSE_SIDE_PANE_OR_MODAL="22",e.UNAUTHORIZED_PARAMS="23",e.GESTURE_PASSWORD_DOES_NOT_EXIST="24",e.NETWORK_ERROR="25"})(C||(C={}));var A;(function(e){e.MOBILE="mobile",e.PC="pc",e.MINI_APP="mini",e.UNKNOWN="unknown"})(A||(A={}));var g;(function(e){e.ANDROID="android",e.IOS="ios",e.UNKNOW="unknow"})(g||(g={}));var G;(function(e){e.UPDATE_NETWORK_STATUS="DINGGOV_ON_NETWORK_TYPE_CHANGED",e.UPDATE_LOCATION="DINGGOV_GEO_LOCATION_UPDATE",e.UPDATE_TRACE="DINGGOV_TRACE_UPDATE",e.ON_SHAKE="onShake"})(G||(G={}));var S;(function(e){e.isDingTalk="DingTalk",e.isMpaas="mPaaS",e.isUnknow="unknow"})(S||(S={}));var H=navigator&&(navigator.swuserAgent||navigator.userAgent)||"",gn=function(){function e(){this.readyFnStack=[],this.generalEventCallbackStack={},this.apiList={},this.continuousCallbackStack={},this.isH5Mobile=null,this.appType=null,this.platformType=null,this.aliBridge=window&&window.navigator&&window.AlipayJSBridge,this.isReady=!1,this.init(),console.warn("\u8BF7\u5C06 gdt-jsapi \u7248\u672C\u8BF7\u5347\u7EA7\u5230 1.9.24 \u7248\u672C\u4EE5\u4E0A\u7684\u6700\u65B0\u7248\u672C\uFF0C\u8C22\u8C22")}var n=e.prototype;return n.h5AndroidbridgeInit=function(){var t=this;this.h5BridgeReadyPromise=new Promise(function(r,i){var s=function(){try{window.WebViewJavascriptBridgeAndroid=window.nuva&&window.nuva.require(),t.execReadyFn()}catch(c){}};window.nuva&&(window.nuva.isReady===void 0||window.nuva.isReady)?s():(document.addEventListener("runtimeready",function(){s()},!1),document.addEventListener("runtimefailed",function(c){var a=c&&c.detail||{errorCode:C.INVALID_PARAMS,errorMessage:"unknown nuvajs bootstrap error"};t.handleBridgeResponse(a,r,i)},!1))})},n.h5IosBridgeInit=function(){var t=this;this.h5BridgeReadyPromise=new Promise(function(r,i){if(typeof WebViewJavascriptBridge!="undefined")try{WebViewJavascriptBridge.init(function(s,c){}),t.execReadyFn()}catch(s){}else document.addEventListener("WebViewJavascriptBridgeReady",function(){try{WebViewJavascriptBridge&&WebViewJavascriptBridge.init(function(s,c){}),t.execReadyFn()}catch(s){}},!1)})},n.init=function(){var t=this,r=this.getAppType(),i=this.getContainerType();if(r===A.PC&&window.dingtalk&&!window.dingtalk.isRegister&&(window.dingtalk.isRegister=!0,window.dingtalk.callbackStack={},window.dingtalk.event.register(function(c,a){if(t.continuousCallbackStack[c])t.continuousCallbackStack[c](a);else if(a){var l=""+a.msgId;c==="openapi.event.emit"?(console.log("dingtalk receive event:",a,"identifer is",l),window.dingtalk.callbackStack[l]&&(window.dingtalk.callbackStack[l](a),delete window.dingtalk.callbackStack[l])):c==="im.fileTask.addNewTask"||c==="im.fileTask.updateTask"?(a.msgId||a.taskId)&&typeof t.continuousCallbackStack[a.msgId||a.taskId]=="function"&&t.continuousCallbackStack[a.msgId||a.taskId](c,a):t.generalEventCallbackStack[c]&&t.generalEventCallbackStack[c].forEach(function(d){d.call(t,a)})}})),r===A.MOBILE){if(i===S.isDingTalk)this.platformType===g.ANDROID?!this.h5BridgeReadyPromise&&this.h5AndroidbridgeInit():this.platformType===g.IOS&&!this.h5BridgeReadyPromise&&this.h5IosBridgeInit();else if(i===S.isMpaas&&r===A.MOBILE)if(window.AlipayJSBridge)this.execReadyFn();else{var s=setTimeout(function(){console.warn("window.AlipayJSBridge \u672A\u521D\u59CB\u5316\u5B8C\u6BD5\uFF0C\u8D70\u5230\u515C\u5E95\u903B\u8F91",t.isReady,window.AlipayJSBridge),t.isReady||t.execReadyFn.call(t)},5200);document.addEventListener("AlipayJSBridgeReady",function(){t.isReady||(clearTimeout(s),t.execReadyFn.call(t))},!1)}}else setTimeout(function(){t.execReadyFn()})},n.execReadyFn=function(){this.isReady=!0;for(var t=this.readyFnStack.shift();t;)t&&t(this),t=this.readyFnStack.shift()},n.onReady=function(t){this.isReady?t&&t(this):this.readyFnStack.push(t)},n.setCurrentInvoker=function(t){this.currentInvoker=t},n.getCurrentInvoker=function(){return this.currentInvoker},n.getBridge=function(){return this.aliBridge},n.getContainerType=function(){return/TaurusApp/g.test(H)?/DingTalk/g.test(H)?S.isDingTalk:S.isMpaas:/DingTalk/g.test(H)?S.isDingTalk:/mPaaSClient/g.test(H)||/Nebula/g.test(H)?S.isMpaas:S.isUnknow},n.getAppType=function(){return this.appType||(this.isMobile()?this.appType=A.MOBILE:window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("dingtalk-win")>=0&&window.navigator.userAgent.indexOf("TaurusApp")>=0?this.appType=A.PC:fe()?this.appType=A.MINI_APP:(console.warn("\u68C0\u6D4B\u5230\u9875\u9762\u5728\u975E\u4E13\u6709\u9489\u9489\u5BA2\u6237\u7AEF\u4E2D\u6253\u5F00\uFF0CJSAPI \u8C03\u7528\u53EF\u80FD\u4E0D\u4F1A\u751F\u6548\uFF01"),this.appType=A.UNKNOWN)),this.appType},n.isMobile=function(){var t=/iPhone|iPad|iPod|iOS/i.test(H),r=/Android/i.test(H),i=window&&window.navigator&&window.navigator.userAgent||"";return this.isH5Mobile!==null?this.isH5Mobile:i&&i.indexOf("dingtalk-win")>=0?(this.isH5Mobile=!1,!1):!(!i||!(i.includes("mPaaSClient")||i.includes("Nebula")||i.includes("DingTalk")))&&(this.isH5Mobile=!0,this.platformType=t?g.IOS:r?g.ANDROID:g.UNKNOW,!0)},n.registerEvent=function(t,r){var i=this;if(typeof r=="function")return this.getAppType()===A.PC?(this.generalEventCallbackStack[t]||(this.generalEventCallbackStack[t]=[]),this.generalEventCallbackStack[t].push(r),function(){var s=i.generalEventCallbackStack[t].findIndex(function(c){return c===r});i.generalEventCallbackStack[t].splice(s,1)}):this.getAppType()===A.MOBILE?(document.addEventListener(t,r,!1),function(){document.removeEventListener(t,r)}):void 0;console.error("callback \u53C2\u6570\u5E94\u8BE5\u4E3A\u51FD\u6570")},n.registerClientAPI=function(t,r){this.apiList[t]=r},n.registerAPI=function(t,r){if(this.isMobile(),typeof r=="object"){var i=r,s=this.getAppType();this.registerClientAPI(t,i[s])}else this.registerClientAPI(t,r)},n.invokeMiniApp=function(){var t=K(x.mark(function r(i,s){var c=this;return x.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s===void 0&&(s={}),a.abrupt("return",new Promise(function(l,d){s=T({_apiName:i},s);var u=c.apiList[i],p=c.getContainerType();if(!u)return console.warn("API: "+i+"\uFF0C\u672A\u6CE8\u518C"),d("API: "+i+"\uFF0C\u672A\u6CE8\u518C");if(p===S.isMpaas){if(typeof u=="function")return void u.call(null,s,{context:my,resolve:l,reject:d,methodName:i});my.call(i,s,function(v){c.handleBridgeResponse(v,l,d)})}else if(p===S.isDingTalk){if(typeof u=="function")return void u.call(null,s,{context:dd.dtBridge,resolve:l,reject:d,methodName:i,containerType:p,appType:A.MINI_APP});dd.dtBridge({m:"taurus.common."+i,args:s,onSuccess:function(v){c.handleBridgeResponse(v,l,d)},onFail:function(v){c.handleBridgeResponse(v,l,d)}})}}));case 2:case"end":return a.stop()}},r)}));return function(r,i){return t.apply(this,arguments)}}(),n.invokeMobile=function(){var t=K(x.mark(function r(i,s,c){var a=this;return x.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return s===void 0&&(s={}),l.abrupt("return",new Promise(function(d,u){s=T({_apiName:i},s);var p=a.apiList[i],v=a.getContainerType();if(!p)return console.warn("API: "+i+"\uFF0C\u672A\u6CE8\u518C"),u("API: "+i+"\uFF0C\u672A\u6CE8\u518C");if(v===S.isDingTalk){if(a.platformType===g.IOS){var w=Object.assign({},s);if(w.watch===!0&&typeof WebViewJavascriptBridge!="undefined"&&WebViewJavascriptBridge.registerHandler(c!=null&&c.dingTalkAPIName?c==null?void 0:c.dingTalkAPIName:"taurus.common."+i,function(O,M){typeof s.onSuccess=="function"&&s.onSuccess.call(null,O),M&&M({errorCode:"0",errorMessage:"success"})}),typeof p=="function")return void p.call(null,s,{context:window.WebViewJavascriptBridge,resolve:d,reject:u,methodName:i,containerType:v,appType:A.MOBILE,platformType:g.IOS,watch:w.watch});window.WebViewJavascriptBridge!==void 0&&window.WebViewJavascriptBridge.callHandler("taurus.common."+i,Object.assign({},w),function(O){!w.watch&&a.handleBridgeResponse(O||{},d,u)})}else if(a.platformType===g.ANDROID){var b=i.split("."),D=b.pop()||"",J=b.join(".")||"taurus.common";if(typeof p=="function")return void p.call(null,s,{context:window.WebViewJavascriptBridgeAndroid,resolve:d,reject:u,methodName:i,containerType:v,appType:A.MOBILE,platformType:g.ANDROID});typeof window.WebViewJavascriptBridgeAndroid=="function"&&window.WebViewJavascriptBridgeAndroid(function(O){a.handleBridgeResponse(O,d,u)},function(O){a.handleBridgeResponse(O,d,u)},J,D,s)}}else if(v===S.isMpaas){if(typeof p=="function")return void p.call(null,s,{context:AlipayJSBridge,resolve:d,reject:u,methodName:i});AlipayJSBridge.call(i,s,function(O){a.handleBridgeResponse(O,d,u)})}}));case 2:case"end":return l.stop()}},r)}));return function(r,i,s){return t.apply(this,arguments)}}(),n.findFitMsgId=function(t){var r,i;return(r=window.dingtalk)!==null&&r!==void 0&&(i=r.callbackStack)!==null&&i!==void 0&&i[t]?this.findFitMsgId(t+1):t},n.invokePC=function(){var t=K(x.mark(function r(i,s,c){var a=this;return x.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return s===void 0&&(s={}),c===void 0&&(c={msgId:1}),l.abrupt("return",new Promise(function(d,u){try{s=T({_apiName:i},s);var p=a.findFitMsgId(Date.now()),v=c.pcClientAPIName||i;if(c.msgId=p,!window.dingtalk)return Promise.reject(new Error("\u8BF7\u5728\u9489\u9489\u5BB9\u5668\u5185\u4F7F\u7528 JSAPI"));a.apiList[i]?a.apiList[i].call(null,s,c):(console.info("invoke bridge api:",v,p,s),window.dingtalk.platform.invokeAPI(p,v,s)),window.dingtalk&&window.dingtalk.isRegister&&!window.dingtalk.callbackStack&&(window.dingtalk.callbackStack={}),window.dingtalk.callbackStack[""+p]=function(w){var b=w;return b.body?d(b.body):d(b)}}catch(w){u(w)}}));case 3:case"end":return l.stop()}},r)}));return function(r,i,s){return t.apply(this,arguments)}}(),n.handleBridgeResponse=function(t,r,i){t&&t.errorCode?t.errorCode===C.SUCCESS?r(t.result):(console.warn("API \u8C03\u7528\u5931\u8D25",t),i(t)):t&&t.success==="false"?i(t):r(t)},n.invoke=function(){var t=K(x.mark(function r(i,s,c){var a;return x.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(s===void 0&&(s={}),(a=this.getAppType())!==A.MOBILE){l.next=8;break}if(this.isReady){l.next=5;break}return l.abrupt("return",Promise.reject("\u9519\u8BEF\uFF1A\u8BF7\u5728 dd.ready() \u56DE\u8C03\u4E2D\u4F7F\u7528 JSAPI\uFF0C\u5F53\u524D\u8C03\u7528\u51FD\u6570\uFF1A"+i));case 5:return l.abrupt("return",this.invokeMobile(i,s,c));case 8:if(a!==A.PC){l.next=12;break}return l.abrupt("return",this.invokePC(i,s,c));case 12:if(a!==A.MINI_APP){l.next=16;break}return l.abrupt("return",this.invokeMiniApp(i,s));case 16:return l.abrupt("return",Promise.reject("\u9519\u8BEF\uFF1A\u672A\u5728\u9489\u9489\u8FD0\u884C\u73AF\u5883\u4E0B\u8C03\u7528\u8BE5 API\uFF0C\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u8FD0\u884C\u73AF\u5883"));case 17:case"end":return l.stop()}},r,this)}));return function(r,i,s){return t.apply(this,arguments)}}(),n.existEventListener=function(t){return!!this.continuousCallbackStack[t]},n.registerContinuesEvent=function(t,r){this.continuousCallbackStack[t]=r},n.removeContinuesEvent=function(t){this.existEventListener(t)&&(this.continuousCallbackStack[t](),delete this.continuousCallbackStack[t])},e}();fe()||(window._invoker=window._invoker||new gn);const o=fe()?new gn:window._invoker;function It(e,n){if(e)return function(t){return typeof t=="function"||n.includes("Sync")||n.startsWith("create")?e(t):new Promise(function(r,i){e(T({},t,{success:function(s){r(s)},fail:function(s){i(s)}}))})}}function Ae(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.alert",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","alert",e):a===g.IOS&&i.callHandler("taurus.common.alert",Object.assign({},e),function(u){t(u)})}else i&&i.call("alert",e,function(){t()})}o.registerAPI("alert",{mini:Ae,mobile:Ae}),mn.version={android:"1.3.2",ios:"1.3.2"};function mn(e){return o.invoke("alert",e)}o.registerAPI("authConfig",{mini:!0,mobile:!0}),vn.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function vn(e){return o.invoke("authConfig",e)}function Pe(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.bizContactDepartmentsPickerExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","bizContactDepartmentsPickerExternal",e):a===g.IOS&&i.callHandler("taurus.common.bizContactDepartmentsPickerExternal",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("bizContactDepartmentsPickerExternal",e,function(u){o.handleBridgeResponse(u,t,r)})}o.registerAPI("bizContactDepartmentsPickerExternal",{mini:Pe,mobile:Pe,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.departmentsPickerEx",e)}}),hn.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function hn(e){return o.invoke("bizContactDepartmentsPickerExternal",e)}function we(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.bizCustomContactChooseExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","bizCustomContactChooseExternal",e):a===g.IOS&&i.callHandler("taurus.common.bizCustomContactChooseExternal",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("bizCustomContactChooseExternal",e,function(u){o.handleBridgeResponse(u,t,r)})}o.registerAPI("bizCustomContactChooseExternal",{mini:we,mobile:we,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.customContact.chooseEx",e)}}),In.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function In(e){return o.invoke("bizCustomContactChooseExternal",e)}function be(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.bizCustomContactMultipleChooseExternal",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","bizCustomContactMultipleChooseExternal",e):a===g.IOS&&i.callHandler("taurus.common.bizCustomContactMultipleChooseExternal",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("bizCustomContactMultipleChooseExternal",e,function(u){o.handleBridgeResponse(u,t,r)})}o.registerAPI("bizCustomContactMultipleChooseExternal",{mini:be,mobile:be,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.customContact.multipleChooseEx",e)}}),kn.version={android:"3.0.3",ios:"3.0.3",pc:"3.0.3"};function kn(e){return o.invoke("bizCustomContactMultipleChooseExternal",e)}o.registerAPI("callPhone",{mini:!0,mobile:!0}),An.version={android:"1.1.0",ios:"1.1.0"};function An(e){return o.invoke("callPhone",e)}o.registerAPI("version",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"version",{})}});function ne(){return o.invoke("version")}var kt=1,At=-1,Pn=0;function Pt(e,n){return typeof e!="number"&&(e=0),typeof n!="number"&&(n=0),e>n?kt:e<n?At:Pn}function ge(e,n){e===void 0&&(e=""),n===void 0&&(n="");var t=/^\d+(\.\d+){2,3}$/;if(!t.test(e)||!t.test(n))throw new Error("\u8BF7\u4F20\u5165\u6B63\u786E\u7684\u7248\u672C\u53F7\u683C\u5F0F");for(var r=(""+e).split(".").map(function(l){return parseInt(l,10)}),i=(""+n).split(".").map(function(l){return parseInt(l,10)}),s=Math.max(r.length,i.length),c=0,a=0;a<s&&(c=Pt(r[a],i[a]))===Pn;a++);return c}var ue=navigator&&navigator.userAgent||"",wt=function(){return ue.indexOf("Android")>-1||ue.indexOf("Adr")>-1},bt=function(){return!!ue.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},yt=function(){return/(windows)/i.test(navigator.userAgent)};function St(e){return wn.apply(this,arguments)}function wn(){return(wn=K(x.mark(function e(n){var t,r,i,s;return x.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(dn[n]){c.next=2;break}return c.abrupt("return",!1);case 2:return c.next=4,ne();case 4:return t=c.sent,r=t.version,i=dn[n].version,s=wt()?"android":bt()?"ios":yt()?"pc":"unknown",c.abrupt("return",!(!i||!i[s])&&ge(r,i[s])>0);case 9:case"end":return c.stop()}},e)}))).apply(this,arguments)}o.registerAPI("checkVPNAppInstalled",{mini:!0,mobile:!0}),bn.version={android:"1.6.0",ios:"1.6.0"};function bn(){return o.invoke("checkVPNAppInstalled")}o.registerAPI("checkVPNAppOnline",{mini:!0,mobile:!0}),yn.version={android:"1.6.0",ios:"1.6.0"};function yn(){return o.invoke("checkVPNAppOnline")}var ye;(function(e){e[e.DEFAULT=1]="DEFAULT",e[e.NEW=2]="NEW"})(ye||(ye={}));var Se;(function(e){e[e.GLOBAL_ORG=1]="GLOBAL_ORG",e[e.FRIEND=2]="FRIEND",e[e.GROUP=4]="GROUP",e[e.RECOMMEND=5]="RECOMMEND",e[e.SPECIAL_ATTENTION=7]="SPECIAL_ATTENTION",e[e.LOAD_GROUP_PERSON=8]="LOAD_GROUP_PERSON",e[e.ORG=9]="ORG"})(Se||(Se={}));var Te;(function(e){e.PHONE_HIDE="PHONE_HIDE",e.CHAT_INVALID="CHAT_INVALID",e.GROUP_CHAT_PULL_INVALID="GROUP_CHAT_PULL_INVALID",e.APP_DING_INVALID="APP_DING_INVALID",e.PHONE_DING_INVALID="PHONE_DING_INVALID",e.SMS_DING_INVALID="SMS_DING_INVALID",e.AUDIO_VIDEO_HIDE="AUDIO_VIDEO_HIDE"})(Te||(Te={})),o.registerAPI("chooseContact",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.choose",e)}}),Sn.version={pc:"1.1.0"};function Sn(e){return o.invoke("chooseContact",e)}function Ce(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.chooseContactWithComplexPicker",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","chooseContactWithComplexPicker",e):a===g.IOS&&i.callHandler("taurus.common.chooseContactWithComplexPicker",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("chooseContactWithComplexPicker",e,function(u){u.error&&u.error.toString()===C.API_UNDEFINED?i.call("complexPicker",e,function(p){o.handleBridgeResponse(p,t,r)}):o.handleBridgeResponse(u,t,r)})}o.registerAPI("chooseContactWithComplexPicker",{mini:Ce,mobile:Ce,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.complexPicker",e)}}),Tn.version={android:"1.1.0",ios:"1.1.0",pc:"1.6.2"};function Tn(e){return o.invoke("chooseContactWithComplexPicker",e)}o.registerAPI("chooseDateRangeWithCalendar",{mini:!0,mobile:!0}),Cn.version={android:"1.3.10",ios:"1.3.10"};function Cn(e){return o.invoke("chooseDateRangeWithCalendar",e)}o.registerAPI("chooseDayWithCalendar",{mini:!0,mobile:!0}),En.version={android:"1.3.10",ios:"1.3.10"};function En(e){return o.invoke("chooseDayWithCalendar",e)}o.registerAPI("chooseDepartments",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.departmentsPicker",e)}}),Rn.version={android:"1.1.0",ios:"1.1.0",pc:"1.6.2"};function Rn(e){return o.invoke("chooseDepartments",e)}o.registerAPI("chooseFile",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.chooseFile",e)}}),On.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function On(e){return o.invoke("chooseFile",e)}o.registerAPI("chooseHalfDayWithCalendar",{mini:!0,mobile:!0}),Dn.version={android:"1.3.10",ios:"1.3.10"};function Dn(e){return o.invoke("chooseHalfDayWithCalendar",e)}var Ee;(function(e){e[e.image=0]="image",e[e.video=1]="video"})(Ee||(Ee={})),o.registerAPI("dgChooseImage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.dgChooseImage",e)}}),Nn.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function Nn(e){return o.invoke("dgChooseImage",T({},e,{_apiName:"chooseImage"}))}o.registerAPI("chooseInterconnectionChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"chooseInterconnectionChat",e)}}),xn.version={pc:"2.9.0",ios:"2.9.0",android:"2.9.0"};function xn(e){return o.invoke("chooseInterconnectionChat",e)}o.registerAPI("chooseImage",{mini:!0}),Ln.version={android:"1.6.2",ios:"1.6.2"};function Ln(e){return new Promise(function(n,t){my.chooseImage(T({},e,{success:function(r){n(r)},fail:function(r){t(r)}}))})}o.registerAPI("chooseSpaceDir",{mini:!0,mobile:!0,pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.chooseSpaceDir",e)}}),Bn.version={android:"1.6.0",ios:"1.6.0",pc:"2.6.0"};function Bn(){return o.invoke("chooseSpaceDir")}o.registerAPI("chooseTimeWithCalendar",{mini:!0,mobile:!0}),Mn.version={android:"1.3.10",ios:"1.3.10"};function Mn(e){return o.invoke("chooseTimeWithCalendar",e)}o.registerAPI("chooseVideo",{mini:!0,mobile:!0}),_n.version={android:"1.6.2",ios:"1.6.2"};function _n(e){return o.invoke("chooseVideo",e)}function Re(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.navigation.close",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.navigation","close",e):a===g.IOS&&i.callHandler("biz.navigation.close",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("popWindow",e,function(u){o.handleBridgeResponse(u,t,r)})}o.registerAPI("closePage",{mini:Re,mobile:Re,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.quit",e)}}),Fn.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Fn(e){return o.invoke("closePage",T({},e,{_apiName:"closePage"}))}var Oe;(function(e){e.CODE="code",e.ACCOUNTID="accountId"})(Oe||(Oe={}));var De;(function(e){e.CODE="code",e.id="id"})(De||(De={})),o.registerAPI("complexPickerAdmin",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.complexPickerAdmin",e)}}),Wn.version={pc:"2.8.0"};function Wn(e){return o.invoke("complexPickerAdmin",e)}o.registerAPI("confirm",{mini:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c={message:e.message,title:e.title,okButton:e.buttonLabels[0],cancelButton:e.buttonLabels[1]};s===S.isDingTalk?i({m:"taurus.common.confirm",args:c,onSuccess:function(a){var l={errorCode:C.SUCCESS,result:{buttonIndex:a.ok?0:1}};o.handleBridgeResponse(l,t,r)},onFail:function(a){o.handleBridgeResponse(a,t,r)}}):i&&i.call("confirm",c,function(a){var l={errorCode:C.SUCCESS,result:{buttonIndex:a.ok?0:1}};o.handleBridgeResponse(l,t,r)})},mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a={message:e.message,title:e.title,okButton:e.buttonLabels[0],cancelButton:e.buttonLabels[1]};s?c===g.ANDROID?i&&i(function(l){var d={errorCode:C.SUCCESS,result:{buttonIndex:l.ok?0:1}};o.handleBridgeResponse(d,t,r)},function(l){o.handleBridgeResponse(l,t,r)},"taurus.common","confirm",a):c===g.IOS&&i.callHandler("taurus.common.confirm",Object.assign({},a),function(l){o.handleBridgeResponse(l,t,r)}):i&&i.call("confirm",a,function(l){var d={errorCode:C.SUCCESS,result:{buttonIndex:l.ok?0:1}};o.handleBridgeResponse(d,t,r)})},pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.confirm",e)}}),Hn.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function Hn(e){return o.invoke("confirm",e)}o.registerAPI("copyToClipboard",{mini:!0,mobile:!0}),jn.version={android:"1.3.2",ios:"1.3.2"};function jn(e){return o.invoke("copyToClipboard",e)}o.registerAPI("createChatGroup",{mini:!0,mobile:!0}),Vn.version={android:"1.3.0",ios:"1.3.0",pc:"1.3.0"};function Vn(e){return o.invoke("createChatGroup",e)}o.registerAPI("createDing",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.ding.create",e)}}),zn.version={android:"1.3.9",ios:"1.3.9",pc:"1.3.9"};function zn(e){return o.invoke("createDing",e)}o.registerAPI("createDingV2",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.ding.createV2",e)}}),Un.version={android:"2.7.0",ios:"2.7.0",pc:"2.7.0"};function Un(e){return o.invoke("createDingV2",e)}function Ne(e,n){e===void 0&&(e={});var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.conference.createVideoConf",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.conference","createVideoConf",e):a===g.IOS&&i.callHandler("biz.conference.createVideoConf",Object.assign({},e),function(u){t(u)})}else i&&i.call("createVideoConf",e,function(){t()})}o.registerAPI("createVideoConf",{mini:Ne,mobile:Ne,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.createVideoConf",T({},e))}}),Gn.version={android:"3.7.5",ios:"3.7.5",pc:"3.7.5"};function Gn(e){return o.invoke("createVideoConf",e)}o.registerAPI("createVideoMeeting",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.meeting.create",T({isVideoConference:!0},e))}}),Jn.version={android:"1.3.1.1",ios:"1.3.1.1",pc:"1.9.4"};function Jn(e){return o.invoke("createVideoMeeting",e)}o.registerAPI("dealWithBackAction",{mobile:!0}),Kn.version={android:"1.2.0.10"};function Kn(e){return o.invoke("dealWithBackAction",e)}o.registerAPI("disableClosePage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.disableClosePage",{})}}),Yn.version={pc:"3.4.0"};function Yn(){return o.invoke("disableClosePage")}o.registerAPI("disablePullToRefresh",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"ui.pullToRefresh","disable",{}):c===g.IOS&&i.callHandler("ui.pullToRefresh.disable",Object.assign({},{}),function(a){t(a)}):i&&i.call("pullRefresh",{pullRefresh:!1},function(){t()})}}),$n.version={android:"1.3.0",ios:"1.3.0"};function $n(){return o.invoke("disablePullToRefresh",{_apiName:"disablePullToRefresh"})}o.registerAPI("disableWebviewBounce",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"ui.webViewBounce","disable",{}):c===g.IOS&&i.callHandler("ui.webViewBounce.disable",Object.assign({},{}),function(a){t(a)}):i&&i.call("bounce",{enable:!1},function(a){t(a)})}}),Qn.version={ios:"1.3.0"};function Qn(){return o.invoke("disableWebviewBounce",{_apiName:"disableWebviewBounce"})}o.registerAPI("downloadAudio",{mini:!0,mobile:!0}),qn.version={android:"1.3.0",ios:"1.3.0"};function qn(e){return o.invoke("downloadAudio",e)}var Tt=1;function Xn(e){return o.invoke("downloadFile",e)}o.registerAPI("downloadFile",{mini:function(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.context;i===S.isDingTalk?s&&s({m:"taurus.common.downloadFile",args:e,onSuccess:function(c){o.handleBridgeResponse(c,t,r)},onFail:function(c){o.handleBridgeResponse(c,t,r)}}):s&&s.call("downloadFile",e,function(c){c.error?r(c):t(c)})},pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.downloadFile",e),o.registerContinuesEvent(n.msgId,function(t,r){t==="im.fileTask.addNewTask"&&(o.removeContinuesEvent(n.msgId),o.registerContinuesEvent(r.taskId,function(i,s){if(i==="im.fileTask.updateTask"){var c=s.doneSize,a=s.fileName,l=s.filePath,d=s.fileSize,u=s.speed;e.onProgress({doneSize:c,fileName:a,filePath:l,fileSize:d,speed:u}),s.status===Tt&&o.removeContinuesEvent(s.taskId)}}))})}}),Xn.version={pc:"1.3.5"};o.registerAPI("enablePullToRefresh",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"ui.pullToRefresh","enable",{}):c===g.IOS&&i.callHandler("ui.pullToRefresh.enable",Object.assign({},{}),function(){t()}):i&&i.call("pullRefresh",{pullRefresh:!0},function(){t()})}}),Zn.version={android:"1.3.0",ios:"1.3.0"};function Zn(){return o.invoke("enablePullToRefresh",{_apiName:"enablePullToRefresh"})}o.registerAPI("enableVpn",{mini:!0,mobile:!0}),eo.version={android:"1.1.0",ios:"1.1.0"};function eo(){return o.invoke("enableVpn")}o.registerAPI("enableWebviewBounce",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"taurus.common","bounce",{enable:!0}):c===g.IOS&&i.callHandler("taurus.common.bounce",Object.assign({},{enable:!0}),function(a){t(a)}):i&&i.call("bounce",{enable:!0},function(a){t(a)})}}),no.version={ios:"1.3.0"};function no(){return o.invoke("enableWebviewBounce",{_apiName:"enableWebviewBounce"})}o.registerAPI("exclusiveInvoke",{mini:!0,mobile:!0}),oo.version={ios:"1.9.5",android:"1.9.5"};function oo(e){return o.invoke("exclusiveInvoke",e)}o.registerAPI("faceComparison",{mobile:!0,mini:!0}),io.version={android:"2.4.0",ios:"2.4.0"};function io(e){return o.invoke("faceComparison",e)}var xe;(function(e){e.PNG="png",e.JPG="jpg"})(xe||(xe={})),o.registerAPI("faceRecognition",{mobile:!0,mini:!0}),to.version={android:"2.4.0",ios:"2.4.0"};function to(e){return o.invoke("faceRecognition",e)}o.registerAPI("getAppInstallStatus",{mini:!0,mobile:!0}),ro.version={android:"2.1.10",ios:"2.1.10"};function ro(e){return o.invoke("getAppInstallStatus",e)}o.registerAPI("getAuthCode",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"runtime.permission.requestAuthCode",e)},mobile:!0,mini:!0}),ao.version={android:"1.0.0",ios:"1.0.0",pc:"1.0.0"};function ao(e){return o.invoke("getAuthCode",e)}o.registerAPI("getConfig",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getConfig",e)}}),so.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function so(){return o.invoke("getConfig",{})}function me(){return o.getContainerType()}o.registerAPI("getDeviceId",{mobile:!0,mini:!0}),co.version={android:"2.5.0",ios:"2.5.0"};function co(){return o.invoke("getDeviceId",{})}o.registerAPI("getFromClipboard",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"util.clipboardData.getData",e)}}),lo.version={android:"2.3.1",ios:"2.3.1",pc:"2.6.10"};function lo(){return o.invoke("getFromClipboard")}o.registerAPI("getGeolocation",{mini:!0,mobile:!0}),uo.version={android:"1.2.0",ios:"1.2.0"};function uo(e){return o.invoke("getGeolocation",e)}o.registerAPI("getGeolocationStatus",{mobile:!0,mini:!0}),po.version={android:"1.6.2",ios:"1.6.2"};function po(e){return o.invoke("getGeolocationStatus",e)}o.registerAPI("getHotspotInfo",{mobile:!0,mini:!0}),fo.version={android:"1.3.5",ios:"1.3.5"};function fo(){return o.invoke("getHotspotInfo")}o.registerAPI("getLanguageSetting",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getLanguageSetting",e)}}),go.version={android:"1.4.0",ios:"1.4.0",pc:"1.4.0"};function go(){return o.invoke("getLanguageSetting")}o.registerAPI("getLoginUser",{mobile:!0,mini:!0}),mo.version={android:"1.1.0",ios:"1.1.0"};function mo(){return o.invoke("getLoginUser")}o.registerAPI("getNetworkType",{mobile:!0,mini:!0}),vo.version={android:"1.3.0",ios:"1.3.0"};function vo(){return o.invoke("getNetworkType")}o.registerAPI("getPhoneInfo",{mini:!0,mobile:!0}),ho.version={android:"1.3.5",ios:"1.3.5"};function ho(){return o.invoke("getPhoneInfo")}var Le;(function(e){e.SOCKS5="SOCKS5",e.HTTP="HTTP"})(Le||(Le={})),o.registerAPI("getProxyInfo",{pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"net.util.getProxyInfo",e)}}),Io.version={pc:"2.10.0"};function Io(){return o.invoke("getProxyInfo",{})}o.registerAPI("getStorageItem",{mobile:!0,mini:!0}),ko.version={android:"1.3.1.1",ios:"1.3.1.1"};function ko(e){return o.invoke("getStorageItem",e)}o.registerAPI("getTraceStatus",{mobile:!0}),Ao.version={android:"1.3.4",ios:"1.3.4"};function Ao(e){return o.invoke("getTraceStatus",e)}o.registerAPI("getUUID",{mobile:!0,mini:!0}),Po.version={android:"1.3.5",ios:"1.3.5"};function Po(){return o.invoke("getUUID")}var Ct=/TaurusApp\((\S*)\/(\S*)\)/;function Et(){if(window&&window.navigator){var e=window.navigator.userAgent;if(e){var n=e.match(Ct);return Promise.resolve({group:"TaurusApp",name:n[1],version:n[2]})}return Promise.reject("\u8C03\u7528\u9519\u8BEF\uFF1A\u65E0\u6CD5\u68C0\u6D4B\u5230\u5F53\u4E0B\u73AF\u5883\u7684 userAgent\uFF0C\u8BF7\u786E\u4FDD\u5728\u653F\u52A1\u9489\u9489\u5BA2\u6237\u7AEF H5 \u5BB9\u5668\u4E0B\u8C03\u7528\u3002")}}o.registerAPI("getUserAgent",{mobile:!0,mini:!0,pc:!0}),wo.version={android:"1.6.2",ios:"1.6.2",pc:"1.6.2"};function wo(){var e=o.getAppType();return e===A.PC||e===A.MOBILE?Et():e===A.MINI_APP?o.invoke("getUserAgent",{}):void 0}var Be,Me,_e;(function(e){e.off="0",e.on="1"})(Be||(Be={})),function(e){e[e.off=0]="off",e[e.on=1]="on"}(Me||(Me={})),function(e){e[e.name=1]="name",e[e.id=2]="id",e[e.custom=3]="custom"}(_e||(_e={})),o.registerAPI("getWaterMarkConfig",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWaterMarkConfig",e)},mini:!0,mobile:!0});function de(e){return o.invoke("getWaterMarkConfig",e)}var oe,bo="h5Page",Rt="meetingDetail",Ot="docPreview",Dt=[bo,Rt,Ot],B=!Z(typeof my)&&my!==null&&!Z(typeof my.alert);B&&(oe=my.getSystemInfoSync());var Fe=B?oe.platform:navigator.userAgent,Nt=B?oe.screenWidth:window.screen.width,q=(B?oe.pixelRatio:window.devicePixelRatio)||2,le=B?Promise.resolve(""):"",xt=function(){function e(t){t===void 0&&(t={}),this.options=T({texts:[""],width:50,height:50,textRotate:-10,textColor:"#000000",textFont:"PingFangSC-Regular,system-ui,sans-serif",fontStyle:"normal",opacity:90,canvas:[],fontSize:14},t),this.options.width*=this.options.fontSize/12,this.options.height*=this.options.fontSize/12,this.options.deg=this.options.textRotate*Math.PI/180,this.options.cosDeg=Math.cos(this.options.deg),this.options.absSinDeg=Math.abs(Math.sin(this.options.deg))}var n=e.prototype;return n.init=function(){var t=this,r=null,i=null;B?i=my.createCanvasContext("canvasBg"):(r=this.createCanvas(),i=r.getContext("2d")),this.calcTextSize();var s=this.options,c=s.allItemsWidth,a=s.drawItems,l=s.height,d=s.containerComp,u=Math.ceil(Nt/c),p=new Array(u).fill(a).reduce(function(b,D){return b.concat(D)},[]),v=function(){t.setCanvasStyle(i),t.drawText(i,p),i.translate(0,l),t.drawText(i,p.reverse(),!0)};if(B)return new Promise(function(b){d.setState({width:c*u,height:2*l},function(){setTimeout(function(){v(),i.draw(),b(i.toDataURL("image/png"))},0)})});r.width=c*u,r.height=2*l,r.style.display="none",v();var w=r.toDataURL("image/png");return this.destroy(),w},n.calcTextSize=function(){var t=0,r=0,i=this.options;i.drawItems=[].map.call(i.texts,function(c){var a,l,d,u;if(B){for(var p=0,v=0;v<c.length;v+=1)p+=/[\uff00-\uffff]/.test(c[v])?1:.5;a=1.1*i.fontSize*p,l=1.2*i.fontSize}else{var w=(d='<span style="font:'+i.fontSize+"px "+i.textFont+';visibility:hidden;">'+c+"</span>",(u=document.createElement("div")).innerHTML=d.trim(),u.firstChild);document.body.appendChild(w),a=w.offsetWidth,l=w.offsetHeight,document.body.removeChild(w)}return t=Math.max(t,a),i.fontHeight||(i.fontHeight=l),r+=Math.ceil(i.cosDeg*(i.width<a?a:i.width)),{txt:c,width:a,height:l}}),t>i.width&&(i.width=t);var s=t*i.absSinDeg+i.fontHeight*i.cosDeg;s>i.height&&(i.height=s),i.maxItemWidth=t,i.allItemsWidth=r},n.setCanvasStyle=function(t){var r=this.options,i=r.deg,s=r.absSinDeg,c=r.height,a=r.fontHeight,l=r.fontStyle,d=r.fontSize,u=r.textFont,p=r.textColor,v=r.opacity;t.rotate(i);var w=s*(c-a);t.translate(-w,0),t.font=l+" "+d+"px "+u,t.fillStyle=p,t.textAlign="left",t.textBaseline="bottom",t.globalAlpha=v},n.drawText=function(t,r,i){i===void 0&&(i=!1);var s=this.options,c=s.maxItemWidth,a=s.width,l=s.height,d=s.deg,u=s.cosDeg,p=s.absSinDeg;r.forEach(function(v,w){var b=u*(c-v.width)/2,D=a*u*w,J=Math.abs(D*Math.tan(d))+l;t.fillText(v.txt,D+(i?u*(a-v.width)/2:b),J+(i?p*(a-v.width)/2:0))})},n.createCanvas=function(){var t=document.createElement("canvas");return this.options.canvas.push(t),t},n.destroy=function(){this.options.canvas.forEach(function(t){t.remove(),t=null})},e}();function Lt(e,n){var t=JSON.parse(e),r=t.watermark||t;if(!r||String(r.watermarkStatus)==="0"||!Array.isArray(r.targetPages)||!r.targetPages.some(function(p){return p.name===n&&String(p.value)==="1"}))return le;var i=[];if(Array.isArray(r.contentType)){var s="";r.contentType.includes(1)&&(s+=r.userName+" "),r.contentType.includes(2)&&(s+=(r.account||"").slice(-4)),s&&i.push(s),r.contentType.includes(0)&&r.contentCustom&&i.push(r.contentCustom)}if(!i.length)return le;var c,a,l=/Android|Adr|SymbianOS|Windows\s*Phone|Mobile/.test(Fe),d=/iPhone|iPad|iPod|Mac\s*OS.*Mobile|iOS/.test(Fe),u=String(r.watermarkShowDensity)==="0";return d?u?(c=114,a=66):(c=86,a=45):l?u?(c=47*q,a=40*q):(c=25*q,a=25*q):u?(c=300,a=126):(c=194,a=106),new xt({containerComp:this,texts:i,width:c,height:a,textRotate:-10,textColor:{0:"#FF0000",1:"#000000",2:"#0000FF"}[r.fontColor]||"#000000",textFont:"PingFangSC-Regular,system-ui,sans-serif",fontStyle:String(r.fontStyle)==="0"?"normal":"bold",opacity:(120-parseInt(r.fontDiaphaneity,10))/100,fontSize:{0:12,1:16,2:28}[r.fontSize]||16}).init()}function pe(e,n){if(e===void 0&&(e={}),n===void 0&&(n=bo),!Dt.includes(n))throw new Error("\u7B2C\u4E8C\u4E2A\u53EF\u9009\u53C2\u6570\uFF0C\u4EC5\u80FD\u4E3A\u201Ch5Page\u201D\u6216\u201CmeetingDetail\u201D");try{return Lt.call(this,JSON.stringify(e),n)}catch(t){throw t}}yo.version={android:"1.1.0",ios:"1.1.0",pc:"1.1.0"};function yo(e,n){return e===void 0&&(e=""),new Promise(function(t,r){de({pageInfo:e}).then(function(i){try{var s=pe(i,n);t(s)}catch(c){r(c)}})})}var We;(function(e){e[e.ENABLE=1]="ENABLE",e[e.DISABLE=0]="DISABLE"})(We||(We={})),o.registerAPI("getWaterMarkConfigV2",{mobile:!0,mini:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWaterMarkConfigV2",e)}}),ve.version={android:"2.8.0",ios:"2.8.0",pc:"2.8.0"};function ve(e){return o.invoke("getWaterMarkConfigV2",e)}var j;(function(e){e[e.DISABLE=0]="DISABLE",e[e.ENABLE=1]="ENABLE"})(j||(j={}));var ee;(function(e){e.IMSESSIONLIST="imSessionList",e.DOCPREVIEW="docPreview",e.H5PAGEOTHER="h5PageOther",e.MEETINGDETAIL="meetingDetail",e.H5PAGEBASIC="h5PageBasic",e.SELECTIONCOMPONENT="selectionComponent",e.CONTACTLIST="contactList",e.CONTACTDETAIL="contactDetail",e.CHAT="chat",e.SECRETCHAT="secretChat",e.CAMERA="camera"})(ee||(ee={}));var He,je="",Bt={1:"normal",2:"bold",3:"italic"};(function(e){e[e.LOOSE=0]="LOOSE",e[e.NORMAL=1]="NORMAL",e[e.DENSE=2]="DENSE"})(He||(He={}));var V;(function(e){e[e.RIGHT=0]="RIGHT",e[e.LEFT=1]="LEFT"})(V||(V={}));var Mt=749,_t=326,Ft=200,Wt=16,Ve=1.3,Ht=function(){function e(t){this.options=Object.assign({texts:"",width:50,height:50,tiltAngle:-15,fontColor:"#171A1D",textFont:"PingFangSC-Regular,system-ui,sans-serif",transparency:90,canvas:[],fontSize:13,tWidth:0,tHeight:0,deg:-15},t,{width:t.leftAndRightSpacing,height:t.upAndDownSpacing}),this.options.deg=this.options.tiltAngle*Math.PI/180}var n=e.prototype;return n.init=function(){var t,r,i,s,c,a,l,d,u,p=null;return u=(p=this.createCanvas()).getContext("2d"),p.width=((t=window)===null||t===void 0||(r=t.screen)===null||r===void 0?void 0:r.width)||((i=document)===null||i===void 0||(s=i.documentElement)===null||s===void 0?void 0:s.clientWidth)||Mt,p.height=((c=window)===null||c===void 0||(a=c.screen)===null||a===void 0?void 0:a.height)||((l=document)===null||l===void 0||(d=l.documentElement)===null||d===void 0?void 0:d.clientHeight)||_t,this.calcTextSize(),this.setCanvasStyle(u),this.drawText(u),p.toDataURL("image/png")},n.calcTextSize=function(){var t,r,i=this.options,s="exclusiveDingTalkWaterMarkCustomClass"+100*Math.random(),c=(t='<span id="'+s+'" style="font:'+i.fontSize+"px "+i.textFont+';visibility:hidden;display:inline-block;">'+i.texts+"</span>",(r=document.createElement("div")).innerHTML=t.trim(),r.firstChild);document.body.appendChild(c);var a=document.getElementById(s),l=Math.max(a.clientWidth,i.texts.length*i.fontSize*Ve)||Ft,d=Math.min(a.clientHeight,i.fontSize*Ve)||Wt;i.tWidth=l,i.tHeight=d,document.body.removeChild(c)},n.setCanvasStyle=function(t){var r=this.options,i=r.deg,s=r.fontStyle,c=r.fontSize,a=r.textFont,l=r.fontColor,d=r.transparency;t.rotate(i),t.font=s+" "+c+"px "+a,t.fillStyle=l,t.textAlign="left",t.textBaseline="bottom",t.globalAlpha=(100-d)/100},n.fillContent=function(t,r){for(var i=this.options,s=i.width,c=i.height,a=i.texts,l=i.tWidth,d=i.tHeight,u=0;u<40;u++)for(var p=u*c+d,v=0;v<40;v++){var w=void 0;w=u%2==0?t===V.RIGHT?(l+s)*v:(l+s)*v+l+s:t===V.RIGHT?(l+s)*v+s:(l+s)*v+l,r.fillText(a,t===V.RIGHT?w:-w,p)}},n.drawText=function(t){this.fillContent(V.RIGHT,t),this.fillContent(V.LEFT,t)},n.createCanvas=function(){var t=document.createElement("canvas");return this.options.canvas.push(t),t},e}();function jt(e,n){var t,r,i,s,c,a,l,d;n===void 0&&(n=ee.H5PAGEOTHER);var u=null;try{u=JSON.parse(e)}catch(D){u={}}var p=(t=u)===null||t===void 0||(r=t.watermark)===null||r===void 0?void 0:r.ruleContent,v=(i=u)===null||i===void 0?void 0:i.userInfo;if((p==null?void 0:p.enable)===j.DISABLE||(p==null?void 0:p.enable)===j.ENABLE&&(p==null||(s=p.effectPage)===null||s===void 0?void 0:s[n])!==j.ENABLE)return je;var w,b="";return(p==null||(c=p.watermarkContent)===null||c===void 0?void 0:c.enableUsername)===j.ENABLE&&(b+=v==null?void 0:v.userName),(p==null||(a=p.watermarkContent)===null||a===void 0?void 0:a.enablePhoneNumber)===j.ENABLE&&(b+=" "+(v==null?void 0:v.lastFourPhoneNo)),p!=null&&(l=p.watermarkContent)!==null&&l!==void 0&&l.customCopy&&(b+=" "+(p==null||(w=p.watermarkContent)===null||w===void 0?void 0:w.customCopy)),b.length?new Ht(Object.assign({texts:b,textFont:"PingFangSC-Regular,system-ui,sans-serif"},p==null?void 0:p.watermarkStyle,{fontStyle:Bt[p==null||(d=p.watermarkStyle)===null||d===void 0?void 0:d.fontStyle]})).init():je}function Vt(e,n){n===void 0&&(n=ee.H5PAGEOTHER);try{return jt.call(null,JSON.stringify(e),n)}catch(t){return""}}function zt(e){return new Promise(function(n,t){ne().then(function(r){var i=r.version;ge(i,"2.8.0")!==-1?ve({pageInfo:e}).then(function(s){try{var c=Vt(s,e);n(c)}catch(a){t(a)}}):de({pageInfo:e}).then(function(s){try{var c=pe(s,e);n(c)}catch(a){t(a)}})}).catch(function(){de({pageInfo:e}).then(function(r){try{var i=pe(r,e);n(i)}catch(s){t(s)}})})})}o.registerAPI("getWifiStatus",{mobile:!0,mini:!0}),So.version={android:"1.3.5",ios:"1.3.5"};function So(){return o.invoke("getWifiStatus")}o.registerAPI("getWorkbenchContext",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"getWorkbenchContext",e)}}),To.version={android:"2.1.10",ios:"2.1.10"};function To(){return o.invoke("getWorkbenchContext")}o.registerAPI("h5PageBack",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(a){o.handleBridgeResponse(a,t,r)},function(a){o.handleBridgeResponse(a,t,r)},"biz.navigation","goBack",e):c===g.IOS&&i.callHandler("biz.navigation.goBack",Object.assign({},e),function(a){t(a)}):i&&i.call("h5PageBack",{_apiName:"goBack"},function(){t()})}}),Co.version={android:"1.3.0",ios:"1.3.9"};function Co(){return o.invoke("h5PageBack",{_apiName:"goBack"})}function ze(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"device.notification.hidePreloader",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"device.notification","hidePreloader",e):a===g.IOS&&i.callHandler("device.notification.hidePreloader",Object.assign({},e),function(u){t(u)})}else i&&i.call("hideLoading",e,function(){t()})}o.registerAPI("hideLoading",{mini:ze,mobile:ze}),Eo.version={android:"1.3.2",ios:"1.3.2"};function Eo(){return o.invoke("hideLoading")}function Ut(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=(n.appType,n.platformType);if(s){var a={show:!1,control:!0,text:""};c===g.ANDROID?i&&i(function(l){o.handleBridgeResponse(l,t,r)},function(l){o.handleBridgeResponse(l,t,r)},"biz.navigation","setRight",a):c===g.IOS&&i.callHandler("biz.navigation.setRight",Object.assign({},a),function(l){t(l)})}else i&&i.call("hideOptionMenu",e,function(){t()})}o.registerAPI("hideOptionMenu",{mobile:Ut}),Ro.version={android:"1.1.0",ios:"1.1.0"};function Ro(){return o.invoke("hideOptionMenu")}function Ue(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.appType,a=n.context,l=Object.assign(e,{hidden:!0});if(i){var d=function(){e.onSuccess&&e.onSuccess(),t()},u=function(){e.onFail&&e.onFail(),r()};c===A.MINI_APP?a&&a({m:"biz.navigation.hideBar",args:l,onSuccess:d,onFail:u}):s===g.ANDROID?a&&a(d,u,"biz.navigation","hideBar",l):s===g.IOS&&a.callHandler("biz.navigation.hideBar",Object.assign({},l),function(){t()})}else a&&a.call("hideTitlebar",l,function(){t()})}o.registerAPI("hideTitlebar",{mini:Ue,mobile:Ue}),Oo.version={android:"2.1.0",ios:"2.1.0"};function Oo(){return o.invoke("hideTitlebar")}o.registerAPI("isDownloadFileExist",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.isLocalFileExist",e)}}),Do.version={pc:"1.3.5"};function Do(e){return o.invoke("isDownloadFileExist",e)}function Ge(e,n){e===void 0&&(e={});var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.conference.joinScheduleConf",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.conference","joinScheduleConf",e):a===g.IOS&&i.callHandler("biz.conference.joinScheduleConf",Object.assign({},e),function(u){t(u)})}else i&&i.call("joinScheduleConf",e,function(){t()})}o.registerAPI("joinScheduleConf",{mini:Ge,mobile:Ge,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.joinScheduleConf",T({},e))}}),No.version={android:"3.7.5",ios:"3.7.5",pc:"3.7.5"};function No(e){return o.invoke("joinScheduleConf",e)}function Je(e,n){e===void 0&&(e={});var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.conference.joinVideoConf",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.conference","joinVideoConf",e):a===g.IOS&&i.callHandler("biz.conference.joinVideoConf",Object.assign({},e),function(u){t(u)})}else i&&i.call("joinVideoConf",e,function(){t()})}o.registerAPI("joinVideoConf",{mini:Je,mobile:Je,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.conference.joinVideoConf",T({},e))}}),xo.version={android:"3.7.5",ios:"3.7.5",pc:"3.7.5"};function xo(e){return o.invoke("joinVideoConf",e)}o.registerAPI("locateOnMap",{mobile:!0,mini:!0}),Lo.version={android:"1.3.0",ios:"1.3.0"};function Lo(e){return o.invoke("locateOnMap",e)}function Gt(e,n){return o.registerEvent(e,n)}o.registerAPI("onAudioPlayEnd",{mini:!0,mobile:!0}),Bo.version={android:"1.6.2",ios:"1.6.2"};function Bo(){return o.invoke("onAudioPlayEnd")}o.registerAPI("onRecordAudioEnd",{mini:!0,mobile:!0}),Mo.version={android:"1.3.0",ios:"1.3.0"};function Mo(e){return o.invoke("onRecordAudioEnd",e)}o.registerAPI("openApiInvoker",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"openApiInvoker",e)}}),_o.version={ios:"3.0.1",android:"3.0.1",pc:"3.0.1"};function _o(e){return o.invoke("openApiInvoker",e)}o.registerAPI("openApp",{mini:!0,mobile:!0}),Fo.version={android:"1.3.2",ios:"1.3.2"};function Fo(e){return o.invoke("openApp",e)}o.registerAPI("openBrowser",{mini:!0,mobile:!0}),Wo.version={android:"1.2.3"};function Wo(e){return o.invoke("openBrowser",e)}o.registerAPI("openChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"internal.chat.toConversation",{cid:e.chatId})}}),Ho.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Ho(e){return o.invoke("openChat",e)}o.registerAPI("openDownloadFile",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openLocalFile",e)}}),jo.version={pc:"1.3.5"};function jo(e){return o.invoke("openDownloadFile",e)}function Ke(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;ne().then(function(l){var d=l.version,u=ge(d,"1.6.2")!==-1;if(s){var p=function(w){o.handleBridgeResponse(w,t,r)},v=function(w){o.handleBridgeResponse(w,t,r)};c===A.MINI_APP?i&&i({m:u?"taurus.common.openLink":"taurus.common.pushWindow",args:e,onSuccess:p,onFail:v}):a===g.ANDROID?i&&i(p,v,"taurus.common",u?"openLink":"pushWindow",e):a===g.IOS&&i.callHandler(u?"taurus.common.openLink":"taurus.common.pushWindow",Object.assign({},e),function(w){o.handleBridgeResponse(w,t,r)})}else i&&i.call(u?"openLink":"pushWindow",e,function(w){o.handleBridgeResponse(w,t,r)})})}o.registerAPI("openLink",{mini:Ke,mobile:Ke,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openLink",e)}}),Vo.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Vo(e){return o.invoke("openLink",e)}o.registerAPI("openPage",{mini:!0,mobile:!0}),zo.version={android:"1.1.0",ios:"1.1.0"};function zo(e){return o.invoke("openPage",e)}o.registerAPI("dgOpenApp",{mobile:!0,mini:!0}),Uo.version={android:"1.3.1.1",ios:"1.3.1.1"};function Uo(e){return o.invoke("dgOpenApp",T({},e,{_apiName:"openSchemeUrl"}))}o.registerAPI("openSlidePanel",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openSlidePanel",e)}}),Go.version={pc:"1.3.5"};function Go(e){return o.invoke("openSlidePanel",e)}o.registerAPI("openWatermarkCamera",{mobile:!0,mini:!0}),Jo.version={android:"1.3.7",ios:"1.3.7"};function Jo(){return o.invoke("openWatermarkCamera")}o.registerAPI("pauseAudio",{mini:!0,mobile:!0}),Ko.version={android:"1.3.0",ios:"1.3.0"};function Ko(e){return o.invoke("pauseAudio",e)}o.registerAPI("pickChat",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.chat.pickConversation",e)}}),Yo.version={android:"1.2.0",ios:"1.2.0",pc:"2.9.0"};function Yo(e){return o.invoke("pickChat",e)}o.registerAPI("pickChatByCorpId",{mini:!0,mobile:!0});function Jt(e){return o.invoke("pickChatByCorpId",e)}o.registerAPI("pickGroupChat",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.contact.pickGroupChat",e)}}),$o.version={pc:"2.10.30"};function $o(e){return o.invoke("pickGroupChat",e)}function Ye(e,n){e===void 0&&(e={});var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:a===g.ANDROID?"taurus.common.pickGroupConversation":"internal.chat.pickGroupConversation",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"taurus.common","pickGroupConversation",e):a===g.IOS&&i.callHandler("internal.chat.pickGroupConversation",Object.assign({},e),function(u){t(u)})}else i&&i.call("pickGroupConversation",e,function(){t()})}o.registerAPI("pickGroupConversation",{mini:Ye,mobile:Ye}),Qo.version={android:"2.8.0",ios:"2.8.0"};function Qo(e){return e===void 0&&(e={owner:!1}),o.invoke("pickGroupConversation",e)}o.registerAPI("playAudio",{mini:!0,mobile:!0}),qo.version={android:"1.3.0",ios:"1.3.0"};function qo(e){return o.invoke("playAudio",e)}o.registerAPI("previewDoc",{mini:!0,mobile:!0}),Xo.version={android:"1.1.0",ios:"1.1.0"};function Xo(e){return o.invoke("previewDoc",e)}o.registerAPI("previewImage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.previewImage",e)}}),Zo.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Zo(e){return o.invoke("previewImage",e)}o.registerAPI("printFile",{mini:!0,mobile:!0}),ei.version={android:"2.2.10"};function ei(e){return o.invoke("printFile",e)}o.registerAPI("printNativeLog",{mini:!0,mobile:!0}),ni.version={android:"1.9.4",ios:"1.9.4"};function ni(e){return o.invoke("printNativeLog",e)}function $e(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType,l={message:e.message,title:e.title,okButton:e.buttonLabels[0],cancelButton:e.buttonLabels[1]};if(s){var d=function(p){o.handleBridgeResponse(p,t,r)},u=function(p){o.handleBridgeResponse(p,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.prompt",args:l,onSuccess:d,onFail:u}):a===g.ANDROID?i&&i(d,u,"taurus.common","prompt",l):a===g.IOS&&i.callHandler("taurus.common.prompt",Object.assign({},l),function(p){o.handleBridgeResponse(p,t,r)})}else i&&i.call("prompt",l,function(p){var v={errorCode:C.SUCCESS,result:{buttonIndex:p.ok?0:1,value:p.inputValue}};o.handleBridgeResponse(v,t,r)})}o.registerAPI("prompt",{mini:$e,mobile:$e,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.prompt",e)}}),oi.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function oi(e){return o.invoke("prompt",e)}o.registerAPI("pushWindow",{mini:!0,mobile:!0}),ii.version={android:"2.9.7",ios:"2.9.7"};function ii(e){return o.invoke("pushWindow",e)}o.registerAPI("readImageToBase64",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"readImageToBase64",e)}}),ti.version={ios:"2.1.0",android:"2.1.0",pc:"2.1.0"};function ti(e){return o.invoke("readImageToBase64",e)}function Kt(e){typeof e=="function"?o.onReady(e):console.error("dd.ready's param must be function! ")}var Qe;(function(e){e[e.ADJUST_BY_NET=0]="ADJUST_BY_NET",e[e.LOW_QUALITY=1]="LOW_QUALITY",e[e.MID_QUALITY=2]="MID_QUALITY",e[e.HIGH_QUALITY=3]="HIGH_QUALITY",e[e.NOT_COMPRESSED=4]="NOT_COMPRESSED",e[e.CUSTOM=5]="CUSTOM"})(Qe||(Qe={})),o.registerAPI("reduceImageSize",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"reduceImageSize",e)}}),ri.version={ios:"2.1.0",android:"2.1.0",pc:"2.1.0"};function ri(e){return o.invoke("reduceImageSize",e)}o.registerAPI("removeStorageItem",{mobile:!0,mini:!0}),ai.version={android:"1.3.1.1",ios:"1.3.1.1"};function ai(e){return o.invoke("removeStorageItem",e)}function qe(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.appType,a=n.context;if(i){var l=function(){e.onSuccess&&e.onSuccess(),t()},d=function(){e.onFail&&e.onFail(),r()};c===A.MINI_APP?a&&a({m:"biz.navigation.replace",args:e,onSuccess:l,onFail:d}):s===g.ANDROID?a&&a(l,d,"biz.navigation","replace",e):s===g.IOS&&a.callHandler("taurus.common.replacePage",Object.assign({},e),function(){t()})}else a&&a.call("replacePage",e,function(){t()})}o.registerAPI("replacePage",{mini:qe,mobile:qe}),si.version={android:"1.3.2",ios:"1.3.2"};function si(e){return o.invoke("replacePage",e)}o.registerAPI("resetView",{mini:!0,mobile:!0}),ci.version={android:"1.3.0",ios:"1.3.0"};function ci(){return o.invoke("resetView")}o.registerAPI("resumeAudio",{mini:!0,mobile:!0}),li.version={android:"1.3.0",ios:"1.3.0"};function li(e){return o.invoke("resumeAudio",e)}o.registerAPI("rotateView",{mini:!0,mobile:!0}),ui.version={android:"1.3.0",ios:"1.3.0"};function ui(e){return o.invoke("rotateView",e)}o.registerAPI("scan",{mini:!0,mobile:!0}),di.version={android:"1.3.2",ios:"1.3.2"};function di(e){return o.invoke("scan",e)}o.registerAPI("searchOnMap",{mini:!0,mobile:!0}),pi.version={android:"1.3.2",ios:"1.3.2"};function pi(e){return o.invoke("searchOnMap",e)}function Yt(e){return T({},e,{actionId:"",actionType:"0"})}function Xe(e,n){var t=n.resolve,r=n.context;r&&r.call("sendOutData",Yt(e),function(){t()})}o.registerAPI("cardSendOutData",{mini:Xe,mobile:Xe}),fi.version={android:"2.5.0",ios:"2.5.0"};function fi(e){return o.invoke("cardSendOutData",e)}var Ze;(function(e){e.DEFAULT="0",e.DISABLEALL="1",e.ENABLEALL="2"})(Ze||(Ze={})),o.registerAPI("setLocalScreenShotPolicy",{mini:!0,mobile:!0}),gi.version={android:"2.12.12",ios:"2.12.12"};function gi(e){return o.invoke("setLocalScreenShotPolicy",e)}function $t(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.context;i?s===g.ANDROID?c&&c(function(a){e.onSuccess&&e.onSuccess(),t()},function(a){r()},"biz.navigation","setIcon",e):s===g.IOS&&c.callHandler("biz.navigation.setIcon",Object.assign({},e),function(a){t()}):c&&c.call("setNavIcon",e,function(a){t()})}o.registerAPI("setNavIcon",{mobile:$t}),mi.version={android:"1.3.0",ios:"1.3.0"};function mi(e){return o.invoke("setNavIcon",e)}function en(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType,l=n.watch;if(s){var d=function(p){e.onSuccess&&e.onSuccess(),o.handleBridgeResponse(p,t,r)},u=function(p){o.handleBridgeResponse(p,t,r)};c===A.MINI_APP?i&&i({m:"biz.navigation.setLeft",args:e,onSuccess:d,onFail:u}):a===g.ANDROID?i&&i(d,u,"biz.navigation","setLeft",e):a===g.IOS&&i.callHandler("biz.navigation.setLeft",Object.assign({},e),function(p){!l&&t(p)})}else i&&i.call("setNavLeftText",e,function(){t()})}o.registerAPI("setNavLeftText",{mini:en,mobile:en,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.setLeft",e)}}),vi.version={ios:"1.2.0",pc:"1.2.0"};function vi(e){var n=me();return o.invoke("setNavLeftText",n===S.isDingTalk?Object.assign({watch:!0,show:!0,control:!1,showIcon:!0,text:""},e):e,{dingTalkAPIName:n===S.isDingTalk?"biz.navigation.setLeft":null})}o.registerAPI("setOptionMenu",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;if(s){var a,l,d={text:e.title,show:e.show===void 0||e.show,control:e.control===void 0||e.control};if(c===g.ANDROID)i&&i(function(v){e.onSuccess&&e.onSuccess(v),t(v)},function v(w){e.onFail&&e.onFail(w),r(v)},"biz.navigation",(e==null||(a=e.menus)===null||a===void 0?void 0:a.length)>1?"setMenu":"setRight",(e==null||(l=e.menus)===null||l===void 0?void 0:l.length)>1?e:d);else if(c===g.IOS){var u,p;i.callHandler((e==null||(u=e.menus)===null||u===void 0?void 0:u.length)>1?"biz.navigation.setMenu":"biz.navigation.setRight",Object.assign({},(e==null||(p=e.menus)===null||p===void 0?void 0:p.length)>1?e:d),function(){t()})}}else i&&i.call("setOptionMenu",e,function(){t()})}}),hi.version={android:"1.1.0",ios:"1.1.0"};function hi(e){var n=me();return o.invoke("setOptionMenu",n===S.isDingTalk?Object.assign({watch:!0,show:!0,control:!1,showIcon:!0,text:""},e):e,n===S.isDingTalk?{dingTalkAPIName:"biz.navigation.setRight"}:null)}o.registerAPI("setProxyInfo",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"net.util.setProxyInfo",e)}}),Ii.version={pc:"2.10.0"};function Ii(e){return o.invoke("setProxyInfo",e)}o.registerAPI("setStorageItem",{mobile:!0,mini:!0}),ki.version={android:"1.3.1.1",ios:"1.3.1.1"};function ki(e){return o.invoke("setStorageItem",e)}var nn;function on(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"biz.navigation.setTitle",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"biz.navigation","setTitle",e):a===g.IOS&&i.callHandler("biz.navigation.setTitle",Object.assign({},e),function(u){o.handleBridgeResponse(u,t,r)})}else i&&i.call("setTitle",e,function(){t()})}(function(e){e.TRUE="true",e.FALSE="false"})(nn||(nn={})),o.registerAPI("setTitle",{mini:on,mobile:on,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.navigation.setTitle",e)}}),Ai.version={android:"1.2.0",ios:"1.2.0",pc:"1.2.0"};function Ai(e){return o.invoke("setTitle",e)}o.registerAPI("shareFileToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"shareFileToMessage",e)}}),Pi.version={android:"1.8.2",ios:"1.8.2",pc:"1.8.2"};function Pi(e){return o.invoke("shareFileToMessage",e)}o.registerAPI("shareImageToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"shareImageToMessage",e)}}),wi.version={android:"1.8.2",ios:"1.8.2",pc:"1.8.2"};function wi(e){return o.invoke("shareImageToMessage",e)}o.registerAPI("shareToMessage",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.share",e)}}),bi.version={android:"1.3.5",ios:"1.3.5",pc:"1.3.5"};function bi(e){return o.invoke("shareToMessage",e)}o.registerAPI("shootVideo",{mini:!0,mobile:!0}),yi.version={android:"1.3.5",ios:"1.3.5"};function yi(){return o.invoke("shootVideo")}o.registerAPI("showActionSheet",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.actionSheet",e)}}),Si.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.2"};function Si(e){return o.invoke("showActionSheet",e)}o.registerAPI("showCallMenu",{mini:!0,mobile:!0}),Ti.version={android:"1.3.9",ios:"1.3.9"};function Ti(e){return o.invoke("showCallMenu",e)}o.registerAPI("showDatePicker",{mobile:!0,mini:!0}),Ci.version={android:"1.3.0",ios:"1.3.0"};function Ci(e){return o.invoke("showDatePicker",e)}o.registerAPI("showDateTimePicker",{mini:!0,mobile:!0}),Ei.version={android:"1.3.10",ios:"1.3.10"};function Ei(e){return o.invoke("showDateTimePicker",e)}o.registerAPI("showExtendModal",{mini:!0,mobile:!0}),Ri.version={android:"1.3.5",ios:"1.3.5"};function Ri(e){return o.invoke("showExtendModal",e)}o.registerAPI("showHomeBottomTab",{mobile:!0}),Oi.version={android:"1.3.0",ios:"1.3.0"};function Oi(e){return o.invoke("showHomeBottomTab",e)}function tn(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType;if(s){var l=function(u){o.handleBridgeResponse(u,t,r)},d=function(u){o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?i&&i({m:"device.notification.showPreloader",args:e,onSuccess:l,onFail:d}):a===g.ANDROID?i&&i(l,d,"device.notification","showPreloader",e):a===g.IOS&&i.callHandler("device.notification.showPreloader",Object.assign({},e),function(u){t(u)})}else i&&i.call("showLoading",e,function(){t()})}o.registerAPI("showLoading",{mini:tn,mobile:tn}),Di.version={android:"1.3.2",ios:"1.3.2"};function Di(e){return o.invoke("showLoading",e)}o.registerAPI("showModal",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.openModal",e)}}),Ni.version={android:"1.3.5",ios:"1.3.5",pc:"1.3.5"};function Ni(e){return o.invoke("showModal",e)}o.registerAPI("showMultiSelect",{mini:!0,mobile:!0}),xi.version={android:"1.3.10",ios:"1.3.10"};function xi(e){return o.invoke("showMultiSelect",e)}o.registerAPI("showOnMap",{mini:!0,mobile:!0}),Li.version={android:"1.3.2",ios:"1.3.2"};function Li(e){return o.invoke("showOnMap",e)}o.registerAPI("showOptionMenu",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.platformType;n.containerType?s===g.ANDROID?i&&i(function(){t()},function(){r()},"taurus.common","showOptionMenu",e):s===g.IOS&&i.callHandler("taurus.common.showOptionMenu",Object.assign({},e),function(){t()}):i&&i.call("showOptionMenu",e,function(){t()})}}),Bi.version={android:"1.1.0",ios:"1.1.0"};function Bi(){return o.invoke("showOptionMenu")}o.registerAPI("showPlainInputUponKeyboard",{mobile:!0,mini:!0}),Mi.version={android:"1.3.0",ios:"1.3.0"};function Mi(e){return o.invoke("showPlainInputUponKeyboard",e)}o.registerAPI("showQuickCallMenu",{mini:!0,mobile:!0}),_i.version={android:"1.6.2",ios:"1.6.2"};function _i(e){return o.invoke("showQuickCallMenu",e)}o.registerAPI("showSelect",{mini:!0,mobile:!0}),Fi.version={android:"1.3.2",ios:"1.3.2"};function Fi(e){return o.invoke("showSelect",e)}o.registerAPI("showSignature",{mobile:!0}),Wi.version={android:"1.3.4"};function Wi(e){return o.invoke("showSignature",e)}o.registerAPI("showSocialShare",{mini:!0,mobile:!0}),Hi.version={android:"1.2.0.10",ios:"1.2.0.10"};function Hi(e){return o.invoke("showSocialShare",e)}o.registerAPI("showTimePicker",{mobile:!0,mini:!0}),ji.version={android:"1.3.0",ios:"1.3.0"};function ji(e){return o.invoke("showTimePicker",e)}function rn(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.appType,a=n.context,l=Object.assign(e,{hidden:!1});if(i){var d=function(){e.onSuccess&&e.onSuccess(),t()},u=function(){e.onFail&&e.onFail(),r()};c===A.MINI_APP?a&&a({m:"biz.navigation.hideBar",args:l,onSuccess:d,onFail:u}):s===g.ANDROID?a&&a(d,u,"biz.navigation","hideBar",l):s===g.IOS&&a.callHandler("biz.navigation.hideBar",Object.assign({},l),function(){t()})}else a&&a.call("showTitlebar",l,function(){t()})}o.registerAPI("showTitlebar",{mini:rn,mobile:rn}),Vi.version={android:"2.1.0",ios:"2.1.0"};function Vi(){return o.invoke("showTitlebar")}o.registerAPI("startFaceRecognition",{mini:!0,mobile:!0}),zi.version={android:"1.8.2",ios:"1.8.2"};function zi(e){return o.invoke("startFaceRecognition",e)}function an(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.platformType,c=n.containerType,a=n.appType,l=o.registerEvent(G.UPDATE_LOCATION,function(p){var v=p.data;v.errorCode!==C.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result)});if(c){var d=function(p){o.registerContinuesEvent(e.sceneId,l),o.handleBridgeResponse(p,t,r)},u=function(p){o.registerContinuesEvent(e.sceneId,l),o.handleBridgeResponse(p,t,r)};a===A.MINI_APP?(console.log("taurus.common.startGeolocation",e),i&&i({m:"taurus.common.startGeolocation",args:e,onSuccess:d,onFail:u})):s===g.ANDROID?i&&i(d,u,"taurus.common","startGeolocation",e):s===g.IOS&&i.callHandler("taurus.common.startGeolocation",Object.assign({},e),function(p){o.registerContinuesEvent(e.sceneId,l),o.handleBridgeResponse(p,t,r)})}else i&&i.call("startGeolocation",e,function(p){o.registerContinuesEvent(e.sceneId,l),o.handleBridgeResponse(p,t,r)})}o.registerAPI("startGeolocation",{mobile:an,mini:an}),Ui.version={android:"1.3.2",ios:"1.3.2"};function Ui(e){return o.invoke("startGeolocation",e)}function sn(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.appType,a=n.platformType,l=o.registerEvent(G.UPDATE_NETWORK_STATUS,function(p){var v=p.data;v.errorCode!==C.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result)});if(s){var d=function(p){o.registerContinuesEvent(p.result.requestId,l),o.handleBridgeResponse(p,t,r)},u=function(p){o.registerContinuesEvent(p.result.requestId,l),o.handleBridgeResponse(p,t,r)};c===A.MINI_APP?i&&i({m:"taurus.common.startListenNetworkStatus",args:e,onSuccess:d,onFail:u}):a===g.ANDROID?i&&i(d,u,"taurus.common","startListenNetworkStatus",e):a===g.IOS&&i.callHandler("taurus.common.startListenNetworkStatus",Object.assign({},e),function(p){o.registerContinuesEvent(p.result.requestId,l),o.handleBridgeResponse(p,t,r)})}else i&&i.call("startListenNetworkStatus",e,function(p){o.registerContinuesEvent(p.result.requestId,l),o.handleBridgeResponse(p,t,r)})}o.registerAPI("startListenNetworkStatus",{mobile:sn,mini:sn}),Gi.version={android:"1.3.1.1",ios:"1.3.1.1"};function Gi(e){return o.invoke("startListenNetworkStatus",e)}o.registerAPI("startRecordAudio",{mini:!0,mobile:!0}),Ji.version={android:"1.3.0",ios:"1.3.0"};function Ji(e){return o.invoke("startRecordAudio",e)}function Qt(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a=n.appType,l=o.registerEvent(G.UPDATE_TRACE,function(p){var v=p.data;v.errorCode&&v.errorCode!==C.SUCCESS?e.onFail&&e.onFail(v):e.onSuccess&&e.onSuccess(v.result||v)});if(s){var d=function(p){o.registerContinuesEvent(e.traceId,l),o.handleBridgeResponse(p,t,r)},u=function(p){o.registerContinuesEvent(e.traceId,l),o.handleBridgeResponse(p,t,r)};a===A.MINI_APP?i&&i({m:"taurus.common.startTraceReport",args:e,onSuccess:d,onFail:u}):c===g.ANDROID?i&&i(d,u,"taurus.common","startTraceReport",e):c===g.IOS&&i.callHandler("taurus.common.startTraceReport",Object.assign({},e),function(p){o.registerContinuesEvent(e.traceId,l),o.handleBridgeResponse(p,t,r)})}else i&&i.call("startTraceReport",e,function(p){o.registerContinuesEvent(e.traceId,l),o.handleBridgeResponse(p,t,r)})}o.registerAPI("startTraceReport",{mobile:Qt,mini:!0}),Ki.version={android:"1.3.4",ios:"1.3.4"};function Ki(e){return o.invoke("startTraceReport",e)}o.registerAPI("startVPNApp",{mini:!0,mobile:!0}),Yi.version={android:"1.6.0",ios:"1.6.0"};function Yi(e){return o.invoke("startVPNApp",e)}function qt(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a=o.registerEvent(G.ON_SHAKE,function(){e.onSuccess&&e.onSuccess()});s?c===g.ANDROID?i&&i(function(l){e.onSuccess&&e.onSuccess(),t()},function(l){r()},"taurus.common","startWatchShake",e):c===g.IOS&&i.callHandler("taurus.common.startWatchShake",Object.assign({},e),function(l){t()}):i&&i.call("startWatchShake",e,function(l){o.registerContinuesEvent("shake",a),o.handleBridgeResponse(l,t,r)})}o.registerAPI("startWatchShake",{mobile:qt}),$i.version={android:"1.6.2",ios:"1.6.2"};function $i(e){return o.invoke("startWatchShake",e)}o.registerAPI("stopAudio",{mini:!0,mobile:!0}),Qi.version={android:"1.3.0",ios:"1.3.0"};function Qi(e){return o.invoke("stopAudio",e)}function cn(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.appType,a=n.context;if(i){var l=function(u){o.removeContinuesEvent(e.sceneId),o.handleBridgeResponse(u,t,r)},d=function(u){o.removeContinuesEvent(e.sceneId),o.handleBridgeResponse(u,t,r)};c===A.MINI_APP?a&&a({m:"taurus.common.stopGeolocation",args:e,onSuccess:l,onFail:d}):s===g.ANDROID?a&&a(l,d,"taurus.common","stopGeolocation",e):s===g.IOS&&a.callHandler("taurus.common.stopGeolocation",Object.assign({},e),function(u){o.removeContinuesEvent(e.sceneId),o.handleBridgeResponse(u,t,r)})}else a&&a.call("stopGeolocation",e,function(u){o.removeContinuesEvent(e.sceneId),o.handleBridgeResponse(u,t,r)})}o.registerAPI("stopGeolocation",{mobile:cn,mini:cn}),qi.version={android:"1.3.2",ios:"1.3.2"};function qi(e){return o.invoke("stopGeolocation",e)}function ln(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.appType,c=n.platformType,a=n.context;if(i){var l=function(u){o.removeContinuesEvent(e.requestId),o.handleBridgeResponse(u,t,r)},d=function(u){o.removeContinuesEvent(e.requestId),o.handleBridgeResponse(u,t,r)};s===A.MINI_APP?a&&a({m:"taurus.common.stopListenNetworkStatus",args:e,onSuccess:l,onFail:d}):c===g.ANDROID?a&&a(l,d,"taurus.common","stopListenNetworkStatus",e):c===g.IOS&&a.callHandler("taurus.common.stopListenNetworkStatus",Object.assign({},e),function(u){o.removeContinuesEvent(e.requestId),o.handleBridgeResponse(u,t,r)})}else a&&a.call("stopListenNetworkStatus",e,function(u){o.removeContinuesEvent(e.requestId),o.handleBridgeResponse(u,t,r)})}o.registerAPI("stopListenNetworkStatus",{mini:ln,mobile:ln}),Xi.version={android:"1.3.1.1",ios:"1.3.1.1"};function Xi(e){return o.invoke("stopListenNetworkStatus",e)}o.registerAPI("stopPullToRefresh",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType;s?c===g.ANDROID?i&&i(function(){t()},function(){r()},"ui.pullToRefresh","stop",e):c===g.IOS&&i.callHandler("ui.pullToRefresh.stop",Object.assign({},e),function(){t()}):i&&i.call("restorePullToRefresh",e,function(){t()})}}),Zi.version={android:"1.3.0",ios:"1.3.0"};function Zi(){return o.invoke("stopPullToRefresh",{_apiName:"stopPullToRefresh"})}o.registerAPI("stopRecordAudio",{mini:!0,mobile:!0}),et.version={android:"1.3.0",ios:"1.3.0"};function et(e){return o.invoke("stopRecordAudio",e)}function Xt(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.context;i?s===g.ANDROID?c&&c(function(a){o.removeContinuesEvent(e.traceId),o.handleBridgeResponse(a,t,r)},function(a){o.removeContinuesEvent(e.traceId),o.handleBridgeResponse(a,t,r)},"taurus.common","stopTraceReport",e):s===g.IOS&&c.callHandler("taurus.common.stopTraceReport",Object.assign({},e),function(a){o.removeContinuesEvent(e.traceId),o.handleBridgeResponse(a,t,r)}):c&&c.call("stopTraceReport",e,function(a){o.removeContinuesEvent(e.traceId),o.handleBridgeResponse(a,t,r)})}o.registerAPI("stopTraceReport",{mobile:Xt}),nt.version={android:"1.3.4",ios:"1.3.4"};function nt(e){return o.invoke("stopTraceReport",e)}o.registerAPI("stopVPNApp",{mini:!0,mobile:!0}),ot.version={android:"1.6.0",ios:"1.6.0"};function ot(e){return o.invoke("stopVPNApp",e)}function Zt(e,n){var t=n.resolve,r=n.reject,i=n.containerType,s=n.platformType,c=n.context;i?s===g.ANDROID?c&&c(function(a){e.onSuccess&&e.onSuccess(),t()},function(a){r()},"taurus.common","stopWatchShake",e):s===g.IOS&&c.callHandler("taurus.common.stopWatchShake",Object.assign({},e),function(a){t()}):c&&c.call("stopWatchShake",e,function(a){o.removeContinuesEvent("shake"),o.handleBridgeResponse(a,t,r)})}o.registerAPI("stopWatchShake",{mobile:Zt}),it.version={android:"1.6.2",ios:"1.6.2"};function it(){return o.invoke("stopWatchShake")}o.registerAPI("subscribe",{mobile:function(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a=!1;s?c===g.ANDROID?i&&i(function(l){a?(e.onSuccess||e.onFail)&&(l.errorCode!=="0"?e.onFail&&e.onFail(l):e.onSuccess&&e.onSuccess(l.result)):(a=!0,o.handleBridgeResponse(l,t,r))},function(l){a?e.onFail&&e.onFail(l):(a=!0,o.handleBridgeResponse(l,t,r))},"taurus.common","subscribe",e):c===g.IOS&&i.callHandler("taurus.common.subscribe",Object.assign({},e),function(l){a?(e.onSuccess||e.onFail)&&(l.errorCode!=="0"?e.onFail&&e.onFail(l):e.onSuccess&&e.onSuccess(l.result)):(a=!0,o.handleBridgeResponse(l,t,r))}):i&&i.call("subscribe",e,function(l){a?(e.onSuccess||e.onFail)&&(l.errorCode!=="0"?e.onFail&&e.onFail(l):e.onSuccess&&e.onSuccess(l.result)):(a=!0,o.handleBridgeResponse(l,t,r))})}}),tt.version={android:"1.6.0",ios:"1.6.0"};function tt(e){return o.invoke("subscribe",e)}o.registerAPI("takePhoto",{mini:!0,mobile:!0}),rt.version={android:"1.3.5",ios:"1.3.5"};function rt(){return o.invoke("takePhoto")}o.registerAPI("testProxy",{pc:function(e,n){e===void 0&&(e={}),window.dingtalk.platform.invokeAPI(n.msgId,"net.util.testProxy",e)}}),at.version={pc:"2.10.0"};function at(){return o.invoke("testProxy",{})}function un(e,n){var t=n.resolve,r=n.reject,i=n.context,s=n.containerType,c=n.platformType,a=n.appType,l={type:e.icon==="error"?"fail":e.icon==="success"?"success":"none",content:e.text,duration:1e3*e.duration,taurusToastStyle:e.taurusToastStyle};if(s){var d=function(){o.handleBridgeResponse({errorCode:C.SUCCESS,result:{}},t,r)},u=function(p){o.handleBridgeResponse(p,t,r)};a===A.MINI_APP?i&&i({m:"taurus.common.toast",args:l,onSuccess:d,onFail:u}):c===g.ANDROID?i&&i(d,u,"taurus.common","toast",l):c===g.IOS&&i.callHandler("taurus.common.toast",Object.assign({},l),function(){o.handleBridgeResponse({errorCode:C.SUCCESS,result:{}},t,r)})}else i&&i.call("toast",l,function(){o.handleBridgeResponse({errorCode:C.SUCCESS,result:{}},t,r)})}o.registerAPI("toast",{mobile:un,mini:un,pc:function(e,n){var t=e.icon,r=e.text,i=e.duration,s=e.delay;window.dingtalk.platform.invokeAPI(n.msgId,"device.notification.toast",{type:t,text:r,duration:i,delay:s})}}),st.version={android:"1.3.2",ios:"1.3.2"};function st(e){return o.invoke("toast",e)}o.registerAPI("unlockWithSecurityVerification",{mini:!0,mobile:!0}),ct.version={android:"1.3.1.1",ios:"1.3.1.1"};function ct(){return o.invoke("unlockWithSecurityVerification")}o.registerAPI("unsubscribe",{mobile:!0}),lt.version={android:"1.6.0",ios:"1.6.0"};function lt(e){return o.invoke("unsubscribe",e)}o.registerAPI("dgUploadFile",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.dgUploadFile",e)}}),ut.version={android:"1.3.2",ios:"1.3.2",pc:"1.3.6"};function ut(e){return o.invoke("dgUploadFile",T({},e,{_apiName:"uploadFile"}))}o.registerAPI("uploadFileByType",{mini:!0,mobile:!0}),dt.version={android:"1.3.0",ios:"1.3.0"};function dt(e){return o.invoke("uploadFileByType",e)}o.registerAPI("uploadFile",{mini:!0}),pt.version={android:"1.6.2",ios:"1.6.2"};function pt(e){return new Promise(function(n,t){my.uploadFile(T({},e,{success:function(r){n(r)},fail:function(r){t(r)}}))})}o.registerAPI("uploadRemoteFileToDisk",{mini:!0,mobile:!0,pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.uploadRemoteFileToDisk",e)}}),ft.version={android:"1.6.0",ios:"1.6.0",pc:"2.6.0"};function ft(e){return o.invoke("uploadRemoteFileToDisk",e)}o.registerAPI("ut",{pc:function(e,n){window.dingtalk.platform.invokeAPI(n.msgId,"biz.util.ut",e)}}),gt.version={pc:"1.3.10"};function gt(e){return o.invoke("ut",e)}o.registerAPI("vibrate",{mini:!0,mobile:!0}),mt.version={android:"1.3.1",ios:"1.3.1"};function mt(e){return o.invoke("vibrate",e)}var U={alert:mn,authConfig:vn,bizContactDepartmentsPickerExternal:hn,bizCustomContactChooseExternal:In,bizCustomContactMultipleChooseExternal:kn,callPhone:An,canIUse:St,checkVPNAppInstalled:bn,checkVPNAppOnline:yn,chooseContact:Sn,chooseContactWithComplexPicker:Tn,chooseDateRangeWithCalendar:Cn,chooseDayWithCalendar:En,chooseDepartments:Rn,chooseFile:On,chooseHalfDayWithCalendar:Dn,chooseImage:Nn,chooseInterconnectionChat:xn,chooseLocalImage:Ln,chooseSpaceDir:Bn,chooseTimeWithCalendar:Mn,chooseVideo:_n,closePage:Fn,complexPickerAdmin:Wn,confirm:Hn,copyToClipboard:jn,createChatGroup:Vn,createDing:zn,createDingV2:Un,createVideoConf:Gn,createVideoMeeting:Jn,dealWithBackAction:Kn,disableClosePage:Yn,disablePullToRefresh:$n,disableWebviewBounce:Qn,downloadAudio:qn,downloadFile:Xn,enablePullToRefresh:Zn,enableVpn:eo,enableWebviewBounce:no,exclusiveInvoke:oo,faceComparison:io,faceRecognition:to,getAppInstallStatus:ro,getAuthCode:ao,getConfig:so,getContainerType:me,getDeviceId:co,getFromClipboard:lo,getGeolocation:uo,getGeolocationStatus:po,getHotspotInfo:fo,getLanguageSetting:go,getLoginUser:mo,getNetworkType:vo,getPhoneInfo:ho,getProxyInfo:Io,getStorageItem:ko,getTraceStatus:Ao,getUUID:Po,getUserAgent:wo,getWaterMark:yo,getWaterMarkConfigV2:ve,getWaterMarkV2:zt,getWifiStatus:So,getWorkbenchContext:To,goBack:Co,hideLoading:Eo,hideOptionMenu:Ro,hideTitleBar:Oo,isDownloadFileExist:Do,joinScheduleConf:No,joinVideoConf:xo,locateOnMap:Lo,on:Gt,onAudioPlayEnd:Bo,onRecordAudioEnd:Mo,openApiInvoker:_o,openApp:Fo,openBrowser:Wo,openChat:Ho,openDownloadFile:jo,openLink:Vo,openPage:zo,openSchemeUrl:Uo,openSlidePanel:Go,openWatermarkCamera:Jo,pauseAudio:Ko,pickChat:Yo,pickChatByCorpId:Jt,pickGroupChat:$o,pickGroupConversation:Qo,playAudio:qo,previewDoc:Xo,previewImage:Zo,printFile:ei,printNativeLog:ni,prompt:oi,pushWindow:ii,readImageToBase64:ti,ready:Kt,reduceImageSize:ri,removeStorageItem:ai,replacePage:si,resetView:ci,resumeAudio:li,rotateView:ui,scan:di,searchOnMap:pi,sendOutData:fi,setLocalScreenShotPolicy:gi,setNavIcon:mi,setNavLeftText:vi,setOptionMenu:hi,setProxyInfo:Ii,setStorageItem:ki,setTitle:Ai,shareFileToMessage:Pi,shareImageToMessage:wi,shareToMessage:bi,shootVideo:yi,showActionSheet:Si,showCallMenu:Ti,showDatePicker:Ci,showDateTimePicker:Ei,showExtendModal:Ri,showHomeBottomTab:Oi,showLoading:Di,showModal:Ni,showMultiSelect:xi,showOnMap:Li,showOptionMenu:Bi,showPlainInputUponKeyboard:Mi,showQuickCallMenu:_i,showSelect:Fi,showSignature:Wi,showSocialShare:Hi,showTimePicker:ji,showTitleBar:Vi,startFaceRecognition:zi,startGeolocation:Ui,startListenNetworkStatus:Gi,startRecordAudio:Ji,startTraceReport:Ki,startVPNApp:Yi,startWatchShake:$i,stopAudio:Qi,stopGeolocation:qi,stopListenNetworkStatus:Xi,stopPullToRefresh:Zi,stopRecordAudio:et,stopTraceReport:nt,stopVPNApp:ot,stopWatchShake:it,subscribe:tt,takePhoto:rt,testProxy:at,toast:st,unlockWithSecurityVerification:ct,unsubscribe:lt,uploadFile:ut,uploadFileByType:dt,uploadLocalFile:pt,uploadRemoteFileToDisk:ft,ut:gt,version:ne,vibrate:mt};if(o.getAppType()===A.MINI_APP)U=new Proxy(U,{get:function(e,n,t){return n in U?Reflect.get(e,n,t):It(Reflect.get(my,n,t),n)}});else{window.dd&&console.warn("\u5DF2\u7ECF\u5B58\u5728 window.dd \u53D8\u91CF\uFF0C\u5F15\u5165 gdt-jsapi \u4F1A\u4FEE\u6539 window.dd \u7684\u503C\u3002");try{Object.defineProperty(window,"dd",{value:U,writable:!0})}catch(e){console.error(e)}window.gdt&&console.warn("\u5DF2\u7ECF\u5B58\u5728 window.gdt \u53D8\u91CF\uFF0C\u5F15\u5165 gdt-jsapi \u4F1A\u4FEE\u6539 window.gdt \u7684\u503C\u3002");try{Object.defineProperty(window,"gdt",{value:U,writable:!0})}catch(e){console.error(e)}}const dn=U;export{dn as d};