1!function(e,o){"object"===typeof exports&&"object"===typeof module?module.exports=o():"function"===typeof define&&define.amd?define([],o):"object"===typeof exports?exports.weappPassport=o():e.weappPassport=o()}(this,(function(){return function(e){function o(o){for(var t,r,c=o[0],l=o[1],s=o[2],u=0,p=[];u<c.length;u++)r=c[u],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&p.push(i[r][0]),i[r]=0;for(t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t]);for(o.originChunkName=o.originChunkName||"lib",d&&d(o);p.length;)p.shift()();return a.push.apply(a,s||[]),n()}function n(){for(var e,o=0;o<a.length;o++){for(var n=a[o],t=!0,c=1;c<n.length;c++){var l=n[c];0!==i[l]&&(t=!1)}t&&(a.splice(o--,1),e=r(r.s=n[0]))}return e}var t={},i={0:0,1:0},a=[];function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,o,n){r.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,o){if(1&o&&(e=r(e)),8&o)return e;if(4&o&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var t in e)r.d(n,t,function(o){return e[o]}.bind(null,t));return n},r.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(o,"a",o),o},r.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r.p="/build/passport/",r.z="publicUrlweappPassport",r.k="publicDomainweappPassport";var c=this.webpackJsonpweappPassport=this.webpackJsonpweappPassport||[];this.webpackJsonpweappPassport.push([[0],e]);var l=c.push.bind(c);c.push=o,c=c.slice();for(var s=0;s<c.length;s++)o(c[s]);var d=l;return a.push([8]),n()}([function(e,o,n){"use strict";n.d(o,"H",(function(){return r})),n.d(o,"I",(function(){return c})),n.d(o,"n",(function(){return l})),n.d(o,"D",(function(){return s})),n.d(o,"g",(function(){return d})),n.d(o,"f",(function(){return u})),n.d(o,"p",(function(){return p})),n.d(o,"C",(function(){return w})),n.d(o,"y",(function(){return f})),n.d(o,"x",(function(){return v})),n.d(o,"s",(function(){return m})),n.d(o,"c",(function(){return h})),n.d(o,"j",(function(){return g})),n.d(o,"k",(function(){return b})),n.d(o,"b",(function(){return T})),n.d(o,"v",(function(){return S})),n.d(o,"z",(function(){return y})),n.d(o,"a",(function(){return E})),n.d(o,"l",(function(){return k})),n.d(o,"F",(function(){return M})),n.d(o,"J",(function(){return _})),n.d(o,"d",(function(){return I})),n.d(o,"B",(function(){return C})),n.d(o,"e",(function(){return j})),n.d(o,"q",(function(){return U})),n.d(o,"r",(function(){return D})),n.d(o,"u",(function(){return P})),n.d(o,"m",(function(){return R})),n.d(o,"A",(function(){return L})),n.d(o,"h",(function(){return x})),n.d(o,"i",(function(){return N})),n.d(o,"t",(function(){return q})),n.d(o,"o",(function(){return B})),n.d(o,"G",(function(){return G})),n.d(o,"E",(function(){return H})),n.d(o,"w",(function(){return J}));var t=n(2),i=window.publicUrlstatic||window.publicUrl||"",a=window.publicUrlapi||"";function r(e){var o=document.createElement("link");o.setAttribute("type","text/css"),o.setAttribute("rel","stylesheet"),o.setAttribute("href",e),document.body.appendChild(o)}function c(e,o){var n=document.createElement("script"),t=document.getElementsByTagName("head")[0];n.type="text/javascript",n.charset="UTF-8",n.src=e,n.addEventListener?n.addEventListener("load",(function(){o()}),!1):n.attachEvent&&n.attachEvent("onreadystatechange",(function(){"loaded"==window.event.srcElement.readyState&&o()})),t.appendChild(n)}function l(e){var o=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(o)||window.location.hash.match(o);return null!=n?unescape(n[2]):null}function s(){var e=window.navigator.userAgent;return t.f.test(e)&&l("wea_link_keep_ebAgentKey")||t.f.test(e)&&l("corpId")&&l("suiteId")||t.f.test(e)&&l("ebAuthCorpId")&&l("ebAuthSuiteKey")}function d(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function u(){return Math.random().toString(36).substr(2,10)+"_"+(new Date).getTime()}function p(){return!!localStorage.getItem("___test_fkjsjdfs_app")||/weapp/i.test(navigator.userAgent)}function w(){return 0===window.location.pathname.replace(i,"").indexOf("/sp/")}function f(){return 0===window.location.pathname.replace(i,"").indexOf("/mobile")}function v(){return/(iPhone|iPad|iPod|iOS|Android|Mobile)/i.test(navigator.userAgent)}function m(){return!(!p()||!v())}function h(e){var o=0,n=setInterval((function(){var t,i,a,r,c;++o>10&&clearInterval(n),(null===(t=window.weappUi)||void 0===t?void 0:t.Dialog)&&(null===(i=window.weappUi)||void 0===i?void 0:i.MDialog)&&(null===(a=window.weappUtils)||void 0===a?void 0:a.getLabel)&&(null===(r=window.weappUi)||void 0===r?void 0:r.Button)&&(null===(c=window.weappUi)||void 0===c?void 0:c.Icon)&&(e(),clearInterval(n))}),1e3)}function g(){var e=window.navigator.userAgent,o=null;return v()?/weapp/i.test(e)&&(/Android/i.test(e)?o="app-and":/(iPhone|iPad|iPod|iOS)/i.test(e)&&(o="app-ios")):o=/weapp/i.test(e)?"app-pc":"pc",t.f.test(e)?null:o}function b(){if(localStorage.getItem("PASSPORT_TEST_WS_CLIENT"))return localStorage.getItem("PASSPORT_TEST_WS_CLIENT");var e=window.navigator.userAgent,o=null;return o=v()?/weapp/i.test(e)?"app-h5":"h5":/weapp/i.test(e)?"app-pc":"pc",t.f.test(e)?null:o}function T(){var e,o;return!("5114454557175732769"!==(null===(e=window.TEAMS)||void 0===e||null===(o=e.currentUser)||void 0===o?void 0:o.userId))}function S(){var e;return!!(null===(e=window.TEAMS)||void 0===e?void 0:e.forbidType)}function y(){var e,o,n,t,i,a,r,c,l,s;return S()||!1===(null===(e=window.TEAMS)||void 0===e?void 0:e.loginAccess)||!0===(null===(o=window.TEAMS)||void 0===o?void 0:o.firstLoginUpdatePassword)||!0===(null===(n=window.TEAMS)||void 0===n?void 0:n.forceUpdatePassword)||!0===(null===(t=window.TEAMS)||void 0===t?void 0:t.customLoginForbid)||(null===(i=window.TEAMS)||void 0===i||null===(a=i.realNameConfig)||void 0===a?void 0:a.forceAuth)&&!(null===(r=window.TEAMS)||void 0===r||null===(c=r.realN
1ameConfig)||void 0===c?void 0:c.hasAuth)&&!(null===(l=window.TEAMS)||void 0===l||null===(s=l.realNameConfig)||void 0===s?void 0:s.white)}function E(e){if(!document.getElementById("passport_divlog")){var o=document.createElement("div");o.setAttribute("id","passport_divlog"),o.setAttribute("style","font-size:14x;position:fixed;top:0;left:0;color:red;z-index:9999;background:#fff;height:100%;overflow:auto"),document.body.appendChild(o)}var n=new Date,t=document.createElement("p"),i=document.createElement("p");i.innerHTML=e,t.innerHTML="".concat(n.getHours(),":").concat(n.getMinutes(),":").concat(n.getSeconds());var a=document.getElementById("passport_divlog");a&&(a.appendChild(t),a.appendChild(i))}function k(e){var o,n=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(o=document.cookie.match(n))?unescape(o[2]):null}function A(){var e=navigator.userAgent.toLowerCase();return/windows nt/.test(e)}function O(){var e=navigator.userAgent.toLowerCase();return/macintosh|mac os x/i.test(e)}function M(){return!A()&&!O()}function _(e,o,n){document.cookie=n?e+"="+o+";domain="+n+";path=/;":e+"="+o+";path=/;"}function I(e){var o=window.location.hostname;if(document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",!/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.test(o)){o="."+o;for(var n=0;n<o.length;n++)if("."===o[n]){var t=o.substr(n+1);document.cookie=e+"=;domain="+t+";expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie=e+"=;domain=."+t+";expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}}}var C=function(){var e,o,n;return("beta"===(null===(e=window.TEAMS)||void 0===e?void 0:e.runMode)||"txproduction"===(null===(o=window.TEAMS)||void 0===o?void 0:o.runMode))&&"public"===(null===(n=window.TEAMS)||void 0===n?void 0:n.deploy)};function j(e){var o;if(e instanceof Array){o=[];for(var n=e.length;n--;)o[n]=j(e[n]);return o}if(e instanceof Object){for(var t in o={},e)o[t]=j(e[t]);return o}return e}var U=function(){return!!sessionStorage.getItem("E10_CASLOGOUTURL")},D=function(){return window.self!==window.top};function P(){var e,o;return"IFRAME"==(null===(e=window.self)||void 0===e||null===(o=e.frameElement)||void 0===o?void 0:o.tagName)}var R=function(){var e=window.navigator.userAgent.toLowerCase(),o=null;return/electron/i.test(e)?O()?o=7:A()?o=9:/Linux/i.test(e)&&(o=8):v()?/weapp/i.test(e)?/Android/i.test(e)?o=/(?:Mobile)/i.test(e)?1:11:/(iPhone|iPad|iPod|iOS)/i.test(e)&&(o=/iPad/i.test(e)?3:2):o=6:o=5,o};function L(){return window.inWeappLayout&&!v()&&!f()||w()&&!P()||0===window.location.pathname.indexOf("".concat(i,"/info"))||0===window.location.pathname.indexOf("".concat(i,"/ecode"))}function x(e){return e?-1===(null===e||void 0===e?void 0:e.indexOf("/"))?function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"imgs";return"".concat(a,"/api/file/preview?fileId=").concat(e,"&type=").concat(o)}(e):e.replace("/papi/file/noauth/","/papi/file/preview?type=imgs&fileId=").replace("/api/file/noauth/","/api/file/preview?type=imgs&fileId="):""}var N=function(e){if(!e)return"zh_CN";if("zh-TW"===e||"zh-HK"===e||"zh-SG"===e)return"zh_TW";var o=e.split("-")[0].toLocaleLowerCase();return["zh_CN","en_US","zh_TW","ko_KR","ru_RU","ja_JP","th_TH","es_ES","de_DE","fr_FR","pt_PT","ar_AE"].find((function(e){return 0===e.indexOf(o)}))||"zh_CN"};function q(){return!!localStorage.getItem("___test_fkjsjdfs")||"www.e-cology.com.cn"===window.location.host}function B(e){var o,n,t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9;return(e=null===(o=window)||void 0===o||null===(n=o.weappUi)||void 0===n||null===(t=n.DatePicker)||void 0===t?void 0:t.getLocaleDateTime(e))?((e+="").length>i&&(e=e.slice(0,e.length-i)),e):""}function G(){return 0===window.location.host.indexOf("weapp.yunteams.cn")}function H(){var e,o;return"THIRDSSO"===(null===(e=window.TEAMS)||void 0===e||null===(o=e.loginAccountInfo)||void 0===o?void 0:o.loginType)}function J(){var e,o,n;return 0===(null===(e=window.TEAMS)||void 0===e||null===(o=e.loginAccountInfo)||void 0===o||null===(n=o.loginType)||void 0===n?void 0:n.indexOf("EB"))}},function(e,o,n){"use strict";function t(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function i(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,t)}return n}function a(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};
1o%2?i(Object(n),!0).forEach((function(o){t(e,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))}))}return e}n.d(o,"a",(function(){return a}))},function(e,o,n){"use strict";n.d(o,"e",(function(){return t})),n.d(o,"b",(function(){return i})),n.d(o,"c",(function(){return a})),n.d(o,"d",(function(){return r})),n.d(o,"a",(function(){return c})),n.d(o,"g",(function(){return l})),n.d(o,"f",(function(){return s}));var t=["task::/task::/mobile/task","workflow::/workflow::/mobile/workflow","mainline::/project::/mobile/project","document::/doc/::/mobile/doc/","customer::/crm/customer::/mobile/crm/customer","contact::/crm/contact::/mobile/crm/contact","saleChance::/crm/salechance::/mobile/crm/salechance","production::/crm/production::/mobile/crm/production","competitor::/crm/competitor::/mobile/crm/competitor","clue::/crm/clue::/mobile/crm/clue","contract::/crm/contract::/mobile/crm/contract","crmSummary::/crm/crmSummary::/mobile/crm/crmSummary","marketactivity::/crm/marketactivity::/mobile/crm/marketactivity","orderform::/crm/orderform::/mobile/crm/orderform","price::/crm/price::/mobile/crm/price","capital::/crm/capital::/mobile/crm/capital","quote::/crm/quote::/mobile/crm/quote","blog::/blog::/mobile/blog","calendar::/calendar::/mobile/calendar","workreport::/plan::/mobile/plan","wechatEnterprise::/eb/weworkauth::/mobile/eb/weworkauth","form::/formreport::/mobile/formreport","wechatService::/eb/wechatservice::/mobile/eb/wechatservice","attend::/attend::/mobile/attend","sms::/sms::/mobile/sms","saleTarget::/goal::/mobile/goal","salarybill::/hrm/dispatchPayroll::/mobile/hrm/salary","placard::/placard::/mobile/placard","staffPosition::/cus/position","app::/paas/app::--","email::/mail::/mobile/mail","hr::/hrm/employeeManager::--","hr::/hrm/contractManager::--","hr::/hrm/hr/::--","hr::/hrm/archiveSetting::--","hr::--::/mobile/hrm/contractManager","kpi::/performance::/mobile/performance","tag::/my/tag::/mobile/my/tag","meeting::/meeting::/mobile/meeting/calendar","signcontract::/signcenter::/mobile/signcenter","inc::/inc::/mobile/inc","scrm::/market::/mobile/market","fnabank::/fnaentbank::/mobile/fnaentbank","fna::/fna/::/mobile/fna","okr::/goal/::/mobile/goal","cloudstore::/cloudstore::/mobile/cloudstore","cowork::/cowork::/mobile/cowork","scene::/scene::/mobile/scene","hrmsalary::/salary::/mobile/salary","odocexchange::/odocexchange::--","odoc::/odoc::/mobile/odoc","wait::/my/wait::/mobile/my/wait","portal::/portal::/mobile/portal","customerservice::/customerservice::/mobile/custom/customerservice","bpm::/bussinessflow::--","portrait::/portrait::/mobile/portrait","docCompared::/doccompare::/mobile/doccompare","analyze::/analyze::/mobile/analyze"],i=t.concat(["ebatch::/ebatch::/mobile/ebatch","escheduler::/escheduler::/mobile/escheduler","esearch::/esearch::/mobile/esearch","elog::/elog::/mobile/elog","systemei::/systemei::/mobile/systemei","voice::/voice::/mobile/voice","datasecurity::/datasecurity::/mobile/datasecurity","security::/security::/mobile/security","intcenter::/intcommon::--","esb::/esb::--","intunifyauthserver::/authserver::--","intexchange::/intexchange::--","intexchange::/bs/intexchange::--","ecode::/ecode::--","intias::/intias::--","ebuilder::/ebdapp::--","ebuilder::/ebdform::--","ebuilder::/ebdfpage::--","ebuilder::/ebddesigner::--","ebuilder::--::/mobile/ebdfpage","hrsync::/intcenterhr::--","intlogin::/intcenter/intlogin::--","intunifyauth::/iaauthclient::--","intmail::/intmail::--"],["workflow::/info/engine_wf::--","document::/info/app_doc/docSetting::--","saleChance::/info/app_salechance/setting::--","orderform::/info/app_orderform/orderformSetting::--","capital::/info/app_capital/capitalSetting::--","portal::/info/app_portal/::--","workreport::/info/app_plan/plan/setting::--","scrm::/info/app_scrm/setting/::--","mainline::/info/app_project/settings::--","cowork::/info/app_cowork/bsSet::--","marketactivity::/info/app_marketactivity/setting::--","production::/info/app_production/setting::--","quote::/info/app_quote/setting::--","kpi::/info/app_hrm/setting::--","hr::/info/app_hr/::--","signcontract::/info/signcenter/SettingsIndex::--","saleTarget::/info/app_okr::--","task::/info/app_task/settings::--","odoc::/info/app_odoc/odocengine::--","clue::/info/app_clue/setting::--","competitor::/info/app_competitor/setting::--","sms::/info/app_sms::--","attend::/info/app_attend/settingPage::--","inc::/info/app_inc/setConfig::--","fnabank::/info/fnaentbank/setting::--","calendar::/info/app_calendar::--","customer::/info/app_customer/customerSetting::--","contract::/info/app_contract/setting::--","price::/info/app_price/priceSetting::--","email::/info/app_mail::--","blog::/info/app_blog/blogsetting::--","fna::/info/fna/setting::--","portrait::/info/portrait/set::--","esb::/info/esb::--","datamodel::/info/dw/::--","ebridge::/info/eb/::--","intunifytodoc::/info/todoclient::--","intunifytodos::/info/todocenter::--","FB031::/info/app_synergy/synergy::--","intunifyauth::/info/authclient::--","voice::/info/custom_voice/voice::--","im::/info/im/::--","em::/info/em/::--","datasecurity::/info/dataSecurity::--","authority::/info/role::--","linkmonitor::/monitor::--"]),a=["/sp/openapi/base/doc/","/sp/openapi/base/scenes/","/s
1p/openapi/base/example/","/sp/doc/docShare/","/sp/profile/msignature","/sp/em/popup","/sp/em/browser","/sp/formreport/distribute","/mobile/eb/wechat/inviteshare","/mobile/eb/nopassport","/mobile/inc/invoicedetail","/sp/integration/oauth2.0/logout","/sp/integration/cas/logout"],r=["/sp/doc/wpsEdit","/sp/doc/wpsFile","/sp/doc/docPreview","/sp/doc/freepass/docPreview"],c=["/sp/doc/wpsEdit","/sp/doc/wpsFile","/sp/doc/docPreview","/sp/doc/freepass/docPreview","/sp/signcenter/qysCommonPage","/sp/workflow/pathset/actionDesigner"],l=["/sp/ebdapp/cloud/preview/"],s=/(MicroMessenger|wxwork|dingtalk|taurusapp|lark|qing|welink|cloudlink)/i},function(e,o,n){"use strict";n.r(o);var t=n(1),i=n(4),a=n(5),r=n(6),c=(n(7),n(0)),l=n(2),s=window.publicUrlstatic||window.publicUrl||"",d=window.publicUrlapi||window.publicUrl||"";Object(c.H)("".concat(s,"/build/passport/static/css/lib.css")),window.__ET_WEB_FLAG=!0,window.passport_record||(window.passport_record={});window.alert;var u=function(){function e(){var o=this;Object(i.a)(this,e),this.loginWithTicket=!1,this.cssPrefix="weapp-frontpassport",this.logoutTimes=0,this.appIsOfflineTest=!!window.localStorage.getItem("testapp_offline"),this.originServer=window.location.protocol+"//"+window.location.host,this.baseServer=this.originServer+"".concat(d,"/api/baseserver"),this.requestApiNames=[],this.monitorTaskId="",this.hooksTool=new r.a,this.isFreePassUrl=!1,this.passportServer="",this.weappMonitorInstance=void 0,this.pcLocked=!1,this.getInfoError=!1,this.sysLogoutUrl="",this.frameToken="",this.websocketConnection=void 0,this.websocketSDK={},this.loginForbidRedirect=function(){if(-1==window.location.href.indexOf("/obstruct/")){var e;if(Object(c.z)()){var n,t,i,a,r,l,u,p,w,f=(null===(n=window.TEAMS)||void 0===n||null===(t=n.realNameConfig)||void 0===t?void 0:t.forceAuth)&&!(null===(i=window.TEAMS)||void 0===i||null===(a=i.realNameConfig)||void 0===a?void 0:a.hasAuth)&&!(null===(r=window.TEAMS)||void 0===r||null===(l=r.realNameConfig)||void 0===l?void 0:l.white),v=!1;if(f){var m,h,g,b,T=function(){var e,o,n,t;Object(c.v)()||!1===(null===(e=window.TEAMS)||void 0===e?void 0:e.loginAccess)||!0===(null===(o=window.TEAMS)||void 0===o?void 0:o.firstLoginUpdatePassword)||!0===(null===(n=window.TEAMS)||void 0===n?void 0:n.forceUpdatePassword)||!0===(null===(t=window.TEAMS)||void 0===t?void 0:t.customLoginForbid)||(v=!0)};o.request({type:"POST",url:"".concat(d,"/api/basicserver/realnameAuth/initAuth"),async:!1,params:{loginPageUrl:null===(m=window)||void 0===m||null===(h=m.location)||void 0===h?void 0:h.origin,sysPageUrl:null===(g=window)||void 0===g||null===(b=g.location)||void 0===b?void 0:b.origin,forceAuth:"E",syncBack:"E"},callback:function(e){try{var o,n;508!=(e=JSON.parse(e)).code&&(null===(o=e)||void 0===o||null===(n=o.data)||void 0===n?void 0:n.authUrl)||T()}catch(t){T()}},fail:function(){T()}})}if(v)return;var S,y=0===(null===(u=window.location.search)||void 0===u||null===(p=u.indexOf)||void 0===p?void 0:p.call(u,"?wea_link_keep_obstruct_pass=true"))&&-1!==["/mobile/uk/createteam","/mobile/uk/teams/join"].indexOf(window.location.pathname.replace(s,"")),E="";if(Object(c.v)()&&(null===(w=window.TEAMS)||void 0===w?void 0:w.checkToken))E="&checkToken=".concat(null===(S=window.TEAMS)||void 0===S?void 0:S.checkToken);if(!y)return void(Object(c.x)()?window.location.href="".concat(s,"/mobile/obstruct/login?oriService=").concat(encodeURIComponent(window.location.href)).concat(E):window.location.href="".concat(s,"/sp/obstruct/login?oriService=").concat(encodeURIComponent(window.location.href)).concat(E))}if(Object(c.x)()&&(null===(e=window.TEAMS)||void 0===e?void 0:e.remindUpdatePassword)&&(localStorage.setItem("UPDATE_PASSWORD_REMIND_URL",window.location.href),!localStorage.getItem("UPDATE_PASSWORD_REMIND_LOADED")))return void(window.location.href="".concat(s,"/mobile/obstruct/login"))}},this.useTempToken=!1,this.ebAsyncAuth=!1,this.lockPageDom=void 0,this.contentDom=void 0,localStorage.getItem("__TEST_PASSPORT_BREAK_POINT")&&alert("__TEST_PASSPORT_BREAK_POINT"),sessionStorage.removeItem("E10_CASTGC"),"intunifyauth"===Object(c.n)("wea_link_keep_loginType")&&Object(c.s)()&&-1!==Object(c.n)("wea_link_keep_int_skipApplogin")&&(window.location.href="".concat(s,"/mobile/uk/appLogin")),"freepass"===Object(c.n)("intunifyauth_client")&&window.history.replaceState(null,null,window.location.href.replace("intunifyauth_client=freepass","wea_link_keep_intunifyauth_client=freepass")),this.setUrlLangType();var n=!1;/\/freepass/.test(window.location.pathname.replace(s,""))&&(n=!0),l.c.forEac
1h((function(e){-1!=window.location.pathname.indexOf(e)&&(n=!0)})),"1"===Object(c.n)("wea_link_keep_freepass")&&(n=!0);var t=Object(c.n)("eteamsid")||Object(c.n)("wea_link_keep_tempEteamsId");if(t){window.ETEAMSID=t;try{window.opener=null}catch(m){}}if(-1!==window.location.pathname.indexOf("/sp/formreport/distribute")){var a=window.location.pathname.replace(s,"").split("/")[4];window.TEAMS||(window.TEAMS={currentTenant:{tenantKey:a}})}window.passport_record.enter=Date.now();try{var u,p,w;if(null===(u=window.opener)||void 0===u?void 0:u.weappTenantEnv)window.weappTenantEnv=Object(c.e)(null===(w=window.opener)||void 0===w?void 0:w.weappTenantEnv),this.initGlobalUrlInfo(window.weappTenantEnv);else if(Object(c.r)()&&(null===(p=window.parent)||void 0===p?void 0:p.weappTenantEnv)){var f;window.weappTenantEnv=Object(c.e)(null===(f=window.parent)||void 0===f?void 0:f.weappTenantEnv),this.initGlobalUrlInfo(window.weappTenantEnv)}else this.getUrlInfo()}catch(m){this.getUrlInfo()}if(window.passport_record.geturlinfo_end=Date.now(),n)this.isFreePassUrl=!0;else{window.TEAMS||(window.TEAMS={}),window.TEAMS.ready=function(e,n){o.hooksTool.getReadyHooks(e,n)},this.runLsMonitor();var v=Object(c.n)("redirectModuleSource");v&&(window.redirectModuleSource=v),this.intunifyauthUrlTransfer(),this.login(),this.runLoginMonitor()}}return Object(a.a)(e,[{key:"intunifyauthUrlTransfer",value:function(e){var o=Object(c.n)("intunifyauthTransferUrl"),n=function(){0===o.indexOf("http")||0===o.indexOf(s)?window.location.href=o:window.location.href="".concat(s,"/").concat(o)};o&&e&&n(),o&&!Object(c.n)("ticket")&&this.checkEteamsId(!1,(function(){n()}))}},{key:"getUrlInfo",value:function(){var e=this,o="".concat(d,"/papi/app/baseserver/info/getUrlInfo?type=").concat(Object(c.x)()?"h5":"pc","&service=").concat(encodeURIComponent(window.location.href));this.requestApiNames.push(this.originServer+o);var n=!1,t=window.localStorage.getItem("E10_URLINFO_".concat(window.location.host));(Object(c.s)()||this.appIsOfflineTest)&&t&&(this.initGlobalUrlInfo(JSON.parse(t)),n=!0),this.request({type:"GET",url:o,async:n,callback:function(o){try{var n=JSON.parse(o);if(!Object(c.B)()&&(Object(c.s)()&&(null===n||void 0===n?void 0:n.data)||e.appIsOfflineTest)){var i=JSON.stringify(n.data);window.localStorage.setItem("E10_URLINFO_".concat(window.location.host),i),t&&i!==t&&window.location.host.indexOf("e-cology.com.cn")}(null===n||void 0===n?void 0:n.data)&&e.initGlobalUrlInfo(n.data),200!=(null===n||void 0===n?void 0:n.code)&&e.addAsyncMonitorTask({type:"passport_login_getUrlInfo",taskData:{code:n.code,msg:n.msg},des:"urlInfo\u83b7\u53d6\u5f02\u5e38"})}catch(a){}}})}},{key:"checkWsBlackList",value:function(){return l.g.some((function(e){return-1!==window.location.pathname.indexOf(e)}))}},{key:"runLsMonitor",value:function(){var e=this;window.addEventListener("error",(function(o){var n,t=null===o||void 0===o||null===(n=o.error)||void 0===n?void 0:n.name;e.isLocalstorageExceedError(t)&&!window.locallsOversize&&(window.locallsOversize=!0,e.showClearPrompt())}))}},{key:"isLocalstorageExceedError",value:function(e){return"QuotaExceededError"==e||"NS_ERROR_DOM_QUOTA_REACHED"==e}},{key:"showClearPrompt",value:function(){var e=function(){var e=[/^(?=leftmenu_)/,/^(?=weapp-em-message-tool-menus)/,/^(?=LAYOUT_NAV_MENU)/,/^(?=ebPageCache_)/,/^(?=weapp-em-message-menus-)/,/^(?=E10_TEAMS_LOCAL)/,/^(?=cusapp_storage_)/,/^(?=edata-)/,/^(?=portal-)/,/^(?=tabdata-)/];Object.keys(window.localStorage).forEach((function(o){e.forEach((function(e){e.test(o)&&window.localStorage.removeItem(o)}))})),window.location.reload()};Object(c.c)((function(){var o=window.weappUtils.getLabel("15976","\u63d0\u793a\u4fe1\u606f"),n=window.weappUtils.getLabel("151579","\u60a8\u5f53\u524d\u9875\u9762\u7f13\u5b58\u8fc7\u591a\uff0c\u4e3a\u4e86\u907f\u514d\u7cfb\u7edf\u529f\u80fd\u4f7f\u7528\u5f02\u5e38\uff0c\u8bf7\u60a8\u786e\u8ba4\u6e05\u7406\u7f13\u5b58\u5e76\u5237\u65b0\u9875\u9762\uff01");Object(c.x)()||Object(c.y)()?window.weappUi.MDialog.prompt({title:o,mask:!0,maskClosable:!0,message:n,onClose:function(){},onOk:function(){e()},prompt:!1}):window.weappUi.Dialog.confirm({content:n,onOk:function(){e()},onCancel:function(){}})}))}},{key:"pathMapMathed",value:function(e,o){var n=!1;return o=o&&"string"===typeof o?o:window.location.pathname.replace(s,""),e.forEach((function(e){0==o.indexOf(e)&&(n=!0)})),n}},{key:"initGlobalUrlInfo",value:function(e){window.weappTenantEnv=e,e.passportUrl&&(this.passportServer=e.passportUrl),(e["
1sysDefaultLogoutUrl "]||e.sysDefaultLogoutUrl)&&(this.sysLogoutUrl=e["sysDefaultLogoutUrl "]||e.sysDefaultLogoutUrl),window.localStorage.getItem("layoutlogin")&&(window.weappTenantEnv.loginPrivateUrl=!0)}},{key:"runLoginMonitor",value:function(){var e=this;window.addEventListener("weappMonitorInstanceInited",(function(o){var n;(null===o||void 0===o||null===(n=o.detail)||void 0===n?void 0:n.weappMonitorInstance)&&(e.weappMonitorInstance=o.detail.weappMonitorInstance,e.hooksTool.getReadySuccessHook("utilsReady"))}))}},{key:"addAsyncMonitorTask",value:function(e){this.hooksTool.getReadyHooks("utilsReady",{success:function(){if(this.weappMonitorInstance){e.module="passport",this.monitorTaskId&&(e.taskId=this.monitorTaskId);var o=this.weappMonitorInstance.addTask("custom",e);this.monitorTaskId||(this.monitorTaskId=o)}}})}},{key:"thirdLogin",value:function(){var e=window.location.href,o=this.originServer,n=e.split("?"),t=o+"/papi/app/eb/oauth/authlink/"+Object(c.g)()+"?ebTargetUrl="+n[0]+(n[1]?"&"+n[1]:"");window.location.href=t}},{key:"disPatchebAuthCheck",value:function(){var e=this;if(Object(c.n)("code")){window.ebAuthChecking=!0,window.passport_record.ebCheck_start=Date.now();var o=window.location,n=o.protocol,t=o.hostname,i=o.port,a=o.pathname,r="".concat(n,"//").concat(t).concat(i?":"+i:""),l="/papi/app/eb/oauth/asyncLink".concat(window.location.search,"&redirectUrl=").concat(encodeURIComponent(r+a));window.passport_record.ebCheck_url=l,window.TEAMS.async=this.ebAsyncAuth,this.request({type:"GET",url:l,async:this.ebAsyncAuth,callback:function(o){window.passport_record.ebCheck_responseText=o,window.passport_record.ebCheck_end=Date.now();try{var n,t=JSON.parse(o);(null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.eteamsid)&&(window.ETEAMSID=t.data.eteamsid,Object(c.J)("ETEAMSID",t.data.eteamsid),e.checkEteamsId(),e.fetchTEAMS())}catch(i){console.error("[asyncLink catch]: ",i)}}})}else this.fetchTEAMS()}},{key:"ebAuthCheck",value:function(){var e=this;Object(c.I)("/build/ebutils/static/js/lib.js",(function(){var o;null===(o=window.ebutils)||void 0===o||o.ebAuthCheck((function(o){var n=Object(c.n)("wea_link_keep_async");n&&"1"==n||e.thirdLogin()}),!1),!window.ebutils&&e.addAsyncMonitorTask({type:"passport_login_loadEbutils",taskData:{ua:window.navigator.userAgent,href:window.location.href},des:"ebutils\u52a0\u8f7d\u5f02\u5e38"})}))}},{key:"getTokenFromPostMsg",value:function(){var e=this;window.addEventListener("message",(function(o){var n=o.data;if("Token"===(null===n||void 0===n?void 0:n.key)){var t=n.value;e.frameToken=n.value;var i=new FormData;i.append("thirdToken",t),e.request({type:"POST",params:i,dataType:"formData",url:"".concat(d,"/papi/app/baseserver/info/getInfo"),callback:function(o,n){try{var t=JSON.parse(o),i=(null===t||void 0===t?void 0:t.data)||{};if(200!==n||200!==(null===t||void 0===t?void 0:t.code))return void Object(c.c)((function(){window.weappUi.Dialog.message({content:"system error, try again later"})}));i.ACCESS_ETEAMSID?(window.ETEAMSID=i.ACCESS_ETEAMSID,window.location.reload()):Object(c.n)("wea_link_keep_nsAuth")&&e.frameToken&&Object(c.c)((function(){window.weappUi.Dialog.message({content:"invalid token"})}))}catch(a){}}})}})),window.top.postMessage({key:"RefreshToken"},"*")}},{key:"request",value:function(e){var o=this,n=Object(c.f)(),t=e.type,i=e.url,a=e.callback,r=e.async,l=e.params,s=e.dataType||"",d=e.hookcb;e.async||(r=!1);var u=new XMLHttpRequest;"true"===localStorage.getItem("weappMonitorTraceIdSwitchStatus")&&(i+=((i||"").indexOf("?")>-1?"&":"?")+"weappmonitor_traceId="+n),u.open(t,i,r),"formData"!==s&&(u.setRequestHeader("Content-Type","application/json;charset=UTF-8"),u.setRequestHeader("accept","application/json, text/plain, */*"),u.setRequestHeader("traceid",n)),window.ETEAMSID&&u.setRequestHeader("ETEAMSID",window.ETEAMSID),this.tempEteamsId&&u.setRequestHeader("ETEAMSID",this.tempEteamsId),Object(c.D)()&&u.setRequestHeader("currentUrl",window.location.href),u.withCredentials=!0;try{l?"formData"===s?u.send(l):u.send(JSON.stringify(l)):u.send()}catch(w){console.info(w)}"boolean"===typeof a&&(r=a,a=null);var p=function(e){try{var n,t=JSON.parse(e);
1if(20220610===t.code&&!window.ebAuthChecking)return window.ebAuthChecking=!0,void o.ebAuthCheck();if(20221104===t.code&&!window.intAuthChecking)window.intAuthChecking=!0,(null===(n=t.data)||void 0===n?void 0:n.loginurl)&&(window.location.href=t.data.loginurl)}catch(w){d&&d(),localStorage.setItem("tt",1)}a&&a(u.responseText,u.status)};r?u.onreadystatechange=function(){4==u.readyState&&(!0,p(u.responseText))}:(localStorage.getItem("eteamsid_test")&&(u.onreadystatechange=function(){u.responseText}),p(u.responseText))}},{key:"runWebsocket",value:function(){var e,o,n,i=this,a=Object(c.k)();if(a){var r,l=Object(c.f)(),s=0===window.location.href.indexOf("https://")?"wss":"ws",u=window.location.host;if(null===(e=window.weappTenantEnv)||void 0===e?void 0:e.onlineDomianUrl){var p,w=null===(p=window.weappTenantEnv)||void 0===p?void 0:p.onlineDomianUrl;0!==w.indexOf("http://")&&0!==w.indexOf("https://")||(s=0===w.indexOf("https://")?"wss":"ws",u=w.split("//")[1])}r="".concat(s,"://").concat(u).concat(d,"/api/online/webSocket?dtu=").concat(a,"&userId=").concat(window.btoa(null===(o=window.TEAMS)||void 0===o||null===(n=o.currentUser)||void 0===n?void 0:n.userId),"&ran=").concat(l);var f=!1,v=function e(){if(window.WebSocket){var o,n;f=!0;var a=new WebSocket(r);i.websocketConnection=a,localStorage.getItem("TEST_WS_SOCKET")&&(window.TEST_WS_SOCKET=a);var l=!1,s={userId:null===(o=window.TEAMS)||void 0===o||null===(n=o.currentUser)||void 0===n?void 0:n.userId,eteamsId:window.ETEAMSID,time:(new Date).getTime()},u="",p=function e(){var o=function(){var o={head:Object(t.a)(Object(t.a)({label:"heart_beat"},s),{},{eteamsId:window.ETEAMSID}),body:{}};if(l){Object(c.b)()&&Object(c.a)("\u53d1\u9001\u5fc3\u8df3------".concat(JSON.stringify(o))),a.send(JSON.stringify(o));var n=setTimeout((function(){e(),clearTimeout(n)}),7e4)}};if(i.useTempToken)o();else{var n=i.getETEAMSID(),r=window.localStorage.getItem("TEST_PASSPORT_HTTPONLY");n&&!r?(window.ETEAMSID=n,o()):i.checkEteamsId(!0,(function(){o()}))}};a.onopen=function(e){f=!1,e.currentTarget.URL},a.onmessage=function(e){var o,n,r,d;e.data;var w={},f=JSON.parse(e.data);switch(f.head.label){case"trigger_heart":l=!0,p();break;case"conn_success_req":w={head:Object(t.a)({label:"conn_success"},s),body:{}},u=f.body.channelId,a.send(JSON.stringify(w));break;case"xincForce_offlineNotify":w={head:Object(t.a)({label:"conn_xincNotify"},s),body:{}},Object(c.F)()||Object(c.x)()||(null===(o=window.TEAMS)||void 0===o||null===(n=o.currentUser)||void 0===n?void 0:n.admin)||a.send(JSON.stringify(w));break;case"conn_kick_req":w={head:Object(t.a)({label:"conn_kick"},s),body:{}},Object(c.c)((function(){var e=window.weappUtils.getLabel;window.weappUi.Dialog.confirm({title:e("171670","\u8be5\u8d26\u53f7\u5df2\u5728\u5176\u4ed6\u8bbe\u5907\u767b\u5f55"),content:e("171671","\u7ee7\u7eed\u767b\u5f55\u4f1a\u4e0b\u7ebf\u5176\u4ed6\u8bbe\u5907\u7684\u8d26\u53f7\uff0c\u786e\u8ba4\u767b\u5f55\u5417\uff1f"),cancelText:e("171672","\u9000\u51fa"),onOk:function(){w.body.targetId=null===f||void 0===f?void 0:f.body.repeatId,a.send(JSON.stringify(w))},onCancel:function(){var e;a.close(),null===(e=window.ePassport)||void 0===e||e.logout()}})}));break;case"page_lock":var v,m;if(console.info("==ws_page_lock=="),Object(c.A)())i.showPcLock(),i.pcLocked=!0,(null===(v=window.TEAMS)||void 0===v||null===(m=v.pageLockInfo)||void 0===m?void 0:m.lockStatus)&&(window.TEAMS.pageLockInfo.lockStatus="LOCK");break;case"page_unlock":var h,g;if(console.info("==page_unlock=="),Object(c.A)())i.contentDom&&document.body.appendChild(i.contentDom),i.contentDom=null,i.pcLocked=!1,(null===(h=window.TEAMS)||void 0===h||null===(g=h.pageLockInfo)||void 0===g?void 0:g.lockStatus)&&(window.TEAMS.pageLockInfo.lockStatus="NO_LOCK"),i.lockPageDom&&document.body.removeChild(i.lockPageDom);break;case"remove_bindOffline":null===(r=window.ePassport)||void 0===r||r.logout();break;case"update_accountInfo":null===(d=window.ePassport)||void 0===d||d.logout();break;case"open_sysLogout":i.passportRedirect("logout")}},a.onclose=function(o){var n;Object(c.b)()&&Object(c.a)("\u94fe\u63a5\u5df2\u5173\u95ed"),l=!1;var t=function(){n=setTimeout((function(){clearTimeout(n),e()}),6e3)},a=setTimeout((function(){u&&i.request({type:"POST",url:"".concat(i.originServer).concat(d,"/papi/basiconline/offline/qryDisConnInfo"),async:!0,params:{channelId:u},callback:function(e){var o,n,a,r;try{var l,s=JSON.parse(e);if(Object(c.b)()&&Object(c.a)("\u91cd\u8fde".concat(e)),200===s.code&&(null===(l=s.data)||void 0===l?void 0:l.info)){var u,p,w=null===(u=s.data)||void 0===u?void 0:u.info.breakLabel,f
1=null===(p=s.data)||void 0===p?void 0:p.repeat;switch(w){case"conn_bekick":!function(e){var o;Object(c.c)((function(){if(e.time&&(o=Object(c.o)(e.time,0)),!document.querySelector("#ws_bekick")){var n=document.createElement("div");n.setAttribute("id","ws_bekick"),document.body.appendChild(n)}var t=window.weappUi,a=t.Dialog,r=t.Icon,l=t.Button,s=window.weappUtils.getLabel;window.ReactDOM&&window.ReactDOM.render(React.createElement(a,{visible:!0,mask:!0,title:s("171667","\u4e0b\u7ebf\u901a\u77e5"),width:600,wrapClassName:"".concat(i.cssPrefix,"-kick")},React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-icon")},React.createElement(r,{name:"Icon-empty-No-permission-notification"})),React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-dec")},s("171668","\u60a8\u7684\u8d26\u53f7\u4e8e{0}\u767b\u5165\uff0c\u5982\u975e\u672c\u4eba\u64cd\u4f5c\uff0c\u5219\u5bc6\u7801\u53ef\u80fd\u5df2\u6cc4\u6f0f\uff0c\u5efa\u8bae\u4fee\u6539\u5bc6\u7801\u3002",[o])),React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-btn")},React.createElement(l,{type:"warning",onClick:function(){return i.logout()}},s("171669","\u8fd4\u56de\u767b\u5f55\u754c\u9762")))),document.getElementById("ws_bekick"))}))}({time:s.data.time});break;case"exit_conn":i.logoutFunc();break;case"exit_login":case"change_team":window.location.reload();break;case"alert_connAccount":try{window.open("","_self").close()}catch(g){}break;case"force_offline":Object(c.c)((function(){if(!document.querySelector("#ws_force_offline")){var e=document.createElement("div");e.setAttribute("id","ws_force_offline"),document.body.appendChild(e)}var o=window.weappUi,n=o.Dialog,t=o.Icon,a=o.Button,r=window.weappUtils.getLabel;window.ReactDOM&&window.ReactDOM.render(React.createElement(n,{visible:!0,mask:!0,title:r("171667","\u4e0b\u7ebf\u901a\u77e5"),width:600,wrapClassName:"".concat(i.cssPrefix,"-kick")},React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-icon")},React.createElement(t,{name:"Icon-empty-No-permission-notification"})),React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-dec")},r("171673","\u60a8\u5df2\u88ab\u7ba1\u7406\u5458\u5f3a\u5236\u4e0b\u7ebf")),React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-btn")},React.createElement(a,{type:"warning",onClick:function(){return i.logout()}},r("171669","\u8fd4\u56de\u767b\u5f55\u754c\u9762")))),document.getElementById("ws_force_offline"))}));break;case"conn_repeat":case"conn_toomany":case"nofound_heart":f&&t();break;case"session_expired":break;case"conn_xincNotify":case"remove_bindOffline":i.logout();break;case"remoteForce_offline":var v=s.data.info.body.labelId,m=void 0===v?"0":v,h={type:(null===(o=window.TEAMS)||void 0===o||null===(n=o.locale)||void 0===n?void 0:n.lang)||"zh_CN",labelId:m,tenantKey:null===(a=window.TEAMS)||void 0===a||null===(r=a.currentTenant)||void 0===r?void 0:r.tenantKey};i.request({type:"POST",url:"".concat(i.originServer).concat(d,"/papi/basiconline/offline/translate"),async:!0,params:h,callback:function(e){try{var o,n=JSON.parse(e);if(null===n||void 0===n||null===(o=n.data)||void 0===o?void 0:o.result){var t,a=null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.result;Object(c.c)((function(){if(!document.querySelector("#ws_remoteForce_offline")){var e=document.createElement("div");e.setAttribute("id","ws_remoteForce_offline"),document.body.appendChild(e)}var o=window.weappUi,n=o.Dialog,t=o.Icon,r=o.Button,c=window.weappUtils.getLabel;window.ReactDOM&&window.ReactDOM.render(React.createElement(n,{visible:!0,mask:!0,title:c("171667","\u4e0b\u7ebf\u901a\u77e5"),width:600,wrapClassName:"".concat(i.cssPrefix,"-kick")},React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-icon")},React.createElement(t,{name:"Icon-empty-No-permission-notification"})),React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-dec")},a),React.createElement("div",{className:"".concat(i.cssPrefix,"-kick-btn")},React.createElement(r,{type:"warning",onClick:function(){return i.logout()}},c("171669","\u8fd4\u56de\u767b\u5f55\u754c\u9762")))),document.getElementById("ws_remoteForce_offline"))}))}}catch(g){}}
1})}}}catch(b){t()}},fail:function(){t()}}),clearTimeout(a)}),6e3)},a.onerror=function(e){console.info("\u8fde\u63a5\u9519\u8bef")}}};v(),window.addEventListener("mousemove",(function(e){var o,n,t;f||3!==(null===(o=i.websocketConnection)||void 0===o?void 0:o.readyState)||(!(null===(n=window.weappPassport)||void 0===n?void 0:n.lastOnlineRebuildTime)||(new Date).getTime()-(null===(t=window.weappPassport)||void 0===t?void 0:t.lastOnlineRebuildTime)>1e4)&&(window.weappPassport.lastOnlineRebuildTime=(new Date).getTime(),v())}))}}},{key:"showSystemError",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.content,n=void 0===o?"":o,t=e.showType,i=void 0===t?"page":t;if("message"!==i)if(Object(c.x)()||Object(c.y)()){var a,r=(null===(a=window.location.href)||void 0===a?void 0:a.indexOf("/mobile/uk/systemerrortip"))>-1;r||(window.location.href="".concat(s,"/mobile/uk/systemerrortip"))}else if(Object(c.C)()){var l,d=(null===(l=window.location.href)||void 0===l?void 0:l.indexOf("/info/systemerrortip"))>-1;d||(window.location.href="".concat(s,"/info/systemerrortip"))}else window.showSystemError={visible:!0};else Object(c.c)((function(){var e,o,t,i;Object(c.x)()||Object(c.y)()?null===(e=window.weappUi)||void 0===e||null===(o=e.MDialog)||void 0===o||o.toast({content:n}):null===(t=window.weappUi)||void 0===t||null===(i=t.Dialog)||void 0===i||i.message({type:"error",content:n})}))}},{key:"fetchTEAMS",value:function(e){var o=this;if(!Object(c.G)()||Object(c.x)()||(this.checkLoginForbid(),!Object(c.z)())){var n=!1,i=!1,a=window.localStorage.getItem("E10_TEAMS_LOCAL")||null;if(!e&&Object(c.y)()||Object(c.C)()){console.info("check-1");try{var r,l,s,d,u;if((Object(c.r)()&&window.parent.TEAMS||(null===(r=window.opener)||void 0===r?void 0:r.TEAMS)&&(null===(l=window.opener)||void 0===l||null===(s=l.TEAMS)||void 0===s?void 0:s.currentUser))&&Object(c.C)()&&!this.useTempToken&&!(null===(d=window.weappTenantEnv)||void 0===d?void 0:d.spCacheOpen)){var p;i=!0;var w,f=null;if(null===(p=window.opener)||void 0===p?void 0:p.TEAMS)f=a||JSON.stringify(null===(w=window.opener)||void 0===w?void 0:w.TEAMS);else f=JSON.stringify(window.parent.TEAMS);window.TEAMS=Object(t.a)(Object(t.a)({},JSON.parse(f)),{},{ready:window.TEAMS.ready})}else a&&!Object(c.C)()&&Object(c.x)()||Object(c.C)()&&(null===(u=window.weappTenantEnv)||void 0===u?void 0:u.spCacheOpen)?(n=!0,window.TEAMS=Object(t.a)(Object(t.a)({},JSON.parse(a)),{},{ready:window.TEAMS.ready})):this.ebAsyncAuth&&(n=!0)}catch(m){a&&!Object(c.C)()?(n=!0,window.TEAMS=Object(t.a)(Object(t.a)({},JSON.parse(a)),{},{ready:window.TEAMS.ready})):(window.TEAMS={ready:function(e,n){o.hooksTool.getReadyHooks(e,n)}},n=!1)}}else this.ebAsyncAuth&&(n=!0);window.TEAMS.async=n;var v=this.getTEAMSapi();this.requestApiNames.push(v),this.ebAsyncAuth||!n&&!i||this.afterFetchTeams({async:n,skipRequst:i,lastTEAMS:a}
1),i||(window.passport_record["teams_start_async_".concat(n?1:0)]=Date.now(),this.request({type:"POST",url:this.getTEAMSapi(),callback:function(e){try{var r,c=JSON.parse(e);window.TEAMS=Object(t.a)(Object(t.a)({},c),{},{ready:null===(r=window.TEAMS)||void 0===r?void 0:r.ready,async:n}),o.afterFetchTeams({async:n,skipRequst:i,lastTEAMS:a,responseText:e}),window.localStorage.getItem("E10_passport_testError")&&o.showSystemError(),window.passport_record["teams_end_async_".concat(n?1:0)]=Date.now()}catch(m){o.showSystemError()}},async:n}))}}},{key:"getTEAMSapi",value:function(){var e,o,n=/weapp-pc/i.test(window.navigator.userAgent),t=[];(this.useTempToken&&window.ETEAMSID&&t.push("ETEAMSID=".concat(window.ETEAMSID)),n&&t.push("dtu=app-pc"),Object(c.F)()||Object(c.x)()||t.push("clientType=not_xinchuang"),Object(c.n)("wea_link_keep_topicid")&&t.push("topicId=".concat(Object(c.n)("wea_link_keep_topicid"))),null===(e=window.TEAMS)||void 0===e?void 0:e.checkToken)&&t.push("checkToken=".concat(null===(o=window.TEAMS)||void 0===o?void 0:o.checkToken));return"".concat(this.baseServer,"/layout/teamsCheck").concat(t.length>0?"?".concat(t.join("&")):"")}},{key:"checkLoginForbid",value:function(){var e=this,o="".concat(this.originServer,"/papi/baseserver/layout/check"),n=Object(c.n)("checkToken");n&&(o=o+"?checkToken="+n),this.request({type:"POST",url:o,callback:function(o){try{var n=JSON.parse(o);(null===n||void 0===n?void 0:n.status)&&(window.TEAMS=Object(t.a)(Object(t.a)({},window.TEAMS||{}),n.data||{}),e.loginForbidRedirect())}catch(i){}},async:!1})}},{key:"reloadTEAMS",value:function(){var e=this.getTEAMSapi();this.request({type:"POST",url:e,callback:function(e){try{var o,n,t=JSON.parse(e);if(-1==(null===t||void 0===t?void 0:t.code))return void(null===(o=window)||void 0===o||null===(n=o.weappLayout)||void 0===n||n.relogin());for(var i in t)window.TEAMS[i]=t[i]}catch(a){}},async:!0})}},{key:"afterFetchTeams",value:function(e){var o,n,t,i,a,r,l,u,p,w,f,v,m,h,g=this,b=window.location.host,T=e.async,S=e.skipRequst,y=e.lastTEAMS,E=e.responseText;if(-1==(null===(o=window.TEAMS)||void 0===o||null===(n=o.actionMsg)||void 0===n?void 0:n.code)||-1==window.TEAMS.code){var k;if(this.addAsyncMonitorTask({type:"passport_login_overtime",taskData:{eteamsid:window.ETEAMSID,teams:E||""},des:"eteamsid\u8d85\u65f6\u5931\u6548"}),this.clearCookies(),Object(c.d)("ETEAMSID"),-1===b.indexOf("localhost")&&!Object(c.y)()&&!Object(c.s)())if(null===(k=window.weappTenantEnv)||void 0===k?void 0:k.loginPrivateUrl)window.showLayoutLogin=!0;else{var A=function(){g.request({type:"GET",url:"".concat(d,"/papi/app/baseserver/clearCookie?service=").concat(encodeURIComponent(g.originServer)),async:!1,callback:function(){g.passportRedirect("logout")}})};Object(c.q)()?this.logoutRecord((function(){A()}
1)):A()}}else{var O,M,_,I,C,j,U;if(500===(null===(O=window.TEAMS)||void 0===O?void 0:O.code)||500===(null===(M=window.TEAMS)||void 0===M?void 0:M.status)||(null===(_=window.TEAMS)||void 0===_||null===(I=_.displayModules)||void 0===I?void 0:I.indexOf("20230628|loadErr"))>-1||(null===(C=window.TEAMS)||void 0===C||null===(j=C.displayModules)||void 0===j?void 0:j.indexOf("20230628|lnError"))>-1)this.showSystemError();else{var D=!1;Object(c.c)((function(){var e,o,n="";(null===(e=window.TEAMS)||void 0===e?void 0:e.displayModules)&&(null===(o=window.TEAMS)||void 0===o||o.displayModules.forEach((function(e,o){if(-1!==e.indexOf("license error"))switch(D=!0,e){case"license error,code is 0":n=window.weappUtils.getLabel("250533","\u6388\u6743\u4fe1\u606f\u9519\u8bef");break;case"license error,code is 3":n=window.weappUtils.getLabel("250534","\u672a\u68c0\u6d4b\u5230\u6388\u6743");break;case"license error,code is 4":n=window.weappUtils.getLabel("250535","\u6388\u6743\u5df2\u8fc7\u671f");break;case"license error,code is 5":n=window.weappUtils.getLabel("250536","\u6388\u6743\u7528\u6237\u6570\u8d85\u8fc7\u7cfb\u7edf\u5141\u8bb8\u7684\u7528\u6237\u6570");break;default:n=0===e.indexOf("license error,")&&0!==e.indexOf("license error,code is")?e.replace(/license error,/g,""):e}})));D&&g.showSystemError({showType:"message",content:n})}))}if(null===(U=window.TEAMS)||void 0===U?void 0:U.currentUser){var P,R,L,x,N,q,B,G,H,J,F,W;if(this.hooksTool.teamsReady||(this.hooksTool.getReadySuccessHook("TEAMS",window.TEAMS),this.hooksTool.teamsReady=!0),null===(P=window.TEAMS)||void 0===P||null===(R=P.loginAccountInfo)||void 0===R?void 0:R.loginRedirectUrl)if(Object(c.x)()){if(!sessionStorage.getItem("E10_loginRedirected"))if(Object(c.p)());else sessionStorage.setItem("E10_loginRedirected","true"),0===(null===(L=window.TEAMS)||void 0===L||null===(x=L.loginAccountInfo)||void 0===x||null===(N=x.loginRedirectUrl)||void 0===N?void 0:N.indexOf("http"))&&-1===(null===(q=window.TEAMS)||void 0===q||null===(B=q.loginAccountInfo)||void 0===B||null===(G=B.loginRedirectUrl)||void 0===G?void 0:G.indexOf(window.location.host))&&sessionStorage.removeItem("E10_loginRedirected"),window.location.href=null===(H=window.TEAMS)||void 0===H||null===(J=H.loginAccountInfo)||void 0===J?void 0:J.loginRedirectUrl}else if(this.loginWithTicket)window.location.href=null===(F=window.TEAMS)||void 0===F||null===(W=F.loginAccountInfo)||void 0===W?void 0:W.loginRedirectUrl;if("freepass"===Object(c.n)("wea_link_keep_intunifyauth_client")&&-1!==window.location.href.indexOf("${employeeId}")){var z,K,X,$,Q=(null===(z=window.TEAMS)||void 0===z||null===(K=z.currentUser)||void 0===K?void 0:K.employeeId)||(null===(X=window.TEAMS)||void 0===X||null===($=X.loginAccountInfo)||void 0===$?void 0:$.employeeId)||"";window.history.replaceState(null,null,window.location.href.replace("${employeeId}",Q))}try{if(E){window.localStorage.setItem("E10_TEAMS_LOCAL",E)}}catch(Z){this.isLocalstorageExceedError(null===Z||void 0===Z?void 0:Z.name)&&!window.locallsOversize&&(window.locallsOversize=!0,this.showClearPrompt())}}else this.hooksTool.getReadyFailedHook("TEAMS",E)}if("weapp.develop.cn"!==window.location.host&&!this.websocketConnection&&!this.useTempToken&&(Object(c.p)()&&Object(c.x)()?(null===(t=window.location.href)||void 0===t||t.indexOf("/mobile/uk/me"),0):!Object(c.E)()&&!Object(c.w)()&&!Object(c.u)()&&!this.checkWsBlackList()))try{this.runWebsocket()}catch(ee){console.info(ee)}if(!S&&T&&y&&!this.ebAsyncAuth){var Y=JSON.parse(y);if(!Object(c.z)())try{["currentUser.id","locale","displayModules","disableModules","empDisableModules"].forEach((function(e){var o=e.split("."),n=Y,t=window.TEAMS;o.length>1?o.forEach((function(e){var o,i;(null===(o=n)||void 0===o?void 0:o[e])&&(n=n[e]),(null===(i=t)||void 0===i?void 0:i[e])&&(t=t[e])})):(n=Y[o[0]],t=window.TEAMS[o[0]],"disableModules"!==o[0]&&"empDisableModules"!==o[0]||(n&&n.length>0&&(n=n.map((function(e){return{moduleId:e.moduleId,moduleStr:e.moduleStr}}))),t&&t.length>0&&(t=t.map((function(e){return{moduleId:e.moduleId,moduleStr:e.moduleStr}}))))),JSON.stringify(n)!==JSON.stringify(t)&&-1===window.location.host.indexOf("e-cology.com.cn")&&window.location.reload()}))}catch(ee){}}var V=Object(c.m)();if((S||E||!1===E&&T)&&(this.getExtraTeamsData("GET","/api/app/ecode/cache/globalData".concat(V?"?device=".concat(V):""),"ecodeGlobalData",null,S),this.getExtraTeamsData("GET","/api/bs/eb/hrm/dept/authAndConvertCount","wxAuthAndConver",null,S),this.getExtraTeamsData("POST","/api/bcw/systemConfig/getSystemConfig","systemConfig",{},S),this.getExtraTeamsData("POST","/api/bcw/map/selectTemplateByUserId","mapConfig",{},S),this.getExtraTeamsData("GET","/api/project/mainlines/queryAllConfig","projectConfig",null,S),this.getExtraTeamsData("GET","/api/bs/calendar/configuration/queryAllConfig","calendarConfig",null,S),this.getExtraTeamsData("GET","/api/hrm/card/getCurrentSimpleEmployee","currentSimpleEmployee",null,S),this.getExtraTeamsData("GET","/api/baseserver/layout/getTenantLogo","tenantLogo",null,S)),this.extendTEAMS(),this.loginForbidRedirect(),(S||E)&&Object(c.y)()){if(!this.getModulePurchasedByUrl()&&window.TEAMS.deploy&&"public"!==window.TEAMS.deploy)return void(window.location.href="".concat(s,"/mobile/uk/purchasedmoduletip"));if(!this.getModuleInstallByUrl())return void(window.location.href="".concat(s,"/mobile/uk/uninstallmoduletip"));if(this.getModuleDisabledByUrl())return void(window.location.href="".concat(s,"/mobile/uk/disabledmoduletip"))}0!==window.location.pathname.replace(s,"").indexOf("/sp/")||this.getModuleInstallByUrl()?0!==window.location.pathname.replace(s,"").indexOf("/sp/")||this.getModulePurchasedByUrl()?0===window.location.pathname.replace(s,"").indexOf("/sp/")&&this.getModuleDisabledByUrl()?window.location.href="".concat(s,"/info/disabledmodule"):("LOCK"===(null===(i=window.TEAMS)||void 0===i||null===(a=i.pageLockInfo)||void 0===a?void 0:a.lockStatus)&&Object(c.A)()&&this.showPcLock(),!(null===(r=window.TEAMS)||void 0===r?void 0:r.locale)||(null===(l=window.TEAMS)||void 0===l||null===(u=l.locale)||void 0===u?void 0:u.lang)&&'""'!==(null===(p=window.TEAMS)||void 0===p||null===(w=p.locale)||void 0===w?void 0:w.lang)||(window.TEAMS.locale.lang=Object(c.i)()),Object(c.t)()&&"t7akvdnf84"===(null===(f=window.TEAMS)||void 0===f||null===(v=f.currentTenant)||void 0===v?void 0:v.tenantKey)&&"external"===(null===(m=window.TEAMS)||void 0===m||null===(h=m.currentUser)||void 0===h?void 0:h.type)&&Object(c.c)((function(){var e=window.weappUtils.getLabel("15976","\u63d0\u793a\u4fe1\u606f"),o=window.weappUtils.getLabel("252110","\u5f53\u524d\u767b\u5f55\u7684\u7528\u6237\u6ca1\u6709\u6743\u9650\uff0c\u8bf7\u8fd4\u56de\u91cd\u65b0\u767b\u5f55");if(Object(c.p)()){var n,t,i,a=g;null===(n=window.weappUi)||void 0===n||null===(t=n.MDialog)||void 0===t||null===(i=t.prompt)||void 0===i||i.call(t,{title:e,mask:!0,maskClosable:!1,message:o,onClose:function(){a.logout()},onOk:function(){a.logout()},prompt:!1})}}))):window.location.href="".concat(s,"/info/purchasedmoduletip"):window.location.href="".concat(s,"/info/uninstallmoduletip")}},{key:"getExtraTeamsData",value:function(e,o,n,t,i){var a=this,r=function(e){if(e&&e.data)if(localStorage.setItem("E10_EXTRADATA_".concat(n),JSON.stringify(e)),window["E10_EXTRADATA_".concat(n)]=JSON.stringify(e),"mapConfig"==n?window.TEAMS.mapConfig={}:"systemConfig"==n?window.TEAMS.systemConfig={}:"ecodeGlobalData"==n?window.TEAMS.ecodeGlobalData={}:"classificationData"==n?window.TEAMS.classificationData={}:"tenantLogo"==n&&(window.TEAMS.tenantLogo={}),"globalAndUserConfig"==n||"projectConfig"==n||"calendarConfig"==n){if(window.TEAMS.userConfig||(window.TEAMS.userConfig={}),window.TEAMS.globalConfig||(window.TEAMS.globalConfig={}),e.data.globalConfig)for(var o in e.data.globalConfig)Object.hasOwnProperty.call(e.data.globalConfig,o)&&(window.TEAMS.globalConfig[o]=e.data.globalConfig[o]);if(e.data.userConfig)for(var t in e.data.userConfig)Object.hasOwnProperty.call(e.data.userConfig,t)&&(window.TEAMS.userConfig[t]=e.data.userConfig[t])}else if("userDetailCardFormConfig"==n)window.TEAMS.userDetailCardFormConfig=e.data;else if("currentSimpleEmployee"==n){var i,a;if(null===(i=e.data)||void 0===i?void 0:i.username)(null===(a=window.TEAMS)||void 0===a?void 0:a.currentUser)&&(window.TEAMS.currentUser.username=e.data.username,window.TEAMS.currentUser.name=e.data.username)}else for(var r in e.data)if(Object.hasOwnProperty.call(e.data,r))if("mapConfig"==n)window.TEAMS.mapConfig[r]=e.data[r];else if("systemConfig"==n)window.TEAMS.systemConfig[r]=e.data[r];
1else if("ecodeGlobalData"==n)window.TEAMS.ecodeGlobalData[r]=e.data[r];else if("tenantLogo"==n){var l,s,d,u,p;window.TEAMS.tenantLogo[r]=e.data[r],-1===(null===(l=window.TEAMS)||void 0===l||null===(s=l.tenantLogo)||void 0===s||null===(d=s.faviconUrl)||void 0===d||null===(u=(p=d).indexOf)||void 0===u?void 0:u.call(p,"/"))&&(window.TEAMS.tenantLogo.faviconUrl=Object(c.h)(window.TEAMS.tenantLogo.faviconUrl))}else"classificationData"==n?window.TEAMS.classificationData[r]=e.data[r]:window.TEAMS[r]=e.data[r]};if(i&&!Object(c.r)()&&window.opener["E10_EXTRADATA_".concat(n)]){var l=JSON.parse(window.opener["E10_EXTRADATA_".concat(n)]);return r(l),void this.hooksTool.getReadySuccessHook(n,l)}this.useTempToken&&(o="".concat(o).concat(-1!==o.indexOf("?")?"&":"?","ETEAMSID=").concat(window.ETEAMSID));var s={type:e,url:"".concat(d).concat(o),callback:function(e){try{var o=JSON.parse(e);r(o),o.code&&200==o.code?a.hooksTool.getReadySuccessHook(n,o):a.hooksTool.getReadyFailedHook(n,o)}catch(t){!function(e){if(localStorage.getItem("E10_EXTRADATA_".concat(n)))try{var o=JSON.parse(localStorage.getItem("E10_EXTRADATA_".concat(n)));r(o),a.hooksTool.getReadySuccessHook(n,o)}catch(t){a.hooksTool.getReadySuccessHook(n,{})}else e&&a.hooksTool.getReadyFailedHook(n,{})}(!0)}},async:!0};t&&(s.params=t),this.request(s)}},{key:"extendTEAMS",value:function(){var e=this;if(window.TEAMS&&!window.TEAMS.actionMsg){var o,n,t,i,a=Object(c.l)("langType");a&&(null===(o=window.TEAMS)||void 0===o||null===(n=o.locale)||void 0===n?void 0:n.lang)&&(window.TEAMS.locale.lang=a),Object(c.n)("wea_link_keep_langType")&&(null===(t=window.TEAMS)||void 0===t||null===(i=t.locale)||void 0===i?void 0:i.lang)&&(window.TEAMS.locale.lang=Object(c.n)("wea_link_keep_langType")),window.TEAMS.isPayModule=function(e){var o;return window.TEAMS.currentTenant&&null!=window.TEAMS.currentTenant.payModuleName&&-1!==(null===(o=window.TEAMS.currentTenant.payModuleName)||void 0===o?void 0:o.indexOf(e))},window.TEAMS.isModuleAdmin=function(e){var o;return window.TEAMS.currentUser&&null!=window.TEAMS.currentUser.modules&&-1!==(null===(o=window.TEAMS.currentUser.modules)||void 0===o?void 0:o.indexOf(e))},window.TEAMS.isDisabledModule=function(e,o){var n,t,i=!1,a="";return"portal"===e&&(e="gateway"),(null===(n=window.TEAMS.disableModules)||void 0===n?void 0:n.length)>0&&(window.TEAMS.disableModules.forEach((function(o){o.moduleStr===e&&("gateway"===o.moduleStr&&"-6"===o.moduleId&&(i=!0),"form"===e&&"11"===o.moduleId&&(i=!0),"workflow"===e&&"2"===o.moduleId&&(i=!0),"form"!=e&&"workflow"!=o.moduleStr&&(i=!0))})),i&&(a="TEAM")),(null===(t=window.TEAMS.empDisableModules)||void 0===t?void 0:t.length)>0&&(window.TEAMS.empDisableModules.forEach((function(o){o.moduleStr===e&&("gateway"===o.moduleStr&&"-6"===o.moduleId&&(i=!0),"form"===e&&"11"===o.moduleId&&(i=!0),"workflow"===e&&"2"===o.moduleId&&(i=!0),"form"!=e&&"workflow"!=o.moduleStr&&(i=!0))})),i&&(a="PERSONAL")),"RETURN_DISABLED_TYPE"===o?{disabledType:a}:i},window.TEAMS.isDisplayModule=function(e){return!!(window.TEAMS.displayModules&&window.TEAMS.displayModules.length>0&&-1!==window.TEAMS.displayModules.indexOf(e))},window.TEAMS.isPurchasedModule=function(e){var o=window.TEAMS,n=o.licenseModules,t=void 0===n?[]:n,i=o.displayModules,a=void 0===i?[]:i;o.installModules;return-1!==["teamSharing","workTrends"].indexOf(e)||(!t||-1!==t.indexOf(e))&&!(-1!==t.indexOf(e)&&-1===a.indexOf(e)&&!window.TEAMS.isDisabledModule(e))},window.TEAMS.isInstalledModule=function(e){return!0},window.TEAMS.getModulePurchasedByUrl=function(o){return e.getModulePurchasedByUrl()},window.TEAMS.getModuleInstallByUrl=function(o){return e.getModuleInstallByUrl()},window.TEAMS.getModuleDisabledByUrl=function(o){return e.getModuleDisabledByUrl(o)},window.TEAMS.getModuleNameByUrl=function(o){return e.getCurrentModuleByMap("displayModule",o)},window.TEAMS.getModuleStatusByUrl=function(o){return e.getModuleStatusByUrl(o)},window.TEAMS.updateCache=function(o,n){return e.updateCache(o,n)},window.TEAMS.getPathByModule=function(o){return e.getPathByModule(o)};var r=window.location.pathname.replace(s,""),l="/eworkspace_";if(-1!==r.indexOf(l)){var d=r.split(l)[1].split("/")[0];d!==window.TEAMS.currentUser.id&&(window.TEAMS.eworkspace={userId:d})}var u=Object(c.n)("wea_link_keep_standardTheme"),p=null;try{var w,f;p=(null===(w=window.parent)||void 0===w?void 0:w.previewData)||(null===(f=window.parent)||void 0===f?void 0:f.previewThemeData)}catch(v){}(window.TEAMS.eworkspace||p||u&&"1"==u)&&window.TEAMS.theme&&(delete window.TEAMS.theme.appId,delete window.TEAMS.theme.ecode,delete window.TEAMS.theme.ecodeStr)}}},{key:"queryEteamsidByToken",value:function(){var e=Object(c.n)("wea_link_keep_tempOtherToken");this.request({type:"POST",url:this.originServer+"".concat(d,"/api/baseserver/login/checkTempOtherToken"),async:!1,params:{tempOtherToken:e},callback:function(e){try{var o=JSON.parse(e);200==o.code&&o.data&&(window.ETEAMSID=o.data)}catch(n){}}})}},{key:"checkEteamsId",value:function(){var e=this,o=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;window.passport_record.eteamsid_check_start=Date.now(),!Object(c.v)()&&this.request({type:"POST",url:"".concat(d,"/papi/app/baseserver/info/getInfo"),callback:function(t,i){try{var a=function(){Object(c.c)((function(){var o=0===i;window.weappUi.Dialog.confirm({content:o?window.weappUtils.getLabel("266528","\u7cfb\u7edf\u68c0\u6d4b\u5230\u53ef\u80fd\u5b58\u5728\u7f51\u7edc\u5f02\u5e38\uff0c\u5982\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\u8bf7\u68c0\u67e5\u60a8\u7684\u7f51\u7edc\u73af\u5883\u540e\u5237\u65b0\u5c1d\u8bd5"):window.weappUtils.getLabel("257753","\u7cfb\u7edf\u51fa\u9519\u4e86\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5"),footer:[React.createElement(window.weappUi.Button,{onClick:function(){return window.location.reload()}},window.weappUtils.getLabel("17768","\u5237\u65b0")),React.createElement(window.weappUi.Button,{type:"primary",onClick:function(){return e.logout()}},window.weappUtils.getLabel("171669","\u8fd4\u56de\u767b\u5f55\u754c\u9762"))]})}))};if(200!==i)return e.getInfoError=!0,a(),void console.info(String(i),t);var r=JSON.parse(t);window.passport_record.eteamsid_check_end=Date.now();var l=(null===r||void 0===r?void 0:r.data)||{};if(l.caslogouturl?sessionStorage.setItem("E10_CASLOGOUTURL",l.caslogouturl):sessionStorage.removeItem("E10_CASLOGOUTURL"),l.ACCESS_ETEAMSID)window.ETEAMSID=l.ACCESS_ETEAMSID;else if(!o)if(Object(c.n)("wea_link_keep_nsAuth"))e.frameToken&&Object(c.c)((function(){window.weappUi.Dialog.message({content:"invalid token"})}));else{var s;if("20211217"!==(null===r||void 0===r?void 0:r.code))return 200!==(null===r||void 0===r?void 0:r.code)?(e.getInfoError=!0,a(),void console.info(String(i),t)):void(e.ebAsyncAuth||Object(c.D)()||"true"===(null===(s=window.weappTenantEnv)||void 0===s?void 0:s.intunifyauthOpen)&&"freepass"!==Object(c.n)("wea_link_keep_intunifyauth_client")||e.logout());Object(c.c)((function(){window.weappUi.Dialog.confirm({content:r.message,footer
1:React.createElement(window.weappUi.Button,{type:"primary",onClick:function(){return e.logout()}},window.weappUtils.getLabel("171669","\u8fd4\u56de\u767b\u5f55\u754c\u9762"))})}))}l.langType&&localStorage.setItem("langType",l.langType),l.CASTGC?sessionStorage.setItem("E10_CASTGC",l.CASTGC):sessionStorage.removeItem("E10_CASTGC"),Object(c.l)("E10_moduleSource")&&(window.thirdLoginModuleSource=Object(c.l)("E10_moduleSource"))}catch(d){}n&&n()}})}},{key:"loginTicket",value:function(e,o,n,t){var i=this;o||(o=window.location.href);var a=this.baseServer+"/layout?ticket="+e+"&service="+encodeURIComponent(o);n&&(a="".concat(d,"/papi/baseserver/eteamsId/checkTicket")),this.requestApiNames.push(a);var r=function(){i.request({type:"POST",url:a,callback:function(e){i.checkEteamsId()}})};if(n){var l={service:encodeURIComponent(o),ticket:e};if(this.request({type:"POST",url:a,params:l,callback:function(o){try{2e3===JSON.parse(o).code?window.location.replace("".concat(s,"/sp/obstruct/onlinerebuild?onlineTicket=").concat(e,"&service=").concat(service,"&wea_link_keep_ecode_noreload=1")):r()}catch(n){r()}}}),this.getInfoError)return}else{var u="".concat(d,"/papi/app/baseserver/clearCookie?service=").concat(encodeURIComponent(this.originServer));t&&(u="".concat(d,"/papi/app/baseserver/clearCookieByName?cookieNames=ETEAMSID,WECHAT_ETEAMSID&service=").concat(encodeURIComponent(window.location.href))),Object(c.l)("E10_moduleSource")&&(window.thirdLoginModuleSource=Object(c.l)("E10_moduleSource")),this.request({type:"GET",url:u,callback:function(){Object(c.d)("ETEAMSID"),Object(c.d)("E10_moduleSource"),r()}})}this.intunifyauthUrlTransfer(!0),window.ETEAMSID||this.addAsyncMonitorTask({type:"passport_login_eteamsIdGetFaild",taskData:{ticket:e},des:"eteamsid\u83b7\u53d6\u5f02\u5e38"}),window.fromLoginPage=!0,this.loginWithTicket=!0,this.fetchTEAMS(!0)}},{key:"getETEAMSID",value:function(){var e=document.cookie.match(/(^| )ETEAMSID=([^;]*)(;|$)/);return e?unescape(e[2]):void 0}},{key:"login",value:function(){var e=window.location.hostname,o=window.location.href,n=Object(c.n)("ticket");if(this.clearCookies(),Object(c.p)()&&(window.ETEAMSID=this.getETEAMSID()),Object(c.n)("wea_link_keep_tempOtherToken")&&(this.useTempToken=!0,this.queryEteamsidByToken()),"1"!=Object(c.n)("wea_link_keep_ebAsyncAuth")&&"1"!=Object(c.n)("wea_link_keep_specialAuthcheck")||(this.ebAsyncAuth=!0),n){var t=!("1"!==Object(c.n)("fromWeappBrowser")),i=!("1"!==Object(c.n)("changeTenant")),a=Object(c.n)("detachTk"),r=o.indexOf("ticket=");o=o.substr(0,r-1),a&&(o="".concat(o).concat(-1===o.indexOf("?")?"?":"&","wea_link_keep_detachTk=").concat(a)),window.history.replaceState(null,null,o),window.sessionStorage.removeItem("E10_PORTALINTRO_LOADED"),this.loginTicket(n,o,t,i)}else if(window.ETEAMSID)this.fetchTEAMS();else{if(Object(c.G)()&&Object(c.n)("checkToken")&&(this.checkLoginForbid(),Object(c.v)()))return;try{var l,d;if(Object(c.r)()&&(null===(l=window.parent)||void 0===l?void 0:l.ETEAMSID))window.ETEAMSID=null===(d=window.parent)||void 0===d?void 0:d.ETEAMSID;else this.checkEteamsId()}catch(f){this.checkEteamsId()}if(this.logoutTimes>0||this.getInfoError)return;if(window.ETEAMSID)this.hooksTool.getReadySuccessHook("authChecked",{type:"unknow",data:{eteamsid:window.ETEAMSID}}),this.fetchTEAMS();else{if("1"===Object(c.n)("wea_link_keep_nsAuth")){this.getTokenFromPostMsg();var u=document.getElementById("root");return u&&(u.style.display="none"),void(window.onerror=function(e){return console.error("An error occurred:",e),!0})}if(Object(c.D)()){var p=Object(c.n)("wea_link_keep_async");p&&"1"==p?this.disPatchebAuthCheck():this.thirdLogin()}else{var w;if(-1==e.indexOf("localhost"))(null===(w=window.weappTenantEnv)||void 0===w?void 0:w.loginPrivateUrl)?window.showLayoutLogin=!0:("freepass"===Object(c.n)("wea_link_keep_intunifyauth_client")&&window.location.replace("".concat(this.passportServer).concat(s,"/login?service=").concat(window.location.href,"}")),Object(c.s)()||this.passportRedirect("login",window.location.href))}}}}},{key:"logoutRecord",value:function(e){this.request({type:"GET",url:"".concat(d,"/api/basicserver/logs/addLoginOutLog"),async:!1,callback:function(){e&&e()}})}},{key:"passportRedirect",value:function(){var e=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"logout",n=arguments.length>1?arguments[1]:void 0,t=n||this.originServer+d,i=sessionStorage.getItem("E10_CASTGC");if(i)this.request({type:"GET",url:"".concat(d,"/papi/app/baseserver/clearCookieByName?cookieNames=CASTGC&service=").concat(encodeURIComponent(window.location.href)),async:!1,callback:function(){var o,n;Object(c.d)("CASTGC"),sessionStorage.removeItem("E10_CASTGC");var t="".concat(e.originServer).concat(s,"/sp/integration/authLogoutNotify/freepass?tk=").concat(encodeURIComponent(window.btoa(null===(o=window.TEAMS)||void 0===o||null===(n=o.currentTenant)||void 0===n?void 0:n.tenantKey)),"&service=").concat(encodeURIComponent("".concat(e.passportServer,"/login")),"&castgc=").concat(i).c
1oncat(Object(c.q)()?"&caslogouturl=".concat(encodeURIComponent(sessionStorage.getItem("E10_CASLOGOUTURL"))):"");Object(c.n)("intunifyauthTransferUrl")&&(t=window.location.href),window.location.href="".concat(e.passportServer).concat(d,"/papi/passport/logout?service=").concat(encodeURIComponent(t))}});else if(Object(c.q)())this.request({type:"GET",url:"".concat(d,"/papi/app/basicserver/clearCookieByName?cookieNames=CASTGC&service=").concat(encodeURIComponent(window.location.href)),async:!1,callback:function(){t=(t=sessionStorage.getItem("E10_CASLOGOUTURL")).toString().replace(/"/g,""),sessionStorage.removeItem("E10_CASLOGOUTURL"),Object(c.d)("caslogouturl"),Object(c.d)("CASTGC"),sessionStorage.removeItem("E10_CASTGC"),window.location.replace("".concat(e.passportServer).concat(d,"/papi/passport/logout?service=").concat(encodeURIComponent(t)))}});else if(Object(c.d)("CASTGC"),sessionStorage.removeItem("E10_CASTGC"),window.sessionStorage.removeItem("E10_PORTALINTRO_LOADED"),"login"===o){var a;if(!Object(c.s)())if("freepass"===Object(c.n)("wea_link_keep_intunifyauth_client")&&window.location.replace("".concat(this.passportServer).concat(s,"/login")),this.sysLogoutUrl)window.location.replace("".concat(this.sysLogoutUrl,"?service=").concat(encodeURIComponent(n)));else if("true"===(null===(a=window.weappTenantEnv)||void 0===a?void 0:a.intunifyauthOpen)&&"freepass"!==Object(c.n)("wea_link_keep_intunifyauth_client")){var r=window.weappTenantEnv.intunifyauthUrl||"";window.location.replace("".concat(window.weappTenantEnv.weappUrl).concat(r).concat(-1!==r.indexOf("?")?"&":"?","oaAddress=").concat(encodeURIComponent(n),"&oaUrl=").concat(encodeURIComponent(window.weappTenantEnv.weappUrl),"&passportUrl=").concat(encodeURIComponent(window.weappTenantEnv.passportUrl)))}else window.location.replace("".concat(this.passportServer).concat(s,"/login?service=").concat(encodeURIComponent(n)))}else{var l,u,p,w,f,v,m,h,g,b=(null===(l=window.TEAMS)||void 0===l||null===(u=l.currentUser)||void 0===u?void 0:u.employeeId)||(null===(p=window.TEAMS)||void 0===p||null===(w=p.loginAccountInfo)||void 0===w?void 0:w.employeeId)||"",T=null===(f=window.TEAMS)||void 0===f||null===(v=f.loginAccountInfo)||void 0===v?void 0:v.loginType;if("true"!==(null===(m=window.weappTenantEnv)||void 0===m?void 0:m.intunifyauthOpen)||"freepass"===Object(c.n)("wea_link_keep_intunifyauth_client")||this.sysLogoutUrl)if(null===(h=window.TEAMS)||void 0===h||null===(g=h.loginAccountInfo)||void 0===g?void 0:g.passportCusLoginPath){var S,y,E,k,A=window.weappTenantEnv.passportUrl;if(null===(S=window.TEAMS)||void 0===S||null===(y=S.loginAccountInfo)||void 0===y?void 0:y.passportCusLoginDomain)A=null===(E=window.TEAMS)||void 0===E||null===(k=E.loginAccountInfo)||void 0===k?void 0:k.passportCusLoginDomain;window.location.replace("".concat(this.passportServer).concat(d,"/papi/passport/logout?service=").concat(encodeURIComponent(A+s+window.TEAMS.loginAccountInfo.passportCusLoginPath+"?service="+encodeURIComponent(t))).concat(b?"&employeeId=".concat(b):"").concat(T?"&loginType=".concat(T):"").concat("freepass"===Object(c.n)("wea_link_keep_intunifyauth_client")?"&wea_link_keep_intunifyauth_client=freepass":""))}else{var O="".concat(this.originServer).concat(s).concat(window.location.search);window.location.pathname==="".concat(s,"/")&&(O="".concat(this.originServer).concat(s,"/").concat(window.location.search));var M="intunifyauth"===Object(c.n)("wea_link_keep_loginType");if(!M||!0!==window.fromLoginPage&&!0!==this.loginWithTicket){var _=Object(c.n)("intunifyauthTransferUrl");(0===window.location.pathname.indexOf("".concat(s,"/info"))||Object(c.C)()||-1!==window.location.pathname.indexOf("/community/index")||_)&&(O=window.location.href,-1!==window.location.href.indexOf("/obstruct/")&&(O=Object(c.n)("oriService")?decodeURIComponent(Object(c.n)("oriService")):"".concat(this.originServer).concat(s).concat(window.location.search)))}else O=window.location.href.replace("".concat(window.TEAMS.currentUser.employeeId),"${employeeId}");var I="".concat(this.passportServer).concat(s,"/login?service=").concat(encodeURIComponent(O));if(T&&"detach_manager"===T)if(window.sessionStorage.getItem("E10_PASSPORT_ADMINLOGIN_ADDR"))I=window.sessionStorage.getItem("E10_PASSPORT_ADMINLOGIN_ADDR");else{var C=Object(c.n)("wea_link_keep_detachTk");I="".concat(this.passportServer).concat(s,"/adminlogin").concat(C?"?detachTk=".concat(C):"")}window.location.replace("".concat(this.passportServer).concat(d,"/papi/passport/logout?service=").concat(encodeURIComponent(I)).concat(b?"&employeeId=".concat(b):"").concat(T?"&loginType=".concat(T):""))}else{var j=window.weappTenantEnv.intunifyauthUrl||"";logoutUrl="".concat(window.weappTenantEnv.weappUrl).concat(j).concat(-1!==j.indexOf("?")?"&":"?","oaAddress=").concat(encodeURIComponent(n),"&oaUrl=").concat(encodeURIComponent(window.weappTenantEnv.weappUrl),"&passportUrl=").concat(encodeURIComponent(window.weappTenantEnv.passportUrl)),window.location.replace("".concat(this.passportServer).concat(d,"/papi/passport/logout?service=").concat(encodeURIComponent(logoutUrl)))}}}},{key:"logout",value:function(e){var o,n,t=this;null===(o=(n=window).ecode_passportBeforeLogout)||void 0===o||o.call(n,this);try{var i,a;this.request({type:"POST",url:"".concat(d,"/papi/basiconline/offline/exitConn"),params:{userId:null===(i=window.TEAMS)||void 0===i||null===(a=i.currentUser)||void 0===a?void 0:a.userId,eteamsId:window.ETEAMSID,label:"exit_login",channelId:window.E10_WS_channelId||null},callback:function(){t.logoutFunc()}})}catch(r){this.logoutFunc()}}},{key:"logoutFunc",value:function(){var e,o,n=this;if(!(this.logoutTimes>
10)){if(window.forbidReloginDialog=!0,this.logoutTimes+=1,this.websocketConnection&&this.websocketConnection.close(),(null===(e=window.TEAMS)||void 0===e?void 0:e.currentUser)&&(null===(o=window.TEAMS)||void 0===o?void 0:o.currentTenant)){var t=window.TEAMS.currentUser.id,i=window.TEAMS.currentTenant.tenantKey,a=this.originServer+"".concat(d,"/papi/app/baseserver/refreshEmployee?empId=")+t+"&tenantKey="+i;this.requestApiNames.push(a),this.request({type:"GET",url:a,async:!1})}window.sessionStorage.removeItem("portalConfigLoaded"),window.localStorage.removeItem("WEAPP_LAYOUT_DOC_DETAILSPOP"),sessionStorage.removeItem("E10_loginRedirected");var r=function(){n.request({type:"GET",url:"".concat(d,"/papi/baseserver/clearEteamsId"),async:!1,callback:function(){n.request({type:"GET",url:"".concat(d,"/papi/app/baseserver/clearCookie?service=").concat(encodeURIComponent(n.originServer)),async:!1,callback:function(){n.clearCookies(),Object(c.d)("ETEAMSID"),n.getInfoError?n.passportRedirect("logout"):n.request({type:"POST",url:"".concat(d,"/papi/app/baseserver/info/getInfo"),callback:function(e,o){try{var t=JSON.parse(e).data||{};t.CASTGC?sessionStorage.setItem("E10_CASTGC",t.CASTGC):sessionStorage.removeItem("E10_CASTGC"),n.passportRedirect("logout")}catch(i){}}})}})}})};Object(c.q)()?this.logoutRecord((function(){r()})):r()}}},{key:"clearCookies",value:function(){localStorage.removeItem("UPDATE_PASSWORD_REMIND_LOADED"),localStorage.removeItem("UPDATE_PASSWORD_REMIND_URL")}},{key:"layoutLogin",value:function(e,o){this.loginTicket(e),o()}},{key:"getCurrentModuleByMap",value:function(e,o){var n,t="";o||(o=window.location.pathname.replace(s,"")),0===(o=o.toLowerCase()).indexOf("/sp/")&&(o=o.replace("/sp","")),n="standardModules"==e?l.e:l.b;for(var i=0;i<n.length;i++){var a=n[i].toLowerCase().split("::"),r=n[i].split("::")[0],d=a[1],u=a[2];if(Object(c.y)()){if(0===o.indexOf(u)){t=r;break}}else if(0===o.indexOf(d)){t=r;break}}return t}},{key:"getPathByModule",value:function(e){for(var o=l.e,n=[],t=0;t<o.length;t++){var i=o[t].toLowerCase().split("::"),a=o[t].split("::")[0],r=i[1],c=i[2];e===a&&(n.push(r),n.push(c))}return n}},{key:"getModulePurchasedByUrl",value:function(){var e,o,n,t,i,a=!0,r=this.getCurrentModuleByMap("displayModules");return r&&!(null===(e=window.TEAMS)||void 0===e?void 0:e.isPurchasedModule(r))&&(a=!1),"im"===r&&((null===(o=window.TEAMS)||void 0===o||null===(n=o.isPurchasedModule)||void 0===n?void 0:n.call(o,"im"))||(null===(t=window.TEAMS)||void 0===t||null===(i=t.isPurchasedModule)||void 0===i?void 0:i.call(t,"emmsg")))&&(a=!0),!!this.pathMapMathed(l.d)||("0"===Object(c.n)("wea_link_keep_basic_intercept")||a)}},{key:"getModuleDisabledByUrl",value:function(e){var o=this.getCurrentModuleByMap("disableModules");return!this.pathMapMathed(l.a)&&("0"!==Object(c.n)("wea_link_keep_basic_intercept")&&window.TEAMS.isDisabledModule(o,e))}},{key:"getModuleInstallByUrl",value:function(){var e=this.getCurrentModuleByMap("displayModules");return!!this.pathMapMathed(l.a)||(!e||window.TEAMS.isInstalledModule(e))}},{key:"getModuleStatusByUrl",value:function(e){var o,n,t,i,a,r,c=this.getCurrentModuleByMap("displayModules",e),s=this.getCurrentModuleByMap("standardModules",e),d=!0,u=!0;return c&&!(null===(o=window.TEAMS)||void 0===o?void 0:o.isPurchasedModule(c))&&(d=!1),"im"===c&&((null===(n=window.TEAMS)||void 0===n||null===(t=n.isPurchasedModule)||void 0===t?void 0:t.call(n,"im"))||(null===(i=window.TEAMS)||void 0===i||null===(a=i.isPurchasedModule)||void 0===a?void 0:a.call(i,"emmsg")))&&(d=!0),c&&!(null===(r=window.TEAMS)||void 0===r?void 0:r.isInstallModule(s))&&(u=!0),this.pathMapMathed(l.d,e)&&(d=!0,u=!0),{isPurchasedLicense:d,isDisabledModule:!this.pathMapMathed(l.a,e)&&window.TEAMS.isDisabledModule(s),isInstall:u}}},{key:"setUrlLangType",value:function(){var e=Object(c.n)("layout_tenant_langType");if(e){Object(c.d)("langType"),Object(c.J)("langType",e);var o=window.location.href,n=o.indexOf("layout_tenant_langType=");o=o.substr(0,n-1),window.history.replaceState(null,null,o)}}},{key:"showPcLock",value:function(){var e=this;this.pcLocked||Object(c.c)((function(){var o,n;null===(o=window.weappUtils)||void 0===o||null===(n=o.corsImport)||void 0===n||n.call(o,"@
1weapp/layout").then((function(o){var n=o.PCLockMaskCom;e.lockPageDom=document.createElement("div"),window.ReactDOM.render(React.createElement(n,{}),e.lockPageDom),document.body.appendChild(e.lockPageDom);var t=setTimeout((function(){e.pcLocked&&(e.contentDom=document.body.removeChild(document.querySelector("#root"))),clearTimeout(t)}),3e3);e.pcLocked=!0}))}))}},{key:"lockPage",value:function(e){var o=/weapp-pc/i.test(window.navigator.userAgent),n=Object(c.j)();this.request({url:"/api/basiconline/online/lockPage?dtu=".concat(o?"app-pc":"pc","&touchDtu=").concat(n),type:"GET",callback:function(o){var n=JSON.parse(o),t=n.status;n.data,n.msg;t&&(null===e||void 0===e||e())}})}},{key:"updateCache",value:function(e,o){var n=function(e,o,n){var t=(null===o||void 0===o?void 0:o.split("."))||[];t.forEach((function(o,i){i===t.length-1?e[o]=n:(!function(e,o){e[o]instanceof Object||(e[o]={})}(e,o),e=e[o])}))},t="E10_TEAMS_LOCAL",i=localStorage.getItem(t);try{i=JSON.parse(i)}catch(a){i=window.TEAMS}n(i,e,o),n(window.TEAMS,e,o),window.localStorage.setItem(t,JSON.stringify(i))}}]),e}(),p=new u;o.default=p},function(e,o,n){"use strict";function t(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}n.d(o,"a",(function(){return t}))},function(e,o,n){"use strict";function t(e,o){for(var n=0;n<o.length;n++){var t=o[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function i(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}n.d(o,"a",(function(){return i}))},function(e,o,n){"use strict";var t=n(1),i=n(5),a=n(4),r=Object(i.a)((function e(){var o=this;Object(a.a)(this,e),this.readyStateQueue=[],this.queue={},this.noop=function(){},this.getHooks=function(e){return e?e.split(".").reduce((function(e,o){return Array.isArray(e)?e:e&&o in e?e[o]:e}),o.queue):o.queue},this.regHook=function(e,n){var i=o.getHooks(e)||[];Array.isArray(i)||(i=[]);var a={fn:o.noop,priority:0};a="object"===typeof n&&(null===n||void 0===n?void 0:n.fn)?Object(t.a)(Object(t.a)({},a),n):Object(t.a)(Object(t.a)({},a),{},{fn:n}),i.push(a),i.sort((function(e,o){return e.priority>o.priority?1:-1})),o.setHooks(e,i)},this.setHooks=function(e,n){if(e){var t=e.split("."),i=t.length,a=o.queue;t.forEach((function(e,o){if(i-1===o)a[e]=n;else{var t=a[e];t&&!Array.isArray(t)?a=t:(a[e]={},a=a[e])}}))}}
1,this.getSyncHook=function(e){var n=o.getHooks(e)||[];return Array.isArray(n)&&n.length?n.reverse().reduce((function(e,o){return function(n){var t,i=(null===(t=o.fn)||void 0===t?void 0:t.call(o,n))||n;return(null===e||void 0===e?void 0:e(i))||i}}),(function(e){return e})):null},this.getReadyState=function(e){var n=o.readyStateQueue[e];return n||(n={loading:!0,data:void 0,error:void 0},o.readyStateQueue[e]=n),n},this.getReadyHooks=function(e,n){var t=o.getReadyState(e);if(t&&t.loading)n&&n.success&&o.regHook(e+".success",n.success),n&&n.failed&&o.regHook(e+".failed",n.failed);else if(t.data){var i;null===(i=n.success)||void 0===i||i.call(n,t.data)}else if(t.error){var a;null===(a=n.failed)||void 0===a||a.call(n,t.error)}},this.getReadySuccessHook=function(e,n){var t=o.getReadyState(e);if(null===t||void 0===t?void 0:t.loading){t.loading=!1,t.data=n;var i=o.getSyncHook(e+".success");i&&i(n),o.setHooks(e+".success",[]),o.setHooks(e+".failed",[])}},this.getReadyFailedHook=function(e,n){var t=o.getReadyState(e);if(t&&t.loading){t.loading=!1,t.error=n;var i=o.getSyncHook(e+".failed");i&&i(n),o.setHooks(e+".success",[]),o.setHooks(e+".failed",[])}}}));o.a=r},function(e,o,n){},function(e,o,n){"use strict";n.r(o);try{if(!window.location.origin){var t=window.location,i=t.protocol,a=t.hostname,r=t.port,c="".concat(i,"//").concat(a).concat(r?":"+r:"");window.location.origin=c}String.prototype.hasOwnProperty("replaceAll")||(String.prototype.replaceAll=function(e,o){return this.replace(new RegExp(e,"gim"),o)})}catch(s){console.error(s)}var l=n(3);window.ePassport={logout:function(){l.default.logout()},clearCookies:function(){l.default.clearCookies()},reloadTEAMS:function(){l.default.reloadTEAMS()},showClearPrompt:function(){l.default.showClearPrompt()},lockPage:function(e){l.default.lockPage(e)},updateCache:function(e,o){l.default.updateCache(e,o)},isFreePassUrl:l.default.isFreePassUrl||!1};o.default=l.default}])})); 2//# sourceMappingURL=lib.js.map?v=44e9d4de
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.