define("app.js",(function(e,t,a,r,n,o,i,s,p,l,c,u,d,h,v,_,b,f,g,w,y,m,S,O){var I=!1,T="function"==typeof tt.getLaunchOptionsSync;if(T){var E=tt.getLaunchOptionsSync();E.mode?I="sidebar-semi"===E.mode||"window-semi"===E.mode:T=!1}T||(I=tt.getSystemInfoSync().windowWidth<=400);console.log("pc app merge",T,I),I?(tt.PCAppGetPrintHtml=()=>{},function(){tt.__approvalInfo={lifeCycleBreadcrumb:[],metricLifeCycleBreadcrumbLength:0,breadcrumb:[],metricBreadcrumbLength:0},tt.__approvalPerformance={};const t=Date.now();tt.__approvalInfo.appJsStartTimestamp=t,e("./m_runtime");const a=Date.now();tt.__approvalPerformance.metricRuntimeJsLoadDuration=a-t,e("./m_common");const r=Date.now();tt.__approvalPerformance.metricCommonJsLoadDuration=r-a,e("./m_vendors");const n=Date.now();tt.__approvalPerformance.metricVendorsJsLoadDuration=n-r,e("./m_taro");const o=Date.now();tt.__approvalPerformance.metricTaroJsLoadDuration=o-n,tt.__approvalInfo.loadEndTimestamp=o,(tt.webpackJsonp=tt.webpackJsonp||[]).push([[4],{1079:function(e,t,a){"use strict";(function(e){var r=a(6),n=a(74),o=a(0),i=a(15),s=a.n(i),p=a(7),l=a(17),c=a(734),u=(a(1592),a(153)),d=a(14),h=a(1),v=a(19),_=a(359),b=a(87),f=a(1177),g=a(158),w=(a(1597),a(1598),a(73)),y=a(186),m=a(206),S=a(25),O=a(16),I=a(697),T=a(625),E=a(324),L=a(75),x=a(453),R=a(677),D=a(309),A=a(199),k=a(93),P=a(45),C=a(210),q=a(512),M=a(35),j=a(4),N=Object(v.b)("mobile:src/app.tsx");class F extends o.Component{constructor(){super(...arguments),Object(r.a)(this,"initV1Language",(()=>{wx.t=h.t})),Object(r.a)(this,"setPolyfills",(()=>{var{system:t,brand:a,platform:r}=d.k;/ios\s*10/gi.test(t)&&"devtools"!==a&&"devtools"!==r&&!Promise&&(Promise=e.Promise)})),Object(r.a)(this,"reportColdLaunch",(()=>{var{version:e,model:t,brand:a,platform:r,system:n}=d.k,o={language_code:Object(d.b)(),version:e,model:t,brand:a,system:n,platform:r,env:S.m};Object(l.b)("mp_launch_sys_info",o)})),Object(r.a)(this,"setRouteEvent",(()=>{"function"==typeof m.a.onAppRoute&&m.a.onAppRoute((e=>{Object(n.e)("enterRouter"),Object(D.c)(e),Object(D.e)(e),Object(v.f)(),Object(g.a)(e.path),b.a.setPagePath(e.path),b.a.setPageQuery(e.query);var t={openType:e.openType,url_path:e.path,scene:e.scene,query:JSON.stringify(e.query)};Object(l.b)("mp_on_app_route",t),N("commonOnAppRoute",t),p.a.info("setRouteEvent","onAppRoute",t),Object(I.a)()}))})),Object(r.a)(this,"setNetworkListener",(()=>{tt.onNetworkQualityChange((e=>{var t,{networkQualityType:a}=e,r=getCurrentPages(),n=(null===(t=r[r.length-1])||void 0===t?void 0:t.__route__)||"unknown";N("networkQualityChange",{networkType:a,page:n})}))}))}onLaunch(e){var t=Date.now();if(tt.__approvalPerformance.metricAppJsStartToOnLaunchDuration=t-tt.__approvalInfo.appJsStartTimestamp,tt.__approvalPerformance.metricLoadEndToOnLaunchDuration=t-tt.__approvalInfo.loadEndTimestamp,tt.__approvalInfo.launchPath=e.path,tt.__approvalInfo.launchQuery=JSON.stringify(e.query||{}),tt.__approvalInfo.launchScene="".concat(e.scene),Object(C.b)({type:"appOnLaunch",timestamp:t,scene:tt.__approvalInfo.launchScene,query:tt.__approvalInfo.launchQuery,path:tt.__approvalInfo.launchPath}),"pages/detail/index"!==e.path&&"pages/detail/index-old"!==e.path&&"package-detail-at/detail-at/index"!==e.path||!Object(P.l)(e.query)){var a=M.a.getSync(q.b),r=Object(C.e)(e.path,e.query,"1"===(null==a?void 0:a.tenantId));null===r?(tt.__approvalInfo.shouldColdStartToTrusteeshipPage=!1,tt.__approvalInfo.specialColdStartReason="none"):(C.d.current=!0,tt.__approvalInfo.specialColdStartReason=r.scene,setTimeout((()=>{C.d.current=!1}),1e4),tt.__approvalInfo.shouldColdStartToTrusteeshipPage=!0)}else tt.__approvalInfo.shouldColdStartToTrusteeshipPage=!0,tt.__approvalInfo.specialColdStartReason="none";tt.__approvalInfo.onLaunchTimestamp=t,Object(c.b)(),Object(n.a)("onLaunch");var{scene:o}=e;N("commonAppLaunch",e),p.a.info("onLaunch",e),Object(_.b)(e),Object(n.e)("onLaunch"),w.b.globalStore.setData("scene",Number(o)||0),Object(f.a)(e),Object(u.f)(s.a),this.setPolyfills(),this.setRouteEvent(),this.reportColdLaunch(),this.initV1Language(),Object(y.c)().then((()=>{tt.__approvalInfo.shouldColdStartToTrusteeshipPage?setTimeout((()=>{Object(T.a)()}),4e3):Object(T.a)()})),Object(R.b)(e),tt.__approvalPerformance.metricOnLaunchDuration=Date.now()-t,tt.__approvalInfo.shouldColdStartToTrusteeshipPage?setTimeout((()=>{Object(C.c)()}),4e3):tt.onTabBarReady&&tt.onTabBarReady(C.c),this.setNetworkListener()}componentDidShow(e){tt.__approvalInfo.showScene="".concat(e.scene),tt.__approvalInfo.showPath="".concat(e.path),tt.__approvalInfo.showQuery=JSON.stringify(e.query||{}),tt.__approvalInfo.onShowTimestamp=Date.now(),Object(C.b)({type:"appOnShow",timestamp:tt.__approvalInfo.onShowTimestamp,scene:tt.__approvalInfo.showScene,path:tt.__approvalInfo.showPath,query:tt.__approvalInfo.showQuery}),this.startPollingForBatchApproval(),w.b.globalStore.setData("isForeground",!0),k.a.setIsForeground(!0);var{scene:t,path:a,query:r}=e;w.b.globalStore.setData("scene",Number(t)||0),i.eventCenter.trigger("approvalAppOnShow");var n={scene:t,url_path:a,query:JSON.stringify(r)};N("commonAppShow",n),p.a.info("componentDidShow",n),this.setLAHeaders(e),Object(A.b)(u.a)}startPollingForBatchApproval(){E.a.listenFlag?Object(x.a)()&&Object(E.b)("appDidShow"):(E.a.changeListenFlag(),i.eventCenter.on("user_config",(e=>{var t,a;null!=e&&null!==(t=e.config)&&void 0!==t&&null!==(a=t[L.b.BatchApprovalNext])&&void 0!==a&&a.Enable&&Object(E.b)("appDidShow")})))}componentDidHide(){Object(v.e)(),N("commonAppHide"),p.a.info("componentDidHide"),Object(C.b)({type:"appOnHide",timestamp:Date.now()}),w.b.globalStore.setData("isForeground",!1),k.a.setIsForeground(!1),i.eventCenter.trigger("approvalAppOnHide"),k.a.clearPoll(),Object(I.b)(!1)}componentDidCatchError(e){Object(l.b)("approval_invoke",{name:"App.onError",message:e}),N("commonOnError",{msg:e}),p.a.error("componentDidCatchError",e)}render(){return Object(j.jsx)(w.a.Provider,{value:w.b,children:this.props.children})}setLAHeaders(e){var{scene:t,query:a}=e,r=a.f||"",{version:n,SDKVersion:o,gadgetVersion:i}=d.k,s={"LA-From":r,"LA-Scene":t,"LA-Client-Type":d.f?"sidebar":"mobile","LA-Lark-Version":n,"LA-SDK-Version":o,"LA-Client-Version":i||"unknown"};O.f(s)}}F.contextType=w.a,t.a=F}).call(this,a(30).window)},1080:function(e,t,a){"use strict";(function(e){var r=a(735),n=a(736),o=a(737),i=setTimeout;function s(e){return Boolean(e&&void 0!==e.length)}function p(){}function l(e){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],_(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,l._immediateFn((function(){var a=1===e._state?t.onFulfilled:t.onRejected;if(null!==a){var r;try{r=a(e._value)}catch(e){return void d(t.promise,e)}u(t.promise,r)}else(1===e._state?u:d)(t.promise,e._value)}))):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var a=t.then;if(t instanceof l)return e._state=3,e._value=t,void h(e);if("function"==typeof a)return void _(function(e,t){return function(){e.apply(t,arguments)}}(a,t),e)}e._state=1,e._value=t,h(e)}catch(t){d(e,t)}}function d(e,t){e._state=2,e._value=t,h(e)}function h(e){2===e._state&&0===e._deferreds.length&&l._immediateFn((function(){e._handled||l._unhandledRejectionFn(e._value)}));for(var t=0,a=e._deferreds.length;t{Object(l.c)(e.status),c("jsSdkLaunchTraceReport",Object(l.b)())}))}function v(e){Object(n.j)(),Object(n.i)(!1),Object(r.j)(),p(e.scene),h(e)}},1582:function(e,t,a){"use strict";a.r(t),a(1583),a(1584);var r=a(30),n=a(15),o=a(1079),i=a(0),s=a(217),p={pages:["v1/pages/maintab-approval-list/index","v1/pages/list-search/index","pages/approval-form/index","pages/page-picker/index","v1/pages/page-picker/index","pages/detail/index-old","pages/detail/index","package-detail-at/detail-at/index","package-detail-at/detail-at-sub-page/index","package-detail-at/detail-at-webview-page/index","package-approval-designer/approval-designer/index","pages/detail-error/index","pages/agree-form/index","pages/comment/index","pages/forward/index","pages/free-cc/index","pages/transmit/index","pages/rollback/index","pages/add-task/index","pages/remove-task/index","pages/edit-history/index","pages/blank3/index","pages/login-failed/index","pages/internal-network/index","pages/conflict-list/index","pages/leave-duration-detail/index","v1/pages/leave-duration-detail/index","pages/remind-card-preview/index","pages/error/index","pages/signature-board/index","pages/deleted-approval/index","approval-components/pages/people-picker/index","approval-components/pages/approval-comment-editor/index","approval-components/pages/approval-common-operation/index","approval-components/pages/approval-record-user-list/index","approval-components/pages/approval-operation-approve/index","approval-components/pages/approval-operation-reject/index","approval-components/pages/approval-operation-handle/index","approval-components/pages/approval-operation-endorsement/index","approval-components/pages/approval-operation-seek-advice/index","approval-components/pages/approval-operation-submit-advice/index","approval-components/pages/approval-operation-urge/index","approval-components/pages/approval-operation-substraction/index","approval-components/pages/approval-operation-notice/index","approval-components/pages/approval-operation-transfer/index","approval-components/pages/approval-operation-recover/index","approval-components/pages/approval-operation-invalid/index","approval-components/pages/approval-operation-temp-save/index","pages/account-list/index","pages/edit-account/index","pages/select-bank/index","pages/select-sub-bank/index","pages/detail-all-field/index","pages/batch-approval-list/index","pages/batch-approval-agree/index","pages/userinfo-list/index","pages/approval-efficiency/index","pages/approval-efficiency-trend/index","pages/approval-efficiency-team/index","pages/approval-efficiency-person/index","pages/approval-efficiency-overview/index"],window:{backgroundTextStyle:"dark",backgroundColor:"#FFFFFF",navigationBarBackgroundColor:"#fff",navigationBarTitleText:" ",navigationBarTextStyle:"black",backgroundColorTop:"#f8f8f9",backgroundColorBottom:"#f8f8f9",navigationStyle:"custom"},networkTimeout:{request:15e3},prefetchRules:{"package-detail-at/detail-at/index":{"${host_url}/approval/web/api/v2/MGetDetail?mode=1&locale=${approval_language}":[{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${ccId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${taskId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${instanceId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}],"${host_url}/approval/web/api/v2/MGetDetail?mode=2&locale=${approval_language}":[{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${ccId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${taskId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${instanceId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}]},"pages/detail/index-old":{"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":[{method:"POST",data:{instanceId:"${instanceId}"},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{instanceId:"${instanceId}",shareCode:"${shareCode}"},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}]},"pages/detail/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.setting_page","approval.web.trip_address_v2","approval.web.approval_list_skeleton","approval.web.efficiency_view_detail","approval.web.efficiency_view_team_detail","approval.web.efficiency","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.log_backdoor","approval.web.field_list_widget_table_type","approval.web.enable_trusteeship","approval.web.trusteeship","approval.batch_approval.next","approval.web.show_approval_node_name","approval.web.spec_attr_handler","approval.web.definition_share_mobile","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","approval.web.enable_choose_cross_tenant","approval.web.extra_headers","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_new_form_compute","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_external_data_v2","approval.web.enable_third_party_create_page","approval.web.quickly_approval_not_require_user_input","approval.web.people_h5"]}}]}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":[{method:"POST",data:{instanceId:"${instanceId}"},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{instanceId:"${instanceId}",shareCode:"${shareCode}"},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}],"${host_url}/approval/web/api/v2/MGetDetail?mode=1&locale=${approval_language}":[{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${ccId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${taskId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${instanceId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}],"${host_url}/approval/web/api/v2/MGetDetail?mode=2&locale=${approval_language}":[{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${ccId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${taskId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${instanceId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}]},"pages/approval-efficiency/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{IsLeaderEfficiency:{}},{TeamEfficiency:{timeType:1}},{ReportQueryApi:{timeType:1}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.setting_page","approval.web.trip_address_v2","approval.web.approval_list_skeleton","approval.web.efficiency_view_detail","approval.web.efficiency_view_team_detail","approval.web.efficiency","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.log_backdoor","approval.web.field_list_widget_table_type","approval.web.enable_trusteeship","approval.web.trusteeship","approval.batch_approval.next","approval.web.show_approval_node_name","approval.web.spec_attr_handler","approval.web.definition_share_mobile","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","approval.web.enable_choose_cross_tenant","approval.web.extra_headers","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_new_form_compute","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_external_data_v2","approval.web.enable_third_party_create_page","approval.web.quickly_approval_not_require_user_input","approval.web.people_h5"]}}]}}]},"pages/approval-list/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.setting_page","approval.web.trip_address_v2","approval.web.approval_list_skeleton","approval.web.efficiency_view_detail","approval.web.efficiency_view_team_detail","approval.web.efficiency","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.log_backdoor","approval.web.field_list_widget_table_type","approval.web.enable_trusteeship","approval.web.trusteeship","approval.batch_approval.next","approval.web.show_approval_node_name","approval.web.spec_attr_handler","approval.web.definition_share_mobile","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","approval.web.enable_choose_cross_tenant","approval.web.extra_headers","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_new_form_compute","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_external_data_v2","approval.web.enable_third_party_create_page","approval.web.quickly_approval_not_require_user_input","approval.web.people_h5"]}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListTask:{Direction:1,Filter:{Topic:1,DefinitionKeys:[],Querystring:""},NextPageToken:"",Order:2,PageSize:30}},{CountTask:{AllowDistinctOnly:[],Filter:{Querystring:""}}}]}}]},"pages/create-list/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.setting_page","approval.web.trip_address_v2","approval.web.approval_list_skeleton","approval.web.efficiency_view_detail","approval.web.efficiency_view_team_detail","approval.web.efficiency","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.log_backdoor","approval.web.field_list_widget_table_type","approval.web.enable_trusteeship","approval.web.trusteeship","approval.batch_approval.next","approval.web.show_approval_node_name","approval.web.spec_attr_handler","approval.web.definition_share_mobile","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","approval.web.enable_choose_cross_tenant","approval.web.extra_headers","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_new_form_compute","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_external_data_v2","approval.web.enable_third_party_create_page","approval.web.quickly_approval_not_require_user_input","approval.web.people_h5"]}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[],IgnoreRecentlyUse:!1},PageSize:50,StartGroupID:"",StartDefinitionID:""}}]}}]},"pages/comment/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.setting_page","approval.web.trip_address_v2","approval.web.approval_list_skeleton","approval.web.efficiency_view_detail","approval.web.efficiency_view_team_detail","approval.web.efficiency","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.log_backdoor","approval.web.field_list_widget_table_type","approval.web.enable_trusteeship","approval.web.trusteeship","approval.batch_approval.next","approval.web.show_approval_node_name","approval.web.spec_attr_handler","approval.web.definition_share_mobile","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","approval.web.enable_choose_cross_tenant","approval.web.extra_headers","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_new_form_compute","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_external_data_v2","approval.web.enable_third_party_create_page","approval.web.quickly_approval_not_require_user_input","approval.web.people_h5"]}}]}},"${host_url}/approval/web/api/external/message/actionConfig?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{messageId:"${messageId}",actionType:"${actionType}"}}},"pages/agree-form/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.setting_page","approval.web.trip_address_v2","approval.web.approval_list_skeleton","approval.web.efficiency_view_detail","approval.web.efficiency_view_team_detail","approval.web.efficiency","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.log_backdoor","approval.web.field_list_widget_table_type","approval.web.enable_trusteeship","approval.web.trusteeship","approval.batch_approval.next","approval.web.show_approval_node_name","approval.web.spec_attr_handler","approval.web.definition_share_mobile","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","approval.web.enable_choose_cross_tenant","approval.web.extra_headers","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_new_form_compute","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_external_data_v2","approval.web.enable_third_party_create_page","approval.web.quickly_approval_not_require_user_input","approval.web.people_h5"]}}]}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{instanceId:"${instanceId}"}}},"pages/approval-form/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.setting_page","approval.web.trip_address_v2","approval.web.approval_list_skeleton","approval.web.efficiency_view_detail","approval.web.efficiency_view_team_detail","approval.web.efficiency","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.log_backdoor","approval.web.field_list_widget_table_type","approval.web.enable_trusteeship","approval.web.trusteeship","approval.batch_approval.next","approval.web.show_approval_node_name","approval.web.spec_attr_handler","approval.web.definition_share_mobile","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","approval.web.enable_choose_cross_tenant","approval.web.extra_headers","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_new_form_compute","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_external_data_v2","approval.web.enable_third_party_create_page","approval.web.quickly_approval_not_require_user_input","approval.web.people_h5"]}}]}},"${host_url}/approval/web/api/instance/createPrepare?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{approvalId:"${id}",instanceId:"${instanceId}",versionId:"${versionId}",modifying:!0}},"${host_url}/approval/web/api/user/userDepartmentInfo?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{initFetchVirtualId:"initFetchVirtualId"}}},"pages/remind-card-preview/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.setting_page","approval.web.trip_address_v2","approval.web.approval_list_skeleton","approval.web.efficiency_view_detail","approval.web.efficiency_view_team_detail","approval.web.efficiency","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.log_backdoor","approval.web.field_list_widget_table_type","approval.web.enable_trusteeship","approval.web.trusteeship","approval.batch_approval.next","approval.web.show_approval_node_name","approval.web.spec_attr_handler","approval.web.definition_share_mobile","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","approval.web.enable_choose_cross_tenant","approval.web.extra_headers","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_new_form_compute","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_external_data_v2","approval.web.enable_third_party_create_page","approval.web.quickly_approval_not_require_user_input","approval.web.people_h5"]}}]}},"${host_url}/approval/web/api/starter/bot/preview?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{instanceId:"${instanceId}",taskId:"${taskId}"}}}},tabBar:{color:"#646A73",selectedColor:"#3370FF",backgroundColor:"#ffffff",list:[{pagePath:"pages/create-list/index",text:"",iconPath:"assets/tab_bar_add.png",selectedIconPath:"assets/tab_bar_add_active.png"},{pagePath:"pages/approval-list/index",text:"",iconPath:"assets/tab_bar_list.png",selectedIconPath:"assets/tab_bar_list_active.png"},{pagePath:"pages/approval-efficiency/index",text:"",iconPath:"assets/tab_bar_chart.png",selectedIconPath:"assets/tab_bar_chart_active.png"}]},apiConfig:{getLocation:{version:2}},networkAPIVersion:{request:"v2"}};r.window.__taroAppConfig=p,App(Object(r.createReactApp)(o.a,i,s.a,p)),Object(n.initPxTransform)({designWidth:750,deviceRatio:{640:1.17,750:1,828:.905}})},1592:function(e,t,a){"use strict";(function(e,t){var r=a(1080),n=a(735),o=a(736),s=a(737),p=function(){if(void 0!==i)return i;if(void 0!==e)return e;if(void 0!==t)return t;throw new Error("unable to locate global object")}();"function"!=typeof p.Promise?p.Promise=r.a:(p.Promise.prototype.finally||(p.Promise.prototype.finally=n.a),p.Promise.allSettled||(p.Promise.allSettled=o.a),p.Promise.any||(p.Promise.any=s.a))}).call(this,a(30).window,a(236))},1593:function(e,t,a){(function(e,r){var n=void 0!==e&&e||void 0!==i&&i||r,o=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(o.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new s(o.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},a(1594),t.setImmediate=void 0!==i&&i.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate=void 0!==i&&i.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,a(236),a(30).window)},1594:function(e,t,a){(function(e,t){!function(e,a){"use strict";if(!e.setImmediate){var r,n=1,o={},i=!1,s=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){c(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,a=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=a,t}}()?function(){var t="setImmediate$"+Math.random()+"$",a=function(a){a.source===e&&"string"==typeof a.data&&0===a.data.indexOf(t)&&c(+a.data.slice(t.length))};e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(a){e.postMessage(t+a,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},r=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;r=function(t){var a=s.createElement("script");a.onreadystatechange=function(){c(t),a.onreadystatechange=null,e.removeChild(a),a=null},e.appendChild(a)}}():r=function(e){setTimeout(c,0,e)},p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),a=0;a=0,o=n&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=a(1341),n)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},1341:function(e,t){!function(t){"use strict";var a,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag",l="object"==typeof e,c=t.regeneratorRuntime;if(c)l&&(e.exports=c);else{(c=t.regeneratorRuntime=l?e.exports:{}).wrap=y;var u="suspendedStart",d="suspendedYield",h="executing",v="completed",_={},b={};b[i]=function(){return this};var f=Object.getPrototypeOf,g=f&&f(f(A([])));g&&g!==r&&n.call(g,i)&&(b=g);var w=I.prototype=S.prototype=Object.create(b);O.prototype=w.constructor=I,I.constructor=O,I[p]=O.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,I):(e.__proto__=I,p in e||(e[p]="GeneratorFunction")),e.prototype=Object.create(w),e},c.awrap=function(e){return{__await:e}},T(E.prototype),E.prototype[s]=function(){return this},c.AsyncIterator=E,c.async=function(e,t,a,r){var n=new E(y(e,t,a,r));return c.isGeneratorFunction(t)?n:n.next().then((function(e){return e.done?e.value:n.next()}))},T(w),w[p]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var r=t.pop();if(r in e)return a.value=r,a.done=!1,a}return a.done=!0,a}},c.values=A,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(R),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=a)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return s.type="throw",s.arg=e,t.next=r,n&&(t.method="next",t.arg=a),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var p=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(p&&l){if(this.prev=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),R(a),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var n=r.arg;R(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=a),_}}}function y(e,t,a,r){var n=t&&t.prototype instanceof S?t:S,o=Object.create(n.prototype),i=new D(r||[]);return o._invoke=function(e,t,a){var r=u;return function(n,o){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===n)throw o;return k()}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=L(i,a);if(s){if(s===_)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===u)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=h;var p=m(e,t,a);if("normal"===p.type){if(r=a.done?v:d,p.arg===_)continue;return{value:p.arg,done:a.done}}"throw"===p.type&&(r=v,a.method="throw",a.arg=p.arg)}}}(e,a,i),o}function m(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}function S(){}function O(){}function I(){}function T(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){function t(a,r,o,i){var s=m(e[a],e,r);if("throw"!==s.type){var p=s.arg,l=p.value;return l&&"object"==typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,o,i)}),(function(e){t("throw",e,o,i)})):Promise.resolve(l).then((function(e){p.value=e,o(p)}),i)}i(s.arg)}var a;this._invoke=function(e,r){function n(){return new Promise((function(a,n){t(e,r,a,n)}))}return a=a?a.then(n,n):n()}}function L(e,t){var r=e.iterator[t.method];if(r===a){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=a,L(e,t),"throw"===t.method))return _;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var n=m(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,_;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=a),t.delegate=null,_):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,_)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r{try{return JSON.stringify(e)}catch(e){return console.error("[SafeJson error] JSON 序列化出问题了,本次操作返回空字符串",e),""}},parse:e=>{try{return JSON.parse(e||"")}catch(t){return console.error("[SafeJson error] JSON 反序列化出问题了,本次操作返回 null",e,t),null}}};var h;function v({parentShareCode:e,parentId:t,fuzzy:a,fuzzyId:r,shareCode:n,taskId:o,expectTopic:i,instanceId:s,ccId:p}){const l=e&&h.WithParentShareCode||t&&h.WithParentID||(a||r?h.Fuzzy:n&&h.ShareCode||o&&h.TaskID||h.InstanceID);return{[l]:{[h.Fuzzy]:{FuzzyMatched:r||n||p||o||s,ExpectTopic:i},[h.ShareCode]:n,[h.TaskID]:o,[h.InstanceID]:s,[h.WithParentShareCode]:{ParentShareCode:e,InstanceID:s},[h.WithParentID]:{ParentInstanceID:t,InstanceID:s}}[l]}}!function(e){e.Fuzzy="Fuzzy",e.Next="Next",e.InstanceID="InstanceID",e.ShareCode="ShareCode",e.TaskID="TaskID",e.WithParentID="WithParentID",e.WithParentShareCode="WithParentShareCode"}(h||(h={}));var _=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class f{constructor(e){this.getSharedUsers=e=>_(this,void 0,void 0,(function*(){if(!e.instanceId)return Promise.reject("缺少instanceId");try{const{data:t}=yield this.request.post("/approval/web/api/instance/shareList",{data:e});return t.shareList}catch(e){return console.error(e),[]}})),this.getDocumentSignature=e=>_(this,void 0,void 0,(function*(){if(!e.DocsToken)return Promise.reject("缺少 DocsToken");const{data:t}=yield this.request.post("/approval/web/api/GetDocumentSignature",{data:e});return t})),this.request=e}getCurrentUserInfo(){return _(this,void 0,void 0,(function*(){const{data:e}=yield this.request.post("/approval/web/api/user/userInfo");return e}))}getRelatedUsers(e){var{shareCode:t}=e,a=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n((e,t,a)=>{const r=t(a.AccountID+a.CreateTime+a.UpdateTime).toString(),n=Object.assign({},a);if(n.AccountNumber=e.dec(a.AccountNumber,r),a.BankBranch)try{const t=e.dec(a.BankBranch,r);n.BankBranch=t?JSON.parse(t):""}catch(e){n.BankBranch=null}if(a.BankArea)try{const t=e.dec(a.BankArea,r);n.BankArea=t?JSON.parse(t):[]}catch(e){n.BankArea=[]}if(a.BankName)try{const e=JSON.parse(a.BankName);e.iconURL=a.BankIcon,n.BankName=e}catch(e){n.BankName=null}return n})(e,t,a)))}))}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var a=0;an?0:n+t),(a=a>n?n:a)<0&&(a+=n),n=t>a?0:a-t>>>0,t>>>=0;for(var o=Array(n);++r1),t})),Object(A.a)(e,Object(q.a)(e),a),r&&(a=Object(O.a)(a,7,P));for(var n=t.length;n--;)D(a,t[n]);return a})),j=M,N=a(550),F=a.n(N);function H(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,t){if(e){if("string"==typeof e)return U(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?U(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==a.return||a.return()}finally{if(s)throw o}}}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a2&&void 0!==arguments[2]?arguments[2]:0;t.requestInterceptors.push({fulfilled:e,rejected:a,order:r}),t.requestInterceptors.sort((function(e,t){return e.order-t.order}))}}),Object(s.a)(this,"response",{use:function(e,a){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t.responseInterceptors.push({fulfilled:e,rejected:a,order:r}),t.responseInterceptors.sort((function(e,t){return e.order-t.order}))}}),Object(s.a)(this,"resolveRequestOptions",(function(e){var a,r=Promise.resolve(e),n=H(t.requestInterceptors);try{for(n.s();!(a=n.n()).done;){var o=a.value,i=o.fulfilled,s=o.rejected;r=r.then(i,s)}}catch(e){n.e(e)}finally{n.f()}return r})),Object(s.a)(this,"resolveResponse",(function(e,a){var r,n=e,o=H(t.responseInterceptors);try{var i=function(){var e=r.value,t=e.fulfilled,o=e.rejected;n=n.then((function(e){return e&&!Object.hasOwnProperty.call(e,"config")&&(e.config=a),t(e)}),o)};for(o.s();!(r=o.n()).done;)i()}catch(e){o.e(e)}finally{o.f()}return n}))},z=function(e,t){if(!t)return e;if(null!=e&&e.startsWith("http")||null!=e&&e.startsWith("https"))return e;var a=e.startsWith("/")?e.slice(1):e,r=t.endsWith("/")?t.slice(0,t.length-1):t;return"".concat(r,"/").concat(a)};function X(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function $(e){for(var t=1;t{e&&Object(ce.a)(e)&&(Array.isArray(e)&&e.forEach(((a,r)=>{t(e,r,a),a&&Object(ce.a)(a)&&ue(a,t)})),Object.keys(e).forEach((a=>{const r=e[a];t(e,a,r),r&&Object(ce.a)(r)&&ue(r,t)})))};var de=a(387),he=a(31),ve=a.n(he);const _e=new Set,be=Date.now(),fe=[],ge=(e,t)=>{const a=(e=>{const{url:t,usePrefetchCache:a}=e;return Date.now()-be<8e3||("boolean"==typeof a?a:!!t&&!_e.has(t)&&(_e.add(t),!0))})(e);return ye(e,a,t),a},we=e=>ve()(e).format("YYYY-MM-DD HH:mm:ss.SSS"),ye=({url:e="",data:t,usePrefetchCache:a},r,n)=>{const o=new Date;if(!e.toLowerCase().includes("mgetdetail"))return;if(fe.length>5)return;const i=o.valueOf()-be;if(i>12e4)return;const s={url:e,start:we(be),now:we(o),interval:i,data:d.stringify(t),originUsePrefetchCache:me(a),result:r?"true":"false",invokeBy:n};fe.push(s)},me=e=>!0===e?"true":!1===e?"false":"notSet";var Se,Oe=a(302),Ie=a(352),Te=a(283),Ee=function(e,t,a){(void 0!==a&&!Object(Te.a)(e[t],a)||void 0===a&&!(t in e))&&Object(Ie.a)(e,t,a)},Le=a(724),xe=a(582),Re=a(586),De=a(433),Ae=a(725),ke=a(266),Pe=a(84),Ce=a(399),qe=a(263),Me=a(432),je=a(367),Ne=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Fe=a(292),He=function(e){return Object(A.a)(e,Object(Fe.a)(e))},Ue=function(e,t,a,r,n,o,i){var s=Ne(e,a),p=Ne(t,a),l=i.get(p);if(l)Ee(e,a,l);else{var c=o?o(s,p,a+"",e,t,i):void 0,u=void 0===c;if(u){var d=Object(Pe.a)(p),h=!d&&Object(qe.a)(p),v=!d&&!h&&Object(je.a)(p);c=p,d||h||v?Object(Pe.a)(s)?c=s:Object(Ce.a)(s)?c=Object(De.a)(s):h?(u=!1,c=Object(xe.a)(p,!0)):v?(u=!1,c=Object(Re.a)(p,!0)):c=[]:Object(k.a)(p)||Object(ke.a)(p)?(c=s,Object(ke.a)(s)?c=He(s):Object(ce.a)(s)&&!Object(Me.a)(s)||(c=Object(Ae.a)(p))):u=!1}u&&(i.set(p,c),n(c,p,r,o,i),i.delete(p)),Ee(e,a,c)}},Ke=function e(t,a,r,n,o){t!==a&&Object(Le.a)(a,(function(i,s){if(o||(o=new Oe.a),Object(ce.a)(i))Ue(t,a,s,r,e,n,o);else{var p=n?n(Ne(t,s),i,s+"",t,a,o):void 0;void 0===p&&(p=i),Ee(t,s,p)}}),Fe.a)},ze=a(363),Xe=a(324),$e=function(e){return Object(ze.a)((function(t,a){var r=-1,n=a.length,o=n>1?a[n-1]:void 0,i=n>2?a[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,i&&Object(Xe.a)(a[0],a[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++rVe(this,void 0,void 0,(function*(){const t=this.getAtDetailParams(e),a=yield Object(Be.a)(((e,a)=>this.request.request(t).then((t=>(e&&(t.meta.withoutPrefetchReason=e,t.meta.prefetchMismatchReason=a||"unset"),t)))),{name:"MGetDetail",data:t.data},{isUsingEnvHeader:this.request.isUsingEnvHeader}),{data:r}=a;if(!r||Object(ne.a)(r)||!r.Details.length)throw new Error("获取详情数据为空");const n=r.Details[0];return We(n,a)}))}getAtDetailParams(e){const{taskId:t,instanceId:a,shareCode:r="",parentId:n,parentShareCode:o,mode:i=1,context:s,fuzzy:p=!0,fuzzyId:l,ccId:c,expectTopic:u,isPreload:d}=e,h={url:"/approval/web/api/v2/MGetDetail?mode="+i,method:"post",data:{Requests:[{Symbol:v({instanceId:a,taskId:t,shareCode:r,ccId:c,fuzzy:p,fuzzyId:l,parentShareCode:o,parentId:n,expectTopic:u}),Fields:[1,2,3],Mode:i,Context:s}]},usePrefetchCache:void 0,isPreload:d};return h.usePrefetchCache=ge(h,"getAtDetailParams"),h}getAtDetailBatch(e,{isPreload:t}){return Ve(this,void 0,void 0,(function*(){const a={Requests:e.map((e=>{const{taskId:t,instanceId:a,mode:r}=e;return{Mode:r,Fields:[1,2,3],Symbol:{[t?Se.TaskID:Se.InstanceID]:t||a}}}))},r={url:"/approval/web/api/v2/MGetDetail?mode=3",method:"post",data:a,isPreload:t},n=yield this.request.request(r);return n.data.Details.map((e=>We(e,n)))}))}getAtDetail(e){return Ve(this,void 0,void 0,(function*(){if(!e.noPreloadCache){const t=this.createWithPrefetchRequest(Object.assign(Object.assign({},e),{mode:1})),a=yield(()=>{const e=Object(Ge.a)("preloadApi");if(!e)throw new Error("preloadApi not inited");return e})().handlers.queryCache({ID:e.taskId,ProcessID:e.onlyMatchTaskIdWhenPreloadData?void 0:e.instanceId,NextPageToken:""},this.request.locale||"zh","3");return a?{mode3RequestRaw:Promise.resolve(a)}:{mode1RequestRaw:t,mode2RequestRaw:this.createWithPrefetchRequest(Object.assign(Object.assign({},e),{mode:2}))}}return{mode3RequestRaw:this.createWithPrefetchRequest(e)}}))}getAtDetailWithoutPreload(e){return this.createWithPrefetchRequest(e)}getThirdToken(e={}){return Ve(this,void 0,void 0,(function*(){const{data:t}=yield this.request.get("/approval/web/api/v2/GetOAAccess",{headers:e});return t}))}getNextDocDetail(e){return Ve(this,void 0,void 0,(function*(){const{nextPageToken:t,topic:a}=e,{data:r}=yield this.request.post("/approval/web/api/v2/MGetDetail",{headers:{},data:{Requests:[{Symbol:{Next:{NextPageToken:t,Topic:a}},Mode:1}]}});return r.Details[0]}))}postPolicyAsCodeIsHelpOrFold({InstanceID:e="0",Fold:t}){return Ve(this,void 0,void 0,(function*(){const a=void 0===t?{InstanceID:e}:{InstanceID:e,Fold:t},{data:r}=yield this.request.post("/approval/web/api/instance/rule_display/feedback",{data:a});return r}))}}const We=(e,t)=>{const{data:a,meta:r,ctx:n}=t,{Task:o,LegacyJSON:i,FormCachePolicy:s="unset"}=e,p="feishu"===o.System,l=Je(p,i);return r.formCachePolicy=""+s,{data:le(e,(e=>"boolean"!=typeof e&&Object(ne.a)(e))),users:a.Users,departments:a.Departments,Users:a.Users,Departments:a.Departments,instanceDetail:l,ctx:n,meta:r}},Je=(e,t)=>{let a;if(e)try{if(a=JSON.parse(t),a){(e=>{e&&ue(e,((e,t,a)=>{Object(de.a)(t)&&t.endsWith("Time")&&Object(de.a)(a)&&(e[t]=parseInt(a))}))})(a);const{modifyInstanceList:e,instanceStatus:t,originalModifyStatus:r}=a;(null==e?void 0:e.length)&&void 0===r&&(t!==Z.MODIFY_APPROVED&&t!==Z.MODIFY_WITHDRAW&&t!==Z.MODIFY_REJECT&&t!==Z.MODIFY_IN_PROCESS||(a.instanceStatus=Z.APPROVED,a.originalModifyStatus=t))}}catch(e){console.error(e)}return a};var Qe,Ze,et,at,rt,nt,ot,it,st,pt,lt,ct,ut,dt,ht,vt,_t,bt,ft,gt,wt,yt,mt,St=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))},Ot=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);nthis.request.post("/approval/web/api/comment/permission",{data:e}),this.getLarkOpenConfig=e=>this.request.post("/approval/web/api/approval/block_comment/signature",{data:e}).then((e=>e.data.signature))}}a(746),a(280),function(e){e[e.Frozen=255]="Frozen",e[e.Form=1]="Form",e[e.CreateChat=17]="CreateChat",e[e.JoinChat=18]="JoinChat",e[e.NormalOpen=33]="NormalOpen",e[e.SidebarOpen=34]="SidebarOpen",e[e.BrowserOpen=35]="BrowserOpen"}(Qe||(Qe={})),function(e){e.MAIN="main",e.SECONDARY="secondary"}(Ze||(Ze={})),function(e){e.APPROVE="APPROVE",e.REJECT="REJECT",e.ADVISE="ADVISE",e.ENDORSEMENT="ENDORSEMENT",e.SUBTRACTION="SUBTRACTION",e.TRANSFER="TRANSFER",e.NOTICE="NOTICE",e.URGE="URGE",e.RECOVER="RECOVER",e.TERMINATE="TERMINATE",e.INVALID="INVALID",e.TEMP_SAVE="TEMP_SAVE",e.JOIN_GROUP_CHAT="JOIN_GROUP_CHAT",e.CREATE_GROUP_CHAT="CREATE_GROUP_CHAT",e.CUSTOM="CUSTOM",e.RESUBMIT="RESUBMIT",e.LINK="LINK",e.TO_EDIT_PAGE="EDIT",e.COMMENT="COMMENT",e.VOTE_FOR="VOTE_FOR",e.VOTE_AGAINST="VOTE_AGAINST",e.HANDLE="HANDLE",e.MODIFY="MODIFY",e.SUBMIT_AGAIN="SUBMIT_AGAIN",e.SAVE_EDIT="SAVE_EDIT",e.CONFIRM="CONFIRM",e.RESIGN_NOTICE="RESIGN_NOTICE",e.OVERTIME_RECOVER="OVERTIME_RECOVER",e.DEFAULT_BANNER="DEFAULT_BANNER",e.SEEK_ADVICE="SEEK_ADVICE",e.BATCH_APPROVAL="BATCH_APPROVAL",e.DOWNLOAD_PDF="DOWNLOAD_PDF"}(et||(et={})),function(e){e.BROWSER="Browser",e.APPLINK="Applink",e.DRAWER="Drawer"}(at||(at={})),function(e){e.SPECIFY="specify",e.TOTAL="total"}(rt||(rt={})),function(e){e[e.POPOVER=0]="POPOVER",e[e.SECONDARY_CONFIRM=1]="SECONDARY_CONFIRM",e[e.LINK=2]="LINK"}(nt||(nt={})),function(e){e.APPROVE="APPROVE",e.REJECT="REJECT",e.ADVISE="ADVISE",e.ENDORSEMENT="ENDORSEMENT",e.ROLLBACK="ROLLBACK",e.TRANSFER="TRANSFER",e.CANCEL="CANCEL",e.TEMP_SAVE="TEMP_SAVE",e.TERMINATE="TERMINATE",e.INVALID="INVALID",e.URGE="URGE",e.CC="CC",e.INVITE_CHAT="INVITE_CHAT",e.JOIN_CHAT="JOIN_CHAT",e.SUBTRACTION="DELETE_APPROVER",e.CREATE_NEW="CREATE_NEW",e.SUBMIT="SUBMIT",e.EDIT="EDIT",e.COMMENT="COMMENT",e.CUSTOM="CUSTOM",e.VOTE_FOR="VOTE_FOR",e.VOTE_AGAINST="VOTE_AGAINST",e.HANDLE="HANDLE",e.MODIFY="MODIFY",e.SAVE_EDIT="SAVE_EDIT",e.CONFIRM="CONFIRM",e.RESIGN_NOTICE="RESIGN_NOTICE",e.OVERTIME_RECOVER="OVERTIME_RECOVER",e.DEFAULT_BANNER="DEFAULT_BANNER",e.SEEK_ADVICE="SEEK_ADVICE",e.BATCH_APPROVAL="BATCH_APPROVAL",e.DOWNLOAD_PDF="DOWNLOAD_PDF"}(ot||(ot={})),function(e){e[e.race=1]="race",e[e.parallel=2]="parallel",e[e.serial=3]="serial"}(it||(it={})),function(e){e.LI_XIANG="LI_XIANG"}(st||(st={})),function(e){e.OVERTIME_NOTICE="OVERTIME_NOTICE"}(pt||(pt={})),function(e){e[e.DO_NOT_REFRESH=1]="DO_NOT_REFRESH",e[e.REFRESH_IMPLICITLY=2]="REFRESH_IMPLICITLY",e[e.REFRESH_EXPLICITLY=3]="REFRESH_EXPLICITLY"}(lt||(lt={})),function(e){e.NORMAL="NORMAL",e.FANWEI="FANWEI"}(ct||(ct={})),function(e){e[e.Unknown=0]="Unknown",e[e.Man=1]="Man",e[e.Woman=2]="Woman"}(ut||(ut={})),function(e){e[e.Unknown=0]="Unknown",e[e.FullTime=1]="FullTime",e[e.Internship=2]="Internship",e[e.Outsourcing=3]="Outsourcing",e[e.Labor=4]="Labor",e[e.Consultant=5]="Consultant"}(dt||(dt={})),function(e){e[e.Approve=1]="Approve",e[e.Notice=2]="Notice"}(ht||(ht={})),function(e){e[e.Normal=1]="Normal",e[e.Sidebar=2]="Sidebar",e[e.Browser=3]="Browser",e[e.Trusteeship=4]="Trusteeship"}(vt||(vt={})),function(e){e[e.Running=1]="Running",e[e.Approved=2]="Approved",e[e.Rejected=3]="Rejected",e[e.Canceled=4]="Canceled",e[e.Terminated=5]="Terminated",e[e.Deleted=255]="Deleted"}(_t||(_t={})),function(e){e[e.Todo=1]="Todo",e[e.Done=2]="Done",e[e.Unread=17]="Unread",e[e.Read=18]="Read",e[e.Processing=33]="Processing",e[e.Withdrawn=34]="Withdrawn",e[e.Deleted=255]="Deleted"}(bt||(bt={})),function(e){e.FeiShu="feishu",e.OA="oa",e.External="external"}(ft||(ft={})),function(e){e[e.TodoApproval=1]="TodoApproval",e[e.DoneApproval=2]="DoneApproval",e[e.InitiatedApproval=3]="InitiatedApproval",e[e.UnreadNotice=17]="UnreadNotice",e[e.ReadNotice=18]="ReadNotice",e[e.Shared=33]="Shared",e[e.Frozen=254]="Frozen",e[e.Deleted=255]="Deleted"}(gt||(gt={})),function(e){e[e.GROUP_CHAT=1]="GROUP_CHAT",e[e.EMAIL=2]="EMAIL",e[e.USER=3]="USER",e[e.BOT=4]="BOT",e[e.MESSAGE=5]="MESSAGE",e[e.EMAIL_MESSAGE=6]="EMAIL_MESSAGE",e[e.MEETING_ROOM=7]="MEETING_ROOM",e[e.SHARED_CALENDAR=8]="SHARED_CALENDAR",e[e.Thread=9]="Thread",e[e.Session=10]="Session",e[e.ChatBox=11]="ChatBox",e[e.DEPARTMENT=12]="DEPARTMENT",e[e.ONCALL=13]="ONCALL",e[e.ApprovalStarter=51]="ApprovalStarter",e[e.ApprovalApprover=52]="ApprovalApprover",e[e.ApprovalCcer=53]="ApprovalCcer",e[e.Role=54]="Role",e[e.ApprovalDelegator=55]="ApprovalDelegator",e[e.ApprovalHandler=56]="ApprovalHandler"}(wt||(wt={})),function(e){e[e.Self=0]="Self",e[e.SelfAndAllCollaborations=1]="SelfAndAllCollaborations",e[e.SelfAndSomeCollaborations=2]="SelfAndSomeCollaborations"}(yt||(yt={})),function(e){e[e.DefaultType=0]="DefaultType",e[e.InstanceID=1]="InstanceID",e[e.CollaborationTenantID=2]="CollaborationTenantID"}(mt||(mt={}));var Et=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};const Lt=(e,t,a,r)=>e&&"feishu"===r?t?{b2bParam:{searchType:yt.SelfAndSomeCollaborations,specifiedIDType:mt.InstanceID,specifiedID:t,currentInstanceTenantID:a}}:{b2bParam:{searchType:yt.SelfAndAllCollaborations,currentInstanceTenantID:a}}:{};class xt extends g{getPeopleSelectorUserList({input:e,enableCrossTenant:t,instanceId:a,creatorTenantId:r,system:n}){return Et(this,void 0,void 0,(function*(){const{data:o}=yield this.request.post("/approval/web/api/user/searchUsers",{data:Object.assign({offset:0,pageSize:100,query:e},Lt(t,a,r,n))});return o.entityList}))}getUserListByUserId(e){return Et(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/user/queryUsers",{data:{userIds:e}});return t.userList}))}thirdApprovalSubmit(e){return Et(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/v2/ApplyAction",{headers:{},data:Object.assign({},e)});return t}))}submit(e){return Et(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/instance/operate",{data:Object.assign({},e)});let a={};try{a=JSON.parse((null==t?void 0:t.nextTaskJSON)||"{}")}catch(e){a={}}return Object.assign(Object.assign({},t),{task:a})}))}getUrgeApproverList(e){return Et(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/urgent/approverList",{data:{procInstId:e.instanceId}});return t.t}))}urge(e){return Et(this,void 0,void 0,(function*(){const{instanceId:t,userIdList:a}=e,{text:r}=((e,t={})=>{try{return JSON.parse(e)}catch(e){return t}})(e.comment),{data:n}=yield this.request.post("/approval/web/api/urgent/batchCreate",{data:{procInstId:t,urgeType:1,targets:a.map((e=>({taskId:e}))),comment:r}});return n}))}getChatInfo(e){return Et(this,void 0,void 0,(function*(){const{instanceId:t,shareCode:a}=e,{data:r}=yield this.request.post("/approval/web/api/chat/getChat",{data:{instanceId:t,shareCode:a}});return r}))}markTask(e){return Et(this,void 0,void 0,(function*(){yield this.request.post("/approval/web/api/v2/MarkTask",{data:{System:e.system,ID:e.taskId,TargetTaskStatus:bt.Processing,Topic:e.topic}})}))}}class Rt extends g{}var Dt=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};function At(e,t){return e.map((e=>{const a={avatarUrl:e.iconLink,departmentName:e.departmentName,id:e.id,name:e.name,openId:e.OpenId,type:e.type,email:e.email,employeeNo:e.employeeNo,tenantId:e.tenantId,tenantName:e.tenantName};if(t&&Object.prototype.hasOwnProperty.call(t,e.id)){const r=t[e.id];a.userApproverType=r}return a}))}class kt{constructor(e){this.searchUsers=e=>Dt(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/user/searchUsers",{data:e});return{hasMore:t.hasMore,userList:At(t.entityList)}})),this.getUserInfoById=e=>Dt(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/user/queryUsers",{data:e});return t.userList.map((e=>Object.assign(Object.assign({},e),{id:e.userId})))})),this.getDepartmentInfoByUserId=e=>Dt(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/user/userDepartmentInfo",{data:{imitateUserId:e.userId}});return t.departmentList.map((e=>Object.assign({},e)))})),this.request=e}GetUser(e){return Dt(this,void 0,void 0,(function*(){const{data:t}=yield this.request.get("/approval/web/api/base/GetUser?user_id="+e);return t}))}}var Pt,Ct,qt=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Mt{constructor(e){this.request=e}createChat(e){return qt(this,void 0,void 0,(function*(){const{instanceId:t,userIds:a,openIds:r,name:n,shareCode:o,mode:i}=e;console.log("createChat payload >>>",e);const{data:s,meta:{logId:p}}=yield this.request.post("/approval/web/api/chat/chatEnter",{data:{procInstId:t,userIds:a,OpenIds:r,name:n,shareCode:o,mode:i}});return{data:s,logId:p}}))}getChatInfo(e){return qt(this,void 0,void 0,(function*(){const{instanceId:t,shareCode:a}=e,{data:r,meta:{logId:n}}=yield this.request.post("/approval/web/api/chat/getChat",{data:{instanceId:t,shareCode:a}});return{data:r,logId:n}}))}shareInstance(e){return qt(this,void 0,void 0,(function*(){yield this.request.post("/approval/web/api/instance/share",{data:e})}))}}(function(e){e[e.None=0]="None",e[e.ProcessManager=1]="ProcessManager",e[e.AppAdmin=2]="AppAdmin"})(Pt||(Pt={})),function(e){e[e.Default=0]="Default",e[e.Admin=1]="Admin"}(Ct||(Ct={}));class jt{constructor(e){this.groupingV2=e=>function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){const{data:{Responses:t}}=yield this.request.post("/approval/web/api/v2/Grouping",{data:{Requests:e.requests}});return console.log("groupingV2",t),t||[]})),this.request=e}}var Nt=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Ft extends g{exchangeRate(e){return Nt(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/exchangeRate/query",{data:e});return t}))}getCurrencyList(){return Nt(this,void 0,void 0,(function*(){const{data:e}=yield this.request.get("/approval/web/api/currency/list");return e}))}}var Ht=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Ut extends g{markTaskRead(e){return Ht(this,void 0,void 0,(function*(){yield this.request.post("/approval/web/api/v2/ApplyAction",{data:{Action:{ActionType:"MARK_TASK_READ"},TaskID:e.taskId,InstanceID:e.instanceId,ShareCode:e.shareCode}})}))}markCcRead(e){return Ht(this,void 0,void 0,(function*(){yield this.request.post("/approval/web/api/v2/ApplyAction",{data:{Action:{ActionType:"MARK_CC_READ"},TaskID:e.ccId,InstanceID:e.instanceId,ShareCode:e.shareCode}})}))}autoMarkRead(e){return Ht(this,void 0,void 0,(function*(){yield this.request.post("/approval/web/api/v2/ApplyAction",{data:{Action:{ActionType:"MARK_READ_AUTO"},TaskID:e.taskIdOrCcIdOrInstanceId,InstanceID:e.instanceId,ShareCode:e.shareCode}})}))}ccRead(e){return Ht(this,void 0,void 0,(function*(){yield this.request.post("/approval/web/api/cc/read",{data:{all:!1,instanceIds:[e.instanceId],procInstIDs:[],searchKey:"",approvalIds:[]}})}))}}class Kt extends g{getDepartmentsPermission(e){return function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){return yield this.request.post("/approval/web/api/getUsersDepartmentPermissionURL",{data:{departmentIds:e}})}))}}class zt{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}var Xt=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};const $t=["/atsx/api","/hr/v1/users","/api/knowledge/entity/batch_search/feedback","/api/knowledge/pinyin/enhance/","/api/knowledge/entity/batch_search/v2"],Gt="X-Lark-Approval-Token",Bt=function(){let e;const t={};let a=null;return{getJwt(e){return Xt(this,void 0,void 0,(function*(){return yield null==a?void 0:a.promise,t[e]}))},startDeferred(){a=new zt},resolveDeferred(){null==a||a.resolve()},setJwt(e,a){t[e]=a},getJwtHttpHeader(e){return Xt(this,void 0,void 0,(function*(){yield null==a?void 0:a.promise;const r=t[e];if(void 0===r)throw new Error("[jwtServer]: 获取不到 jwt,jwt key 为 "+e);return{jwtHeaderKey:Gt,jwtHeaderValue:r}}))},__dangerouslySetCurrentJwtKey(t){e=t},__dangerouslyGetCurrentJwtHttpHeader(r){return Xt(this,void 0,void 0,(function*(){if(yield null==a?void 0:a.promise,function(e){return $t.some((t=>e.includes(t)))}(r)){if(void 0===e)throw new Error("[jwtServer]: 获取当前 jwt 出错,因为当前 jwt key 未被设定,请求的 url 为 "+r);const a=t[e];if(void 0===a)throw new Error(`[jwtServer]: 获取当前 jwt 出错,获取不到当前 jwt key 对应的 jwt,请求的 url 为 ${r},currentJwtKey 为 ${e}`);return{jwtHeaderKey:Gt,jwtHeaderValue:a}}return{jwtHeaderKey:Gt,jwtHeaderValue:void 0}}))}}}();var Vt=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Yt{constructor(e){this.giftTablePre=e=>Vt(this,void 0,void 0,(function*(){const{current:t,orderId:a,pageSize:r}=e.requests,n=yield this.getHeaderConfig(e.instanceId);return yield this.request.get(`https://aplus-pre.bytedance.com/gifts/api/giftwebbg/approve/gift-info?current=${t}&orderId=${a}&pageSize=${r}`,n)})),this.giftTablePrd=e=>Vt(this,void 0,void 0,(function*(){const{current:t,orderId:a,pageSize:r}=e.requests,n=yield this.getHeaderConfig(e.instanceId);return yield this.request.get(`https://aplus.bytedance.com/gifts/api/giftwebbg/approve/gift-info?current=${t}&orderId=${a}&pageSize=${r}`,n)})),this.request=e}getHeaderConfig(e){return Vt(this,void 0,void 0,(function*(){const{jwtHeaderKey:t,jwtHeaderValue:a}=yield Bt.getJwtHttpHeader(e);return{headers:{[t]:a}}}))}}class Wt extends g{getLeaveBalance(e){return function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/leave/balance/detail",{data:e});return t}))}}var Jt=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Qt extends g{queryHandoverRecord(e){return Jt(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/handover/record/query",{data:e});return t}))}setIgnore(e){return Jt(this,void 0,void 0,(function*(){const{data:t}=yield this.request.put("/approval/web/api/handover/promot/ignore",{data:e});return t}))}}class Zt extends g{getRemedyCount(e){return function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){return yield this.request.post("/approval/web/api/clock_in/approval/get_remedy_count",{data:{instance_code:e}})}))}}class ea{constructor(e){this.request=e}getInstanceIdFromShortLink(e){return function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){const{shortLink:t}=e,{data:a}=yield this.request.post("/approval/web/api/convert/shortLinkToLongLink",{data:{shortLink:t}});return a}))}}class ta{constructor(e){this.request=e}getAllEditHistoryByInstanceId(e){return function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){const{instanceId:t}=e,{data:{infos:a}}=yield this.request.post("/approval/web/api/instance/getFormHistoryV2",{data:{instanceId:t}});return a}))}}class aa{constructor(e){this.getExternalData=e=>function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/approval/getExtraStringDataWithParams",{data:e.request});return t})),this.request=e}}const ra=new class{constructor(){this.localCache={}}set(e){const{namespace:t,key:a,data:r}=e,n=this.localCache[t];a?n[a]=r:this.localCache[t]=r}initNamespace(e,t=!0){this.localCache[e]&&!t||(this.localCache[e]={})}get(e){const{namespace:t,key:a}=e,r=this.localCache[t];if(!r)throw"找不到namespace:"+t;const n=r[a];return{hasCachedData:Object.prototype.hasOwnProperty.call(r,a),data:n}}clear(e){for(const t in this.localCache)0===t.indexOf(e)&&delete this.localCache[t];delete this.localCache[e]}};var na=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class oa extends g{pullBusinessDataByRowKey(e,t){return na(this,void 0,void 0,(function*(){const{pullConfig:a={},payload:r}=e,{data:n}=yield t({payload:JSON.stringify(r),method:a.method||"",context:a.context||""});if(!Reflect.has(n,"list"))throw"get list data error";return n}))}pullBusinessData(e,t){return na(this,void 0,void 0,(function*(){const{pullConfig:a={}}=e,{data:r}=yield t({method:a.method||"",context:a.context||"",payload:JSON.stringify(e.payload)});if(!Reflect.has(r,"list"))throw"get list data error";return r}))}getCachedBusinessDataByRowKey(e,t){return na(this,void 0,void 0,(function*(){const{payload:a={},pullConfig:r}=e,{tableId:n="",rowKey:o="",pageSize:i=10,namespace:s=""}=a,p=`${n}_${i}_$rowKey_${o}`,{hasCachedData:l,data:c}=ra.get({namespace:s,key:p});if(l)return c;const{data:u}=yield t({payload:JSON.stringify({tableId:a.tableId,pageSize:a.pageSize,rowKey:a.rowKey}),method:(null==r?void 0:r.method)||"",context:(null==r?void 0:r.context)||""});return ra.set({namespace:s,key:p,data:u}),u}))}getCachedBusinessData(e,t){return na(this,void 0,void 0,(function*(){const{payload:a={},pullConfig:r,refreshType:n}=e,{tableId:o="",pageIndex:i=1,pageSize:s=10,namespace:p=""}=a,l=`${o}_${s}_${i}`,{hasCachedData:c,data:u}=ra.get({namespace:p,key:l});if(c&&!n)return u;"all"===n&&ra.set({namespace:p,data:{}});const{data:d}=yield t({payload:JSON.stringify({tableId:a.tableId,pageSize:a.pageSize,pageIndex:a.pageIndex}),method:(null==r?void 0:r.method)||"",context:(null==r?void 0:r.context)||""});return ra.set({namespace:p,key:l,data:d}),d}))}}class ia{constructor(e){this.mGetActions=e=>function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){const t="versionId"in e?{VersionID:e.versionId}:{InstanceID:e.instanceId},{data:a}=yield this.request.post("/approval/web/api/instance/widget/mGetActions",{data:Object.assign(Object.assign({},t),{Requests:e.requests,ValuesJSON:JSON.stringify(e.values)})}),r=a.I18nResources.reduce(((e,t)=>(Object.assign(e,t.Texts),e)),{});return a.Responses.map((e=>((e,t)=>JSON.parse(e).map((e=>e.map((e=>{if("SetOptions"===e.type)return{type:e.type,value:e.value.value.map((({value:e,text:a})=>({label:t[a],value:e}))),widgetId:e.widgetID};console.error(`[parseActionJson] action.type "${e.type}" is not implemented`)})).filter((e=>Boolean(e))))))(e.ActionJSON,r)))})),this.request=e}}var sa=a(157);function pa(){let e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(a){let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===a?r:3&r|8).toString(16)}))}var la=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};const ca=e=>e.toLowerCase();function ua(e){return e.filter((e=>!da.has(ca(e.name))))}const da=new Set(["审批","飞书","Approval","管理员","测试","离职","合同","付款","添加","财务信息","中卫通","立项","结算","加签","线上","单据","灰度测试","Source","ByteDance","Ratio","Operator","Reference","Enterprise","Settlement","CC","pm","Purchase Request","Procurement","Total","Contract","Co"].map(ca)),ha={},va=[];class _a extends g{constructor(e,t){var a,r;super(e),this.done=!0,this.debounceFlushQueue=Object(sa.a)((()=>la(this,void 0,void 0,(function*(){if(0===va.length)return void(this.done=!0);const e=va.splice(0,20),t=e.map((({text:e})=>e)),a=e.map((({resolve:e})=>e));this.fetchLingoInfo(t).then((e=>{e.data.phrases.forEach(((e,t)=>{a[t](e)}))})),this.debounceFlushQueue()}))),1500),this.filterPhraseGroup=ua,this.env=null!==(a=t.env)&&void 0!==a?a:"prd",this.isVaLark=null!==(r=t.isVaLark)&&void 0!==r&&r}fetchLingoInfo(e){const t={enter_from:"approval",scene:1,texts:e};return this.request.post((this.isVaLark?{prd:"https://ai.larksuite.com/baike/v2/api/batch_recall",pre:"https://ai.larksuite-pre.com/baike/v2/api/batch_recall",boe:"https://ai.larksuite-boe.com/baike/v2/api/batch_recall",local:"https://ai.larksuite.com/baike/v2/api/batch_recall"}:{prd:"https://ai.feishu.cn/baike/v2/api/batch_recall",pre:"https://ai.feishu-pre.cn/baike/v2/api/batch_recall",boe:"https://ai.feishu-boe.cn/baike/v2/api/batch_recall",local:"https://ai.feishu-pre.cn/baike/v2/api/batch_recall"})[this.env],{data:t})}getLingoTextInfo(e){const t=ha[e];if(t)return t;const a=new Promise((t=>{va.push({resolve:t,text:e})}));return ha[e]=a,this.done&&this.debounceFlushQueue(),a}getLingoNodes(e){return la(this,void 0,void 0,(function*(){const t=e.split("\n"),a=(yield Promise.all(t.map(this.getLingoTextInfo,this))).map(this.filterPhraseGroup,this);return this.transformEachPhraseToNodes(a,t)}))}transformEachPhraseToNodes(e,t){const a=[];return e.forEach(((e,r)=>{const n=t[r];let o=0;e.forEach((e=>{const{ids:t,name:r,span:{start:i,end:s}}=e;i>o&&a.push({type:"text",content:n.substring(o,i)}),a.push({uid:"lingo-"+pa(),type:"lingo",content:n.substring(i,s),id:t.join(","),query:r}),o=s})),o`(${e})`.replace(/\./g,"\\."))).join("|")})($|\\/)`);return t.test(e)}(r))return null;const n=function(e){let t="";try{t=new URL(e).pathname}catch(e){return null}const a=/^\/[^/]*/.exec(t);return a?a[0].slice(1):null}(r);if(!n||!Sa.includes(n))return null;const{token:o,type:i,protocol:s,preText:p="",restText:l="",search:c="",hash:u="",url:d=""}=function(e,t=!1,a=!0){if(!t){const e="\n 请使用'$helpers/suiteHelper.ts'中的getToken\n 因为url形式多样, 如:\n doc/docXXX\n wiki/wikXXX\n 你的组件可能需要docXXX而不是wikXXX\n 如果你确认需要解析传入url的token, 请为parseOriginUrl第二个参数传入true\n 如果需要支持请联系 @kuanglijun @zhangraoli\n ";console.error(e)}const r=new RegExp(`^${(e=>e.map((e=>e.source)).join("?"))([/(?:([A-Za-z]+):\/\/)/,/(?:([.\-\w]+))/,/(?::(\d+))/,/(\/[^?#\s\u2E80-\u9FFF]*)/,/(\?[^#\s]*)/,/(#[^\s]*)/,a?/([\s\S]*)/:/(?:([\s\S]*))/])}?$`);let n="";a||(n=Oa(e).preText);const o=r.exec(Oa(e).urlWithRest)||[],[,i="",s="",p="",l="",c="",u="",d=""]=o,h=/(?:\/)?(?:space\/|drive\/|workspace\/)?([a-zA-Z-_]+)?(?:\/([a-zA-Z0-9]*))(.*)/.exec(l)||[],v=h[3]||"",_={protocol:i,hostname:s,port:p,pathname:l,type:Ea(h[1]),token:h[2]||"",search:c,hash:u,url:e};if(a)(v||d)&&(_.token="");else if(_.preText=n,v){_.restText=v+c+u+d;const t=_.token+_.restText;_.url=Oa(e).urlWithRest.replace(t,_.token)}else _.restText=d,_.url=Oa(e).urlWithRest.slice(0,d?-d.length:void 0);return _}(e,!0,t);return o&&i?{preText:p,token:o,type:i,restText:l,protocol:s,suiteTypeNum:Aa[i]||Aa[Ia.DOC],mentionTypeNum:Pa[i]||Pa[ka.DOC],search:c,hash:u,url:d}:null}const qa={docx:"docx",docs:"doc",sheets:"sheet",wiki:"wiki",base:"bitable",mindnotes:"mindnote"},Ma=e=>{const t=(e=>{const t=wa(e);try{const{pathname:e}=new URL(t);return e.split("/").filter(Boolean)}catch(e){return console.error(t,e),[]}})(wa(e)),a=t[0];return{type:qa[a],token:t[1]}};var ja=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Na extends g{constructor(){super(...arguments),this.getCloudDocTitle=e=>ja(this,void 0,void 0,(function*(){if(!(e=>!!Ca(e.replace(/\/+$/,""),!0))(e))return{ok:!1,reason:"not a cloud doc link "+e};if(ga.hasCache(e)){const t=yield ga.get(e);if(t.hit)return{ok:!0,title:t.title}}const t=Ha(e);if(!t.support)return{ok:!1,reason:t.type+" not support yet"};try{let a="";if("wiki"===t.type){const r=this.getWikiInfo(t);a=yield ga.recordWiki(e,r)}else{const r=this.getDocumentInfo(t);a=yield ga.recordDoc(e,r)}return{ok:!0,title:a}}catch(e){return{ok:!1,reason:fa(e)}}}))}getDocumentInfo(e){return ja(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/GetDocument",{data:{DocsToken:e.token,DocsType:e.type}});return t}))}getWikiInfo(e){return ja(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/GetWikiNodeV2",{data:{WikiToken:e.token}});return t}))}searchDocument(e){return ja(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/SearchDocument",{data:e});return t}))}copyDocument(e){return ja(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/CopyDocument",{data:e});return t}))}}const Fa=["docx","doc","bitable","sheet","wiki","mindnote"],Ha=e=>{const t=Ma(e);return Object.assign(Object.assign({},t),{support:Fa.includes(t.type)})};var Ua=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Ka{constructor(e){this.request=e}getUISchemaAndUIData(e){return Ua(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/smart-approval-designer/GetUISchemaAndUIData",{data:e,headers:{"Cache-Control":"no-cache"}});return t}))}setUISchemaAndUIData(e){return Ua(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/smart-approval-designer/SetUISchemaAndUIData",{data:e});return t}))}}var za=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Xa extends g{getCountryCodeMap(){return za(this,void 0,void 0,(function*(){const{data:e}=yield this.request.post("/approval/web/api/getCountryCodeMap");return e||Promise.reject("Get Country Code Map Error")}))}deleteHistoryRecord(e){return za(this,void 0,void 0,(function*(){const t=yield this.request.post("approval/web/api/deleteWidgetHistoryRecord",{data:{recordId:e.recordId,widgetId:e.widgetId,approvalId:e.approvalId}});return t.data?t.data:Promise.reject("delete history record failed")}))}}var $a=a(410),Ga=(a(409),function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))});class Ba extends g{generateQrCode({taskId:e,appId:t,page:a,host:r}){return Ga(this,void 0,void 0,(function*(){return(yield this.request.post("/approval/web/api/signature/generateQrCode",{data:{taskId:e,applink:`https://${r}/client/mini_program/open?appId=${t}&path=${a}`}})).data}))}verifyExpiration({taskId:e,qrCodeId:t,from:a}){return Ga(this,void 0,void 0,(function*(){return(yield this.request.post("/approval/web/api/signature/verifyExpiration",{data:{taskId:e,qrCodeId:t,from:a}})).data}))}}var Va=function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))};class Ya{constructor(e){this.validGrayTenant=()=>Va(this,void 0,void 0,(function*(){return(yield this.request.post("/approval/web/api/work/leave/gray_tenant/validate")).data.in_gray})),this.getOvertimeApprovalInfo=e=>Va(this,void 0,void 0,(function*(){return(yield this.request.post("/approval/web/api/work/overtime/approval/get",{data:{instance_id:e.instance_id}})).data})),this.request=e}}class Wa extends g{getLetsignBoilerplateStarPreviewUrl(e){return function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){const{data:t}=yield this.request.post("/approval/web/api/letsign/boilerplate/start/preview",{data:e});return null==t?void 0:t.url}))}}const Ja={zh:"zh-CN",en:"en-US",ja:"ja-JP"};class Qa extends G{constructor(e){var{locale:t,actAs:a,apiBasePath:r,eventReportService:n,log:o,atDebugFg:i,getRequest:s,env:p,isVaLark:l}=e,c=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n{const e=s();return t=>e(Object.assign(Object.assign({},t),{usePrefetchCache:ge(t,"ApiService")}))},onRequestError:({config:e,response:t,error:a,ctx:r})=>{a instanceof $a.a?null==n||n.api.finishHook({error:a,ctx:r}):t?t.then((t=>{null==n||n.api.finishHook({error:this.getApiErrorFromRes(t),resBody:t,requestConfig:t.config||e,ctx:r})}),(t=>{null==n||n.api.finishHook({error:t,requestConfig:e,ctx:r})})):null==n||n.api.finishHook({error:new $a.a({message:"unknown api error"}),requestConfig:e})}})),this.address=new V(this),this.detail=new Ye(this),this.cloudDoc=new Na(this),this.comment=new It(this),this.blockComment=new Tt(this),this.common=new f(this),this.operation=new xt(this),this.approvalRecord=new Rt(this),this.user=new kt(this),this.chat=new Mt(this),this.grouping=new jt(this),this.amount=new Ft(this),this.read=new Ut(this),this.department=new Kt(this),this.giftTable=new Yt(this),this.leaveGroup=new Wt(this),this.bankAccount=new w(this),this.resignNotice=new Qt(this),this.signature=new Ba(this),this.remedyGroup=new Zt(this),this.workGroup=new Ya(this),this.schemaTool=new Ka(this),this.shortLink=new ea(this),this.editHistory=new ta(this),this.getExternalData=new aa(this),this.signGroupApiService=new Wa(this),this.tableApiService=new oa(this),this.widgetService=new ia(this),this.telephoneApiService=new Xa(this),this.isUsingEnvHeader=!1,this.locale=t,this.actAs=a,this.apiBasePath=r,this.eventReportService=n,this.log=o,this.lingo=new _a(this,{env:p,isVaLark:l}),this.interceptors.request.use((e=>{const{url:t=""}=e||{};if(this.apiBasePath){const a=this.apiBasePath;t.includes("/approval/web")&&!t.includes(a)&&(e.url=t.replace("/approval/web",a))}return e})),this.interceptors.request.use((e=>(e.ctx=Object.assign(Object.assign({},e.ctx||{}),{apiStartTime:Date.now()}),e.url&&this.locale&&(e.url=ba(e.url,"locale",Ja[this.locale])),e.url&&this.actAs&&(e.url=ba(e.url,"act_as",this.actAs)),e))),this.interceptors.request.use((e=>{var t;return(null===(t=e.url)||void 0===t?void 0:t.includes("v2/MGetDetail"))&&e.isPreload&&(e.headers=e.headers||{},e.headers["x-approval-preload"]="yes"),e})),this.interceptors.response.use((e=>{var t;const{httpStatus:a,response:r={},config:n,headers:o={},ctx:i}=e,s=e.ttRequestResMeta||{},p=o["x-tt-logid"],l=o["x-tt-trace-host"],{code:c}=r;if(0!==c)throw this.getApiErrorFromRes(e);null===(t=this.eventReportService)||void 0===t||t.api.finishHook({requestConfig:n,httpStatus:a,resHeaders:o,ctx:i});const u=e.ctx,d=u.apiEndTime||Date.now(),h={traceHost:l,logId:p,ttRequestResMeta:s,usePrefetchCache:"usePrefetchCache"in n?n.usePrefetchCache:"unset",isWebPrefetch:!1,webPrefetchSource:"unset",isLarkPrefetch:!!(null==s?void 0:s.isPrefetch),isPreloaded:!1,responseTime:d-u.apiStartTime,withoutPrefetchReason:"unset",prefetchMismatchReason:"unset",formCachePolicy:"unset"};return Object.assign(Object.assign({},r),{meta:h,ctx:u})})),(null==i?void 0:i.getXTtEnv())?(this.interceptors.request.use((e=>(e.headers=Object.assign(Object.assign({},e.headers),{"x-tt-env":i.getXTtEnv()}),e))),this.isUsingEnvHeader=!0):this.isUsingEnvHeader=!1}getApiErrorFromRes(e){const{httpStatus:t,response:a={},requestConfig:r,headers:n={}}=e,o=n["x-tt-logid"],{code:i,data:s,msg:p}=a,{ErrorMessage:l}=s||{},c="zh"===this.locale?"网络错误":"Network Error",u=l||p||c;return new $a.a({requestConfig:r,response:a,responseHeaders:n,message:u,httpStatus:t,bizCode:i,meta:{logId:o}})}}var Za=a(37);const er=e=>(e=>/^[0-9]+\.[0-9]+\.[0-9]+$/.test(e))(e)?e:"2.104.8";var tr=new Set,ar=a(3),rr=a.n(ar);new Set;var nr=new class{constructor(){this._info=void 0}ensureSystemInfo(){return this._info||(this._info=tt.getSystemInfoSync()),this._info}update(){this._info=tt.getSystemInfoSync()}get info(){return this.ensureSystemInfo()}get isPC(){var{brand:e,model:t}=this.info;return[t.toLowerCase(),e].some((e=>"pc"===e))}get isDevtool(){var{platform:e,brand:t,model:a}=this.info,r="devtools";return e===r||t===r||a===r}get isIOS(){var{platform:e}=this.info;return"ios"===e||/ios/i.test(e)}get isPad(){var{model:e}=this.info;return e.includes("iPad")}get isAndroid(){var{platform:e}=this.info;return"android"===e||/android/i.test(e)}updateForNavigation(){var e;(null===(e=this._info)||void 0===e?void 0:e.navigationBarSafeArea)||this.update()}};(e=>{tr.add(e)})(nr.update.bind(nr));var or,ir=["statusCode","data","header"],sr=[99991641,99991642,99991643],pr=(e=>t=>new Promise(((a,r)=>{e(Object(c.a)(Object(c.a)({},t),{},{success:e=>{a(e)},fail:e=>{r(e)}}))})))(tt.login),lr=null,cr=0;function ur(e){var t=this,a=function(){var a=Object(i.a)((function*(a){var r,n;if(cr>=3)throw console.log("try ".concat(cr," reLogin failed")),a;if(a instanceof $a.a&&400===a.httpStatus&&sr.includes(null===(r=a.response)||void 0===r?void 0:r.code)){if(console.log("⚠️ Session Invalid",null===(n=a.response)||void 0===n?void 0:n.code),lr?(yield lr,lr=null):lr=new Promise(function(){var a=Object(i.a)((function*(a,r){var n;cr++,console.log("at default relogin");try{var o=yield pr();if(!(n=null==o?void 0:o.code))throw Error("tt login with no code, res: ".concat(JSON.stringify(o)))}catch(e){return lr=null,console.error("reLoginPromise error",e),void r(new Error("tt login failed: ".concat(e)))}try{yield t.request({url:"".concat(e.loginHost,"/accounts/auth_login/internal/login"),method:"post",data:{code:n,app_id:e.appId,suite_app_id:e.suiteAppId}})}catch(e){return lr=null,console.error(e),void r(new Error("web login failed"))}a()}));return function(e,t){return a.apply(this,arguments)}}()),!a.requestConfig)throw new Error("no requestConfig found in error, retry failed");return t.request(a.requestConfig)}throw a}));return function(e){return a.apply(this,arguments)}}();return[e=>e,a]}Error;class dr extends Qa{constructor(e){var t=Object(u.a)({},e),{loginConfig:a}=t,r={"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"};super(Object(c.a)(Object(c.a)({},t),{},{getRequest:()=>e=>function(e){var{url:t,method:a="POST",headers:r={},data:n={},params:o,usePrefetchCache:i}=e,s="GET"===a.toUpperCase(),p=t;!s&&o&&Object(k.a)(o)&&!Object(ne.a)(o)&&Object.keys(o).forEach((e=>{p=ba(p,e,o[e])}));var{info:l}=nr,u={url:p,method:a,header:Object(c.a)(Object(c.a)({},r),{},{"LA-Client-Type":nr.isPC?"sidebar":"mobile","LA-Lark-Version":l.version,"LA-SDK-Version":l.SDKVersion,"LA-Client-Version":er("2.127.0")}),data:s?o:n};return new Promise(((e,t)=>{tt.request(Object(c.a)(Object(c.a)({},u),{},{usePrefetchCache:i,success:t=>{var a=t||{},{statusCode:r,data:n,header:o}=a,i=Object(Za.a)(a,ir);e({requestConfig:u,response:n,headers:o,httpStatus:r,ttRequestResMeta:i})},fail:e=>{t(e)}}))}))}(Object(c.a)(Object(c.a)({},e),{},{headers:Object(c.a)(Object(c.a)({},e.headers),r)}))})),this.interceptors.response.use(...ur.call(this,a))}}Date.now();var hr=a(214),vr=a(39),_r=a(50),br=a(12),fr=a(35),gr=a(4),wr=a(28),yr=a(16),mr=a(24),Sr=a(20),Or=a(477),Ir=a(681),Tr=(e,t)=>{var{query:a}=e,r=t.getCurrentNav(a.tab_name);return function(e,t){var a=Object.entries(null!=t?t:{}).filter((e=>{var[t,a]=e;return Boolean(a)})).map((e=>{var[t,a]=e;return"".concat(t,"=").concat(a)})).join("&");return a?"".concat(e,"?").concat(a):e}(t.to,{tabPage:t.tabPage,currentNav:r,instanceId:a.id,instanceCode:a.instanceCode?a.instanceCode:a.instanceId,shareCode:a.shareCode,source:a.source,system:a.system,oaParams:a.oaParams,oaURL:a.oaURL,dateType:a.dateType,startTime:a.startTime,efficiencyTab:a.efficiencyTab,action:a.action,approvalStatusIndex:a.approvalStatusIndex})},Er=a(22),Lr=a(114);a(204);var xr,Rr=Object(Sr.c)("shared:src/services/trace/report.ts"),Dr=a(2),Ar=a(10);!function(e){e.YYYYMMDD="YYYY-MM-DD",e.YYYYMMDDHHMM="YYYY-MM-DD hh:mm",e.YYYYMMDDHH="YYYY-MM-DD hh",e.YYYYMMDDHH_HALF="YYYY-MM-DD hh:h/2",e.YYYYMMDDA="YYYY-MM-DD a",e.HHmm="HH:mm"}(xr||(xr={}));var kr=e=>e<10?"0".concat(e):"".concat(e),Pr=6e4,Cr=60*Pr;function qr(e,t,a){if(!e||"number"!=typeof e)return a||"---- --:--";if("rough"===t)return((e,t)=>{t=t||Date.now();var a=new Date(e),r=new Date,n=a.getFullYear(),o=a.getMonth()+1,i=a.getDate(),s=a.getHours(),p=a.getMinutes(),l=o,c=String(i).padStart(2,"0"),u=String(s).padStart(2,"0"),d=String(p).padStart(2,"0"),h=r.getFullYear(),v=t-e,_=Math.floor(v/Cr),b=Math.floor(v%Cr/Pr),f=v%Pr/1e3;return n=24?"".concat(l,"-").concat(c," ").concat(u,":").concat(d):_>=1?Object(Dr.t)(_>1?"Card_HoursAgo":"Card_HourAgo",{hour:_}):b<=0&&f<60?Object(Dr.t)("JustNow"):Object(Dr.t)(b>1?"Card_MinutesAgo":"Card_MinuteAgo",{minute:b})})(e);var r=new Date(e),{YYYY:n,MM:o,DD:i,hh:s,mm:p,noon:l,ss:c}=(e=>{var t=new Date(e),a=t.getFullYear(),r=t.getMonth()+1,n=kr(r),o=t.getDate(),i=kr(o),s=t.getHours(),p=kr(s),l=t.getMinutes(),c=kr(l),u=t.getSeconds(),d=kr(u),h="AM",v=Object(Dr.t)("AM"),_=new Date(a,r-1,o,12,0,0).getTime();return t.getTime()-_>=0&&(v=Object(Dr.t)("PM"),h="PM"),{YYYY:a,M:r,MM:n,D:o,DD:i,h:s,hh:p,m:l,mm:c,s:u,ss:d,noon:v,a:h}})(e);if("standard"===t)return n===(new Date).getFullYear()?"".concat(o,"-").concat(i," ").concat(s,":").concat(p):"".concat(n,"-").concat(o,"-").concat(i," ").concat(s,":").concat(p);switch(t){case"MM-DD hh:mm":return"".concat(o,"-").concat(i," ").concat(s,":").concat(p);case xr.YYYYMMDDHHMM:case xr.YYYYMMDDHH_HALF:return"".concat(n,"-").concat(o,"-").concat(i," ").concat(s,":").concat(p);case"YYYY-MM-DD hh:mm:ss":return"".concat(n,"-").concat(o,"-").concat(i," ").concat(s,":").concat(p,":").concat(c);case"MM-DD noon":return"".concat(o,"-").concat(i," ").concat(l);case xr.YYYYMMDD:return"".concat(n,"-").concat(o,"-").concat(i);case"YYYY.MM.DD":return"".concat(n,".").concat(o,".").concat(i);case"YYYY-MM-DD noon":case xr.YYYYMMDDA:return"".concat(n,"-").concat(o,"-").concat(i," ").concat(l);case"hh:mm|MM-DD":return(e=>(new Date).toDateString()===e.toDateString())(r)?"".concat(s,":").concat(p):"".concat(o,"-").concat(i);case"hh:mm":case xr.HHmm:return"".concat(s,":").concat(p);case"YYYY-MM-DD|MM-DD":return(e=>(new Date).getFullYear()===e.getFullYear())(r)?"".concat(o,"-").concat(i):"".concat(n,"-").concat(o,"-").concat(i);case"HH:mm":return"".concat(s,":").concat(p);default:return Ar.a.warn("time.ts timeStringFormat","[Time util] Invalid format type: ".concat(t)),"".concat(o,"-").concat(i," ").concat(s,":").concat(p)}}var Mr=a(316);function jr(e){_r.a.addWhiteKey(["user_config","user_info"]),Object(p.d)(e,qr),e.query.inspect&&Object(Mr.b)(!0),Object(Sr.b)((e=>{Object(p.c)(e.status),Rr("jsSdkLaunchTraceReport",Object(p.b)())}))}var Nr=a(221),Fr=a(217),Hr=a(317),Ur=(a(1339),a(36)),Kr=a(537),zr=a(680),Xr=a(196),$r=a(601),Gr=a(194),Br=a(391),Vr=a(256),Yr=a(0),Wr=Object(Sr.c)("pc:src/app-pc.tsx"),Jr=Object(Br.a)();Object(gr.i)({enforceActions:"observed"});class Qr extends rr.a.Component{constructor(){super(...arguments),Object(s.a)(this,"getAndRefreshUserAccessToken",Object(i.a)((function*(){var e=yield Object(Ur.h)();Ar.a.info("====== getAndRefreshUserAccessToken res",e),e.code?yr.c.getAndRefreshUserAccessToken({Code:e.code}).then((e=>{mr.b.globalStore.setData("userAccessToken",e.data.Token),Wr("refreshAuthentication",{path:"@/utils/app.ts",type:"success",func:"api.getAndRefreshUserAccessToken",data:JSON.stringify(e)})})).catch((e=>{Wr("refreshAuthentication",{path:"@/utils/app.ts",type:"fail",func:"api.getAndRefreshUserAccessToken",data:JSON.stringify(e)})})):Wr("refreshAuthentication",{path:"@/utils/app.ts",type:"fail",func:"tt.login",data:JSON.stringify(e)})}))),Object(s.a)(this,"reportColdLaunch",(()=>{var{language:e,version:t,model:a,brand:r,platform:n,system:o,screenHeight:i,screenWidth:s,pixelRatio:p,windowHeight:l,windowWidth:c}=vr.h,u={language_code:e,version:t,model:a,brand:r,system:o,platform:n,env:wr.j,screenHeight:i,screenWidth:s,pixelRatio:p,windowHeight:l,windowWidth:c};Object(br.b)("mp_launch_sys_info",u),Wr("launchSystemInfo",u)})),Object(s.a)(this,"setRouteEvent",(()=>{"function"==typeof fr.b.onAppRoute&&fr.b.onAppRoute((e=>{Object(p.e)("enterRouter"),Object(Nr.a)(e.path),Object(Fr.e)(e),Object(Sr.g)(),Object(br.b)("mp_on_app_route",{openType:e.openType,url_path:e.path,scene:e.scene,query:JSON.stringify(e.query)}),mr.b.globalStore.setPagePath(e.path),Wr("commonOnAppRoute",{openType:e.openType,url_path:e.path,scene:e.scene,query:JSON.stringify(e.query)}),Ar.a.info("mp_on_app_route",{openType:e.openType,url_path:e.path,scene:e.scene,query:JSON.stringify(e.query)})}))})),Object(s.a)(this,"initFirstScreen",(e=>{try{mr.b.indexStore.setOrtOrders();var{query:t={},path:a,scene:r}=e,{id:n="",instanceCode:o="",instanceId:i="",shareCode:s="",commentId:p="",replyId:l="",blockCommentId:c="",blockReplyId:u="",taskId:d="",system:h,tab_name:v="",oaParams:_="",oaURL:b="",extra:f,forceTrusteeship:g,definitionName:w,showBlockComment:y,authId:m,hijackTask:S}=t,O=(()=>{try{Wr("definitionNameStr",{definitionName:w});var e=JSON.parse(w||"{}"),t=e[Object(Dr.getCurLang)()]||e[Dr.SimpleLangEnum.zh];return Wr("definitionNameRet",{cur:e[Object(Dr.getCurLang)()],ret:t}),t}catch(e){Wr("definitionNameError",Object.getOwnPropertyNames(e))}})(),I=s||d||n||o||i,T=I,E=h,L=Object(Er.g)(a);if(Object(zr.b)(e,T),mr.b.globalStore.AppCenterToWindow){var x=_r.a.getSync(Lr.a);T=null==x?void 0:x.ID,E=null==x?void 0:x.System}Wr("sendFirstRequest",{timestamp:Date.now()});var R=!T&&S;if((T||R)&&Er.f.includes(a)){v&&v===Or.a.APPROVED?L=Er.a.Done:R&&(L=Er.a.Shared);var D=f?JSON.parse(f):void 0;mr.b.indexStore.setDetailByTask(!0);var A=R?JSON.parse(S):void 0;mr.b.indexStore.handleTask(T,E,L,{oaParams:_,oaURL:b,fromApplink:!0,extra:D,shareCode:s,commentId:p,replyId:l,blockCommentId:c,blockReplyId:u,forceTrusteeship:g,showBlockComment:y,authId:m,scene:String(r),fuzzyIdFromApplink:I},A)}else O&&mr.b.indexStore.menuStore.setApplinkDefinitionName(O),mr.b.indexStore.menuStore.setSelectedKey(L,L,[]),Wr("sceneTrack",{scene:r,currentId:T,hasHijackTask:R,path:a}),Ar.a.info("sceneTrack: ",r,T,R,a);_r.a.remove(Lr.a)}catch(e){mr.b.indexStore.menuStore.setSelectedKey(Er.a.Todo,Er.a.Todo,[]),Wr("commonOnError",{location:"in function initFirstScreen at /src/app-pc.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),Ar.a.error("app init error: ",e)}}))}componentDidMount(){}setLAHeaders(e){var{scene:t,query:a}=e,r=a.f||"",{version:n,SDKVersion:o,gadgetVersion:i}=vr.h,s={"LA-From":r,"LA-Scene":t,"LA-Client-Type":vr.e?"sidebar":"mobile","LA-Lark-Version":n,"LA-SDK-Version":o,"LA-Client-Version":i||"unknown"};yr.g(s),Ar.a.info("setAHeaders",s)}onLaunch(e){Object(p.e)("onLaunch"),Wr("commonAppLaunch",e),Ar.a.info("getLaunchOptionsSync",e),Object(Hr.b)(e),function(e){jr(e),Object(vr.f)(!0)}(e),Object(Xr.e)(o.a),(e=>{var{locale:t,baseURL:a,loginConfig:r}=e;or=new l.a({eventReportService:void 0}),new dr({locale:t,baseURL:a,loginConfig:r,log:or})})({locale:Object(Dr.getCurLang)(),baseURL:Jr}),Object(hr.c)({router:e,beforeGrouping:()=>{Object(Kr.b)(),this.initFirstScreen(e),this.getAndRefreshUserAccessToken(),mr.b.globalStore.updateHasSubordinates()},afterGrouping:e=>{var{createApproval:{sceneList:t,newDefinitionData:a}}=e,{createApprovalStore:r}=mr.b.indexStore;r.formateInitData(a,t),mr.b.globalStore.getUserAttributes()}}),Object($r.b)(e);var{scene:t}=e;mr.b.globalStore.setData("scene",t||0),this.setRouteEvent(),this.reportColdLaunch(),Object(hr.e)(),function(e){var t=Ir.a[e.path];t&&tt.redirectTo({url:Tr(e,t)})}(e)}componentDidShow(e){var{scene:t,path:a,query:r}=e;Wr("commonAppShow",{scene:t,url_path:a,query:JSON.stringify(r)}),Ar.a.info("mp_app_show",{scene:t,url_path:a,query:JSON.stringify(r)}),mr.b.globalStore.setIsForeground(!0),Vr.a.setIsForeground(!0),this.setLAHeaders(e),Object(Gr.b)(Xr.a),mr.b.indexStore.startTaskUpdaterPolling()}componentDidHide(){Object(Sr.f)(),Wr("commonAppHide"),mr.b.globalStore.setIsForeground(!1),Vr.a.setIsForeground(!1),mr.b.indexStore.stopTaskUpdaterPolling("commonAppHide")}componentDidCatchError(e){Wr("commonOnError",{msg:e})}render(){return Object(Yr.jsx)(mr.a.Provider,{value:mr.b,children:this.props.children})}}var Zr=Qr,en=a(572),tn={pages:["pc-pages/team-efficiency/index","pc-pages/index/index","pc-pages/create-form/index","pc-pages/setting/index","pc-pages/delegation/index","pc-pages/process-analysis/index","pc-pages/error/index","pc-pages/auto-approval/index","test-pages/document-trusteeshop-demo/index","pc/pages/approved/index","pc/pages/cc-2-me/index","pc/pages/requested/index","pc/pages/create-form/index","pc/pages/in-process/index","pc/pages/create/index","pc/pages/efficiency/index","pc/pages/data-export/index"],window:{backgroundTextStyle:"light",navigationBarBackgroundColor:"#fff",navigationBarTitleText:"Approval",navigationBarTextStyle:"black"},ext:{defaultPages:{sidebarMode:"pages/approval-list/index",PCMode:"pc-pages/index/index"}},offlineAssetsPath:"offline-assets/",prefetchRules:{"pc-pages/index/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListTask:{Direction:1,Filter:{DefinitionKeys:[],EndTimestamp:"",Querystring:"",StartTimestamp:"",Topic:1},NextPageToken:"",Order:2,PageSize:30}},{CountTask:{AllowDistinctOnly:[2,3,18],Filter:{}}},{GetLastCursor:{}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.pc_version","approval.web.pc_create_approval","approval.web.new_search_api","approval.web.view_other_tasks","approval.web.customdevtool","approval.web.delegation","approval.web.ugc_approval","approval.web.efficiency","approval.web.display_source","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.trip_address_v2","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.field_list_widget_table_type","approval.batch_approval.next","approval.web.fixed_doc_size","approval.web.data_export","approval.web.bitable","approval.web.show_approval_node_name","approval.web.starter_edit_doc","approval.web.definition_share","approval.web.process_analysis","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_choose_cross_tenant","approval.web.at_form_edit","approval.web.at_form_edit_p1","approval.web.at_form_edit_p2","approval.web.at_form_edit_telephone","approval.web.at_form_edit_address","approval.web.at_form_edit_widget_groups","approval.web.use_comment_confirm","approval.web.enable_drive","approval.web.enable_at_drive_edit","approval.web.at_form_edit_field_list","approval.web.at_form_edit_field_list_mini","approval.web.customize_print","approval.web.use_typography_print","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_group_time_check","approval.web.new_currency_api","approval.web.enable_enhanced_approval_list","approval.web.enable_table_batch_import","approval.web.enable.check_create_prepare_api","approval.web.bitable_connector","approval.web.enable_external_data_v2","approval.web.leave_group_time_zone","approval.global_batch_approval","approval.web.auto_approval_setting","approval.web.enable_third_party_create_page","approval.web.pc_efficiency_dashboard_2","approval.web.complexity_threshold"]}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{IgnoreGroupIDs:[],QueryString:"",Reverse:!1,Status:[0]},PageSize:80,StartDefinitionID:"",StartGroupID:""}}]}}],"${host_url}/approval/web/api/v2/GetTask?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{ID:"${id}"}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{FetchLatest:!0,Topic:1,parentId:"",shareCode:""}}},"pc/pages/in-process/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListTask:{Direction:1,Filter:{DefinitionKeys:[],EndTimestamp:"",Querystring:"",StartTimestamp:"",Topic:1},NextPageToken:"",Order:2,PageSize:30}},{CountTask:{AllowDistinctOnly:[2,3,18],Filter:{}}},{GetLastCursor:{}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.pc_version","approval.web.pc_create_approval","approval.web.new_search_api","approval.web.view_other_tasks","approval.web.customdevtool","approval.web.delegation","approval.web.ugc_approval","approval.web.efficiency","approval.web.display_source","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.trip_address_v2","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.field_list_widget_table_type","approval.batch_approval.next","approval.web.fixed_doc_size","approval.web.data_export","approval.web.bitable","approval.web.show_approval_node_name","approval.web.starter_edit_doc","approval.web.definition_share","approval.web.process_analysis","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_choose_cross_tenant","approval.web.at_form_edit","approval.web.at_form_edit_p1","approval.web.at_form_edit_p2","approval.web.at_form_edit_telephone","approval.web.at_form_edit_address","approval.web.at_form_edit_widget_groups","approval.web.use_comment_confirm","approval.web.enable_drive","approval.web.enable_at_drive_edit","approval.web.at_form_edit_field_list","approval.web.at_form_edit_field_list_mini","approval.web.customize_print","approval.web.use_typography_print","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_group_time_check","approval.web.new_currency_api","approval.web.enable_enhanced_approval_list","approval.web.enable_table_batch_import","approval.web.enable.check_create_prepare_api","approval.web.bitable_connector","approval.web.enable_external_data_v2","approval.web.leave_group_time_zone","approval.global_batch_approval","approval.web.auto_approval_setting","approval.web.enable_third_party_create_page","approval.web.pc_efficiency_dashboard_2","approval.web.complexity_threshold"]}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{IgnoreGroupIDs:[],QueryString:"",Reverse:!1,Status:[0]},PageSize:80,StartDefinitionID:"",StartGroupID:""}}]}}],"${host_url}/approval/web/api/v2/GetTask?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{ID:"${id}"}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{FetchLatest:!0,Topic:1,parentId:"",shareCode:""}}},"pc/pages/home/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListTask:{Direction:1,Filter:{DefinitionKeys:[],EndTimestamp:"",Querystring:"",StartTimestamp:"",Topic:1},NextPageToken:"",Order:2,PageSize:30}},{CountTask:{AllowDistinctOnly:[2,3,18],Filter:{}}},{GetLastCursor:{}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.pc_version","approval.web.pc_create_approval","approval.web.new_search_api","approval.web.view_other_tasks","approval.web.customdevtool","approval.web.delegation","approval.web.ugc_approval","approval.web.efficiency","approval.web.display_source","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.trip_address_v2","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.field_list_widget_table_type","approval.batch_approval.next","approval.web.fixed_doc_size","approval.web.data_export","approval.web.bitable","approval.web.show_approval_node_name","approval.web.starter_edit_doc","approval.web.definition_share","approval.web.process_analysis","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_choose_cross_tenant","approval.web.at_form_edit","approval.web.at_form_edit_p1","approval.web.at_form_edit_p2","approval.web.at_form_edit_telephone","approval.web.at_form_edit_address","approval.web.at_form_edit_widget_groups","approval.web.use_comment_confirm","approval.web.enable_drive","approval.web.enable_at_drive_edit","approval.web.at_form_edit_field_list","approval.web.at_form_edit_field_list_mini","approval.web.customize_print","approval.web.use_typography_print","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_group_time_check","approval.web.new_currency_api","approval.web.enable_enhanced_approval_list","approval.web.enable_table_batch_import","approval.web.enable.check_create_prepare_api","approval.web.bitable_connector","approval.web.enable_external_data_v2","approval.web.leave_group_time_zone","approval.global_batch_approval","approval.web.auto_approval_setting","approval.web.enable_third_party_create_page","approval.web.pc_efficiency_dashboard_2","approval.web.complexity_threshold"]}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{IgnoreGroupIDs:[],QueryString:"",Reverse:!1,Status:[0]},PageSize:80,StartDefinitionID:"",StartGroupID:""}}]}}],"${host_url}/approval/web/api/v2/GetTask?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{ID:"${id}"}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{FetchLatest:!0,Topic:1,parentId:"",shareCode:""}}},"pc/pages/requested/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListTask:{Direction:1,Filter:{DefinitionKeys:[],EndTimestamp:"",Querystring:"",StartTimestamp:"",Topic:1},NextPageToken:"",Order:2,PageSize:30}},{CountTask:{AllowDistinctOnly:[2,3,18],Filter:{}}},{GetLastCursor:{}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.pc_version","approval.web.pc_create_approval","approval.web.new_search_api","approval.web.view_other_tasks","approval.web.customdevtool","approval.web.delegation","approval.web.ugc_approval","approval.web.efficiency","approval.web.display_source","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.trip_address_v2","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.field_list_widget_table_type","approval.batch_approval.next","approval.web.fixed_doc_size","approval.web.data_export","approval.web.bitable","approval.web.show_approval_node_name","approval.web.starter_edit_doc","approval.web.definition_share","approval.web.process_analysis","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_choose_cross_tenant","approval.web.at_form_edit","approval.web.at_form_edit_p1","approval.web.at_form_edit_p2","approval.web.at_form_edit_telephone","approval.web.at_form_edit_address","approval.web.at_form_edit_widget_groups","approval.web.use_comment_confirm","approval.web.enable_drive","approval.web.enable_at_drive_edit","approval.web.at_form_edit_field_list","approval.web.at_form_edit_field_list_mini","approval.web.customize_print","approval.web.use_typography_print","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_group_time_check","approval.web.new_currency_api","approval.web.enable_enhanced_approval_list","approval.web.enable_table_batch_import","approval.web.enable.check_create_prepare_api","approval.web.bitable_connector","approval.web.enable_external_data_v2","approval.web.leave_group_time_zone","approval.global_batch_approval","approval.web.auto_approval_setting","approval.web.enable_third_party_create_page","approval.web.pc_efficiency_dashboard_2","approval.web.complexity_threshold"]}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{IgnoreGroupIDs:[],QueryString:"",Reverse:!1,Status:[0]},PageSize:80,StartDefinitionID:"",StartGroupID:""}}]}}],"${host_url}/approval/web/api/v2/GetTask?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{ID:"${id}"}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{FetchLatest:!0,Topic:1,parentId:"",shareCode:""}}},"pc/pages/cc-2-me/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListTask:{Direction:1,Filter:{DefinitionKeys:[],EndTimestamp:"",Querystring:"",StartTimestamp:"",Topic:1},NextPageToken:"",Order:2,PageSize:30}},{CountTask:{AllowDistinctOnly:[2,3,18],Filter:{}}},{GetLastCursor:{}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.pc_version","approval.web.pc_create_approval","approval.web.new_search_api","approval.web.view_other_tasks","approval.web.customdevtool","approval.web.delegation","approval.web.ugc_approval","approval.web.efficiency","approval.web.display_source","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.trip_address_v2","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.field_list_widget_table_type","approval.batch_approval.next","approval.web.fixed_doc_size","approval.web.data_export","approval.web.bitable","approval.web.show_approval_node_name","approval.web.starter_edit_doc","approval.web.definition_share","approval.web.process_analysis","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_choose_cross_tenant","approval.web.at_form_edit","approval.web.at_form_edit_p1","approval.web.at_form_edit_p2","approval.web.at_form_edit_telephone","approval.web.at_form_edit_address","approval.web.at_form_edit_widget_groups","approval.web.use_comment_confirm","approval.web.enable_drive","approval.web.enable_at_drive_edit","approval.web.at_form_edit_field_list","approval.web.at_form_edit_field_list_mini","approval.web.customize_print","approval.web.use_typography_print","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_group_time_check","approval.web.new_currency_api","approval.web.enable_enhanced_approval_list","approval.web.enable_table_batch_import","approval.web.enable.check_create_prepare_api","approval.web.bitable_connector","approval.web.enable_external_data_v2","approval.web.leave_group_time_zone","approval.global_batch_approval","approval.web.auto_approval_setting","approval.web.enable_third_party_create_page","approval.web.pc_efficiency_dashboard_2","approval.web.complexity_threshold"]}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{IgnoreGroupIDs:[],QueryString:"",Reverse:!1,Status:[0]},PageSize:80,StartDefinitionID:"",StartGroupID:""}}]}}],"${host_url}/approval/web/api/v2/GetTask?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{ID:"${id}"}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{FetchLatest:!0,Topic:1,parentId:"",shareCode:""}}},"pc/pages/approved/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListTask:{Direction:1,Filter:{DefinitionKeys:[],EndTimestamp:"",Querystring:"",StartTimestamp:"",Topic:1},NextPageToken:"",Order:2,PageSize:30}},{CountTask:{AllowDistinctOnly:[2,3,18],Filter:{}}},{GetLastCursor:{}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.pc_version","approval.web.pc_create_approval","approval.web.new_search_api","approval.web.view_other_tasks","approval.web.customdevtool","approval.web.delegation","approval.web.ugc_approval","approval.web.efficiency","approval.web.display_source","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.trip_address_v2","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.field_list_widget_table_type","approval.batch_approval.next","approval.web.fixed_doc_size","approval.web.data_export","approval.web.bitable","approval.web.show_approval_node_name","approval.web.starter_edit_doc","approval.web.definition_share","approval.web.process_analysis","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_choose_cross_tenant","approval.web.at_form_edit","approval.web.at_form_edit_p1","approval.web.at_form_edit_p2","approval.web.at_form_edit_telephone","approval.web.at_form_edit_address","approval.web.at_form_edit_widget_groups","approval.web.use_comment_confirm","approval.web.enable_drive","approval.web.enable_at_drive_edit","approval.web.at_form_edit_field_list","approval.web.at_form_edit_field_list_mini","approval.web.customize_print","approval.web.use_typography_print","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_group_time_check","approval.web.new_currency_api","approval.web.enable_enhanced_approval_list","approval.web.enable_table_batch_import","approval.web.enable.check_create_prepare_api","approval.web.bitable_connector","approval.web.enable_external_data_v2","approval.web.leave_group_time_zone","approval.global_batch_approval","approval.web.auto_approval_setting","approval.web.enable_third_party_create_page","approval.web.pc_efficiency_dashboard_2","approval.web.complexity_threshold"]}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}]}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{IgnoreGroupIDs:[],QueryString:"",Reverse:!1,Status:[0]},PageSize:80,StartDefinitionID:"",StartGroupID:""}}]}}],"${host_url}/approval/web/api/v2/GetTask?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{ID:"${id}"}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{FetchLatest:!0,Topic:1,parentId:"",shareCode:""}}},"pc-pages/create-form/index":{"${host_url}/approval/web/api/instance/createPrepare?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{approvalId:"${id}"}}],"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.pc_version","approval.web.pc_create_approval","approval.web.new_search_api","approval.web.view_other_tasks","approval.web.customdevtool","approval.web.delegation","approval.web.ugc_approval","approval.web.efficiency","approval.web.display_source","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.trip_address_v2","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.field_list_widget_table_type","approval.batch_approval.next","approval.web.fixed_doc_size","approval.web.data_export","approval.web.bitable","approval.web.show_approval_node_name","approval.web.starter_edit_doc","approval.web.definition_share","approval.web.process_analysis","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_choose_cross_tenant","approval.web.at_form_edit","approval.web.at_form_edit_p1","approval.web.at_form_edit_p2","approval.web.at_form_edit_telephone","approval.web.at_form_edit_address","approval.web.at_form_edit_widget_groups","approval.web.use_comment_confirm","approval.web.enable_drive","approval.web.enable_at_drive_edit","approval.web.at_form_edit_field_list","approval.web.at_form_edit_field_list_mini","approval.web.customize_print","approval.web.use_typography_print","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_group_time_check","approval.web.new_currency_api","approval.web.enable_enhanced_approval_list","approval.web.enable_table_batch_import","approval.web.enable.check_create_prepare_api","approval.web.bitable_connector","approval.web.enable_external_data_v2","approval.web.leave_group_time_zone","approval.global_batch_approval","approval.web.auto_approval_setting","approval.web.enable_third_party_create_page","approval.web.pc_efficiency_dashboard_2","approval.web.complexity_threshold"]}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}]}}]},"pc/pages/create-form/index":{"${host_url}/approval/web/api/instance/createPrepare?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{approvalId:"${id}"}}],"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.pc_version","approval.web.pc_create_approval","approval.web.new_search_api","approval.web.view_other_tasks","approval.web.customdevtool","approval.web.delegation","approval.web.ugc_approval","approval.web.efficiency","approval.web.display_source","approval.web.quickly_approval","approval.web.second_approval","approval.web.comment_at_person","approval.web.enable_normal_trusteeship","approval.web.search_sub_approval","approval.web.trip_address_v2","approval.web.enable_docx","approval.web.sidebar_detail_white_bg","approval.web.field_list_widget_table_type","approval.batch_approval.next","approval.web.fixed_doc_size","approval.web.data_export","approval.web.bitable","approval.web.show_approval_node_name","approval.web.starter_edit_doc","approval.web.definition_share","approval.web.process_analysis","approval.web.pull_change_interval","approval.web.collaboration_tenant_approval","automation.attendance.seal_account","approval.web.no_permission_show_optional_btn","approval.web.enable_choose_cross_tenant","approval.web.at_form_edit","approval.web.at_form_edit_p1","approval.web.at_form_edit_p2","approval.web.at_form_edit_telephone","approval.web.at_form_edit_address","approval.web.at_form_edit_widget_groups","approval.web.use_comment_confirm","approval.web.enable_drive","approval.web.enable_at_drive_edit","approval.web.at_form_edit_field_list","approval.web.at_form_edit_field_list_mini","approval.web.customize_print","approval.web.use_typography_print","approval.web.enable_user_select_cache","approval.web.use_uncontrolled_textarea","approval.web.enable_group_time_check","approval.web.new_currency_api","approval.web.enable_enhanced_approval_list","approval.web.enable_table_batch_import","approval.web.enable.check_create_prepare_api","approval.web.bitable_connector","approval.web.enable_external_data_v2","approval.web.leave_group_time_zone","approval.global_batch_approval","approval.web.auto_approval_setting","approval.web.enable_third_party_create_page","approval.web.pc_efficiency_dashboard_2","approval.web.complexity_threshold"]}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}]}}]},"package-detail-at/detail-at/index":{"${host_url}/approval/web/api/v2/MGetDetail?mode=1&locale=${approval_language}":[{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${ccId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${taskId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${instanceId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}],"${host_url}/approval/web/api/v2/MGetDetail?mode=2&locale=${approval_language}":[{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${ccId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${taskId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${instanceId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}]},"pages/detail/index":{"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks"]}}]}},"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":[{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{instanceId:"${instanceId}",shareCode:"${shareCode}"}},{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:["host_url","approval_language"]},data:{instanceId:"${instanceId}"}}],"${host_url}/approval/web/api/v2/MGetDetail?mode=1&locale=${approval_language}":[{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${ccId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${taskId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${instanceId}"}},Fields:[1,2,3],Mode:1}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}],"${host_url}/approval/web/api/v2/MGetDetail?mode=2&locale=${approval_language}":[{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${ccId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${taskId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}},{method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${instanceId}"}},Fields:[1,2,3],Mode:2}]},header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes","La-Client-Type":"sidebar","LA-Client-Version":"2.127.1"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}}]}}};r.window.__taroAppConfig=tn,App(Object(r.createReactApp)(Zr,ar,en.a,tn)),Object(n.initPxTransform)({designWidth:750,deviceRatio:{640:1.17,750:1,828:.905}})},1475:function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return l}));var r=a(952);function n(e){return"string"==typeof e?{message:e}:e}const o=[];let i=void 0!==e,s=!1;function p(e){if(!i)return s||(s=!0,setTimeout((()=>{i=!0,o.forEach((e=>p(e)))}),2e3)),void o.push(e);const{message:t,type:a,data:r}=e,n=[];n.push(t),void 0!==r&&n.push(r),"error"===a?console.error(...n):console.log(...n)}class l{constructor({eventReportService:e}){this.eventReportQueue=[],this.eventReportService=e}log(e){p(e),e.report&&this.doEventReport({level:e.type,eventMessage:e.message,eventName:"COMMON_LOG",params:e.data})}reportInfoEvent({eventMessage:e,eventName:t},a){this.doEventReport({level:"info",eventMessage:e,eventName:t,params:a})}reportErrorEvent({eventMessage:e,eventName:t},a){this.doEventReport({level:"info",eventMessage:e,eventName:t,params:a})}reportEnumerableException(e,t){this.log(Object.assign({type:"error",report:!0},Object(r.a)(e,t)))}error(e){this.log(Object.assign(Object.assign({},n(e)),{type:"error",report:!1}))}info(e){this.log(Object.assign(Object.assign({},n(e)),{type:"info",report:!1}))}reportInfo(e){this.log(Object.assign(Object.assign({},n(e)),{type:"info",report:!0}))}reportEvent(e,t){const{level:a,eventMessage:r,eventName:n,params:o}=e;t.log.report({level:a,eventMessage:r,eventName:n},o,!1)}setEventReporter(e){this.eventReportService=e,this.eventReportQueue.length>0&&(this.eventReportQueue.forEach((t=>this.reportEvent(t,e))),this.eventReportQueue.length=0)}doEventReport(e){this.eventReportService?this.reportEvent(e,this.eventReportService):this.eventReportQueue.push(e)}}}).call(this,a(43).window)},409:function(e,t,a){"use strict";var r;a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),function(e){e.PERMISSION="PERMISSION",e.PARAMS="PARAMS",e.BIZ="BIZ",e.ERROR="ERROR"}(r||(r={}));const n={[r.PERMISSION]:{codes:[10112,10022,10004,-310002]},[r.PARAMS]:{codes:[4017]},[r.BIZ]:{codes:[4020]},[r.ERROR]:{codes:[4005]}}},410:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var r=function(e){return null==e},n=a(409);class o extends Error{constructor({message:e,requestConfig:t,response:a,responseHeaders:r,httpStatus:o,bizCode:i,originError:s,meta:p}){super(e),this.issueType=n.a.ERROR,this.requestConfig=t,this.response=a,this.httpStatus=o,this.bizCode=i,this.meta=p,this.responseHeaders=r,this.setIssueType(),s&&(this.stack=s.stack)}setIssueType(){this.issueType=n.a.ERROR;const{code:e}=this.response||{};r(e)||Object.keys(n.b).forEach((t=>{const{codes:a}=n.b[t];a.includes(e)&&(this.issueType=t)}))}}},508:function(e,t,a){"use strict";(function(e){a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return s}));const r=()=>{try{if(tt)return tt}catch(t){return e}},n="__preload_global_share",o=(()=>{let e;return()=>(e||(e=r(),e[n]=e[n]||{}),e[n])})(),i=(e,t)=>{o()[e]=t},s=e=>o()[e]}).call(this,a(43).window)},550:function(e,t,a){e.exports=a(1340)},952:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r,n=a(410);!function(e){e.L0="L0",e.L1="L1",e.L2="L2"}(r||(r={}));const o={TOP_ERROR_BOUNDARY:r.L0,THIRD_PARTY_APPROVE_ERROR:r.L0,THIRD_PARTY_REJECT_ERROR:r.L0,THIRD_PARTY_ACTION_ERROR:r.L2,LARK_APPROVE_ERROR:r.L0,LARK_REJECT_ERROR:r.L0,LARK_ACTION_ERROR:r.L2};class i extends Error{constructor(e,t){super(e),this.name="CoreSceneError",t&&(this.stack=JSON.stringify(t))}}const s=(e,t)=>{var a;const{error:r}=t,s=o[e],p=r instanceof n.a?null===(a=null==r?void 0:r.meta)||void 0===a?void 0:a.logId:"",l=`[${s}] ${e} - ${r.message} ${p}`,c=new i(l,r.stack);return{message:l,data:Object.assign({},t,{error:c,logId:p})}}},953:function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return n}));var r=a(803);function n(t,a,n){return function(e,t,a,r){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function i(e){try{p(r.next(e))}catch(e){o(e)}}function s(e){try{p(r.throw(e))}catch(e){o(e)}}function p(e){e.done?a(e.value):n(e.value).then(i,s)}p((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){if(n.isUsingEnvHeader)return t("isUsingEnvHeader");if(void 0===e||!e.__hostingPrefetchRequests)return t("windowResultNotExist");if(0===e.__hostingPrefetchRequests.length)return t("windowResultEmpty");const o=JSON.parse(JSON.stringify(a.data));let i="";const s=e.__hostingPrefetchRequests.findIndex((({requestName:e,requestData:t})=>{const n=Object(r.a)(JSON.parse(JSON.stringify(t)),o)&&a.name===e;return n||(i=JSON.stringify(t).replace(/\r\n/g,"")),n}));if(!~s)return t("requestNotMatch",`${i},${JSON.stringify(o).replace(/\r\n/g,"")}`);{const a=e.__hostingPrefetchRequests[s].request;e.__hostingPrefetchRequests.splice(s,1);try{const e=yield a;if(null===e)throw new Error("MGetDetail prefetch code 不是 0,忽略");return e}catch(e){return console.error(e),t("responseError")}}}))}}).call(this,a(43).window)}},[[1414,0,3,2,1]]]))}));