@jctrans-materials/comps-vue3 1.0.37-beta.13 → 1.0.37-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{ref as e,computed as t,onMounted as a,onBeforeUnmount as n,defineComponent as o,toRef as i,watch as r,createElementBlock as s,openBlock as l,normalizeClass as c,createElementVNode as u,createBlock as d,createVNode as p,renderSlot as h,createCommentVNode as f,withDirectives as m,Fragment as g,renderList as y,toDisplayString as v,withModifiers as w,withKeys as C,normalizeStyle as b,vModelText as A,unref as E,Teleport as k,createTextVNode as x,vShow as S,reactive as I,withCtx as B,resolveComponent as V,mergeProps as P,toHandlers as T,Transition as R,resolveDynamicComponent as N,createSlots as U,onUnmounted as D,mergeModels as F,useModel as _,normalizeProps as L,guardReactiveProps as M,nextTick as O,isRef as j,getCurrentInstance as q,createApp as H}from"vue";import{locationSearchV2 as z,reportNewTypeDataApi as J,getCompanyOptionApi as W,slideGetApi as Q,slideCheckApi as K,emitter as G,MODAL_ACTION as X,setTokenAll as Y,getAuthSessionItems as Z,loginByFacebookApi as $,loginByLinkedinApi as ee,validateAccountExistApi as te,findListByMobileEmailApi as ae,validateCompanyApi as ne,resetAuthSessionItems as oe,registerJoinCompanyBindWechatApi as ie,registerJoinCompanyApi as re,registerUserCompBindWechatApi as se,registerApi as le,Encrypt as ce,sendEmailCodeApi as ue,getLocalIpDataApi as de,findPAreaCodeAPi as pe,findDictAPi as he,sendMobileCodeApi as fe,getLoginQrCode as me,setAuthSessionItems as ge,loginByQrCode as ye,getFirstDomain as ve,loginApi as we,loginByEmailOrMobileCodeApi as Ce,loginPwdBindWechatApi as be,loginCodeBindWechatApi as Ae,completeJoinCompanyRedirectApi as Ee,completeCompRedirectApi as ke,getUserInfoApi as xe,resetPasswordApi as Se,getMEVCodeApi as Ie,checkAccountExistsFPApi as Be,bindThirdPartyByPwdApi as Ve,bindThirdPartyByCodeApi as Pe,registerJoinCompByThirdPartyApi as Te,registerByThirdPartyApi as Re,resetGioSessionItems as Ne,getRememberAccount as Ue,Decrypt as De,setRememberMe as Fe,tracker as _e,initSharedConfig as Le}from"@jctrans-materials/shared";import{MODAL_ACTION as Me,createRequest as Oe,emitter as je,getAppId as qe,initSharedConfig as He}from"@jctrans-materials/shared";import{useFormItem as ze,ElMessage as Je,vLoading as We,ElSelect as Qe,ElOption as Ke,ElInput as Ge,ElDialog as Xe,ElForm as Ye,ElRow as Ze,ElCol as $e,ElFormItem as et,ElCheckbox as tt,ElButton as at,ElRadioButton as nt,ElRadioGroup as ot,ElMessageBox as it,ElCascader as rt,ElTag as st}from"element-plus";const lt=e=>!!e?.id&&!!e?.type&&!e?.display;function ct(e){return{hydrateMultiple:async t=>{if(!Array.isArray(t)||0===t.length)return{updatedList:t,hasChanged:!1};const a=t.filter(e=>lt(e));if(0===a.length)return{updatedList:t,hasChanged:!1};const n=a.reduce((e,t)=>{const a=t.type;return e[a]||(e[a]=[]),e[a].push(t.id),e},{}),o=/* @__PURE__ */new Map;for(const[r,s]of Object.entries(n)){if(0===s.length)continue;const t=await e(s,r);(t?.records||[]).forEach(e=>{e?.id&&e?.type&&o.set(`${e.type}::${e.id}`,e)})}let i=!1;return{updatedList:t.map(e=>{if(!lt(e))return e;const t=`${e.type}::${e.id}`,a=o.get(t);return a?(i=!0,{...e,...a}):e}),hasChanged:i}},hydrateSingle:async t=>{if(!t||!lt(t))return t;const a=await e(t.id,t.type),n=a?.records||[],o=n.find(e=>e?.id===t.id&&e?.type===t.type)||n[0];return o?{...t,...o}:t}}}const ut=(e,t)=>z.searchByIdWithType(e,t);function dt(a,n,o){const i=e([]),r=e(!1),s=e(!1),l=e(1),c=e(0),u=e(10),d=t(()=>0!==c.value&&i.value.length>=c.value),p=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e}),h=e=>e&&Array.isArray(e)?e.filter(e=>p.value.includes(e.type)):[];return{searchResults:i,loading:r,isFetchingMore:s,isFinished:d,currentPage:l,total:c,fetchData:async(e=1,t=!1)=>{const p=o?.parentId?.value,f=a.value.trim();if(!f&&!t&&!p)return i.value=[],void(c.value=0);if((!t||!s.value&&!d.value)&&(t||!r.value)){t?s.value=!0:(r.value=!0,l.value=1);try{const a={};p&&o?.parentType?.value&&("Country"===o.parentType.value?a.countryIds=[o.parentId?.value]:"City"===o.parentType.value&&(a.cityIds=[o.parentId?.value]));const r=await async function(e,t=["Continent","Country","City","Seaport","Airport"],a={}){return z.searchByName({keyword:e,displayInfo:t,...a})}(f,n.value,{current:e,size:u.value,...a}),s=r.records||[],d=h(s);i.value=t?[...i.value,...d]:d,c.value=r.total||0,l.value=e}catch(m){console.error("Failed to fetch search results:",m)}finally{r.value=!1,s.value=!1}}},filterByTypes:h}}const pt=Math.min,ht=Math.max,ft=Math.round,mt=Math.floor,gt=e=>({x:e,y:e}),yt={left:"right",right:"left",bottom:"top",top:"bottom"},vt={start:"end",end:"start"};function wt(e,t,a){return ht(e,pt(t,a))}function Ct(e,t){return"function"==typeof e?e(t):e}function bt(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function Et(e){return"x"===e?"y":"x"}function kt(e){return"y"===e?"height":"width"}const xt=/* @__PURE__ */new Set(["top","bottom"]);function St(e){return xt.has(bt(e))?"y":"x"}function It(e){return Et(St(e))}function Bt(e){return e.replace(/start|end/g,e=>vt[e])}const Vt=["left","right"],Pt=["right","left"],Tt=["top","bottom"],Rt=["bottom","top"];function Nt(e,t,a,n){const o=At(e);let i=function(e,t,a){switch(e){case"top":case"bottom":return a?t?Pt:Vt:t?Vt:Pt;case"left":case"right":return t?Tt:Rt;default:return[]}}(bt(e),"start"===a,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Bt)))),i}function Ut(e){return e.replace(/left|right|bottom|top/g,e=>yt[e])}function Dt(e){const{x:t,y:a,width:n,height:o}=e;return{width:n,height:o,top:a,left:t,right:t+n,bottom:a+o,x:t,y:a}}function Ft(e,t,a){let{reference:n,floating:o}=e;const i=St(t),r=It(t),s=kt(r),l=bt(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(At(t)){case"start":h[r]-=p*(a&&c?-1:1);break;case"end":h[r]+=p*(a&&c?-1:1)}return h}async function _t(e,t){var a;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:r,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Ct(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(h),m=s[p?"floating"===d?"reference":"floating":d],g=Dt(await i.getClippingRect({element:null==(a=await(null==i.isElement?void 0:i.isElement(m)))||a?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:o,width:r.floating.width,height:r.floating.height}:r.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},C=Dt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-C.top+f.top)/w.y,bottom:(C.bottom-g.bottom+f.bottom)/w.y,left:(g.left-C.left+f.left)/w.x,right:(C.right-g.right+f.right)/w.x}}const Lt=/* @__PURE__ */new Set(["left","top"]);function Mt(){return"undefined"!=typeof window}function Ot(e){return Ht(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qt(e){var t;return null==(t=(Ht(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ht(e){return!!Mt()&&(e instanceof Node||e instanceof jt(e).Node)}function zt(e){return!!Mt()&&(e instanceof Element||e instanceof jt(e).Element)}function Jt(e){return!!Mt()&&(e instanceof HTMLElement||e instanceof jt(e).HTMLElement)}function Wt(e){return!(!Mt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot)}const Qt=/* @__PURE__ */new Set(["inline","contents"]);function Kt(e){const{overflow:t,overflowX:a,overflowY:n,display:o}=ra(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+a)&&!Qt.has(o)}const Gt=/* @__PURE__ */new Set(["table","td","th"]);function Xt(e){return Gt.has(Ot(e))}const Yt=[":popover-open",":modal"];function Zt(e){return Yt.some(t=>{try{return e.matches(t)}catch(a){return!1}})}const $t=["transform","translate","scale","rotate","perspective"],ea=["transform","translate","scale","rotate","perspective","filter"],ta=["paint","layout","strict","content"];function aa(e){const t=na(),a=zt(e)?ra(e):e;return $t.some(e=>!!a[e]&&"none"!==a[e])||!!a.containerType&&"normal"!==a.containerType||!t&&!!a.backdropFilter&&"none"!==a.backdropFilter||!t&&!!a.filter&&"none"!==a.filter||ea.some(e=>(a.willChange||"").includes(e))||ta.some(e=>(a.contain||"").includes(e))}function na(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const oa=/* @__PURE__ */new Set(["html","body","#document"]);function ia(e){return oa.has(Ot(e))}function ra(e){return jt(e).getComputedStyle(e)}function sa(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function la(e){if("html"===Ot(e))return e;const t=e.assignedSlot||e.parentNode||Wt(e)&&e.host||qt(e);return Wt(t)?t.host:t}function ca(e){const t=la(e);return ia(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&Kt(t)?t:ca(t)}function ua(e,t,a){var n;void 0===t&&(t=[]),void 0===a&&(a=!0);const o=ca(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=jt(o);if(i){const e=da(r);return t.concat(r,r.visualViewport||[],Kt(o)?o:[],e&&a?ua(e):[])}return t.concat(o,ua(o,[],a))}function da(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pa(e){const t=ra(e);let a=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Jt(e),i=o?e.offsetWidth:a,r=o?e.offsetHeight:n,s=ft(a)!==i||ft(n)!==r;return s&&(a=i,n=r),{width:a,height:n,$:s}}function ha(e){return zt(e)?e:e.contextElement}function fa(e){const t=ha(e);if(!Jt(t))return gt(1);const a=t.getBoundingClientRect(),{width:n,height:o,$:i}=pa(t);let r=(i?ft(a.width):a.width)/n,s=(i?ft(a.height):a.height)/o;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const ma=/* @__PURE__ */gt(0);function ga(e){const t=jt(e);return na()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ma}function ya(e,t,a,n){void 0===t&&(t=!1),void 0===a&&(a=!1);const o=e.getBoundingClientRect(),i=ha(e);let r=gt(1);t&&(n?zt(n)&&(r=fa(n)):r=fa(e));const s=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==jt(e))&&t}(i,a,n)?ga(i):gt(0);let l=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,u=o.width/r.x,d=o.height/r.y;if(i){const e=jt(i),t=n&&zt(n)?jt(n):n;let a=e,o=da(a);for(;o&&n&&t!==a;){const e=fa(o),t=o.getBoundingClientRect(),n=ra(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=r,a=jt(o),o=da(a)}}return Dt({width:u,height:d,x:l,y:c})}function va(e,t){const a=sa(e).scrollLeft;return t?t.left+a:ya(qt(e)).left+a}function wa(e,t){const a=e.getBoundingClientRect();return{x:a.left+t.scrollLeft-va(e,a),y:a.top+t.scrollTop}}const Ca=/* @__PURE__ */new Set(["absolute","fixed"]);function ba(e,t,a){let n;if("viewport"===t)n=function(e,t){const a=jt(e),n=qt(e),o=a.visualViewport;let i=n.clientWidth,r=n.clientHeight,s=0,l=0;if(o){i=o.width,r=o.height;const e=na();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=va(n);if(c<=0){const e=n.ownerDocument,t=e.body,a=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(a.marginLeft)+parseFloat(a.marginRight)||0,r=Math.abs(n.clientWidth-t.clientWidth-o);r<=25&&(i-=r)}else c<=25&&(i+=c);return{width:i,height:r,x:s,y:l}}(e,a);else if("document"===t)n=function(e){const t=qt(e),a=sa(e),n=e.ownerDocument.body,o=ht(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ht(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-a.scrollLeft+va(e);const s=-a.scrollTop;return"rtl"===ra(n).direction&&(r+=ht(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:r,y:s}}(qt(e));else if(zt(t))n=function(e,t){const a=ya(e,!0,"fixed"===t),n=a.top+e.clientTop,o=a.left+e.clientLeft,i=Jt(e)?fa(e):gt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,a);else{const a=ga(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Dt(n)}function Aa(e,t){const a=la(e);return!(a===t||!zt(a)||ia(a))&&("fixed"===ra(a).position||Aa(a,t))}function Ea(e,t,a){const n=Jt(t),o=qt(t),i="fixed"===a,r=ya(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=gt(0);function c(){l.x=va(o)}if(n||!n&&!i)if(("body"!==Ot(t)||Kt(o))&&(s=sa(t)),n){const e=ya(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=!o||n||i?gt(0):wa(o,s);return{x:r.left+s.scrollLeft-l.x-u.x,y:r.top+s.scrollTop-l.y-u.y,width:r.width,height:r.height}}function ka(e){return"static"===ra(e).position}function xa(e,t){if(!Jt(e)||"fixed"===ra(e).position)return null;if(t)return t(e);let a=e.offsetParent;return qt(e)===a&&(a=a.ownerDocument.body),a}function Sa(e,t){const a=jt(e);if(Zt(e))return a;if(!Jt(e)){let t=la(e);for(;t&&!ia(t);){if(zt(t)&&!ka(t))return t;t=la(t)}return a}let n=xa(e,t);for(;n&&Xt(n)&&ka(n);)n=xa(n,t);return n&&ia(n)&&ka(n)&&!aa(n)?a:n||function(e){let t=la(e);for(;Jt(t)&&!ia(t);){if(aa(t))return t;if(Zt(t))return null;t=la(t)}return null}(e)||a}const Ia={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:a,offsetParent:n,strategy:o}=e;const i="fixed"===o,r=qt(n),s=!!t&&Zt(t.floating);if(n===r||s&&i)return a;let l={scrollLeft:0,scrollTop:0},c=gt(1);const u=gt(0),d=Jt(n);if((d||!d&&!i)&&(("body"!==Ot(n)||Kt(r))&&(l=sa(n)),Jt(n))){const e=ya(n);c=fa(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const p=!r||d||i?gt(0):wa(r,l);return{width:a.width*c.x,height:a.height*c.y,x:a.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:a.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:qt,getClippingRect:function(e){let{element:t,boundary:a,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===a?Zt(t)?[]:function(e,t){const a=t.get(e);if(a)return a;let n=ua(e,[],!1).filter(e=>zt(e)&&"body"!==Ot(e)),o=null;const i="fixed"===ra(e).position;let r=i?la(e):e;for(;zt(r)&&!ia(r);){const t=ra(r),a=aa(r);a||"fixed"!==t.position||(o=null),(i?!a&&!o:!a&&"static"===t.position&&o&&Ca.has(o.position)||Kt(r)&&!a&&Aa(e,r))?n=n.filter(e=>e!==r):o=t,r=la(r)}return t.set(e,n),n}(t,this._c):[].concat(a),n],r=i[0],s=i.reduce((e,a)=>{const n=ba(t,a,o);return e.top=ht(n.top,e.top),e.right=pt(n.right,e.right),e.bottom=pt(n.bottom,e.bottom),e.left=ht(n.left,e.left),e},ba(t,r,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Sa,getElementRects:async function(e){const t=this.getOffsetParent||Sa,a=this.getDimensions,n=await a(e.floating);return{reference:Ea(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:a}=pa(e);return{width:t,height:a}},getScale:fa,isElement:zt,isRTL:function(e){return"rtl"===ra(e).direction}};function Ba(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Va(e,t,a,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=ha(e),u=o||i?[...c?ua(c):[],...ua(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",a,{passive:!0}),i&&e.addEventListener("resize",a)});const d=c&&s?function(e,t){let a,n=null;const o=qt(e);function i(){var e;clearTimeout(a),null==(e=n)||e.disconnect(),n=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-mt(d)+"px "+-mt(o.clientWidth-(u+p))+"px "+-mt(o.clientHeight-(d+h))+"px "+-mt(u)+"px",threshold:ht(0,pt(1,l))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(n!==l){if(!m)return r();n?r(!1,n):a=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==n||Ba(c,e.getBoundingClientRect())||r(),m=!1}try{n=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(y){n=new IntersectionObserver(g,f)}n.observe(e)}(!0),i}(c,a):null;let p,h=-1,f=null;r&&(f=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),a()}),c&&!l&&f.observe(c),f.observe(t));let m=l?ya(e):null;return l&&function t(){const n=ya(e);m&&!Ba(m,n)&&a();m=n,p=requestAnimationFrame(t)}(),a(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",a),i&&e.removeEventListener("resize",a)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Pa=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var a,n;const{x:o,y:i,placement:r,middlewareData:s}=t,l=await async function(e,t){const{placement:a,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),r=bt(a),s=At(a),l="y"===St(a),c=Lt.has(r)?-1:1,u=i&&l?-1:1,d=Ct(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return r===(null==(a=s.offset)?void 0:a.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:r}}}}},Ta=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:s={fn:e=>{let{x:t,y:a}=e;return{x:t,y:a}}},...l}=Ct(e,t),c={x:a,y:n},u=await _t(t,l),d=St(bt(o)),p=Et(d);let h=c[p],f=c[d];if(i){const e="y"===p?"bottom":"right";h=wt(h+u["y"===p?"top":"left"],h,h-u[e])}if(r){const e="y"===d?"bottom":"right";f=wt(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-a,y:m.y-n,enabled:{[p]:i,[d]:r}}}}}},Ra=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var a,n;const{placement:o,middlewareData:i,rects:r,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Ct(e,t);if(null!=(a=i.arrow)&&a.alignmentOffset)return{};const y=bt(o),v=St(s),w=bt(s)===s,C=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(w||!m?[Ut(s)]:function(e){const t=Ut(e);return[Bt(e),t,Bt(t)]}(s)),A="none"!==f;!p&&A&&b.push(...Nt(s,m,f,C));const E=[s,...b],k=await _t(t,g),x=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&x.push(k[y]),d){const e=function(e,t,a){void 0===a&&(a=!1);const n=At(e),o=It(e),i=kt(o);let r="x"===o?n===(a?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=Ut(r)),[r,Ut(r)]}(o,r,C);x.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:x}],!x.every(e=>e<=0)){var I,B;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=E[e];if(t){if(!("alignment"===d&&v!==St(t))||S.every(e=>St(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let a=null==(B=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:B.placement;if(!a)switch(h){case"bestFit":{var V;const e=null==(V=S.filter(e=>{if(A){const t=St(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:V[0];e&&(a=e);break}case"initialPlacement":a=s}if(o!==a)return{reset:{placement:a}}}return{}}}},Na=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var a,n;const{placement:o,rects:i,platform:r,elements:s}=t,{apply:l=()=>{},...c}=Ct(e,t),u=await _t(t,c),d=bt(o),p=At(o),h="y"===St(o),{width:f,height:m}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const v=m-u.top-u.bottom,w=f-u.left-u.right,C=pt(m-u[g],v),b=pt(f-u[y],w),A=!t.middlewareData.shift;let E=C,k=b;if(null!=(a=t.middlewareData.shift)&&a.enabled.x&&(k=w),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(E=v),A&&!p){const e=ht(u.left,0),t=ht(u.right,0),a=ht(u.top,0),n=ht(u.bottom,0);h?k=f-2*(0!==e||0!==t?e+t:ht(u.left,u.right)):E=m-2*(0!==a||0!==n?a+n:ht(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:E});const x=await r.getDimensions(s.floating);return f!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}},Ua=(e,t,a)=>{const n=/* @__PURE__ */new Map,o={platform:Ia,...a},i={...o.platform,_c:n};return(async(e,t,a)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:r}=a,s=i.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ft(c,n,l),p=n,h={},f=0;for(let m=0;m<s.length;m++){const{name:a,fn:i}=s[m],{x:g,y:y,data:v,reset:w}=await i({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:c,platform:r,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,h={...h,[a]:{...h[a],...v}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await r.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Ft(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};const Da="data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e",Fa="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_a={class:"selection-wrapper"},La={class:"tag-text"},Ma=["onClick"],Oa={key:0,class:"search-tag collapse"},ja=["placeholder"],qa={class:"suffix-area"},Ha={key:1,class:"loading-spinner"},za={class:"search-icon"},Ja=["src"],Wa={key:0,class:"history-section"},Qa={class:"history-header"},Ka=["onMousedown"],Ga=["src"],Xa={class:"type-text"},Ya={class:"result-text"},Za={key:0,class:"status-msg"},$a=["onMousedown"],en=["src"],tn={class:"type-text"},an={class:"result-text"},nn={key:0,class:"load-more-msg"},on={key:2,class:"status-msg"},rn={key:0,class:"no-result-label"},sn={key:1,class:"no-result-label"},ln={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},cn=["src"],un=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a},dn=/* @__PURE__ */un(/* @__PURE__ */o({__name:"index",props:{modelValue:{default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{default:()=>["Continent","Country","Region","City","Seaport","Airport"]},historyKey:{default:void 0},lang:{default:""},placeholder:{},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},parentId:{default:null},parentType:{default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","blur","change","submit-search","remove","clear","apply-data","apply-data-open","apply-data-close"],setup(o,{emit:I}){const B=o,V=I,P=e(null),T=e(null),R=e(null),N=e(""),U=e(""),D=e(!1);let F=null;const _=e(!1),L=t(()=>B.modelValue?Array.isArray(B.modelValue)?B.modelValue:[B.modelValue]:[]),M=t(()=>B.multiple?B.collapseTags?L.value.slice(0,1):L.value:[]),O=t(()=>N.value||L.value.length>0),j=t(()=>B.multiple?N.value?10*N.value.length+20+"px":"10px":"100%"),{searchHistory:q,saveToHistory:H,clearHistory:z}=function(n){const o=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return a(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{o.value=JSON.parse(t)}catch(e){o.value=[]}}}),{searchHistory:o,saveToHistory:e=>{if(!e||!i)return;const t=o.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const a=t.slice(0,4);if(s.value){o.value=a;try{localStorage.setItem(r.value,JSON.stringify(a))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{o.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(B,"historyKey")),{searchResults:J,loading:W,isFetchingMore:Q,isFinished:K,currentPage:G,fetchData:X,filterByTypes:Y}=dt(N,i(B,"searchTypeList"),{parentId:i(B,"parentId"),parentType:i(B,"parentType")}),{floatingStyles:Z,startTrack:$,stopTrack:ee}=function(t,a){const o=e({position:"fixed",left:"0",top:"0",zIndex:3e3});let i=null;const r=()=>{t.value&&a.value&&Ua(t.value,a.value,{placement:"bottom-start",strategy:"fixed",middleware:[Pa(6),Ra(),Ta({padding:10}),Na({apply({rects:e,elements:t,availableWidth:a}){const n=`${e.reference.width}px`,o=e.reference.width;Object.assign(t.floating.style,{width:"max-content",minWidth:n,maxWidth:`${Math.max(o,a-20)}px`})}})]}).then(({x:e,y:t})=>{Object.assign(o.value,{left:`${e}px`,top:`${t}px`})})},s=()=>{i&&(i(),i=null)};return n(s),{floatingStyles:o,startTrack:()=>{t.value&&a.value&&(i=Va(t.value,a.value,r))},stopTrack:s}}(T,R),{hydrateMultiple:te,hydrateSingle:ae}=ct(ut),{isDropdownVisible:ne,openDropdown:oe,handleAfterSelect:ie,handleBlur:re}=function(t,a,n,o){const i=e(!1),r=()=>i.value=!1;return{isDropdownVisible:i,openDropdown:()=>i.value=!0,closeDropdown:r,handleAfterSelect:()=>{t?a.value?.focus():(n.value="",r(),a.value?.blur())},handleBlur:()=>{setTimeout(()=>{r(),o("blur"),n.value=""},200)}}}(i(B,"multiple").value,P,N,V),{formItem:se}=ze(),le=t(()=>J.value.length>0||W.value||N.value||q.value.length>0),ce=t(()=>{if(B.lang)return"en"===B.lang||"en-US"===B.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),ue=t(()=>B.multiple&&L.value.length>0?"":D.value&&!B.multiple?U.value:B.placeholder?B.placeholder:ce.value?"Please enter...":"请输入..."),de=e=>({City:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",Country:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACmklEQVR4AXRTT0jUQRT+3uyqGxgYeCiy1JAo6JBUp4Q81EEiKKiDa+H+/ENGHgPpZtChQ4EHL+Ku+9t0V7EkQSGPBYGHBIU6RAqt2cFDBw9C+3de3yy7hob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lI6lVkd90RgGKkVFrrc+9REXubjLH9FxfbbVUVGG5v4i2p8LD8x9ax65C66KTfKGCSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII="),pe=e=>{const t={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}}[e];return t?ce.value?t.en:t.cn:e},he=e=>L.value.some(t=>t.id===e.id),fe=()=>P.value?.focus(),me=e=>ce.value?e.displayEn||e.display||"":e.displayCn||e.display||"",ge=e=>{if(H(e),B.multiple){if(!he(e)){const t=[...L.value,e];V("update:modelValue",t)}}else U.value=me(e),D.value=!0,V("update:modelValue",e);V("select",e),V("change",e),se?.validate?.("change").catch(()=>{}),ie()},ye=e=>{const t=L.value.filter(t=>t.id!==e.id);V("update:modelValue",t),V("remove",e)},ve=()=>{B.multiple&&!N.value&&L.value.length>0&&ye(L.value[L.value.length-1])},we=()=>{N.value="",D.value=!1,U.value="";const e=B.multiple?[]:null;V("update:modelValue",e),V("clear"),se?.validate?.("change").catch(()=>{})},Ce=async()=>{if(oe(),!B.multiple&&D.value&&0===J.value.length){const e=B.modelValue;if(e?.id){W.value=!0;try{const t=await ut(e.id,e.type);J.value=Y(t.records)}finally{W.value=!1}}}},be=e=>{re(),se?.validate?.("blur").catch(()=>{})},Ae=e=>{const t=e.target;t&&(""!==t.value||B.multiple||we())},Ee=()=>{V("submit-search",L.value),ne.value=!1},ke=e=>{const t=e.target;if(!t)return;const{scrollTop:a,scrollHeight:n,clientHeight:o}=t;a+o>=n-20&&(W.value||Q.value||K.value||!N.value||X(G.value+1,!0))},xe=e=>{V("apply-data",e)},Se=()=>{_.value=!0,V("apply-data-open")},Ie=()=>{N.value="",_.value=!1,V("apply-data-close")};return r(()=>B.parentId,()=>{B.multiple||(N.value="",J.value=[])}),r(ne,e=>{e?$():ee()}),r(N,e=>{if(!e.trim())return J.value=[],void(F&&(clearTimeout(F),F=null));F&&clearTimeout(F),F=setTimeout(()=>X(1,!1),300)}),r(()=>B.modelValue,async(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return;if(B.multiple&&Array.isArray(e)){try{const{updatedList:t,hasChanged:a}=await te(e);a&&V("update:modelValue",t)}catch(n){console.error("Batch fetch detail failed:",n)}return}const a=e;if(!a)return D.value=!1,void(U.value="");if("object"==typeof a)if(a.id&&a.type&&!a.display)try{const e=await ae(a);e&&(U.value=me(e),D.value=!0)}catch(n){console.error("Single fetch detail failed:",n)}else U.value=me(a),D.value=!!U.value;else U.value=String(a),D.value=!!a},{immediate:!0,deep:!0}),n(()=>{ee(),F&&(clearTimeout(F),F=null)}),(e,t)=>(l(),s("div",{class:c(["search-container",{"is-disabled":o.disabled}])},[u("div",{class:c(["search-input-wrapper",{"is-multiple":o.multiple}]),ref_key:"referenceRef",ref:T,onClick:fe},[u("div",_a,[h(e.$slots,"prefix",{},void 0,!0),o.multiple&&L.value.length>0?(l(),s(g,{key:0},[(l(!0),s(g,null,y(M.value,(e,t)=>(l(),s("div",{key:e.id||t,class:"search-tag"},[u("span",La,v(me(e)),1),u("span",{class:"tag-close",onClick:w(t=>ye(e),["stop"])},"×",8,Ma)]))),128)),o.collapseTags&&L.value.length>1?(l(),s("div",Oa," + "+v(L.value.length-1),1)):f("",!0)],64)):f("",!0),m(u("input",{ref_key:"inputRef",ref:P,class:c({"is-selected-state":D.value&&!o.multiple}),"onUpdate:modelValue":t[0]||(t[0]=e=>N.value=e),type:"text",placeholder:ue.value,style:b({width:j.value}),onFocus:Ce,onBlur:be,onInput:Ae,onKeydown:C(ve,["delete"])},null,46,ja),[[A,N.value]])]),h(e.$slots,"suffix",{},()=>[u("div",qa,[O.value?(l(),s("span",{key:0,class:"clear-icon",onMousedown:t[1]||(t[1]=w(()=>{},["prevent"])),onClick:w(we,["stop"])},"ⓧ",32)):f("",!0),E(W)&&!E(Q)?(l(),s("div",Ha)):!E(W)&&o.showSearchIcon?(l(),s("button",{key:2,class:"search-btn",onClick:w(Ee,["stop"])},[u("span",za,[u("img",{src:E(Da),alt:"search"},null,8,Ja)])])):f("",!0)])],!0)],2),(l(),d(k,{to:"body"},[m(u("div",{ref_key:"floatingRef",ref:R,class:"dropdown-list",style:b(E(Z)),onScroll:ke},[h(e.$slots,"history",{searchHistory:E(q)},()=>[E(q).length>0&&!N.value?(l(),s("div",Wa,[u("div",Qa,[u("span",null,v(ce.value?"Recent search":"最近搜索"),1),u("span",{class:"clear-btn",onMousedown:t[2]||(t[2]=w(()=>{},["prevent"])),onClick:t[3]||(t[3]=w((...e)=>E(z)&&E(z)(...e),["stop"]))},v(ce.value?"Clear":"清空"),33)]),(l(!0),s(g,null,y(E(q),(e,t)=>(l(),s("div",{key:"hist-"+t,class:"dropdown-item",onMousedown:w(t=>ge(e),["prevent"])},[u("div",{class:"category-tag",style:b(o.showItemTag?{}:{display:"none"})},[u("img",{class:"type-icon",src:de(e.type),alt:""},null,8,Ga),u("span",Xa,v(pe(e.type)),1)],4),u("div",Ya,v(me(e)),1)],40,Ka))),128)),t[7]||(t[7]=u("hr",{class:"divider"},null,-1))])):f("",!0)],!0),E(W)&&!E(Q)?(l(),s("div",Za,v(ce.value?"Searching...":"正在搜索中..."),1)):E(J).length>0?(l(),s(g,{key:1},[h(e.$slots,"results",{searchResults:E(J)},()=>[(l(!0),s(g,null,y(E(J),(e,t)=>(l(),s("div",{key:t,class:c(["dropdown-item",{"is-active":he(e)}]),onMousedown:w(t=>ge(e),["prevent"])},[u("div",{class:"category-tag",style:b(o.showItemTag?{}:{display:"none"})},[u("img",{class:"type-icon",src:de(e.type),alt:""},null,8,en),u("span",tn,v(pe(e.type)),1)],4),u("div",an,v(me(e)),1)],42,$a))),128))],!0),E(Q)?(l(),s("div",nn,v(ce.value?"Loading more...":"正在加载更多..."),1)):f("",!0)],64)):N.value&&!E(W)?(l(),s("div",on,[h(e.$slots,"noData",{},()=>[o.showApplyData?(l(),s("div",sn,[x(v(ce.value?"No results found. ":"暂无结果,")+" ",1),u("div",ln,[u("span",{class:"apply-data jc:cursor-pointer jc:ml-1",onClick:t[4]||(t[4]=w(()=>_.value=!0,["stop"]))},v(ce.value?"Apply for data addition":"申请补充数据 "),1),u("img",{src:E(Fa),alt:"",class:"apply-data-more-icon",onClick:t[5]||(t[5]=w(()=>_.value=!0,["stop"]))},null,8,cn)])])):(l(),s("p",rn,v(ce.value?`No results found related to "${N.value}".`:`未找到与 "${N.value}" 相关的结果`),1))],!0)])):f("",!0)],36),[[S,E(ne)&&le.value]])])),p(io,{searchValue:N.value,value:_.value,"onUpdate:value":t[6]||(t[6]=e=>_.value=e),lang:o.lang,onConfirm:xe,onOpen:Se,onClose:Ie},null,8,["searchValue","value","lang"])],2))}}),[["__scopeId","data-v-41ee7833"]]),pn=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"}));var hn="object"==typeof global&&global&&global.Object===Object&&global,fn="object"==typeof self&&self&&self.Object===Object&&self,mn=hn||fn||Function("return this")(),gn=mn.Symbol,yn=Object.prototype,vn=yn.hasOwnProperty,wn=yn.toString,Cn=gn?gn.toStringTag:void 0;var bn=Object.prototype.toString;var An=gn?gn.toStringTag:void 0;function En(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":An&&An in Object(e)?function(e){var t=vn.call(e,Cn),a=e[Cn];try{e[Cn]=void 0;var n=!0}catch(i){}var o=wn.call(e);return n&&(t?e[Cn]=a:delete e[Cn]),o}(e):function(e){return bn.call(e)}(e)}var kn=/\s/;var xn=/^\s+/;function Sn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&kn.test(e.charAt(t)););return t}(e)+1).replace(xn,""):e}function In(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Bn=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,Pn=/^0o[0-7]+$/i,Tn=parseInt;function Rn(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==En(e)}(e))return NaN;if(In(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=In(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Sn(e);var a=Vn.test(e);return a||Pn.test(e)?Tn(e.slice(2),a?2:8):Bn.test(e)?NaN:+e}var Nn=function(){return mn.Date.now()},Un=Math.max,Dn=Math.min;function Fn(e,t,a){var n,o,i,r,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var a=n,i=o;return n=o=void 0,c=t,r=e.apply(i,a)}function f(e){var a=e-l;return void 0===l||a>=t||a<0||d&&e-c>=i}function m(){var e=Nn();if(f(e))return g(e);s=setTimeout(m,function(e){var a=t-(e-l);return d?Dn(a,i-(e-c)):a}(e))}function g(e){return s=void 0,p&&n?h(e):(n=o=void 0,r)}function y(){var e=Nn(),a=f(e);if(n=arguments,o=this,l=e,a){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?h(e):r}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),r}return t=Rn(t)||0,In(a)&&(u=!!a.leading,i=(d="maxWait"in a)?Un(Rn(a.maxWait)||0,t):i,p="trailing"in a?!!a.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},y.flush=function(){return void 0===s?r:g(Nn())},y}const _n={key:0,class:"modal-container"},Ln={class:"modal-header"},Mn={class:"header-title"},On={class:"modal-body"},jn={class:"form-item"},qn={class:"required"},Hn={class:"input-box"},zn=["placeholder"],Jn={key:0,class:"error-message"},Wn={class:"form-item"},Qn={class:"required"},Kn={class:"type-group"},Gn=["onClick"],Xn={key:0,class:"check-mark"},Yn={class:"form-item"},Zn={class:"required"},$n={key:0,class:"error-message"},eo={class:"modal-footer"},to={key:1,class:"apply-success-container"},ao={class:"apply-success-container__content"},no={class:"desc"},oo={class:"apply-success-container__btns"},io=/* @__PURE__ */un({__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:e=>["","en","en-US","zh-CN","cn"].includes(e)},searchValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","confirm","open","close"],setup(a,{emit:n}){const o=a,i=n,d=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],h=e(null),C=e(!1),b=e(!1);r(()=>o.value,e=>{e&&(console.log("🍉 ~ ApplyDataDialog.vue:138 ~ props.searchValue:",o.searchValue),o.searchValue&&(S.name=o.searchValue),i("open"))});const k=I({name:"",country:""}),S=I({name:"",type:"City"}),B=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),V=()=>{k.name="",k.country="",C.value=!1,S.name="",S.type="City",h.value=null,i("update:value",!1),i("close")},P=Fn(()=>{k.name="",k.country="";let e=!0;S.name.trim()||(k.name=B.value?"Please enter the data":"请输入需要补充的数据",e=!1),h.value||(k.country=B.value?"Please select a country":"请选择国家",e=!1),e&&(b.value=!0,J({reportData:S.name,reportType:S.type.toLocaleLowerCase(),countryId:h.value.id}).then(e=>{console.log("🍉 ~ ApplyDataDialog.vue:185 ~ handleConfirm ~ res:",e,e.code),0===e.code&&(C.value=!0,Je.success(B.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),i("confirm",{...S,country:h.value}))}).catch(e=>{console.log("🍉 ~ ApplyDataDialog.vue:187 ~ handleConfirm ~ err:",e)}).finally(()=>{b.value=!1}))},800,{leading:!0,trailing:!1});return(e,t)=>a.value?(l(),s("div",{key:0,class:"modal-mask",onClick:w(V,["self"])},[C.value?(l(),s("div",to,[u("div",ao,[t[5]||(t[5]=u("div",{class:"icon"},null,-1)),u("div",no,v(B.value?"Application received. Awaiting review!":"平台已收到申请,请等待审核!"),1)]),u("div",oo,[u("div",{class:"button jc:cursor-pointer",onClick:w(V,["stop"])},v(B.value?"OK":"好的"),1)])])):(l(),s("div",_n,[u("div",Ln,[u("span",Mn,v(B.value?"Apply for data addition":"申请补充数据"),1),u("div",{class:"close-btn",onClick:V},"×")]),u("div",On,[u("div",jn,[u("label",qn,v(B.value?"Data To Add":"需补充的数据"),1),u("div",Hn,[m(u("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>S.name=e),type:"text",placeholder:a.placeholder??(B.value?" Please enter":"请输入"),class:c(["custom-input",{"input-error":k.name}]),onInput:t[1]||(t[1]=e=>k.name="")},null,42,zn),[[A,S.name]])]),k.name?(l(),s("div",Jn,v(k.name),1)):f("",!0)]),u("div",Wn,[u("label",Qn,v(B.value?"Type":"所属类别"),1),u("div",Kn,[(l(),s(g,null,y(d,e=>u("div",{key:e.type,class:c(["type-btn",{active:S.type===e.type}]),onClick:t=>S.type=e.type},[x(v(B.value?e.typeEn:e.typeCn)+" ",1),S.type===e.type?(l(),s("div",Xn)):f("",!0)],10,Gn)),64))])]),u("div",Yn,[u("label",Zn,v(B.value?"Country":"国家"),1),u("div",{class:c({"search-error-wrap":k.country})},[p(dn,{"search-type-list":["Country"],"model-value":h.value,"onUpdate:modelValue":[t[2]||(t[2]=e=>h.value=e),t[3]||(t[3]=e=>k.country="")],style:{margin:"0 auto"},lang:a.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:a.placeholder??(B.value?" Please enter":"请输入")},null,8,["model-value","lang","placeholder"])],2),k.country?(l(),s("div",$n,v(k.country),1)):f("",!0)])]),u("div",eo,[m((l(),s("div",{class:c(["confirm-btn jc:outline-none!",{"is-loading":b.value}]),onClick:t[4]||(t[4]=(...e)=>E(P)&&E(P)(...e))},[x(v(B.value?"Submit":"申请补充"),1)],2)),[[E(We),b.value]])])]))])):f("",!0)}},[["__scopeId","data-v-98fe6169"]]),ro=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:io},Symbol.toStringTag,{value:"Module"}));const so={class:"global-company-input"},lo={class:"company-option-item"},co=/* @__PURE__ */un({__name:"index",props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},city:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1}},emits:["update:companyName","update:useKq","update:kqCode","update:kqInfo","change"],setup(a,{emit:o}){const i=a,c=o,p=e(!1),f=e([]),{isEn:m}=function(e=""){return{isEn:t(()=>{if(e)return"en"===e||"en-US"===e;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(t){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(t){}return!1})}}(i.lang),{formItem:w}=ze(),C=t({get:()=>i.companyName,set:e=>c("update:companyName",e)}),b=e(!1),A=e=>{e?(p.value=!0,k(e)):f.value=[]},k=Fn(e=>{console.log("🍉 ~ index.vue:119 ~ props.city:",i.city);const t={current:1,size:50,compName:e,cityName:i.city?.nameCn+"市"};W(t).then(e=>{f.value=e.data.data.records?.map(e=>({value:e.nameCn,code:e.kqId,...e}))||[]}).catch(e=>{console.error("获取公司选项失败:",e),f.value=[]}).finally(()=>{p.value=!1})},800),x=e=>{const t=f.value.find(t=>t.value===e);t?(c("update:useKq",!0),c("update:kqCode",t.code),c("update:kqInfo",t)):(c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{})),c("change",t)},S=e=>{c("update:useKq",!1),c("update:kqCode",""),c("change",e),w?.validate?.("change").catch(()=>{})};return r(()=>i.countryId,()=>{c("update:companyName",""),c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{}),w?.validate?.("change").catch(()=>{}),f.value=[]}),n(()=>{k.cancel()}),(e,t)=>(l(),s("div",so,[[1].includes(Number(i.countryId))?(l(),d(E(Qe),{key:0,modelValue:C.value,"onUpdate:modelValue":t[0]||(t[0]=e=>C.value=e),filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":a.allowCreate,"default-first-option":a.defaultFirstOption,"remote-method":A,loading:p.value,disabled:b.value||i.disabled,placeholder:E(m)?"Company Name in Chinese":"请输入您的公司中文名称",style:{width:"100%"},"popper-class":"company-search dialog-join-us",onChange:x},{prefix:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),default:B(()=>[(l(!0),s(g,null,y(f.value,e=>(l(),d(E(Ke),{key:e.code,label:e.value,value:e.value},{default:B(()=>[u("div",lo,[u("span",null,v(e.value),1)])]),_:2},1032,["label","value"]))),128))]),_:3},8,["modelValue","allow-create","default-first-option","loading","disabled","placeholder"])):(l(),d(E(Ge),{key:1,modelValue:C.value,"onUpdate:modelValue":t[1]||(t[1]=e=>C.value=e),disabled:b.value||i.disabled,placeholder:E(m)?"Company name in English":"请输入您的公司英文名称","max-length":"200",style:{width:"100%"},onChange:S},{prepend:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),_:3},8,["modelValue","disabled","placeholder"]))]))}},[["__scopeId","data-v-24cf1e2e"]]),uo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"})),po={type:"text",name:"fakeUsername",autocomplete:"on"},ho={type:"password",name:"fakePassword",autocomplete:"new-password"},fo={class:"google-input-wrap"},mo={key:0,class:"google-input-wrap-prepend"},go={class:"google-input-wrap-input"};const yo=/* @__PURE__ */un({name:"GoogleInput",components:{ElInput:Ge},inheritAttrs:!1,props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||null!==this.modelValue&&""!==this.modelValue}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){this.$refs.googleInput?.focus?.()},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){try{const t=this.$refs.googleInput?.$el?.querySelector("input");if(!t)return;if("rgb(232, 240, 254)"===window.getComputedStyle(t).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(t){console.error("Autofill detection error:",t)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,a,n,o,i){const r=V("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(u("input",po,null,512),[[S,!1]]),m(u("input",ho,null,512),[[S,!1]]),u("div",fo,[i.isHavePrepend?(l(),s("div",mo,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",go,[p(r,P({ref:"googleInput"},e.$attrs,{"model-value":a.modelValue},T({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:B(()=>[h(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value"]),u("p",{onClick:t[0]||(t[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},v(a.placeholder),1)])])],2)}],["__scopeId","data-v-27eaff9d"]]),vo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:yo},Symbol.toStringTag,{value:"Module"})),wo={type:"text",name:"fakeUsername",autocomplete:"on"},Co={type:"password",name:"fakePassword",autocomplete:"new-password"},bo={class:"google-input-wrap"},Ao={key:0,class:"google-input-wrap-prepend"},Eo={class:"google-input-wrap-input"};const ko=/* @__PURE__ */un({name:"JcFloatInput",components:{ElInput:Ge},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){this.$refs.googleInput?.focus?.()},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){try{const t=this.$refs.googleInput?.$el?.querySelector("input");if(!t)return;if("rgb(232, 240, 254)"===window.getComputedStyle(t).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(t){console.error("Autofill detection error:",t)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,a,n,o,i){const r=V("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(u("input",wo,null,512),[[S,!1]]),m(u("input",Co,null,512),[[S,!1]]),u("div",bo,[i.isHavePrepend?(l(),s("div",Ao,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",Eo,[p(r,P({ref:"googleInput"},e.$attrs,{"model-value":a.modelValue,placeholder:a.placeholder},T({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:B(()=>[h(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value","placeholder"]),u("p",{onClick:t[0]||(t[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},v(i.currentLabel),1)])])],2)}],["__scopeId","data-v-b4df44b2"]]),xo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"}));var So="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var a=function e(){var a=!1;try{a=this instanceof e}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),a}var Vo={exports:{}};var Po={exports:{}};const To=/* @__PURE__ */Bo(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ro;function No(){return Ro||(Ro=1,Po.exports=(e=e||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==So&&So.crypto&&(a=So.crypto),!a)try{a=To}catch(m){}var n=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||/* @__PURE__ */function(){function e(){}return function(t){var a;return e.prototype=t,a=new e,e.prototype=null,a}}(),i={},r=i.lib={},s=r.Base=/* @__PURE__ */function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=r.WordArray=s.extend({init:function(e,a){e=this.words=e||[],this.sigBytes=a!=t?a:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,a=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var r=a[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=r<<24-(n+i)%4*8}else for(var s=0;s<o;s+=4)t[n+s>>>2]=a[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=e.ceil(a/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],a=0;a<e;a+=4)t.push(n());return new l.init(t,e)}}),c=i.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n<t;n+=2)a[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(a,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n<t;n++)a[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(a,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},h=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var a,n=this._data,o=n.words,i=n.sigBytes,r=this.blockSize,s=i/(4*r),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=r)this._doProcessBlock(o,d);a=o.splice(0,c),n.sigBytes-=u}return new l.init(a,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,a){return new e.init(a).finalize(t)}},_createHmacHelper:function(e){return function(t,a){return new f.HMAC.init(e,a).finalize(t)}}});var f=i.algo={};return i}(Math),e)),Po.exports;var e}var Uo,Do={exports:{}};function Fo(){return Uo?Do.exports:(Uo=1,Do.exports=(r=No(),a=(t=r).lib,n=a.Base,o=a.WordArray,(i=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=n.extend({init:function(t,a){t=this.words=t||[],this.sigBytes=a!=e?a:8*t.length},toX32:function(){for(var e=this.words,t=e.length,a=[],n=0;n<t;n++){var i=e[n];a.push(i.high),a.push(i.low)}return o.create(a,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),a=t.length,o=0;o<a;o++)t[o]=t[o].clone();return e}}),r));var e,t,a,n,o,i,r}var _o,Lo={exports:{}};function Mo(){return _o||(_o=1,Lo.exports=(e=No(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,a=t.init,n=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],o=0;o<t;o++)n[o>>>2]|=e[o]<<24-o%4*8;a.call(this,n,t)}else a.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),Lo.exports;var e}var Oo,jo={exports:{}};function qo(){return Oo?jo.exports:(Oo=1,jo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray,n=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return a.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],i=0;i<a;i+=2){var r=o(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return a.create(n,2*t)}}}(),e.enc.Utf16));var e}var Ho,zo={exports:{}};function Jo(){return Ho?zo.exports:(Ho=1,zo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray;function n(e,t,n){for(var o=[],i=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return a.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,a=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<a;i+=3)for(var r=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<a;s++)o.push(n.charAt(r>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,a=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<a.length;i++)o[a.charCodeAt(i)]=i}var r=a.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(t=s)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Wo,Qo={exports:{}};function Ko(){return Wo?Qo.exports:(Wo=1,Qo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray;function n(e,t,n){for(var o=[],i=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return a.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var a=e.words,n=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],r=0;r<n;r+=3)for(var s=(a[r>>>2]>>>24-r%4*8&255)<<16|(a[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|a[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l<n;l++)i.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var a=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<o.length;r++)i[o.charCodeAt(r)]=r}var s=o.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(a=l)}return n(e,a,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var Go,Xo={exports:{}};function Yo(){return Go?Xo.exports:(Go=1,Xo.exports=(e=No(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=r.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var n=t+a,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,r=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],w=e[t+8],C=e[t+9],b=e[t+10],A=e[t+11],E=e[t+12],k=e[t+13],x=e[t+14],S=e[t+15],I=i[0],B=i[1],V=i[2],P=i[3];I=c(I,B,V,P,r,7,s[0]),P=c(P,I,B,V,l,12,s[1]),V=c(V,P,I,B,h,17,s[2]),B=c(B,V,P,I,f,22,s[3]),I=c(I,B,V,P,m,7,s[4]),P=c(P,I,B,V,g,12,s[5]),V=c(V,P,I,B,y,17,s[6]),B=c(B,V,P,I,v,22,s[7]),I=c(I,B,V,P,w,7,s[8]),P=c(P,I,B,V,C,12,s[9]),V=c(V,P,I,B,b,17,s[10]),B=c(B,V,P,I,A,22,s[11]),I=c(I,B,V,P,E,7,s[12]),P=c(P,I,B,V,k,12,s[13]),V=c(V,P,I,B,x,17,s[14]),I=u(I,B=c(B,V,P,I,S,22,s[15]),V,P,l,5,s[16]),P=u(P,I,B,V,y,9,s[17]),V=u(V,P,I,B,A,14,s[18]),B=u(B,V,P,I,r,20,s[19]),I=u(I,B,V,P,g,5,s[20]),P=u(P,I,B,V,b,9,s[21]),V=u(V,P,I,B,S,14,s[22]),B=u(B,V,P,I,m,20,s[23]),I=u(I,B,V,P,C,5,s[24]),P=u(P,I,B,V,x,9,s[25]),V=u(V,P,I,B,f,14,s[26]),B=u(B,V,P,I,w,20,s[27]),I=u(I,B,V,P,k,5,s[28]),P=u(P,I,B,V,h,9,s[29]),V=u(V,P,I,B,v,14,s[30]),I=d(I,B=u(B,V,P,I,E,20,s[31]),V,P,g,4,s[32]),P=d(P,I,B,V,w,11,s[33]),V=d(V,P,I,B,A,16,s[34]),B=d(B,V,P,I,x,23,s[35]),I=d(I,B,V,P,l,4,s[36]),P=d(P,I,B,V,m,11,s[37]),V=d(V,P,I,B,v,16,s[38]),B=d(B,V,P,I,b,23,s[39]),I=d(I,B,V,P,k,4,s[40]),P=d(P,I,B,V,r,11,s[41]),V=d(V,P,I,B,f,16,s[42]),B=d(B,V,P,I,y,23,s[43]),I=d(I,B,V,P,C,4,s[44]),P=d(P,I,B,V,E,11,s[45]),V=d(V,P,I,B,S,16,s[46]),I=p(I,B=d(B,V,P,I,h,23,s[47]),V,P,r,6,s[48]),P=p(P,I,B,V,v,10,s[49]),V=p(V,P,I,B,x,15,s[50]),B=p(B,V,P,I,g,21,s[51]),I=p(I,B,V,P,E,6,s[52]),P=p(P,I,B,V,f,10,s[53]),V=p(V,P,I,B,b,15,s[54]),B=p(B,V,P,I,l,21,s[55]),I=p(I,B,V,P,w,6,s[56]),P=p(P,I,B,V,S,10,s[57]),V=p(V,P,I,B,y,15,s[58]),B=p(B,V,P,I,k,21,s[59]),I=p(I,B,V,P,m,6,s[60]),P=p(P,I,B,V,A,10,s[61]),V=p(V,P,I,B,h,15,s[62]),B=p(B,V,P,I,C,21,s[63]),i[0]=i[0]+I|0,i[1]=i[1]+B|0,i[2]=i[2]+V|0,i[3]=i[3]+P|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;a[o>>>5]|=128<<24-o%32;var i=t.floor(n/4294967296),r=n;a[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a[14+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(a.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,a,n,o,i,r){var s=e+(t&a|~t&n)+o+r;return(s<<i|s>>>32-i)+t}function u(e,t,a,n,o,i,r){var s=e+(t&n|a&~n)+o+r;return(s<<i|s>>>32-i)+t}function d(e,t,a,n,o,i,r){var s=e+(t^a^n)+o+r;return(s<<i|s>>>32-i)+t}function p(e,t,a,n,o,i,r){var s=e+(a^(t|~n))+o+r;return(s<<i|s>>>32-i)+t}a.MD5=i._createHelper(l),a.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5));var e}var Zo,$o={exports:{}};function ei(){return Zo?$o.exports:(Zo=1,$o.exports=(s=No(),t=(e=s).lib,a=t.WordArray,n=t.Hasher,o=e.algo,i=[],r=o.SHA1=n.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],r=a[2],s=a[3],l=a[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+i[c];d+=c<20?1518500249+(o&r|~o&s):c<40?1859775393+(o^r^s):c<60?(o&r|o&s|r&s)-1894007588:(o^r^s)-899497514,l=s,s=r,r=o<<30|o>>>2,o=n,n=d}a[0]=a[0]+n|0,a[1]=a[1]+o|0,a[2]=a[2]+r|0,a[3]=a[3]+s|0,a[4]=a[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(a/4294967296),t[15+(n+64>>>9<<4)]=a,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(r),e.HmacSHA1=n._createHmacHelper(r),s.SHA1));var e,t,a,n,o,i,r,s}var ti,ai={exports:{}};function ni(){return ti?ai.exports:(ti=1,ai.exports=(e=No(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.algo,s=[],l=[];!function(){function e(e){for(var a=t.sqrt(e),n=2;n<=a;n++)if(!(e%n))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)e(n)&&(o<8&&(s[o]=a(t.pow(n,.5))),l[o]=a(t.pow(n,1/3)),o++),n++}();var c=[],u=r.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],i=a[2],r=a[3],s=a[4],u=a[5],d=a[6],p=a[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[h-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=m+c[h-7]+y+c[h-16]}var v=n&o^n&i^o&i,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),C=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[h]+c[h];p=d,d=u,u=s,s=r+C|0,r=i,i=o,o=n,n=C+(w+v)|0}a[0]=a[0]+n|0,a[1]=a[1]+o|0,a[2]=a[2]+i|0,a[3]=a[3]+r|0,a[4]=a[4]+s|0,a[5]=a[5]+u|0,a[6]=a[6]+d|0,a[7]=a[7]+p|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return a[o>>>5]|=128<<24-o%32,a[14+(o+64>>>9<<4)]=t.floor(n/4294967296),a[15+(o+64>>>9<<4)]=n,e.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA256=i._createHelper(u),a.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256));var e}var oi,ii={exports:{}};var ri,si={exports:{}};function li(){return ri||(ri=1,si.exports=(e=No(),Fo(),function(){var t=e,a=t.lib.Hasher,n=t.x64,o=n.Word,i=n.WordArray,r=t.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=r.SHA512=a.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],i=a[2],r=a[3],s=a[4],u=a[5],d=a[6],p=a[7],h=n.high,f=n.low,m=o.high,g=o.low,y=i.high,v=i.low,w=r.high,C=r.low,b=s.high,A=s.low,E=u.high,k=u.low,x=d.high,S=d.low,I=p.high,B=p.low,V=h,P=f,T=m,R=g,N=y,U=v,D=w,F=C,_=b,L=A,M=E,O=k,j=x,q=S,H=I,z=B,J=0;J<80;J++){var W,Q,K=c[J];if(J<16)Q=K.high=0|e[t+2*J],W=K.low=0|e[t+2*J+1];else{var G=c[J-15],X=G.high,Y=G.low,Z=(X>>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,$=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=c[J-2],te=ee.high,ae=ee.low,ne=(te>>>19|ae<<13)^(te<<3|ae>>>29)^te>>>6,oe=(ae>>>19|te<<13)^(ae<<3|te>>>29)^(ae>>>6|te<<26),ie=c[J-7],re=ie.high,se=ie.low,le=c[J-16],ce=le.high,ue=le.low;Q=(Q=(Q=Z+re+((W=$+se)>>>0<$>>>0?1:0))+ne+((W+=oe)>>>0<oe>>>0?1:0))+ce+((W+=ue)>>>0<ue>>>0?1:0),K.high=Q,K.low=W}var de,pe=_&M^~_&j,he=L&O^~L&q,fe=V&T^V&N^T&N,me=P&R^P&U^R&U,ge=(V>>>28|P<<4)^(V<<30|P>>>2)^(V<<25|P>>>7),ye=(P>>>28|V<<4)^(P<<30|V>>>2)^(P<<25|V>>>7),ve=(_>>>14|L<<18)^(_>>>18|L<<14)^(_<<23|L>>>9),we=(L>>>14|_<<18)^(L>>>18|_<<14)^(L<<23|_>>>9),Ce=l[J],be=Ce.high,Ae=Ce.low,Ee=H+ve+((de=z+we)>>>0<z>>>0?1:0),ke=ye+me;H=j,z=q,j=M,q=O,M=_,O=L,_=D+(Ee=(Ee=(Ee=Ee+pe+((de+=he)>>>0<he>>>0?1:0))+be+((de+=Ae)>>>0<Ae>>>0?1:0))+Q+((de+=W)>>>0<W>>>0?1:0))+((L=F+de|0)>>>0<F>>>0?1:0)|0,D=N,F=U,N=T,U=R,T=V,R=P,V=Ee+(ge+fe+(ke>>>0<ye>>>0?1:0))+((P=de+ke|0)>>>0<de>>>0?1:0)|0}f=n.low=f+P,n.high=h+V+(f>>>0<P>>>0?1:0),g=o.low=g+R,o.high=m+T+(g>>>0<R>>>0?1:0),v=i.low=v+U,i.high=y+N+(v>>>0<U>>>0?1:0),C=r.low=C+F,r.high=w+D+(C>>>0<F>>>0?1:0),A=s.low=A+L,s.high=b+_+(A>>>0<L>>>0?1:0),k=u.low=k+O,u.high=E+M+(k>>>0<O>>>0?1:0),S=d.low=S+q,d.high=x+j+(S>>>0<q>>>0?1:0),B=p.low=B+z,p.high=I+H+(B>>>0<z>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(a/4294967296),t[31+(n+128>>>10<<5)]=a,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=a._createHelper(u),t.HmacSHA512=a._createHmacHelper(u)}(),e.SHA512)),si.exports;var e}var ci,ui={exports:{}};var di,pi={exports:{}};function hi(){return di?pi.exports:(di=1,pi.exports=(e=No(),Fo(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.x64.Word,s=a.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,a=0;a<24;a++){l[e+5*t]=(a+1)*(a+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,p=0;p<7;p++){if(1&o){var h=(1<<p)-1;h<32?d^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}u[i]=r.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=r.create()}();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var a=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=e[t+2*o],r=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(B=a[o]).high^=r,B.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(B=a[p+5*m]).high,f^=B.low;var g=d[p];g.high=h,g.low=f}for(p=0;p<5;p++){var y=d[(p+4)%5],v=d[(p+1)%5],w=v.high,C=v.low;for(h=y.high^(w<<1|C>>>31),f=y.low^(C<<1|w>>>31),m=0;m<5;m++)(B=a[p+5*m]).high^=h,B.low^=f}for(var b=1;b<25;b++){var A=(B=a[b]).high,E=B.low,k=l[b];k<32?(h=A<<k|E>>>32-k,f=E<<k|A>>>32-k):(h=E<<k-32|A>>>64-k,f=A<<k-32|E>>>64-k);var x=d[c[b]];x.high=h,x.low=f}var S=d[0],I=a[0];for(S.high=I.high,S.low=I.low,p=0;p<5;p++)for(m=0;m<5;m++){var B=a[b=p+5*m],V=d[b],P=d[(p+1)%5+5*m],T=d[(p+2)%5+5*m];B.high=V.high^~P.high&T.high,B.low=V.low^~P.low&T.low}B=a[0];var R=u[s];B.high^=R.high,B.low^=R.low}},_doFinalize:function(){var e=this._data,a=e.words;this._nDataBytes;var n=8*e.sigBytes,i=32*this.blockSize;a[n>>>5]|=1<<24-n%32,a[(t.ceil((n+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*a.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=r[u],p=d.high,h=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),a=0;a<25;a++)t[a]=t[a].clone();return e}});a.SHA3=i._createHelper(p),a.HmacSHA3=i._createHmacHelper(p)}(Math),e.SHA3));var e}var fi,mi={exports:{}};var gi,yi={exports:{}};function vi(){return gi?yi.exports:(gi=1,yi.exports=(e=No(),a=(t=e).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var a=e.blockSize,o=4*a;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),r=this._iKey=t.clone(),s=i.words,l=r.words,c=0;c<a;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=r.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,a=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(a))}}))));var e,t,a,n}var wi,Ci={exports:{}};var bi,Ai={exports:{}};function Ei(){return bi?Ai.exports:(bi=1,Ai.exports=(s=No(),ei(),vi(),t=(e=s).lib,a=t.Base,n=t.WordArray,o=e.algo,i=o.MD5,r=o.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a,o=this.cfg,i=o.hasher.create(),r=n.create(),s=r.words,l=o.keySize,c=o.iterations;s.length<l;){a&&i.update(a),a=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)a=i.finalize(a),i.reset();r.concat(a)}return r.sigBytes=4*l,r}}),e.EvpKDF=function(e,t,a){return r.create(a).compute(e,t)},s.EvpKDF));var e,t,a,n,o,i,r,s}var ki,xi={exports:{}};function Si(){return ki?xi.exports:(ki=1,xi.exports=(e=No(),Ei(),void(e.lib.Cipher||function(t){var a=e,n=a.lib,o=n.Base,i=n.WordArray,r=n.BufferedBlockAlgorithm,s=a.enc;s.Utf8;var l=s.Base64,c=a.algo.EvpKDF,u=n.Cipher=r.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,a){this.cfg=this.cfg.extend(a),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:/* @__PURE__ */function(){function e(e){return"string"==typeof e?w:y}return function(t){return{encrypt:function(a,n,o){return e(n).encrypt(t,a,n,o)},decrypt:function(a,n,o){return e(n).decrypt(t,a,n,o)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=a.mode={},p=n.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=d.CBC=function(){var e=p.extend();function a(e,a,n){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var r=0;r<n;r++)e[a+r]^=o[r]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;a.call(this,e,t,o),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);n.decryptBlock(e,t),a.call(this,e,t,o),this._prevBlock=i}}),e}(),f=(a.pad={}).Pkcs7={pad:function(e,t){for(var a=4*t,n=a-e.sigBytes%a,o=n<<24|n<<16|n<<8|n,r=[],s=0;s<n;s+=4)r.push(o);var l=i.create(r,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,a=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,a&&a.words):(this._mode=e.call(n,this,a&&a.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(a.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,a=e.salt;return(a?i.create([1398893684,1701076831]).concat(a).concat(t):t).toString(l)},parse:function(e){var t,a=l.parse(e),n=a.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),a.sigBytes-=16),m.create({ciphertext:a,salt:t})}},y=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,a,n){n=this.cfg.extend(n);var o=e.createEncryptor(a,n),i=o.finalize(t),r=o.cfg;return m.create({ciphertext:i,key:a,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,a,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(a,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(a.kdf={}).OpenSSL={execute:function(e,t,a,n,o){if(n||(n=i.random(8)),o)r=c.create({keySize:t+a,hasher:o}).compute(e,n);else var r=c.create({keySize:t+a}).compute(e,n);var s=i.create(r.words.slice(t),4*a);return r.sigBytes=4*t,m.create({key:r,iv:s,salt:n})}},w=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:v}),encrypt:function(e,t,a,n){var o=(n=this.cfg.extend(n)).kdf.execute(a,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=o.iv;var i=y.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,a,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(a,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=o.iv,y.decrypt.call(this,e,t,o.key,n)}})}())));var e}var Ii,Bi={exports:{}};var Vi,Pi={exports:{}};var Ti,Ri={exports:{}};function Ni(){return Ti?Ri.exports:(Ti=1,Ri.exports=(e=No(),Si(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function a(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,a=e>>8&255,n=255&e;255===t?(t=0,255===a?(a=0,255===n?n=0:++n):++a):++t,e=0,e+=t<<16,e+=a<<8,e+=n}return e}function n(e){return 0===(e[0]=a(e[0]))&&(e[1]=a(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,o=a.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0),n(r);var s=r.slice(0);a.encryptBlock(s,0);for(var l=0;l<o;l++)e[t+l]^=s[l]}});return t.Decryptor=o,t}(),e.mode.CTRGladman));var e}var Ui,Di={exports:{}};var Fi,_i={exports:{}};var Li,Mi={exports:{}};var Oi,ji={exports:{}};var qi,Hi={exports:{}};var zi,Ji={exports:{}};var Wi,Qi={exports:{}};var Ki,Gi={exports:{}};var Xi,Yi={exports:{}};var Zi,$i={exports:{}};function er(){return Zi?$i.exports:(Zi=1,$i.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib,n=a.WordArray,o=a.BlockCipher,i=t.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],a=0;a<56;a++){var n=r[a]-1;t[a]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=l[i];for(a=0;a<24;a++)c[a/6|0]|=t[(s[a]-1+u)%28]<<31-a%6,c[4+(a/6|0)]|=t[28+(s[a+24]-1+u)%28]<<31-a%6;for(c[0]=c[0]<<1|c[0]>>>31,a=1;a<7;a++)c[a]=c[a]>>>4*(a-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(a=0;a<16;a++)d[a]=o[15-a]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,a){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=a[n],i=this._lBlock,r=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((r^o[l])&u[l])>>>0];this._lBlock=r,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var a=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=a,this._lBlock^=a<<e}function h(e,t){var a=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=a,this._rBlock^=a<<e}t.DES=o._createHelper(d);var f=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),a=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(a)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(f)}(),e.TripleDES));var e}var tr,ar={exports:{}};var nr,or={exports:{}};var ir,rr={exports:{}};var sr,lr={exports:{}};function cr(){return sr?lr.exports:(sr=1,lr.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.BlockCipher,n=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],r=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let a=t>>24&255,n=t>>16&255,o=t>>8&255,i=255&t,r=e.sbox[0][a]+e.sbox[1][n];return r^=e.sbox[2][o],r+=e.sbox[3][i],r}function c(e,t,a){let n,i=t,r=a;for(let s=0;s<o;++s)i^=e.pbox[s],r=l(e,i)^r,n=i,i=r,r=n;return n=i,i=r,r=n,r^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:r}}function u(e,t,a){let n,i=t,r=a;for(let s=o+1;s>1;--s)i^=e.pbox[s],r=l(e,i)^r,n=i,i=r,r=n;return n=i,i=r,r=n,r^=e.pbox[1],i^=e.pbox[0],{left:i,right:r}}function d(e,t,a){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=r[o][t]}let n=0;for(let r=0;r<o+2;r++)e.pbox[r]=i[r]^t[n],n++,n>=a&&(n=0);let s=0,l=0,u=0;for(let i=0;i<o+2;i+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[i]=s,e.pbox[i+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[o][t]=s,e.sbox[o][t+1]=l;return!0}var p=n.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,a=e.sigBytes/4;d(s,t,a)}},encryptBlock:function(e,t){var a=c(s,e[t],e[t+1]);e[t]=a.left,e[t+1]=a.right},decryptBlock:function(e,t){var a=u(s,e[t],e[t+1]);e[t]=a.left,e[t+1]=a.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=a._createHelper(p)}(),e.Blowfish));var e}var ur;var dr,pr,hr,fr,mr,gr,yr=ur?Vo.exports:(ur=1,Vo.exports=function(e){return e}(No(),Fo(),Mo(),qo(),Jo(),Ko(),Yo(),ei(),ni(),oi||(oi=1,ii.exports=(gr=No(),ni(),pr=(dr=gr).lib.WordArray,hr=dr.algo,fr=hr.SHA256,mr=hr.SHA224=fr.extend({_doReset:function(){this._hash=new pr.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=fr._doFinalize.call(this);return e.sigBytes-=4,e}}),dr.SHA224=fr._createHelper(mr),dr.HmacSHA224=fr._createHmacHelper(mr),gr.SHA224)),li(),function(){return ci?ui.exports:(ci=1,ui.exports=(s=No(),Fo(),li(),t=(e=s).x64,a=t.Word,n=t.WordArray,o=e.algo,i=o.SHA512,r=o.SHA384=i.extend({_doReset:function(){this._hash=new n.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(r),e.HmacSHA384=i._createHmacHelper(r),s.SHA384));var e,t,a,n,o,i,r,s}(),hi(),function(){return fi?mi.exports:(fi=1,mi.exports=(e=No(),function(){var t=e,a=t.lib,n=a.WordArray,o=a.Hasher,i=t.algo,r=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),p=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var n=t+a,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,p,w,C,b,A,E,k,x,S,I,B=this._hash.words,V=u.words,P=d.words,T=r.words,R=s.words,N=l.words,U=c.words;for(A=i=B[0],E=p=B[1],k=w=B[2],x=C=B[3],S=b=B[4],a=0;a<80;a+=1)I=i+e[t+T[a]]|0,I+=a<16?h(p,w,C)+V[0]:a<32?f(p,w,C)+V[1]:a<48?m(p,w,C)+V[2]:a<64?g(p,w,C)+V[3]:y(p,w,C)+V[4],I=(I=v(I|=0,N[a]))+b|0,i=b,b=C,C=v(w,10),w=p,p=I,I=A+e[t+R[a]]|0,I+=a<16?y(E,k,x)+P[0]:a<32?g(E,k,x)+P[1]:a<48?m(E,k,x)+P[2]:a<64?f(E,k,x)+P[3]:h(E,k,x)+P[4],I=(I=v(I|=0,U[a]))+S|0,A=S,S=x,x=v(k,10),k=E,E=I;I=B[1]+w+x|0,B[1]=B[2]+C+S|0,B[2]=B[3]+b+A|0,B[3]=B[4]+i+E|0,B[4]=B[0]+p+k|0,B[0]=I},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,r=0;r<5;r++){var s=i[r];i[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,a){return e^t^a}function f(e,t,a){return e&t|~e&a}function m(e,t,a){return(e|~t)^a}function g(e,t,a){return e&a|t&~a}function y(e,t,a){return e^(t|~a)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(),e.RIPEMD160));var e}(),vi(),function(){return wi?Ci.exports:(wi=1,Ci.exports=(l=No(),ni(),vi(),t=(e=l).lib,a=t.Base,n=t.WordArray,o=e.algo,i=o.SHA256,r=o.HMAC,s=o.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a=this.cfg,o=r.create(a.hasher,e),i=n.create(),s=n.create([1]),l=i.words,c=s.words,u=a.keySize,d=a.iterations;l.length<u;){var p=o.update(t).finalize(s);o.reset();for(var h=p.words,f=h.length,m=p,g=1;g<d;g++){m=o.finalize(m),o.reset();for(var y=m.words,v=0;v<f;v++)h[v]^=y[v]}i.concat(p),c[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,a){return s.create(a).compute(e,t)},l.PBKDF2));var e,t,a,n,o,i,r,s,l}(),Ei(),Si(),function(){return Ii?Bi.exports:(Ii=1,Bi.exports=(e=No(),Si(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function a(e,t,a,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var r=0;r<a;r++)e[t+r]^=o[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;a.call(this,e,t,o,n),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);a.call(this,e,t,o,n),this._prevBlock=i}}),t}(),e.mode.CFB));var e}(),function(){return Vi?Pi.exports:(Vi=1,Pi.exports=(a=No(),Si(),a.mode.CTR=(e=a.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var r=i.slice(0);a.encryptBlock(r,0),i[n-1]=i[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=r[s]}}),e.Decryptor=t,e),a.mode.CTR));var e,t,a}(),Ni(),function(){return Ui?Di.exports:(Ui=1,Di.exports=(a=No(),Si(),a.mode.OFB=(e=a.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),a.encryptBlock(i,0);for(var r=0;r<n;r++)e[t+r]^=i[r]}}),e.Decryptor=t,e),a.mode.OFB));var e,t,a}(),function(){return Fi?_i.exports:(Fi=1,_i.exports=(t=No(),Si(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Li?Mi.exports:(Li=1,Mi.exports=(e=No(),Si(),e.pad.AnsiX923={pad:function(e,t){var a=e.sigBytes,n=4*t,o=n-a%n,i=a+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Oi?ji.exports:(Oi=1,ji.exports=(e=No(),Si(),e.pad.Iso10126={pad:function(t,a){var n=4*a,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return qi?Hi.exports:(qi=1,Hi.exports=(e=No(),Si(),e.pad.Iso97971={pad:function(t,a){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,a)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return zi?Ji.exports:(zi=1,Ji.exports=(e=No(),Si(),e.pad.ZeroPadding={pad:function(e,t){var a=4*t;e.clamp(),e.sigBytes+=a-(e.sigBytes%a||a)},unpad:function(e){var t=e.words,a=e.sigBytes-1;for(a=e.sigBytes-1;a>=0;a--)if(t[a>>>2]>>>24-a%4*8&255){e.sigBytes=a+1;break}}},e.pad.ZeroPadding));var e}(),function(){return Wi?Qi.exports:(Wi=1,Qi.exports=(e=No(),Si(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Ki?Gi.exports:(Ki=1,Gi.exports=(n=No(),Si(),t=(e=n).lib.CipherParams,a=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var n=a.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,a,n}(),function(){return Xi?Yi.exports:(Xi=1,Yi.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.BlockCipher,n=t.algo,o=[],i=[],r=[],s=[],l=[],c=[],u=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var a=0,n=0;for(t=0;t<256;t++){var f=n^n<<1^n<<2^n<<3^n<<4;f=f>>>8^255&f^99,o[a]=f,i[f]=a;var m=e[a],g=e[m],y=e[g],v=257*e[f]^16843008*f;r[a]=v<<24|v>>>8,s[a]=v<<16|v>>>16,l[a]=v<<8|v>>>24,c[a]=v,v=16843009*y^65537*g^257*m^16843008*a,u[f]=v<<24|v>>>8,d[f]=v<<16|v>>>16,p[f]=v<<8|v>>>24,h[f]=v,a?(a=m^e[e[e[y^m]]],n^=e[e[n]]):a=n=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=a.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,a=e.sigBytes/4,n=4*((this._nRounds=a+6)+1),i=this._keySchedule=[],r=0;r<n;r++)r<a?i[r]=t[r]:(c=i[r-1],r%a?a>6&&r%a==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[r/a|0]<<24),i[r]=i[r-a]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(r=n-l,l%4)var c=i[r];else c=i[r-4];s[l]=l<4||r<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^p[o[c>>>8&255]]^h[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,s,l,c,o)},decryptBlock:function(e,t){var a=e[t+1];e[t+1]=e[t+3],e[t+3]=a,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,h,i),a=e[t+1],e[t+1]=e[t+3],e[t+3]=a},_doCryptBlock:function(e,t,a,n,o,i,r,s){for(var l=this._nRounds,c=e[t]^a[0],u=e[t+1]^a[1],d=e[t+2]^a[2],p=e[t+3]^a[3],h=4,f=1;f<l;f++){var m=n[c>>>24]^o[u>>>16&255]^i[d>>>8&255]^r[255&p]^a[h++],g=n[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^r[255&c]^a[h++],y=n[d>>>24]^o[p>>>16&255]^i[c>>>8&255]^r[255&u]^a[h++],v=n[p>>>24]^o[c>>>16&255]^i[u>>>8&255]^r[255&d]^a[h++];c=m,u=g,d=y,p=v}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^a[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^a[h++],y=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^a[h++],v=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^a[h++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=v},keySize:8});t.AES=a._createHelper(m)}(),e.AES));var e}(),er(),function(){return tr?ar.exports:(tr=1,ar.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=n.RC4=a.extend({_doReset:function(){for(var e=this._key,t=e.words,a=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var r=o%a,s=t[r>>>2]>>>24-r%4*8&255;i=(i+n[o]+s)%256;var l=n[o];n[o]=n[i],n[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,a=this._j,n=0,o=0;o<4;o++){a=(a+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[a],e[a]=i,n|=e[(e[t]+e[a])%256]<<24-8*o}return this._i=t,this._j=a,n}t.RC4=a._createHelper(o);var r=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=a._createHelper(r)}(),e.RC4));var e}(),function(){return nr?or.exports:(nr=1,or.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=[],i=[],r=[],s=n.Rabbit=a.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,a=0;a<4;a++)e[a]=16711935&(e[a]<<8|e[a]>>>24)|4278255360&(e[a]<<24|e[a]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)o[a]^=n[a+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=p,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var a=this._X;l.call(this),o[0]=a[0]^a[5]>>>16^a[3]<<16,o[1]=a[2]^a[7]>>>16^a[5]<<16,o[2]=a[4]^a[1]>>>16^a[7]<<16,o[3]=a[6]^a[3]>>>16^a[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,a=0;a<8;a++)i[a]=t[a];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,a=0;a<8;a++){var n=e[a]+t[a],o=65535&n,s=n>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[a]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.Rabbit=a._createHelper(s)}(),e.Rabbit));var e}(),function(){return ir?rr.exports:(ir=1,rr.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=[],i=[],r=[],s=n.RabbitLegacy=a.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)n[o]^=a[o+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(n[0]^=c,n[1]^=d,n[2]^=u,n[3]^=p,n[4]^=c,n[5]^=d,n[6]^=u,n[7]^=p,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var a=this._X;l.call(this),o[0]=a[0]^a[5]>>>16^a[3]<<16,o[1]=a[2]^a[7]>>>16^a[5]<<16,o[2]=a[4]^a[1]>>>16^a[7]<<16,o[3]=a[6]^a[3]>>>16^a[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,a=0;a<8;a++)i[a]=t[a];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,a=0;a<8;a++){var n=e[a]+t[a],o=65535&n,s=n>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[a]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.RabbitLegacy=a._createHelper(s)}(),e.RabbitLegacy));var e}(),cr()));const vr=/* @__PURE__ */Io(yr);const wr={name:"JcVerifySlide",props:{visible:{type:Boolean,default:!1},captchaType:{type:String,default:"blockPuzzle"},mode:{type:String,default:"pop"},vSpace:{type:Number,default:30},explain:{type:String,default:""},lang:{type:String,default:""},imgSize:{type:Object,default:()=>({width:"310px",height:"155px"})},barSize:{type:Object,default:()=>({width:"310px",height:"40px"})},defaultImg:{type:String,default:""}},data:()=>({secretKey:"",passFlag:!1,backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:0,endMoveTime:0,startLeft:0,tipWords:"",finishText:"",setSize:{imgHeight:"155px",imgWidth:"340px"},moveBlockLeft:"0px",leftBarWidth:"40px",moveBlockBackgroundColor:"#fff",leftBarBorderColor:"#e4e7eb",iconColor:"#4b4b4b",iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:"",currentBarHeight:40,loading:!0,isNeedShow:!1}),computed:{isEn(){if(this.lang)return"en"===this.lang||"en-US"===this.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1},showBox(){return"pop"!==this.mode||this.visible&&this.isNeedShow},barExplain(){return this.isEnd?"":this.isEn?"Swipe right to complete the picture puzzle":this.explain||"向右滑动完成验证"},subBlockStyle(){const e=-(parseInt(this.setSize.imgHeight)+this.vSpace+1);return{width:Math.floor(47*parseInt(this.setSize.imgWidth)/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(e){e?(this.isNeedShow=!1,this.$nextTick(()=>{this.handleResize(),this.refresh()})):this.isNeedShow=!1}},mounted(){this.initUuid(),this.handleResize(),window.addEventListener("resize",this.handleResize),window.addEventListener("touchmove",this.move,{passive:!1}),window.addEventListener("mousemove",this.move),window.addEventListener("touchend",this.end),window.addEventListener("mouseup",this.end)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("touchmove",this.move,{passive:!1}),window.removeEventListener("mousemove",this.move),window.removeEventListener("touchend",this.end),window.removeEventListener("mouseup",this.end)},methods:{handleImageLoaded(){this.loading=!1},initUuid(){localStorage.getItem("slider")||localStorage.setItem("slider","slider-"+((e=21)=>{let t="",a=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&a[e]];return t})())},aesEncrypt(e,t="XwKsGlMcdPMEhR1B"){const a=vr.enc.Utf8.parse(t),n=vr.enc.Utf8.parse(e);return vr.AES.encrypt(n,a,{mode:vr.mode.ECB,padding:vr.pad.Pkcs7}).toString()},handleResize(){const e=window.innerWidth;let t=340;e<400?(t=e-60,this.currentBarHeight=44):(t=340,this.currentBarHeight=40),this.setSize.imgWidth=t+"px",this.setSize.imgHeight=t/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(e){if(this.isEnd)return;const t=e||window.event,a=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;this.startLeft=Math.floor(a-n.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(e){if(!this.status||this.isEnd)return;const t=e||window.event,a=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;let o=a-n.getBoundingClientRect().left-this.startLeft;const i=n.offsetWidth-this.currentBarHeight;o<=0&&(o=0),o>=i&&(o=i),this.moveBlockLeft=o+"px",this.leftBarWidth=o+this.currentBarHeight+"px",t.cancelable&&t.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let e=parseInt(this.moveBlockLeft.replace("px",""));e=310*e/parseInt(this.setSize.imgWidth);const t={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:e,y:5}),this.secretKey):JSON.stringify({x:e,y:5}),uuid:this.backToken};K(t).then(e=>{0===e.data.code?this.handleSuccess(e):this.handleError()}).catch(()=>this.handleError())},handleSuccess(e){this.endMoveTime,this.startMoveTime,this.moveBlockBackgroundColor="#52c41a",this.iconClass="icon-check",this.isEnd=!0,this.passFlag=!0,this.tipWords=`${((this.endMoveTime-this.startMoveTime)/1e3).toFixed(2)}s `+(this.isEn?"verified successfully":"验证成功"),setTimeout(()=>{this.closeBox(),this.$emit("success",{uuid:e.data.data.uuid,code:e.data.data.code})},800)},handleError(){this.moveBlockBackgroundColor="#ff4d4f",this.iconClass="icon-close",this.passFlag=!1,this.tipWords=this.isEn?"verification failed":"验证失败",setTimeout(()=>{this.refresh(),this.tipWords=""},1e3)},refresh(){this.loading=!0,this.transitionLeft="left 0.3s",this.transitionWidth="width 0.3s",this.moveBlockLeft="0px",this.leftBarWidth=this.currentBarHeight+"px",this.moveBlockBackgroundColor="#fff",this.iconColor="#4b4b4b",this.iconClass="icon-right",this.isEnd=!1,this.tipWords="",this.getPicture()},getPicture(){this.loading=!0,Q({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(e=>{if(0===e.data.code){if(!1===e.data.data.validate)return this.loading=!1,this.startMoveTime=Date.now(),this.endMoveTime=Date.now(),void this.handleSuccess(e);this.isNeedShow=!0,this.backImgBase=e.data.data.originalImageBase64,this.blockBackImgBase=e.data.data.jigsawImageBase64,this.backToken=e.data.data.uuid,this.secretKey=e.data.data.secretKey,e.data.data.result&&"undefined"!=typeof window&&"function"==typeof window.gdp&&window.gdp("track","submitAuthCode",{uuid:e.data.data.uuid,clientUid:localStorage.getItem("slider"),registerEntry_var:sessionStorage.getItem("_GIO-registerEntry")||"-"})}else this.loading=!1,this.isNeedShow=!0}).catch(()=>{this.loading=!1,this.isNeedShow=!0})},closeBox(){this.$emit("update:visible",!1)}}},Cr={key:0,class:"auth-captcha-box-top"},br={class:"auth-captcha-title"},Ar={class:"captcha-wrapper",style:{position:"relative"}},Er=["src"],kr={key:0,class:"auth-captcha-loading"},xr={class:"loading-text"},Sr={class:"auth-captcha-msg"},Ir=["textContent"],Br=["src"];const Vr=/* @__PURE__ */un(wr,[["render",function(e,t,a,n,o,i){return m((l(),s("div",{class:c("pop"===a.mode?"captcha-mask":"captcha-relative-wrapper")},[u("div",{class:c("pop"===a.mode?"auth-captcha-box":""),style:b({width:"pop"===a.mode?o.setSize.imgWidth+"40px":"100%","max-width":"100%"})},["pop"===a.mode?(l(),s("div",Cr,[u("span",br,v(i.isEn?"please finish the security verification":"请完成安全验证"),1),u("span",{class:"auth-captcha-box-close",onClick:t[0]||(t[0]=(...e)=>i.closeBox&&i.closeBox(...e))}," × ")])):f("",!0),u("div",{class:"auth-captcha-box-bottom",style:b({padding:"pop"===a.mode?"15px":"0"})},[u("div",Ar,["blockPuzzle"===a.captchaType?(l(),s("div",{key:0,class:"auth-captcha-img-out",style:b({height:parseInt(o.setSize.imgHeight)+a.vSpace+"px"})},[u("div",{class:"auth-captcha-img-panel",style:b({width:o.setSize.imgWidth,height:o.setSize.imgHeight})},[u("img",{src:o.backImgBase?"data:image/png;base64,"+o.backImgBase:a.defaultImg,alt:"captcha",class:"main-img",onLoad:t[1]||(t[1]=(...e)=>i.handleImageLoaded&&i.handleImageLoaded(...e))},null,40,Er),o.loading?(l(),s("div",kr,[t[5]||(t[5]=u("div",{class:"loading-icon"},null,-1)),u("p",xr,v(i.isEn?"Loading...":"加载中..."),1)])):f("",!0),m(u("div",{class:"auth-captcha-refresh",onClick:t[2]||(t[2]=(...e)=>i.refresh&&i.refresh(...e))},[...t[6]||(t[6]=[u("svg",{t:"1767753956986",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"},[u("path",{d:"M894.481158 505.727133c0 49.589418-9.711176 97.705276-28.867468 143.007041-18.501376 43.74634-44.98454 83.031065-78.712713 116.759237-33.728172 33.728172-73.012897 60.211337-116.759237 78.712713-45.311998 19.156292-93.417623 28.877701-143.007041 28.877701s-97.695043-9.721409-142.996808-28.877701c-43.756573-18.501376-83.031065-44.98454-116.76947-78.712713-33.728172-33.728172-60.211337-73.012897-78.712713-116.759237-19.156292-45.301765-28.867468-93.417623-28.867468-143.007041 0-49.579185 9.711176-97.695043 28.867468-142.996808 18.501376-43.74634 44.98454-83.031065 78.712713-116.759237 33.738405-33.728172 73.012897-60.211337 116.76947-78.712713 45.301765-19.166525 93.40739-28.877701 142.996808-28.877701 52.925397 0 104.008842 11.010775 151.827941 32.745798 46.192042 20.977777 86.909395 50.79692 121.016191 88.608084 4.389984 4.860704 8.646937 9.854439 12.781094 14.97097l0-136.263453c0-11.307533 9.168824-20.466124 20.466124-20.466124 11.307533 0 20.466124 9.15859 20.466124 20.466124l0 183.64253c0 5.433756-2.148943 10.632151-5.986341 14.46955-3.847631 3.837398-9.046027 5.996574-14.479783 5.996574l-183.64253-0.020466c-11.307533 0-20.466124-9.168824-20.466124-20.466124 0-11.307533 9.168824-20.466124 20.466124-20.466124l132.293025 0.020466c-3.960195-4.952802-8.063653-9.782807-12.289907-14.479783-30.320563-33.605376-66.514903-60.098773-107.549481-78.753645-42.467207-19.289322-87.850837-29.072129-134.902456-29.072129-87.195921 0-169.172981 33.9533-230.816946 95.597265-61.654198 61.654198-95.597265 143.621025-95.597265 230.816946s33.943067 169.172981 95.597265 230.816946c61.643965 61.654198 143.621025 95.607498 230.816946 95.607498s169.172981-33.9533 230.816946-95.607498c61.654198-61.643965 95.597265-143.621025 95.597265-230.816946 0-11.2973 9.168824-20.466124 20.466124-20.466124C885.322567 485.261009 894.481158 494.429833 894.481158 505.727133z","p-id":"2524"})],-1)])],512),[[S,o.showRefresh]]),p(R,{name:"tips-fade"},{default:B(()=>[o.tipWords?(l(),s("div",{key:0,class:c(["auth-captcha-tips",o.passFlag?"suc-bg":"err-bg"])},v(o.tipWords),3)):f("",!0)]),_:1})],4)],4)):f("",!0),u("div",{class:"auth-captcha-bar-area",ref:"barArea",style:b({width:o.setSize.imgWidth,height:o.currentBarHeight+"px",lineHeight:o.currentBarHeight+"px"})},[u("span",Sr,v(i.barExplain),1),u("div",{class:"auth-captcha-left-bar",style:b({width:o.leftBarWidth,height:o.currentBarHeight+"px",borderColor:o.leftBarBorderColor,transition:o.transitionWidth})},[u("span",{class:"auth-captcha-msg",textContent:v(o.finishText)},null,8,Ir),u("div",{class:"auth-captcha-move-block",onMousedown:t[3]||(t[3]=(...e)=>i.start&&i.start(...e)),onTouchstart:t[4]||(t[4]=w((...e)=>i.start&&i.start(...e),["prevent"])),style:b({width:o.currentBarHeight+"px",height:o.currentBarHeight-2+"px",backgroundColor:o.moveBlockBackgroundColor,left:o.moveBlockLeft,transition:o.transitionLeft})},[u("i",{class:c(["auth-captcha-icon iconfont",o.iconClass]),style:b({color:o.iconColor})},null,6),"blockPuzzle"===a.captchaType?(l(),s("div",{key:0,class:"auth-captcha-sub-block",style:b(i.subBlockStyle)},[o.blockBackImgBase?(l(),s("img",{key:0,src:"data:image/png;base64,"+o.blockBackImgBase,class:"sub-img"},null,8,Br)):f("",!0)],4)):f("",!0)],36)],4)],4)])],4)],6)],2)),[[S,i.showBox]])}],["__scopeId","data-v-8990fe79"]]),Pr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"})),Tr={name:"CodeInput",components:{GoogleInput:yo,JcFloatInput:ko,JcVerifySlide:Vr},props:{modelValue:String,placeholder:String,ready:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duration:{type:Number,default:60},formTypeColor:{type:String,default:"1"},isEn:Boolean},emits:["update:modelValue","send"],data:()=>({isCounting:!1,countdown:0,timer:null,captchaVisible:!1}),computed:{statusClass(){return{1:"org",2:"lightBlue",4:"darkOrange"}[this.formTypeColor]||"darkBlue"},btnText(){return this.isCounting?`${this.countdown}s`:this.isEn?"Send Code":"发送验证码"}},methods:{handleSend:Fn(function(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},500,{leading:!0,trailing:!1}),handleCaptchaSuccess(e){this.$emit("send",{captchaData:e,startTimer:this.startTimer.bind(this)})},startTimer(){this.isCounting||(this.isCounting=!0,this.countdown=this.duration,this.timer=setInterval(()=>{this.countdown--,this.countdown<=0&&this.stopTimer()},1e3))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null),this.isCounting=!1,this.countdown=0}},beforeUnmount(){this.stopTimer(),this.handleSend.cancel?.()}},Rr={class:"code-input-container"};const Nr=/* @__PURE__ */un(Tr,[["render",function(e,t,a,n,o,i){const r=V("JcVerifySlide");return l(),s("div",Rr,[(l(),d(N(a.showIcon?"JcFloatInput":"GoogleInput"),{"model-value":a.modelValue,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t)),label:a.placeholder,placeholder:a.placeholder,class:"verify-code-input",autocomplete:"off",maxlength:"6"},U({suffix:B(()=>[u("a",{class:c(["send-code-btn",[i.statusClass,{"is-disabled":a.disabled||o.isCounting||!a.ready}]]),onClick:t[0]||(t[0]=(...e)=>i.handleSend&&i.handleSend(...e))},[u("span",{class:c(o.isCounting||!a.ready?"disabled-color":"obtain-color")},v(i.btnText),3)],2)]),_:2},[a.showIcon?{name:"prefix",fn:B(()=>[t[3]||(t[3]=u("i",{class:"icon-verify"},null,-1))]),key:"0"}:void 0]),1032,["model-value","label","placeholder"])),p(r,{visible:o.captchaVisible,"onUpdate:visible":t[2]||(t[2]=e=>o.captchaVisible=e),"is-en":a.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])])}],["__scopeId","data-v-9d6cb765"]]),Ur=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Nr},Symbol.toStringTag,{value:"Module"})),Dr={class:"global-modal-header-custom"},Fr={class:"global-modal-body-custom"},_r={class:"global-modal-footer-custom"},Lr=/* @__PURE__ */o({__name:"GlobalModal",setup(t){const n=e(),o=e(!1),i=I({city:"",company:"",email:"",phone:"",name:"",agreement:!1}),r=I({city:[{required:!0,message:"请输入所在地城市",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"请输入有效的邮箱地址",trigger:"blur"}],agreement:[{validator:(e,t,a)=>{t?a():a(new Error("请同意隐私政策"))},trigger:"change"}]}),s=()=>{o.value=!1,G.emit(X.Close,void 0),n.value?.clearValidate(),Object.assign(i,{city:"",company:"",email:"",phone:"",name:"",agreement:!1})},c=async()=>{if(!n.value)return;await n.value.validate().catch(()=>!1)&&(G.emit(X.Submit,{...i}),s())},h=()=>{o.value=!0};return a(()=>{G.on(X.Open,h)}),D(()=>{G.off(X.Open,h)}),(e,t)=>(l(),d(E(Xe),{modelValue:o.value,"onUpdate:modelValue":t[7]||(t[7]=e=>o.value=e),"before-close":s,"show-close":!1,"close-on-click-modal":!0,width:500,class:"global-modal-custom"},{header:B(()=>[u("div",Dr,[t[9]||(t[9]=u("h2",null,"即刻链接全球货代",-1)),p(E(at),{link:"",onClick:s,class:"close-button-custom","aria-label":"Close"},{default:B(()=>[...t[8]||(t[8]=[u("span",{style:{"font-size":"2rem"}},"×",-1)])]),_:1})])]),footer:B(()=>[u("div",_r,[p(E(at),{type:"primary",class:"submit-button-custom",onClick:c},{default:B(()=>[...t[11]||(t[11]=[x(" 加入会员 ",-1)])]),_:1})])]),default:B(()=>[u("div",Fr,[p(E(Ye),{model:i,rules:r,ref_key:"formRef",ref:n,"label-position":"top",onSubmit:t[6]||(t[6]=w(()=>{},["prevent"]))},{default:B(()=>[p(E(Ze),{gutter:20},{default:B(()=>[p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"所在地(城市)",prop:"city"},{default:B(()=>[p(E(Ge),{modelValue:i.city,"onUpdate:modelValue":t[0]||(t[0]=e=>i.city=e),placeholder:"请输入城市"},null,8,["modelValue"])]),_:1})]),_:1}),p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"公司名称",prop:"company"},{default:B(()=>[p(E(Ge),{modelValue:i.company,"onUpdate:modelValue":t[1]||(t[1]=e=>i.company=e),placeholder:"请输入公司名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(Ze),{gutter:20},{default:B(()=>[p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"邮箱",prop:"email"},{default:B(()=>[p(E(Ge),{modelValue:i.email,"onUpdate:modelValue":t[2]||(t[2]=e=>i.email=e),placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1}),p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"电话",prop:"phone"},{default:B(()=>[p(E(Ge),{modelValue:i.phone,"onUpdate:modelValue":t[3]||(t[3]=e=>i.phone=e),placeholder:"请输入电话"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(Ze),null,{default:B(()=>[p(E($e),{span:24},{default:B(()=>[p(E(et),{label:"姓名",prop:"name"},{default:B(()=>[p(E(Ge),{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=e=>i.name=e),placeholder:"请输入您的全名"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(et),{prop:"agreement",class:"agreement-item"},{default:B(()=>[p(E(tt),{modelValue:i.agreement,"onUpdate:modelValue":t[5]||(t[5]=e=>i.agreement=e),label:"我同意"},null,8,["modelValue"]),t[10]||(t[10]=u("a",{href:"#",class:"privacy-link"},"隐私政策",-1))]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"]))}}),Mr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),Or=/* @__PURE__ */o({__name:"AirCarrierSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the carrier code or name (e.g., AAL)":"请输入航空公司代码或名称 (如: AAL)"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),d(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Carrier","line-type":"air",class:"jc-air-carrier-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},U({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),jr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"})),qr=/* @__PURE__ */o({__name:"AirLineSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the line name":"请输入航线名称"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),d(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Line","line-type":"air",class:"jc-air-line-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},U({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Hr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:qr},Symbol.toStringTag,{value:"Module"})),zr=/* @__PURE__ */o({__name:"SeaCarrierSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the carrier code or name (e.g., AAL)":"请输入船司代码或名称 (如: MSK)"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),d(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Carrier","line-type":"shipping",class:"jc-sea-carrier-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},U({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Jr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"})),Wr=/* @__PURE__ */o({__name:"SeaLineSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the line name":"请输入航线名称"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),d(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Line","line-type":"shipping",class:"jc-sea-line-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},U({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Qr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Wr},Symbol.toStringTag,{value:"Module"})),Kr={class:"jc:flex jc:items-center jc:justify-between"},Gr={key:0,class:"jc:ml-2 jc:text-xs jc:text-gray-400"},Xr={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},Yr={key:0},Zr={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},$r={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},es=["src"],ts={key:1},as=/* @__PURE__ */un(/* @__PURE__ */o({__name:"index",props:{modelValue:{type:[String,Number,Array],default:void 0},lang:{type:String,default:""},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},showApplyData:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["update:modelValue","change","apply","focus","blur","remove-tag"],setup(n,{emit:o}){const i=n,c=o,p=e(),m=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),C=t(()=>{if(i.placeholder)return i.placeholder;return{Carrier:m.value?"Search by carrier name or code":"请输入公司名称或代码",Line:m.value?"Search by line name":"请输入航线名称",Seaport:m.value?"Search by seaport name":"请输入港口名称"}[i.type]||(m.value?"Search...":"请输入关键字搜索")}),b=t({get:()=>i.modelValue,set:e=>c("update:modelValue",e)}),A=t(()=>{const e=i.modelValue;if(Array.isArray(e)){return"string"==typeof e.find(e=>null!=e&&""!==e)}return"string"==typeof e}),k=e(!1),x=e([]),S=e(""),I=()=>{x.value=[...i.defaultOptions]};r(()=>i.defaultOptions,()=>{if(!k.value&&!S.value){const e=[...i.defaultOptions];x.value=e}},{immediate:!0,deep:!0});const V=Fn(async e=>{try{const t={keyword:e,current:1,size:50};let a={};a="Carrier"===i.type?await z.carrier.search(t,i.lineType):"Line"===i.type?await z.line.search(t,i.lineType):await z.searchByName({...t,displayInfo:[i.type]});const n=a.records||[];if(i.defaultOptions.length>0){const e=i.defaultOptions.filter(e=>!n.some(t=>t.id===e.id));x.value=[...e,...n]}else x.value=n}catch(t){console.error("Search failed:",t)}finally{k.value=!1}},300),P=e=>{if(S.value=e,!e||!e.trim())return k.value=!1,void I();k.value=!0,V(e)},T=e=>{e||(I(),k.value=!1,S.value="",p.value?.blur())},R=()=>{I(),S.value="",c("change",null,null)},N=e=>{if(!e)return void c("change",e,null);let t;t=Array.isArray(e)?x.value.filter(t=>e.some(e=>String(e)===String(t.id))):x.value.find(t=>String(t.id)===String(e))||null,c("change",e,t)},D=()=>{S.value&&J({reportData:S.value,reportType:i.type.toLocaleLowerCase()}),c("apply",S.value),p.value?.blur()},F=async()=>{if(null===i.modelValue||void 0===i.modelValue||""===i.modelValue)return;const e=(Array.isArray(i.modelValue)?i.modelValue:[i.modelValue]).filter(e=>!x.value.some(t=>String(t.id)===String(e)));if(0!==e.length)try{let t=[];const a=e.map(e=>Number(e)).filter(e=>!Number.isNaN(e));if(0===a.length)return;if("Carrier"===i.type){const e=await z.carrier.getByIds(a,i.lineType);t=Array.isArray(e)?e:e.records||[]}else if("Line"===i.type){const e=await z.line.getByIds(a,i.lineType);t=Array.isArray(e)?e:e.records||[]}if(t.length>0){const e=t.filter(e=>!x.value.some(t=>t.id===e.id));x.value.push(...e)}}catch(t){console.error("Init selected data failed:",t)}};return a(()=>{F()}),r(()=>i.modelValue,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&"undefined"!=typeof window&&F()}),(e,t)=>(l(),d(E(Qe),{ref_key:"selectRef",ref:p,modelValue:b.value,"onUpdate:modelValue":t[0]||(t[0]=e=>b.value=e),multiple:n.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:C.value,"remote-method":P,loading:k.value,class:"jc:w-full jc-carrier-search-comp",teleported:!1,onChange:N,onVisibleChange:T,onClear:R,onFocus:t[1]||(t[1]=t=>e.$emit("focus")),onBlur:t[2]||(t[2]=t=>e.$emit("blur")),onRemoveTag:t[3]||(t[3]=t=>e.$emit("remove-tag",t))},U({empty:B(()=>[u("div",Xr,[k.value?(l(),s("div",Yr,v(m.value?"Searching...":"正在搜索中..."),1)):(l(),s("div",Zr,[n.showApplyData?(l(),s(g,{key:0},[u("p",null,v(m.value?"No results found. ":"暂无结果,"),1),u("div",$r,[u("span",{class:"jc:font-medium jc:text-[14px] jc:text-brand jc:leading-5 jc:text-center jc:cursor-pointer jc:ml-1",onClick:w(D,["stop"])},v(m.value?"Apply for data addition":"申请补充数据 "),1),u("img",{src:E(Fa),alt:"",class:"jc:mr-1 jc:size-4",onClick:w(D,["stop"])},null,8,es)])],64)):(l(),s("p",ts,v(m.value?"No results found.":"暂无结果"),1))]))])]),default:B(()=>[(l(!0),s(g,null,y(x.value,t=>{return l(),d(E(Ke),{key:t.id,label:m.value?t.displayEn||t.display:t.displayCn||t.display,value:(a=t.id,A.value?String(a):a)},{option:B(()=>[h(e.$slots,"option",{item:t},()=>[u("div",Kr,[u("span",null,v(m.value?t.displayEn||t.display:t.displayCn||t.display),1),t.code?(l(),s("span",Gr,v(t.code),1)):f("",!0)])],!0)]),_:2},1032,["label","value"]);var a}),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","multiple","placeholder","loading"]))}}),[["__scopeId","data-v-8b1bf751"]]),ns=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),os={class:"wrapper-container"},is={key:0,class:"wrapper-prepend"},rs={class:"wrapper-main"},ss={class:"wrapper-label"},ls={key:1,class:"wrapper-append"};const cs=/* @__PURE__ */un({name:"JcFloatWrapper",emits:["focus","blur"],props:{label:{type:String,default:""}},data:()=>({internalFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(e){const t=e.relatedTarget;t&&this.$el?.contains?.(t)||(this.internalFocus=!1,this.$emit("blur"))}}},[["render",function(e,t,a,n,o,i){return l(),s("div",{class:c(["jc-float-wrapper",{"is-focus":o.internalFocus,"is-have-prepend":i.isHavePrepend}]),onFocusin:t[0]||(t[0]=(...e)=>i.handleFocusIn&&i.handleFocusIn(...e)),onFocusout:t[1]||(t[1]=(...e)=>i.handleFocusOut&&i.handleFocusOut(...e))},[u("div",os,[i.isHavePrepend?(l(),s("div",is,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",rs,[h(e.$slots,"default",{},void 0,!0),u("p",ss,v(a.label),1)]),i.isHaveAppend?(l(),s("div",ls,[h(e.$slots,"suffix",{},void 0,!0)])):f("",!0)])],34)}],["__scopeId","data-v-4e8a7fce"]]),us=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"}));function ds(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)e[n]=a[n]}return e}var ps=function e(t,a){function n(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=ds({},a,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var r in o)o[r]&&(i+="; "+r,!0!==o[r]&&(i+="="+o[r].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+i}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var a=document.cookie?document.cookie.split("; "):[],n={},o=0;o<a.length;o++){var i=a[o].split("="),r=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=t.read(r,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){n(e,"",ds({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,ds({},this.attributes,t))},withConverter:function(t){return e(ds({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const hs=()=>"undefined"!=typeof window,fs=(e,t)=>{if(hs())try{window.sessionStorage?.setItem(e,t)}catch(a){}},ms=e=>{if(!hs())return"";try{return window.sessionStorage?.getItem(e)||""}catch(t){return""}},gs=e=>{if(hs())try{window.sessionStorage?.removeItem(e)}catch(t){}},ys={redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]},vs=()=>{const e=ms("jc-auth-mobileEmailList")||"[]";return{thirdPartyId:ms("jc-auth-thirdPartyId"),thirdPartyEmail:ms("jc-auth-thirdPartyEmail"),thirdPartyType:ms("jc-auth-thirdPartyType"),thirdPartyUserName:ms("jc-auth-thirdPartyUserName"),mobileEmailList:JSON.parse(e)}},ws=e=>{e&&e.length>0&&fs("jc-auth-thirdPartyEmailVerifyList",JSON.stringify(e))},Cs=e=>{e&&e.length>0&&fs("jc-auth-thirdPartyMobileVerifyList",JSON.stringify(e))};function bs(t){const n=e(!1),o=e(null),i=e(!1),r=e(!1),s=e([]),l=e(!1);let c=null,u=null,d=!1;const p="current_login_type",h="jc_auth_state_check",f="jc_auth_active_instance",m=Math.random().toString(36).substring(2,15),g=e=>hs()?new URLSearchParams(window.location.search).get(e):null,y=()=>{u&&(clearInterval(u),u=null),c=null},v=()=>{console.log("🧹 [重置] 清空所有登录状态"),y(),hs()&&window.removeEventListener("message",w),n.value=!1,o.value=null,i.value=!1,r.value=!1,l.value=!1,s.value=[],d=!1,gs(p),gs(f),gs(h)},w=async e=>{if(!hs())return;if(![window.location.origin,"https://passport.jctrans.com","https://passport-sit.jctrans.net.cn","https://passport-sit2.jctrans.net.cn","http://localhost:8080","http://localhost:8086","http://localhost:8093"].includes(e.origin))return void console.warn("收到未知来源的消息:",e.origin);const{type:t,code:a,state:n}=e.data||{};if("THIRD_PARTY_LOGIN_CODE"===t&&a&&n){if(ms(f)!==m)return;if(ms(h)!==n)return;d=!0,console.log(`🍉 [主窗口] 实例 ${m} 收到授权码:`,a,n),window.removeEventListener("message",w),y();const e=ms(p)||null;if("TEST"===e){console.log("🍉 [主窗口] 测试模式:模拟接口返回");const e=ys;setTimeout(()=>{b(e)},500)}else await C(a,e)}},C=async(e,a)=>{const o=Z(),i={thirdPartyCode:e,appId:t.appId,redirectPath:t.redirectPath||"/",activityCode:o?.activityCode||"",referenceUserId:o?.referenceUserId||""};try{let e;"FACEBOOK"===a?e=await $(i):"LINKEDIN"===a&&(e=await ee(i)),e&&e.data&&b(e.data)}catch(r){console.error("登录 API 错误:",r),t.onError&&t.onError(r),v()}finally{n.value=!1,gs(p),gs(f)}},b=e=>{const a=e.data||e;if(console.log("🍉 处理登录结果:",a),o.value=a,n.value=!1,a.redirect&&a.tgc){const e="CPA"===t.appId?"tgc-CPA":"tgc";ps.set(e,a.tgc,{expires:30})}const l=a.mobileEmailList||[];if(((e,t)=>{e.thirdPartyId&&fs("jc-auth-thirdPartyId",e.thirdPartyId),e.thirdPartyEmail&&fs("jc-auth-thirdPartyEmail",e.thirdPartyEmail),e.thirdPartyType&&fs("jc-auth-thirdPartyType",e.thirdPartyType),e.thirdPartyUserName&&fs("jc-auth-thirdPartyUserName",e.thirdPartyUserName),t&&t.length>0&&fs("jc-auth-mobileEmailList",JSON.stringify(t))})(a?.thirdPartyInfo||{},a?.mobileEmailList||[]),l.length>0)console.log("👉 进入绑定流程"),s.value=l,i.value=!0,r.value=!1,t.onNeedBind&&t.onNeedBind(l);else if(a.redirect)if(console.log("👉 直接登录成功,准备跳转"),i.value=!1,r.value=!1,Y(a.result),t.onSuccess)t.onSuccess(a);else{const e=a.redirectPath||t.redirectPath;console.log("🍉 ~ useThirdPartyLogin.ts:426 ~ handleLoginSuccess ~ targetPath:",e),e&&Ps(e)}else console.log("👉 进入注册流程"),i.value=!1,s.value=[],r.value=!0};a(()=>{(()=>{if(hs()&&window.opener&&window.opener!==window){const e=g("code"),t=g("state");e&&(console.log("🍉 [弹窗] 获取到授权码,准备回传:",e),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:e,state:t},"*"),window.close())}})()}),D(()=>{hs()&&window.removeEventListener("message",w),v()});return{isLoading:n,isBindDialogVisible:i,isRegisterVisible:r,isUserClosed:l,bindList:s,loginResult:o,startLogin:e=>{if(!hs())return;if(n.value)return;v(),d=!1,window.addEventListener("message",w),n.value=!0,fs(p,e),fs(f,m);const t="jc_"+Math.random().toString(36).slice(2);fs(h,t);const a=window.location.hostname.includes("jctrans.com"),o=window.location.hostname.includes("sit2"),i=(window.location.hostname.includes("sit"),`${a?"https://passport.jctrans.com":o?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"}/oauth_callback.html`||window.location.origin+window.location.pathname);let r="";if("TEST"===e){r=`${a?"https://passport.jctrans.com/mock_auth.html":o?"https://passport-sit2.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(i)}&state=${t}`}else if("FACEBOOK"===e){r=`${"https://www.facebook.com/v22.0/dialog/oauth"}?client_id=${"1819580562224685"}&redirect_uri=${encodeURIComponent(i)}&state=${t}&scope=email,public_profile&display=popup`}else if("LINKEDIN"===e){r=`${"https://www.linkedin.com/oauth/v2/authorization"}?response_type=code&client_id=${"86t0770jygwztk"}&redirect_uri=${encodeURIComponent(i)}&state=${t}&scope=profile%20email%20openid`}const s=window.screen.width/window.innerWidth,g=(window.screen.width-600)/2/s+(void 0!==window.screenLeft?window.screenLeft:window.screenX),C=`\n width=600,\n height=700,\n top=${(window.screen.height-700)/2/s+(void 0!==window.screenTop?window.screenTop:window.screenY)},\n left=${g},\n toolbar=no,\n menubar=no,\n scrollbars=yes,\n status=no,\n location=no\n `;if(console.log(`🍉 打开弹窗 [${e}]: ${r}`),c=window.open(r,"ThirdPartyLogin",C),!c)return console.error("浏览器已阻止弹窗"),void(n.value=!1);u=setInterval(()=>{if(c&&c.closed){if(d)return console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),void y();console.log("🍉 检测到弹窗被手动关闭,执行重置"),v(),l.value=!0}},1e3)},resetState:v,handleBindThirdParty:e=>{s.value=e,i.value=!0,r.value=!1},resetBindRegisterState:()=>{i.value=!1,r.value=!1,s.value=[]}}}async function As(e,t,a,n=!0,o=!0){if(!t||""===t.trim())return a(new Error(n?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t))return a(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[\u4e00-\u9fa5]+/.test(t))return a(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(t))return a(new Error(n?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(!o)return a();try{const{data:e}=await te({target:t});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",e),e.data)return a(new Error(n?"It's already occupied, please re-enter.":"已被占用,请重新输入"));a()}catch(i){a(new Error(n?"Validation failed, please re-enter.":"校验失败,请重新输入"))}}function Es(e,t,a,n=!0,o=!0){const i=/^[a-zA-Z\u4e00-\u9fa5\s.·•]+$/,r=/^[a-zA-Z\s.·•]+$/;if(!t){return a(new Error(o?n?"please enter your Chinese name":"请输入您的中文姓名":n?"Please enter your English name":"请输入您的英文姓名"))}if(o){if(t.length>50||!i.test(t))return a(new Error(n?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(t.length>50||!r.test(t))return a(new Error(n?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));a()}function ks(e,t,a,n=!0){const o={empty:n?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:n?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(null==t||""===t)return a(new Error(o.empty));if(t.length<6||t.length>20)return a(new Error(o.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t))return a(new Error(o.invalidChars));const i=/^[a-zA-Z]*$/.test(t),r=/^[0-9]*$/.test(t),s=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t);if(i||r||s)return a(new Error(o.complexity));a()}async function xs(e,t,a,n=!0,o=!0){const i={empty:n?"Please enter your cell phone number":"请输入手机号",minLen:n?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:n?"Invalid mobile address":"手机号格式错误",occupied:n?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!t)return a(new Error(i.empty));if(!/^[0-9]*$/.test(t))return a(new Error(i.invalid));if(t.length<2)return a(new Error(i.minLen));if(!o)return a();try{const e=await te({target:t});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",e),e&&e.data.data)return a(new Error(i.occupied));a()}catch(r){a(new Error(i.occupied))}}async function Ss(e,t,a,n=!0,o){const i=function(e){return e?e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}(t);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",i);const r=1==o.countryId;if(!i)return!r||"DDC"!==o.appId&&"JHB"!==o.appId?a(new Error(n?"please enter the full company name":"请输入公司名称")):a();if(i.length<2)return a(new Error(n?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(i.length>200)return a(new Error(n?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!r){if(/[\u4e00-\u9fa5]/.test(i))return a(new Error(n?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(i))return a(new Error(n?"Wrong format for company name":"注册公司名格式错误"))}if(o.countryId&&o.cityId)try{const e={countryId:o.countryId,cityId:o.cityId,[r?"compNameCn":"compNameEn"]:i},t=await ne(e);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",t),t.data.data.result?"JCPAY"===o.appId?a(new Error(n?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(r?o.companyResistCn=!0:o.companyResistEn=!0,o.resistCompanyInfo=t.data.data,a()):(r?o.companyResistCn=!1:o.companyResistEn=!1,a())}catch(s){const e=s?.toString().split(":")[1]||"API Error";a(new Error(e))}else a(new Error(n?"Please select a Country/Region":"请选择国家/地区"))}function Is(e,t,a,n=!0){return t?/^\d{4}$/.test(t)?void a():a(new Error(n?"Verification code must be 4 digits":"验证码必须为4位数字")):a(new Error(n?"Please enter the verification code":"请输入验证码"))}function Bs(e="_blank"){const t=window.location.hostname.includes("jctrans.com"),a=window.location.hostname.includes("sit2"),n=(window.location.hostname.includes("sit"),t?"https://passport.jctrans.com":a?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),o=document.createElement("a");o.href=`${n}/privacyAgreement`,o.target=e;const i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});o.dispatchEvent(i)}function Vs(e="_blank"){const t=window.location.hostname.includes("jctrans.com"),a=window.location.hostname.includes("sit2"),n=(window.location.hostname.includes("sit"),t?"https://passport.jctrans.com":a?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),o=document.createElement("a");o.href=`${n}/privacyPolicy`,o.target=e;const i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});o.dispatchEvent(i)}const Ps=(e,t=100)=>{process.env&&"development"===process.env.NODE_ENV?console.log("🍉 ~ constant.ts:517 ~ handleRedirect ~ path:",e):e&&setTimeout(()=>{e.startsWith("http")?window.location.href=e:(window.location.href=window.location.origin+e,console.warn("内部路径跳转逻辑尚未定义:",e))},t)},Ts={class:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},Rs={style:{color:"#f80"},class:"jc:text-xs"},Ns=/* @__PURE__ */o({__name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(e,{emit:a}){const n=e,o=a,i=t(()=>n.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),r=t(()=>n.isEn?"join in >>":"点击申请加入 >>"),c=()=>{o("apply-join")};return(e,t)=>(l(),s("div",Ts,[u("p",Rs,[t[0]||(t[0]=u("i",{class:"el-icon-warning"},null,-1)),x(" "+v(i.value),1)]),u("p",{style:{color:"#3264ff",cursor:"pointer"},onClick:c},v(r.value),1)]))}}),Us={name:"RegisterForm",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:dn,ChineseCompanySearch:co,GoogleInput:yo,ApplyJoinBtn:Ns},props:{isEn:Boolean},emits:["to-login","register","need-complete","register-success"],computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id||this.form?.city?.raw?.city?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:null,cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(e,t,a)=>{t?a():a(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Bs,getAuthSessionItems:Z,go2Policy:Vs,async inviteJoinGetComp(){const e=Z().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:557 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{})},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){const e=(await de()).data;console.log("🍉 ~ RegisterForm.vue:594 ~ IpData:",e),e&&0===e.code&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:e.data?.countryId},country:{id:e.data?.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=e.data?.countryId,this.handleSelectCity(this.form.city));const t=await pe();this.areaCodeData=t.data.data.records},handleClearCity(){console.log("🍉 ~ RegisterForm.vue:573 handleClearCity ~ :"),this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){console.log("🍉 ~ RegisterForm.vue:586 ~ captchaData:",e),this.verifyData=e;const a={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};t(),console.log("🍉 ~ RegisterForm.vue:642 ~ startTimer:",t);let n=ue,o=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=fe,o=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.currentCountryIsChina?this.mobileUid=t:this.emailUid=t,Je.success(o))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;if(!this.verifyData.uuid)return void Je.error(this.isEn?"Please get code first":"请先获取验证码");const t=this.getAuthSessionItems();let a={appId:this.appId,fromSys:this.appId,passwd:yr.MD5(this.form.password).toString(),clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterInfo:t.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:t.uniqueCode||""};this.currentCountryIsChina?Object.assign(a,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:ce(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(a,{type:"EMAIL",account:ce(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),console.log("🍉 ~ RegisterForm.vue:676 ~ submitData:",a),this.hasResistCompany?this.handleApplyJoinSubmit(a):this.handleNewCompanySubmit(a)})},async handleNewCompanySubmit(e){const t=this.getAuthSessionItems(),a={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?a.compNameCn=this.form.companyName:a.compNameEn=this.form.companyName,this.$emit("register",a),console.log("🍉 ~ RegisterForm.vue:698 ~ registerPayload:",a),this.loading=!0;try{const e=t.uniqueCode?se:le,n=await e(a);this.handlePostRegister(n)}catch(n){this.loading=!1}},async handleApplyJoinSubmit(e){const t=this.getAuthSessionItems(),a={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(a.nameCn=this.form.nameCn),this.form.nameEn&&(a.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete a[e]),this.$emit("register",a),this.loading=!0;try{const e=t.uniqueCode?ie:re,n=await e(a);this.handlePostRegister(n)}catch(n){this.loading=!1}},normalizeDelayMs(e){if(null==e||""===e)return 0;if("string"==typeof e){const t=e.trim().toLowerCase();if(!t)return 0;if(t.endsWith("ms")){const e=Number(t.slice(0,-2).trim());return Number.isFinite(e)&&e>=0?e:0}if(t.endsWith("s")){const e=Number(t.slice(0,-1).trim());return Number.isFinite(e)&&e>=0?1e3*e:0}const a=Number(t);return!Number.isFinite(a)||a<0?0:a>=10?a:1e3*a}const t=Number(e);return!Number.isFinite(t)||t<0?0:t>=10?t:1e3*t},executeRedirectWithDelay(e,t){const a=this.normalizeDelayMs(t);setTimeout(()=>{oe(),Ps(e)},a)},handlePostRegister(e){const t=this.getAuthSessionItems();if(console.log("🍉 ~ RegisterForm.vue:749 ~ res.data:",e.data),0===e.data.code)if(e.data.data.redirect){if(Y(e.data.data.result),e.data.data.result&&e.data.data.result.improveComp)return void this.$emit("need-complete",e.data.data.result.improveComp);try{ps.set("tgc",e.data.data.tgc,{expires:30});const a=e.data.data.redirectPath||t.path||"/",n={isHandled:!1},o=e=>{n.isHandled=!0,this.executeRedirectWithDelay(a,e)},i=()=>{n.isHandled=!0};this.$emit("register-success",{user:e.data.data.result,redirectPath:a,preventDefault:i,redirect:o}),setTimeout(()=>{n.isHandled||this.executeRedirectWithDelay(a,0)},0)}catch(a){console.error("🍉 注册成功后的后续处理发生异常:",a)}}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Je.error(e.data.msg)}}},Ds={class:"register-form-container"},Fs={class:"register-title"},_s={class:"resist-company-info-card"},Ls={class:"card-header"},Ms={class:"title-group"},Os={class:"tip-text"},js={class:"company-content"},qs={class:"company-name"},Hs={class:"card-header"},zs={class:"title-group"},Js={class:"tip-text"},Ws={class:"location-info"},Qs={key:4,class:"sector-section"},Ks={class:"sector-label"},Gs={class:"sector-group"},Xs=["onClick"],Ys={key:0,class:"icon-auth-checked"},Zs={class:"agree-text"},$s={class:"bottom-tip"};const el=/* @__PURE__ */un(Us,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),C=V("ChineseCompanySearch"),b=V("ApplyJoinBtn"),A=V("JcFloatInput"),E=V("el-option"),k=V("el-select"),S=V("google-input"),I=V("CodeInput"),P=V("el-checkbox"),T=V("el-button"),R=V("el-form");return l(),s("div",Ds,[u("div",Fs,[u("p",null,v(a.isEn?"New User Registration":"新用户注册"),1)]),p(R,{ref:"registerFormRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[u("div",_s,[u("div",Ls,[u("div",Ms,[u("span",Os,v(a.isEn?"Company name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),u("div",js,[u("h4",qs,v(a.isEn?o.resistCompanyInfo.compNameEn||o.resistCompanyInfo.compNameCn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),u("div",Hs,[u("div",zs,[u("span",Js,v(a.isEn?"Location(City)":"所在地(城市)"),1)])]),u("div",Ws,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(A,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],onClear:i.handleClearCity,onSelect:i.handleSelectCity,placeholder:a.isEn?"Location(City)":"请输入公司所在城市"},{prefix:B(()=>[...t[19]||(t[19]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","onClear","onSelect","placeholder"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(C,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),"country-id":o.form.city?.raw?.country?.id||o.form.city?.raw?.city?.countryId||null,city:o.form.city,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[20]||(t[20]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id","city","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),d(b,{key:0,"is-en":a.isEn,onApplyJoin:i.handleApplyJoinClick},null,8,["is-en","onApplyJoin"])):f("",!0)],64)),i.currentCountryIsChina?(l(),d(m,{key:2,class:"phone-form-item"},{default:B(()=>[(l(),d(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(S,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[t[22]||(t[22]=u("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),d(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1})):f("",!0),i.currentCountryIsChina?f("",!0):(l(),d(m,{key:3,prop:"email",class:"email-form-item"},{default:B(()=>[p(A,{modelValue:o.form.email,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[12]||(t[12]=e=>i.validateField("email"))},{prefix:B(()=>[...t[23]||(t[23]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),p(m,{prop:"code"},{default:B(()=>[p(I,{modelValue:o.form.code,"onUpdate:modelValue":t[13]||(t[13]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:B(()=>[...t[24]||(t[24]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),p(m,{prop:"password",class:"password-form-item"},{default:B(()=>[p(A,{modelValue:o.form.password,"onUpdate:modelValue":t[14]||(t[14]=e=>o.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:a.isEn?"Password":"密码",placeholder:a.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...t[25]||(t[25]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),o.hasResistCompany?f("",!0):(l(),s("div",Qs,[u("p",Ks,v(a.isEn?"Industry Sector":"行业类型"),1),u("div",Gs,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Ys)):f("",!0)],10,Xs))),128))])])),p(m,{prop:"agree",class:"agree-item"},{default:B(()=>[p(P,{modelValue:o.form.agree,"onUpdate:modelValue":t[17]||(t[17]=e=>o.form.agree=e)},{default:B(()=>[u("span",Zs,[x(v(a.isEn?"I agree":"我同意")+" ",1),u("span",{class:"link-type",onClick:t[15]||(t[15]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(a.isEn?"User Agreement":"《用户条款和协议》"),1),x(" "+v(a.isEn?"and":"和")+" ",1),u("span",{class:"link-type",onClick:t[16]||(t[16]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(a.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),p(T,{class:c(["submit-btn register-btn",["register-btn-is-active"]]),disabled:o.loading,loading:o.loading,onClick:i.handleRegister},{default:B(()=>[x(v(a.isEn?"Register and Log in":"注册并登录")+" ",1),t[26]||(t[26]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["disabled","loading","onClick"])]),_:1},8,["model","rules"]),u("div",$s,[x(v(a.isEn?"Already have an account?":"已有账号?")+" ",1),u("span",{class:"action-text",onClick:t[18]||(t[18]=t=>e.$emit("to-login"))},[x(v(a.isEn?"Click to log in":"去登录")+" ",1),t[27]||(t[27]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])])])}],["__scopeId","data-v-e49d204e"]]);var tl,al,nl={};var ol,il={},rl={};function sl(){if(ol)return rl;let e;ol=1;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return rl.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},rl.getSymbolTotalCodewords=function(e){return t[e]},rl.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},rl.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},rl.isKanjiModeEnabled=function(){return void 0!==e},rl.toSJIS=function(t){return e(t)},rl}var ll,cl,ul,dl,pl,hl={};function fl(){return ll||(ll=1,(e=hl).L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,a){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return a}}),hl;var e}var ml,gl={};var yl,vl={};var wl,Cl={};var bl,Al={};function El(){if(bl)return Al;bl=1;const e=fl(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Al.getBlocksCount=function(a,n){switch(n){case e.L:return t[4*(a-1)+0];case e.M:return t[4*(a-1)+1];case e.Q:return t[4*(a-1)+2];case e.H:return t[4*(a-1)+3];default:return}},Al.getTotalCodewordsCount=function(t,n){switch(n){case e.L:return a[4*(t-1)+0];case e.M:return a[4*(t-1)+1];case e.Q:return a[4*(t-1)+2];case e.H:return a[4*(t-1)+3];default:return}},Al}var kl,xl,Sl,Il,Bl={},Vl={};function Pl(){return xl||(xl=1,function(e){const t=function(){if(kl)return Vl;kl=1;const e=new Uint8Array(512),t=new Uint8Array(256);return function(){let a=1;for(let n=0;n<255;n++)e[n]=a,t[a]=n,a<<=1,256&a&&(a^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),Vl.log=function(e){if(e<1)throw new Error("log("+e+")");return t[e]},Vl.exp=function(t){return e[t]},Vl.mul=function(a,n){return 0===a||0===n?0:e[t[a]+t[n]]},Vl}();e.mul=function(e,a){const n=new Uint8Array(e.length+a.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<a.length;i++)n[o+i]^=t.mul(e[o],a[i]);return n},e.mod=function(e,a){let n=new Uint8Array(e);for(;n.length-a.length>=0;){const e=n[0];for(let i=0;i<a.length;i++)n[i]^=t.mul(a[i],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},e.generateECPolynomial=function(a){let n=new Uint8Array([1]);for(let o=0;o<a;o++)n=e.mul(n,new Uint8Array([1,t.exp(o)]));return n}}(Bl)),Bl}var Tl,Rl={},Nl={},Ul={};function Dl(){return Tl||(Tl=1,Ul.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),Ul}var Fl,_l,Ll,Ml={};function Ol(){if(Fl)return Ml;Fl=1;const e="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Ml.KANJI=new RegExp(t,"g"),Ml.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ml.BYTE=new RegExp(a,"g"),Ml.NUMERIC=new RegExp(e,"g"),Ml.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const n=new RegExp("^"+t+"$"),o=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ml.testKanji=function(e){return n.test(e)},Ml.testNumeric=function(e){return o.test(e)},Ml.testAlphanumeric=function(e){return i.test(e)},Ml}function jl(){return _l||(_l=1,function(e){const t=Dl(),a=Ol();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,a){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?e.ccBits[0]:a<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return a.testNumeric(t)?e.NUMERIC:a.testAlphanumeric(t)?e.ALPHANUMERIC:a.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,a){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(n){return a}}}(Nl)),Nl}function ql(){return Ll||(Ll=1,function(e){const t=sl(),a=El(),n=fl(),o=jl(),i=Dl(),r=t.getBCHDigit(7973);function s(e,t){return o.getCharCountIndicator(e,t)+4}function l(e,t){let a=0;return e.forEach(function(e){const n=s(e.mode,t);a+=n+e.getBitsLength()}),a}e.from=function(e,t){return i.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,n,r){if(!i.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=o.BYTE);const l=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,n));if(r===o.MIXED)return l;const c=l-s(r,e);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,a){let i;const r=n.from(a,n.M);if(Array.isArray(t)){if(t.length>1)return function(t,a){for(let n=1;n<=40;n++)if(l(t,n)<=e.getCapacity(n,a,o.MIXED))return n}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,a,n){for(let o=1;o<=40;o++)if(a<=e.getCapacity(o,n,t))return o}(i.mode,i.getLength(),r)},e.getEncodedBits=function(e){if(!i.isValid(e)||e<7)throw new Error("Invalid QR Code version");let a=e<<12;for(;t.getBCHDigit(a)-r>=0;)a^=7973<<t.getBCHDigit(a)-r;return e<<12|a}}(Rl)),Rl}var Hl,zl={};var Jl,Wl,Ql,Kl,Gl,Xl,Yl,Zl,$l={};var ec,tc,ac,nc={exports:{}};function oc(){return tc||(tc=1,function(e){const t=jl(),a=function(){if(Wl)return Jl;Wl=1;const e=jl();function t(t){this.mode=e.NUMERIC,this.data=t.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let t,a,n;for(t=0;t+3<=this.data.length;t+=3)a=this.data.substr(t,3),n=parseInt(a,10),e.put(n,10);const o=this.data.length-t;o>0&&(a=this.data.substr(t),n=parseInt(a,10),e.put(n,3*o+1))},Jl=t}(),n=function(){if(Kl)return Ql;Kl=1;const e=jl(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(t){this.mode=e.ALPHANUMERIC,this.data=t}return a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let a;for(a=0;a+2<=this.data.length;a+=2){let n=45*t.indexOf(this.data[a]);n+=t.indexOf(this.data[a+1]),e.put(n,11)}this.data.length%2&&e.put(t.indexOf(this.data[a]),6)},Ql=a}(),o=function(){if(Xl)return Gl;Xl=1;const e=jl();function t(t){this.mode=e.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}return t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){for(let t=0,a=this.data.length;t<a;t++)e.put(this.data[t],8)},Gl=t}(),i=function(){if(Zl)return Yl;Zl=1;const e=jl(),t=sl();function a(t){this.mode=e.KANJI,this.data=t}return a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let a;for(a=0;a<this.data.length;a++){let n=t.toSJIS(this.data[a]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},Yl=a}(),r=Ol(),s=sl(),l=function(){return ec?nc.exports:(ec=1,nc.exports=e={single_source_shortest_paths:function(t,a,n){var o={},i={};i[a]=0;var r,s,l,c,u,d,p,h=e.PriorityQueue.make();for(h.push(a,0);!h.empty();)for(l in s=(r=h.pop()).value,c=r.cost,u=t[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],p=i[l],(void 0===i[l]||p>d)&&(i[l]=d,h.push(l,d),o[l]=s));if(void 0!==n&&void 0===i[n]){var f=["Could not find a path from ",a," to ",n,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var a=[],n=t;n;)a.push(n),e[n],n=e[n];return a.reverse(),a},find_path:function(t,a,n){var o=e.single_source_shortest_paths(t,a,n);return e.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(t){var a,n=e.PriorityQueue,o={};for(a in t=t||{},n)n.hasOwnProperty(a)&&(o[a]=n[a]);return o.queue=[],o.sorter=t.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var a={value:e,cost:t};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}});var e}();function c(e){return unescape(encodeURIComponent(e)).length}function u(e,t,a){const n=[];let o;for(;null!==(o=e.exec(a));)n.push({data:o[0],index:o.index,mode:t,length:o[0].length});return n}function d(e){const a=u(r.NUMERIC,t.NUMERIC,e),n=u(r.ALPHANUMERIC,t.ALPHANUMERIC,e);let o,i;s.isKanjiModeEnabled()?(o=u(r.BYTE,t.BYTE,e),i=u(r.KANJI,t.KANJI,e)):(o=u(r.BYTE_KANJI,t.BYTE,e),i=[]);return a.concat(n,o,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,r){switch(r){case t.NUMERIC:return a.getBitsLength(e);case t.ALPHANUMERIC:return n.getBitsLength(e);case t.KANJI:return i.getBitsLength(e);case t.BYTE:return o.getBitsLength(e)}}function h(e,r){let l;const c=t.getBestModeForData(e);if(l=t.from(r,c),l!==t.BYTE&&l.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(l)+".\n Suggested mode is: "+t.toString(c));switch(l!==t.KANJI||s.isKanjiModeEnabled()||(l=t.BYTE),l){case t.NUMERIC:return new a(e);case t.ALPHANUMERIC:return new n(e);case t.KANJI:return new i(e);case t.BYTE:return new o(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(h(t,null)):t.data&&e.push(h(t.data,t.mode)),e},[])},e.fromString=function(a,n){const o=function(e){const a=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case t.NUMERIC:a.push([o,{data:o.data,mode:t.ALPHANUMERIC,length:o.length},{data:o.data,mode:t.BYTE,length:o.length}]);break;case t.ALPHANUMERIC:a.push([o,{data:o.data,mode:t.BYTE,length:o.length}]);break;case t.KANJI:a.push([o,{data:o.data,mode:t.BYTE,length:c(o.data)}]);break;case t.BYTE:a.push([{data:o.data,mode:t.BYTE,length:c(o.data)}])}}return a}(d(a,s.isKanjiModeEnabled())),i=function(e,a){const n={},o={start:{}};let i=["start"];for(let r=0;r<e.length;r++){const s=e[r],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+r+e;l.push(u),n[u]={node:c,lastCount:0},o[u]={};for(let e=0;e<i.length;e++){const r=i[e];n[r]&&n[r].node.mode===c.mode?(o[r][u]=p(n[r].lastCount+c.length,c.mode)-p(n[r].lastCount,c.mode),n[r].lastCount+=c.length):(n[r]&&(n[r].lastCount=c.length),o[r][u]=p(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,a))}}i=l}for(let t=0;t<i.length;t++)o[i[t]].end=0;return{map:o,table:n}}(o,n),r=l.find_path(i.map,"start","end"),u=[];for(let e=1;e<r.length-1;e++)u.push(i.table[r[e]].node);return e.fromArray(function(e){return e.reduce(function(e,t){const a=e.length-1>=0?e[e.length-1]:null;return a&&a.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(u))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}}($l)),$l}function ic(){if(ac)return il;ac=1;const e=sl(),t=fl(),a=function(){if(ul)return cl;function e(){this.buffer=[],this.length=0}return ul=1,e.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let a=0;a<t;a++)this.putBit(1==(e>>>t-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},cl=e}(),n=function(){if(pl)return dl;function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return pl=1,e.prototype.set=function(e,t,a,n){const o=e*this.size+t;this.data[o]=a,n&&(this.reservedBit[o]=!0)},e.prototype.get=function(e,t){return this.data[e*this.size+t]},e.prototype.xor=function(e,t,a){this.data[e*this.size+t]^=a},e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},dl=e}(),o=(ml||(ml=1,function(e){const t=sl().getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];const a=Math.floor(e/7)+2,n=t(e),o=145===n?26:2*Math.ceil((n-13)/(2*a-2)),i=[n-7];for(let t=1;t<a-1;t++)i[t]=i[t-1]-o;return i.push(6),i.reverse()},e.getPositions=function(t){const a=[],n=e.getRowColCoords(t),o=n.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||a.push([n[e],n[t]]);return a}}(gl)),gl),i=function(){if(yl)return vl;yl=1;const e=sl().getSymbolSize;return vl.getPositions=function(t){const a=e(t);return[[0,0],[a-7,0],[0,a-7]]},vl}(),r=(wl||(wl=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,a=3,n=40,o=10;function i(t,a,n){switch(t){case e.Patterns.PATTERN000:return(a+n)%2==0;case e.Patterns.PATTERN001:return a%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(a+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return a*n%2+a*n%3==0;case e.Patterns.PATTERN110:return(a*n%2+a*n%3)%2==0;case e.Patterns.PATTERN111:return(a*n%3+(a+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){const a=e.size;let n=0,o=0,i=0,r=null,s=null;for(let l=0;l<a;l++){o=i=0,r=s=null;for(let c=0;c<a;c++){let a=e.get(l,c);a===r?o++:(o>=5&&(n+=t+(o-5)),r=a,o=1),a=e.get(c,l),a===s?i++:(i>=5&&(n+=t+(i-5)),s=a,i=1)}o>=5&&(n+=t+(o-5)),i>=5&&(n+=t+(i-5))}return n},e.getPenaltyN2=function(e){const t=e.size;let n=0;for(let a=0;a<t-1;a++)for(let o=0;o<t-1;o++){const t=e.get(a,o)+e.get(a,o+1)+e.get(a+1,o)+e.get(a+1,o+1);4!==t&&0!==t||n++}return n*a},e.getPenaltyN3=function(e){const t=e.size;let a=0,o=0,i=0;for(let n=0;n<t;n++){o=i=0;for(let r=0;r<t;r++)o=o<<1&2047|e.get(n,r),r>=10&&(1488===o||93===o)&&a++,i=i<<1&2047|e.get(r,n),r>=10&&(1488===i||93===i)&&a++}return a*n},e.getPenaltyN4=function(e){let t=0;const a=e.data.length;for(let n=0;n<a;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/a/5)-10)*o},e.applyMask=function(e,t){const a=t.size;for(let n=0;n<a;n++)for(let o=0;o<a;o++)t.isReserved(o,n)||t.xor(o,n,i(e,o,n))},e.getBestMask=function(t,a){const n=Object.keys(e.Patterns).length;let o=0,i=1/0;for(let r=0;r<n;r++){a(r),e.applyMask(r,t);const n=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(r,t),n<i&&(i=n,o=r)}return o}}(Cl)),Cl),s=El(),l=function(){if(Il)return Sl;Il=1;const e=Pl();function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(t){this.degree=t,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(t.length+this.degree);a.set(t);const n=e.mod(a,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},Sl=t}(),c=ql(),u=function(){if(Hl)return zl;Hl=1;const e=sl(),t=e.getBCHDigit(1335);return zl.getEncodedBits=function(a,n){const o=a.bit<<3|n;let i=o<<10;for(;e.getBCHDigit(i)-t>=0;)i^=1335<<e.getBCHDigit(i)-t;return 21522^(o<<10|i)},zl}(),d=jl(),p=oc();function h(e,t,a){const n=e.size,o=u.getEncodedBits(t,a);let i,r;for(i=0;i<15;i++)r=1==(o>>i&1),i<6?e.set(i,8,r,!0):i<8?e.set(i+1,8,r,!0):e.set(n-15+i,8,r,!0),i<8?e.set(8,n-i-1,r,!0):i<9?e.set(8,15-i-1+1,r,!0):e.set(8,15-i-1,r,!0);e.set(n-8,8,1,!0)}function f(t,n,o){const i=new a;o.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),d.getCharCountIndicator(e.mode,t)),e.write(i)});const r=8*(e.getSymbolTotalCodewords(t)-s.getTotalCodewordsCount(t,n));for(i.getLengthInBits()+4<=r&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(r-i.getLengthInBits())/8;for(let e=0;e<c;e++)i.put(e%2?17:236,8);return function(t,a,n){const o=e.getSymbolTotalCodewords(a),i=s.getTotalCodewordsCount(a,n),r=o-i,c=s.getBlocksCount(a,n),u=o%c,d=c-u,p=Math.floor(o/c),h=Math.floor(r/c),f=h+1,m=p-h,g=new l(m);let y=0;const v=new Array(c),w=new Array(c);let C=0;const b=new Uint8Array(t.buffer);for(let e=0;e<c;e++){const t=e<d?h:f;v[e]=b.slice(y,y+t),w[e]=g.encode(v[e]),y+=t,C=Math.max(C,t)}const A=new Uint8Array(o);let E,k,x=0;for(E=0;E<C;E++)for(k=0;k<c;k++)E<v[k].length&&(A[x++]=v[k][E]);for(E=0;E<m;E++)for(k=0;k<c;k++)A[x++]=w[k][E];return A}(i,t,n)}function m(t,a,s,l){let u;if(Array.isArray(t))u=p.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=a;if(!e){const a=p.rawSplit(t);e=c.getBestVersionForData(a,s)}u=p.fromString(t,e||40)}}const d=c.getBestVersionForData(u,s);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(a){if(a<d)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+d+".\n")}else a=d;const m=f(a,s,u),g=e.getSymbolSize(a),y=new n(g);return function(e,t){const a=e.size,n=i.getPositions(t);for(let o=0;o<n.length;o++){const t=n[o][0],i=n[o][1];for(let n=-1;n<=7;n++)if(!(t+n<=-1||a<=t+n))for(let o=-1;o<=7;o++)i+o<=-1||a<=i+o||(n>=0&&n<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===n||6===n)||n>=2&&n<=4&&o>=2&&o<=4?e.set(t+n,i+o,!0,!0):e.set(t+n,i+o,!1,!0))}}(y,a),function(e){const t=e.size;for(let a=8;a<t-8;a++){const t=a%2==0;e.set(a,6,t,!0),e.set(6,a,t,!0)}}(y),function(e,t){const a=o.getPositions(t);for(let n=0;n<a.length;n++){const t=a[n][0],o=a[n][1];for(let a=-2;a<=2;a++)for(let n=-2;n<=2;n++)-2===a||2===a||-2===n||2===n||0===a&&0===n?e.set(t+a,o+n,!0,!0):e.set(t+a,o+n,!1,!0)}}(y,a),h(y,s,0),a>=7&&function(e,t){const a=e.size,n=c.getEncodedBits(t);let o,i,r;for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+a-8-3,r=1==(n>>s&1),e.set(o,i,r,!0),e.set(i,o,r,!0)}(y,a),function(e,t){const a=e.size;let n=-1,o=a-1,i=7,r=0;for(let s=a-1;s>0;s-=2)for(6===s&&s--;;){for(let a=0;a<2;a++)if(!e.isReserved(o,s-a)){let n=!1;r<t.length&&(n=1==(t[r]>>>i&1)),e.set(o,s-a,n),i--,-1===i&&(r++,i=7)}if(o+=n,o<0||a<=o){o-=n,n=-n;break}}}(y,m),isNaN(l)&&(l=r.getBestMask(y,h.bind(null,y,s))),r.applyMask(l,y),h(y,s,l),{modules:y,version:a,errorCorrectionLevel:s,maskPattern:l,segments:u}}return il.create=function(a,n){if(void 0===a||""===a)throw new Error("No input text");let o,i,s=t.M;return void 0!==n&&(s=t.from(n.errorCorrectionLevel,t.M),o=c.from(n.version),i=r.from(n.maskPattern),n.toSJISFunc&&e.setToSJISFunction(n.toSJISFunc)),m(a,o,s,i)},il}var rc,sc,lc={},cc={};function uc(){return rc||(rc=1,function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const a=parseInt(t.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});const a=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:a,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,a){const n=e.getScale(t,a);return Math.floor((t+2*a.margin)*n)},e.qrToImageData=function(t,a,n){const o=a.modules.size,i=a.modules.data,r=e.getScale(o,n),s=Math.floor((o+2*n.margin)*r),l=n.margin*r,c=[n.color.light,n.color.dark];for(let e=0;e<s;e++)for(let a=0;a<s;a++){let u=4*(e*s+a),d=n.color.light;if(e>=l&&a>=l&&e<s-l&&a<s-l){d=c[i[Math.floor((e-l)/r)*o+Math.floor((a-l)/r)]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}}(cc)),cc}function dc(){return sc||(sc=1,function(e){const t=uc();e.render=function(e,a,n){let o=n,i=a;void 0!==o||a&&a.getContext||(o=a,a=void 0),a||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=t.getOptions(o);const r=t.getImageWidth(e.modules.size,o),s=i.getContext("2d"),l=s.createImageData(r,r);return t.qrToImageData(l.data,e,o),function(e,t,a){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=a,t.width=a,t.style.height=a+"px",t.style.width=a+"px"}(s,i,r),s.putImageData(l,0,0),i},e.renderToDataURL=function(t,a,n){let o=n;void 0!==o||a&&a.getContext||(o=a,a=void 0),o||(o={});const i=e.render(t,a,o),r=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(r,s.quality)}}(lc)),lc}var pc,hc,fc={};function mc(){if(pc)return fc;pc=1;const e=uc();function t(e,t){const a=e.a/255,n=t+'="'+e.hex+'"';return a<1?n+" "+t+'-opacity="'+a.toFixed(2).slice(1)+'"':n}function a(e,t,a){let n=e+t;return void 0!==a&&(n+=" "+a),n}return fc.render=function(n,o,i){const r=e.getOptions(o),s=n.modules.size,l=n.modules.data,c=s+2*r.margin,u=r.color.light.a?"<path "+t(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+t(r.color.dark,"stroke")+' d="'+function(e,t,n){let o="",i=0,r=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||r||(r=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(o+=r?a("M",c+n,.5+u+n):a("m",i,0),i=0,r=!1),c+1<t&&e[l+1]||(o+=a("h",s),s=0)):i++}return o}(l,s,r.margin)+'"/>',p='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+p+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof i&&i(null,h),h},fc}const gc=/* @__PURE__ */Io(function(){if(hc)return nl;hc=1;const e=al?tl:(al=1,tl=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}),t=ic(),a=dc(),n=mc();function o(a,n,o,i,r){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(o=n,n=i=void 0):2!==l||n.getContext||(i=o,o=n,n=void 0),new Promise(function(e,r){try{const r=t.create(o,i);e(a(r,n,i))}catch(s){r(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(r=o,o=n,n=i=void 0):3===l&&(n.getContext&&void 0===r?(r=i,i=void 0):(r=i,i=o,o=n,n=void 0));try{const e=t.create(o,i);r(null,a(e,n,i))}catch(u){r(u)}}return nl.create=t.create,nl.toCanvas=o.bind(null,a.render),nl.toDataURL=o.bind(null,a.renderToDataURL),nl.toString=o.bind(null,function(e,t,a){return n.render(e,a)}),nl}()),yc={class:"login-wx"},vc={class:"login-wx-code"},wc={class:"expired-text mt10 mb10"},Cc={class:"scan-tip"},bc=/* @__PURE__ */un(/* @__PURE__ */o({__name:"WechatLogin",props:{appId:{default:"ERA"},path:{},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(t,{emit:n}){const o=t,i=n,r=e(null),d=e(!0),h=e(!1),g=e("");let y=null;const C=async()=>{d.value=!0,k();try{const{data:t}=await me();if(console.log("🍉 ~ WechatLogin.vue:126 ~ fetchWxCode ~ data:",t),0===t?.code){g.value=t.data?.uniqueCode,h.value=!1;try{ge({uniqueCode:g.value})}catch(e){console.log("🍉 ~ WechatLogin.vue:114 ~ fetchWxCode ~ error:",e)}await(async e=>{if(await O(),r.value)try{await gc.toCanvas(r.value,e,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(t){console.error("QR Code render error:",t)}})(t.data?.qrCodeUrl),b()}else h.value=!0}catch(e){console.error("Fetch WeChat QR fail:",e)}finally{d.value=!1}},b=()=>{const e=window.BASE_INFO?.WX_POLLING_TIME||3e3;y=setInterval(async()=>{try{console.log("🍉 ~ WechatLogin.vue:173 ~ startPolling ~ props:",o);const{data:e}=await ye({uniqueCode:g.value,appId:o.appId,redirectPath:o.path||"",kick:!1});console.log("🍉 ~ WechatLogin.vue:159 ~ startPolling ~ data:",e),0===e.code&&A(e)}catch(e){console.error("Polling error:",e),k()}},e)},A=e=>{switch(e.subcode){case"EXPIRED":case"FOLLOWED_CANCEL":h.value=!0,k();break;case"FOLLOWED_NO_USER":i("need-register",g.value);break;case"FOLLOWED_LOGIN_SUCCESS":k(!1),I(e.data)}},k=(e=!0)=>{e&&(g.value=""),ge({uniqueCode:""}),y&&(clearInterval(y),y=null)},S=()=>{C()},I=async e=>{if(e.result&&Y(e.result),!0===e.redirect){const t="CPA"===o.appId?"tgc-CPA":"tgc";ps.set(t,e.tgc,{expires:30})}if(!0===e.hasLogon)try{await it.confirm(o.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",o.isEn?"Tips":"提示",{confirmButtonText:o.isEn?"Confirm":"确定",cancelButtonText:o.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),V()}catch{C()}else P(e.redirectPath)},V=async()=>{d.value=!0;try{const{data:e}=await ye({uniqueCode:g.value,appId:o.appId,redirectPath:o.path||"",kick:!0});if(console.log("🍉 ~ WechatLogin.vue:279 ~ reLoginWithKick ~ data:",e),0===e.code){if(Y(e.data.result),e.data.result?.improveComp)return void i("need-complete",e.data.result.improveComp);P(e.data.redirectPath)}}catch(e){Je.error(o.isEn?"Login failed":"登录失败")}finally{d.value=!1}},P=e=>{localStorage.setItem("jc-qrCode-login","wx"),k(),e&&Ps(e),i("success")};return a(()=>{C()}),D(()=>{k()}),(e,a)=>(l(),s("div",yc,[m((l(),s("div",vc,[u("div",{class:c(["qr-canvas-wrapper flex-center",{"qrcode-error-mask":h.value}])},[u("canvas",{ref_key:"qrCanvasRef",ref:r},null,512)],2),h.value?(l(),s("div",{key:0,class:"refresh-overlay flex-center",onClick:S},[a[0]||(a[0]=u("img",{src:"data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0xXZtvhGY+x52WHLcCHeNxRfOfR5Fu/tpdZaJ1mWZeOiA0zFL+w9j/I9NSffY5NUvmeVwTfp8PxNbrn9HRbs2zo8fU3Muq3K6EtK5JFtkzT6ilPmUrji+CvueSh64OULVMJJ0TamEq7JXBx7vAZTCVWXbcNlqBdm4nxFthPmGrPrJj2SvRBXUBdPNcTUvdQTXIu3eoP+gVt1hWlKyLaBQaNs275awvJIwlYeDaBH/f40BXQnkuCVq7HBmr5VI/naaP+iWj1bl98fVlA4IE4BAAAQBwCdASooACgAPi0ShkKhoQ42SgAMAWJZWxKQyHAkNc+PADbI89n6J94A3jAJQK0xA6Tk60mYtNspcySSE/tFIADM///yqf//Kgv//ywQt7g1bu7h+xw3tKfdFW3YSP2h0iF6VIn4CTXLv//vM//94Jv//ee+S0E0m6xnEgxdBDf7ewX/lL4BgZWe2EfgOrK0pMN4Qy5uWqWBS4KWWUfrCz0nMK/H/I4/+XhdD+65pGbyiKvih/6tn//ciDb/uimjajMDV4Q/Xe6/5j9xYKcn08xURQpu0wODf/+3SuKUFZLR0yHKFUmWQGuB/RhP/o3UFQW2JYdAdLNwvjre+S6H5X//i0Kc3jhiy9mLmUsuJ+4/5++fwdGZUbaTBUfk9QB9rjsVLVNwQW2lzccI98O08eePpfHRQKN1FzjT/cMehMc50hgx//o3l7EokAAA",alt:"refresh",class:"refresh-icon"},null,-1)),u("div",wc,v(t.isEn?"The QR code has expired":"二维码已过期"),1),p(E(at),{type:"primary",class:"jc:text-white",onClick:w(S,["stop"])},{default:B(()=>[x(v(t.isEn?"Rescan QR code":"重新扫码"),1)]),_:1})])):f("",!0),u("div",Cc,[a[1]||(a[1]=u("img",{src:"data:image/webp;base64,UklGRhACAABXRUJQVlA4WAoAAAAQAAAAGAAAFwAAQUxQSOcAAAABgINt27HlzZxs1+i945+yudmaXJMm27btmmzbtm094f2+L88RMQHoH0ivGDZ+dTufRGOhwhmw/QIfT5NlyDEEHdz1zdzA5sDmTZ4EKeWJp2may+JdpEray5o7HRnnPYCzy2e43uvNSQvW5CfhcwDY1eKWK4CX3WgRAt0NzG7T6At8vGkUw3FXXX8YGLkf9c+8rLBeOI2gxyD51juA6+5ZuFjaej6YvL3vEsEhxb5nuOicA8KHHlECg1QHMzfnukeCszhGAgY6hBCT+RTuvkMWUWQz7XsGgPs2OUSdS9Uv2N0tWOIT/l4AVlA4IAIBAACwBwCdASoZABgAPjESh0KiIQ39VgAQAYJbACdM5JkB+meFg2gDaAN0l4AD9QPSA/wHuJ/sl6KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=",alt:"wechat"},null,-1)),u("span",null,v(t.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"),1)])])),[[E(We),d.value]])]))}}),[["__scopeId","data-v-4966d595"]]),Ac={name:"LoginTypeSwitcher",components:{ElRadioGroup:ot,ElRadioButton:nt},props:{modelValue:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!0},showMobile:{type:Boolean,default:!0},isEn:{type:Boolean,default:!1}},emits:["update:modelValue","change"],methods:{handleChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},Ec={class:"switcher-content"},kc={class:"switcher-content"},xc={class:"switcher-content"};const Sc=/* @__PURE__ */un(Ac,[["render",function(e,t,a,n,o,i){const r=V("el-radio-button"),p=V("el-radio-group");return l(),d(p,{class:"login-type-switcher","model-value":a.modelValue,onChange:i.handleChange},{default:B(()=>[a.showAccount?(l(),d(r,{key:0,value:"account"},{default:B(()=>[u("div",Ec,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"account"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[u("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),u("span",null,v(a.isEn?"Password":"账号密码"),1)])]),_:1})):f("",!0),a.showEmail?(l(),d(r,{key:1,value:"email"},{default:B(()=>[u("div",kc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"email"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[1]||(t[1]=[u("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),u("span",null,v(a.isEn?"Email":"邮箱"),1)])]),_:1})):f("",!0),a.showMobile?(l(),d(r,{key:2,value:"mobile"},{default:B(()=>[u("div",xc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"mobile"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[2]||(t[2]=[u("path",{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"},null,-1)])],2)),u("span",null,v(a.isEn?"Cell Phone":"手机号"),1)])]),_:1})):f("",!0)]),_:1},8,["model-value","onChange"])}],["__scopeId","data-v-aea2f541"]]),Ic={class:"wechat-choose-type"},Bc={class:"choose-title"},Vc={class:"choose-nav"},Pc={class:"btn-container"},Tc={class:"btn-content"},Rc={class:"btn-content"},Nc=/* @__PURE__ */un(/* @__PURE__ */o({__name:"WechatChooseType",props:{isEn:{type:Boolean}},emits:["toBind","toRegister"],setup(e,{emit:t}){const a=t,n=()=>{a("toBind")},o=()=>{a("toRegister")};return(t,a)=>(l(),s("div",Ic,[u("div",null,[u("div",Bc,v(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号"),1),u("div",Vc,v(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册"),1),u("div",Pc,[p(E(at),{class:"choose-btn jc:mb-6 default-btn jc:outline-none!",onClick:o},{default:B(()=>[u("div",Tc,[a[0]||(a[0]=u("img",{class:"icon-account",src:"data:image/webp;base64,UklGRhgCAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSKIAAAABgFZbb9xIEATBUAyhEAqhDBIGNgOXQaEIgiAYwtfZtM3+LyImgP4d+1BAVqvCAx8OLsECo3CFAfMo0ODsecsz88SjeXD/vNQjedOzPgDCuqfl0bRNKsBiEa5APD+aTCWI2l0AnZ3ehTnKW+9dgIp/Kf146Aa2PM5egI8Ns66WwwOBq70JvmyE6jVsIPwIOpB4xuyMXU5jbhlnDF0lSm/03whWUDggUAEAAPALAJ0BKjAAMAA+LRKGQqGhDjduAAwBYlsAMgdwP4BoK/wA4aTvN+x2I4/APyq/oHuA/gHOJ7gD9XfMA6QDrYP0z9gD9APRQ/ZD4FP219gD9UARvMpbMuVN2542MibJh8RTb2jFdmX4AP7/8PzX//KRnpdaTTuezU2wfPVue6zvilNiLydYqgogCDf+z+cTn0sw++BUMUAXW/ykOXcyNB2xLlv/9baGU9jTlskvg+1Mv/puM3RR2VkkR8nzfym/nfxZ64t/3bWsauPme9EKHGYBBZv8u8jT/DUfv3hKs//3THxis4v6eWcTTUpo9W6e2PurHwS2B16ei/If+Ww23FLqmd3jWPwTwBTDBEJ3HBZfQftnPWpA9rY4f//0skE1+0YwOJB/my/FIk/GCZloGHd/7iN//8vNjd/zOhSoSRNP6Xtp1K0Qc6nr99ilYAAAAA==",alt:"register"},null,-1)),x(" "+v(e.isEn?"Create New Account":"注册新账号"),1)])]),_:1}),p(E(at),{type:"primary",class:"choose-btn submit-btn jc:outline-none!",onClick:n},{default:B(()=>[u("div",Rc,[a[1]||(a[1]=u("img",{class:"icon-account",src:"data:image/webp;base64,UklGRiQBAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSL8AAAABcFXbVtygAAdPSGKgDqIgMVAMgAIcxEdRAApQcJ0E3tD5LyLYuG0jSXKOaqvMPsL9Ha6xASWTFT5hMHmbKphYTJIwNRlAYFz0ZMB4PDiqHrB+XhpHMT4TIOtZOJhbp0OUOCcy1XDo75yrSk6UONkFJb71XIAWhxs/aFYm7qhkV5PvDmWYa1lGV2s4Wwd6OcM6RlE+dOaZZrpEXD5BoOr3d+sQWTfFkxAbhATAOF1DN6cKD1TD3cncipS2uz9DBwBWUDggPgAAAFADAJ0BKjAAMAA+JQ6FQqGHjAYAkS0gABSWHJn8435xRpEAAP7//k4XP//7dtNf5ihlI///6OQD//9v7AAA",alt:"login"},null,-1)),x(" "+v(e.isEn?"Bind Existing Account":"绑定已有账号"),1)])]),_:1})])])]))}}),[["__scopeId","data-v-d6500e67"]]),Uc="data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSG8AAAABcFXbVq2cCEQ4EYxABBtIhNvg0kAaEMEIJwoRiLB86/b5GxETYP9n6T1rGiyaBULjMJPEAvaaDOwkdgBWSRrAKH4rxsOTq3NzbfD0/Cr+eACzZk/XHl+Bluz5DlRTBnRTOuCSAmHSBlU0xlbzdwIAVlA4IEIAAABwAwCdASogACAAPjESjEYiENDKACADBLSAACWH58lev5ur/aAA/iw///2p6j//i/2//+H8FPIH///0cbN//9v7AAA=";function Dc(t={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",t);const{appId:a="ERA",isEn:n=!1}=t,o=e(!1),i=e(!1),r=e(null),s=e(!1),l=e=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",e);const t=Z()||{},a=e.redirectPath||t.path||"/";e.result&&Y(e.result),console.log("🍉 Redirecting to:",a),Ps(a)},c=async e=>{const{loginType:i,loginForm:c={},captchaData:d={},isKick:p=!1,mobileUid:h,emailUid:f,areaCodeData:m=[],remember:g}=e;o.value=!0,p||(r.value=d);const y=Z()||{},v={appId:a,fromSys:a,kick:p,inviterInfo:y.empNo||void 0,redirectPath:y.path||"/",...y,...d};let w=we;if("account"===i)Object.assign(v,{type:"PASSWORD",username:c.username,password:yr.MD5(c.password).toString(),uniqueCode:""});else if("wechat"===i)Object.assign(v,{type:"WECHAT",uniqueCode:y.uniqueCode}),y.uniqueCode||v.uniqueCode||console.warn("WeChat login missing uniqueCode"),w=we;else{const e="mobile"===c.type,t=e?h:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?c.phone:c.email,verificationCodeValue:c.code,verificationCodeUuid:t}),e){const e=m.find(e=>e.telCode===c.areaCode);v.areaCode=c.areaCode,v.areaCodeCountryId=e?.id}if(!v.verificationCodeUuid)return o.value=!1,void Je.error(n?"Please get the verification code first":"请先获取验证码");w=Ce}try{const{data:a}=await w(v);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",a),0===a.code){const i=a.data||{};if(!0===i.hasLogon&&!i.tgc)return void u(e);if(i.tgc){i.result&&Y(i.result),g&&ps.set("tgc",i.tgc,{expires:30,domain:ve()});const e=i.result?.improveComp;if(e)return s.value=!0,o.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));Je.success(n?"Login successful":"登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else Je.error(a.msg||(n?"Login failed":"登录失败"))}catch(C){console.error("Login Error:",C),Je.error(n?"Network Error":"网络请求异常")}finally{o.value=!1}},u=e=>{it.confirm(n?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",n?"Tips":"提示",{confirmButtonText:n?"Confirm":"确定",cancelButtonText:n?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{c({...e,isKick:!0})}).catch(()=>{o.value=!1})},d=async e=>{const{loginType:i,loginForm:r,captchaData:c,uniqueCode:u,isKick:d=!0,mobileUid:h,emailUid:f,areaCodeData:m=[]}=e;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",e),o.value=!0;const g=Z()||{};let y,v={appId:a,uniqueCode:u,kick:d,code:c.code,uuid:c.uuid,redirectPath:g.path||"/",fromSys:a};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",v),"account"===i)y=be,Object.assign(v,{username:r.username,password:yr.MD5(r.password).toString(),rememberMe:r.remember||!1});else{y=Ae;const e="mobile"===r.type,t=e?h:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?r.phone:r.email,verificationCodeValue:r.code,verificationCodeUuid:t,rememberMe:r.remember||!1}),e){const e=m.find(e=>e.telCode===r.areaCode);Object.assign(v,{areaCode:r.areaCode,areaCodeCountryId:e?.id})}if(!v.verificationCodeUuid)return o.value=!1,void Je.error(n?"Please get the verification code first":"请先获取验证码")}try{const{data:a}=await y(v);if(console.log("🍉 Bind Result:",a),0===a.code){const i=a.data||{};if(!0===i.hasLogon&&!i.tgc)return void p(e);if(i.tgc){i.result&&Y(i.result),ps.set("tgc",i.tgc,{expires:30,domain:ve()});const e=i.result?.improveComp;if(e)return s.value=!0,o.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));Je.success(n?"Linked and logged in successfully":"绑定并登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else Je.error(a.msg||(n?"Binding failed":"绑定失败"))}catch(w){console.error("Bind Error:",w),Je.error(n?"Network Error":"网络请求异常")}finally{o.value=!1}},p=e=>{it.confirm(n?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",n?"Tips":"提示",{confirmButtonText:n?"Confirm":"确定",cancelButtonText:n?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{d({...e,isKick:!0})}).catch(()=>{o.value=!1})};return{loading:o,captchaVisible:i,handleAuthSubmit:c,executeRedirect:l,loginNeedComplete:s,handleBindSubmit:d}}const Fc={class:"bind-wechat-title"},_c={class:"title"},Lc={class:"sub-title"},Mc={class:"register-bottom"},Oc=/* @__PURE__ */un(/* @__PURE__ */o({__name:"WechatBindLogin",props:{isEn:{type:Boolean}},emits:["needComplete"],setup(a,{emit:n}){const o=a,i=n,{loading:r,captchaVisible:c,handleBindSubmit:h}=Dc({appId:"ERA",isEn:o.isEn,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),i("needComplete",e)}}),m=e({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),w=e([]),C=e(),b=e(!1),A=e(!1),k=e({}),S=e(""),I=e(""),V=t(()=>m.value.type),P=t(()=>{const e={username:[{required:!0,trigger:"blur",message:o.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:o.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>{As(0,t,a,o.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>{xs(0,t,a,o.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>{Is(0,t,a,o.isEn)},trigger:"blur"}]};return"account"===V.value?{username:e.username,password:e.password}:"email"===V.value||"mobile"===V.value?{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}:{}});async function T(e){if("mobile"==e&&0===w.value.length){const e=await pe();w.value=e.data.data.records}}function R(e){C.value.validateField(e,e=>{b.value=e})}function N(){C.value.validate(e=>{if(e)if("account"===V.value)c.value=!0;else{if(console.log("🍉 ~ WechatBindLogin.vue:316 ~ handleSubmit ~ verifyData:",k),!k.value||!k.value.uuid)return Je.error(o.isEn?"Please get code first":"请先获取验证码");U(k.value)}})}function U(e){c.value=!1;const t=(Z()||{}).uniqueCode||"";t?h({loginType:"account"===V.value?"account":"code",loginForm:m.value,captchaData:{...e},uniqueCode:t,mobileUid:S.value,emailUid:I.value,areaCodeData:w.value}):console.error("Missing uniqueCode for binding")}function D({captchaData:e,startTimer:t}){console.log("🍉 ~ WechatBindLogin.vue:353 ~ handleGetCode ~ captchaData:",e);const a="mobile"===m.value.type;k.value=e;const n={target:m.value.email||m.value.phone,uuid:e.uuid,code:e.code};a&&(n.areaCode=m.value.areaCode);const i=a?fe:ue;t(),i(n).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(a?S.value=t:I.value=t,Je.success(o.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")}return(e,t)=>(l(),s("div",null,[u("div",Fc,[u("div",_c,[t[11]||(t[11]=u("img",{class:"icon-auth-wechat",src:"data:image/webp;base64,UklGRkYDAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSK0BAAABkJVtT55JrwQkRAISIqEOBgl1sDhoHVAHXQdIQEIkICH780ETOodzEBETgJ+MA3FKG8fvIaQiOm5lCy/j2vVx4RdxVdtKLwmH2pfwBmrqKbQeifr2bTUSdd/WIlH/HpcqOuxnyjJT9/0aqISFkg47AaCJGwDOgeaFZPQb/7dR/I9HSsuwjsuHapaXKRMaAZCOawBQJvoyMqN3PvqEypGrzsZFgvrLmShgXXYrjMDHLSLS6rGR3+ZUCVy7TtfklVz6Dq76XJIPe0gMh9oW8iAHIWpqLeSAbhdJ1L5Hh8ssB1HPTnZsJTjUV4IZxChFHUrartG5nf2TZju2EdQRAaifCgAe9GCG22QnHQoA7J8SAAw02wWxiPtIv4AgnyqAX6NmBxID1Am9S9ehlKqTwQ4kjxpkxj46gORJha6YPBCuR32FzQXxQYOswD7ng457heAj/8ndPmnYF6hwjaoqCUDglEspRAskn1Ml4WF1E/huCY/ZjZ1MT6eM9UNzufBGEocaXgFqZhdem412vJiqCb8JiJdM9f/OdwHg/a4i0soeQZeqvO4pi8bvBWD8PAwAVlA4IHIBAACQDQCdASpQAFAAPjESh0KiIQzPMmYQAYJYgDTVCv5F+Mf4gb4DJX+Sz7l/ANsR/t26P/QD/AegB1gH9L/gHoV9YB+tfoUf7T/efAf+sP68fAV+m//U1vlDvsJaoYWahGVgTNJjQto23T3wmPTWzB6ZzMk6AwAA/v7uqgr/9ZP//7blAnmnE6lioCaVp1+WnldB5HpBbYjxc1NG5XU54UvD9kf2w/pZ7/42ltzXYtGbK1//nqr8tjkze5eVKps78/9WExTMn4pKTe3c8mpsuj8YwNG+XmxN6qsxIT2EwKQHnE5z8J/+pe+1IL/r1o8YBWTv7H+OAb1dnyF/HIBfP7w3V0JsIK9k9luJE6Inls4/P8XLinjMj63/lB+fL9Mg/9VBqi1r084wLn/+c3RisrFoveLUv2I5xww1R/MwdnWNwJwQ8oKLyHlGl0b3UxrGhAtGoS5KzFv4B538wnEyq7d8a9J8x7Ua1ZythfCc5mNgAAAA",alt:""},null,-1)),x(" "+v(a.isEn?"Log in and link with WeChat":"登录并绑定微信"),1)]),u("div",Lc,v(a.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷"),1)]),p(E(Ye),{ref_key:"bindLoginFormRef",ref:C,model:m.value,rules:P.value,"validate-on-rule-change":!1,class:"wechat-bind-login-form-content"},{default:B(()=>[p(E(et),{prop:"type",class:"form-type"},{default:B(()=>[p(Sc,{modelValue:m.value.type,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value.type=e),"is-en":a.isEn,"show-account":"",class:"jc:max-w-full!",onChange:T},null,8,["modelValue","is-en"])]),_:1}),"account"===V.value?(l(),s(g,{key:0},[p(E(et),{prop:"username",class:"form-user"},{default:B(()=>[p(yo,{modelValue:m.value.username,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.username=e),placeholder:a.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(et),{prop:"password",class:"password-item"},{default:B(()=>[p(yo,{modelValue:m.value.password,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:a.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===V.value?(l(),d(E(et),{key:1,prop:"email"},{default:B(()=>[p(yo,{modelValue:m.value.email,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.email=e),placeholder:a.isEn?"Email Address":"邮箱地址",onBlur:t[4]||(t[4]=e=>R("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),d(E(et),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:B(()=>[(l(),d(E(et),{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(yo,{modelValue:m.value.phone,"onUpdate:modelValue":t[7]||(t[7]=e=>m.value.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[8]||(t[8]=e=>R("phone")),maxlength:"15",disabled:A.value},{prefix:B(()=>[p(E(et),{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(E(Qe),{modelValue:m.value.areaCode,"onUpdate:modelValue":t[5]||(t[5]=e=>m.value.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[6]||(t[6]=e=>R("areaCode")),disabled:A.value,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(w.value,e=>(l(),d(E(Ke),{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E(Ke),{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)),"email"===V.value||"mobile"===V.value?(l(),d(E(et),{key:3,prop:"code"},{default:B(()=>[p(Nr,{modelValue:m.value.code,"onUpdate:modelValue":t[9]||(t[9]=e=>m.value.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:b.value,"is-en":a.isEn,onSend:D},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),u("div",Mc,[p(E(at),{class:"submit-btn",onClick:N,loading:E(r)},{default:B(()=>[x(v(a.isEn?"Login and Link":"登录并绑定")+" ",1),t[12]||(t[12]=u("img",{style:{width:"16px",height:"16px","vertical-align":"middle"},src:Uc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"]),p(Vr,{visible:E(c),"onUpdate:visible":t[10]||(t[10]=e=>j(c)?c.value=e:null),"is-en":a.isEn,onSuccess:U},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-0f920ee0"]]),jc={name:"CompleteInfoForm",components:{ElForm:Ye,ElFormItem:et,ElButton:at,ElSelect:Qe,ElOption:Ke,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:dn,ChineseCompanySearch:co,GoogleInput:yo,JcVerifySlide:Vr,ApplyJoinBtn:Ns},props:{isEn:Boolean},emits:["success"],data(){return{isReady:!1,loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,currentUserMobile:null,currentUserEmail:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>this.hasResistCompany?a():Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]}}},computed:{countryId(){return this.form.city?.raw?.country?.id||this.resistCompanyInfo?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return!!this.isReady&&(this.currentCountryIsChina&&!this.currentUserMobile)},isShowEmailCode(){return!!this.isReady&&!this.currentUserEmail}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){xe().then(e=>{console.log("🍉 ~ CompleteInfoForm.vue:462 ~ res:",e),this.currentUserMobile=e.data.data?.mobile,this.currentUserEmail=e.data.data?.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(e){e&&(this.companyResistCn=e.cnExists,this.companyResistEn=e.enExists,this.resistCompanyInfo=e.companyInfo)},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const e=await pe();this.areaCodeData=e.data.data.records},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))})},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(e){this.$refs.formRef.validateField(e,t=>{"phone"!==e&&"email"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const a={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:e.uuid,code:e.code},n=this.isShowMobileCode?fe:ue;this.isShowMobileCode&&(a.areaCode=this.form.areaCode,a.areaCodeCountryId=this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id),t(),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.isShowMobileCode?this.mobileUid=t:this.emailUid=t,Je.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(e=>{e&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const e={cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,nameCn:this.currentCountryIsChina?this.form.companyName:"",nameEn:this.currentCountryIsChina?"":this.form.companyName,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:window?.location.pathname||"/",...this.form.kqInfo};ke(e).then(e=>{0===e.data.code?(Je.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):Je.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const e={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:window?.location.pathname||"/"};Ee(e).then(e=>{if(0===e.data.code){if(e.data.data.redirect)try{Cookies.set("tgc",e.data.data.tgc,{expires:30});const t=this.getAuthSessionItems(),a=e.data.data.redirectPath||t.path||"/";resetAuthSessionItems(),Ps(a)}catch(t){}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else Je.error(e.data.msg)}).finally(()=>{this.loading=!1})}}},qc={class:"complete-info-container"},Hc={class:"complete-info-container_header"},zc={class:"complete-info-container_title"},Jc={class:"complete-info-container_tip-box"},Wc={class:"sector-section"},Qc={class:"sector-label"},Kc={class:"sector-group"},Gc=["onClick"],Xc={key:0,class:"icon-auth-checked"},Yc={class:"resist-company-info-card"},Zc={class:"card-header"},$c={class:"title-group"},eu={class:"tip-text"},tu={class:"company-content"},au={class:"company-name"},nu={class:"card-header"},ou={class:"title-group"},iu={class:"tip-text"},ru={class:"location-info"};const su=/* @__PURE__ */un(jc,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),w=V("ChineseCompanySearch"),C=V("ApplyJoinBtn"),b=V("JcFloatInput"),A=V("el-option"),E=V("el-select"),k=V("GoogleInput"),S=V("CodeInput"),I=V("el-button"),P=V("el-form");return l(),s("div",qc,[u("div",Hc,[u("div",zc,v(a.isEn?"Complete Your Information":"完善企业信息"),1),u("div",Jc,[t[15]||(t[15]=u("img",{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""},null,-1)),u("span",null,v(a.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"),1)])]),p(P,{ref:"formRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[u("div",Yc,[u("div",Zc,[u("div",$c,[u("span",eu,v(a.isEn?"Company name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),u("div",tu,[u("h4",au,v(a.isEn?o.resistCompanyInfo.compNameEn||o.resistCompanyInfo.compNameCn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),u("div",nu,[u("div",ou,[u("span",iu,v(a.isEn?"Location(City)":"所在地(城市)"),1)])]),u("div",ru,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(b,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[18]||(t[18]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],lang:a.isEn?"en":"zh-CN",placeholder:a.isEn?"Location(City)":"请输入公司所在城市",onSelect:i.handleSelectCity},{prefix:B(()=>[...t[16]||(t[16]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","lang","placeholder","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(w,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),lang:a.isEn?"en":"zh-CN","country-id":i.countryId||null,city:o.form.city,"onUpdate:existStatus":i.handleCompanyExistStatus,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[17]||(t[17]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","lang","country-id","city","onUpdate:existStatus","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),d(C,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0),u("div",Wc,[u("p",Qc,v(a.isEn?"Industry Sector":"行业类型"),1),u("div",Kc,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Xc)):f("",!0)],10,Gc))),128))])])],64)),i.isShowMobileCode?(l(),s(g,{key:2},[p(m,{ref:"areaCodeCountryId",class:"phone-form-item"},{default:B(()=>[p(m,{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15"},{prefix:B(()=>[t[19]||(t[19]=u("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(E,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),d(A,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512),p(m,{prop:"code"},{default:B(()=>[p(S,{modelValue:o.form.code,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:B(()=>[...t[20]||(t[20]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),i.isShowEmailCode?(l(),s(g,{key:3},[p(m,{prop:"email",class:"email-form-item"},{default:B(()=>[p(b,{modelValue:o.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>i.validateField("email"))},{prefix:B(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(m,{prop:"code"},{default:B(()=>[p(S,{modelValue:o.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:B(()=>[...t[22]||(t[22]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),p(I,{class:"submit-btn register-btn register-btn-is-active",loading:o.loading,onClick:i.handleSubmit},{default:B(()=>[x(v(a.isEn?"Submit":"完成并进入"),1)]),_:1},8,["loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-befd9149"]]);const lu={class:"auth-footer-box"},cu=/* @__PURE__ */un(/* @__PURE__ */o({__name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(e,{emit:t}){const a=t,n=()=>{a("handleClick")};return(t,a)=>(l(),s("div",lu,[x(v(e.label)+" ",1),u("span",{class:"action-text",onClick:w(n,["stop"])},[x(v(e.subLabel)+" ",1),a[0]||(a[0]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))}}),[["__scopeId","data-v-de818a5b"]]),uu={class:"forget-password-container"},du={class:"forget-box"},pu={class:"header-title"},hu={key:0,class:"kefu-wrapper"},fu={class:"kefu-text"},mu={key:1,class:"form-wrapper"},gu={key:0},yu={key:1},vu={class:"tab-switcher"},wu={class:"default-info"},Cu={class:"title"},bu={class:"user-value"},Au=/* @__PURE__ */un(/* @__PURE__ */o({__name:"ForgetPassword",props:["isEn"],emits:["to-login"],setup(t,{emit:a}){const n=t,o=a,{activeStep:i,activeTab:r,loading:d,verifyVisible:h,formA:m,formB:g,userData:y,disabledTabs:w,showCustomerService:C,codeCountdown:b,handleTriggerVerify:A,handleVerifySuccess:k,handleSendCodeVerifySuccess:S,handleSubmitReset:V,restFormB:P}=function(t){const a=e(1),n=e(!1),o=e(!1),i=e(),r=I({userName:""}),s=e({}),l=e(!1),c=e("email"),u=I({email:!1,mobile:!1}),d=I({code:"",password:"",confirmPassword:""}),p=e(""),h=e(!1),f=I({mobile:!1,email:!1}),m=async e=>{n.value=!0;try{const n=await Be({account:r.userName,...e});if(n.data.data?.exists){s.value=n.data.data;const e=!!s.value.email,t=!!s.value.mobile;e||t?(l.value=!1,a.value=2,e?(c.value="email",u.email=!1,u.mobile=!t):(c.value="mobile",u.mobile=!1,u.email=!0)):l.value=!0}else Je.error(t.isEn?"Account does not exist":"账号不存在")}catch(o){console.error(o)}finally{n.value=!1}},g=async(e,a)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",e);try{i.value=e;const{data:n}=await Ie({account:s.value.account,target:c.value,...e});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",n),0===n.code&&(Je.success(t.isEn?"Verification code sent":"验证码已发送"),p.value=n.data.verifyCode,a(),"mobile"===c.value?f.mobile=!0:f.email=!0)}catch(n){console.error(n)}};return{activeStep:a,activeTab:c,loading:n,verifyVisible:o,formA:r,formB:d,userData:s,disabledTabs:u,showCustomerService:l,codeCountdown:f,codeReady:h,handleTriggerVerify:()=>{o.value=!0},handleVerifySuccess:e=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",e),o.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",a.value),1===a.value&&m(e)},handleSendCodeVerifySuccess:({captchaData:e,startTimer:t})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",e),2===a.value&&g(e,t)},handleSubmitReset:async()=>{if(i.value?.uuid){n.value=!0;try{const e={id:s.value.id,account:s.value.account,codeId:p.value,codeValue:d.code,password:yr.MD5(d.password).toString(),...i.value},{data:a}=await Se(e);return 0===a.code?(Je.success(t.isEn?"Password reset successfully":"密码重置成功"),!0):(Je.error(a.msg),!1)}catch(e){return console.error(e),!1}finally{n.value=!1}}else Je.info(t.isEn?"Please get the verification code first":"请先获取验证码")},restFormB:()=>{d.code="",d.password="",d.confirmPassword="",p.value="",h.value=!1,f.mobile=!1,f.email=!1}}}({isEn:n.isEn}),T=e(),R=e(),N=(e,t,a)=>{""===t?a(new Error(n.isEn?"Please input the password again":"请再次输入密码")):t!==g.password?a(new Error(n.isEn?"Two inputs don't match!":"两次输入密码不一致!")):a()},U={userName:[{required:!0,message:n.isEn?"Please enter username":"请输入账号",trigger:"blur"}]},D={code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,n.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,n.isEn),trigger:"blur"},{validator:N,trigger:"blur"}],confirmPassword:[{required:!0,validator:(e,t,a)=>ks(0,t,a,n.isEn),trigger:"blur"},{validator:N,trigger:"blur"}]},F=()=>{T.value.validate(e=>{e&&A()})},_=async()=>{R.value&&await R.value.validate(async e=>{if(e){await V()&&o("to-login")}})},L=e=>{e&&w[e]||(r.value=e||r.value,P())};return(e,a)=>(l(),s("div",uu,[u("div",du,[u("div",pu,[u("h1",null,v(t.isEn?"Reset Password":"重置密码"),1)]),E(C)?(l(),s("div",hu,[a[8]||(a[8]=u("img",{src:"data:image/webp;base64,UklGRsRFAABXRUJQVlA4WAoAAAAQAAAAfwIA3wEAQUxQSLkLAAABFMVt20a2sv/U6Wm0/4iYAH3QsQAZj5Skpeqc1H6r0r4PNiInDqR6gg0QUQ20fqiT2bwp+VTtHH8POAbt57zXh2N0nHFNdXEEirStD0qrtrdupA+CIBhCIQhCIASCGdQMGgaGkGEgCIFgCIagH83cZ9fyt5dExARQsrW3iiT5CFMi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MVV1L4vYlZhdEXMUTyOj8D5ZG9NnfzaV44wnKNh7pO9JxjOxPw+JbObAIjDnru9IZxOXFB7CkTfgHl7Wlr9GjdkR/TNJtebcohkdtG+tMNWAGKisFtr0Q4vPZhs7jxWDrqiqK2rUygMtbIK+u+D8xH40nAwWYn++Jo3XY5+D6t1FIG2uKBI+KI3eloW+N8XVYovWpUTwlOItbmGZC8GS00lHfcbdTaWhbTwC8UqFBWNZXsQkv3QFpQpU8JSUpQmu5qrZ9zKfM7ZJhH4PstsmmIUOOpmh/v4IzCB2E38hTPZcVNRe0yb4zH5FoIjyqOW9mnRBIF+c7ebGfwkxVqVFHAAKZaLq0f5A5fg8JvpZtrzxXb8DKhOO4tGeWRn/pdApG2RVIVdUmcwpqzlDEInDeEM1fdc6Kf0tlvlt85k8uSCJECa1NJbfThRmnkPdxNW73UqDZjTTjg1cc5/xAio3nrqea6y7nePIPbAD4xQiYRrRJOJf2TX5rVRRFi/auoEHDR8rSRFQGYsBDWjSFA+0anMpYYevDOVK/B0m27pI5W/B2Fh4kf50Yo5x8pu/Oc5pMH5gfHRGqPl1yECC0d/6Hcw3+LYJnc3NgqjlT/otdhdVZOgbE/MCv2kR9RHZU2zZ0fJCmsqeSKpGFNOlwtYf4MsTPazDC29KQaeaqjeWoJxOBVkwiLT6DY8uYm3EaZ9jUhSxFgNt+KLB9uwDpJ1NpOl5fx2X0+df/t4vPShoAQCGIY4Y9n+Wx39CEAAAACEn//+4e+kMk8wQRCCl4Sj1tWs4IV3VDIWkKhr20cMBeMCQv7DaL/6Q5/q5N1V/T1FqcBhJpYbsy3AWdy3C/vW0pBzMcoHH8IB9KhCDVVQopf5eE4DMA/HlaJmN6xKX7k6AAAAAAAAAAAAAA",class:"kefu-img"},null,-1)),u("p",fu,v(t.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。"),1),u("div",null,v(t.isEn?"Customer Service":"联系客服"),1)])):(l(),s("div",mu,[1===E(i)?(l(),s("div",gu,[p(E(Ye),{ref_key:"formARef",ref:T,model:E(m),rules:U},{default:B(()=>[p(E(et),{prop:"userName",class:"jc:mb-5!"},{default:B(()=>[p(yo,{modelValue:E(m).userName,"onUpdate:modelValue":a[0]||(a[0]=e=>E(m).userName=e),placeholder:t.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(at),{type:"primary",class:"submit-btn",loading:E(d),onClick:F},{default:B(()=>[x(v(t.isEn?"Next":"下一步"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0),2===E(i)?(l(),s("div",yu,[u("div",vu,[u("div",{class:c(["tab-item",{active:"email"===E(r),disabled:E(w).email}]),onClick:a[1]||(a[1]=e=>L("email"))},[a[9]||(a[9]=u("svg",{t:"1767855712095",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[u("path",{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"})],-1)),x(" "+v(t.isEn?"Email Verify":"邮箱验证"),1)],2),u("div",{class:c(["tab-item",{active:"mobile"===E(r),disabled:E(w).mobile}]),onClick:a[2]||(a[2]=e=>L("mobile"))},[a[10]||(a[10]=u("svg",{t:"1767855760413",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[u("path",{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"})],-1)),x(" "+v(t.isEn?"Mobile Verify":"手机验证"),1)],2)]),p(E(Ye),{ref_key:"formBRef",ref:R,model:E(g),rules:D},{default:B(()=>[p(E(et),{class:"info-item"},{default:B(()=>[u("p",wu,[u("span",Cu,v("email"===E(r)?t.isEn?"Email":"邮箱":t.isEn?"Mobile":"手机号"),1),u("span",bu,v("email"===E(r)?E(y).email:E(y).mobile),1)])]),_:1}),p(E(et),{prop:"code"},{default:B(()=>[p(Nr,{"show-icon":"",modelValue:E(g).code,"onUpdate:modelValue":a[3]||(a[3]=e=>E(g).code=e),placeholder:t.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":t.isEn,"custom-countdown":"email"===E(r)?E(b).email:E(b).mobile,onSend:E(S)},null,8,["modelValue","placeholder","is-en","custom-countdown","onSend"])]),_:1}),p(E(et),{prop:"password"},{default:B(()=>[p(ko,{modelValue:E(g).password,"onUpdate:modelValue":a[4]||(a[4]=e=>E(g).password=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Password":"密码",placeholder:t.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...a[11]||(a[11]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(E(et),{prop:"confirmPassword"},{default:B(()=>[p(ko,{modelValue:E(g).confirmPassword,"onUpdate:modelValue":a[5]||(a[5]=e=>E(g).confirmPassword=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Confirm Password":"确认密码",placeholder:t.isEn?"Enter password again":"请再次输入密码"},{prefix:B(()=>[...a[12]||(a[12]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(E(at),{type:"primary",class:"submit-btn",loading:E(d),onClick:_},{default:B(()=>[x(v(t.isEn?"Confirm":"确认修改"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0)]))]),p(cu,{label:t.isEn?"Back to":"返回","sub-label":t.isEn?"log in":"登录",onHandleClick:a[6]||(a[6]=e=>o("to-login")),style:{margin:"12px -16px -16px"}},null,8,["label","sub-label"]),p(Vr,{visible:E(h),"onUpdate:visible":a[7]||(a[7]=e=>j(h)?h.value=e:null),"is-en":t.isEn,onSuccess:E(k)},null,8,["visible","is-en","onSuccess"])]))}}),[["__scopeId","data-v-9313f14c"]]),Eu={class:"bind-container"},ku={class:"bind-title"},xu={key:0,class:"user-list"},Su=["onClick"],Iu={class:"bind-user-card__right"},Bu={class:"bind-user-card__right__title"},Vu={class:"bind-user-card__right__desc"},Pu={key:0,class:"bind-user-card__right__info"},Tu={key:1,class:"bind-user-card__right__info"},Ru={class:"bind-user-card__btn"},Nu={key:1,class:"bind-form-content"},Uu={class:"current-bind-info"},Du={class:"highlight"},Fu={class:"tel-areacode"},_u={class:"register-bottom"},Lu=/* @__PURE__ */un(/* @__PURE__ */o({__name:"ThirdBindLogin",props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(a){const n=a,o=e(!1),i=e(null),c=t(()=>i.value?i.value:1===n.bindList.length?n.bindList[0]:null),h=e(),m=e({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),C=e([]),b=e(!0),A=e(!1),k=e(""),S=e(""),I=e({});let V=null;r(c,e=>{e&&(m.value.username=e.account||"",m.value.email=e.email||"",m.value.phone=e.mobile||"",console.log("🍉 ~ ThirdBindLogin.vue:290 ~ loginForm:",m),e.account?m.value.type="account":e.email?m.value.type="email":m.value.type="mobile",e.mobile&&0===C.value.length&&pe().then(e=>C.value=e.data.data.records))},{immediate:!0});const P=t(()=>{const e={username:[{required:!0,trigger:"blur",message:n.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:n.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>{As(0,t,a,n.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>{xs(0,t,a,n.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,n.isEn),trigger:"blur"}]};return"account"===m.value.type?{username:e.username,password:e.password}:{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}}),T=e=>{i.value=e},R=async e=>{if(h.value?.clearValidate(),"mobile"==e&&0===C.value.length){const e=await pe();C.value=e.data.data.records}},N=e=>{h.value?.validateField(e,e=>{b.value=e})},U=({captchaData:e,startTimer:t})=>{I.value=e,V=t,D(e)},D=e=>{const t="mobile"===m.value.type,a={target:t?m.value.phone:m.value.email,uuid:e.uuid,code:e.code};t&&(a.areaCode=m.value.areaCode);const o=t?fe:ue;V&&V(),o(a).then(e=>{const a=e.data.data?.verifyCode||e.data.verifyCode;0!==e.data.code&&200!==e.data.code||(t?k.value=a:S.value=a,Je.success(n.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},F=()=>{h.value?.validate(e=>{if(e)if("account"===m.value.type)A.value=!0;else{if(!k.value&&!S.value)return Je.error(n.isEn?"Please get code first":"请先获取验证码");L(I.value)}})},_=e=>{A.value=!1,L(e)},L=e=>{o.value=!0;const t=vs(),a=Z(),i={thirdPartyType:t?.thirdPartyType,thirdPartyId:t?.thirdPartyId,thirdPartyEmail:t?.thirdPartyEmail,thirdPartyUserName:t?.thirdPartyUserName,appId:"ERA",kick:!0,userId:c.value.userId,activityCode:a?.activityCode||"",referenceUserId:a?.referenceUserId||""};let r;if("account"===m.value.type)r=Ve({...i,account:m.value.username,password:yr.MD5(m.value.password).toString(),verificationCodeUuid:e.uuid,verificationCodeValue:e.code,...e});else{const t="mobile"===m.value.type;r=Pe({...i,type:t?"MOBILE":"EMAIL",account:t?m.value.phone:m.value.email,verificationCodeUuid:t?k.value:S.value,verificationCodeValue:m.value.code,...e})}r.then(e=>{if(console.log("🍉 ~ ThirdBindLogin.vue:483 ~ doBindRequest ~ res:",e),0!==e.data.code)return Je.error(e.data.msg||(n.isEn?"Login failed":"登录失败"));if(e.data.data){console.log("🍉 ~ ThirdBindLogin.vue:489 ~ doBindRequest ~ res.data.data:",e.data.data);const t=e.data.data;return t.tgc&&ps.set("tgc",t.tgc,{expires:30}),t.result&&Y(t.result),void(t.redirectPath&&Ps(t.redirectPath))}"USER_HAS_OTHER_BIND"!==e.data.subCode?(e.data.result&&Y(e.data.result),e.data.tgc&&ps.set("tgc",e.data.tgc,{expires:30}),e.data.redirectPath&&Ps(e.data.redirectPath)):Je.error(n.isEn?"Bound to other user":"该账号已绑定其他用户")}).finally(()=>{o.value=!1})};return(e,t)=>(l(),s("div",Eu,[u("div",ku,[u("div",null,v(c.value?a.isEn?"Log in and link":"绑定并登录":a.isEn?"Select account to link":"请选择要关联的账号"),1),c.value&&a.bindList.length>1?(l(),s("div",{key:0,class:"back-btn",onClick:t[0]||(t[0]=e=>i.value=null)},v(a.isEn?"< Back":"< 返回选择"),1)):f("",!0)]),c.value?(l(),s("div",Nu,[u("div",Uu,[u("span",null,v(a.isEn?"Binding Account:":"正在绑定账号:"),1),u("span",Du,v(c.value.account||c.value.email||c.value.mobile),1)]),p(E(Ye),{ref_key:"bindLoginFormRef",ref:h,model:m.value,rules:P.value,"validate-on-rule-change":!1,class:"third-bind-login-form-content"},{default:B(()=>[p(E(et),{prop:"type",class:"form-type"},{default:B(()=>[p(Sc,{modelValue:m.value.type,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.type=e),"is-en":a.isEn,"show-account":"","show-email":!!m.value.email&&"1"===c.value.emailValidFlag,"show-mobile":!!m.value.phone&&"1"===c.value.mobileValidFlag,class:"jc:max-w-full!",onChange:R},null,8,["modelValue","is-en","show-email","show-mobile"])]),_:1}),"account"===m.value.type?(l(),s(g,{key:0},[p(E(et),{prop:"username",class:"form-user"},{default:B(()=>[p(yo,{modelValue:m.value.username,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.username=e),disabled:"",placeholder:a.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(et),{prop:"password",class:"password-item"},{default:B(()=>[p(yo,{modelValue:m.value.password,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:a.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===m.value.type?(l(),d(E(et),{key:1,prop:"email"},{default:B(()=>[p(yo,{modelValue:m.value.email,"onUpdate:modelValue":t[4]||(t[4]=e=>m.value.email=e),disabled:"",placeholder:a.isEn?"Email Address":"邮箱地址",onBlur:t[5]||(t[5]=e=>N("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),d(E(et),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:B(()=>[p(E(et),{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:B(()=>[p(yo,{modelValue:m.value.phone,"onUpdate:modelValue":t[6]||(t[6]=e=>m.value.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",onBlur:t[7]||(t[7]=e=>N("phone")),maxlength:"15"},{prefix:B(()=>[u("div",Fu,v(m.value.areaCode),1)]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512)),"email"===m.value.type||"mobile"===m.value.type?(l(),d(E(et),{key:3,prop:"code"},{default:B(()=>[p(Nr,{modelValue:m.value.code,"onUpdate:modelValue":t[8]||(t[8]=e=>m.value.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:b.value,"is-en":a.isEn,onSend:U},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),u("div",_u,[p(E(at),{class:"submit-btn",onClick:F,loading:o.value},{default:B(()=>[x(v(a.isEn?"Login and Link":"登录并绑定")+" ",1),t[13]||(t[13]=u("img",{style:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},src:Uc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"])])):(l(),s("div",xu,[(l(!0),s(g,null,y(a.bindList,(e,n)=>(l(),s("div",{class:"bind-user-card",key:n,onClick:t=>T(e)},[t[12]||(t[12]=u("div",{class:"bind-user-card__left"},[u("div",{class:"account-icon"})],-1)),u("div",Iu,[u("div",Bu,v(a.isEn?e.userNameEn||e.userNameCn:e.userNameCn||e.userNameEn),1),u("div",Vu,v(a.isEn?e.compNameEn||e.compNameCn:e.compNameEn||e.compNameEn),1),e.email?(l(),s("div",Pu,[t[10]||(t[10]=u("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e"},null,-1)),x(" "+v(e.email),1)])):f("",!0),e.mobile?(l(),s("div",Tu,[t[11]||(t[11]=u("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e"},null,-1)),x(" "+v(e.mobile),1)])):f("",!0)]),u("div",Ru,[p(E(at),{type:"primary",size:"small",onClick:w(t=>T(e),["stop"])},{default:B(()=>[x(v(a.isEn?"Select":"选择"),1)]),_:1},8,["onClick"])])],8,Su))),128))])),p(Vr,{visible:A.value,"onUpdate:visible":t[9]||(t[9]=e=>A.value=e),"is-en":a.isEn,onSuccess:_},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-2d697707"]]),Mu={name:"RegisterForm",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:dn,ChineseCompanySearch:co,GoogleInput:yo,ApplyJoinBtn:Ns},props:{isEn:Boolean},computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},showEmailBindBtn(){return!this.currentCountryIsChina&&this.thirdPartyEmailVerifyList.length>0},showMobileBindBtn(){return this.currentCountryIsChina&&this.thirdPartyMobileVerifyList.length>0}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>async function(e,t,a,n=!0,o){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",o),null==t||""===t)a(new Error(n?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[\u4e00-\u9fa5]+/.test(t))a(new Error(n?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const e=await ae({email:t});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",e),e.data.data&&0!==e.data.data.records.length?(ws(e.data.data.records),o.thirdPartyEmailVerifyList=e.data.data.records,a(new Error(n?"This email has been registered":"邮箱已注册"))):(ws([]),o.thirdPartyEmailVerifyList=[],a())}catch(i){a(new Error(n?"This email has been registered":"邮箱已注册"))}}(0,t,a,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>function(e,t,a,n=!0,o){t?!0===/^[0-9]*$/.test(t)?t.length<2?a(new Error(n?"please enter at least 2 characters.":"请输入至少2个字符")):ae({mobile:t}).then(e=>{e.data.data&&0!==e.data.data.records.length?(Cs(e.data.data.records),o.thirdPartyMobileVerifyList=e.data.data.records,a(new Error(n?"This mobile number has been registered":"手机号已注册"))):(Cs([]),o.thirdPartyMobileVerifyList=[],a())}).catch(()=>{a(new Error(n?"This mobile number has been registered":"手机号已注册"))}):a(new Error("请正确填写手机号")):a(new Error(n?"Please enter your cell phone number":"请输入手机号"))}(0,t,a,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(e,t,a)=>{t?a():a(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1,thirdPartyMobileVerifyList:[],thirdPartyEmailVerifyList:[]}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Bs,getAuthSessionItems:Z,go2Policy:Vs,handleBindThirdParty(e){this.$emit("bind-third-party","email"===e?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=Z().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ err:",e)})},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){const e=(await de()).data;e&&0===e.code&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:e.data?.countryId},country:{id:e.data?.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=e.data?.countryId,this.handleSelectCity(this.form.city));const t=await pe();this.areaCodeData=t.data.data.records},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const a={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};let n=ue,o=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=fe,o=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),t(),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.currentCountryIsChina?this.mobileUid=t:this.emailUid=t,Je.success(o))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;const t=this.getAuthSessionItems(),{thirdPartyId:a,thirdPartyEmail:n,thirdPartyType:o,thirdPartyUserName:i}=vs();let r={appId:this.appId,fromSys:this.appId,passwd:yr.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterEmpNo:t.empNo||"",registerType:t.registerType||"",registerEvent:t.registerEvent||"",thirdPartyId:a,thirdPartyEmail:n,thirdPartyType:o,thirdPartyUserName:i};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode)?.id,account:ce(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:ce(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(e){const t={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?t.compNameCn=this.form.companyName:t.compNameEn=this.form.companyName,this.$emit("register",t),this.loading=!0;try{const e=await Re(t);this.handlePostRegister(e)}catch(a){this.loading=!1}},async handleApplyJoinSubmit(e){const t={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(t.nameCn=this.form.nameCn),this.form.nameEn&&(t.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete t[e]),this.$emit("register",t),this.loading=!0;try{const e=await Te(t);this.handlePostRegister(e)}catch(a){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(0===e.data.code)if(console.log("🍉 ~ RegisterForm.vue:717 ~ res.data:",e.data.data,e.data.data.redirect),e.data.data.redirect)try{ps.set("tgc",e.data.data.tgc,{expires:30}),e.data.data.result&&Y(e.data.data.result);const a=e.data.data.redirectPath||t.path||"/";Ps(a),oe()}catch(a){console.log("🍉 ~ RegisterForm.vue:737 ~ error:",a)}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Je.error(e.data.msg)}}},Ou={class:"third-register-form-container"},ju={class:"resist-company-info-card"},qu={class:"card-header"},Hu={class:"title-group"},zu={class:"tip-text"},Ju={class:"company-content"},Wu={class:"company-name"},Qu={class:"location-info"},Ku={key:6,class:"sector-section"},Gu={class:"sector-label"},Xu={class:"sector-group"},Yu=["onClick"],Zu={key:0,class:"icon-auth-checked"},$u={class:"agree-text"};const ed={name:"AuthDialog",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,GoogleInput:yo,CodeInput:Nr,RegisterForm:el,LoginTypeSwitcher:Sc,JcVerifySlide:Vr,WechatLogin:bc,WechatChooseType:Nc,WechatBindLogin:Oc,CompleteInfoForm:su,ForgetPassword:Au,ThirdBindLogin:Lu,ThirdRegisterForm:/* @__PURE__ */un(Mu,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),C=V("ChineseCompanySearch"),b=V("ApplyJoinBtn"),A=V("JcFloatInput"),E=V("el-option"),k=V("el-select"),S=V("google-input"),I=V("CodeInput"),P=V("el-checkbox"),T=V("el-button"),R=V("el-form");return l(),s("div",Ou,[p(R,{ref:"registerFormRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[u("div",ju,[u("div",qu,[u("div",Hu,[u("span",zu,v(a.isEn?"Company Name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),u("div",Ju,[u("h4",Wu,v(a.isEn?o.resistCompanyInfo.compNameEn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),t[22]||(t[22]=u("div",{class:"card-header"},[u("div",{class:"title-group"},[u("span",{class:"tip-text"}," Location(City)")])],-1)),u("div",Qu,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(A,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[23]||(t[23]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],placeholder:a.isEn?"Location(City)":"请输入公司所在城市",onSelect:i.handleSelectCity},{prefix:B(()=>[...t[20]||(t[20]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","placeholder","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(C,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),"country-id":o.form.city?.raw?.country?.id||null,city:o.form.city,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id","city","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),d(b,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0)],64)),i.currentCountryIsChina?(l(),d(m,{key:2,ref:"areaCodeCountryId",class:"phone-form-item"},{default:B(()=>[(l(),d(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(S,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[t[24]||(t[24]=u("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),d(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)):f("",!0),i.currentCountryIsChina?f("",!0):(l(),d(m,{key:3,prop:"email",class:"email-form-item"},{default:B(()=>[p(A,{modelValue:o.form.email,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[12]||(t[12]=e=>i.validateField("email"))},{prefix:B(()=>[...t[25]||(t[25]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),i.showEmailBindBtn?(l(),d(m,{key:4},{default:B(()=>[u("div",{class:"third-party-bind-btn",onClick:t[13]||(t[13]=e=>i.handleBindThirdParty("email"))},[x(v(a.isEn?"To bind":"去绑定")+" ",1),t[26]||(t[26]=u("img",{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png",style:{marginLeft:"2px",width:"8px",height:"12px"}},null,-1))])]),_:1})):f("",!0),i.showMobileBindBtn?(l(),d(m,{key:5},{default:B(()=>[u("div",{class:"third-party-bind-btn",onClick:t[14]||(t[14]=e=>i.handleBindThirdParty("mobile"))},[x(v(a.isEn?"To bind":"去绑定")+" ",1),t[27]||(t[27]=u("img",{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png",style:{marginLeft:"2px",width:"8px",height:"12px"}},null,-1))])]),_:1})):f("",!0),p(m,{prop:"code"},{default:B(()=>[p(I,{modelValue:o.form.code,"onUpdate:modelValue":t[15]||(t[15]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:B(()=>[...t[28]||(t[28]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),p(m,{prop:"password",class:"password-form-item"},{default:B(()=>[p(A,{modelValue:o.form.password,"onUpdate:modelValue":t[16]||(t[16]=e=>o.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:a.isEn?"Password":"密码",placeholder:a.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...t[29]||(t[29]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),o.hasResistCompany?f("",!0):(l(),s("div",Ku,[u("p",Gu,v(a.isEn?"Industry Sector":"行业类型"),1),u("div",Xu,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Zu)):f("",!0)],10,Yu))),128))])])),p(m,{prop:"agree",class:"agree-item"},{default:B(()=>[p(P,{modelValue:o.form.agree,"onUpdate:modelValue":t[19]||(t[19]=e=>o.form.agree=e)},{default:B(()=>[u("span",$u,[x(v(a.isEn?"I agree":"我同意")+" ",1),u("span",{class:"link-type",onClick:t[17]||(t[17]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(a.isEn?"User Agreement":"《用户条款和协议》"),1),x(" "+v(a.isEn?"and":"和")+" ",1),u("span",{class:"link-type",onClick:t[18]||(t[18]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(a.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),p(T,{class:c(["submit-btn register-btn",["register-btn-is-active"]]),disabled:o.loading,loading:o.loading,onClick:i.handleRegister},{default:B(()=>[x(v(a.isEn?"Register and Log in":"注册并登录")+" ",1),t[30]||(t[30]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["disabled","loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-288eccc0"]])},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},currentPath:{type:String,default:"/"},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1},baseMode:{type:String,default:"login"}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},mounted(){const e=Ue();e&&(this.loginForm.username=e.account||"",this.loginForm.password=e.password?De(e.password):"",this.loginForm.remember=!0)},setup(a){const{proxy:n}=q(),o=e(null),i=t(()=>{if(a.lang)return"en"===a.lang||"en-US"===a.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),{loading:s,handleAuthSubmit:l,executeRedirect:c}=Dc({appId:"ERA",isEn:i.value,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),n.handleNeedComplete()},onSuccess:e=>{n.loginForm.remember&&Fe(n.loginForm.username,ce(n.loginForm.password),!0),n.currentVisible=!1,c(e)}}),{isBindDialogVisible:u,isRegisterVisible:d,bindList:p,isUserClosed:h,startLogin:f,handleBindThirdParty:m,resetBindRegisterState:g}=bs({appId:"ERA",isEn:i.value});r(h,e=>{e&&Je.error(i.value?"You have canceled the login.":"您取消了登录。")});return r(u,e=>{e&&(console.log("🍉 ~ index.vue:525 ~ watch ~ 第三方登录需要绑定账号"),n.loginType=o.value)}),r(d,e=>{e&&(n.loginType=o.value,console.log("🍉 ~ index.vue:530 ~ watch ~ 第三方登录需要注册账号"))}),{thirdBindDialogVisible:u,thirdRegisterVisible:d,bindList:p,authLoading:s,isEn:i,handleAuthSubmit:l,executeRedirect:c,handleThirdClick:e=>{console.log("🍉 ~ index.vue:530 ~ handleThirdClick ~ type:",e),o.value=e;const t="facebook"===e?"FACEBOOK":"linkedin"===e?"LINKEDIN":e;t&&f(t)},handleBindThirdParty:m,resetBindRegisterState:g}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],IpData:null,isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null}},computed:{currentDialogWidth(){let e="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(e="640px"),"login"!==this.formMode||"linkedin"!==this.loginType&&"facebook"!==this.loginType&&"TEST"!==this.loginType||(e="640px"),e},computedRules(){const e={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]};return"account"===this.loginType?{username:e.username,password:e.password}:"code"===this.loginType?{code:e.code,..."email"===this.loginForm.type?{email:e.email}:{phone:e.phone}}:{}}},watch:{visible(e){this.currentVisible=e},currentVisible(e){this.$emit("update:visible",e)}},methods:{go2Agreement:Bs,go2Policy:Vs,handleOpen(){this.formMode=this.baseMode||"login",this.$emit("open")},handleClose(){this.$emit("auth-dialog-close",{loginType:this.loginType,formMode:this.formMode}),this.loginType="account",this.formMode=this.baseMode||"login",oe(),Ne(),this.resetBindRegisterState()},handleTest(e){this.formMode=e},handleNeedComplete(){this.formMode="need-complete"},handleRegisterSuccess(e){this.$emit("register-success",e)},handleCompleteSuccess(e){e.redirectPath?this.executeRedirect(e):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(e){this.loginType!==e&&(this.loginType=e,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(e){this.$refs.loginFormRef.validateField(e,e=>{this.codeReady=e})},handleGetCode({captchaData:e,startTimer:t}){const a="mobile"===this.loginForm.type,n={target:this.loginForm.email||this.loginForm.phone,uuid:e.uuid,code:e.code};a&&(n.areaCode=this.loginForm.areaCode);const o=a?fe:ue;this.verifyData=e,t(),o(n).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(a?this.mobileUid=t:this.emailUid=t,Je.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleLogin(){this.$refs.loginFormRef.validate(e=>{if(e)if("account"===this.loginType)this.captchaVisible=!0;else{if(console.log("🍉 ~ index.vue:795 ~ this.verifyData:",this.verifyData),console.log("🍉 ~ index.vue:796 ~ this.verifyData.code:",this.verifyData.code),!this.verifyData||!this.verifyData.uuid)return Je.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(e){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:e,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){console.log("Forget Password"),this.formMode="forget-password"},async handleChangeSubType(e){this.loginMethod=e,"mobile"==e&&0===this.areaCodeData.length&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await de()).data.data;"development"===process.env.NODE_ENV&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){const e=await pe();this.areaCodeData=e.data.data.records,this.loginForm.areaCode=e.data.data.records?.find(e=>e.id===this.IpData?.countryId)?.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account"}}},td={key:0,class:"auth-container"},ad={class:"login-section"},nd={class:"login-title"},od={key:0},id={key:1},rd={class:"tab-header"},sd={key:1,class:"tel"},ld={class:"login-passport"},cd={class:"login-remember"},ud={key:0,class:"login-agreement"},dd={class:"login-agreement-text"},pd={class:"login-agreement-text-item"},hd={class:"login-agreement-text-item jc:mx-0.5"},fd={key:1},md={key:2},gd={key:3,class:"third-party-sign-in"},yd={class:"third-party-sign-in-title"},vd={class:"third-party-sign-in-group"},wd={key:4,class:"bottom-tip"},Cd={key:3,class:"auth-container"},bd={class:"register-section"};const Ad=/* @__PURE__ */un(ed,[["render",function(e,t,a,n,o,i){const r=V("GoogleInput"),h=V("el-form-item"),m=V("LoginTypeSwitcher"),C=V("el-option"),b=V("el-select"),A=V("google-input"),E=V("CodeInput"),k=V("el-checkbox"),S=V("el-button"),I=V("el-form"),P=V("WechatLogin"),T=V("ThirdBindLogin"),R=V("ThirdRegisterForm"),N=V("WechatChooseType"),U=V("WechatBindLogin"),D=V("RegisterForm"),F=V("CompleteInfoForm"),_=V("ForgetPassword"),L=V("JcVerifySlide"),M=V("ElDialog");return l(),d(M,{modelValue:o.currentVisible,"onUpdate:modelValue":t[23]||(t[23]=e=>o.currentVisible=e),"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:i.currentDialogWidth,"align-center":"",class:"jc-auth-dialog","show-close":!0,onClose:i.handleClose,onOpen:i.handleOpen},{default:B(()=>["login"===o.formMode?(l(),s("div",td,[u("div",ad,[u("div",nd,[n.thirdBindDialogVisible||n.thirdRegisterVisible?(l(),s("p",od,v(n.isEn?"New User Registration":"新用户注册"),1)):(l(),s("p",id,v(n.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans"),1))]),["account","code"].includes(o.loginType)?(l(),s(g,{key:0},[u("div",rd,[u("span",{class:c(["tab-header-title",{active:"account"===o.loginType}]),onClick:t[0]||(t[0]=e=>i.switchLoginTab("account"))},v(n.isEn?"Password Login":"账号登录"),3),u("span",{class:c(["tab-header-title",{active:"code"===o.loginType}]),onClick:t[1]||(t[1]=e=>i.switchLoginTab("code"))},v(n.isEn?"Verification Code Login":"验证码登录"),3)]),p(I,{ref:"loginFormRef",model:o.loginForm,rules:i.computedRules,"validate-on-rule-change":!1,class:"auth-form login-form-content"},{default:B(()=>["account"===o.loginType?(l(),s(g,{key:0},[p(h,{prop:"username",class:"form-user"},{default:B(()=>[p(r,{modelValue:o.loginForm.username,"onUpdate:modelValue":t[2]||(t[2]=e=>o.loginForm.username=e),placeholder:n.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(h,{prop:"password",class:"password-item"},{default:B(()=>[p(r,{modelValue:o.loginForm.password,"onUpdate:modelValue":t[3]||(t[3]=e=>o.loginForm.password=e),type:"password",class:"input-show-pass",placeholder:n.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"code"===o.loginType?(l(),s(g,{key:1},[p(h,{prop:"type"},{default:B(()=>[p(m,{modelValue:o.loginForm.type,"onUpdate:modelValue":t[4]||(t[4]=e=>o.loginForm.type=e),"is-en":n.isEn,onChange:i.handleChangeSubType},null,8,["modelValue","is-en","onChange"])]),_:1}),"email"===o.loginForm.type?(l(),d(h,{key:0,prop:"email"},{default:B(()=>[p(r,{modelValue:o.loginForm.email,"onUpdate:modelValue":t[5]||(t[5]=e=>o.loginForm.email=e),placeholder:n.isEn?"Email Address":"邮箱地址",onBlur:t[6]||(t[6]=e=>i.validateField("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),s("div",sd,[(l(),d(h,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(A,{modelValue:o.loginForm.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.loginForm.phone=e),placeholder:n.isEn?"Cell Phone Number":"手机号码",label:n.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[p(h,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(b,{modelValue:o.loginForm.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.loginForm.areaCode=e),placeholder:n.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),d(C,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))])),p(h,{prop:"code"},{default:B(()=>[p(E,{modelValue:o.loginForm.code,"onUpdate:modelValue":t[11]||(t[11]=e=>o.loginForm.code=e),placeholder:n.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":n.isEn,onSend:i.handleGetCode},null,8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),u("div",ld,[u("div",cd,[p(h,{prop:"remember",class:"remember-item"},{default:B(()=>[p(k,{modelValue:o.loginForm.remember,"onUpdate:modelValue":t[12]||(t[12]=e=>o.loginForm.remember=e),class:"remember-btn"},{default:B(()=>[x(v(n.isEn?"Remember Me":"30天自动登录"),1)]),_:1},8,["modelValue"])]),_:1}),"account"===o.loginType?(l(),s("span",{key:0,class:"forget-pwd-btn",onClick:t[13]||(t[13]=(...e)=>i.handleForget&&i.handleForget(...e))},v(n.isEn?"Forgot your password?":"忘记密码"),1)):f("",!0)]),"code"===o.loginType?(l(),s("div",ud,[u("div",dd,[u("span",pd,v(n.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"),1),u("span",{class:"link-type",onClick:t[14]||(t[14]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(n.isEn?"User Agreement":"《用户条款和协议》"),1),u("span",hd,v(n.isEn?"and":""),1),u("span",{class:"link-type",onClick:t[15]||(t[15]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(n.isEn?"Privacy Policy":"《隐私政策》"),1)])])):f("",!0),p(S,{class:"submit-btn",loading:n.authLoading,onClick:i.handleLogin},{default:B(()=>[x(v("code"===o.loginType?n.isEn?"Register and log in":"登录/注册":n.isEn?"Sign In":"登录")+" ",1),t[24]||(t[24]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["loading","onClick"])])]),_:1},8,["model","rules"])],64)):f("",!0),"wechat"===o.loginType?(l(),s("div",fd,[p(P,{"is-en":n.isEn,onNeedRegister:i.handleWechatNeedRegister,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onNeedRegister","onNeedComplete"])])):f("",!0),["linkedin","facebook","TEST"].includes(o.loginType)?(l(),s("div",md,[n.thirdBindDialogVisible?(l(),d(T,{key:0,"is-en":n.isEn,"bind-list":n.bindList,class:"jc:mt-1"},null,8,["is-en","bind-list"])):f("",!0),n.thirdRegisterVisible?(l(),d(R,{key:1,"is-en":n.isEn,class:"jc:mt-6",onBindThirdParty:n.handleBindThirdParty},null,8,["is-en","onBindThirdParty"])):f("",!0)])):f("",!0),"TEST"!==o.loginType&&"facebook"!==o.loginType&&"linkedin"!==o.loginType?(l(),s("div",gd,[u("div",yd,v(n.isEn?"Sign in with":"其他登录方式"),1),u("div",vd,[["wechat","linkedin","facebook"].includes(o.loginType)?(l(),s("div",{key:0,class:"third-party-sign-in-btn",onClick:t[16]||(t[16]=()=>o.loginType="account")},[t[25]||(t[25]=u("i",{class:"icon-account"},null,-1)),u("span",null,v(n.isEn?"Account":"账户"),1)])):["account","code"].includes(o.loginType)?(l(),s("div",{key:1,class:"third-party-sign-in-btn",onClick:t[17]||(t[17]=()=>o.loginType="wechat")},[t[26]||(t[26]=u("i",{class:"icon-auth-wechat"},null,-1)),u("span",null,v(n.isEn?"WeChat":"微信"),1)])):f("",!0),u("div",{class:"third-party-sign-in-btn",onClick:t[18]||(t[18]=e=>n.handleThirdClick("linkedin"))},[...t[27]||(t[27]=[u("i",{class:"icon-auth-linkedin"},null,-1),u("span",null,"LinkedIn",-1)])]),u("div",{class:"third-party-sign-in-btn",onClick:t[19]||(t[19]=e=>n.handleThirdClick("facebook"))},[...t[28]||(t[28]=[u("i",{class:"icon-auth-facebook"},null,-1),u("span",null,"Facebook",-1)])]),a.showTestThirdBtn?(l(),s("div",{key:2,class:"third-party-sign-in-btn",onClick:t[20]||(t[20]=e=>n.handleThirdClick("TEST"))},[...t[29]||(t[29]=[u("i",{class:"icon-auth-facebook"},null,-1),u("span",null,"TEST",-1)])])):f("",!0)])])):f("",!0),n.thirdBindDialogVisible||n.thirdRegisterVisible?f("",!0):(l(),s("div",wd,[x(v(n.isEn?"Don't have an account?":"没有账户?")+" ",1),u("span",{class:"action-text",onClick:t[21]||(t[21]=e=>o.formMode="register")},[x(v(n.isEn?"Sign Up":"立即注册")+" ",1),t[30]||(t[30]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))])])):"wechat-need-register"===o.formMode?(l(),d(N,{key:1,"is-en":n.isEn,onToBind:i.handleWechatLogin,onToRegister:i.handleWechatRegister},null,8,["is-en","onToBind","onToRegister"])):"wechat-bind"===o.formMode?(l(),d(U,{key:2,"is-en":n.isEn,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onNeedComplete"])):"register"===o.formMode?(l(),s("div",Cd,[u("div",bd,[p(D,{"is-en":n.isEn,onToLogin:i.handleToLogin,onNeedComplete:i.handleNeedComplete,onRegisterSuccess:i.handleRegisterSuccess},null,8,["is-en","onToLogin","onNeedComplete","onRegisterSuccess"])])])):"need-complete"===o.formMode?(l(),d(F,{key:4,"is-en":n.isEn,onSuccess:i.handleCompleteSuccess},null,8,["is-en","onSuccess"])):"forget-password"===o.formMode?(l(),d(_,{key:5,"is-en":n.isEn,onToLogin:i.handleToLogin},null,8,["is-en","onToLogin"])):f("",!0),p(L,{visible:o.captchaVisible,"onUpdate:visible":t[22]||(t[22]=e=>o.captchaVisible=e),"is-en":n.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])]),_:1},8,["modelValue","width","onClose","onOpen"])}],["__scopeId","data-v-4d683fe9"]]),Ed=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Ad},Symbol.toStringTag,{value:"Module"}));const kd=(e,t)=>z.searchByIdWithType(e,t);function xd(a,n){const o=e([]),i=e(!1),r=e(!1),s=e(!1),l=e(1),c=e(0),u=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e});return{searchResults:o,loading:i,isFetchingMore:r,isFinished:s,fetchData:async(e=!1)=>{const t=a.value.trim();if(!t)return o.value=[],c.value=0,void(s.value=!1);if(e){if(r.value||s.value)return;r.value=!0,l.value+=1}else{if(i.value)return;i.value=!0,l.value=1,s.value=!1}try{const a=await async function(e,t=["Continent","Country","City","Seaport","Airport"],a={}){return z.searchByName({keyword:e,displayInfo:t,...a})}(t,n.value,{current:l.value,size:20}),i=(d=a.records||[],Array.isArray(d)?d.filter(e=>u.value.includes(e.type)):[]);e?o.value.push(...i):o.value=i,c.value=a.total||0,(o.value.length>=c.value||i.length<20)&&(s.value=!0)}catch(p){console.error("Search request failed:",p),e&&(l.value-=1)}finally{i.value=!1,r.value=!1}var d}}}const Sd={class:"h5-search-container"},Id={class:"trigger-content"},Bd=["src"],Vd={class:"placeholder-text"},Pd={key:0,class:"scroll-container"},Td={class:"tag-text"},Rd={class:"selected-count-text"},Nd={key:1,class:"selected-val"},Ud={key:2,class:"placeholder-gray"},Dd={key:0,class:"h5-modal-root"},Fd={class:"h5-drawer-card"},_d={class:"h5-header"},Ld={class:"h5-input-wrapper"},Md=["src"],Od=["placeholder"],jd={key:0,class:"h5-spinner-box"},qd={key:1,class:"h5-section"},Hd={class:"h5-section-hd"},zd={class:"h5-history-grid"},Jd=["onClick"],Wd={key:2,class:"h5-result-list"},Qd=["onClick"],Kd={class:"item-info"},Gd={class:"item-name"},Xd={key:0,class:"item-sub"},Yd={class:"h5-load-status"},Zd={key:1,class:"no-more"},$d={key:3,class:"h5-load-status h5-empty"},ep={class:"h5-empty-apply-wrap"},tp=["src"],ap=/* @__PURE__ */un(/* @__PURE__ */o({__name:"index",props:{modelValue:{},multiple:{type:Boolean,default:!1},lang:{default:"zh-CN"},placeholder:{},historyKey:{},reportType:{default:"City"}},emits:["update:modelValue","select","apply"],setup(o,{emit:h}){const C=o,b=h,x=e(!1),S=e(""),I=e(null),V=e(null);let P=null;const{searchHistory:T,saveToHistory:N,clearHistory:U}=function(n){const o=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return a(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{o.value=JSON.parse(t)}catch(e){o.value=[]}}}),{searchHistory:o,saveToHistory:e=>{if(!e||!i)return;const t=o.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const a=t.slice(0,4);if(s.value){o.value=a;try{localStorage.setItem(r.value,JSON.stringify(a))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{o.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(C,"historyKey")),{searchResults:D,loading:F,isFetchingMore:_,isFinished:L,fetchData:M}=xd(S,e(["City","Seaport","Airport"])),{hydrateMultiple:j,hydrateSingle:q}=ct(kd),H=t(()=>{if(C.lang)return"en"===C.lang||"en-US"===C.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),z=t(()=>Array.isArray(C.modelValue)?C.modelValue:C.modelValue?[C.modelValue]:[]);r(()=>C.modelValue,async(e,t)=>{if(JSON.stringify(e)!==JSON.stringify(t))if(C.multiple&&Array.isArray(e))try{const{updatedList:t,hasChanged:a}=await j(e);a&&b("update:modelValue",t)}catch(a){console.error("Batch fetch detail failed:",a)}else if(!C.multiple&&e?.id&&e?.type&&!e?.display)try{const t=await q(e);t&&t!==e&&b("update:modelValue",t)}catch(a){console.error("Single fetch detail failed:",a)}},{immediate:!0,deep:!0});const W=t(()=>!C.multiple&&!!C.modelValue),Q=t(()=>W.value?ae(C.modelValue):""),K=t(()=>z.value.length>0),G=()=>{x.value=!0,O(()=>{S.value=H.value?C.modelValue?.nameEn||"":C.modelValue?.nameCn||"",I.value?.focus(),S.value&&M(!1)})},X=()=>{x.value=!1,S.value=""},Y=e=>{if(N(e),C.multiple){z.value.some(t=>t.id===e.id)||b("update:modelValue",[...z.value,e])}else b("update:modelValue",e),X();b("select",e)},Z=()=>{b("update:modelValue",C.multiple?[]:null)},$=e(!1),ee=e=>{const t=e.target;if(!t)return;!(t.scrollTop+t.clientHeight>=t.scrollHeight-80)||!S.value||F.value||_.value||L.value||$.value||($.value=!0,M(!0))};r(_,e=>{e||($.value=!1)});const te=()=>{P&&clearTimeout(P),P=setTimeout(()=>{$.value=!1,V.value?.scrollTo({top:0}),M(!1)},300)};n(()=>{P&&(clearTimeout(P),P=null)});const ae=e=>H.value?e.displayEn||e.display:e.displayCn||e.display,ne=e=>z.value.some(t=>t.id===e.id),oe=async()=>{const e=S.value?.trim();if(e)try{await J({reportData:e,reportType:C.reportType})}catch(t){console.error("Report apply data failed:",t)}finally{b("apply",e)}};return(e,t)=>(l(),s("div",Sd,[u("div",{class:"search-trigger",onClick:G},[u("div",Id,[u("img",{src:E(Da),class:"search-icon-m"},null,8,Bd),u("div",Vd,[o.multiple&&z.value.length>0?(l(),s("div",Pd,[(l(!0),s(g,null,y(z.value,e=>(l(),s("div",{key:e.id,class:"selected-tag"},[u("span",Td,v(e.display),1)]))),128)),u("span",Rd,v(H.value?"Selected":"已选")+" ("+v(z.value.length)+") ",1)])):!o.multiple&&W.value?(l(),s("span",Nd,v(Q.value),1)):(l(),s("span",Ud,v(o.placeholder||(H.value?"Search":"搜索")),1))])]),K.value?(l(),s("span",{key:0,class:"clear-trigger",onClick:w(Z,["stop"])},"ⓧ")):f("",!0)]),(l(),d(k,{to:"body"},[x.value?(l(),s("div",Dd,[p(R,{name:"fade"},{default:B(()=>[u("div",{class:"h5-mask",onClick:X})]),_:1}),p(R,{name:"slide-up"},{default:B(()=>[u("div",Fd,[u("div",{class:"drawer-handle",onClick:X}),u("div",_d,[u("div",Ld,[u("img",{src:E(Da),class:"inner-icon"},null,8,Md),m(u("input",{ref_key:"inputRef",ref:I,"onUpdate:modelValue":t[0]||(t[0]=e=>S.value=e),placeholder:H.value?"City/Port/Airport":"搜索城市/港口/机场",onInput:te},null,40,Od),[[A,S.value]]),S.value?(l(),s("div",{key:0,class:"h5-clear-btn",onClick:t[1]||(t[1]=e=>S.value="")}," ✕ ")):f("",!0)]),u("div",{class:"h5-cancel-btn",onClick:X},v(H.value?"Cancel":"取消"),1)]),u("div",{class:"h5-main-content",ref_key:"scrollContainer",ref:V,onScroll:ee},[E(F)&&!E(_)?(l(),s("div",jd,[...t[3]||(t[3]=[u("div",{class:"h5-spinner"},null,-1)])])):f("",!0),!S.value&&E(T).length>0?(l(),s("div",qd,[u("div",Hd,[u("span",null,v(H.value?"Recent":"最近搜索"),1),u("span",{class:"h5-clear-history",onClick:t[2]||(t[2]=(...e)=>E(U)&&E(U)(...e))},v(H.value?"Clear":"清空"),1)]),u("div",zd,[(l(!0),s(g,null,y(E(T),(e,t)=>(l(),s("div",{key:t,class:"h5-history-tag",onClick:t=>Y(e)},v(ae(e)),9,Jd))),128))])])):f("",!0),E(D).length>0?(l(),s("div",Wd,[(l(!0),s(g,null,y(E(D),(e,t)=>{return l(),s("div",{key:t,class:c(["h5-result-item",{"is-active":ne(e)}]),onClick:t=>Y(e)},[u("div",{class:c(["item-type",e.type.toLowerCase()])},v((a=e.type,H.value?a:{City:"城市",Seaport:"港口",Airport:"机场"}[a]||a)),3),u("div",Kd,[u("div",Gd,v(ae(e)),1),e.parentName?(l(),s("div",Xd,v(e.parentName),1)):f("",!0)])],10,Qd);var a}),128)),u("div",Yd,[E(_)?(l(),s(g,{key:0},[t[4]||(t[4]=u("div",{class:"mini-spinner"},null,-1)),u("span",null,v(H.value?"Loading...":"加载中..."),1)],64)):E(L)&&S.value?(l(),s("span",Zd,v(H.value?"No more results":"没有更多结果了"),1)):f("",!0)])])):f("",!0),S.value&&!E(F)&&0===E(D).length?(l(),s("div",$d,[u("p",null,v(H.value?"No Results Found. ":"未找到相关结果,"),1),u("div",ep,[u("span",{class:"h5-empty-apply",onClick:w(oe,["stop"])},v(H.value?"Apply for data addition":"申请补充数据"),1),u("img",{src:E(Fa),alt:"more",class:"h5-empty-apply-icon",onClick:w(oe,["stop"])},null,8,tp)])])):f("",!0)],544)])]),_:1})])):f("",!0)]))]))}}),[["__scopeId","data-v-ae746c64"]]),np=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ap},Symbol.toStringTag,{value:"Module"})),op={class:"jc-line-cascader jc:w-full"},ip={class:"jc:flex jc:justify-between jc:items-center jc:w-full"},rp={key:0,class:"jc:text-xs jc:text-gray-400 jc:ml-4"},sp={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},lp={key:0},cp={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},up={class:"jc:flex jc:justify-center jc:items-center jc:gap-1 jc:ml-1"},dp=["src"],pp=/* @__PURE__ */o({__name:"index",props:{modelValue:{default:()=>[]},lineId:{default:null},placeholder:{default:""},lang:{},lineType:{default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["update:modelValue","update:lineId","change","apply"],setup(n,{emit:o}){const i=n,c=o,h=e(),m=e([]),C=e(!1),b=e(""),A=e(i.modelValue),k={multiple:!0,expandTrigger:"click",emitPath:!1,checkStrictly:!1},S=t(()=>({...k,multiple:i.multiple})),I=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),V=t(()=>m.value.map(e=>({label:I.value?e.nameEn||e.nameCn:e.nameCn||e.nameEn,value:`line-${e.id}`,children:(e.raw?.countryList||[]).map(t=>({label:I.value?t.nameEn:t.nameCn,value:`${e.id}-${t.id}`,shortCode:t.shortCode}))}))),P=t(()=>i.placeholder?i.placeholder:I.value?"Please select route":"涉及航线选择"),T=(e,t)=>{const a=t.toLowerCase();return e.pathLabels.some(e=>e.toLowerCase().includes(a))},R=(e,t)=>{c("update:modelValue",e),c("update:lineId",t),c("change",{countryIds:e,lineId:t})},N=e=>{},U=e=>{if(console.log("🍓🍓 ~ index.vue:244 ~ handleChange ~ selected:",e),!e||0===e.length)return A.value=[],void R([],null);const t=e[e.length-1];if(t.startsWith("line-")){const[a,n]=t.split("-"),o=e.filter(e=>e.endsWith(`${n}`));return console.log("🍓🍓 ~ index.vue:260 ~ validSelections ~ validSelections:",o),R([],n),void c("change",o)}const[a]=t.split("-"),n=e.filter(e=>e.startsWith(`${a}-`));A.value=n;const o=n.map(e=>e.split("-")[1]);R(o,a),c("change",n)},D=async()=>{if(b.value)try{await J({reportData:b.value,reportType:"Line"})}catch(e){}c("apply",b.value),h.value?.togglePopperVisible(!1)},F=e=>{const t=/* @__PURE__ */new Set;for(const a of e){let e=a.node?.parent;for(;e&&1!==e.level;)e=e.parent;const n=e?.data?.label;n&&t.add(n)}return[...t]};return a(()=>{(async e=>{C.value=!0,b.value=e;try{const e=await z.line.searchAllByCountry(i.lineType);m.value=Array.isArray(e)?e:e?.records||[]}catch(t){console.error("Search failed:",t),m.value=[]}finally{C.value=!1}})("")}),r(()=>i.modelValue,e=>{console.log("🍓🍓 ~ index.vue:324 ~ newVal:",e);const t=i.lineId;t&&e&&e.length>0?A.value=e.map(e=>`${t}-${e}`):A.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),(e,t)=>(l(),s("div",op,[p(E(rt),{ref_key:"selectRef",ref:h,modelValue:A.value,"onUpdate:modelValue":t[0]||(t[0]=e=>A.value=e),"popper-class":"jc-line-cascader-pop",options:V.value,props:S.value,placeholder:P.value,loading:C.value,filterable:"",clearable:"","collapse-tags":"","collapse-tags-tooltip":"",class:"jc:w-full","filter-method":T,onExpandChange:N,onChange:U},{tag:B(({data:e})=>[(l(!0),s(g,null,y(F(e),e=>(l(),d(E(st),{key:e},{default:B(()=>[x(v(e),1)]),_:2},1024))),128))]),default:B(({data:e,node:t})=>[u("div",ip,[u("span",null,v(e.label),1),t.isLeaf&&e.shortCode?(l(),s("span",rp,v(e.shortCode),1)):f("",!0)])]),empty:B(()=>[u("div",sp,[C.value?(l(),s("div",lp,[t[1]||(t[1]=u("i",{class:"el-icon-loading jc:mr-1"},null,-1)),x(" "+v(I.value?"Searching...":"正在搜索中..."),1)])):(l(),s("div",cp,[u("p",null,v(I.value?"No results found. ":"暂无结果,"),1),u("div",up,[u("span",{class:"jc:font-medium jc:text-[14px] jc:text-[#ff6a00] jc:cursor-pointer jc:hover:underline",onClick:w(D,["stop"])},v(I.value?"Apply for data addition":"申请补充数据 "),1),u("img",{src:E(Fa),alt:"more",class:"jc:size-4 jc:cursor-pointer",onClick:w(D,["stop"])},null,8,dp)])]))])]),_:1},8,["modelValue","options","props","placeholder","loading"])]))}}),hp=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"})),fp={},mp=(...e)=>{for(const t of e)if("string"==typeof t){const e=t.trim();if(e)return e}return""},gp=(...e)=>{for(const t of e){if("boolean"==typeof t)return t;if("string"==typeof t){const e=t.trim().toLowerCase();if("true"===e)return!0;if("false"===e)return!1}}},yp=e=>{const t=e.__jctransTrackHandler__;t&&(e.removeEventListener(t.trigger,t.handler),delete e.__jctransTrackHandler__)},vp=(e,t,a)=>{yp(e);const n=(e=>{const t=e.value;return"string"==typeof t?{eventName:t.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1}:t&&"object"==typeof t?{eventName:mp(t.event,t.name,e.arg),trigger:mp(t.trigger)||"click",attrs:t.attributes||t.attrs||{},once:Boolean(t.once),stop:Boolean(t.stop),prevent:Boolean(t.prevent),callback:"function"==typeof t.onTracked?t.onTracked:"function"==typeof t.callback?t.callback:void 0}:{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1}})(t);if(!n.eventName)return;const o=t=>{n.prevent&&"preventDefault"in t&&t.preventDefault(),n.stop&&"stopPropagation"in t&&t.stopPropagation(),a.isInitialized()&&a.track(n.eventName,n.attrs,()=>{n.callback?.({event:t,eventName:n.eventName,attrs:n.attrs,trigger:n.trigger})}),n.once&&yp(e)};e.addEventListener(n.trigger,o),e.__jctransTrackHandler__={eventName:n.eventName,trigger:n.trigger,handler:o}};function wp(e){return{install(t){const a=_e,n=fp||{},o=e||{},i=(e=>{if("undefined"==typeof window)return{};const t=window,a=t?.[e],n=t?.__JCTRANS_GIO_CONFIG__,o=t?.__GIO_CONFIG__,i=a||n||o;return i&&"object"==typeof i?i:{}})(mp(o.globalVarName,"__JCTRANS_GIO_CONFIG__")),r=gp(i.enabled,o.enabled,n.VITE_GIO_ENABLED),s={...o.initOptions||{},...i.initOptions||{}};if(!s.serverUrl){const e=mp(i.serverUrl,o.serverUrl,n.VITE_GIO_SERVER_URL);e&&(s.serverUrl=e)}const l=mp(i.accountId,o.accountId,n.VITE_GIO_ACCOUNT_ID),c=mp(i.dataSourceId,o.dataSourceId,n.VITE_GIO_DATA_SOURCE_ID,n.VITE_GIO_DATASOURCE_ID),u=mp(i.appId,o.appId,n.VITE_GIO_APP_ID),d=gp(i.autoInit,o.autoInit,n.VITE_GIO_AUTO_INIT),p=(h=i.directiveName||o.directiveName,(mp(h)||"gio-track").replace(/^v-/,""));var h;(r??1)&&(d??1)&&l&&c&&!a.isInitialized()&&(u?a.init(l,c,u,s):a.init(l,c,s));const f=(e=>(t,a)=>{const n=mp(t);n&&e.isInitialized()&&e.track(n,a||{})})(a);t.config.globalProperties.$gio=a,t.config.globalProperties.$trackEvent=f,t.provide("gio",a),t.provide("trackEvent",f);const m={mounted(e,t){vp(e,t,a)},updated(e,t){vp(e,t,a)},beforeUnmount(e){yp(e)}};t.directive(p,m)}}}let Cp={open(){G.emit(X.Open)},close(){G.emit(X.Close)},onSubmit(e){G.on(X.Submit,e)}};function bp(){let e=!1;return{install(t){if("undefined"!=typeof window&&!e){const t=document.createElement("div");t.setAttribute("id","global-modal-root"),document.body.appendChild(t),H(Lr).mount(t),e=!0}t.config.globalProperties.$globalModal=Cp}}}const Ap=/* @__PURE__ */Object.assign({"./components/ApplyDataDialog.vue":ro,"./components/ChineseCompanySearch/index.vue":uo,"./components/CodeInput.vue":Ur,"./components/GlobalModal.vue":Mr,"./components/GoogleInput.vue":vo,"./components/JcCarrierSearch/AirCarrierSearch.vue":jr,"./components/JcCarrierSearch/AirLineSearch.vue":Hr,"./components/JcCarrierSearch/SeaCarrierSearch.vue":Jr,"./components/JcCarrierSearch/SeaLineSearch.vue":Qr,"./components/JcCarrierSearch/index.vue":ns,"./components/JcFloatInput.vue":xo,"./components/JcFloatWrapper.vue":us,"./components/JcLoginDialog/index.vue":Ed,"./components/JcMSearch/index.vue":np,"./components/JcSearch/index.vue":pn,"./components/JcVerifySlide/index.vue":Pr,"./components/LineCascader/index.vue":hp}),Ep={};Object.entries(Ap).forEach(([e,t])=>{const a=e.split("/"),n=a.pop()||"",o=a.pop()||"";let i="";i="index.vue"===n?o:n.replace(/\.vue$/,""),i&&t.default&&(Ep[i]=t.default)});const{ApplyDataDialog:kp,JcSearch:xp,GlobalModal:Sp,JcMSearch:Ip,ChineseCompanySearch:Bp,JcLoginDialog:Vp,CodeInput:Pp,GoogleInput:Tp,JcFloatInput:Rp,JcFloatWrapper:Np,JcVerifySlide:Up,JcCarrierSearch:Dp,AirCarrierSearch:Fp,SeaCarrierSearch:_p,AirLineSearch:Lp,SeaLineSearch:Mp,LineCascader:Op}=Ep;let jp=!1;const qp={install(e,t){if(!jp){jp=!0,t?.sharedConfig&&Le(t.sharedConfig),t?.tracking&&e.use(wp(t.tracking));for(const t in Ep)e.component(t,Ep[t]),console.log(`[JcUI] 自动注册组件: ${t}`)}}};export{Fp as AirCarrierSearch,Lp as AirLineSearch,kp as ApplyDataDialog,Bp as ChineseCompanySearch,Pp as CodeInput,Sp as GlobalModal,Tp as GoogleInput,Dp as JcCarrierSearch,Rp as JcFloatInput,Np as JcFloatWrapper,Vp as JcLoginDialog,Ip as JcMSearch,xp as JcSearch,Up as JcVerifySlide,Op as LineCascader,Me as MODAL_ACTION,_p as SeaCarrierSearch,Mp as SeaLineSearch,wp as createGioTrackingPlugin,bp as createGlobalModalPlugin,Oe as createRequest,qp as default,je as emitter,qe as getAppId,He as initSharedConfig};
1
+ import{ref as e,computed as t,onMounted as a,onBeforeUnmount as n,defineComponent as o,toRef as i,watch as r,createElementBlock as s,openBlock as l,normalizeClass as c,createElementVNode as u,createBlock as d,createVNode as p,renderSlot as h,createCommentVNode as f,withDirectives as m,Fragment as g,renderList as y,toDisplayString as v,withModifiers as w,withKeys as C,normalizeStyle as b,vModelText as A,unref as E,Teleport as k,createTextVNode as x,vShow as S,reactive as I,withCtx as B,resolveComponent as V,mergeProps as T,toHandlers as P,Transition as R,resolveDynamicComponent as N,createSlots as U,onUnmounted as D,mergeModels as F,useModel as _,normalizeProps as L,guardReactiveProps as M,nextTick as O,isRef as j,getCurrentInstance as q,createApp as H}from"vue";import{locationSearchV2 as z,reportNewTypeDataApi as J,getCompanyOptionApi as W,slideGetApi as Q,slideCheckApi as K,emitter as G,MODAL_ACTION as X,setTokenAll as Y,getAuthSessionItems as Z,loginByFacebookApi as $,loginByLinkedinApi as ee,validateAccountExistApi as te,findListByMobileEmailApi as ae,validateCompanyApi as ne,resetAuthSessionItems as oe,registerJoinCompanyBindWechatApi as ie,registerJoinCompanyApi as re,registerUserCompBindWechatApi as se,registerApi as le,Encrypt as ce,sendEmailCodeApi as ue,getLocalIpDataApi as de,findPAreaCodeAPi as pe,findDictAPi as he,sendMobileCodeApi as fe,getLoginQrCode as me,setAuthSessionItems as ge,loginByQrCode as ye,getFirstDomain as ve,loginApi as we,loginByEmailOrMobileCodeApi as Ce,loginPwdBindWechatApi as be,loginCodeBindWechatApi as Ae,completeJoinCompanyRedirectApi as Ee,completeCompRedirectApi as ke,getUserInfoApi as xe,resetPasswordApi as Se,getMEVCodeApi as Ie,checkAccountExistsFPApi as Be,bindThirdPartyByPwdApi as Ve,bindThirdPartyByCodeApi as Te,registerJoinCompByThirdPartyApi as Pe,registerByThirdPartyApi as Re,resetGioSessionItems as Ne,getRememberAccount as Ue,Decrypt as De,setRememberMe as Fe,tracker as _e,initSharedConfig as Le}from"@jctrans-materials/shared";import{MODAL_ACTION as Me,createRequest as Oe,emitter as je,getAppId as qe,initSharedConfig as He}from"@jctrans-materials/shared";import{useFormItem as ze,ElMessage as Je,vLoading as We,ElSelect as Qe,ElOption as Ke,ElInput as Ge,ElDialog as Xe,ElForm as Ye,ElRow as Ze,ElCol as $e,ElFormItem as et,ElCheckbox as tt,ElButton as at,ElRadioButton as nt,ElRadioGroup as ot,ElMessageBox as it,ElCascader as rt,ElTag as st}from"element-plus";const lt=e=>!!e?.id&&!!e?.type&&!e?.display;function ct(e){return{hydrateMultiple:async t=>{if(!Array.isArray(t)||0===t.length)return{updatedList:t,hasChanged:!1};const a=t.filter(e=>lt(e));if(0===a.length)return{updatedList:t,hasChanged:!1};const n=a.reduce((e,t)=>{const a=t.type;return e[a]||(e[a]=[]),e[a].push(t.id),e},{}),o=/* @__PURE__ */new Map;for(const[r,s]of Object.entries(n)){if(0===s.length)continue;const t=await e(s,r);(t?.records||[]).forEach(e=>{e?.id&&e?.type&&o.set(`${e.type}::${e.id}`,e)})}let i=!1;return{updatedList:t.map(e=>{if(!lt(e))return e;const t=`${e.type}::${e.id}`,a=o.get(t);return a?(i=!0,{...e,...a}):e}),hasChanged:i}},hydrateSingle:async t=>{if(!t||!lt(t))return t;const a=await e(t.id,t.type),n=a?.records||[],o=n.find(e=>e?.id===t.id&&e?.type===t.type)||n[0];return o?{...t,...o}:t}}}const ut=(e,t)=>z.searchByIdWithType(e,t);function dt(a,n,o){const i=e([]),r=e(!1),s=e(!1),l=e(1),c=e(0),u=e(10),d=t(()=>0!==c.value&&i.value.length>=c.value),p=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e}),h=e=>e&&Array.isArray(e)?e.filter(e=>p.value.includes(e.type)):[];return{searchResults:i,loading:r,isFetchingMore:s,isFinished:d,currentPage:l,total:c,fetchData:async(e=1,t=!1)=>{const p=o?.parentId?.value,f=a.value.trim();if(!f&&!t&&!p)return i.value=[],void(c.value=0);if((!t||!s.value&&!d.value)&&(t||!r.value)){t?s.value=!0:(r.value=!0,l.value=1);try{const a={};p&&o?.parentType?.value&&("Country"===o.parentType.value?a.countryIds=[o.parentId?.value]:"City"===o.parentType.value&&(a.cityIds=[o.parentId?.value]));const r=await async function(e,t=["Continent","Country","City","Seaport","Airport"],a={}){return z.searchByName({keyword:e,displayInfo:t,...a})}(f,n.value,{current:e,size:u.value,...a}),s=r.records||[],d=h(s);i.value=t?[...i.value,...d]:d,c.value=r.total||0,l.value=e}catch(m){console.error("Failed to fetch search results:",m)}finally{r.value=!1,s.value=!1}}},filterByTypes:h}}const pt=Math.min,ht=Math.max,ft=Math.round,mt=Math.floor,gt=e=>({x:e,y:e}),yt={left:"right",right:"left",bottom:"top",top:"bottom"},vt={start:"end",end:"start"};function wt(e,t,a){return ht(e,pt(t,a))}function Ct(e,t){return"function"==typeof e?e(t):e}function bt(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function Et(e){return"x"===e?"y":"x"}function kt(e){return"y"===e?"height":"width"}const xt=/* @__PURE__ */new Set(["top","bottom"]);function St(e){return xt.has(bt(e))?"y":"x"}function It(e){return Et(St(e))}function Bt(e){return e.replace(/start|end/g,e=>vt[e])}const Vt=["left","right"],Tt=["right","left"],Pt=["top","bottom"],Rt=["bottom","top"];function Nt(e,t,a,n){const o=At(e);let i=function(e,t,a){switch(e){case"top":case"bottom":return a?t?Tt:Vt:t?Vt:Tt;case"left":case"right":return t?Pt:Rt;default:return[]}}(bt(e),"start"===a,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Bt)))),i}function Ut(e){return e.replace(/left|right|bottom|top/g,e=>yt[e])}function Dt(e){const{x:t,y:a,width:n,height:o}=e;return{width:n,height:o,top:a,left:t,right:t+n,bottom:a+o,x:t,y:a}}function Ft(e,t,a){let{reference:n,floating:o}=e;const i=St(t),r=It(t),s=kt(r),l=bt(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(At(t)){case"start":h[r]-=p*(a&&c?-1:1);break;case"end":h[r]+=p*(a&&c?-1:1)}return h}async function _t(e,t){var a;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:r,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Ct(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(h),m=s[p?"floating"===d?"reference":"floating":d],g=Dt(await i.getClippingRect({element:null==(a=await(null==i.isElement?void 0:i.isElement(m)))||a?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:o,width:r.floating.width,height:r.floating.height}:r.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},C=Dt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-C.top+f.top)/w.y,bottom:(C.bottom-g.bottom+f.bottom)/w.y,left:(g.left-C.left+f.left)/w.x,right:(C.right-g.right+f.right)/w.x}}const Lt=/* @__PURE__ */new Set(["left","top"]);function Mt(){return"undefined"!=typeof window}function Ot(e){return Ht(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qt(e){var t;return null==(t=(Ht(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ht(e){return!!Mt()&&(e instanceof Node||e instanceof jt(e).Node)}function zt(e){return!!Mt()&&(e instanceof Element||e instanceof jt(e).Element)}function Jt(e){return!!Mt()&&(e instanceof HTMLElement||e instanceof jt(e).HTMLElement)}function Wt(e){return!(!Mt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot)}const Qt=/* @__PURE__ */new Set(["inline","contents"]);function Kt(e){const{overflow:t,overflowX:a,overflowY:n,display:o}=ra(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+a)&&!Qt.has(o)}const Gt=/* @__PURE__ */new Set(["table","td","th"]);function Xt(e){return Gt.has(Ot(e))}const Yt=[":popover-open",":modal"];function Zt(e){return Yt.some(t=>{try{return e.matches(t)}catch(a){return!1}})}const $t=["transform","translate","scale","rotate","perspective"],ea=["transform","translate","scale","rotate","perspective","filter"],ta=["paint","layout","strict","content"];function aa(e){const t=na(),a=zt(e)?ra(e):e;return $t.some(e=>!!a[e]&&"none"!==a[e])||!!a.containerType&&"normal"!==a.containerType||!t&&!!a.backdropFilter&&"none"!==a.backdropFilter||!t&&!!a.filter&&"none"!==a.filter||ea.some(e=>(a.willChange||"").includes(e))||ta.some(e=>(a.contain||"").includes(e))}function na(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const oa=/* @__PURE__ */new Set(["html","body","#document"]);function ia(e){return oa.has(Ot(e))}function ra(e){return jt(e).getComputedStyle(e)}function sa(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function la(e){if("html"===Ot(e))return e;const t=e.assignedSlot||e.parentNode||Wt(e)&&e.host||qt(e);return Wt(t)?t.host:t}function ca(e){const t=la(e);return ia(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&Kt(t)?t:ca(t)}function ua(e,t,a){var n;void 0===t&&(t=[]),void 0===a&&(a=!0);const o=ca(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=jt(o);if(i){const e=da(r);return t.concat(r,r.visualViewport||[],Kt(o)?o:[],e&&a?ua(e):[])}return t.concat(o,ua(o,[],a))}function da(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pa(e){const t=ra(e);let a=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Jt(e),i=o?e.offsetWidth:a,r=o?e.offsetHeight:n,s=ft(a)!==i||ft(n)!==r;return s&&(a=i,n=r),{width:a,height:n,$:s}}function ha(e){return zt(e)?e:e.contextElement}function fa(e){const t=ha(e);if(!Jt(t))return gt(1);const a=t.getBoundingClientRect(),{width:n,height:o,$:i}=pa(t);let r=(i?ft(a.width):a.width)/n,s=(i?ft(a.height):a.height)/o;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const ma=/* @__PURE__ */gt(0);function ga(e){const t=jt(e);return na()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ma}function ya(e,t,a,n){void 0===t&&(t=!1),void 0===a&&(a=!1);const o=e.getBoundingClientRect(),i=ha(e);let r=gt(1);t&&(n?zt(n)&&(r=fa(n)):r=fa(e));const s=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==jt(e))&&t}(i,a,n)?ga(i):gt(0);let l=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,u=o.width/r.x,d=o.height/r.y;if(i){const e=jt(i),t=n&&zt(n)?jt(n):n;let a=e,o=da(a);for(;o&&n&&t!==a;){const e=fa(o),t=o.getBoundingClientRect(),n=ra(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=r,a=jt(o),o=da(a)}}return Dt({width:u,height:d,x:l,y:c})}function va(e,t){const a=sa(e).scrollLeft;return t?t.left+a:ya(qt(e)).left+a}function wa(e,t){const a=e.getBoundingClientRect();return{x:a.left+t.scrollLeft-va(e,a),y:a.top+t.scrollTop}}const Ca=/* @__PURE__ */new Set(["absolute","fixed"]);function ba(e,t,a){let n;if("viewport"===t)n=function(e,t){const a=jt(e),n=qt(e),o=a.visualViewport;let i=n.clientWidth,r=n.clientHeight,s=0,l=0;if(o){i=o.width,r=o.height;const e=na();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=va(n);if(c<=0){const e=n.ownerDocument,t=e.body,a=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(a.marginLeft)+parseFloat(a.marginRight)||0,r=Math.abs(n.clientWidth-t.clientWidth-o);r<=25&&(i-=r)}else c<=25&&(i+=c);return{width:i,height:r,x:s,y:l}}(e,a);else if("document"===t)n=function(e){const t=qt(e),a=sa(e),n=e.ownerDocument.body,o=ht(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ht(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-a.scrollLeft+va(e);const s=-a.scrollTop;return"rtl"===ra(n).direction&&(r+=ht(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:r,y:s}}(qt(e));else if(zt(t))n=function(e,t){const a=ya(e,!0,"fixed"===t),n=a.top+e.clientTop,o=a.left+e.clientLeft,i=Jt(e)?fa(e):gt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,a);else{const a=ga(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Dt(n)}function Aa(e,t){const a=la(e);return!(a===t||!zt(a)||ia(a))&&("fixed"===ra(a).position||Aa(a,t))}function Ea(e,t,a){const n=Jt(t),o=qt(t),i="fixed"===a,r=ya(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=gt(0);function c(){l.x=va(o)}if(n||!n&&!i)if(("body"!==Ot(t)||Kt(o))&&(s=sa(t)),n){const e=ya(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=!o||n||i?gt(0):wa(o,s);return{x:r.left+s.scrollLeft-l.x-u.x,y:r.top+s.scrollTop-l.y-u.y,width:r.width,height:r.height}}function ka(e){return"static"===ra(e).position}function xa(e,t){if(!Jt(e)||"fixed"===ra(e).position)return null;if(t)return t(e);let a=e.offsetParent;return qt(e)===a&&(a=a.ownerDocument.body),a}function Sa(e,t){const a=jt(e);if(Zt(e))return a;if(!Jt(e)){let t=la(e);for(;t&&!ia(t);){if(zt(t)&&!ka(t))return t;t=la(t)}return a}let n=xa(e,t);for(;n&&Xt(n)&&ka(n);)n=xa(n,t);return n&&ia(n)&&ka(n)&&!aa(n)?a:n||function(e){let t=la(e);for(;Jt(t)&&!ia(t);){if(aa(t))return t;if(Zt(t))return null;t=la(t)}return null}(e)||a}const Ia={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:a,offsetParent:n,strategy:o}=e;const i="fixed"===o,r=qt(n),s=!!t&&Zt(t.floating);if(n===r||s&&i)return a;let l={scrollLeft:0,scrollTop:0},c=gt(1);const u=gt(0),d=Jt(n);if((d||!d&&!i)&&(("body"!==Ot(n)||Kt(r))&&(l=sa(n)),Jt(n))){const e=ya(n);c=fa(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const p=!r||d||i?gt(0):wa(r,l);return{width:a.width*c.x,height:a.height*c.y,x:a.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:a.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:qt,getClippingRect:function(e){let{element:t,boundary:a,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===a?Zt(t)?[]:function(e,t){const a=t.get(e);if(a)return a;let n=ua(e,[],!1).filter(e=>zt(e)&&"body"!==Ot(e)),o=null;const i="fixed"===ra(e).position;let r=i?la(e):e;for(;zt(r)&&!ia(r);){const t=ra(r),a=aa(r);a||"fixed"!==t.position||(o=null),(i?!a&&!o:!a&&"static"===t.position&&o&&Ca.has(o.position)||Kt(r)&&!a&&Aa(e,r))?n=n.filter(e=>e!==r):o=t,r=la(r)}return t.set(e,n),n}(t,this._c):[].concat(a),n],r=i[0],s=i.reduce((e,a)=>{const n=ba(t,a,o);return e.top=ht(n.top,e.top),e.right=pt(n.right,e.right),e.bottom=pt(n.bottom,e.bottom),e.left=ht(n.left,e.left),e},ba(t,r,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Sa,getElementRects:async function(e){const t=this.getOffsetParent||Sa,a=this.getDimensions,n=await a(e.floating);return{reference:Ea(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:a}=pa(e);return{width:t,height:a}},getScale:fa,isElement:zt,isRTL:function(e){return"rtl"===ra(e).direction}};function Ba(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Va(e,t,a,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=ha(e),u=o||i?[...c?ua(c):[],...ua(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",a,{passive:!0}),i&&e.addEventListener("resize",a)});const d=c&&s?function(e,t){let a,n=null;const o=qt(e);function i(){var e;clearTimeout(a),null==(e=n)||e.disconnect(),n=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-mt(d)+"px "+-mt(o.clientWidth-(u+p))+"px "+-mt(o.clientHeight-(d+h))+"px "+-mt(u)+"px",threshold:ht(0,pt(1,l))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(n!==l){if(!m)return r();n?r(!1,n):a=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==n||Ba(c,e.getBoundingClientRect())||r(),m=!1}try{n=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(y){n=new IntersectionObserver(g,f)}n.observe(e)}(!0),i}(c,a):null;let p,h=-1,f=null;r&&(f=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),a()}),c&&!l&&f.observe(c),f.observe(t));let m=l?ya(e):null;return l&&function t(){const n=ya(e);m&&!Ba(m,n)&&a();m=n,p=requestAnimationFrame(t)}(),a(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",a),i&&e.removeEventListener("resize",a)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Ta=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var a,n;const{x:o,y:i,placement:r,middlewareData:s}=t,l=await async function(e,t){const{placement:a,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),r=bt(a),s=At(a),l="y"===St(a),c=Lt.has(r)?-1:1,u=i&&l?-1:1,d=Ct(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return r===(null==(a=s.offset)?void 0:a.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:r}}}}},Pa=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:s={fn:e=>{let{x:t,y:a}=e;return{x:t,y:a}}},...l}=Ct(e,t),c={x:a,y:n},u=await _t(t,l),d=St(bt(o)),p=Et(d);let h=c[p],f=c[d];if(i){const e="y"===p?"bottom":"right";h=wt(h+u["y"===p?"top":"left"],h,h-u[e])}if(r){const e="y"===d?"bottom":"right";f=wt(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-a,y:m.y-n,enabled:{[p]:i,[d]:r}}}}}},Ra=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var a,n;const{placement:o,middlewareData:i,rects:r,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Ct(e,t);if(null!=(a=i.arrow)&&a.alignmentOffset)return{};const y=bt(o),v=St(s),w=bt(s)===s,C=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(w||!m?[Ut(s)]:function(e){const t=Ut(e);return[Bt(e),t,Bt(t)]}(s)),A="none"!==f;!p&&A&&b.push(...Nt(s,m,f,C));const E=[s,...b],k=await _t(t,g),x=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&x.push(k[y]),d){const e=function(e,t,a){void 0===a&&(a=!1);const n=At(e),o=It(e),i=kt(o);let r="x"===o?n===(a?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=Ut(r)),[r,Ut(r)]}(o,r,C);x.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:x}],!x.every(e=>e<=0)){var I,B;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=E[e];if(t){if(!("alignment"===d&&v!==St(t))||S.every(e=>St(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let a=null==(B=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:B.placement;if(!a)switch(h){case"bestFit":{var V;const e=null==(V=S.filter(e=>{if(A){const t=St(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:V[0];e&&(a=e);break}case"initialPlacement":a=s}if(o!==a)return{reset:{placement:a}}}return{}}}},Na=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var a,n;const{placement:o,rects:i,platform:r,elements:s}=t,{apply:l=()=>{},...c}=Ct(e,t),u=await _t(t,c),d=bt(o),p=At(o),h="y"===St(o),{width:f,height:m}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const v=m-u.top-u.bottom,w=f-u.left-u.right,C=pt(m-u[g],v),b=pt(f-u[y],w),A=!t.middlewareData.shift;let E=C,k=b;if(null!=(a=t.middlewareData.shift)&&a.enabled.x&&(k=w),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(E=v),A&&!p){const e=ht(u.left,0),t=ht(u.right,0),a=ht(u.top,0),n=ht(u.bottom,0);h?k=f-2*(0!==e||0!==t?e+t:ht(u.left,u.right)):E=m-2*(0!==a||0!==n?a+n:ht(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:E});const x=await r.getDimensions(s.floating);return f!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}},Ua=(e,t,a)=>{const n=/* @__PURE__ */new Map,o={platform:Ia,...a},i={...o.platform,_c:n};return(async(e,t,a)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:r}=a,s=i.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ft(c,n,l),p=n,h={},f=0;for(let m=0;m<s.length;m++){const{name:a,fn:i}=s[m],{x:g,y:y,data:v,reset:w}=await i({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:c,platform:r,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,h={...h,[a]:{...h[a],...v}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await r.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Ft(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};const Da="data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e",Fa="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_a={class:"selection-wrapper"},La={class:"tag-text"},Ma=["onClick"],Oa={key:0,class:"search-tag collapse"},ja=["placeholder"],qa={class:"suffix-area"},Ha={key:1,class:"loading-spinner"},za={class:"search-icon"},Ja=["src"],Wa={key:0,class:"history-section"},Qa={class:"history-header"},Ka=["onMousedown"],Ga=["src"],Xa={class:"type-text"},Ya={class:"result-text"},Za={key:0,class:"status-msg"},$a=["onMousedown"],en=["src"],tn={class:"type-text"},an={class:"result-text"},nn={key:0,class:"load-more-msg"},on={key:2,class:"status-msg"},rn={key:0,class:"no-result-label"},sn={key:1,class:"no-result-label"},ln={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},cn=["src"],un=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a},dn=/* @__PURE__ */un(/* @__PURE__ */o({__name:"index",props:{modelValue:{default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{default:()=>["Continent","Country","Region","City","Seaport","Airport"]},historyKey:{default:void 0},lang:{default:""},placeholder:{},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},parentId:{default:null},parentType:{default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","blur","change","submit-search","remove","clear","apply-data","apply-data-open","apply-data-close"],setup(o,{emit:I}){const B=o,V=I,T=e(null),P=e(null),R=e(null),N=e(""),U=e(""),D=e(!1);let F=null;const _=e(!1),L=t(()=>B.modelValue?Array.isArray(B.modelValue)?B.modelValue:[B.modelValue]:[]),M=t(()=>B.multiple?B.collapseTags?L.value.slice(0,1):L.value:[]),O=t(()=>N.value||L.value.length>0),j=t(()=>B.multiple?N.value?10*N.value.length+20+"px":"10px":"100%"),{searchHistory:q,saveToHistory:H,clearHistory:z}=function(n){const o=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return a(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{o.value=JSON.parse(t)}catch(e){o.value=[]}}}),{searchHistory:o,saveToHistory:e=>{if(!e||!i)return;const t=o.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const a=t.slice(0,4);if(s.value){o.value=a;try{localStorage.setItem(r.value,JSON.stringify(a))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{o.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(B,"historyKey")),{searchResults:J,loading:W,isFetchingMore:Q,isFinished:K,currentPage:G,fetchData:X,filterByTypes:Y}=dt(N,i(B,"searchTypeList"),{parentId:i(B,"parentId"),parentType:i(B,"parentType")}),{floatingStyles:Z,startTrack:$,stopTrack:ee}=function(t,a){const o=e({position:"fixed",left:"0",top:"0",zIndex:3e3});let i=null;const r=()=>{t.value&&a.value&&Ua(t.value,a.value,{placement:"bottom-start",strategy:"fixed",middleware:[Ta(6),Ra(),Pa({padding:10}),Na({apply({rects:e,elements:t,availableWidth:a}){const n=`${e.reference.width}px`,o=e.reference.width;Object.assign(t.floating.style,{width:"max-content",minWidth:n,maxWidth:`${Math.max(o,a-20)}px`})}})]}).then(({x:e,y:t})=>{Object.assign(o.value,{left:`${e}px`,top:`${t}px`})})},s=()=>{i&&(i(),i=null)};return n(s),{floatingStyles:o,startTrack:()=>{t.value&&a.value&&(i=Va(t.value,a.value,r))},stopTrack:s}}(P,R),{hydrateMultiple:te,hydrateSingle:ae}=ct(ut),{isDropdownVisible:ne,openDropdown:oe,handleAfterSelect:ie,handleBlur:re}=function(t,a,n,o){const i=e(!1),r=()=>i.value=!1;return{isDropdownVisible:i,openDropdown:()=>i.value=!0,closeDropdown:r,handleAfterSelect:()=>{t?a.value?.focus():(n.value="",r(),a.value?.blur())},handleBlur:()=>{setTimeout(()=>{r(),o("blur"),n.value=""},200)}}}(i(B,"multiple").value,T,N,V),{formItem:se}=ze(),le=t(()=>J.value.length>0||W.value||N.value||q.value.length>0),ce=t(()=>{if(B.lang)return"en"===B.lang||"en-US"===B.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),ue=t(()=>B.multiple&&L.value.length>0?"":D.value&&!B.multiple?U.value:B.placeholder?B.placeholder:ce.value?"Please enter...":"请输入..."),de=e=>({City:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",Country:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACmklEQVR4AXRTT0jUQRT+3uyqGxgYeCiy1JAo6JBUp4Q81EEiKKiDa+H+/ENGHgPpZtChQ4EHL+Ku+9t0V7EkQSGPBYGHBIU6RAqt2cFDBw9C+3de3yy7hobDvHm/+d4337x58xuDQ9r4+FRDLJZqG49PtrvvQ2j4TyDmJ7sm/NRqoMpsIYD3RgIL7pvY54lEqvug0J5APB4PxfzUOwFGRWReVJp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SQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII="),pe=e=>{const t={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}}[e];return t?ce.value?t.en:t.cn:e},he=e=>L.value.some(t=>t.id===e.id),fe=()=>T.value?.focus(),me=e=>ce.value?e.displayEn||e.display||"":e.displayCn||e.display||"",ge=e=>{if(H(e),B.multiple){if(!he(e)){const t=[...L.value,e];V("update:modelValue",t)}}else U.value=me(e),D.value=!0,V("update:modelValue",e);V("select",e),V("change",e),se?.validate?.("change").catch(()=>{}),ie()},ye=e=>{const t=L.value.filter(t=>t.id!==e.id);V("update:modelValue",t),V("remove",e)},ve=()=>{B.multiple&&!N.value&&L.value.length>0&&ye(L.value[L.value.length-1])},we=()=>{N.value="",D.value=!1,U.value="";const e=B.multiple?[]:null;V("update:modelValue",e),V("clear"),se?.validate?.("change").catch(()=>{})},Ce=async()=>{if(oe(),!B.multiple&&D.value&&0===J.value.length){const e=B.modelValue;if(e?.id){W.value=!0;try{const t=await ut(e.id,e.type);J.value=Y(t.records)}finally{W.value=!1}}}},be=e=>{re(),se?.validate?.("blur").catch(()=>{})},Ae=e=>{const t=e.target;t&&(""!==t.value||B.multiple||we())},Ee=()=>{V("submit-search",L.value),ne.value=!1},ke=e=>{const t=e.target;if(!t)return;const{scrollTop:a,scrollHeight:n,clientHeight:o}=t;a+o>=n-20&&(W.value||Q.value||K.value||!N.value||X(G.value+1,!0))},xe=e=>{V("apply-data",e)},Se=()=>{_.value=!0,V("apply-data-open")},Ie=()=>{N.value="",_.value=!1,V("apply-data-close")};return r(()=>B.parentId,()=>{B.multiple||(N.value="",J.value=[])}),r(ne,e=>{e?$():ee()}),r(N,e=>{if(!e.trim())return J.value=[],void(F&&(clearTimeout(F),F=null));F&&clearTimeout(F),F=setTimeout(()=>X(1,!1),300)}),r(()=>B.modelValue,async(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return;if(B.multiple&&Array.isArray(e)){try{const{updatedList:t,hasChanged:a}=await te(e);a&&V("update:modelValue",t)}catch(n){console.error("Batch fetch detail failed:",n)}return}const a=e;if(!a)return D.value=!1,void(U.value="");if("object"==typeof a)if(a.id&&a.type&&!a.display)try{const e=await ae(a);e&&(U.value=me(e),D.value=!0)}catch(n){console.error("Single fetch detail failed:",n)}else U.value=me(a),D.value=!!U.value;else U.value=String(a),D.value=!!a},{immediate:!0,deep:!0}),n(()=>{ee(),F&&(clearTimeout(F),F=null)}),(e,t)=>(l(),s("div",{class:c(["search-container",{"is-disabled":o.disabled}])},[u("div",{class:c(["search-input-wrapper",{"is-multiple":o.multiple}]),ref_key:"referenceRef",ref:P,onClick:fe},[u("div",_a,[h(e.$slots,"prefix",{},void 0,!0),o.multiple&&L.value.length>0?(l(),s(g,{key:0},[(l(!0),s(g,null,y(M.value,(e,t)=>(l(),s("div",{key:e.id||t,class:"search-tag"},[u("span",La,v(me(e)),1),u("span",{class:"tag-close",onClick:w(t=>ye(e),["stop"])},"×",8,Ma)]))),128)),o.collapseTags&&L.value.length>1?(l(),s("div",Oa," + "+v(L.value.length-1),1)):f("",!0)],64)):f("",!0),m(u("input",{ref_key:"inputRef",ref:T,class:c({"is-selected-state":D.value&&!o.multiple}),"onUpdate:modelValue":t[0]||(t[0]=e=>N.value=e),type:"text",placeholder:ue.value,style:b({width:j.value}),onFocus:Ce,onBlur:be,onInput:Ae,onKeydown:C(ve,["delete"])},null,46,ja),[[A,N.value]])]),h(e.$slots,"suffix",{},()=>[u("div",qa,[O.value?(l(),s("span",{key:0,class:"clear-icon",onMousedown:t[1]||(t[1]=w(()=>{},["prevent"])),onClick:w(we,["stop"])},"ⓧ",32)):f("",!0),E(W)&&!E(Q)?(l(),s("div",Ha)):!E(W)&&o.showSearchIcon?(l(),s("button",{key:2,class:"search-btn",onClick:w(Ee,["stop"])},[u("span",za,[u("img",{src:E(Da),alt:"search"},null,8,Ja)])])):f("",!0)])],!0)],2),(l(),d(k,{to:"body"},[m(u("div",{ref_key:"floatingRef",ref:R,class:"dropdown-list",style:b(E(Z)),onScroll:ke},[h(e.$slots,"history",{searchHistory:E(q)},()=>[E(q).length>0&&!N.value?(l(),s("div",Wa,[u("div",Qa,[u("span",null,v(ce.value?"Recent search":"最近搜索"),1),u("span",{class:"clear-btn",onMousedown:t[2]||(t[2]=w(()=>{},["prevent"])),onClick:t[3]||(t[3]=w((...e)=>E(z)&&E(z)(...e),["stop"]))},v(ce.value?"Clear":"清空"),33)]),(l(!0),s(g,null,y(E(q),(e,t)=>(l(),s("div",{key:"hist-"+t,class:"dropdown-item",onMousedown:w(t=>ge(e),["prevent"])},[u("div",{class:"category-tag",style:b(o.showItemTag?{}:{display:"none"})},[u("img",{class:"type-icon",src:de(e.type),alt:""},null,8,Ga),u("span",Xa,v(pe(e.type)),1)],4),u("div",Ya,v(me(e)),1)],40,Ka))),128)),t[7]||(t[7]=u("hr",{class:"divider"},null,-1))])):f("",!0)],!0),E(W)&&!E(Q)?(l(),s("div",Za,v(ce.value?"Searching...":"正在搜索中..."),1)):E(J).length>0?(l(),s(g,{key:1},[h(e.$slots,"results",{searchResults:E(J)},()=>[(l(!0),s(g,null,y(E(J),(e,t)=>(l(),s("div",{key:t,class:c(["dropdown-item",{"is-active":he(e)}]),onMousedown:w(t=>ge(e),["prevent"])},[u("div",{class:"category-tag",style:b(o.showItemTag?{}:{display:"none"})},[u("img",{class:"type-icon",src:de(e.type),alt:""},null,8,en),u("span",tn,v(pe(e.type)),1)],4),u("div",an,v(me(e)),1)],42,$a))),128))],!0),E(Q)?(l(),s("div",nn,v(ce.value?"Loading more...":"正在加载更多..."),1)):f("",!0)],64)):N.value&&!E(W)?(l(),s("div",on,[h(e.$slots,"noData",{},()=>[o.showApplyData?(l(),s("div",sn,[x(v(ce.value?"No results found. ":"暂无结果,")+" ",1),u("div",ln,[u("span",{class:"apply-data jc:cursor-pointer jc:ml-1",onClick:t[4]||(t[4]=w(()=>_.value=!0,["stop"]))},v(ce.value?"Apply for data addition":"申请补充数据 "),1),u("img",{src:E(Fa),alt:"",class:"apply-data-more-icon",onClick:t[5]||(t[5]=w(()=>_.value=!0,["stop"]))},null,8,cn)])])):(l(),s("p",rn,v(ce.value?`No results found related to "${N.value}".`:`未找到与 "${N.value}" 相关的结果`),1))],!0)])):f("",!0)],36),[[S,E(ne)&&le.value]])])),p(io,{searchValue:N.value,value:_.value,"onUpdate:value":t[6]||(t[6]=e=>_.value=e),lang:o.lang,onConfirm:xe,onOpen:Se,onClose:Ie},null,8,["searchValue","value","lang"])],2))}}),[["__scopeId","data-v-41ee7833"]]),pn=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"}));var hn="object"==typeof global&&global&&global.Object===Object&&global,fn="object"==typeof self&&self&&self.Object===Object&&self,mn=hn||fn||Function("return this")(),gn=mn.Symbol,yn=Object.prototype,vn=yn.hasOwnProperty,wn=yn.toString,Cn=gn?gn.toStringTag:void 0;var bn=Object.prototype.toString;var An=gn?gn.toStringTag:void 0;function En(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":An&&An in Object(e)?function(e){var t=vn.call(e,Cn),a=e[Cn];try{e[Cn]=void 0;var n=!0}catch(i){}var o=wn.call(e);return n&&(t?e[Cn]=a:delete e[Cn]),o}(e):function(e){return bn.call(e)}(e)}var kn=/\s/;var xn=/^\s+/;function Sn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&kn.test(e.charAt(t)););return t}(e)+1).replace(xn,""):e}function In(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Bn=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,Tn=/^0o[0-7]+$/i,Pn=parseInt;function Rn(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==En(e)}(e))return NaN;if(In(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=In(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Sn(e);var a=Vn.test(e);return a||Tn.test(e)?Pn(e.slice(2),a?2:8):Bn.test(e)?NaN:+e}var Nn=function(){return mn.Date.now()},Un=Math.max,Dn=Math.min;function Fn(e,t,a){var n,o,i,r,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var a=n,i=o;return n=o=void 0,c=t,r=e.apply(i,a)}function f(e){var a=e-l;return void 0===l||a>=t||a<0||d&&e-c>=i}function m(){var e=Nn();if(f(e))return g(e);s=setTimeout(m,function(e){var a=t-(e-l);return d?Dn(a,i-(e-c)):a}(e))}function g(e){return s=void 0,p&&n?h(e):(n=o=void 0,r)}function y(){var e=Nn(),a=f(e);if(n=arguments,o=this,l=e,a){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?h(e):r}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),r}return t=Rn(t)||0,In(a)&&(u=!!a.leading,i=(d="maxWait"in a)?Un(Rn(a.maxWait)||0,t):i,p="trailing"in a?!!a.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},y.flush=function(){return void 0===s?r:g(Nn())},y}const _n={key:0,class:"modal-container"},Ln={class:"modal-header"},Mn={class:"header-title"},On={class:"modal-body"},jn={class:"form-item"},qn={class:"required"},Hn={class:"input-box"},zn=["placeholder"],Jn={key:0,class:"error-message"},Wn={class:"form-item"},Qn={class:"required"},Kn={class:"type-group"},Gn=["onClick"],Xn={key:0,class:"check-mark"},Yn={class:"form-item"},Zn={class:"required"},$n={key:0,class:"error-message"},eo={class:"modal-footer"},to={key:1,class:"apply-success-container"},ao={class:"apply-success-container__content"},no={class:"desc"},oo={class:"apply-success-container__btns"},io=/* @__PURE__ */un({__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:e=>["","en","en-US","zh-CN","cn"].includes(e)},searchValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","confirm","open","close"],setup(a,{emit:n}){const o=a,i=n,d=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],h=e(null),C=e(!1),b=e(!1);r(()=>o.value,e=>{e&&(console.log("🍉 ~ ApplyDataDialog.vue:138 ~ props.searchValue:",o.searchValue),o.searchValue&&(S.name=o.searchValue),i("open"))});const k=I({name:"",country:""}),S=I({name:"",type:"City"}),B=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),V=()=>{k.name="",k.country="",C.value=!1,S.name="",S.type="City",h.value=null,i("update:value",!1),i("close")},T=Fn(()=>{k.name="",k.country="";let e=!0;S.name.trim()||(k.name=B.value?"Please enter the data":"请输入需要补充的数据",e=!1),h.value||(k.country=B.value?"Please select a country":"请选择国家",e=!1),e&&(b.value=!0,J({reportData:S.name,reportType:S.type.toLocaleLowerCase(),countryId:h.value.id}).then(e=>{console.log("🍉 ~ ApplyDataDialog.vue:185 ~ handleConfirm ~ res:",e,e.code),0===e.code&&(C.value=!0,Je.success(B.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),i("confirm",{...S,country:h.value}))}).catch(e=>{console.log("🍉 ~ ApplyDataDialog.vue:187 ~ handleConfirm ~ err:",e)}).finally(()=>{b.value=!1}))},800,{leading:!0,trailing:!1});return(e,t)=>a.value?(l(),s("div",{key:0,class:"modal-mask",onClick:w(V,["self"])},[C.value?(l(),s("div",to,[u("div",ao,[t[5]||(t[5]=u("div",{class:"icon"},null,-1)),u("div",no,v(B.value?"Application received. Awaiting review!":"平台已收到申请,请等待审核!"),1)]),u("div",oo,[u("div",{class:"button jc:cursor-pointer",onClick:w(V,["stop"])},v(B.value?"OK":"好的"),1)])])):(l(),s("div",_n,[u("div",Ln,[u("span",Mn,v(B.value?"Apply for data addition":"申请补充数据"),1),u("div",{class:"close-btn",onClick:V},"×")]),u("div",On,[u("div",jn,[u("label",qn,v(B.value?"Data To Add":"需补充的数据"),1),u("div",Hn,[m(u("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>S.name=e),type:"text",placeholder:a.placeholder??(B.value?" Please enter":"请输入"),class:c(["custom-input",{"input-error":k.name}]),onInput:t[1]||(t[1]=e=>k.name="")},null,42,zn),[[A,S.name]])]),k.name?(l(),s("div",Jn,v(k.name),1)):f("",!0)]),u("div",Wn,[u("label",Qn,v(B.value?"Type":"所属类别"),1),u("div",Kn,[(l(),s(g,null,y(d,e=>u("div",{key:e.type,class:c(["type-btn",{active:S.type===e.type}]),onClick:t=>S.type=e.type},[x(v(B.value?e.typeEn:e.typeCn)+" ",1),S.type===e.type?(l(),s("div",Xn)):f("",!0)],10,Gn)),64))])]),u("div",Yn,[u("label",Zn,v(B.value?"Country":"国家"),1),u("div",{class:c({"search-error-wrap":k.country})},[p(dn,{"search-type-list":["Country"],"model-value":h.value,"onUpdate:modelValue":[t[2]||(t[2]=e=>h.value=e),t[3]||(t[3]=e=>k.country="")],style:{margin:"0 auto"},lang:a.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:a.placeholder??(B.value?" Please enter":"请输入")},null,8,["model-value","lang","placeholder"])],2),k.country?(l(),s("div",$n,v(k.country),1)):f("",!0)])]),u("div",eo,[m((l(),s("div",{class:c(["confirm-btn jc:outline-none!",{"is-loading":b.value}]),onClick:t[4]||(t[4]=(...e)=>E(T)&&E(T)(...e))},[x(v(B.value?"Submit":"申请补充"),1)],2)),[[E(We),b.value]])])]))])):f("",!0)}},[["__scopeId","data-v-98fe6169"]]),ro=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:io},Symbol.toStringTag,{value:"Module"}));const so={class:"global-company-input"},lo={class:"company-option-item"},co=/* @__PURE__ */un({__name:"index",props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},city:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1}},emits:["update:companyName","update:useKq","update:kqCode","update:kqInfo","change"],setup(a,{emit:o}){const i=a,c=o,p=e(!1),f=e([]),{isEn:m}=function(e=""){return{isEn:t(()=>{if(e)return"en"===e||"en-US"===e;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(t){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(t){}return!1})}}(i.lang),{formItem:w}=ze(),C=t({get:()=>i.companyName,set:e=>c("update:companyName",e)}),b=e(!1),A=e=>{e?(p.value=!0,k(e)):f.value=[]},k=Fn(e=>{console.log("🍉 ~ index.vue:119 ~ props.city:",i.city);const t={current:1,size:50,compName:e,cityName:i.city?.nameCn+"市"};W(t).then(e=>{f.value=e.data.data.records?.map(e=>({value:e.nameCn,code:e.kqId,...e}))||[]}).catch(e=>{console.error("获取公司选项失败:",e),f.value=[]}).finally(()=>{p.value=!1})},800),x=e=>{const t=f.value.find(t=>t.value===e);t?(c("update:useKq",!0),c("update:kqCode",t.code),c("update:kqInfo",t)):(c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{})),c("change",t)},S=e=>{c("update:useKq",!1),c("update:kqCode",""),c("change",e),w?.validate?.("change").catch(()=>{})};return r(()=>i.countryId,()=>{c("update:companyName",""),c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{}),w?.validate?.("change").catch(()=>{}),f.value=[]}),n(()=>{k.cancel()}),(e,t)=>(l(),s("div",so,[[1].includes(Number(i.countryId))?(l(),d(E(Qe),{key:0,modelValue:C.value,"onUpdate:modelValue":t[0]||(t[0]=e=>C.value=e),filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":a.allowCreate,"default-first-option":a.defaultFirstOption,"remote-method":A,loading:p.value,disabled:b.value||i.disabled,placeholder:E(m)?"Company Name in Chinese":"请输入您的公司中文名称",style:{width:"100%"},"popper-class":"company-search dialog-join-us",onChange:x},{prefix:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),default:B(()=>[(l(!0),s(g,null,y(f.value,e=>(l(),d(E(Ke),{key:e.code,label:e.value,value:e.value},{default:B(()=>[u("div",lo,[u("span",null,v(e.value),1)])]),_:2},1032,["label","value"]))),128))]),_:3},8,["modelValue","allow-create","default-first-option","loading","disabled","placeholder"])):(l(),d(E(Ge),{key:1,modelValue:C.value,"onUpdate:modelValue":t[1]||(t[1]=e=>C.value=e),disabled:b.value||i.disabled,placeholder:E(m)?"Company name in English":"请输入您的公司英文名称","max-length":"200",style:{width:"100%"},onChange:S},{prepend:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),_:3},8,["modelValue","disabled","placeholder"]))]))}},[["__scopeId","data-v-24cf1e2e"]]),uo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"})),po={type:"text",name:"fakeUsername",autocomplete:"on"},ho={type:"password",name:"fakePassword",autocomplete:"new-password"},fo={class:"google-input-wrap"},mo={key:0,class:"google-input-wrap-prepend"},go={class:"google-input-wrap-input"};const yo=/* @__PURE__ */un({name:"GoogleInput",components:{ElInput:Ge},inheritAttrs:!1,props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||null!==this.modelValue&&""!==this.modelValue}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){this.$refs.googleInput?.focus?.()},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){try{const t=this.$refs.googleInput?.$el?.querySelector("input");if(!t)return;if("rgb(232, 240, 254)"===window.getComputedStyle(t).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(t){console.error("Autofill detection error:",t)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,a,n,o,i){const r=V("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(u("input",po,null,512),[[S,!1]]),m(u("input",ho,null,512),[[S,!1]]),u("div",fo,[i.isHavePrepend?(l(),s("div",mo,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",go,[p(r,T({ref:"googleInput"},e.$attrs,{"model-value":a.modelValue},P({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:B(()=>[h(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value"]),u("p",{onClick:t[0]||(t[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},v(a.placeholder),1)])])],2)}],["__scopeId","data-v-27eaff9d"]]),vo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:yo},Symbol.toStringTag,{value:"Module"})),wo={type:"text",name:"fakeUsername",autocomplete:"on"},Co={type:"password",name:"fakePassword",autocomplete:"new-password"},bo={class:"google-input-wrap"},Ao={key:0,class:"google-input-wrap-prepend"},Eo={class:"google-input-wrap-input"};const ko=/* @__PURE__ */un({name:"JcFloatInput",components:{ElInput:Ge},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1,autofillTimer:null}),computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){window.navigator.userAgent.indexOf("Chrome")>-1&&this.checkAutofill(0)},beforeUnmount(){this.clearAutofillTimer()},methods:{focusInput(){this.$refs.googleInput?.focus?.()},clearAutofillTimer(){this.autofillTimer&&(clearTimeout(this.autofillTimer),this.autofillTimer=null)},checkAutofill(e){try{const t=this.$refs.googleInput?.$el?.querySelector("input");if(!t)return;if("rgb(232, 240, 254)"===window.getComputedStyle(t).getPropertyValue("background-color"))return void(this.isFocus=!0);e<20&&(this.autofillTimer=setTimeout(()=>{this.checkAutofill(e+1)},100))}catch(t){console.error("Autofill detection error:",t)}},handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,a,n,o,i){const r=V("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(u("input",wo,null,512),[[S,!1]]),m(u("input",Co,null,512),[[S,!1]]),u("div",bo,[i.isHavePrepend?(l(),s("div",Ao,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",Eo,[p(r,T({ref:"googleInput"},e.$attrs,{"model-value":a.modelValue,placeholder:a.placeholder},P({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:B(()=>[h(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value","placeholder"]),u("p",{onClick:t[0]||(t[0]=(...e)=>i.focusInput&&i.focusInput(...e)),class:"google-input-wrap-input-placeholder"},v(i.currentLabel),1)])])],2)}],["__scopeId","data-v-b4df44b2"]]),xo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"}));var So="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var a=function e(){var a=!1;try{a=this instanceof e}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),a}var Vo={exports:{}};var To={exports:{}};const Po=/* @__PURE__ */Bo(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ro;function No(){return Ro||(Ro=1,To.exports=(e=e||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==So&&So.crypto&&(a=So.crypto),!a)try{a=Po}catch(m){}var n=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||/* @__PURE__ */function(){function e(){}return function(t){var a;return e.prototype=t,a=new e,e.prototype=null,a}}(),i={},r=i.lib={},s=r.Base=/* @__PURE__ */function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=r.WordArray=s.extend({init:function(e,a){e=this.words=e||[],this.sigBytes=a!=t?a:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,a=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var r=a[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=r<<24-(n+i)%4*8}else for(var s=0;s<o;s+=4)t[n+s>>>2]=a[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=e.ceil(a/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],a=0;a<e;a+=4)t.push(n());return new l.init(t,e)}}),c=i.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n<t;n+=2)a[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(a,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n<t;n++)a[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(a,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},h=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var a,n=this._data,o=n.words,i=n.sigBytes,r=this.blockSize,s=i/(4*r),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=r)this._doProcessBlock(o,d);a=o.splice(0,c),n.sigBytes-=u}return new l.init(a,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,a){return new e.init(a).finalize(t)}},_createHmacHelper:function(e){return function(t,a){return new f.HMAC.init(e,a).finalize(t)}}});var f=i.algo={};return i}(Math),e)),To.exports;var e}var Uo,Do={exports:{}};function Fo(){return Uo?Do.exports:(Uo=1,Do.exports=(r=No(),a=(t=r).lib,n=a.Base,o=a.WordArray,(i=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=n.extend({init:function(t,a){t=this.words=t||[],this.sigBytes=a!=e?a:8*t.length},toX32:function(){for(var e=this.words,t=e.length,a=[],n=0;n<t;n++){var i=e[n];a.push(i.high),a.push(i.low)}return o.create(a,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),a=t.length,o=0;o<a;o++)t[o]=t[o].clone();return e}}),r));var e,t,a,n,o,i,r}var _o,Lo={exports:{}};function Mo(){return _o||(_o=1,Lo.exports=(e=No(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,a=t.init,n=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],o=0;o<t;o++)n[o>>>2]|=e[o]<<24-o%4*8;a.call(this,n,t)}else a.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),Lo.exports;var e}var Oo,jo={exports:{}};function qo(){return Oo?jo.exports:(Oo=1,jo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray,n=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],o=0;o<a;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return a.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],i=0;i<a;i+=2){var r=o(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return a.create(n,2*t)}}}(),e.enc.Utf16));var e}var Ho,zo={exports:{}};function Jo(){return Ho?zo.exports:(Ho=1,zo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray;function n(e,t,n){for(var o=[],i=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return a.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,a=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<a;i+=3)for(var r=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<a;s++)o.push(n.charAt(r>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,a=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<a.length;i++)o[a.charCodeAt(i)]=i}var r=a.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(t=s)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Wo,Qo={exports:{}};function Ko(){return Wo?Qo.exports:(Wo=1,Qo.exports=(e=No(),function(){var t=e,a=t.lib.WordArray;function n(e,t,n){for(var o=[],i=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return a.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var a=e.words,n=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],r=0;r<n;r+=3)for(var s=(a[r>>>2]>>>24-r%4*8&255)<<16|(a[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|a[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l<n;l++)i.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var a=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<o.length;r++)i[o.charCodeAt(r)]=r}var s=o.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(a=l)}return n(e,a,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var Go,Xo={exports:{}};function Yo(){return Go?Xo.exports:(Go=1,Xo.exports=(e=No(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=r.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var n=t+a,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,r=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],w=e[t+8],C=e[t+9],b=e[t+10],A=e[t+11],E=e[t+12],k=e[t+13],x=e[t+14],S=e[t+15],I=i[0],B=i[1],V=i[2],T=i[3];I=c(I,B,V,T,r,7,s[0]),T=c(T,I,B,V,l,12,s[1]),V=c(V,T,I,B,h,17,s[2]),B=c(B,V,T,I,f,22,s[3]),I=c(I,B,V,T,m,7,s[4]),T=c(T,I,B,V,g,12,s[5]),V=c(V,T,I,B,y,17,s[6]),B=c(B,V,T,I,v,22,s[7]),I=c(I,B,V,T,w,7,s[8]),T=c(T,I,B,V,C,12,s[9]),V=c(V,T,I,B,b,17,s[10]),B=c(B,V,T,I,A,22,s[11]),I=c(I,B,V,T,E,7,s[12]),T=c(T,I,B,V,k,12,s[13]),V=c(V,T,I,B,x,17,s[14]),I=u(I,B=c(B,V,T,I,S,22,s[15]),V,T,l,5,s[16]),T=u(T,I,B,V,y,9,s[17]),V=u(V,T,I,B,A,14,s[18]),B=u(B,V,T,I,r,20,s[19]),I=u(I,B,V,T,g,5,s[20]),T=u(T,I,B,V,b,9,s[21]),V=u(V,T,I,B,S,14,s[22]),B=u(B,V,T,I,m,20,s[23]),I=u(I,B,V,T,C,5,s[24]),T=u(T,I,B,V,x,9,s[25]),V=u(V,T,I,B,f,14,s[26]),B=u(B,V,T,I,w,20,s[27]),I=u(I,B,V,T,k,5,s[28]),T=u(T,I,B,V,h,9,s[29]),V=u(V,T,I,B,v,14,s[30]),I=d(I,B=u(B,V,T,I,E,20,s[31]),V,T,g,4,s[32]),T=d(T,I,B,V,w,11,s[33]),V=d(V,T,I,B,A,16,s[34]),B=d(B,V,T,I,x,23,s[35]),I=d(I,B,V,T,l,4,s[36]),T=d(T,I,B,V,m,11,s[37]),V=d(V,T,I,B,v,16,s[38]),B=d(B,V,T,I,b,23,s[39]),I=d(I,B,V,T,k,4,s[40]),T=d(T,I,B,V,r,11,s[41]),V=d(V,T,I,B,f,16,s[42]),B=d(B,V,T,I,y,23,s[43]),I=d(I,B,V,T,C,4,s[44]),T=d(T,I,B,V,E,11,s[45]),V=d(V,T,I,B,S,16,s[46]),I=p(I,B=d(B,V,T,I,h,23,s[47]),V,T,r,6,s[48]),T=p(T,I,B,V,v,10,s[49]),V=p(V,T,I,B,x,15,s[50]),B=p(B,V,T,I,g,21,s[51]),I=p(I,B,V,T,E,6,s[52]),T=p(T,I,B,V,f,10,s[53]),V=p(V,T,I,B,b,15,s[54]),B=p(B,V,T,I,l,21,s[55]),I=p(I,B,V,T,w,6,s[56]),T=p(T,I,B,V,S,10,s[57]),V=p(V,T,I,B,y,15,s[58]),B=p(B,V,T,I,k,21,s[59]),I=p(I,B,V,T,m,6,s[60]),T=p(T,I,B,V,A,10,s[61]),V=p(V,T,I,B,h,15,s[62]),B=p(B,V,T,I,C,21,s[63]),i[0]=i[0]+I|0,i[1]=i[1]+B|0,i[2]=i[2]+V|0,i[3]=i[3]+T|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;a[o>>>5]|=128<<24-o%32;var i=t.floor(n/4294967296),r=n;a[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a[14+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(a.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,a,n,o,i,r){var s=e+(t&a|~t&n)+o+r;return(s<<i|s>>>32-i)+t}function u(e,t,a,n,o,i,r){var s=e+(t&n|a&~n)+o+r;return(s<<i|s>>>32-i)+t}function d(e,t,a,n,o,i,r){var s=e+(t^a^n)+o+r;return(s<<i|s>>>32-i)+t}function p(e,t,a,n,o,i,r){var s=e+(a^(t|~n))+o+r;return(s<<i|s>>>32-i)+t}a.MD5=i._createHelper(l),a.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5));var e}var Zo,$o={exports:{}};function ei(){return Zo?$o.exports:(Zo=1,$o.exports=(s=No(),t=(e=s).lib,a=t.WordArray,n=t.Hasher,o=e.algo,i=[],r=o.SHA1=n.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],r=a[2],s=a[3],l=a[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+i[c];d+=c<20?1518500249+(o&r|~o&s):c<40?1859775393+(o^r^s):c<60?(o&r|o&s|r&s)-1894007588:(o^r^s)-899497514,l=s,s=r,r=o<<30|o>>>2,o=n,n=d}a[0]=a[0]+n|0,a[1]=a[1]+o|0,a[2]=a[2]+r|0,a[3]=a[3]+s|0,a[4]=a[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(a/4294967296),t[15+(n+64>>>9<<4)]=a,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(r),e.HmacSHA1=n._createHmacHelper(r),s.SHA1));var e,t,a,n,o,i,r,s}var ti,ai={exports:{}};function ni(){return ti?ai.exports:(ti=1,ai.exports=(e=No(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.algo,s=[],l=[];!function(){function e(e){for(var a=t.sqrt(e),n=2;n<=a;n++)if(!(e%n))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)e(n)&&(o<8&&(s[o]=a(t.pow(n,.5))),l[o]=a(t.pow(n,1/3)),o++),n++}();var c=[],u=r.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],i=a[2],r=a[3],s=a[4],u=a[5],d=a[6],p=a[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[h-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=m+c[h-7]+y+c[h-16]}var v=n&o^n&i^o&i,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),C=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[h]+c[h];p=d,d=u,u=s,s=r+C|0,r=i,i=o,o=n,n=C+(w+v)|0}a[0]=a[0]+n|0,a[1]=a[1]+o|0,a[2]=a[2]+i|0,a[3]=a[3]+r|0,a[4]=a[4]+s|0,a[5]=a[5]+u|0,a[6]=a[6]+d|0,a[7]=a[7]+p|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return a[o>>>5]|=128<<24-o%32,a[14+(o+64>>>9<<4)]=t.floor(n/4294967296),a[15+(o+64>>>9<<4)]=n,e.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA256=i._createHelper(u),a.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256));var e}var oi,ii={exports:{}};var ri,si={exports:{}};function li(){return ri||(ri=1,si.exports=(e=No(),Fo(),function(){var t=e,a=t.lib.Hasher,n=t.x64,o=n.Word,i=n.WordArray,r=t.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=r.SHA512=a.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],o=a[1],i=a[2],r=a[3],s=a[4],u=a[5],d=a[6],p=a[7],h=n.high,f=n.low,m=o.high,g=o.low,y=i.high,v=i.low,w=r.high,C=r.low,b=s.high,A=s.low,E=u.high,k=u.low,x=d.high,S=d.low,I=p.high,B=p.low,V=h,T=f,P=m,R=g,N=y,U=v,D=w,F=C,_=b,L=A,M=E,O=k,j=x,q=S,H=I,z=B,J=0;J<80;J++){var W,Q,K=c[J];if(J<16)Q=K.high=0|e[t+2*J],W=K.low=0|e[t+2*J+1];else{var G=c[J-15],X=G.high,Y=G.low,Z=(X>>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,$=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=c[J-2],te=ee.high,ae=ee.low,ne=(te>>>19|ae<<13)^(te<<3|ae>>>29)^te>>>6,oe=(ae>>>19|te<<13)^(ae<<3|te>>>29)^(ae>>>6|te<<26),ie=c[J-7],re=ie.high,se=ie.low,le=c[J-16],ce=le.high,ue=le.low;Q=(Q=(Q=Z+re+((W=$+se)>>>0<$>>>0?1:0))+ne+((W+=oe)>>>0<oe>>>0?1:0))+ce+((W+=ue)>>>0<ue>>>0?1:0),K.high=Q,K.low=W}var de,pe=_&M^~_&j,he=L&O^~L&q,fe=V&P^V&N^P&N,me=T&R^T&U^R&U,ge=(V>>>28|T<<4)^(V<<30|T>>>2)^(V<<25|T>>>7),ye=(T>>>28|V<<4)^(T<<30|V>>>2)^(T<<25|V>>>7),ve=(_>>>14|L<<18)^(_>>>18|L<<14)^(_<<23|L>>>9),we=(L>>>14|_<<18)^(L>>>18|_<<14)^(L<<23|_>>>9),Ce=l[J],be=Ce.high,Ae=Ce.low,Ee=H+ve+((de=z+we)>>>0<z>>>0?1:0),ke=ye+me;H=j,z=q,j=M,q=O,M=_,O=L,_=D+(Ee=(Ee=(Ee=Ee+pe+((de+=he)>>>0<he>>>0?1:0))+be+((de+=Ae)>>>0<Ae>>>0?1:0))+Q+((de+=W)>>>0<W>>>0?1:0))+((L=F+de|0)>>>0<F>>>0?1:0)|0,D=N,F=U,N=P,U=R,P=V,R=T,V=Ee+(ge+fe+(ke>>>0<ye>>>0?1:0))+((T=de+ke|0)>>>0<de>>>0?1:0)|0}f=n.low=f+T,n.high=h+V+(f>>>0<T>>>0?1:0),g=o.low=g+R,o.high=m+P+(g>>>0<R>>>0?1:0),v=i.low=v+U,i.high=y+N+(v>>>0<U>>>0?1:0),C=r.low=C+F,r.high=w+D+(C>>>0<F>>>0?1:0),A=s.low=A+L,s.high=b+_+(A>>>0<L>>>0?1:0),k=u.low=k+O,u.high=E+M+(k>>>0<O>>>0?1:0),S=d.low=S+q,d.high=x+j+(S>>>0<q>>>0?1:0),B=p.low=B+z,p.high=I+H+(B>>>0<z>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(a/4294967296),t[31+(n+128>>>10<<5)]=a,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=a._createHelper(u),t.HmacSHA512=a._createHmacHelper(u)}(),e.SHA512)),si.exports;var e}var ci,ui={exports:{}};var di,pi={exports:{}};function hi(){return di?pi.exports:(di=1,pi.exports=(e=No(),Fo(),function(t){var a=e,n=a.lib,o=n.WordArray,i=n.Hasher,r=a.x64.Word,s=a.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,a=0;a<24;a++){l[e+5*t]=(a+1)*(a+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,p=0;p<7;p++){if(1&o){var h=(1<<p)-1;h<32?d^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}u[i]=r.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=r.create()}();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var a=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=e[t+2*o],r=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(B=a[o]).high^=r,B.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(B=a[p+5*m]).high,f^=B.low;var g=d[p];g.high=h,g.low=f}for(p=0;p<5;p++){var y=d[(p+4)%5],v=d[(p+1)%5],w=v.high,C=v.low;for(h=y.high^(w<<1|C>>>31),f=y.low^(C<<1|w>>>31),m=0;m<5;m++)(B=a[p+5*m]).high^=h,B.low^=f}for(var b=1;b<25;b++){var A=(B=a[b]).high,E=B.low,k=l[b];k<32?(h=A<<k|E>>>32-k,f=E<<k|A>>>32-k):(h=E<<k-32|A>>>64-k,f=A<<k-32|E>>>64-k);var x=d[c[b]];x.high=h,x.low=f}var S=d[0],I=a[0];for(S.high=I.high,S.low=I.low,p=0;p<5;p++)for(m=0;m<5;m++){var B=a[b=p+5*m],V=d[b],T=d[(p+1)%5+5*m],P=d[(p+2)%5+5*m];B.high=V.high^~T.high&P.high,B.low=V.low^~T.low&P.low}B=a[0];var R=u[s];B.high^=R.high,B.low^=R.low}},_doFinalize:function(){var e=this._data,a=e.words;this._nDataBytes;var n=8*e.sigBytes,i=32*this.blockSize;a[n>>>5]|=1<<24-n%32,a[(t.ceil((n+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*a.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=r[u],p=d.high,h=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),a=0;a<25;a++)t[a]=t[a].clone();return e}});a.SHA3=i._createHelper(p),a.HmacSHA3=i._createHmacHelper(p)}(Math),e.SHA3));var e}var fi,mi={exports:{}};var gi,yi={exports:{}};function vi(){return gi?yi.exports:(gi=1,yi.exports=(e=No(),a=(t=e).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var a=e.blockSize,o=4*a;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),r=this._iKey=t.clone(),s=i.words,l=r.words,c=0;c<a;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=r.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,a=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(a))}}))));var e,t,a,n}var wi,Ci={exports:{}};var bi,Ai={exports:{}};function Ei(){return bi?Ai.exports:(bi=1,Ai.exports=(s=No(),ei(),vi(),t=(e=s).lib,a=t.Base,n=t.WordArray,o=e.algo,i=o.MD5,r=o.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a,o=this.cfg,i=o.hasher.create(),r=n.create(),s=r.words,l=o.keySize,c=o.iterations;s.length<l;){a&&i.update(a),a=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)a=i.finalize(a),i.reset();r.concat(a)}return r.sigBytes=4*l,r}}),e.EvpKDF=function(e,t,a){return r.create(a).compute(e,t)},s.EvpKDF));var e,t,a,n,o,i,r,s}var ki,xi={exports:{}};function Si(){return ki?xi.exports:(ki=1,xi.exports=(e=No(),Ei(),void(e.lib.Cipher||function(t){var a=e,n=a.lib,o=n.Base,i=n.WordArray,r=n.BufferedBlockAlgorithm,s=a.enc;s.Utf8;var l=s.Base64,c=a.algo.EvpKDF,u=n.Cipher=r.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,a){this.cfg=this.cfg.extend(a),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:/* @__PURE__ */function(){function e(e){return"string"==typeof e?w:y}return function(t){return{encrypt:function(a,n,o){return e(n).encrypt(t,a,n,o)},decrypt:function(a,n,o){return e(n).decrypt(t,a,n,o)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=a.mode={},p=n.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=d.CBC=function(){var e=p.extend();function a(e,a,n){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var r=0;r<n;r++)e[a+r]^=o[r]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;a.call(this,e,t,o),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);n.decryptBlock(e,t),a.call(this,e,t,o),this._prevBlock=i}}),e}(),f=(a.pad={}).Pkcs7={pad:function(e,t){for(var a=4*t,n=a-e.sigBytes%a,o=n<<24|n<<16|n<<8|n,r=[],s=0;s<n;s+=4)r.push(o);var l=i.create(r,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,a=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,a&&a.words):(this._mode=e.call(n,this,a&&a.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(a.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,a=e.salt;return(a?i.create([1398893684,1701076831]).concat(a).concat(t):t).toString(l)},parse:function(e){var t,a=l.parse(e),n=a.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),a.sigBytes-=16),m.create({ciphertext:a,salt:t})}},y=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,a,n){n=this.cfg.extend(n);var o=e.createEncryptor(a,n),i=o.finalize(t),r=o.cfg;return m.create({ciphertext:i,key:a,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,a,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(a,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(a.kdf={}).OpenSSL={execute:function(e,t,a,n,o){if(n||(n=i.random(8)),o)r=c.create({keySize:t+a,hasher:o}).compute(e,n);else var r=c.create({keySize:t+a}).compute(e,n);var s=i.create(r.words.slice(t),4*a);return r.sigBytes=4*t,m.create({key:r,iv:s,salt:n})}},w=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:v}),encrypt:function(e,t,a,n){var o=(n=this.cfg.extend(n)).kdf.execute(a,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=o.iv;var i=y.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,a,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(a,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=o.iv,y.decrypt.call(this,e,t,o.key,n)}})}())));var e}var Ii,Bi={exports:{}};var Vi,Ti={exports:{}};var Pi,Ri={exports:{}};function Ni(){return Pi?Ri.exports:(Pi=1,Ri.exports=(e=No(),Si(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function a(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,a=e>>8&255,n=255&e;255===t?(t=0,255===a?(a=0,255===n?n=0:++n):++a):++t,e=0,e+=t<<16,e+=a<<8,e+=n}return e}function n(e){return 0===(e[0]=a(e[0]))&&(e[1]=a(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,o=a.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0),n(r);var s=r.slice(0);a.encryptBlock(s,0);for(var l=0;l<o;l++)e[t+l]^=s[l]}});return t.Decryptor=o,t}(),e.mode.CTRGladman));var e}var Ui,Di={exports:{}};var Fi,_i={exports:{}};var Li,Mi={exports:{}};var Oi,ji={exports:{}};var qi,Hi={exports:{}};var zi,Ji={exports:{}};var Wi,Qi={exports:{}};var Ki,Gi={exports:{}};var Xi,Yi={exports:{}};var Zi,$i={exports:{}};function er(){return Zi?$i.exports:(Zi=1,$i.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib,n=a.WordArray,o=a.BlockCipher,i=t.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],a=0;a<56;a++){var n=r[a]-1;t[a]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=l[i];for(a=0;a<24;a++)c[a/6|0]|=t[(s[a]-1+u)%28]<<31-a%6,c[4+(a/6|0)]|=t[28+(s[a+24]-1+u)%28]<<31-a%6;for(c[0]=c[0]<<1|c[0]>>>31,a=1;a<7;a++)c[a]=c[a]>>>4*(a-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(a=0;a<16;a++)d[a]=o[15-a]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,a){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=a[n],i=this._lBlock,r=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((r^o[l])&u[l])>>>0];this._lBlock=r,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var a=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=a,this._lBlock^=a<<e}function h(e,t){var a=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=a,this._rBlock^=a<<e}t.DES=o._createHelper(d);var f=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),a=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(a)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(f)}(),e.TripleDES));var e}var tr,ar={exports:{}};var nr,or={exports:{}};var ir,rr={exports:{}};var sr,lr={exports:{}};function cr(){return sr?lr.exports:(sr=1,lr.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.BlockCipher,n=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],r=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let a=t>>24&255,n=t>>16&255,o=t>>8&255,i=255&t,r=e.sbox[0][a]+e.sbox[1][n];return r^=e.sbox[2][o],r+=e.sbox[3][i],r}function c(e,t,a){let n,i=t,r=a;for(let s=0;s<o;++s)i^=e.pbox[s],r=l(e,i)^r,n=i,i=r,r=n;return n=i,i=r,r=n,r^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:r}}function u(e,t,a){let n,i=t,r=a;for(let s=o+1;s>1;--s)i^=e.pbox[s],r=l(e,i)^r,n=i,i=r,r=n;return n=i,i=r,r=n,r^=e.pbox[1],i^=e.pbox[0],{left:i,right:r}}function d(e,t,a){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=r[o][t]}let n=0;for(let r=0;r<o+2;r++)e.pbox[r]=i[r]^t[n],n++,n>=a&&(n=0);let s=0,l=0,u=0;for(let i=0;i<o+2;i+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[i]=s,e.pbox[i+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[o][t]=s,e.sbox[o][t+1]=l;return!0}var p=n.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,a=e.sigBytes/4;d(s,t,a)}},encryptBlock:function(e,t){var a=c(s,e[t],e[t+1]);e[t]=a.left,e[t+1]=a.right},decryptBlock:function(e,t){var a=u(s,e[t],e[t+1]);e[t]=a.left,e[t+1]=a.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=a._createHelper(p)}(),e.Blowfish));var e}var ur;var dr,pr,hr,fr,mr,gr,yr=ur?Vo.exports:(ur=1,Vo.exports=function(e){return e}(No(),Fo(),Mo(),qo(),Jo(),Ko(),Yo(),ei(),ni(),oi||(oi=1,ii.exports=(gr=No(),ni(),pr=(dr=gr).lib.WordArray,hr=dr.algo,fr=hr.SHA256,mr=hr.SHA224=fr.extend({_doReset:function(){this._hash=new pr.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=fr._doFinalize.call(this);return e.sigBytes-=4,e}}),dr.SHA224=fr._createHelper(mr),dr.HmacSHA224=fr._createHmacHelper(mr),gr.SHA224)),li(),function(){return ci?ui.exports:(ci=1,ui.exports=(s=No(),Fo(),li(),t=(e=s).x64,a=t.Word,n=t.WordArray,o=e.algo,i=o.SHA512,r=o.SHA384=i.extend({_doReset:function(){this._hash=new n.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(r),e.HmacSHA384=i._createHmacHelper(r),s.SHA384));var e,t,a,n,o,i,r,s}(),hi(),function(){return fi?mi.exports:(fi=1,mi.exports=(e=No(),function(){var t=e,a=t.lib,n=a.WordArray,o=a.Hasher,i=t.algo,r=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),p=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var n=t+a,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,p,w,C,b,A,E,k,x,S,I,B=this._hash.words,V=u.words,T=d.words,P=r.words,R=s.words,N=l.words,U=c.words;for(A=i=B[0],E=p=B[1],k=w=B[2],x=C=B[3],S=b=B[4],a=0;a<80;a+=1)I=i+e[t+P[a]]|0,I+=a<16?h(p,w,C)+V[0]:a<32?f(p,w,C)+V[1]:a<48?m(p,w,C)+V[2]:a<64?g(p,w,C)+V[3]:y(p,w,C)+V[4],I=(I=v(I|=0,N[a]))+b|0,i=b,b=C,C=v(w,10),w=p,p=I,I=A+e[t+R[a]]|0,I+=a<16?y(E,k,x)+T[0]:a<32?g(E,k,x)+T[1]:a<48?m(E,k,x)+T[2]:a<64?f(E,k,x)+T[3]:h(E,k,x)+T[4],I=(I=v(I|=0,U[a]))+S|0,A=S,S=x,x=v(k,10),k=E,E=I;I=B[1]+w+x|0,B[1]=B[2]+C+S|0,B[2]=B[3]+b+A|0,B[3]=B[4]+i+E|0,B[4]=B[0]+p+k|0,B[0]=I},_doFinalize:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,r=0;r<5;r++){var s=i[r];i[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,a){return e^t^a}function f(e,t,a){return e&t|~e&a}function m(e,t,a){return(e|~t)^a}function g(e,t,a){return e&a|t&~a}function y(e,t,a){return e^(t|~a)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(),e.RIPEMD160));var e}(),vi(),function(){return wi?Ci.exports:(wi=1,Ci.exports=(l=No(),ni(),vi(),t=(e=l).lib,a=t.Base,n=t.WordArray,o=e.algo,i=o.SHA256,r=o.HMAC,s=o.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var a=this.cfg,o=r.create(a.hasher,e),i=n.create(),s=n.create([1]),l=i.words,c=s.words,u=a.keySize,d=a.iterations;l.length<u;){var p=o.update(t).finalize(s);o.reset();for(var h=p.words,f=h.length,m=p,g=1;g<d;g++){m=o.finalize(m),o.reset();for(var y=m.words,v=0;v<f;v++)h[v]^=y[v]}i.concat(p),c[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,a){return s.create(a).compute(e,t)},l.PBKDF2));var e,t,a,n,o,i,r,s,l}(),Ei(),Si(),function(){return Ii?Bi.exports:(Ii=1,Bi.exports=(e=No(),Si(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function a(e,t,a,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var r=0;r<a;r++)e[t+r]^=o[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;a.call(this,e,t,o,n),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);a.call(this,e,t,o,n),this._prevBlock=i}}),t}(),e.mode.CFB));var e}(),function(){return Vi?Ti.exports:(Vi=1,Ti.exports=(a=No(),Si(),a.mode.CTR=(e=a.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var r=i.slice(0);a.encryptBlock(r,0),i[n-1]=i[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=r[s]}}),e.Decryptor=t,e),a.mode.CTR));var e,t,a}(),Ni(),function(){return Ui?Di.exports:(Ui=1,Di.exports=(a=No(),Si(),a.mode.OFB=(e=a.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,n=a.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),a.encryptBlock(i,0);for(var r=0;r<n;r++)e[t+r]^=i[r]}}),e.Decryptor=t,e),a.mode.OFB));var e,t,a}(),function(){return Fi?_i.exports:(Fi=1,_i.exports=(t=No(),Si(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Li?Mi.exports:(Li=1,Mi.exports=(e=No(),Si(),e.pad.AnsiX923={pad:function(e,t){var a=e.sigBytes,n=4*t,o=n-a%n,i=a+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Oi?ji.exports:(Oi=1,ji.exports=(e=No(),Si(),e.pad.Iso10126={pad:function(t,a){var n=4*a,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return qi?Hi.exports:(qi=1,Hi.exports=(e=No(),Si(),e.pad.Iso97971={pad:function(t,a){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,a)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return zi?Ji.exports:(zi=1,Ji.exports=(e=No(),Si(),e.pad.ZeroPadding={pad:function(e,t){var a=4*t;e.clamp(),e.sigBytes+=a-(e.sigBytes%a||a)},unpad:function(e){var t=e.words,a=e.sigBytes-1;for(a=e.sigBytes-1;a>=0;a--)if(t[a>>>2]>>>24-a%4*8&255){e.sigBytes=a+1;break}}},e.pad.ZeroPadding));var e}(),function(){return Wi?Qi.exports:(Wi=1,Qi.exports=(e=No(),Si(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Ki?Gi.exports:(Ki=1,Gi.exports=(n=No(),Si(),t=(e=n).lib.CipherParams,a=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var n=a.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,a,n}(),function(){return Xi?Yi.exports:(Xi=1,Yi.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.BlockCipher,n=t.algo,o=[],i=[],r=[],s=[],l=[],c=[],u=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var a=0,n=0;for(t=0;t<256;t++){var f=n^n<<1^n<<2^n<<3^n<<4;f=f>>>8^255&f^99,o[a]=f,i[f]=a;var m=e[a],g=e[m],y=e[g],v=257*e[f]^16843008*f;r[a]=v<<24|v>>>8,s[a]=v<<16|v>>>16,l[a]=v<<8|v>>>24,c[a]=v,v=16843009*y^65537*g^257*m^16843008*a,u[f]=v<<24|v>>>8,d[f]=v<<16|v>>>16,p[f]=v<<8|v>>>24,h[f]=v,a?(a=m^e[e[e[y^m]]],n^=e[e[n]]):a=n=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=a.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,a=e.sigBytes/4,n=4*((this._nRounds=a+6)+1),i=this._keySchedule=[],r=0;r<n;r++)r<a?i[r]=t[r]:(c=i[r-1],r%a?a>6&&r%a==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[r/a|0]<<24),i[r]=i[r-a]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(r=n-l,l%4)var c=i[r];else c=i[r-4];s[l]=l<4||r<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^p[o[c>>>8&255]]^h[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,s,l,c,o)},decryptBlock:function(e,t){var a=e[t+1];e[t+1]=e[t+3],e[t+3]=a,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,h,i),a=e[t+1],e[t+1]=e[t+3],e[t+3]=a},_doCryptBlock:function(e,t,a,n,o,i,r,s){for(var l=this._nRounds,c=e[t]^a[0],u=e[t+1]^a[1],d=e[t+2]^a[2],p=e[t+3]^a[3],h=4,f=1;f<l;f++){var m=n[c>>>24]^o[u>>>16&255]^i[d>>>8&255]^r[255&p]^a[h++],g=n[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^r[255&c]^a[h++],y=n[d>>>24]^o[p>>>16&255]^i[c>>>8&255]^r[255&u]^a[h++],v=n[p>>>24]^o[c>>>16&255]^i[u>>>8&255]^r[255&d]^a[h++];c=m,u=g,d=y,p=v}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^a[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^a[h++],y=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^a[h++],v=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^a[h++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=v},keySize:8});t.AES=a._createHelper(m)}(),e.AES));var e}(),er(),function(){return tr?ar.exports:(tr=1,ar.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=n.RC4=a.extend({_doReset:function(){for(var e=this._key,t=e.words,a=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var r=o%a,s=t[r>>>2]>>>24-r%4*8&255;i=(i+n[o]+s)%256;var l=n[o];n[o]=n[i],n[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,a=this._j,n=0,o=0;o<4;o++){a=(a+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[a],e[a]=i,n|=e[(e[t]+e[a])%256]<<24-8*o}return this._i=t,this._j=a,n}t.RC4=a._createHelper(o);var r=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=a._createHelper(r)}(),e.RC4));var e}(),function(){return nr?or.exports:(nr=1,or.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=[],i=[],r=[],s=n.Rabbit=a.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,a=0;a<4;a++)e[a]=16711935&(e[a]<<8|e[a]>>>24)|4278255360&(e[a]<<24|e[a]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)o[a]^=n[a+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=p,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var a=this._X;l.call(this),o[0]=a[0]^a[5]>>>16^a[3]<<16,o[1]=a[2]^a[7]>>>16^a[5]<<16,o[2]=a[4]^a[1]>>>16^a[7]<<16,o[3]=a[6]^a[3]>>>16^a[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,a=0;a<8;a++)i[a]=t[a];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,a=0;a<8;a++){var n=e[a]+t[a],o=65535&n,s=n>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[a]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.Rabbit=a._createHelper(s)}(),e.Rabbit));var e}(),function(){return ir?rr.exports:(ir=1,rr.exports=(e=No(),Jo(),Yo(),Ei(),Si(),function(){var t=e,a=t.lib.StreamCipher,n=t.algo,o=[],i=[],r=[],s=n.RabbitLegacy=a.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)n[o]^=a[o+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(n[0]^=c,n[1]^=d,n[2]^=u,n[3]^=p,n[4]^=c,n[5]^=d,n[6]^=u,n[7]^=p,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var a=this._X;l.call(this),o[0]=a[0]^a[5]>>>16^a[3]<<16,o[1]=a[2]^a[7]>>>16^a[5]<<16,o[2]=a[4]^a[1]>>>16^a[7]<<16,o[3]=a[6]^a[3]>>>16^a[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,a=0;a<8;a++)i[a]=t[a];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,a=0;a<8;a++){var n=e[a]+t[a],o=65535&n,s=n>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[a]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.RabbitLegacy=a._createHelper(s)}(),e.RabbitLegacy));var e}(),cr()));const vr=/* @__PURE__ */Io(yr);const wr={name:"JcVerifySlide",props:{visible:{type:Boolean,default:!1},captchaType:{type:String,default:"blockPuzzle"},mode:{type:String,default:"pop"},vSpace:{type:Number,default:30},explain:{type:String,default:""},lang:{type:String,default:""},imgSize:{type:Object,default:()=>({width:"310px",height:"155px"})},barSize:{type:Object,default:()=>({width:"310px",height:"40px"})},defaultImg:{type:String,default:""}},data:()=>({secretKey:"",passFlag:!1,backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:0,endMoveTime:0,startLeft:0,tipWords:"",finishText:"",setSize:{imgHeight:"155px",imgWidth:"340px"},moveBlockLeft:"0px",leftBarWidth:"40px",moveBlockBackgroundColor:"#fff",leftBarBorderColor:"#e4e7eb",iconColor:"#4b4b4b",iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:"",currentBarHeight:40,loading:!0,isNeedShow:!1}),computed:{isEn(){if(this.lang)return"en"===this.lang||"en-US"===this.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1},showBox(){return"pop"!==this.mode||this.visible&&this.isNeedShow},barExplain(){return this.isEnd?"":this.isEn?"Swipe right to complete the picture puzzle":this.explain||"向右滑动完成验证"},subBlockStyle(){const e=-(parseInt(this.setSize.imgHeight)+this.vSpace+1);return{width:Math.floor(47*parseInt(this.setSize.imgWidth)/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(e){e?(this.isNeedShow=!1,this.$nextTick(()=>{this.handleResize(),this.refresh()})):this.isNeedShow=!1}},mounted(){this.initUuid(),this.handleResize(),window.addEventListener("resize",this.handleResize),window.addEventListener("touchmove",this.move,{passive:!1}),window.addEventListener("mousemove",this.move),window.addEventListener("touchend",this.end),window.addEventListener("mouseup",this.end)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("touchmove",this.move,{passive:!1}),window.removeEventListener("mousemove",this.move),window.removeEventListener("touchend",this.end),window.removeEventListener("mouseup",this.end)},methods:{handleImageLoaded(){this.loading=!1},initUuid(){localStorage.getItem("slider")||localStorage.setItem("slider","slider-"+((e=21)=>{let t="",a=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&a[e]];return t})())},aesEncrypt(e,t="XwKsGlMcdPMEhR1B"){const a=vr.enc.Utf8.parse(t),n=vr.enc.Utf8.parse(e);return vr.AES.encrypt(n,a,{mode:vr.mode.ECB,padding:vr.pad.Pkcs7}).toString()},handleResize(){const e=window.innerWidth;let t=340;e<400?(t=e-60,this.currentBarHeight=44):(t=340,this.currentBarHeight=40),this.setSize.imgWidth=t+"px",this.setSize.imgHeight=t/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(e){if(this.isEnd)return;const t=e||window.event,a=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;this.startLeft=Math.floor(a-n.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(e){if(!this.status||this.isEnd)return;const t=e||window.event,a=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;let o=a-n.getBoundingClientRect().left-this.startLeft;const i=n.offsetWidth-this.currentBarHeight;o<=0&&(o=0),o>=i&&(o=i),this.moveBlockLeft=o+"px",this.leftBarWidth=o+this.currentBarHeight+"px",t.cancelable&&t.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let e=parseInt(this.moveBlockLeft.replace("px",""));e=310*e/parseInt(this.setSize.imgWidth);const t={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:e,y:5}),this.secretKey):JSON.stringify({x:e,y:5}),uuid:this.backToken};K(t).then(e=>{0===e.data.code?this.handleSuccess(e):this.handleError()}).catch(()=>this.handleError())},handleSuccess(e){this.endMoveTime,this.startMoveTime,this.moveBlockBackgroundColor="#52c41a",this.iconClass="icon-check",this.isEnd=!0,this.passFlag=!0,this.tipWords=`${((this.endMoveTime-this.startMoveTime)/1e3).toFixed(2)}s `+(this.isEn?"verified successfully":"验证成功"),setTimeout(()=>{this.closeBox(),this.$emit("success",{uuid:e.data.data.uuid,code:e.data.data.code})},800)},handleError(){this.moveBlockBackgroundColor="#ff4d4f",this.iconClass="icon-close",this.passFlag=!1,this.tipWords=this.isEn?"verification failed":"验证失败",setTimeout(()=>{this.refresh(),this.tipWords=""},1e3)},refresh(){this.loading=!0,this.transitionLeft="left 0.3s",this.transitionWidth="width 0.3s",this.moveBlockLeft="0px",this.leftBarWidth=this.currentBarHeight+"px",this.moveBlockBackgroundColor="#fff",this.iconColor="#4b4b4b",this.iconClass="icon-right",this.isEnd=!1,this.tipWords="",this.getPicture()},getPicture(){this.loading=!0,Q({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(e=>{if(0===e.data.code){if(!1===e.data.data.validate)return this.loading=!1,this.startMoveTime=Date.now(),this.endMoveTime=Date.now(),void this.handleSuccess(e);this.isNeedShow=!0,this.backImgBase=e.data.data.originalImageBase64,this.blockBackImgBase=e.data.data.jigsawImageBase64,this.backToken=e.data.data.uuid,this.secretKey=e.data.data.secretKey,e.data.data.result&&"undefined"!=typeof window&&"function"==typeof window.gdp&&window.gdp("track","submitAuthCode",{uuid:e.data.data.uuid,clientUid:localStorage.getItem("slider"),registerEntry_var:sessionStorage.getItem("_GIO-registerEntry")||"-"})}else this.loading=!1,this.isNeedShow=!0}).catch(()=>{this.loading=!1,this.isNeedShow=!0})},closeBox(){this.$emit("update:visible",!1)}}},Cr={key:0,class:"auth-captcha-box-top"},br={class:"auth-captcha-title"},Ar={class:"captcha-wrapper",style:{position:"relative"}},Er=["src"],kr={key:0,class:"auth-captcha-loading"},xr={class:"loading-text"},Sr={class:"auth-captcha-msg"},Ir=["textContent"],Br=["src"];const Vr=/* @__PURE__ */un(wr,[["render",function(e,t,a,n,o,i){return m((l(),s("div",{class:c("pop"===a.mode?"captcha-mask":"captcha-relative-wrapper")},[u("div",{class:c("pop"===a.mode?"auth-captcha-box":""),style:b({width:"pop"===a.mode?o.setSize.imgWidth+"40px":"100%","max-width":"100%"})},["pop"===a.mode?(l(),s("div",Cr,[u("span",br,v(i.isEn?"please finish the security verification":"请完成安全验证"),1),u("span",{class:"auth-captcha-box-close",onClick:t[0]||(t[0]=(...e)=>i.closeBox&&i.closeBox(...e))}," × ")])):f("",!0),u("div",{class:"auth-captcha-box-bottom",style:b({padding:"pop"===a.mode?"15px":"0"})},[u("div",Ar,["blockPuzzle"===a.captchaType?(l(),s("div",{key:0,class:"auth-captcha-img-out",style:b({height:parseInt(o.setSize.imgHeight)+a.vSpace+"px"})},[u("div",{class:"auth-captcha-img-panel",style:b({width:o.setSize.imgWidth,height:o.setSize.imgHeight})},[u("img",{src:o.backImgBase?"data:image/png;base64,"+o.backImgBase:a.defaultImg,alt:"captcha",class:"main-img",onLoad:t[1]||(t[1]=(...e)=>i.handleImageLoaded&&i.handleImageLoaded(...e))},null,40,Er),o.loading?(l(),s("div",kr,[t[5]||(t[5]=u("div",{class:"loading-icon"},null,-1)),u("p",xr,v(i.isEn?"Loading...":"加载中..."),1)])):f("",!0),m(u("div",{class:"auth-captcha-refresh",onClick:t[2]||(t[2]=(...e)=>i.refresh&&i.refresh(...e))},[...t[6]||(t[6]=[u("svg",{t:"1767753956986",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"},[u("path",{d:"M894.481158 505.727133c0 49.589418-9.711176 97.705276-28.867468 143.007041-18.501376 43.74634-44.98454 83.031065-78.712713 116.759237-33.728172 33.728172-73.012897 60.211337-116.759237 78.712713-45.311998 19.156292-93.417623 28.877701-143.007041 28.877701s-97.695043-9.721409-142.996808-28.877701c-43.756573-18.501376-83.031065-44.98454-116.76947-78.712713-33.728172-33.728172-60.211337-73.012897-78.712713-116.759237-19.156292-45.301765-28.867468-93.417623-28.867468-143.007041 0-49.579185 9.711176-97.695043 28.867468-142.996808 18.501376-43.74634 44.98454-83.031065 78.712713-116.759237 33.738405-33.728172 73.012897-60.211337 116.76947-78.712713 45.301765-19.166525 93.40739-28.877701 142.996808-28.877701 52.925397 0 104.008842 11.010775 151.827941 32.745798 46.192042 20.977777 86.909395 50.79692 121.016191 88.608084 4.389984 4.860704 8.646937 9.854439 12.781094 14.97097l0-136.263453c0-11.307533 9.168824-20.466124 20.466124-20.466124 11.307533 0 20.466124 9.15859 20.466124 20.466124l0 183.64253c0 5.433756-2.148943 10.632151-5.986341 14.46955-3.847631 3.837398-9.046027 5.996574-14.479783 5.996574l-183.64253-0.020466c-11.307533 0-20.466124-9.168824-20.466124-20.466124 0-11.307533 9.168824-20.466124 20.466124-20.466124l132.293025 0.020466c-3.960195-4.952802-8.063653-9.782807-12.289907-14.479783-30.320563-33.605376-66.514903-60.098773-107.549481-78.753645-42.467207-19.289322-87.850837-29.072129-134.902456-29.072129-87.195921 0-169.172981 33.9533-230.816946 95.597265-61.654198 61.654198-95.597265 143.621025-95.597265 230.816946s33.943067 169.172981 95.597265 230.816946c61.643965 61.654198 143.621025 95.607498 230.816946 95.607498s169.172981-33.9533 230.816946-95.607498c61.654198-61.643965 95.597265-143.621025 95.597265-230.816946 0-11.2973 9.168824-20.466124 20.466124-20.466124C885.322567 485.261009 894.481158 494.429833 894.481158 505.727133z","p-id":"2524"})],-1)])],512),[[S,o.showRefresh]]),p(R,{name:"tips-fade"},{default:B(()=>[o.tipWords?(l(),s("div",{key:0,class:c(["auth-captcha-tips",o.passFlag?"suc-bg":"err-bg"])},v(o.tipWords),3)):f("",!0)]),_:1})],4)],4)):f("",!0),u("div",{class:"auth-captcha-bar-area",ref:"barArea",style:b({width:o.setSize.imgWidth,height:o.currentBarHeight+"px",lineHeight:o.currentBarHeight+"px"})},[u("span",Sr,v(i.barExplain),1),u("div",{class:"auth-captcha-left-bar",style:b({width:o.leftBarWidth,height:o.currentBarHeight+"px",borderColor:o.leftBarBorderColor,transition:o.transitionWidth})},[u("span",{class:"auth-captcha-msg",textContent:v(o.finishText)},null,8,Ir),u("div",{class:"auth-captcha-move-block",onMousedown:t[3]||(t[3]=(...e)=>i.start&&i.start(...e)),onTouchstart:t[4]||(t[4]=w((...e)=>i.start&&i.start(...e),["prevent"])),style:b({width:o.currentBarHeight+"px",height:o.currentBarHeight-2+"px",backgroundColor:o.moveBlockBackgroundColor,left:o.moveBlockLeft,transition:o.transitionLeft})},[u("i",{class:c(["auth-captcha-icon iconfont",o.iconClass]),style:b({color:o.iconColor})},null,6),"blockPuzzle"===a.captchaType?(l(),s("div",{key:0,class:"auth-captcha-sub-block",style:b(i.subBlockStyle)},[o.blockBackImgBase?(l(),s("img",{key:0,src:"data:image/png;base64,"+o.blockBackImgBase,class:"sub-img"},null,8,Br)):f("",!0)],4)):f("",!0)],36)],4)],4)])],4)],6)],2)),[[S,i.showBox]])}],["__scopeId","data-v-8990fe79"]]),Tr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"})),Pr={name:"CodeInput",components:{GoogleInput:yo,JcFloatInput:ko,JcVerifySlide:Vr},props:{modelValue:String,placeholder:String,ready:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duration:{type:Number,default:60},formTypeColor:{type:String,default:"1"},isEn:Boolean},emits:["update:modelValue","send"],data:()=>({isCounting:!1,countdown:0,timer:null,captchaVisible:!1}),computed:{statusClass(){return{1:"org",2:"lightBlue",4:"darkOrange"}[this.formTypeColor]||"darkBlue"},btnText(){return this.isCounting?`${this.countdown}s`:this.isEn?"Send Code":"发送验证码"}},methods:{handleSend:Fn(function(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},500,{leading:!0,trailing:!1}),handleCaptchaSuccess(e){this.$emit("send",{captchaData:e,startTimer:this.startTimer.bind(this)})},startTimer(){this.isCounting||(this.isCounting=!0,this.countdown=this.duration,this.timer=setInterval(()=>{this.countdown--,this.countdown<=0&&this.stopTimer()},1e3))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null),this.isCounting=!1,this.countdown=0}},beforeUnmount(){this.stopTimer(),this.handleSend.cancel?.()}},Rr={class:"code-input-container"};const Nr=/* @__PURE__ */un(Pr,[["render",function(e,t,a,n,o,i){const r=V("JcVerifySlide");return l(),s("div",Rr,[(l(),d(N(a.showIcon?"JcFloatInput":"GoogleInput"),{"model-value":a.modelValue,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t)),label:a.placeholder,placeholder:a.placeholder,class:"verify-code-input",autocomplete:"off",maxlength:"6"},U({suffix:B(()=>[u("a",{class:c(["send-code-btn",[i.statusClass,{"is-disabled":a.disabled||o.isCounting||!a.ready}]]),onClick:t[0]||(t[0]=(...e)=>i.handleSend&&i.handleSend(...e))},[u("span",{class:c(o.isCounting||!a.ready?"disabled-color":"obtain-color")},v(i.btnText),3)],2)]),_:2},[a.showIcon?{name:"prefix",fn:B(()=>[t[3]||(t[3]=u("i",{class:"icon-verify"},null,-1))]),key:"0"}:void 0]),1032,["model-value","label","placeholder"])),p(r,{visible:o.captchaVisible,"onUpdate:visible":t[2]||(t[2]=e=>o.captchaVisible=e),"is-en":a.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])])}],["__scopeId","data-v-9d6cb765"]]),Ur=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Nr},Symbol.toStringTag,{value:"Module"})),Dr={class:"global-modal-header-custom"},Fr={class:"global-modal-body-custom"},_r={class:"global-modal-footer-custom"},Lr=/* @__PURE__ */o({__name:"GlobalModal",setup(t){const n=e(),o=e(!1),i=I({city:"",company:"",email:"",phone:"",name:"",agreement:!1}),r=I({city:[{required:!0,message:"请输入所在地城市",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"请输入有效的邮箱地址",trigger:"blur"}],agreement:[{validator:(e,t,a)=>{t?a():a(new Error("请同意隐私政策"))},trigger:"change"}]}),s=()=>{o.value=!1,G.emit(X.Close,void 0),n.value?.clearValidate(),Object.assign(i,{city:"",company:"",email:"",phone:"",name:"",agreement:!1})},c=async()=>{if(!n.value)return;await n.value.validate().catch(()=>!1)&&(G.emit(X.Submit,{...i}),s())},h=()=>{o.value=!0};return a(()=>{G.on(X.Open,h)}),D(()=>{G.off(X.Open,h)}),(e,t)=>(l(),d(E(Xe),{modelValue:o.value,"onUpdate:modelValue":t[7]||(t[7]=e=>o.value=e),"before-close":s,"show-close":!1,"close-on-click-modal":!0,width:500,class:"global-modal-custom"},{header:B(()=>[u("div",Dr,[t[9]||(t[9]=u("h2",null,"即刻链接全球货代",-1)),p(E(at),{link:"",onClick:s,class:"close-button-custom","aria-label":"Close"},{default:B(()=>[...t[8]||(t[8]=[u("span",{style:{"font-size":"2rem"}},"×",-1)])]),_:1})])]),footer:B(()=>[u("div",_r,[p(E(at),{type:"primary",class:"submit-button-custom",onClick:c},{default:B(()=>[...t[11]||(t[11]=[x(" 加入会员 ",-1)])]),_:1})])]),default:B(()=>[u("div",Fr,[p(E(Ye),{model:i,rules:r,ref_key:"formRef",ref:n,"label-position":"top",onSubmit:t[6]||(t[6]=w(()=>{},["prevent"]))},{default:B(()=>[p(E(Ze),{gutter:20},{default:B(()=>[p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"所在地(城市)",prop:"city"},{default:B(()=>[p(E(Ge),{modelValue:i.city,"onUpdate:modelValue":t[0]||(t[0]=e=>i.city=e),placeholder:"请输入城市"},null,8,["modelValue"])]),_:1})]),_:1}),p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"公司名称",prop:"company"},{default:B(()=>[p(E(Ge),{modelValue:i.company,"onUpdate:modelValue":t[1]||(t[1]=e=>i.company=e),placeholder:"请输入公司名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(Ze),{gutter:20},{default:B(()=>[p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"邮箱",prop:"email"},{default:B(()=>[p(E(Ge),{modelValue:i.email,"onUpdate:modelValue":t[2]||(t[2]=e=>i.email=e),placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1}),p(E($e),{span:12},{default:B(()=>[p(E(et),{label:"电话",prop:"phone"},{default:B(()=>[p(E(Ge),{modelValue:i.phone,"onUpdate:modelValue":t[3]||(t[3]=e=>i.phone=e),placeholder:"请输入电话"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(Ze),null,{default:B(()=>[p(E($e),{span:24},{default:B(()=>[p(E(et),{label:"姓名",prop:"name"},{default:B(()=>[p(E(Ge),{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=e=>i.name=e),placeholder:"请输入您的全名"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),p(E(et),{prop:"agreement",class:"agreement-item"},{default:B(()=>[p(E(tt),{modelValue:i.agreement,"onUpdate:modelValue":t[5]||(t[5]=e=>i.agreement=e),label:"我同意"},null,8,["modelValue"]),t[10]||(t[10]=u("a",{href:"#",class:"privacy-link"},"隐私政策",-1))]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"]))}}),Mr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),Or=/* @__PURE__ */o({__name:"AirCarrierSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the carrier code or name (e.g., AAL)":"请输入航空公司代码或名称 (如: AAL)"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),d(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Carrier","line-type":"air",class:"jc-air-carrier-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},U({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),jr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"})),qr=/* @__PURE__ */o({__name:"AirLineSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the line name":"请输入航线名称"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),d(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Line","line-type":"air",class:"jc-air-line-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},U({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Hr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:qr},Symbol.toStringTag,{value:"Module"})),zr=/* @__PURE__ */o({__name:"SeaCarrierSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the carrier code or name (e.g., AAL)":"请输入船司代码或名称 (如: MSK)"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),d(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Carrier","line-type":"shipping",class:"jc-sea-carrier-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},U({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Jr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"})),Wr=/* @__PURE__ */o({__name:"SeaLineSearch",props:/* @__PURE__ */F({lang:String,placeholder:String,showApplyData:{type:Boolean,default:!1}},{modelValue:{required:!0,default:""},modelModifiers:{}}),emits:/* @__PURE__ */F(["update:modelValue","change","apply","focus","blur","remove-tag"],["update:modelValue"]),setup(e,{emit:a}){const n=_(e,"modelValue"),o=e,i=t(()=>{if(o.lang)return"en"===o.lang||"en-US"===o.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),r=t(()=>o.placeholder?o.placeholder:i.value?"Please enter the line name":"请输入航线名称"),s=a,c=e=>{s("change",e)};return(t,a)=>{const o=V("JcCarrierSearch");return l(),d(o,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"Line","line-type":"shipping",class:"jc-sea-line-search",placeholder:r.value,"show-apply-data":e.showApplyData,onChange:c,onApply:a[1]||(a[1]=e=>t.$emit("apply",n.value)),onFocus:a[2]||(a[2]=e=>t.$emit("focus")),onBlur:a[3]||(a[3]=e=>t.$emit("blur")),onRemoveTag:a[4]||(a[4]=e=>t.$emit("remove-tag",e))},U({_:2},[y(t.$slots,(e,a)=>({name:a,fn:B(e=>[h(t.$slots,a,L(M(e||{})))])}))]),1032,["modelValue","placeholder","show-apply-data"])}}}),Qr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Wr},Symbol.toStringTag,{value:"Module"})),Kr={class:"jc:flex jc:items-center jc:justify-between"},Gr={key:0,class:"jc:ml-2 jc:text-xs jc:text-gray-400"},Xr={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},Yr={key:0},Zr={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},$r={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},es=["src"],ts={key:1},as=/* @__PURE__ */un(/* @__PURE__ */o({__name:"index",props:{modelValue:{type:[String,Number,Array],default:void 0},lang:{type:String,default:""},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},showApplyData:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["update:modelValue","change","apply","focus","blur","remove-tag"],setup(n,{emit:o}){const i=n,c=o,p=e(),m=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),C=t(()=>{if(i.placeholder)return i.placeholder;return{Carrier:m.value?"Search by carrier name or code":"请输入公司名称或代码",Line:m.value?"Search by line name":"请输入航线名称",Seaport:m.value?"Search by seaport name":"请输入港口名称"}[i.type]||(m.value?"Search...":"请输入关键字搜索")}),b=t({get:()=>i.modelValue,set:e=>c("update:modelValue",e)}),A=t(()=>{const e=i.modelValue;if(Array.isArray(e)){return"string"==typeof e.find(e=>null!=e&&""!==e)}return"string"==typeof e}),k=e(!1),x=e([]),S=e(""),I=()=>{x.value=[...i.defaultOptions]};r(()=>i.defaultOptions,()=>{if(!k.value&&!S.value){const e=[...i.defaultOptions];x.value=e}},{immediate:!0,deep:!0});const V=Fn(async e=>{try{const t={keyword:e,current:1,size:50};let a={};a="Carrier"===i.type?await z.carrier.search(t,i.lineType):"Line"===i.type?await z.line.search(t,i.lineType):await z.searchByName({...t,displayInfo:[i.type]});const n=a.records||[];if(i.defaultOptions.length>0){const e=i.defaultOptions.filter(e=>!n.some(t=>t.id===e.id));x.value=[...e,...n]}else x.value=n}catch(t){console.error("Search failed:",t)}finally{k.value=!1}},300),T=e=>{if(S.value=e,!e||!e.trim())return k.value=!1,void I();k.value=!0,V(e)},P=e=>{e||(I(),k.value=!1,S.value="",p.value?.blur())},R=()=>{I(),S.value="",c("change",null,null)},N=e=>{if(!e)return void c("change",e,null);let t;t=Array.isArray(e)?x.value.filter(t=>e.some(e=>String(e)===String(t.id))):x.value.find(t=>String(t.id)===String(e))||null,c("change",e,t)},D=()=>{S.value&&J({reportData:S.value,reportType:i.type.toLocaleLowerCase()}),c("apply",S.value),p.value?.blur()},F=async()=>{if(null===i.modelValue||void 0===i.modelValue||""===i.modelValue)return;const e=(Array.isArray(i.modelValue)?i.modelValue:[i.modelValue]).filter(e=>!x.value.some(t=>String(t.id)===String(e)));if(0!==e.length)try{let t=[];const a=e.map(e=>Number(e)).filter(e=>!Number.isNaN(e));if(0===a.length)return;if("Carrier"===i.type){const e=await z.carrier.getByIds(a,i.lineType);t=Array.isArray(e)?e:e.records||[]}else if("Line"===i.type){const e=await z.line.getByIds(a,i.lineType);t=Array.isArray(e)?e:e.records||[]}if(t.length>0){const e=t.filter(e=>!x.value.some(t=>t.id===e.id));x.value.push(...e)}}catch(t){console.error("Init selected data failed:",t)}};return a(()=>{F()}),r(()=>i.modelValue,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&"undefined"!=typeof window&&F()}),(e,t)=>(l(),d(E(Qe),{ref_key:"selectRef",ref:p,modelValue:b.value,"onUpdate:modelValue":t[0]||(t[0]=e=>b.value=e),multiple:n.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:C.value,"remote-method":T,loading:k.value,class:"jc:w-full jc-carrier-search-comp",teleported:!1,onChange:N,onVisibleChange:P,onClear:R,onFocus:t[1]||(t[1]=t=>e.$emit("focus")),onBlur:t[2]||(t[2]=t=>e.$emit("blur")),onRemoveTag:t[3]||(t[3]=t=>e.$emit("remove-tag",t))},U({empty:B(()=>[u("div",Xr,[k.value?(l(),s("div",Yr,v(m.value?"Searching...":"正在搜索中..."),1)):(l(),s("div",Zr,[n.showApplyData?(l(),s(g,{key:0},[u("p",null,v(m.value?"No results found. ":"暂无结果,"),1),u("div",$r,[u("span",{class:"jc:font-medium jc:text-[14px] jc:text-brand jc:leading-5 jc:text-center jc:cursor-pointer jc:ml-1",onClick:w(D,["stop"])},v(m.value?"Apply for data addition":"申请补充数据 "),1),u("img",{src:E(Fa),alt:"",class:"jc:mr-1 jc:size-4",onClick:w(D,["stop"])},null,8,es)])],64)):(l(),s("p",ts,v(m.value?"No results found.":"暂无结果"),1))]))])]),default:B(()=>[(l(!0),s(g,null,y(x.value,t=>{return l(),d(E(Ke),{key:t.id,label:m.value?t.displayEn||t.display:t.displayCn||t.display,value:(a=t.id,A.value?String(a):a)},{option:B(()=>[h(e.$slots,"option",{item:t},()=>[u("div",Kr,[u("span",null,v(m.value?t.displayEn||t.display:t.displayCn||t.display),1),t.code?(l(),s("span",Gr,v(t.code),1)):f("",!0)])],!0)]),_:2},1032,["label","value"]);var a}),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:B(()=>[h(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","multiple","placeholder","loading"]))}}),[["__scopeId","data-v-8b1bf751"]]),ns=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),os={class:"wrapper-container"},is={key:0,class:"wrapper-prepend"},rs={class:"wrapper-main"},ss={class:"wrapper-label"},ls={key:1,class:"wrapper-append"};const cs=/* @__PURE__ */un({name:"JcFloatWrapper",emits:["focus","blur"],props:{label:{type:String,default:""}},data:()=>({internalFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(e){const t=e.relatedTarget;t&&this.$el?.contains?.(t)||(this.internalFocus=!1,this.$emit("blur"))}}},[["render",function(e,t,a,n,o,i){return l(),s("div",{class:c(["jc-float-wrapper",{"is-focus":o.internalFocus,"is-have-prepend":i.isHavePrepend}]),onFocusin:t[0]||(t[0]=(...e)=>i.handleFocusIn&&i.handleFocusIn(...e)),onFocusout:t[1]||(t[1]=(...e)=>i.handleFocusOut&&i.handleFocusOut(...e))},[u("div",os,[i.isHavePrepend?(l(),s("div",is,[h(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",rs,[h(e.$slots,"default",{},void 0,!0),u("p",ss,v(a.label),1)]),i.isHaveAppend?(l(),s("div",ls,[h(e.$slots,"suffix",{},void 0,!0)])):f("",!0)])],34)}],["__scopeId","data-v-4e8a7fce"]]),us=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"}));function ds(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)e[n]=a[n]}return e}var ps=function e(t,a){function n(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=ds({},a,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var r in o)o[r]&&(i+="; "+r,!0!==o[r]&&(i+="="+o[r].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+i}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var a=document.cookie?document.cookie.split("; "):[],n={},o=0;o<a.length;o++){var i=a[o].split("="),r=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=t.read(r,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){n(e,"",ds({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,ds({},this.attributes,t))},withConverter:function(t){return e(ds({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const hs=()=>"undefined"!=typeof window,fs=(e,t)=>{if(hs())try{window.sessionStorage?.setItem(e,t)}catch(a){}},ms=e=>{if(!hs())return"";try{return window.sessionStorage?.getItem(e)||""}catch(t){return""}},gs=e=>{if(hs())try{window.sessionStorage?.removeItem(e)}catch(t){}},ys={redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]},vs=()=>{const e=ms("jc-auth-mobileEmailList")||"[]";return{thirdPartyId:ms("jc-auth-thirdPartyId"),thirdPartyEmail:ms("jc-auth-thirdPartyEmail"),thirdPartyType:ms("jc-auth-thirdPartyType"),thirdPartyUserName:ms("jc-auth-thirdPartyUserName"),mobileEmailList:JSON.parse(e)}},ws=e=>{e&&e.length>0&&fs("jc-auth-thirdPartyEmailVerifyList",JSON.stringify(e))},Cs=e=>{e&&e.length>0&&fs("jc-auth-thirdPartyMobileVerifyList",JSON.stringify(e))};function bs(t){const n=e(!1),o=e(null),i=e(!1),r=e(!1),s=e([]),l=e(!1);let c=null,u=null,d=!1;const p="current_login_type",h="jc_auth_state_check",f="jc_auth_active_instance",m=Math.random().toString(36).substring(2,15),g=e=>hs()?new URLSearchParams(window.location.search).get(e):null,y=()=>{u&&(clearInterval(u),u=null),c=null},v=()=>{console.log("🧹 [重置] 清空所有登录状态"),y(),hs()&&window.removeEventListener("message",w),n.value=!1,o.value=null,i.value=!1,r.value=!1,l.value=!1,s.value=[],d=!1,gs(p),gs(f),gs(h)},w=async e=>{if(!hs())return;if(![window.location.origin,"https://passport.jctrans.com","https://passport-sit.jctrans.net.cn","https://passport-sit2.jctrans.net.cn","http://localhost:8080","http://localhost:8086","http://localhost:8093"].includes(e.origin))return void console.warn("收到未知来源的消息:",e.origin);const{type:t,code:a,state:n}=e.data||{};if("THIRD_PARTY_LOGIN_CODE"===t&&a&&n){if(ms(f)!==m)return;if(ms(h)!==n)return;d=!0,console.log(`🍉 [主窗口] 实例 ${m} 收到授权码:`,a,n),window.removeEventListener("message",w),y();const e=ms(p)||null;if("TEST"===e){console.log("🍉 [主窗口] 测试模式:模拟接口返回");const e=ys;setTimeout(()=>{b(e)},500)}else await C(a,e)}},C=async(e,a)=>{const o=Z(),i={thirdPartyCode:e,appId:t.appId,redirectPath:t.redirectPath||"/",activityCode:o?.activityCode||"",referenceUserId:o?.referenceUserId||""};try{let e;"FACEBOOK"===a?e=await $(i):"LINKEDIN"===a&&(e=await ee(i)),e&&e.data&&b(e.data)}catch(r){console.error("登录 API 错误:",r),t.onError&&t.onError(r),v()}finally{n.value=!1,gs(p),gs(f)}},b=e=>{const a=e.data||e;if(console.log("🍉 处理登录结果:",a),o.value=a,n.value=!1,a.redirect&&a.tgc){const e="CPA"===t.appId?"tgc-CPA":"tgc";ps.set(e,a.tgc,{expires:30})}const l=a.mobileEmailList||[];if(((e,t)=>{e.thirdPartyId&&fs("jc-auth-thirdPartyId",e.thirdPartyId),e.thirdPartyEmail&&fs("jc-auth-thirdPartyEmail",e.thirdPartyEmail),e.thirdPartyType&&fs("jc-auth-thirdPartyType",e.thirdPartyType),e.thirdPartyUserName&&fs("jc-auth-thirdPartyUserName",e.thirdPartyUserName),t&&t.length>0&&fs("jc-auth-mobileEmailList",JSON.stringify(t))})(a?.thirdPartyInfo||{},a?.mobileEmailList||[]),l.length>0)console.log("👉 进入绑定流程"),s.value=l,i.value=!0,r.value=!1,t.onNeedBind&&t.onNeedBind(l);else if(a.redirect)if(console.log("👉 直接登录成功,准备跳转"),i.value=!1,r.value=!1,Y(a.result),t.onSuccess)t.onSuccess(a);else{const e=a.redirectPath||t.redirectPath;console.log("🍉 ~ useThirdPartyLogin.ts:426 ~ handleLoginSuccess ~ targetPath:",e),e&&Ts(e)}else console.log("👉 进入注册流程"),i.value=!1,s.value=[],r.value=!0};a(()=>{(()=>{if(hs()&&window.opener&&window.opener!==window){const e=g("code"),t=g("state");e&&(console.log("🍉 [弹窗] 获取到授权码,准备回传:",e),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:e,state:t},"*"),window.close())}})()}),D(()=>{hs()&&window.removeEventListener("message",w),v()});return{isLoading:n,isBindDialogVisible:i,isRegisterVisible:r,isUserClosed:l,bindList:s,loginResult:o,startLogin:e=>{if(!hs())return;if(n.value)return;v(),d=!1,window.addEventListener("message",w),n.value=!0,fs(p,e),fs(f,m);const t="jc_"+Math.random().toString(36).slice(2);fs(h,t);const a=window.location.hostname.includes("jctrans.com"),o=window.location.hostname.includes("sit2"),i=(window.location.hostname.includes("sit"),`${a?"https://passport.jctrans.com":o?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"}/oauth_callback.html`||window.location.origin+window.location.pathname);let r="";if("TEST"===e){r=`${a?"https://passport.jctrans.com/mock_auth.html":o?"https://passport-sit2.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(i)}&state=${t}`}else if("FACEBOOK"===e){r=`${"https://www.facebook.com/v22.0/dialog/oauth"}?client_id=${"1819580562224685"}&redirect_uri=${encodeURIComponent(i)}&state=${t}&scope=email,public_profile&display=popup`}else if("LINKEDIN"===e){r=`${"https://www.linkedin.com/oauth/v2/authorization"}?response_type=code&client_id=${"86t0770jygwztk"}&redirect_uri=${encodeURIComponent(i)}&state=${t}&scope=profile%20email%20openid`}const s=window.screen.width/window.innerWidth,g=(window.screen.width-600)/2/s+(void 0!==window.screenLeft?window.screenLeft:window.screenX),C=`\n width=600,\n height=700,\n top=${(window.screen.height-700)/2/s+(void 0!==window.screenTop?window.screenTop:window.screenY)},\n left=${g},\n toolbar=no,\n menubar=no,\n scrollbars=yes,\n status=no,\n location=no\n `;if(console.log(`🍉 打开弹窗 [${e}]: ${r}`),c=window.open(r,"ThirdPartyLogin",C),!c)return console.error("浏览器已阻止弹窗"),void(n.value=!1);u=setInterval(()=>{if(c&&c.closed){if(d)return console.log("🍉 [竞态] 检测到窗口关闭,但正在处理消息,忽略此次关闭检测"),void y();console.log("🍉 检测到弹窗被手动关闭,执行重置"),v(),l.value=!0}},1e3)},resetState:v,handleBindThirdParty:e=>{s.value=e,i.value=!0,r.value=!1},resetBindRegisterState:()=>{i.value=!1,r.value=!1,s.value=[]}}}async function As(e,t,a,n=!0,o=!0){if(!t||""===t.trim())return a(new Error(n?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t))return a(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[\u4e00-\u9fa5]+/.test(t))return a(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(t))return a(new Error(n?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));if(!o)return a();try{const{data:e}=await te({target:t});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",e),e.data)return a(new Error(n?"It's already occupied, please re-enter.":"已被占用,请重新输入"));a()}catch(i){a(new Error(n?"Validation failed, please re-enter.":"校验失败,请重新输入"))}}function Es(e,t,a,n=!0,o=!0){const i=/^[a-zA-Z\u4e00-\u9fa5\s.·•]+$/,r=/^[a-zA-Z\s.·•]+$/;if(!t){return a(new Error(o?n?"please enter your Chinese name":"请输入您的中文姓名":n?"Please enter your English name":"请输入您的英文姓名"))}if(o){if(t.length>50||!i.test(t))return a(new Error(n?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(t.length>50||!r.test(t))return a(new Error(n?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));a()}function ks(e,t,a,n=!0){const o={empty:n?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:n?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(null==t||""===t)return a(new Error(o.empty));if(t.length<6||t.length>20)return a(new Error(o.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t))return a(new Error(o.invalidChars));const i=/^[a-zA-Z]*$/.test(t),r=/^[0-9]*$/.test(t),s=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t);if(i||r||s)return a(new Error(o.complexity));a()}async function xs(e,t,a,n=!0,o=!0){const i={empty:n?"Please enter your cell phone number":"请输入手机号",minLen:n?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:n?"Invalid mobile address":"手机号格式错误",occupied:n?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!t)return a(new Error(i.empty));if(!/^[0-9]*$/.test(t))return a(new Error(i.invalid));if(t.length<2)return a(new Error(i.minLen));if(!o)return a();try{const e=await te({target:t});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",e),e&&e.data.data)return a(new Error(i.occupied));a()}catch(r){a(new Error(i.occupied))}}async function Ss(e,t,a,n=!0,o){const i=function(e){return e?e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}(t);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",i);const r=1==o.countryId;if(!i)return!r||"DDC"!==o.appId&&"JHB"!==o.appId?a(new Error(n?"please enter the full company name":"请输入公司名称")):a();if(i.length<2)return a(new Error(n?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(i.length>200)return a(new Error(n?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!r){if(/[\u4e00-\u9fa5]/.test(i))return a(new Error(n?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(i))return a(new Error(n?"Wrong format for company name":"注册公司名格式错误"))}if(o.countryId&&o.cityId)try{const e={countryId:o.countryId,cityId:o.cityId,[r?"compNameCn":"compNameEn"]:i},t=await ne(e);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",t),t.data.data.result?"JCPAY"===o.appId?a(new Error(n?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(r?o.companyResistCn=!0:o.companyResistEn=!0,o.resistCompanyInfo=t.data.data,a()):(r?o.companyResistCn=!1:o.companyResistEn=!1,a())}catch(s){const e=s?.toString().split(":")[1]||"API Error";a(new Error(e))}else a(new Error(n?"Please select a Country/Region":"请选择国家/地区"))}function Is(e,t,a,n=!0){return t?/^\d{4}$/.test(t)?void a():a(new Error(n?"Verification code must be 4 digits":"验证码必须为4位数字")):a(new Error(n?"Please enter the verification code":"请输入验证码"))}function Bs(e="_blank"){const t=window.location.hostname.includes("jctrans.com"),a=window.location.hostname.includes("sit2"),n=(window.location.hostname.includes("sit"),t?"https://passport.jctrans.com":a?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),o=document.createElement("a");o.href=`${n}/privacyAgreement`,o.target=e;const i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});o.dispatchEvent(i)}function Vs(e="_blank"){const t=window.location.hostname.includes("jctrans.com"),a=window.location.hostname.includes("sit2"),n=(window.location.hostname.includes("sit"),t?"https://passport.jctrans.com":a?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),o=document.createElement("a");o.href=`${n}/privacyPolicy`,o.target=e;const i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});o.dispatchEvent(i)}const Ts=(e,t=100)=>{process.env&&"development"===process.env.NODE_ENV?console.log("🍉 ~ constant.ts:517 ~ handleRedirect ~ path:",e):e&&setTimeout(()=>{e.startsWith("http")?window.location.href=e:(window.location.href=window.location.origin+e,console.warn("内部路径跳转逻辑尚未定义:",e))},t)},Ps={class:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},Rs={style:{color:"#f80"},class:"jc:text-xs"},Ns=/* @__PURE__ */o({__name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(e,{emit:a}){const n=e,o=a,i=t(()=>n.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),r=t(()=>n.isEn?"join in >>":"点击申请加入 >>"),c=()=>{o("apply-join")};return(e,t)=>(l(),s("div",Ps,[u("p",Rs,[t[0]||(t[0]=u("i",{class:"el-icon-warning"},null,-1)),x(" "+v(i.value),1)]),u("p",{style:{color:"#3264ff",cursor:"pointer"},onClick:c},v(r.value),1)]))}}),Us={name:"RegisterForm",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:dn,ChineseCompanySearch:co,GoogleInput:yo,ApplyJoinBtn:Ns},props:{isEn:Boolean},emits:["to-login","register","need-complete","register-success"],computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id||this.form?.city?.raw?.city?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:null,cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(e,t,a)=>{t?a():a(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Bs,getAuthSessionItems:Z,go2Policy:Vs,async inviteJoinGetComp(){const e=Z().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:557 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{})},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){const e=(await de()).data;console.log("🍉 ~ RegisterForm.vue:594 ~ IpData:",e),e&&0===e.code&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:e.data?.countryId},country:{id:e.data?.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=e.data?.countryId,this.handleSelectCity(this.form.city));const t=await pe();this.areaCodeData=t.data.data.records},handleClearCity(){console.log("🍉 ~ RegisterForm.vue:573 handleClearCity ~ :"),this.companyResistEn=!1,this.companyResistCn=!1},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){console.log("🍉 ~ RegisterForm.vue:586 ~ captchaData:",e),this.verifyData=e;const a={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};t(),console.log("🍉 ~ RegisterForm.vue:642 ~ startTimer:",t);let n=ue,o=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=fe,o=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.currentCountryIsChina?this.mobileUid=t:this.emailUid=t,Je.success(o))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;if(!this.verifyData.uuid)return void Je.error(this.isEn?"Please get code first":"请先获取验证码");const t=this.getAuthSessionItems();let a={appId:this.appId,fromSys:this.appId,passwd:yr.MD5(this.form.password).toString(),clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterInfo:t.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:t.uniqueCode||""};this.currentCountryIsChina?Object.assign(a,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:ce(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(a,{type:"EMAIL",account:ce(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),console.log("🍉 ~ RegisterForm.vue:676 ~ submitData:",a),this.hasResistCompany?this.handleApplyJoinSubmit(a):this.handleNewCompanySubmit(a)})},async handleNewCompanySubmit(e){const t=this.getAuthSessionItems(),a={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?a.compNameCn=this.form.companyName:a.compNameEn=this.form.companyName,this.$emit("register",a),console.log("🍉 ~ RegisterForm.vue:698 ~ registerPayload:",a),this.loading=!0;try{const e=t.uniqueCode?se:le,n=await e(a);this.handlePostRegister(n)}catch(n){this.loading=!1}},async handleApplyJoinSubmit(e){const t=this.getAuthSessionItems(),a={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(a.nameCn=this.form.nameCn),this.form.nameEn&&(a.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete a[e]),this.$emit("register",a),this.loading=!0;try{const e=t.uniqueCode?ie:re,n=await e(a);this.handlePostRegister(n)}catch(n){this.loading=!1}},normalizeDelayMs(e){if(null==e||""===e)return 0;if("string"==typeof e){const t=e.trim().toLowerCase();if(!t)return 0;if(t.endsWith("ms")){const e=Number(t.slice(0,-2).trim());return Number.isFinite(e)&&e>=0?e:0}if(t.endsWith("s")){const e=Number(t.slice(0,-1).trim());return Number.isFinite(e)&&e>=0?1e3*e:0}const a=Number(t);return!Number.isFinite(a)||a<0?0:a>=10?a:1e3*a}const t=Number(e);return!Number.isFinite(t)||t<0?0:t>=10?t:1e3*t},executeRedirectWithDelay(e,t){const a=this.normalizeDelayMs(t);setTimeout(()=>{oe(),Ts(e)},a)},handlePostRegister(e){const t=this.getAuthSessionItems();if(console.log("🍉 ~ RegisterForm.vue:749 ~ res.data:",e.data),0===e.data.code)if(e.data.data.redirect){if(Y(e.data.data.result),e.data.data.result&&e.data.data.result.improveComp)return void this.$emit("need-complete",e.data.data.result.improveComp);try{ps.set("tgc",e.data.data.tgc,{expires:30});const a=e.data.data.redirectPath||t.path||"/",n={isHandled:!1},o=e=>{n.isHandled=!0,this.executeRedirectWithDelay(a,e)},i=()=>{n.isHandled=!0};this.$emit("register-success",{user:e.data.data.result,redirectPath:a,preventDefault:i,redirect:o}),setTimeout(()=>{n.isHandled||this.executeRedirectWithDelay(a,0)},0)}catch(a){console.error("🍉 注册成功后的后续处理发生异常:",a)}}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Je.error(e.data.msg)}}},Ds={class:"register-form-container"},Fs={class:"register-title"},_s={class:"resist-company-info-card"},Ls={class:"card-header"},Ms={class:"title-group"},Os={class:"tip-text"},js={class:"company-content"},qs={class:"company-name"},Hs={class:"card-header"},zs={class:"title-group"},Js={class:"tip-text"},Ws={class:"location-info"},Qs={key:4,class:"sector-section"},Ks={class:"sector-label"},Gs={class:"sector-group"},Xs=["onClick"],Ys={key:0,class:"icon-auth-checked"},Zs={class:"agree-text"},$s={class:"bottom-tip"};const el=/* @__PURE__ */un(Us,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),C=V("ChineseCompanySearch"),b=V("ApplyJoinBtn"),A=V("JcFloatInput"),E=V("el-option"),k=V("el-select"),S=V("google-input"),I=V("CodeInput"),T=V("el-checkbox"),P=V("el-button"),R=V("el-form");return l(),s("div",Ds,[u("div",Fs,[u("p",null,v(a.isEn?"New User Registration":"新用户注册"),1)]),p(R,{ref:"registerFormRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[u("div",_s,[u("div",Ls,[u("div",Ms,[u("span",Os,v(a.isEn?"Company name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),u("div",js,[u("h4",qs,v(a.isEn?o.resistCompanyInfo.compNameEn||o.resistCompanyInfo.compNameCn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),u("div",Hs,[u("div",zs,[u("span",Js,v(a.isEn?"Location(City)":"所在地(城市)"),1)])]),u("div",Ws,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(A,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],onClear:i.handleClearCity,onSelect:i.handleSelectCity,placeholder:a.isEn?"Location(City)":"请输入公司所在城市"},{prefix:B(()=>[...t[19]||(t[19]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","onClear","onSelect","placeholder"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(C,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),"country-id":o.form.city?.raw?.country?.id||o.form.city?.raw?.city?.countryId||null,city:o.form.city,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[20]||(t[20]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id","city","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),d(b,{key:0,"is-en":a.isEn,onApplyJoin:i.handleApplyJoinClick},null,8,["is-en","onApplyJoin"])):f("",!0)],64)),i.currentCountryIsChina?(l(),d(m,{key:2,class:"phone-form-item"},{default:B(()=>[(l(),d(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(S,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[t[22]||(t[22]=u("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),d(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1})):f("",!0),i.currentCountryIsChina?f("",!0):(l(),d(m,{key:3,prop:"email",class:"email-form-item"},{default:B(()=>[p(A,{modelValue:o.form.email,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[12]||(t[12]=e=>i.validateField("email"))},{prefix:B(()=>[...t[23]||(t[23]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),p(m,{prop:"code"},{default:B(()=>[p(I,{modelValue:o.form.code,"onUpdate:modelValue":t[13]||(t[13]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:B(()=>[...t[24]||(t[24]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),p(m,{prop:"password",class:"password-form-item"},{default:B(()=>[p(A,{modelValue:o.form.password,"onUpdate:modelValue":t[14]||(t[14]=e=>o.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:a.isEn?"Password":"密码",placeholder:a.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...t[25]||(t[25]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),o.hasResistCompany?f("",!0):(l(),s("div",Qs,[u("p",Ks,v(a.isEn?"Industry Sector":"行业类型"),1),u("div",Gs,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Ys)):f("",!0)],10,Xs))),128))])])),p(m,{prop:"agree",class:"agree-item"},{default:B(()=>[p(T,{modelValue:o.form.agree,"onUpdate:modelValue":t[17]||(t[17]=e=>o.form.agree=e)},{default:B(()=>[u("span",Zs,[x(v(a.isEn?"I agree":"我同意")+" ",1),u("span",{class:"link-type",onClick:t[15]||(t[15]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(a.isEn?"User Agreement":"《用户条款和协议》"),1),x(" "+v(a.isEn?"and":"和")+" ",1),u("span",{class:"link-type",onClick:t[16]||(t[16]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(a.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),p(P,{class:c(["submit-btn register-btn",["register-btn-is-active"]]),disabled:o.loading,loading:o.loading,onClick:i.handleRegister},{default:B(()=>[x(v(a.isEn?"Register and Log in":"注册并登录")+" ",1),t[26]||(t[26]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["disabled","loading","onClick"])]),_:1},8,["model","rules"]),u("div",$s,[x(v(a.isEn?"Already have an account?":"已有账号?")+" ",1),u("span",{class:"action-text",onClick:t[18]||(t[18]=t=>e.$emit("to-login"))},[x(v(a.isEn?"Click to log in":"去登录")+" ",1),t[27]||(t[27]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])])])}],["__scopeId","data-v-e49d204e"]]);var tl,al,nl={};var ol,il={},rl={};function sl(){if(ol)return rl;let e;ol=1;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return rl.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},rl.getSymbolTotalCodewords=function(e){return t[e]},rl.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},rl.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},rl.isKanjiModeEnabled=function(){return void 0!==e},rl.toSJIS=function(t){return e(t)},rl}var ll,cl,ul,dl,pl,hl={};function fl(){return ll||(ll=1,(e=hl).L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,a){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return a}}),hl;var e}var ml,gl={};var yl,vl={};var wl,Cl={};var bl,Al={};function El(){if(bl)return Al;bl=1;const e=fl(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Al.getBlocksCount=function(a,n){switch(n){case e.L:return t[4*(a-1)+0];case e.M:return t[4*(a-1)+1];case e.Q:return t[4*(a-1)+2];case e.H:return t[4*(a-1)+3];default:return}},Al.getTotalCodewordsCount=function(t,n){switch(n){case e.L:return a[4*(t-1)+0];case e.M:return a[4*(t-1)+1];case e.Q:return a[4*(t-1)+2];case e.H:return a[4*(t-1)+3];default:return}},Al}var kl,xl,Sl,Il,Bl={},Vl={};function Tl(){return xl||(xl=1,function(e){const t=function(){if(kl)return Vl;kl=1;const e=new Uint8Array(512),t=new Uint8Array(256);return function(){let a=1;for(let n=0;n<255;n++)e[n]=a,t[a]=n,a<<=1,256&a&&(a^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),Vl.log=function(e){if(e<1)throw new Error("log("+e+")");return t[e]},Vl.exp=function(t){return e[t]},Vl.mul=function(a,n){return 0===a||0===n?0:e[t[a]+t[n]]},Vl}();e.mul=function(e,a){const n=new Uint8Array(e.length+a.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<a.length;i++)n[o+i]^=t.mul(e[o],a[i]);return n},e.mod=function(e,a){let n=new Uint8Array(e);for(;n.length-a.length>=0;){const e=n[0];for(let i=0;i<a.length;i++)n[i]^=t.mul(a[i],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},e.generateECPolynomial=function(a){let n=new Uint8Array([1]);for(let o=0;o<a;o++)n=e.mul(n,new Uint8Array([1,t.exp(o)]));return n}}(Bl)),Bl}var Pl,Rl={},Nl={},Ul={};function Dl(){return Pl||(Pl=1,Ul.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),Ul}var Fl,_l,Ll,Ml={};function Ol(){if(Fl)return Ml;Fl=1;const e="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Ml.KANJI=new RegExp(t,"g"),Ml.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ml.BYTE=new RegExp(a,"g"),Ml.NUMERIC=new RegExp(e,"g"),Ml.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const n=new RegExp("^"+t+"$"),o=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ml.testKanji=function(e){return n.test(e)},Ml.testNumeric=function(e){return o.test(e)},Ml.testAlphanumeric=function(e){return i.test(e)},Ml}function jl(){return _l||(_l=1,function(e){const t=Dl(),a=Ol();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,a){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?e.ccBits[0]:a<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return a.testNumeric(t)?e.NUMERIC:a.testAlphanumeric(t)?e.ALPHANUMERIC:a.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,a){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(n){return a}}}(Nl)),Nl}function ql(){return Ll||(Ll=1,function(e){const t=sl(),a=El(),n=fl(),o=jl(),i=Dl(),r=t.getBCHDigit(7973);function s(e,t){return o.getCharCountIndicator(e,t)+4}function l(e,t){let a=0;return e.forEach(function(e){const n=s(e.mode,t);a+=n+e.getBitsLength()}),a}e.from=function(e,t){return i.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,n,r){if(!i.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=o.BYTE);const l=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,n));if(r===o.MIXED)return l;const c=l-s(r,e);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,a){let i;const r=n.from(a,n.M);if(Array.isArray(t)){if(t.length>1)return function(t,a){for(let n=1;n<=40;n++)if(l(t,n)<=e.getCapacity(n,a,o.MIXED))return n}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,a,n){for(let o=1;o<=40;o++)if(a<=e.getCapacity(o,n,t))return o}(i.mode,i.getLength(),r)},e.getEncodedBits=function(e){if(!i.isValid(e)||e<7)throw new Error("Invalid QR Code version");let a=e<<12;for(;t.getBCHDigit(a)-r>=0;)a^=7973<<t.getBCHDigit(a)-r;return e<<12|a}}(Rl)),Rl}var Hl,zl={};var Jl,Wl,Ql,Kl,Gl,Xl,Yl,Zl,$l={};var ec,tc,ac,nc={exports:{}};function oc(){return tc||(tc=1,function(e){const t=jl(),a=function(){if(Wl)return Jl;Wl=1;const e=jl();function t(t){this.mode=e.NUMERIC,this.data=t.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let t,a,n;for(t=0;t+3<=this.data.length;t+=3)a=this.data.substr(t,3),n=parseInt(a,10),e.put(n,10);const o=this.data.length-t;o>0&&(a=this.data.substr(t),n=parseInt(a,10),e.put(n,3*o+1))},Jl=t}(),n=function(){if(Kl)return Ql;Kl=1;const e=jl(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(t){this.mode=e.ALPHANUMERIC,this.data=t}return a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let a;for(a=0;a+2<=this.data.length;a+=2){let n=45*t.indexOf(this.data[a]);n+=t.indexOf(this.data[a+1]),e.put(n,11)}this.data.length%2&&e.put(t.indexOf(this.data[a]),6)},Ql=a}(),o=function(){if(Xl)return Gl;Xl=1;const e=jl();function t(t){this.mode=e.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}return t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){for(let t=0,a=this.data.length;t<a;t++)e.put(this.data[t],8)},Gl=t}(),i=function(){if(Zl)return Yl;Zl=1;const e=jl(),t=sl();function a(t){this.mode=e.KANJI,this.data=t}return a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let a;for(a=0;a<this.data.length;a++){let n=t.toSJIS(this.data[a]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},Yl=a}(),r=Ol(),s=sl(),l=function(){return ec?nc.exports:(ec=1,nc.exports=e={single_source_shortest_paths:function(t,a,n){var o={},i={};i[a]=0;var r,s,l,c,u,d,p,h=e.PriorityQueue.make();for(h.push(a,0);!h.empty();)for(l in s=(r=h.pop()).value,c=r.cost,u=t[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],p=i[l],(void 0===i[l]||p>d)&&(i[l]=d,h.push(l,d),o[l]=s));if(void 0!==n&&void 0===i[n]){var f=["Could not find a path from ",a," to ",n,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var a=[],n=t;n;)a.push(n),e[n],n=e[n];return a.reverse(),a},find_path:function(t,a,n){var o=e.single_source_shortest_paths(t,a,n);return e.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(t){var a,n=e.PriorityQueue,o={};for(a in t=t||{},n)n.hasOwnProperty(a)&&(o[a]=n[a]);return o.queue=[],o.sorter=t.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var a={value:e,cost:t};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}});var e}();function c(e){return unescape(encodeURIComponent(e)).length}function u(e,t,a){const n=[];let o;for(;null!==(o=e.exec(a));)n.push({data:o[0],index:o.index,mode:t,length:o[0].length});return n}function d(e){const a=u(r.NUMERIC,t.NUMERIC,e),n=u(r.ALPHANUMERIC,t.ALPHANUMERIC,e);let o,i;s.isKanjiModeEnabled()?(o=u(r.BYTE,t.BYTE,e),i=u(r.KANJI,t.KANJI,e)):(o=u(r.BYTE_KANJI,t.BYTE,e),i=[]);return a.concat(n,o,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,r){switch(r){case t.NUMERIC:return a.getBitsLength(e);case t.ALPHANUMERIC:return n.getBitsLength(e);case t.KANJI:return i.getBitsLength(e);case t.BYTE:return o.getBitsLength(e)}}function h(e,r){let l;const c=t.getBestModeForData(e);if(l=t.from(r,c),l!==t.BYTE&&l.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(l)+".\n Suggested mode is: "+t.toString(c));switch(l!==t.KANJI||s.isKanjiModeEnabled()||(l=t.BYTE),l){case t.NUMERIC:return new a(e);case t.ALPHANUMERIC:return new n(e);case t.KANJI:return new i(e);case t.BYTE:return new o(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(h(t,null)):t.data&&e.push(h(t.data,t.mode)),e},[])},e.fromString=function(a,n){const o=function(e){const a=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case t.NUMERIC:a.push([o,{data:o.data,mode:t.ALPHANUMERIC,length:o.length},{data:o.data,mode:t.BYTE,length:o.length}]);break;case t.ALPHANUMERIC:a.push([o,{data:o.data,mode:t.BYTE,length:o.length}]);break;case t.KANJI:a.push([o,{data:o.data,mode:t.BYTE,length:c(o.data)}]);break;case t.BYTE:a.push([{data:o.data,mode:t.BYTE,length:c(o.data)}])}}return a}(d(a,s.isKanjiModeEnabled())),i=function(e,a){const n={},o={start:{}};let i=["start"];for(let r=0;r<e.length;r++){const s=e[r],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+r+e;l.push(u),n[u]={node:c,lastCount:0},o[u]={};for(let e=0;e<i.length;e++){const r=i[e];n[r]&&n[r].node.mode===c.mode?(o[r][u]=p(n[r].lastCount+c.length,c.mode)-p(n[r].lastCount,c.mode),n[r].lastCount+=c.length):(n[r]&&(n[r].lastCount=c.length),o[r][u]=p(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,a))}}i=l}for(let t=0;t<i.length;t++)o[i[t]].end=0;return{map:o,table:n}}(o,n),r=l.find_path(i.map,"start","end"),u=[];for(let e=1;e<r.length-1;e++)u.push(i.table[r[e]].node);return e.fromArray(function(e){return e.reduce(function(e,t){const a=e.length-1>=0?e[e.length-1]:null;return a&&a.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(u))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}}($l)),$l}function ic(){if(ac)return il;ac=1;const e=sl(),t=fl(),a=function(){if(ul)return cl;function e(){this.buffer=[],this.length=0}return ul=1,e.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let a=0;a<t;a++)this.putBit(1==(e>>>t-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},cl=e}(),n=function(){if(pl)return dl;function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return pl=1,e.prototype.set=function(e,t,a,n){const o=e*this.size+t;this.data[o]=a,n&&(this.reservedBit[o]=!0)},e.prototype.get=function(e,t){return this.data[e*this.size+t]},e.prototype.xor=function(e,t,a){this.data[e*this.size+t]^=a},e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},dl=e}(),o=(ml||(ml=1,function(e){const t=sl().getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];const a=Math.floor(e/7)+2,n=t(e),o=145===n?26:2*Math.ceil((n-13)/(2*a-2)),i=[n-7];for(let t=1;t<a-1;t++)i[t]=i[t-1]-o;return i.push(6),i.reverse()},e.getPositions=function(t){const a=[],n=e.getRowColCoords(t),o=n.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||a.push([n[e],n[t]]);return a}}(gl)),gl),i=function(){if(yl)return vl;yl=1;const e=sl().getSymbolSize;return vl.getPositions=function(t){const a=e(t);return[[0,0],[a-7,0],[0,a-7]]},vl}(),r=(wl||(wl=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,a=3,n=40,o=10;function i(t,a,n){switch(t){case e.Patterns.PATTERN000:return(a+n)%2==0;case e.Patterns.PATTERN001:return a%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(a+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return a*n%2+a*n%3==0;case e.Patterns.PATTERN110:return(a*n%2+a*n%3)%2==0;case e.Patterns.PATTERN111:return(a*n%3+(a+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){const a=e.size;let n=0,o=0,i=0,r=null,s=null;for(let l=0;l<a;l++){o=i=0,r=s=null;for(let c=0;c<a;c++){let a=e.get(l,c);a===r?o++:(o>=5&&(n+=t+(o-5)),r=a,o=1),a=e.get(c,l),a===s?i++:(i>=5&&(n+=t+(i-5)),s=a,i=1)}o>=5&&(n+=t+(o-5)),i>=5&&(n+=t+(i-5))}return n},e.getPenaltyN2=function(e){const t=e.size;let n=0;for(let a=0;a<t-1;a++)for(let o=0;o<t-1;o++){const t=e.get(a,o)+e.get(a,o+1)+e.get(a+1,o)+e.get(a+1,o+1);4!==t&&0!==t||n++}return n*a},e.getPenaltyN3=function(e){const t=e.size;let a=0,o=0,i=0;for(let n=0;n<t;n++){o=i=0;for(let r=0;r<t;r++)o=o<<1&2047|e.get(n,r),r>=10&&(1488===o||93===o)&&a++,i=i<<1&2047|e.get(r,n),r>=10&&(1488===i||93===i)&&a++}return a*n},e.getPenaltyN4=function(e){let t=0;const a=e.data.length;for(let n=0;n<a;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/a/5)-10)*o},e.applyMask=function(e,t){const a=t.size;for(let n=0;n<a;n++)for(let o=0;o<a;o++)t.isReserved(o,n)||t.xor(o,n,i(e,o,n))},e.getBestMask=function(t,a){const n=Object.keys(e.Patterns).length;let o=0,i=1/0;for(let r=0;r<n;r++){a(r),e.applyMask(r,t);const n=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(r,t),n<i&&(i=n,o=r)}return o}}(Cl)),Cl),s=El(),l=function(){if(Il)return Sl;Il=1;const e=Tl();function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(t){this.degree=t,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(t.length+this.degree);a.set(t);const n=e.mod(a,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},Sl=t}(),c=ql(),u=function(){if(Hl)return zl;Hl=1;const e=sl(),t=e.getBCHDigit(1335);return zl.getEncodedBits=function(a,n){const o=a.bit<<3|n;let i=o<<10;for(;e.getBCHDigit(i)-t>=0;)i^=1335<<e.getBCHDigit(i)-t;return 21522^(o<<10|i)},zl}(),d=jl(),p=oc();function h(e,t,a){const n=e.size,o=u.getEncodedBits(t,a);let i,r;for(i=0;i<15;i++)r=1==(o>>i&1),i<6?e.set(i,8,r,!0):i<8?e.set(i+1,8,r,!0):e.set(n-15+i,8,r,!0),i<8?e.set(8,n-i-1,r,!0):i<9?e.set(8,15-i-1+1,r,!0):e.set(8,15-i-1,r,!0);e.set(n-8,8,1,!0)}function f(t,n,o){const i=new a;o.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),d.getCharCountIndicator(e.mode,t)),e.write(i)});const r=8*(e.getSymbolTotalCodewords(t)-s.getTotalCodewordsCount(t,n));for(i.getLengthInBits()+4<=r&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(r-i.getLengthInBits())/8;for(let e=0;e<c;e++)i.put(e%2?17:236,8);return function(t,a,n){const o=e.getSymbolTotalCodewords(a),i=s.getTotalCodewordsCount(a,n),r=o-i,c=s.getBlocksCount(a,n),u=o%c,d=c-u,p=Math.floor(o/c),h=Math.floor(r/c),f=h+1,m=p-h,g=new l(m);let y=0;const v=new Array(c),w=new Array(c);let C=0;const b=new Uint8Array(t.buffer);for(let e=0;e<c;e++){const t=e<d?h:f;v[e]=b.slice(y,y+t),w[e]=g.encode(v[e]),y+=t,C=Math.max(C,t)}const A=new Uint8Array(o);let E,k,x=0;for(E=0;E<C;E++)for(k=0;k<c;k++)E<v[k].length&&(A[x++]=v[k][E]);for(E=0;E<m;E++)for(k=0;k<c;k++)A[x++]=w[k][E];return A}(i,t,n)}function m(t,a,s,l){let u;if(Array.isArray(t))u=p.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=a;if(!e){const a=p.rawSplit(t);e=c.getBestVersionForData(a,s)}u=p.fromString(t,e||40)}}const d=c.getBestVersionForData(u,s);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(a){if(a<d)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+d+".\n")}else a=d;const m=f(a,s,u),g=e.getSymbolSize(a),y=new n(g);return function(e,t){const a=e.size,n=i.getPositions(t);for(let o=0;o<n.length;o++){const t=n[o][0],i=n[o][1];for(let n=-1;n<=7;n++)if(!(t+n<=-1||a<=t+n))for(let o=-1;o<=7;o++)i+o<=-1||a<=i+o||(n>=0&&n<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===n||6===n)||n>=2&&n<=4&&o>=2&&o<=4?e.set(t+n,i+o,!0,!0):e.set(t+n,i+o,!1,!0))}}(y,a),function(e){const t=e.size;for(let a=8;a<t-8;a++){const t=a%2==0;e.set(a,6,t,!0),e.set(6,a,t,!0)}}(y),function(e,t){const a=o.getPositions(t);for(let n=0;n<a.length;n++){const t=a[n][0],o=a[n][1];for(let a=-2;a<=2;a++)for(let n=-2;n<=2;n++)-2===a||2===a||-2===n||2===n||0===a&&0===n?e.set(t+a,o+n,!0,!0):e.set(t+a,o+n,!1,!0)}}(y,a),h(y,s,0),a>=7&&function(e,t){const a=e.size,n=c.getEncodedBits(t);let o,i,r;for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+a-8-3,r=1==(n>>s&1),e.set(o,i,r,!0),e.set(i,o,r,!0)}(y,a),function(e,t){const a=e.size;let n=-1,o=a-1,i=7,r=0;for(let s=a-1;s>0;s-=2)for(6===s&&s--;;){for(let a=0;a<2;a++)if(!e.isReserved(o,s-a)){let n=!1;r<t.length&&(n=1==(t[r]>>>i&1)),e.set(o,s-a,n),i--,-1===i&&(r++,i=7)}if(o+=n,o<0||a<=o){o-=n,n=-n;break}}}(y,m),isNaN(l)&&(l=r.getBestMask(y,h.bind(null,y,s))),r.applyMask(l,y),h(y,s,l),{modules:y,version:a,errorCorrectionLevel:s,maskPattern:l,segments:u}}return il.create=function(a,n){if(void 0===a||""===a)throw new Error("No input text");let o,i,s=t.M;return void 0!==n&&(s=t.from(n.errorCorrectionLevel,t.M),o=c.from(n.version),i=r.from(n.maskPattern),n.toSJISFunc&&e.setToSJISFunction(n.toSJISFunc)),m(a,o,s,i)},il}var rc,sc,lc={},cc={};function uc(){return rc||(rc=1,function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const a=parseInt(t.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});const a=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:a,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,a){const n=e.getScale(t,a);return Math.floor((t+2*a.margin)*n)},e.qrToImageData=function(t,a,n){const o=a.modules.size,i=a.modules.data,r=e.getScale(o,n),s=Math.floor((o+2*n.margin)*r),l=n.margin*r,c=[n.color.light,n.color.dark];for(let e=0;e<s;e++)for(let a=0;a<s;a++){let u=4*(e*s+a),d=n.color.light;if(e>=l&&a>=l&&e<s-l&&a<s-l){d=c[i[Math.floor((e-l)/r)*o+Math.floor((a-l)/r)]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}}(cc)),cc}function dc(){return sc||(sc=1,function(e){const t=uc();e.render=function(e,a,n){let o=n,i=a;void 0!==o||a&&a.getContext||(o=a,a=void 0),a||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=t.getOptions(o);const r=t.getImageWidth(e.modules.size,o),s=i.getContext("2d"),l=s.createImageData(r,r);return t.qrToImageData(l.data,e,o),function(e,t,a){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=a,t.width=a,t.style.height=a+"px",t.style.width=a+"px"}(s,i,r),s.putImageData(l,0,0),i},e.renderToDataURL=function(t,a,n){let o=n;void 0!==o||a&&a.getContext||(o=a,a=void 0),o||(o={});const i=e.render(t,a,o),r=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(r,s.quality)}}(lc)),lc}var pc,hc,fc={};function mc(){if(pc)return fc;pc=1;const e=uc();function t(e,t){const a=e.a/255,n=t+'="'+e.hex+'"';return a<1?n+" "+t+'-opacity="'+a.toFixed(2).slice(1)+'"':n}function a(e,t,a){let n=e+t;return void 0!==a&&(n+=" "+a),n}return fc.render=function(n,o,i){const r=e.getOptions(o),s=n.modules.size,l=n.modules.data,c=s+2*r.margin,u=r.color.light.a?"<path "+t(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+t(r.color.dark,"stroke")+' d="'+function(e,t,n){let o="",i=0,r=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||r||(r=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(o+=r?a("M",c+n,.5+u+n):a("m",i,0),i=0,r=!1),c+1<t&&e[l+1]||(o+=a("h",s),s=0)):i++}return o}(l,s,r.margin)+'"/>',p='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+p+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof i&&i(null,h),h},fc}const gc=/* @__PURE__ */Io(function(){if(hc)return nl;hc=1;const e=al?tl:(al=1,tl=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}),t=ic(),a=dc(),n=mc();function o(a,n,o,i,r){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(o=n,n=i=void 0):2!==l||n.getContext||(i=o,o=n,n=void 0),new Promise(function(e,r){try{const r=t.create(o,i);e(a(r,n,i))}catch(s){r(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(r=o,o=n,n=i=void 0):3===l&&(n.getContext&&void 0===r?(r=i,i=void 0):(r=i,i=o,o=n,n=void 0));try{const e=t.create(o,i);r(null,a(e,n,i))}catch(u){r(u)}}return nl.create=t.create,nl.toCanvas=o.bind(null,a.render),nl.toDataURL=o.bind(null,a.renderToDataURL),nl.toString=o.bind(null,function(e,t,a){return n.render(e,a)}),nl}()),yc={class:"login-wx"},vc={class:"login-wx-code"},wc={class:"expired-text mt10 mb10"},Cc={class:"scan-tip"},bc=/* @__PURE__ */un(/* @__PURE__ */o({__name:"WechatLogin",props:{appId:{default:"ERA"},path:{},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(t,{emit:n}){const o=t,i=n,r=e(null),d=e(!0),h=e(!1),g=e("");let y=null;const C=async()=>{d.value=!0,k();try{const{data:t}=await me();if(console.log("🍉 ~ WechatLogin.vue:126 ~ fetchWxCode ~ data:",t),0===t?.code){g.value=t.data?.uniqueCode,h.value=!1;try{ge({uniqueCode:g.value})}catch(e){console.log("🍉 ~ WechatLogin.vue:114 ~ fetchWxCode ~ error:",e)}await(async e=>{if(await O(),r.value)try{await gc.toCanvas(r.value,e,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(t){console.error("QR Code render error:",t)}})(t.data?.qrCodeUrl),b()}else h.value=!0}catch(e){console.error("Fetch WeChat QR fail:",e)}finally{d.value=!1}},b=()=>{const e=window.BASE_INFO?.WX_POLLING_TIME||3e3;y=setInterval(async()=>{try{console.log("🍉 ~ WechatLogin.vue:173 ~ startPolling ~ props:",o);const{data:e}=await ye({uniqueCode:g.value,appId:o.appId,redirectPath:o.path||"",kick:!1});console.log("🍉 ~ WechatLogin.vue:159 ~ startPolling ~ data:",e),0===e.code&&A(e)}catch(e){console.error("Polling error:",e),k()}},e)},A=e=>{switch(e.subcode){case"EXPIRED":case"FOLLOWED_CANCEL":h.value=!0,k();break;case"FOLLOWED_NO_USER":i("need-register",g.value);break;case"FOLLOWED_LOGIN_SUCCESS":k(!1),I(e.data)}},k=(e=!0)=>{e&&(g.value=""),ge({uniqueCode:""}),y&&(clearInterval(y),y=null)},S=()=>{C()},I=async e=>{if(e.result&&Y(e.result),!0===e.redirect){const t="CPA"===o.appId?"tgc-CPA":"tgc";ps.set(t,e.tgc,{expires:30})}if(!0===e.hasLogon)try{await it.confirm(o.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",o.isEn?"Tips":"提示",{confirmButtonText:o.isEn?"Confirm":"确定",cancelButtonText:o.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),V()}catch{C()}else T(e.redirectPath)},V=async()=>{d.value=!0;try{const{data:e}=await ye({uniqueCode:g.value,appId:o.appId,redirectPath:o.path||"",kick:!0});if(console.log("🍉 ~ WechatLogin.vue:279 ~ reLoginWithKick ~ data:",e),0===e.code){if(Y(e.data.result),e.data.result?.improveComp)return void i("need-complete",e.data.result.improveComp);T(e.data.redirectPath)}}catch(e){Je.error(o.isEn?"Login failed":"登录失败")}finally{d.value=!1}},T=e=>{localStorage.setItem("jc-qrCode-login","wx"),k(),e&&Ts(e),i("success")};return a(()=>{C()}),D(()=>{k()}),(e,a)=>(l(),s("div",yc,[m((l(),s("div",vc,[u("div",{class:c(["qr-canvas-wrapper flex-center",{"qrcode-error-mask":h.value}])},[u("canvas",{ref_key:"qrCanvasRef",ref:r},null,512)],2),h.value?(l(),s("div",{key:0,class:"refresh-overlay flex-center",onClick:S},[a[0]||(a[0]=u("img",{src:"data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0xXZtvhGY+x52WHLcCHeNxRfOfR5Fu/tpdZaJ1mWZeOiA0zFL+w9j/I9NSffY5NUvmeVwTfp8PxNbrn9HRbs2zo8fU3Muq3K6EtK5JFtkzT6ilPmUrji+CvueSh64OULVMJJ0TamEq7JXBx7vAZTCVWXbcNlqBdm4nxFthPmGrPrJj2SvRBXUBdPNcTUvdQTXIu3eoP+gVt1hWlKyLaBQaNs275awvJIwlYeDaBH/f40BXQnkuCVq7HBmr5VI/naaP+iWj1bl98fVlA4IE4BAAAQBwCdASooACgAPi0ShkKhoQ42SgAMAWJZWxKQyHAkNc+PADbI89n6J94A3jAJQK0xA6Tk60mYtNspcySSE/tFIADM///yqf//Kgv//ywQt7g1bu7h+xw3tKfdFW3YSP2h0iF6VIn4CTXLv//vM//94Jv//ee+S0E0m6xnEgxdBDf7ewX/lL4BgZWe2EfgOrK0pMN4Qy5uWqWBS4KWWUfrCz0nMK/H/I4/+XhdD+65pGbyiKvih/6tn//ciDb/uimjajMDV4Q/Xe6/5j9xYKcn08xURQpu0wODf/+3SuKUFZLR0yHKFUmWQGuB/RhP/o3UFQW2JYdAdLNwvjre+S6H5X//i0Kc3jhiy9mLmUsuJ+4/5++fwdGZUbaTBUfk9QB9rjsVLVNwQW2lzccI98O08eePpfHRQKN1FzjT/cMehMc50hgx//o3l7EokAAA",alt:"refresh",class:"refresh-icon"},null,-1)),u("div",wc,v(t.isEn?"The QR code has expired":"二维码已过期"),1),p(E(at),{type:"primary",class:"jc:text-white",onClick:w(S,["stop"])},{default:B(()=>[x(v(t.isEn?"Rescan QR code":"重新扫码"),1)]),_:1})])):f("",!0),u("div",Cc,[a[1]||(a[1]=u("img",{src:"data:image/webp;base64,UklGRhACAABXRUJQVlA4WAoAAAAQAAAAGAAAFwAAQUxQSOcAAAABgINt27HlzZxs1+i945+yudmaXJMm27btmmzbtm094f2+L88RMQHoH0ivGDZ+dTufRGOhwhmw/QIfT5NlyDEEHdz1zdzA5sDmTZ4EKeWJp2may+JdpEray5o7HRnnPYCzy2e43uvNSQvW5CfhcwDY1eKWK4CX3WgRAt0NzG7T6At8vGkUw3FXXX8YGLkf9c+8rLBeOI2gxyD51juA6+5ZuFjaej6YvL3vEsEhxb5nuOicA8KHHlECg1QHMzfnukeCszhGAgY6hBCT+RTuvkMWUWQz7XsGgPs2OUSdS9Uv2N0tWOIT/l4AVlA4IAIBAACwBwCdASoZABgAPjESh0KiIQ39VgAQAYJbACdM5JkB+meFg2gDaAN0l4AD9QPSA/wHuJ/sl6KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=",alt:"wechat"},null,-1)),u("span",null,v(t.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"),1)])])),[[E(We),d.value]])]))}}),[["__scopeId","data-v-4966d595"]]),Ac={name:"LoginTypeSwitcher",components:{ElRadioGroup:ot,ElRadioButton:nt},props:{modelValue:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},showEmail:{type:Boolean,default:!0},showMobile:{type:Boolean,default:!0},isEn:{type:Boolean,default:!1}},emits:["update:modelValue","change"],methods:{handleChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},Ec={class:"switcher-content"},kc={class:"switcher-content"},xc={class:"switcher-content"};const Sc=/* @__PURE__ */un(Ac,[["render",function(e,t,a,n,o,i){const r=V("el-radio-button"),p=V("el-radio-group");return l(),d(p,{class:"login-type-switcher","model-value":a.modelValue,onChange:i.handleChange},{default:B(()=>[a.showAccount?(l(),d(r,{key:0,value:"account"},{default:B(()=>[u("div",Ec,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"account"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[u("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),u("span",null,v(a.isEn?"Password":"账号密码"),1)])]),_:1})):f("",!0),a.showEmail?(l(),d(r,{key:1,value:"email"},{default:B(()=>[u("div",kc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"email"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[1]||(t[1]=[u("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),u("span",null,v(a.isEn?"Email":"邮箱"),1)])]),_:1})):f("",!0),a.showMobile?(l(),d(r,{key:2,value:"mobile"},{default:B(()=>[u("div",xc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"mobile"===a.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[2]||(t[2]=[u("path",{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"},null,-1)])],2)),u("span",null,v(a.isEn?"Cell Phone":"手机号"),1)])]),_:1})):f("",!0)]),_:1},8,["model-value","onChange"])}],["__scopeId","data-v-aea2f541"]]),Ic={class:"wechat-choose-type"},Bc={class:"choose-title"},Vc={class:"choose-nav"},Tc={class:"btn-container"},Pc={class:"btn-content"},Rc={class:"btn-content"},Nc=/* @__PURE__ */un(/* @__PURE__ */o({__name:"WechatChooseType",props:{isEn:{type:Boolean}},emits:["toBind","toRegister"],setup(e,{emit:t}){const a=t,n=()=>{a("toBind")},o=()=>{a("toRegister")};return(t,a)=>(l(),s("div",Ic,[u("div",null,[u("div",Bc,v(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号"),1),u("div",Vc,v(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册"),1),u("div",Tc,[p(E(at),{class:"choose-btn jc:mb-6 default-btn jc:outline-none!",onClick:o},{default:B(()=>[u("div",Pc,[a[0]||(a[0]=u("img",{class:"icon-account",src:"data:image/webp;base64,UklGRhgCAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSKIAAAABgFZbb9xIEATBUAyhEAqhDBIGNgOXQaEIgiAYwtfZtM3+LyImgP4d+1BAVqvCAx8OLsECo3CFAfMo0ODsecsz88SjeXD/vNQjedOzPgDCuqfl0bRNKsBiEa5APD+aTCWI2l0AnZ3ehTnKW+9dgIp/Kf146Aa2PM5egI8Ns66WwwOBq70JvmyE6jVsIPwIOpB4xuyMXU5jbhlnDF0lSm/03whWUDggUAEAAPALAJ0BKjAAMAA+LRKGQqGhDjduAAwBYlsAMgdwP4BoK/wA4aTvN+x2I4/APyq/oHuA/gHOJ7gD9XfMA6QDrYP0z9gD9APRQ/ZD4FP219gD9UARvMpbMuVN2542MibJh8RTb2jFdmX4AP7/8PzX//KRnpdaTTuezU2wfPVue6zvilNiLydYqgogCDf+z+cTn0sw++BUMUAXW/ykOXcyNB2xLlv/9baGU9jTlskvg+1Mv/puM3RR2VkkR8nzfym/nfxZ64t/3bWsauPme9EKHGYBBZv8u8jT/DUfv3hKs//3THxis4v6eWcTTUpo9W6e2PurHwS2B16ei/If+Ww23FLqmd3jWPwTwBTDBEJ3HBZfQftnPWpA9rY4f//0skE1+0YwOJB/my/FIk/GCZloGHd/7iN//8vNjd/zOhSoSRNP6Xtp1K0Qc6nr99ilYAAAAA==",alt:"register"},null,-1)),x(" "+v(e.isEn?"Create New Account":"注册新账号"),1)])]),_:1}),p(E(at),{type:"primary",class:"choose-btn submit-btn jc:outline-none!",onClick:n},{default:B(()=>[u("div",Rc,[a[1]||(a[1]=u("img",{class:"icon-account",src:"data:image/webp;base64,UklGRiQBAABXRUJQVlA4WAoAAAAQAAAALwAALwAAQUxQSL8AAAABcFXbVtygAAdPSGKgDqIgMVAMgAIcxEdRAApQcJ0E3tD5LyLYuG0jSXKOaqvMPsL9Ha6xASWTFT5hMHmbKphYTJIwNRlAYFz0ZMB4PDiqHrB+XhpHMT4TIOtZOJhbp0OUOCcy1XDo75yrSk6UONkFJb71XIAWhxs/aFYm7qhkV5PvDmWYa1lGV2s4Wwd6OcM6RlE+dOaZZrpEXD5BoOr3d+sQWTfFkxAbhATAOF1DN6cKD1TD3cncipS2uz9DBwBWUDggPgAAAFADAJ0BKjAAMAA+JQ6FQqGHjAYAkS0gABSWHJn8435xRpEAAP7//k4XP//7dtNf5ihlI///6OQD//9v7AAA",alt:"login"},null,-1)),x(" "+v(e.isEn?"Bind Existing Account":"绑定已有账号"),1)])]),_:1})])])]))}}),[["__scopeId","data-v-d6500e67"]]),Uc="data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSG8AAAABcFXbVq2cCEQ4EYxABBtIhNvg0kAaEMEIJwoRiLB86/b5GxETYP9n6T1rGiyaBULjMJPEAvaaDOwkdgBWSRrAKH4rxsOTq3NzbfD0/Cr+eACzZk/XHl+Bluz5DlRTBnRTOuCSAmHSBlU0xlbzdwIAVlA4IEIAAABwAwCdASogACAAPjESjEYiENDKACADBLSAACWH58lev5ur/aAA/iw///2p6j//i/2//+H8FPIH///0cbN//9v7AAA=";function Dc(t={}){console.log("🍉 ~ useAuthLogin.ts:27 ~ useAuthLogin ~ options:",t);const{appId:a="ERA",isEn:n=!1}=t,o=e(!1),i=e(!1),r=e(null),s=e(!1),l=e=>{console.log("🍉 ~ useAuthLogin.ts:36 ~ executeRedirect ~ loginData:",e);const t=Z()||{},a=e.redirectPath||t.path||"/";e.result&&Y(e.result),console.log("🍉 Redirecting to:",a),Ts(a)},c=async e=>{const{loginType:i,loginForm:c={},captchaData:d={},isKick:p=!1,mobileUid:h,emailUid:f,areaCodeData:m=[],remember:g}=e;o.value=!0,p||(r.value=d);const y=Z()||{},v={appId:a,fromSys:a,kick:p,inviterInfo:y.empNo||void 0,redirectPath:y.path||"/",...y,...d};let w=we;if("account"===i)Object.assign(v,{type:"PASSWORD",username:c.username,password:yr.MD5(c.password).toString(),uniqueCode:""});else if("wechat"===i)Object.assign(v,{type:"WECHAT",uniqueCode:y.uniqueCode}),y.uniqueCode||v.uniqueCode||console.warn("WeChat login missing uniqueCode"),w=we;else{const e="mobile"===c.type,t=e?h:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?c.phone:c.email,verificationCodeValue:c.code,verificationCodeUuid:t}),e){const e=m.find(e=>e.telCode===c.areaCode);v.areaCode=c.areaCode,v.areaCodeCountryId=e?.id}if(!v.verificationCodeUuid)return o.value=!1,void Je.error(n?"Please get the verification code first":"请先获取验证码");w=Ce}try{const{data:a}=await w(v);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",a),0===a.code){const i=a.data||{};if(!0===i.hasLogon&&!i.tgc)return void u(e);if(i.tgc){i.result&&Y(i.result),g&&ps.set("tgc",i.tgc,{expires:30,domain:ve()});const e=i.result?.improveComp;if(e)return s.value=!0,o.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));Je.success(n?"Login successful":"登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else Je.error(a.msg||(n?"Login failed":"登录失败"))}catch(C){console.error("Login Error:",C),Je.error(n?"Network Error":"网络请求异常")}finally{o.value=!1}},u=e=>{it.confirm(n?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",n?"Tips":"提示",{confirmButtonText:n?"Confirm":"确定",cancelButtonText:n?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{c({...e,isKick:!0})}).catch(()=>{o.value=!1})},d=async e=>{const{loginType:i,loginForm:r,captchaData:c,uniqueCode:u,isKick:d=!0,mobileUid:h,emailUid:f,areaCodeData:m=[]}=e;console.log("🍉 ~ useAuthLogin.ts:261 ~ handleBindSubmit ~ params:",e),o.value=!0;const g=Z()||{};let y,v={appId:a,uniqueCode:u,kick:d,code:c.code,uuid:c.uuid,redirectPath:g.path||"/",fromSys:a};if(console.log("🍉 ~ useAuthLogin.ts:279 ~ handleBindSubmit ~ payload:",v),"account"===i)y=be,Object.assign(v,{username:r.username,password:yr.MD5(r.password).toString(),rememberMe:r.remember||!1});else{y=Ae;const e="mobile"===r.type,t=e?h:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?r.phone:r.email,verificationCodeValue:r.code,verificationCodeUuid:t,rememberMe:r.remember||!1}),e){const e=m.find(e=>e.telCode===r.areaCode);Object.assign(v,{areaCode:r.areaCode,areaCodeCountryId:e?.id})}if(!v.verificationCodeUuid)return o.value=!1,void Je.error(n?"Please get the verification code first":"请先获取验证码")}try{const{data:a}=await y(v);if(console.log("🍉 Bind Result:",a),0===a.code){const i=a.data||{};if(!0===i.hasLogon&&!i.tgc)return void p(e);if(i.tgc){i.result&&Y(i.result),ps.set("tgc",i.tgc,{expires:30,domain:ve()});const e=i.result?.improveComp;if(e)return s.value=!0,o.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));Je.success(n?"Linked and logged in successfully":"绑定并登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else Je.error(a.msg||(n?"Binding failed":"绑定失败"))}catch(w){console.error("Bind Error:",w),Je.error(n?"Network Error":"网络请求异常")}finally{o.value=!1}},p=e=>{it.confirm(n?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",n?"Tips":"提示",{confirmButtonText:n?"Confirm":"确定",cancelButtonText:n?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{d({...e,isKick:!0})}).catch(()=>{o.value=!1})};return{loading:o,captchaVisible:i,handleAuthSubmit:c,executeRedirect:l,loginNeedComplete:s,handleBindSubmit:d}}const Fc={class:"bind-wechat-title"},_c={class:"title"},Lc={class:"sub-title"},Mc={class:"register-bottom"},Oc=/* @__PURE__ */un(/* @__PURE__ */o({__name:"WechatBindLogin",props:{isEn:{type:Boolean}},emits:["needComplete"],setup(a,{emit:n}){const o=a,i=n,{loading:r,captchaVisible:c,handleBindSubmit:h}=Dc({appId:"ERA",isEn:o.isEn,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),i("needComplete",e)}}),m=e({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),w=e([]),C=e(),b=e(!1),A=e(!1),k=e({}),S=e(""),I=e(""),V=t(()=>m.value.type),T=t(()=>{const e={username:[{required:!0,trigger:"blur",message:o.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:o.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>{As(0,t,a,o.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>{xs(0,t,a,o.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>{Is(0,t,a,o.isEn)},trigger:"blur"}]};return"account"===V.value?{username:e.username,password:e.password}:"email"===V.value||"mobile"===V.value?{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}:{}});async function P(e){if("mobile"==e&&0===w.value.length){const e=await pe();w.value=e.data.data.records}}function R(e){C.value.validateField(e,e=>{b.value=e})}function N(){C.value.validate(e=>{if(e)if("account"===V.value)c.value=!0;else{if(console.log("🍉 ~ WechatBindLogin.vue:316 ~ handleSubmit ~ verifyData:",k),!k.value||!k.value.uuid)return Je.error(o.isEn?"Please get code first":"请先获取验证码");U(k.value)}})}function U(e){c.value=!1;const t=(Z()||{}).uniqueCode||"";t?h({loginType:"account"===V.value?"account":"code",loginForm:m.value,captchaData:{...e},uniqueCode:t,mobileUid:S.value,emailUid:I.value,areaCodeData:w.value}):console.error("Missing uniqueCode for binding")}function D({captchaData:e,startTimer:t}){console.log("🍉 ~ WechatBindLogin.vue:353 ~ handleGetCode ~ captchaData:",e);const a="mobile"===m.value.type;k.value=e;const n={target:m.value.email||m.value.phone,uuid:e.uuid,code:e.code};a&&(n.areaCode=m.value.areaCode);const i=a?fe:ue;t(),i(n).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(a?S.value=t:I.value=t,Je.success(o.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")}return(e,t)=>(l(),s("div",null,[u("div",Fc,[u("div",_c,[t[11]||(t[11]=u("img",{class:"icon-auth-wechat",src:"data:image/webp;base64,UklGRkYDAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSK0BAAABkJVtT55JrwQkRAISIqEOBgl1sDhoHVAHXQdIQEIkICH780ETOodzEBETgJ+MA3FKG8fvIaQiOm5lCy/j2vVx4RdxVdtKLwmH2pfwBmrqKbQeifr2bTUSdd/WIlH/HpcqOuxnyjJT9/0aqISFkg47AaCJGwDOgeaFZPQb/7dR/I9HSsuwjsuHapaXKRMaAZCOawBQJvoyMqN3PvqEypGrzsZFgvrLmShgXXYrjMDHLSLS6rGR3+ZUCVy7TtfklVz6Dq76XJIPe0gMh9oW8iAHIWpqLeSAbhdJ1L5Hh8ssB1HPTnZsJTjUV4IZxChFHUrartG5nf2TZju2EdQRAaifCgAe9GCG22QnHQoA7J8SAAw02wWxiPtIv4AgnyqAX6NmBxID1Am9S9ehlKqTwQ4kjxpkxj46gORJha6YPBCuR32FzQXxQYOswD7ng457heAj/8ndPmnYF6hwjaoqCUDglEspRAskn1Ml4WF1E/huCY/ZjZ1MT6eM9UNzufBGEocaXgFqZhdem412vJiqCb8JiJdM9f/OdwHg/a4i0soeQZeqvO4pi8bvBWD8PAwAVlA4IHIBAACQDQCdASpQAFAAPjESh0KiIQzPMmYQAYJYgDTVCv5F+Mf4gb4DJX+Sz7l/ANsR/t26P/QD/AegB1gH9L/gHoV9YB+tfoUf7T/efAf+sP68fAV+m//U1vlDvsJaoYWahGVgTNJjQto23T3wmPTWzB6ZzMk6AwAA/v7uqgr/9ZP//7blAnmnE6lioCaVp1+WnldB5HpBbYjxc1NG5XU54UvD9kf2w/pZ7/42ltzXYtGbK1//nqr8tjkze5eVKps78/9WExTMn4pKTe3c8mpsuj8YwNG+XmxN6qsxIT2EwKQHnE5z8J/+pe+1IL/r1o8YBWTv7H+OAb1dnyF/HIBfP7w3V0JsIK9k9luJE6Inls4/P8XLinjMj63/lB+fL9Mg/9VBqi1r084wLn/+c3RisrFoveLUv2I5xww1R/MwdnWNwJwQ8oKLyHlGl0b3UxrGhAtGoS5KzFv4B538wnEyq7d8a9J8x7Ua1ZythfCc5mNgAAAA",alt:""},null,-1)),x(" "+v(a.isEn?"Log in and link with WeChat":"登录并绑定微信"),1)]),u("div",Lc,v(a.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷"),1)]),p(E(Ye),{ref_key:"bindLoginFormRef",ref:C,model:m.value,rules:T.value,"validate-on-rule-change":!1,class:"wechat-bind-login-form-content"},{default:B(()=>[p(E(et),{prop:"type",class:"form-type"},{default:B(()=>[p(Sc,{modelValue:m.value.type,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value.type=e),"is-en":a.isEn,"show-account":"",class:"jc:max-w-full!",onChange:P},null,8,["modelValue","is-en"])]),_:1}),"account"===V.value?(l(),s(g,{key:0},[p(E(et),{prop:"username",class:"form-user"},{default:B(()=>[p(yo,{modelValue:m.value.username,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.username=e),placeholder:a.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(et),{prop:"password",class:"password-item"},{default:B(()=>[p(yo,{modelValue:m.value.password,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:a.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===V.value?(l(),d(E(et),{key:1,prop:"email"},{default:B(()=>[p(yo,{modelValue:m.value.email,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.email=e),placeholder:a.isEn?"Email Address":"邮箱地址",onBlur:t[4]||(t[4]=e=>R("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),d(E(et),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:B(()=>[(l(),d(E(et),{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(yo,{modelValue:m.value.phone,"onUpdate:modelValue":t[7]||(t[7]=e=>m.value.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[8]||(t[8]=e=>R("phone")),maxlength:"15",disabled:A.value},{prefix:B(()=>[p(E(et),{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(E(Qe),{modelValue:m.value.areaCode,"onUpdate:modelValue":t[5]||(t[5]=e=>m.value.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[6]||(t[6]=e=>R("areaCode")),disabled:A.value,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(w.value,e=>(l(),d(E(Ke),{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E(Ke),{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)),"email"===V.value||"mobile"===V.value?(l(),d(E(et),{key:3,prop:"code"},{default:B(()=>[p(Nr,{modelValue:m.value.code,"onUpdate:modelValue":t[9]||(t[9]=e=>m.value.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:b.value,"is-en":a.isEn,onSend:D},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),u("div",Mc,[p(E(at),{class:"submit-btn",onClick:N,loading:E(r)},{default:B(()=>[x(v(a.isEn?"Login and Link":"登录并绑定")+" ",1),t[12]||(t[12]=u("img",{style:{width:"16px",height:"16px","vertical-align":"middle"},src:Uc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"]),p(Vr,{visible:E(c),"onUpdate:visible":t[10]||(t[10]=e=>j(c)?c.value=e:null),"is-en":a.isEn,onSuccess:U},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-0f920ee0"]]),jc={name:"CompleteInfoForm",components:{ElForm:Ye,ElFormItem:et,ElButton:at,ElSelect:Qe,ElOption:Ke,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:dn,ChineseCompanySearch:co,GoogleInput:yo,JcVerifySlide:Vr,ApplyJoinBtn:Ns},props:{isEn:Boolean},emits:["success"],data(){return{isReady:!1,loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,currentUserMobile:null,currentUserEmail:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>this.hasResistCompany?a():Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]}}},computed:{countryId(){return this.form.city?.raw?.country?.id||this.resistCompanyInfo?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return!!this.isReady&&(this.currentCountryIsChina&&!this.currentUserMobile)},isShowEmailCode(){return!!this.isReady&&!this.currentUserEmail}},mounted(){this.getAreaCodeData(),this.findDict(),this.getUserPermsInfo()},methods:{getUserPermsInfo(){xe().then(e=>{console.log("🍉 ~ CompleteInfoForm.vue:462 ~ res:",e),this.currentUserMobile=e.data.data?.mobile,this.currentUserEmail=e.data.data?.email}).catch(()=>{this.currentUserMobile=null,this.currentUserEmail=null}).finally(()=>{this.isReady=!0})},handleCompanyExistStatus(e){e&&(this.companyResistCn=e.cnExists,this.companyResistEn=e.enExists,this.resistCompanyInfo=e.companyInfo)},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const e=await pe();this.areaCodeData=e.data.data.records},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))})},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(e){this.$refs.formRef.validateField(e,t=>{"phone"!==e&&"email"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const a={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:e.uuid,code:e.code},n=this.isShowMobileCode?fe:ue;this.isShowMobileCode&&(a.areaCode=this.form.areaCode,a.areaCodeCountryId=this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id),t(),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.isShowMobileCode?this.mobileUid=t:this.emailUid=t,Je.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(e=>{e&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const e={cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,nameCn:this.currentCountryIsChina?this.form.companyName:"",nameEn:this.currentCountryIsChina?"":this.form.companyName,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:window?.location.pathname||"/",...this.form.kqInfo};ke(e).then(e=>{0===e.data.code?(Je.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):Je.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const e={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",path:window?.location.pathname||"/"};Ee(e).then(e=>{if(0===e.data.code){if(e.data.data.redirect)try{Cookies.set("tgc",e.data.data.tgc,{expires:30});const t=this.getAuthSessionItems(),a=e.data.data.redirectPath||t.path||"/";resetAuthSessionItems(),Ts(a)}catch(t){}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else Je.error(e.data.msg)}).finally(()=>{this.loading=!1})}}},qc={class:"complete-info-container"},Hc={class:"complete-info-container_header"},zc={class:"complete-info-container_title"},Jc={class:"complete-info-container_tip-box"},Wc={class:"sector-section"},Qc={class:"sector-label"},Kc={class:"sector-group"},Gc=["onClick"],Xc={key:0,class:"icon-auth-checked"},Yc={class:"resist-company-info-card"},Zc={class:"card-header"},$c={class:"title-group"},eu={class:"tip-text"},tu={class:"company-content"},au={class:"company-name"},nu={class:"card-header"},ou={class:"title-group"},iu={class:"tip-text"},ru={class:"location-info"};const su=/* @__PURE__ */un(jc,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),w=V("ChineseCompanySearch"),C=V("ApplyJoinBtn"),b=V("JcFloatInput"),A=V("el-option"),E=V("el-select"),k=V("GoogleInput"),S=V("CodeInput"),I=V("el-button"),T=V("el-form");return l(),s("div",qc,[u("div",Hc,[u("div",zc,v(a.isEn?"Complete Your Information":"完善企业信息"),1),u("div",Jc,[t[15]||(t[15]=u("img",{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""},null,-1)),u("span",null,v(a.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"),1)])]),p(T,{ref:"formRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[u("div",Yc,[u("div",Zc,[u("div",$c,[u("span",eu,v(a.isEn?"Company name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),u("div",tu,[u("h4",au,v(a.isEn?o.resistCompanyInfo.compNameEn||o.resistCompanyInfo.compNameCn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),u("div",nu,[u("div",ou,[u("span",iu,v(a.isEn?"Location(City)":"所在地(城市)"),1)])]),u("div",ru,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(b,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[18]||(t[18]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],lang:a.isEn?"en":"zh-CN",placeholder:a.isEn?"Location(City)":"请输入公司所在城市",onSelect:i.handleSelectCity},{prefix:B(()=>[...t[16]||(t[16]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","lang","placeholder","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(w,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),lang:a.isEn?"en":"zh-CN","country-id":i.countryId||null,city:o.form.city,"onUpdate:existStatus":i.handleCompanyExistStatus,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[17]||(t[17]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","lang","country-id","city","onUpdate:existStatus","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),d(C,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0),u("div",Wc,[u("p",Qc,v(a.isEn?"Industry Sector":"行业类型"),1),u("div",Kc,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Xc)):f("",!0)],10,Gc))),128))])])],64)),i.isShowMobileCode?(l(),s(g,{key:2},[p(m,{ref:"areaCodeCountryId",class:"phone-form-item"},{default:B(()=>[p(m,{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15"},{prefix:B(()=>[t[19]||(t[19]=u("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(E,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),d(A,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512),p(m,{prop:"code"},{default:B(()=>[p(S,{modelValue:o.form.code,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:B(()=>[...t[20]||(t[20]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),i.isShowEmailCode?(l(),s(g,{key:3},[p(m,{prop:"email",class:"email-form-item"},{default:B(()=>[p(b,{modelValue:o.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>i.validateField("email"))},{prefix:B(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(m,{prop:"code"},{default:B(()=>[p(S,{modelValue:o.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:B(()=>[...t[22]||(t[22]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),p(I,{class:"submit-btn register-btn register-btn-is-active",loading:o.loading,onClick:i.handleSubmit},{default:B(()=>[x(v(a.isEn?"Submit":"完成并进入"),1)]),_:1},8,["loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-befd9149"]]);const lu={class:"auth-footer-box"},cu=/* @__PURE__ */un(/* @__PURE__ */o({__name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(e,{emit:t}){const a=t,n=()=>{a("handleClick")};return(t,a)=>(l(),s("div",lu,[x(v(e.label)+" ",1),u("span",{class:"action-text",onClick:w(n,["stop"])},[x(v(e.subLabel)+" ",1),a[0]||(a[0]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))}}),[["__scopeId","data-v-de818a5b"]]),uu={class:"forget-password-container"},du={class:"forget-box"},pu={class:"header-title"},hu={key:0,class:"kefu-wrapper"},fu={class:"kefu-text"},mu={key:1,class:"form-wrapper"},gu={key:0},yu={key:1},vu={class:"tab-switcher"},wu={class:"default-info"},Cu={class:"title"},bu={class:"user-value"},Au=/* @__PURE__ */un(/* @__PURE__ */o({__name:"ForgetPassword",props:["isEn"],emits:["to-login"],setup(t,{emit:a}){const n=t,o=a,{activeStep:i,activeTab:r,loading:d,verifyVisible:h,formA:m,formB:g,userData:y,disabledTabs:w,showCustomerService:C,codeCountdown:b,handleTriggerVerify:A,handleVerifySuccess:k,handleSendCodeVerifySuccess:S,handleSubmitReset:V,restFormB:T}=function(t){const a=e(1),n=e(!1),o=e(!1),i=e(),r=I({userName:""}),s=e({}),l=e(!1),c=e("email"),u=I({email:!1,mobile:!1}),d=I({code:"",password:"",confirmPassword:""}),p=e(""),h=e(!1),f=I({mobile:!1,email:!1}),m=async e=>{n.value=!0;try{const n=await Be({account:r.userName,...e});if(n.data.data?.exists){s.value=n.data.data;const e=!!s.value.email,t=!!s.value.mobile;e||t?(l.value=!1,a.value=2,e?(c.value="email",u.email=!1,u.mobile=!t):(c.value="mobile",u.mobile=!1,u.email=!0)):l.value=!0}else Je.error(t.isEn?"Account does not exist":"账号不存在")}catch(o){console.error(o)}finally{n.value=!1}},g=async(e,a)=>{console.log("🍓🍓 ~ useForgetPassword.ts:120 ~ sendVerifyCode ~ captchaData:",e);try{i.value=e;const{data:n}=await Ie({account:s.value.account,target:c.value,...e});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",n),0===n.code&&(Je.success(t.isEn?"Verification code sent":"验证码已发送"),p.value=n.data.verifyCode,a(),"mobile"===c.value?f.mobile=!0:f.email=!0)}catch(n){console.error(n)}};return{activeStep:a,activeTab:c,loading:n,verifyVisible:o,formA:r,formB:d,userData:s,disabledTabs:u,showCustomerService:l,codeCountdown:f,codeReady:h,handleTriggerVerify:()=>{o.value=!0},handleVerifySuccess:e=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",e),o.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",a.value),1===a.value&&m(e)},handleSendCodeVerifySuccess:({captchaData:e,startTimer:t})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",e),2===a.value&&g(e,t)},handleSubmitReset:async()=>{if(i.value?.uuid){n.value=!0;try{const e={id:s.value.id,account:s.value.account,codeId:p.value,codeValue:d.code,password:yr.MD5(d.password).toString(),...i.value},{data:a}=await Se(e);return 0===a.code?(Je.success(t.isEn?"Password reset successfully":"密码重置成功"),!0):(Je.error(a.msg),!1)}catch(e){return console.error(e),!1}finally{n.value=!1}}else Je.info(t.isEn?"Please get the verification code first":"请先获取验证码")},restFormB:()=>{d.code="",d.password="",d.confirmPassword="",p.value="",h.value=!1,f.mobile=!1,f.email=!1}}}({isEn:n.isEn}),P=e(),R=e(),N=(e,t,a)=>{""===t?a(new Error(n.isEn?"Please input the password again":"请再次输入密码")):t!==g.password?a(new Error(n.isEn?"Two inputs don't match!":"两次输入密码不一致!")):a()},U={userName:[{required:!0,message:n.isEn?"Please enter username":"请输入账号",trigger:"blur"}]},D={code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,n.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,n.isEn),trigger:"blur"},{validator:N,trigger:"blur"}],confirmPassword:[{required:!0,validator:(e,t,a)=>ks(0,t,a,n.isEn),trigger:"blur"},{validator:N,trigger:"blur"}]},F=()=>{P.value.validate(e=>{e&&A()})},_=async()=>{R.value&&await R.value.validate(async e=>{if(e){await V()&&o("to-login")}})},L=e=>{e&&w[e]||(r.value=e||r.value,T())};return(e,a)=>(l(),s("div",uu,[u("div",du,[u("div",pu,[u("h1",null,v(t.isEn?"Reset Password":"重置密码"),1)]),E(C)?(l(),s("div",hu,[a[8]||(a[8]=u("img",{src:"data:image/webp;base64,UklGRsRFAABXRUJQVlA4WAoAAAAQAAAAfwIA3wEAQUxQSLkLAAABFMVt20a2sv/U6Wm0/4iYAH3QsQAZj5Skpeqc1H6r0r4PNiInDqR6gg0QUQ20fqiT2bwp+VTtHH8POAbt57zXh2N0nHFNdXEEirStD0qrtrdupA+CIBhCIQhCIASCGdQMGgaGkGEgCIFgCIagH83cZ9fyt5dExARQsrW3iiT5CFMiHfgYkyKFNaw19GO7PavTG613od8aRcQE0HX/P27kCLYFYzRrWGt4R5pflTvMnU7tXt46AesczhPoCawEaZmjVq6aVcqZbk+p3Ut9EM0DGH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dtG+tMNWAGKisFtr0Q4vPZhs7jxWDrqiqK2rUygMtbIK+u+D8xH40nAwWYn++Jo3XY5+D6t1FIG2uKBI+KI3eloW+N8XVYovWpUTwlOItbmGZC8GS00lHfcbdTaWhbTwC8UqFBWNZXsQkv3QFpQpU8JSUpQmu5qrZ9zKfM7ZJhH4PstsmmIUOOpmh/v4IzCB2E38hTPZcVNRe0yb4zH5FoIjyqOW9mnRBIF+c7ebGfwkxVqVFHAAKZaLq0f5A5fg8JvpZtrzxXb8DKhOO4tGeWRn/pdApG2RVIVdUmcwpqzlDEInDeEM1fdc6Kf0tlvlt85k8uSCJECa1NJbfThRmnkPdxNW73UqDZjTTjg1cc5/xAio3nrqea6y7nePIPbAD4xQiYRrRJOJf2TX5rVRRFi/auoEHDR8rSRFQGYsBDWjSFA+0anMpYYevDOVK/B0m27pI5W/B2Fh4kf50Yo5x8pu/Oc5pMH5gfHRGqPl1yECC0d/6Hcw3+LYJnc3NgqjlT/otdhdVZOgbE/MCv2kR9RHZU2zZ0fJCmsqeSKpGFNOlwtYf4MsTPazDC29KQaeaqjeWoJxOBVkwiLT6DY8uYm3EaZ9jUhSxFgNt+KLB9uwDpJ1NpOl5fx2X0+df/t4vPShoAQCGIY4Y9n+Wx39CEAAAACEn//+4e+kMk8wQRCCl4Sj1tWs4IV3VDIWkKhr20cMBeMCQv7DaL/6Q5/q5N1V/T1FqcBhJpYbsy3AWdy3C/vW0pBzMcoHH8IB9KhCDVVQopf5eE4DMA/HlaJmN6xKX7k6AAAAAAAAAAAAAA",class:"kefu-img"},null,-1)),u("p",fu,v(t.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。"),1),u("div",null,v(t.isEn?"Customer Service":"联系客服"),1)])):(l(),s("div",mu,[1===E(i)?(l(),s("div",gu,[p(E(Ye),{ref_key:"formARef",ref:P,model:E(m),rules:U},{default:B(()=>[p(E(et),{prop:"userName",class:"jc:mb-5!"},{default:B(()=>[p(yo,{modelValue:E(m).userName,"onUpdate:modelValue":a[0]||(a[0]=e=>E(m).userName=e),placeholder:t.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(at),{type:"primary",class:"submit-btn",loading:E(d),onClick:F},{default:B(()=>[x(v(t.isEn?"Next":"下一步"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0),2===E(i)?(l(),s("div",yu,[u("div",vu,[u("div",{class:c(["tab-item",{active:"email"===E(r),disabled:E(w).email}]),onClick:a[1]||(a[1]=e=>L("email"))},[a[9]||(a[9]=u("svg",{t:"1767855712095",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[u("path",{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"})],-1)),x(" "+v(t.isEn?"Email Verify":"邮箱验证"),1)],2),u("div",{class:c(["tab-item",{active:"mobile"===E(r),disabled:E(w).mobile}]),onClick:a[2]||(a[2]=e=>L("mobile"))},[a[10]||(a[10]=u("svg",{t:"1767855760413",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[u("path",{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"})],-1)),x(" "+v(t.isEn?"Mobile Verify":"手机验证"),1)],2)]),p(E(Ye),{ref_key:"formBRef",ref:R,model:E(g),rules:D},{default:B(()=>[p(E(et),{class:"info-item"},{default:B(()=>[u("p",wu,[u("span",Cu,v("email"===E(r)?t.isEn?"Email":"邮箱":t.isEn?"Mobile":"手机号"),1),u("span",bu,v("email"===E(r)?E(y).email:E(y).mobile),1)])]),_:1}),p(E(et),{prop:"code"},{default:B(()=>[p(Nr,{"show-icon":"",modelValue:E(g).code,"onUpdate:modelValue":a[3]||(a[3]=e=>E(g).code=e),placeholder:t.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:!0,"is-en":t.isEn,"custom-countdown":"email"===E(r)?E(b).email:E(b).mobile,onSend:E(S)},null,8,["modelValue","placeholder","is-en","custom-countdown","onSend"])]),_:1}),p(E(et),{prop:"password"},{default:B(()=>[p(ko,{modelValue:E(g).password,"onUpdate:modelValue":a[4]||(a[4]=e=>E(g).password=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Password":"密码",placeholder:t.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...a[11]||(a[11]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(E(et),{prop:"confirmPassword"},{default:B(()=>[p(ko,{modelValue:E(g).confirmPassword,"onUpdate:modelValue":a[5]||(a[5]=e=>E(g).confirmPassword=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Confirm Password":"确认密码",placeholder:t.isEn?"Enter password again":"请再次输入密码"},{prefix:B(()=>[...a[12]||(a[12]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),p(E(at),{type:"primary",class:"submit-btn",loading:E(d),onClick:_},{default:B(()=>[x(v(t.isEn?"Confirm":"确认修改"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0)]))]),p(cu,{label:t.isEn?"Back to":"返回","sub-label":t.isEn?"log in":"登录",onHandleClick:a[6]||(a[6]=e=>o("to-login")),style:{margin:"12px -16px -16px"}},null,8,["label","sub-label"]),p(Vr,{visible:E(h),"onUpdate:visible":a[7]||(a[7]=e=>j(h)?h.value=e:null),"is-en":t.isEn,onSuccess:E(k)},null,8,["visible","is-en","onSuccess"])]))}}),[["__scopeId","data-v-9313f14c"]]),Eu={class:"bind-container"},ku={class:"bind-title"},xu={key:0,class:"user-list"},Su=["onClick"],Iu={class:"bind-user-card__right"},Bu={class:"bind-user-card__right__title"},Vu={class:"bind-user-card__right__desc"},Tu={key:0,class:"bind-user-card__right__info"},Pu={key:1,class:"bind-user-card__right__info"},Ru={class:"bind-user-card__btn"},Nu={key:1,class:"bind-form-content"},Uu={class:"current-bind-info"},Du={class:"highlight"},Fu={class:"tel-areacode"},_u={class:"register-bottom"},Lu=/* @__PURE__ */un(/* @__PURE__ */o({__name:"ThirdBindLogin",props:{isEn:{type:Boolean,default:!1},bindList:{type:Array,default:()=>[]}},setup(a){const n=a,o=e(!1),i=e(null),c=t(()=>i.value?i.value:1===n.bindList.length?n.bindList[0]:null),h=e(),m=e({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),C=e([]),b=e(!0),A=e(!1),k=e(""),S=e(""),I=e({});let V=null;r(c,e=>{e&&(m.value.username=e.account||"",m.value.email=e.email||"",m.value.phone=e.mobile||"",console.log("🍉 ~ ThirdBindLogin.vue:290 ~ loginForm:",m),e.account?m.value.type="account":e.email?m.value.type="email":m.value.type="mobile",e.mobile&&0===C.value.length&&pe().then(e=>C.value=e.data.data.records))},{immediate:!0});const T=t(()=>{const e={username:[{required:!0,trigger:"blur",message:n.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:n.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>{As(0,t,a,n.isEn,!1)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>{xs(0,t,a,n.isEn,!1)},trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,n.isEn),trigger:"blur"}]};return"account"===m.value.type?{username:e.username,password:e.password}:{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}}),P=e=>{i.value=e},R=async e=>{if(h.value?.clearValidate(),"mobile"==e&&0===C.value.length){const e=await pe();C.value=e.data.data.records}},N=e=>{h.value?.validateField(e,e=>{b.value=e})},U=({captchaData:e,startTimer:t})=>{I.value=e,V=t,D(e)},D=e=>{const t="mobile"===m.value.type,a={target:t?m.value.phone:m.value.email,uuid:e.uuid,code:e.code};t&&(a.areaCode=m.value.areaCode);const o=t?fe:ue;V&&V(),o(a).then(e=>{const a=e.data.data?.verifyCode||e.data.verifyCode;0!==e.data.code&&200!==e.data.code||(t?k.value=a:S.value=a,Je.success(n.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},F=()=>{h.value?.validate(e=>{if(e)if("account"===m.value.type)A.value=!0;else{if(!k.value&&!S.value)return Je.error(n.isEn?"Please get code first":"请先获取验证码");L(I.value)}})},_=e=>{A.value=!1,L(e)},L=e=>{o.value=!0;const t=vs(),a=Z(),i={thirdPartyType:t?.thirdPartyType,thirdPartyId:t?.thirdPartyId,thirdPartyEmail:t?.thirdPartyEmail,thirdPartyUserName:t?.thirdPartyUserName,appId:"ERA",kick:!0,userId:c.value.userId,activityCode:a?.activityCode||"",referenceUserId:a?.referenceUserId||""};let r;if("account"===m.value.type)r=Ve({...i,account:m.value.username,password:yr.MD5(m.value.password).toString(),verificationCodeUuid:e.uuid,verificationCodeValue:e.code,...e});else{const t="mobile"===m.value.type;r=Te({...i,type:t?"MOBILE":"EMAIL",account:t?m.value.phone:m.value.email,verificationCodeUuid:t?k.value:S.value,verificationCodeValue:m.value.code,...e})}r.then(e=>{if(console.log("🍉 ~ ThirdBindLogin.vue:483 ~ doBindRequest ~ res:",e),0!==e.data.code)return Je.error(e.data.msg||(n.isEn?"Login failed":"登录失败"));if(e.data.data){console.log("🍉 ~ ThirdBindLogin.vue:489 ~ doBindRequest ~ res.data.data:",e.data.data);const t=e.data.data;return t.tgc&&ps.set("tgc",t.tgc,{expires:30}),t.result&&Y(t.result),void(t.redirectPath&&Ts(t.redirectPath))}"USER_HAS_OTHER_BIND"!==e.data.subCode?(e.data.result&&Y(e.data.result),e.data.tgc&&ps.set("tgc",e.data.tgc,{expires:30}),e.data.redirectPath&&Ts(e.data.redirectPath)):Je.error(n.isEn?"Bound to other user":"该账号已绑定其他用户")}).finally(()=>{o.value=!1})};return(e,t)=>(l(),s("div",Eu,[u("div",ku,[u("div",null,v(c.value?a.isEn?"Log in and link":"绑定并登录":a.isEn?"Select account to link":"请选择要关联的账号"),1),c.value&&a.bindList.length>1?(l(),s("div",{key:0,class:"back-btn",onClick:t[0]||(t[0]=e=>i.value=null)},v(a.isEn?"< Back":"< 返回选择"),1)):f("",!0)]),c.value?(l(),s("div",Nu,[u("div",Uu,[u("span",null,v(a.isEn?"Binding Account:":"正在绑定账号:"),1),u("span",Du,v(c.value.account||c.value.email||c.value.mobile),1)]),p(E(Ye),{ref_key:"bindLoginFormRef",ref:h,model:m.value,rules:T.value,"validate-on-rule-change":!1,class:"third-bind-login-form-content"},{default:B(()=>[p(E(et),{prop:"type",class:"form-type"},{default:B(()=>[p(Sc,{modelValue:m.value.type,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.type=e),"is-en":a.isEn,"show-account":"","show-email":!!m.value.email&&"1"===c.value.emailValidFlag,"show-mobile":!!m.value.phone&&"1"===c.value.mobileValidFlag,class:"jc:max-w-full!",onChange:R},null,8,["modelValue","is-en","show-email","show-mobile"])]),_:1}),"account"===m.value.type?(l(),s(g,{key:0},[p(E(et),{prop:"username",class:"form-user"},{default:B(()=>[p(yo,{modelValue:m.value.username,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.username=e),disabled:"",placeholder:a.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(E(et),{prop:"password",class:"password-item"},{default:B(()=>[p(yo,{modelValue:m.value.password,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:a.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===m.value.type?(l(),d(E(et),{key:1,prop:"email"},{default:B(()=>[p(yo,{modelValue:m.value.email,"onUpdate:modelValue":t[4]||(t[4]=e=>m.value.email=e),disabled:"",placeholder:a.isEn?"Email Address":"邮箱地址",onBlur:t[5]||(t[5]=e=>N("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),d(E(et),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:B(()=>[p(E(et),{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:B(()=>[p(yo,{modelValue:m.value.phone,"onUpdate:modelValue":t[6]||(t[6]=e=>m.value.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",onBlur:t[7]||(t[7]=e=>N("phone")),maxlength:"15"},{prefix:B(()=>[u("div",Fu,v(m.value.areaCode),1)]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512)),"email"===m.value.type||"mobile"===m.value.type?(l(),d(E(et),{key:3,prop:"code"},{default:B(()=>[p(Nr,{modelValue:m.value.code,"onUpdate:modelValue":t[8]||(t[8]=e=>m.value.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:b.value,"is-en":a.isEn,onSend:U},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),u("div",_u,[p(E(at),{class:"submit-btn",onClick:F,loading:o.value},{default:B(()=>[x(v(a.isEn?"Login and Link":"登录并绑定")+" ",1),t[13]||(t[13]=u("img",{style:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},src:Uc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"])])):(l(),s("div",xu,[(l(!0),s(g,null,y(a.bindList,(e,n)=>(l(),s("div",{class:"bind-user-card",key:n,onClick:t=>P(e)},[t[12]||(t[12]=u("div",{class:"bind-user-card__left"},[u("div",{class:"account-icon"})],-1)),u("div",Iu,[u("div",Bu,v(a.isEn?e.userNameEn||e.userNameCn:e.userNameCn||e.userNameEn),1),u("div",Vu,v(a.isEn?e.compNameEn||e.compNameCn:e.compNameEn||e.compNameEn),1),e.email?(l(),s("div",Tu,[t[10]||(t[10]=u("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e"},null,-1)),x(" "+v(e.email),1)])):f("",!0),e.mobile?(l(),s("div",Pu,[t[11]||(t[11]=u("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e"},null,-1)),x(" "+v(e.mobile),1)])):f("",!0)]),u("div",Ru,[p(E(at),{type:"primary",size:"small",onClick:w(t=>P(e),["stop"])},{default:B(()=>[x(v(a.isEn?"Select":"选择"),1)]),_:1},8,["onClick"])])],8,Su))),128))])),p(Vr,{visible:A.value,"onUpdate:visible":t[9]||(t[9]=e=>A.value=e),"is-en":a.isEn,onSuccess:_},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-2d697707"]]),Mu={name:"RegisterForm",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,JcFloatInput:ko,CodeInput:Nr,JcFloatWrapper:cs,JcSearch:dn,ChineseCompanySearch:co,GoogleInput:yo,ApplyJoinBtn:Ns},props:{isEn:Boolean},computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},showEmailBindBtn(){return!this.currentCountryIsChina&&this.thirdPartyEmailVerifyList.length>0},showMobileBindBtn(){return this.currentCountryIsChina&&this.thirdPartyMobileVerifyList.length>0}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,a)=>Ss(0,t,a,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,a)=>Es(0,t,a,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>async function(e,t,a,n=!0,o){if(console.log("🍉 ~ constant.ts:106 ~ validateThirdPartyEmail ~ context:",o),null==t||""===t)a(new Error(n?"Please enter a valid business email address":"请输入正确的公司邮箱"));else if(/[\u4e00-\u9fa5]+/.test(t))a(new Error(n?"Please enter a valid business email address":"请输入正确的公司邮箱"));else try{const e=await ae({email:t});console.log("🍉 ~ constant.ts:129 ~ validateThirdPartyEmail ~ res:",e),e.data.data&&0!==e.data.data.records.length?(ws(e.data.data.records),o.thirdPartyEmailVerifyList=e.data.data.records,a(new Error(n?"This email has been registered":"邮箱已注册"))):(ws([]),o.thirdPartyEmailVerifyList=[],a())}catch(i){a(new Error(n?"This email has been registered":"邮箱已注册"))}}(0,t,a,this.isEn,this),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>function(e,t,a,n=!0,o){t?!0===/^[0-9]*$/.test(t)?t.length<2?a(new Error(n?"please enter at least 2 characters.":"请输入至少2个字符")):ae({mobile:t}).then(e=>{e.data.data&&0!==e.data.data.records.length?(Cs(e.data.data.records),o.thirdPartyMobileVerifyList=e.data.data.records,a(new Error(n?"This mobile number has been registered":"手机号已注册"))):(Cs([]),o.thirdPartyMobileVerifyList=[],a())}).catch(()=>{a(new Error(n?"This mobile number has been registered":"手机号已注册"))}):a(new Error("请正确填写手机号")):a(new Error(n?"Please enter your cell phone number":"请输入手机号"))}(0,t,a,this.isEn,this),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,a)=>ks(0,t,a,this.isEn),trigger:"blur"}],agree:[{required:!0,validator:(e,t,a)=>{t?a():a(new Error(this.isEn?"Please agree the User Agreement and Privacy Policy":"请勾选《用户条款和协议》和《隐私政策》"))},trigger:["change","blur"]}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1,thirdPartyMobileVerifyList:[],thirdPartyEmailVerifyList:[]}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Bs,getAuthSessionItems:Z,go2Policy:Vs,handleBindThirdParty(e){this.$emit("bind-third-party","email"===e?this.thirdPartyEmailVerifyList:this.thirdPartyMobileVerifyList)},async inviteJoinGetComp(){const e=Z().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){he({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ err:",e)})},handleChangeCompany(e){console.log("🍉 ~ RegisterForm.vue:570 ~ e:",e),this.companyResistCn=!1,this.companyResistEn=!1},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.registerFormRef.clearValidate("companyName")})},async getAreaCodeData(){const e=(await de()).data;e&&0===e.code&&e.data&&e.data.cityId&&(this.form.city={id:e.data.cityId,type:"City",nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,raw:{city:{id:e.data.cityId,nameCn:e.data.cityNameCn,nameEn:e.data.cityNameEn,countryId:e.data?.countryId},country:{id:e.data?.countryId,nameCn:e.data.countryNameCn,nameEn:e.data.countryNameEn}}},this.form.cityId=e.data.cityId,this.form.countryId=e.data?.countryId,this.handleSelectCity(this.form.city));const t=await pe();this.areaCodeData=t.data.data.records},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id||e.raw?.city?.countryId||"",this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const a={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};let n=ue,o=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=fe,o=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),t(),n(a).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(this.currentCountryIsChina?this.mobileUid=t:this.emailUid=t,Je.success(o))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;const t=this.getAuthSessionItems(),{thirdPartyId:a,thirdPartyEmail:n,thirdPartyType:o,thirdPartyUserName:i}=vs();let r={appId:this.appId,fromSys:this.appId,passwd:yr.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterEmpNo:t.empNo||"",registerType:t.registerType||"",registerEvent:t.registerEvent||"",thirdPartyId:a,thirdPartyEmail:n,thirdPartyType:o,thirdPartyUserName:i};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode)?.id,account:ce(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:ce(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(e){const t={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector};this.currentCountryIsChina?t.compNameCn=this.form.companyName:t.compNameEn=this.form.companyName,this.$emit("register",t),this.loading=!0;try{const e=await Re(t);this.handlePostRegister(e)}catch(a){this.loading=!1}},async handleApplyJoinSubmit(e){const t={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(t.nameCn=this.form.nameCn),this.form.nameEn&&(t.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete t[e]),this.$emit("register",t),this.loading=!0;try{const e=await Pe(t);this.handlePostRegister(e)}catch(a){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(0===e.data.code)if(console.log("🍉 ~ RegisterForm.vue:717 ~ res.data:",e.data.data,e.data.data.redirect),e.data.data.redirect)try{ps.set("tgc",e.data.data.tgc,{expires:30}),e.data.data.result&&Y(e.data.data.result);const a=e.data.data.redirectPath||t.path||"/";Ts(a),oe()}catch(a){console.log("🍉 ~ RegisterForm.vue:737 ~ error:",a)}else this.loading=!1,Je.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Je.error(e.data.msg)}}},Ou={class:"third-register-form-container"},ju={class:"resist-company-info-card"},qu={class:"card-header"},Hu={class:"title-group"},zu={class:"tip-text"},Ju={class:"company-content"},Wu={class:"company-name"},Qu={class:"location-info"},Ku={key:6,class:"sector-section"},Gu={class:"sector-label"},Xu={class:"sector-group"},Yu=["onClick"],Zu={key:0,class:"icon-auth-checked"},$u={class:"agree-text"};const ed={name:"AuthDialog",components:{ElDialog:Xe,ElForm:Ye,ElFormItem:et,ElInput:Ge,ElButton:at,ElCheckbox:tt,ElSelect:Qe,ElOption:Ke,ElRadioGroup:ot,ElRadioButton:nt,GoogleInput:yo,CodeInput:Nr,RegisterForm:el,LoginTypeSwitcher:Sc,JcVerifySlide:Vr,WechatLogin:bc,WechatChooseType:Nc,WechatBindLogin:Oc,CompleteInfoForm:su,ForgetPassword:Au,ThirdBindLogin:Lu,ThirdRegisterForm:/* @__PURE__ */un(Mu,[["render",function(e,t,a,n,o,i){const r=V("JcSearch"),h=V("JcFloatWrapper"),m=V("el-form-item"),C=V("ChineseCompanySearch"),b=V("ApplyJoinBtn"),A=V("JcFloatInput"),E=V("el-option"),k=V("el-select"),S=V("google-input"),I=V("CodeInput"),T=V("el-checkbox"),P=V("el-button"),R=V("el-form");return l(),s("div",Ou,[p(R,{ref:"registerFormRef",model:o.form,rules:o.rules,class:"auth-form"},{default:B(()=>[o.hasResistCompany?(l(),s(g,{key:1},[u("div",ju,[u("div",qu,[u("div",Hu,[u("span",zu,v(a.isEn?"Company Name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[5]||(t[5]=e=>o.hasResistCompany=!1)},v(a.isEn?"Change":"修改"),1)]),u("div",Ju,[u("h4",Wu,v(a.isEn?o.resistCompanyInfo.compNameEn:o.resistCompanyInfo.compNameCn||o.resistCompanyInfo.compNameEn),1)]),t[22]||(t[22]=u("div",{class:"card-header"},[u("div",{class:"title-group"},[u("span",{class:"tip-text"}," Location(City)")])],-1)),u("div",Qu,v(a.isEn?o.resistCompanyInfo.countryNameEn:o.resistCompanyInfo.countryNameCn)+" / "+v(a.isEn?o.resistCompanyInfo.cityNameEn:o.resistCompanyInfo.cityNameCn),1)]),p(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:B(()=>[p(A,{modelValue:o.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>o.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?a.isEn?"Your Full Name in Chinese":"您的中文名称":a.isEn?"Your Full Name in English":"您的名称",placeholder:a.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:B(()=>[...t[23]||(t[23]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[p(m,{prop:"city"},{default:B(()=>[p(h,{label:a.isEn?"Company Location (City)":"公司所在城市","has-value":!(!o.form.city||!o.form.city.id)},{default:B(()=>[p(r,{modelValue:o.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>o.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],placeholder:a.isEn?"Location(City)":"请输入公司所在城市",onSelect:i.handleSelectCity},{prefix:B(()=>[...t[20]||(t[20]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","placeholder","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),p(m,{prop:"companyName"},{default:B(()=>[p(h,{label:i.currentCompanyLabel},{default:B(()=>[p(C,{class:"jc:my-0! search-company-item","company-name":o.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>o.form.companyName=e),useKq:o.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>o.form.useKq=e),kqCode:o.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>o.form.kqCode=e),kqInfo:o.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>o.form.kqInfo=e),"country-id":o.form.city?.raw?.country?.id||null,city:o.form.city,onChange:i.handleChangeCompany},{prefix:B(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id","city","onChange"])]),_:1},8,["label"])]),_:1}),o.companyResistCn||o.companyResistEn?(l(),d(b,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0)],64)),i.currentCountryIsChina?(l(),d(m,{key:2,ref:"areaCodeCountryId",class:"phone-form-item"},{default:B(()=>[(l(),d(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(S,{modelValue:o.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.form.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[t[24]||(t[24]=u("i",{class:"icon-auth-phone"},null,-1)),p(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(k,{modelValue:o.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.form.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),d(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),p(E,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)):f("",!0),i.currentCountryIsChina?f("",!0):(l(),d(m,{key:3,prop:"email",class:"email-form-item"},{default:B(()=>[p(A,{modelValue:o.form.email,"onUpdate:modelValue":t[11]||(t[11]=e=>o.form.email=e),label:a.isEn?"Business Email Address":"企业邮箱",placeholder:a.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[12]||(t[12]=e=>i.validateField("email"))},{prefix:B(()=>[...t[25]||(t[25]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),i.showEmailBindBtn?(l(),d(m,{key:4},{default:B(()=>[u("div",{class:"third-party-bind-btn",onClick:t[13]||(t[13]=e=>i.handleBindThirdParty("email"))},[x(v(a.isEn?"To bind":"去绑定")+" ",1),t[26]||(t[26]=u("img",{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png",style:{marginLeft:"2px",width:"8px",height:"12px"}},null,-1))])]),_:1})):f("",!0),i.showMobileBindBtn?(l(),d(m,{key:5},{default:B(()=>[u("div",{class:"third-party-bind-btn",onClick:t[14]||(t[14]=e=>i.handleBindThirdParty("mobile"))},[x(v(a.isEn?"To bind":"去绑定")+" ",1),t[27]||(t[27]=u("img",{src:"https://resources.jctrans.com/res/jc/pc/img/icon_more_8@2x.png",style:{marginLeft:"2px",width:"8px",height:"12px"}},null,-1))])]),_:1})):f("",!0),p(m,{prop:"code"},{default:B(()=>[p(I,{modelValue:o.form.code,"onUpdate:modelValue":t[15]||(t[15]=e=>o.form.code=e),placeholder:a.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":a.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:B(()=>[...t[28]||(t[28]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),p(m,{prop:"password",class:"password-form-item"},{default:B(()=>[p(A,{modelValue:o.form.password,"onUpdate:modelValue":t[16]||(t[16]=e=>o.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:a.isEn?"Password":"密码",placeholder:a.isEn?"6-20 characters include letters, numbers and symbols":"6-20位字符,包含字母、数字和符号"},{prefix:B(()=>[...t[29]||(t[29]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),o.hasResistCompany?f("",!0):(l(),s("div",Ku,[u("p",Gu,v(a.isEn?"Industry Sector":"行业类型"),1),u("div",Xu,[(l(!0),s(g,null,y(o.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:o.form.sector===e.value}]),onClick:t=>o.form.sector=e.value},[x(v(a.isEn?e.en:e.cn)+" ",1),o.form.sector===e.value?(l(),s("i",Zu)):f("",!0)],10,Yu))),128))])])),p(m,{prop:"agree",class:"agree-item"},{default:B(()=>[p(T,{modelValue:o.form.agree,"onUpdate:modelValue":t[19]||(t[19]=e=>o.form.agree=e)},{default:B(()=>[u("span",$u,[x(v(a.isEn?"I agree":"我同意")+" ",1),u("span",{class:"link-type",onClick:t[17]||(t[17]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(a.isEn?"User Agreement":"《用户条款和协议》"),1),x(" "+v(a.isEn?"and":"和")+" ",1),u("span",{class:"link-type",onClick:t[18]||(t[18]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(a.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),p(P,{class:c(["submit-btn register-btn",["register-btn-is-active"]]),disabled:o.loading,loading:o.loading,onClick:i.handleRegister},{default:B(()=>[x(v(a.isEn?"Register and Log in":"注册并登录")+" ",1),t[30]||(t[30]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["disabled","loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-288eccc0"]])},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},currentPath:{type:String,default:"/"},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1},baseMode:{type:String,default:"login"}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},emit:["update:visible","open","auth-dialog-close","login-success","register-success"],mounted(){const e=Ue();e&&(this.loginForm.username=e.account||"",this.loginForm.password=e.password?De(e.password):"",this.loginForm.remember=!0)},setup(a){const{proxy:n}=q(),o=e(null),i=e=>{const t=String(e||"").toLowerCase(),a=String(o.value||"").toLowerCase(),i=Z?.()||{};return"facebook"===t||"facebook"===a?"FACEBOOK":"linkedin"===t||"linkedin"===a?"LINKEDIN":"wechat"===t||n?.formMode?.startsWith("wechat")||i?.uniqueCode?"WECHAT":"PASSWORD"},s=t(()=>{if(a.lang)return"en"===a.lang||"en-US"===a.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),{loading:l,handleAuthSubmit:c,executeRedirect:u}=Dc({appId:"ERA",isEn:s.value,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),n.handleNeedComplete()},onSuccess:e=>{const t=i(n?.loginType);n.$emit("login-success",{...e||{},accountType:t}),n.loginForm.remember&&Fe(n.loginForm.username,ce(n.loginForm.password),!0),n.currentVisible=!1,u(e)}}),{isBindDialogVisible:d,isRegisterVisible:p,bindList:h,isUserClosed:f,startLogin:m,handleBindThirdParty:g,resetBindRegisterState:y}=bs({appId:"ERA",isEn:s.value,onSuccess:e=>{const t=i(o.value);n.$emit("login-success",{...e||{},accountType:t}),n.currentVisible=!1,u(e)}});r(f,e=>{e&&Je.error(s.value?"You have canceled the login.":"您取消了登录。")});return r(d,e=>{e&&(console.log("🍉 ~ index.vue:525 ~ watch ~ 第三方登录需要绑定账号"),n.loginType=o.value)}),r(p,e=>{e&&(n.loginType=o.value,console.log("🍉 ~ index.vue:530 ~ watch ~ 第三方登录需要注册账号"))}),{thirdBindDialogVisible:d,thirdRegisterVisible:p,bindList:h,authLoading:l,isEn:s,handleAuthSubmit:c,executeRedirect:u,handleThirdClick:e=>{console.log("🍉 ~ index.vue:530 ~ handleThirdClick ~ type:",e),o.value=e;const t="facebook"===e?"FACEBOOK":"linkedin"===e?"LINKEDIN":e;t&&m(t)},handleBindThirdParty:g,resetBindRegisterState:y}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],IpData:null,isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null}},computed:{currentDialogWidth(){let e="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(e="640px"),"login"!==this.formMode||"linkedin"!==this.loginType&&"facebook"!==this.loginType&&"TEST"!==this.loginType||(e="640px"),e},computedRules(){const e={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,a)=>As(0,t,a,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,a)=>xs(0,t,a,this.isEn,!1),trigger:"blur"}],code:[{required:!0,validator:(e,t,a)=>Is(0,t,a,this.isEn),trigger:"blur"}]};return"account"===this.loginType?{username:e.username,password:e.password}:"code"===this.loginType?{code:e.code,..."email"===this.loginForm.type?{email:e.email}:{phone:e.phone}}:{}}},watch:{visible(e){this.currentVisible=e},currentVisible(e){this.$emit("update:visible",e)}},methods:{go2Agreement:Bs,go2Policy:Vs,handleOpen(){this.formMode=this.baseMode||"login",this.$emit("open")},handleClose(){this.$emit("auth-dialog-close",{loginType:this.loginType,formMode:this.formMode}),this.loginType="account",this.formMode=this.baseMode||"login",oe(),Ne(),this.resetBindRegisterState()},handleTest(e){this.formMode=e},handleNeedComplete(){this.formMode="need-complete"},resolveAccountTypeByContext(){const e=String(this.loginType||"").toLowerCase(),t=Z?.()||{};return"facebook"===e?"FACEBOOK":"linkedin"===e?"LINKEDIN":"wechat"===e||t?.uniqueCode?"WECHAT":"PASSWORD"},handleRegisterSuccess(e){this.$emit("register-success",{...e||{},accountType:this.resolveAccountTypeByContext()})},handleWechatSuccess(e){this.$emit("login-success",{...e||{},accountType:"WECHAT"})},handleCompleteSuccess(e){e.redirectPath?this.executeRedirect(e):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(e){this.loginType!==e&&(this.loginType=e,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(e){this.$refs.loginFormRef.validateField(e,e=>{this.codeReady=e})},handleGetCode({captchaData:e,startTimer:t}){const a="mobile"===this.loginForm.type,n={target:this.loginForm.email||this.loginForm.phone,uuid:e.uuid,code:e.code};a&&(n.areaCode=this.loginForm.areaCode);const o=a?fe:ue;this.verifyData=e,t(),o(n).then(e=>{const t=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&t&&(a?this.mobileUid=t:this.emailUid=t,Je.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleLogin(){this.$refs.loginFormRef.validate(e=>{if(e)if("account"===this.loginType)this.captchaVisible=!0;else{if(console.log("🍉 ~ index.vue:795 ~ this.verifyData:",this.verifyData),console.log("🍉 ~ index.vue:796 ~ this.verifyData.code:",this.verifyData.code),!this.verifyData||!this.verifyData.uuid)return Je.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(e){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:e,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1,remember:this.loginForm.remember})},handleForget(){console.log("Forget Password"),this.formMode="forget-password"},async handleChangeSubType(e){this.loginMethod=e,"mobile"==e&&0===this.areaCodeData.length&&(await this.getLocalIpData(),this.getAreaCodeData())},async getLocalIpData(){let e=(await de()).data.data;"development"===process.env.NODE_ENV&&(e={countryId:57,cityId:4022,countryNameCn:"新加坡",countryNameEn:"Singapore",cityNameCn:"新加坡",cityNameEn:"Singapore"}),this.IpData=e},async getAreaCodeData(){const e=await pe();this.areaCodeData=e.data.data.records,this.loginForm.areaCode=e.data.data.records?.find(e=>e.id===this.IpData?.countryId)?.telCode,this.loginForm.areaCode||(this.areaCode="+86")},handleToLogin(){this.formMode="login",this.loginType="account"}}},td={key:0,class:"auth-container"},ad={class:"login-section"},nd={class:"login-title"},od={key:0},id={key:1},rd={class:"tab-header"},sd={key:1,class:"tel"},ld={class:"login-passport"},cd={class:"login-remember"},ud={key:0,class:"login-agreement"},dd={class:"login-agreement-text"},pd={class:"login-agreement-text-item"},hd={class:"login-agreement-text-item jc:mx-0.5"},fd={key:1},md={key:2},gd={key:3,class:"third-party-sign-in"},yd={class:"third-party-sign-in-title"},vd={class:"third-party-sign-in-group"},wd={key:4,class:"bottom-tip"},Cd={key:3,class:"auth-container"},bd={class:"register-section"};const Ad=/* @__PURE__ */un(ed,[["render",function(e,t,a,n,o,i){const r=V("GoogleInput"),h=V("el-form-item"),m=V("LoginTypeSwitcher"),C=V("el-option"),b=V("el-select"),A=V("google-input"),E=V("CodeInput"),k=V("el-checkbox"),S=V("el-button"),I=V("el-form"),T=V("WechatLogin"),P=V("ThirdBindLogin"),R=V("ThirdRegisterForm"),N=V("WechatChooseType"),U=V("WechatBindLogin"),D=V("RegisterForm"),F=V("CompleteInfoForm"),_=V("ForgetPassword"),L=V("JcVerifySlide"),M=V("ElDialog");return l(),d(M,{modelValue:o.currentVisible,"onUpdate:modelValue":t[23]||(t[23]=e=>o.currentVisible=e),"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:i.currentDialogWidth,"align-center":"",class:"jc-auth-dialog","show-close":!0,onClose:i.handleClose,onOpen:i.handleOpen},{default:B(()=>["login"===o.formMode?(l(),s("div",td,[u("div",ad,[u("div",nd,[n.thirdBindDialogVisible||n.thirdRegisterVisible?(l(),s("p",od,v(n.isEn?"New User Registration":"新用户注册"),1)):(l(),s("p",id,v(n.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans"),1))]),["account","code"].includes(o.loginType)?(l(),s(g,{key:0},[u("div",rd,[u("span",{class:c(["tab-header-title",{active:"account"===o.loginType}]),onClick:t[0]||(t[0]=e=>i.switchLoginTab("account"))},v(n.isEn?"Password Login":"账号登录"),3),u("span",{class:c(["tab-header-title",{active:"code"===o.loginType}]),onClick:t[1]||(t[1]=e=>i.switchLoginTab("code"))},v(n.isEn?"Verification Code Login":"验证码登录"),3)]),p(I,{ref:"loginFormRef",model:o.loginForm,rules:i.computedRules,"validate-on-rule-change":!1,class:"auth-form login-form-content"},{default:B(()=>["account"===o.loginType?(l(),s(g,{key:0},[p(h,{prop:"username",class:"form-user"},{default:B(()=>[p(r,{modelValue:o.loginForm.username,"onUpdate:modelValue":t[2]||(t[2]=e=>o.loginForm.username=e),placeholder:n.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),p(h,{prop:"password",class:"password-item"},{default:B(()=>[p(r,{modelValue:o.loginForm.password,"onUpdate:modelValue":t[3]||(t[3]=e=>o.loginForm.password=e),type:"password",class:"input-show-pass",placeholder:n.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"code"===o.loginType?(l(),s(g,{key:1},[p(h,{prop:"type"},{default:B(()=>[p(m,{modelValue:o.loginForm.type,"onUpdate:modelValue":t[4]||(t[4]=e=>o.loginForm.type=e),"is-en":n.isEn,onChange:i.handleChangeSubType},null,8,["modelValue","is-en","onChange"])]),_:1}),"email"===o.loginForm.type?(l(),d(h,{key:0,prop:"email"},{default:B(()=>[p(r,{modelValue:o.loginForm.email,"onUpdate:modelValue":t[5]||(t[5]=e=>o.loginForm.email=e),placeholder:n.isEn?"Email Address":"邮箱地址",onBlur:t[6]||(t[6]=e=>i.validateField("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),s("div",sd,[(l(),d(h,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:B(()=>[p(A,{modelValue:o.loginForm.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>o.loginForm.phone=e),placeholder:n.isEn?"Cell Phone Number":"手机号码",label:n.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:o.isCounting},{prefix:B(()=>[p(h,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:B(()=>[p(b,{modelValue:o.loginForm.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>o.loginForm.areaCode=e),placeholder:n.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:o.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:B(()=>[(l(!0),s(g,null,y(o.areaCodeData,e=>(l(),d(C,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))])),p(h,{prop:"code"},{default:B(()=>[p(E,{modelValue:o.loginForm.code,"onUpdate:modelValue":t[11]||(t[11]=e=>o.loginForm.code=e),placeholder:n.isEn?"Enter 4 Verification Code":"请输入4位数字验证码",ready:o.codeReady,"is-en":n.isEn,onSend:i.handleGetCode},null,8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),u("div",ld,[u("div",cd,[p(h,{prop:"remember",class:"remember-item"},{default:B(()=>[p(k,{modelValue:o.loginForm.remember,"onUpdate:modelValue":t[12]||(t[12]=e=>o.loginForm.remember=e),class:"remember-btn"},{default:B(()=>[x(v(n.isEn?"Remember Me":"30天自动登录"),1)]),_:1},8,["modelValue"])]),_:1}),"account"===o.loginType?(l(),s("span",{key:0,class:"forget-pwd-btn",onClick:t[13]||(t[13]=(...e)=>i.handleForget&&i.handleForget(...e))},v(n.isEn?"Forgot your password?":"忘记密码"),1)):f("",!0)]),"code"===o.loginType?(l(),s("div",ud,[u("div",dd,[u("span",pd,v(n.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"),1),u("span",{class:"link-type",onClick:t[14]||(t[14]=w((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(n.isEn?"User Agreement":"《用户条款和协议》"),1),u("span",hd,v(n.isEn?"and":""),1),u("span",{class:"link-type",onClick:t[15]||(t[15]=w((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(n.isEn?"Privacy Policy":"《隐私政策》"),1)])])):f("",!0),p(S,{class:"submit-btn",loading:n.authLoading,onClick:i.handleLogin},{default:B(()=>[x(v("code"===o.loginType?n.isEn?"Register and log in":"登录/注册":n.isEn?"Sign In":"登录")+" ",1),t[24]||(t[24]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["loading","onClick"])])]),_:1},8,["model","rules"])],64)):f("",!0),"wechat"===o.loginType?(l(),s("div",fd,[p(T,{"is-en":n.isEn,onSuccess:i.handleWechatSuccess,onNeedRegister:i.handleWechatNeedRegister,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onSuccess","onNeedRegister","onNeedComplete"])])):f("",!0),["linkedin","facebook","TEST"].includes(o.loginType)?(l(),s("div",md,[n.thirdBindDialogVisible?(l(),d(P,{key:0,"is-en":n.isEn,"bind-list":n.bindList,class:"jc:mt-1"},null,8,["is-en","bind-list"])):f("",!0),n.thirdRegisterVisible?(l(),d(R,{key:1,"is-en":n.isEn,class:"jc:mt-6",onBindThirdParty:n.handleBindThirdParty},null,8,["is-en","onBindThirdParty"])):f("",!0)])):f("",!0),"TEST"!==o.loginType&&"facebook"!==o.loginType&&"linkedin"!==o.loginType?(l(),s("div",gd,[u("div",yd,v(n.isEn?"Sign in with":"其他登录方式"),1),u("div",vd,[["wechat","linkedin","facebook"].includes(o.loginType)?(l(),s("div",{key:0,class:"third-party-sign-in-btn",onClick:t[16]||(t[16]=()=>o.loginType="account")},[t[25]||(t[25]=u("i",{class:"icon-account"},null,-1)),u("span",null,v(n.isEn?"Account":"账户"),1)])):["account","code"].includes(o.loginType)?(l(),s("div",{key:1,class:"third-party-sign-in-btn",onClick:t[17]||(t[17]=()=>o.loginType="wechat")},[t[26]||(t[26]=u("i",{class:"icon-auth-wechat"},null,-1)),u("span",null,v(n.isEn?"WeChat":"微信"),1)])):f("",!0),u("div",{class:"third-party-sign-in-btn",onClick:t[18]||(t[18]=e=>n.handleThirdClick("linkedin"))},[...t[27]||(t[27]=[u("i",{class:"icon-auth-linkedin"},null,-1),u("span",null,"LinkedIn",-1)])]),u("div",{class:"third-party-sign-in-btn",onClick:t[19]||(t[19]=e=>n.handleThirdClick("facebook"))},[...t[28]||(t[28]=[u("i",{class:"icon-auth-facebook"},null,-1),u("span",null,"Facebook",-1)])]),a.showTestThirdBtn?(l(),s("div",{key:2,class:"third-party-sign-in-btn",onClick:t[20]||(t[20]=e=>n.handleThirdClick("TEST"))},[...t[29]||(t[29]=[u("i",{class:"icon-auth-facebook"},null,-1),u("span",null,"TEST",-1)])])):f("",!0)])])):f("",!0),n.thirdBindDialogVisible||n.thirdRegisterVisible?f("",!0):(l(),s("div",wd,[x(v(n.isEn?"Don't have an account?":"没有账户?")+" ",1),u("span",{class:"action-text",onClick:t[21]||(t[21]=e=>o.formMode="register")},[x(v(n.isEn?"Sign Up":"立即注册")+" ",1),t[30]||(t[30]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))])])):"wechat-need-register"===o.formMode?(l(),d(N,{key:1,"is-en":n.isEn,onToBind:i.handleWechatLogin,onToRegister:i.handleWechatRegister},null,8,["is-en","onToBind","onToRegister"])):"wechat-bind"===o.formMode?(l(),d(U,{key:2,"is-en":n.isEn,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onNeedComplete"])):"register"===o.formMode?(l(),s("div",Cd,[u("div",bd,[p(D,{"is-en":n.isEn,onToLogin:i.handleToLogin,onNeedComplete:i.handleNeedComplete,onRegisterSuccess:i.handleRegisterSuccess},null,8,["is-en","onToLogin","onNeedComplete","onRegisterSuccess"])])])):"need-complete"===o.formMode?(l(),d(F,{key:4,"is-en":n.isEn,onSuccess:i.handleCompleteSuccess},null,8,["is-en","onSuccess"])):"forget-password"===o.formMode?(l(),d(_,{key:5,"is-en":n.isEn,onToLogin:i.handleToLogin},null,8,["is-en","onToLogin"])):f("",!0),p(L,{visible:o.captchaVisible,"onUpdate:visible":t[22]||(t[22]=e=>o.captchaVisible=e),"is-en":n.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])]),_:1},8,["modelValue","width","onClose","onOpen"])}],["__scopeId","data-v-bdef78a1"]]),Ed=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Ad},Symbol.toStringTag,{value:"Module"}));const kd=(e,t)=>z.searchByIdWithType(e,t);function xd(a,n){const o=e([]),i=e(!1),r=e(!1),s=e(!1),l=e(1),c=e(0),u=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e});return{searchResults:o,loading:i,isFetchingMore:r,isFinished:s,fetchData:async(e=!1)=>{const t=a.value.trim();if(!t)return o.value=[],c.value=0,void(s.value=!1);if(e){if(r.value||s.value)return;r.value=!0,l.value+=1}else{if(i.value)return;i.value=!0,l.value=1,s.value=!1}try{const a=await async function(e,t=["Continent","Country","City","Seaport","Airport"],a={}){return z.searchByName({keyword:e,displayInfo:t,...a})}(t,n.value,{current:l.value,size:20}),i=(d=a.records||[],Array.isArray(d)?d.filter(e=>u.value.includes(e.type)):[]);e?o.value.push(...i):o.value=i,c.value=a.total||0,(o.value.length>=c.value||i.length<20)&&(s.value=!0)}catch(p){console.error("Search request failed:",p),e&&(l.value-=1)}finally{i.value=!1,r.value=!1}var d}}}const Sd={class:"h5-search-container"},Id={class:"trigger-content"},Bd=["src"],Vd={class:"placeholder-text"},Td={key:0,class:"scroll-container"},Pd={class:"tag-text"},Rd={class:"selected-count-text"},Nd={key:1,class:"selected-val"},Ud={key:2,class:"placeholder-gray"},Dd={key:0,class:"h5-modal-root"},Fd={class:"h5-drawer-card"},_d={class:"h5-header"},Ld={class:"h5-input-wrapper"},Md=["src"],Od=["placeholder"],jd={key:0,class:"h5-spinner-box"},qd={key:1,class:"h5-section"},Hd={class:"h5-section-hd"},zd={class:"h5-history-grid"},Jd=["onClick"],Wd={key:2,class:"h5-result-list"},Qd=["onClick"],Kd={class:"item-info"},Gd={class:"item-name"},Xd={key:0,class:"item-sub"},Yd={class:"h5-load-status"},Zd={key:1,class:"no-more"},$d={key:3,class:"h5-load-status h5-empty"},ep={class:"h5-empty-apply-wrap"},tp=["src"],ap=/* @__PURE__ */un(/* @__PURE__ */o({__name:"index",props:{modelValue:{},multiple:{type:Boolean,default:!1},lang:{default:"zh-CN"},placeholder:{},historyKey:{},reportType:{default:"City"}},emits:["update:modelValue","select","apply"],setup(o,{emit:h}){const C=o,b=h,x=e(!1),S=e(""),I=e(null),V=e(null);let T=null;const{searchHistory:P,saveToHistory:N,clearHistory:U}=function(n){const o=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return a(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{o.value=JSON.parse(t)}catch(e){o.value=[]}}}),{searchHistory:o,saveToHistory:e=>{if(!e||!i)return;const t=o.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const a=t.slice(0,4);if(s.value){o.value=a;try{localStorage.setItem(r.value,JSON.stringify(a))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{o.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(C,"historyKey")),{searchResults:D,loading:F,isFetchingMore:_,isFinished:L,fetchData:M}=xd(S,e(["City","Seaport","Airport"])),{hydrateMultiple:j,hydrateSingle:q}=ct(kd),H=t(()=>{if(C.lang)return"en"===C.lang||"en-US"===C.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),z=t(()=>Array.isArray(C.modelValue)?C.modelValue:C.modelValue?[C.modelValue]:[]);r(()=>C.modelValue,async(e,t)=>{if(JSON.stringify(e)!==JSON.stringify(t))if(C.multiple&&Array.isArray(e))try{const{updatedList:t,hasChanged:a}=await j(e);a&&b("update:modelValue",t)}catch(a){console.error("Batch fetch detail failed:",a)}else if(!C.multiple&&e?.id&&e?.type&&!e?.display)try{const t=await q(e);t&&t!==e&&b("update:modelValue",t)}catch(a){console.error("Single fetch detail failed:",a)}},{immediate:!0,deep:!0});const W=t(()=>!C.multiple&&!!C.modelValue),Q=t(()=>W.value?ae(C.modelValue):""),K=t(()=>z.value.length>0),G=()=>{x.value=!0,O(()=>{S.value=H.value?C.modelValue?.nameEn||"":C.modelValue?.nameCn||"",I.value?.focus(),S.value&&M(!1)})},X=()=>{x.value=!1,S.value=""},Y=e=>{if(N(e),C.multiple){z.value.some(t=>t.id===e.id)||b("update:modelValue",[...z.value,e])}else b("update:modelValue",e),X();b("select",e)},Z=()=>{b("update:modelValue",C.multiple?[]:null)},$=e(!1),ee=e=>{const t=e.target;if(!t)return;!(t.scrollTop+t.clientHeight>=t.scrollHeight-80)||!S.value||F.value||_.value||L.value||$.value||($.value=!0,M(!0))};r(_,e=>{e||($.value=!1)});const te=()=>{T&&clearTimeout(T),T=setTimeout(()=>{$.value=!1,V.value?.scrollTo({top:0}),M(!1)},300)};n(()=>{T&&(clearTimeout(T),T=null)});const ae=e=>H.value?e.displayEn||e.display:e.displayCn||e.display,ne=e=>z.value.some(t=>t.id===e.id),oe=async()=>{const e=S.value?.trim();if(e)try{await J({reportData:e,reportType:C.reportType})}catch(t){console.error("Report apply data failed:",t)}finally{b("apply",e)}};return(e,t)=>(l(),s("div",Sd,[u("div",{class:"search-trigger",onClick:G},[u("div",Id,[u("img",{src:E(Da),class:"search-icon-m"},null,8,Bd),u("div",Vd,[o.multiple&&z.value.length>0?(l(),s("div",Td,[(l(!0),s(g,null,y(z.value,e=>(l(),s("div",{key:e.id,class:"selected-tag"},[u("span",Pd,v(e.display),1)]))),128)),u("span",Rd,v(H.value?"Selected":"已选")+" ("+v(z.value.length)+") ",1)])):!o.multiple&&W.value?(l(),s("span",Nd,v(Q.value),1)):(l(),s("span",Ud,v(o.placeholder||(H.value?"Search":"搜索")),1))])]),K.value?(l(),s("span",{key:0,class:"clear-trigger",onClick:w(Z,["stop"])},"ⓧ")):f("",!0)]),(l(),d(k,{to:"body"},[x.value?(l(),s("div",Dd,[p(R,{name:"fade"},{default:B(()=>[u("div",{class:"h5-mask",onClick:X})]),_:1}),p(R,{name:"slide-up"},{default:B(()=>[u("div",Fd,[u("div",{class:"drawer-handle",onClick:X}),u("div",_d,[u("div",Ld,[u("img",{src:E(Da),class:"inner-icon"},null,8,Md),m(u("input",{ref_key:"inputRef",ref:I,"onUpdate:modelValue":t[0]||(t[0]=e=>S.value=e),placeholder:H.value?"City/Port/Airport":"搜索城市/港口/机场",onInput:te},null,40,Od),[[A,S.value]]),S.value?(l(),s("div",{key:0,class:"h5-clear-btn",onClick:t[1]||(t[1]=e=>S.value="")}," ✕ ")):f("",!0)]),u("div",{class:"h5-cancel-btn",onClick:X},v(H.value?"Cancel":"取消"),1)]),u("div",{class:"h5-main-content",ref_key:"scrollContainer",ref:V,onScroll:ee},[E(F)&&!E(_)?(l(),s("div",jd,[...t[3]||(t[3]=[u("div",{class:"h5-spinner"},null,-1)])])):f("",!0),!S.value&&E(P).length>0?(l(),s("div",qd,[u("div",Hd,[u("span",null,v(H.value?"Recent":"最近搜索"),1),u("span",{class:"h5-clear-history",onClick:t[2]||(t[2]=(...e)=>E(U)&&E(U)(...e))},v(H.value?"Clear":"清空"),1)]),u("div",zd,[(l(!0),s(g,null,y(E(P),(e,t)=>(l(),s("div",{key:t,class:"h5-history-tag",onClick:t=>Y(e)},v(ae(e)),9,Jd))),128))])])):f("",!0),E(D).length>0?(l(),s("div",Wd,[(l(!0),s(g,null,y(E(D),(e,t)=>{return l(),s("div",{key:t,class:c(["h5-result-item",{"is-active":ne(e)}]),onClick:t=>Y(e)},[u("div",{class:c(["item-type",e.type.toLowerCase()])},v((a=e.type,H.value?a:{City:"城市",Seaport:"港口",Airport:"机场"}[a]||a)),3),u("div",Kd,[u("div",Gd,v(ae(e)),1),e.parentName?(l(),s("div",Xd,v(e.parentName),1)):f("",!0)])],10,Qd);var a}),128)),u("div",Yd,[E(_)?(l(),s(g,{key:0},[t[4]||(t[4]=u("div",{class:"mini-spinner"},null,-1)),u("span",null,v(H.value?"Loading...":"加载中..."),1)],64)):E(L)&&S.value?(l(),s("span",Zd,v(H.value?"No more results":"没有更多结果了"),1)):f("",!0)])])):f("",!0),S.value&&!E(F)&&0===E(D).length?(l(),s("div",$d,[u("p",null,v(H.value?"No Results Found. ":"未找到相关结果,"),1),u("div",ep,[u("span",{class:"h5-empty-apply",onClick:w(oe,["stop"])},v(H.value?"Apply for data addition":"申请补充数据"),1),u("img",{src:E(Fa),alt:"more",class:"h5-empty-apply-icon",onClick:w(oe,["stop"])},null,8,tp)])])):f("",!0)],544)])]),_:1})])):f("",!0)]))]))}}),[["__scopeId","data-v-ae746c64"]]),np=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ap},Symbol.toStringTag,{value:"Module"})),op={class:"jc-line-cascader jc:w-full"},ip={class:"jc:flex jc:justify-between jc:items-center jc:w-full"},rp={key:0,class:"jc:text-xs jc:text-gray-400 jc:ml-4"},sp={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},lp={key:0},cp={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},up={class:"jc:flex jc:justify-center jc:items-center jc:gap-1 jc:ml-1"},dp=["src"],pp=/* @__PURE__ */o({__name:"index",props:{modelValue:{default:()=>[]},lineId:{default:null},placeholder:{default:""},lang:{},lineType:{default:"shipping"},multiple:{type:Boolean,default:!0}},emits:["update:modelValue","update:lineId","change","apply"],setup(n,{emit:o}){const i=n,c=o,h=e(),m=e([]),C=e(!1),b=e(""),A=e(i.modelValue),k={multiple:!0,expandTrigger:"click",emitPath:!1,checkStrictly:!1},S=t(()=>({...k,multiple:i.multiple})),I=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),V=t(()=>m.value.map(e=>({label:I.value?e.nameEn||e.nameCn:e.nameCn||e.nameEn,value:`line-${e.id}`,children:(e.raw?.countryList||[]).map(t=>({label:I.value?t.nameEn:t.nameCn,value:`${e.id}-${t.id}`,shortCode:t.shortCode}))}))),T=t(()=>i.placeholder?i.placeholder:I.value?"Please select route":"涉及航线选择"),P=(e,t)=>{const a=t.toLowerCase();return e.pathLabels.some(e=>e.toLowerCase().includes(a))},R=(e,t)=>{c("update:modelValue",e),c("update:lineId",t),c("change",{countryIds:e,lineId:t})},N=e=>{},U=e=>{if(console.log("🍓🍓 ~ index.vue:244 ~ handleChange ~ selected:",e),!e||0===e.length)return A.value=[],void R([],null);const t=e[e.length-1];if(t.startsWith("line-")){const[a,n]=t.split("-"),o=e.filter(e=>e.endsWith(`${n}`));return console.log("🍓🍓 ~ index.vue:260 ~ validSelections ~ validSelections:",o),R([],n),void c("change",o)}const[a]=t.split("-"),n=e.filter(e=>e.startsWith(`${a}-`));A.value=n;const o=n.map(e=>e.split("-")[1]);R(o,a),c("change",n)},D=async()=>{if(b.value)try{await J({reportData:b.value,reportType:"Line"})}catch(e){}c("apply",b.value),h.value?.togglePopperVisible(!1)},F=e=>{const t=/* @__PURE__ */new Set;for(const a of e){let e=a.node?.parent;for(;e&&1!==e.level;)e=e.parent;const n=e?.data?.label;n&&t.add(n)}return[...t]};return a(()=>{(async e=>{C.value=!0,b.value=e;try{const e=await z.line.searchAllByCountry(i.lineType);m.value=Array.isArray(e)?e:e?.records||[]}catch(t){console.error("Search failed:",t),m.value=[]}finally{C.value=!1}})("")}),r(()=>i.modelValue,e=>{console.log("🍓🍓 ~ index.vue:324 ~ newVal:",e);const t=i.lineId;t&&e&&e.length>0?A.value=e.map(e=>`${t}-${e}`):A.value=[`line-${i.lineId}`]},{deep:!0,immediate:!0}),(e,t)=>(l(),s("div",op,[p(E(rt),{ref_key:"selectRef",ref:h,modelValue:A.value,"onUpdate:modelValue":t[0]||(t[0]=e=>A.value=e),"popper-class":"jc-line-cascader-pop",options:V.value,props:S.value,placeholder:T.value,loading:C.value,filterable:"",clearable:"","collapse-tags":"","collapse-tags-tooltip":"",class:"jc:w-full","filter-method":P,onExpandChange:N,onChange:U},{tag:B(({data:e})=>[(l(!0),s(g,null,y(F(e),e=>(l(),d(E(st),{key:e},{default:B(()=>[x(v(e),1)]),_:2},1024))),128))]),default:B(({data:e,node:t})=>[u("div",ip,[u("span",null,v(e.label),1),t.isLeaf&&e.shortCode?(l(),s("span",rp,v(e.shortCode),1)):f("",!0)])]),empty:B(()=>[u("div",sp,[C.value?(l(),s("div",lp,[t[1]||(t[1]=u("i",{class:"el-icon-loading jc:mr-1"},null,-1)),x(" "+v(I.value?"Searching...":"正在搜索中..."),1)])):(l(),s("div",cp,[u("p",null,v(I.value?"No results found. ":"暂无结果,"),1),u("div",up,[u("span",{class:"jc:font-medium jc:text-[14px] jc:text-[#ff6a00] jc:cursor-pointer jc:hover:underline",onClick:w(D,["stop"])},v(I.value?"Apply for data addition":"申请补充数据 "),1),u("img",{src:E(Fa),alt:"more",class:"jc:size-4 jc:cursor-pointer",onClick:w(D,["stop"])},null,8,dp)])]))])]),_:1},8,["modelValue","options","props","placeholder","loading"])]))}}),hp=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"})),fp={},mp=(...e)=>{for(const t of e)if("string"==typeof t){const e=t.trim();if(e)return e}return""},gp=(...e)=>{for(const t of e){if("boolean"==typeof t)return t;if("string"==typeof t){const e=t.trim().toLowerCase();if("true"===e)return!0;if("false"===e)return!1}}},yp=e=>{const t=e.__jctransTrackHandler__;t&&(e.removeEventListener(t.trigger,t.handler),delete e.__jctransTrackHandler__)},vp=(e,t,a)=>{yp(e);const n=(e=>{const t=e.value;return"string"==typeof t?{eventName:t.trim(),trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1}:t&&"object"==typeof t?{eventName:mp(t.event,t.name,e.arg),trigger:mp(t.trigger)||"click",attrs:t.attributes||t.attrs||{},once:Boolean(t.once),stop:Boolean(t.stop),prevent:Boolean(t.prevent),callback:"function"==typeof t.onTracked?t.onTracked:"function"==typeof t.callback?t.callback:void 0}:{eventName:"",trigger:"click",attrs:{},once:!1,stop:!1,prevent:!1}})(t);if(!n.eventName)return;const o=t=>{n.prevent&&"preventDefault"in t&&t.preventDefault(),n.stop&&"stopPropagation"in t&&t.stopPropagation(),a.isInitialized()&&a.track(n.eventName,n.attrs,()=>{n.callback?.({event:t,eventName:n.eventName,attrs:n.attrs,trigger:n.trigger})}),n.once&&yp(e)};e.addEventListener(n.trigger,o),e.__jctransTrackHandler__={eventName:n.eventName,trigger:n.trigger,handler:o}};function wp(e){return{install(t){const a=_e,n=fp||{},o=e||{},i=(e=>{if("undefined"==typeof window)return{};const t=window,a=t?.[e],n=t?.__JCTRANS_GIO_CONFIG__,o=t?.__GIO_CONFIG__,i=a||n||o;return i&&"object"==typeof i?i:{}})(mp(o.globalVarName,"__JCTRANS_GIO_CONFIG__")),r=gp(i.enabled,o.enabled,n.VITE_GIO_ENABLED),s={...o.initOptions||{},...i.initOptions||{}};if(!s.serverUrl){const e=mp(i.serverUrl,o.serverUrl,n.VITE_GIO_SERVER_URL);e&&(s.serverUrl=e)}const l=mp(i.accountId,o.accountId,n.VITE_GIO_ACCOUNT_ID),c=mp(i.dataSourceId,o.dataSourceId,n.VITE_GIO_DATA_SOURCE_ID,n.VITE_GIO_DATASOURCE_ID),u=mp(i.appId,o.appId,n.VITE_GIO_APP_ID),d=gp(i.autoInit,o.autoInit,n.VITE_GIO_AUTO_INIT),p=(h=i.directiveName||o.directiveName,(mp(h)||"gio-track").replace(/^v-/,""));var h;(r??1)&&(d??1)&&l&&c&&!a.isInitialized()&&(u?a.init(l,c,u,s):a.init(l,c,s));const f=(e=>(t,a)=>{const n=mp(t);n&&e.isInitialized()&&e.track(n,a||{})})(a);t.config.globalProperties.$gio=a,t.config.globalProperties.$trackEvent=f,t.provide("gio",a),t.provide("trackEvent",f);const m={mounted(e,t){vp(e,t,a)},updated(e,t){vp(e,t,a)},beforeUnmount(e){yp(e)}};t.directive(p,m)}}}let Cp={open(){G.emit(X.Open)},close(){G.emit(X.Close)},onSubmit(e){G.on(X.Submit,e)}};function bp(){let e=!1;return{install(t){if("undefined"!=typeof window&&!e){const t=document.createElement("div");t.setAttribute("id","global-modal-root"),document.body.appendChild(t),H(Lr).mount(t),e=!0}t.config.globalProperties.$globalModal=Cp}}}const Ap=/* @__PURE__ */Object.assign({"./components/ApplyDataDialog.vue":ro,"./components/ChineseCompanySearch/index.vue":uo,"./components/CodeInput.vue":Ur,"./components/GlobalModal.vue":Mr,"./components/GoogleInput.vue":vo,"./components/JcCarrierSearch/AirCarrierSearch.vue":jr,"./components/JcCarrierSearch/AirLineSearch.vue":Hr,"./components/JcCarrierSearch/SeaCarrierSearch.vue":Jr,"./components/JcCarrierSearch/SeaLineSearch.vue":Qr,"./components/JcCarrierSearch/index.vue":ns,"./components/JcFloatInput.vue":xo,"./components/JcFloatWrapper.vue":us,"./components/JcLoginDialog/index.vue":Ed,"./components/JcMSearch/index.vue":np,"./components/JcSearch/index.vue":pn,"./components/JcVerifySlide/index.vue":Tr,"./components/LineCascader/index.vue":hp}),Ep={};Object.entries(Ap).forEach(([e,t])=>{const a=e.split("/"),n=a.pop()||"",o=a.pop()||"";let i="";i="index.vue"===n?o:n.replace(/\.vue$/,""),i&&t.default&&(Ep[i]=t.default)});const{ApplyDataDialog:kp,JcSearch:xp,GlobalModal:Sp,JcMSearch:Ip,ChineseCompanySearch:Bp,JcLoginDialog:Vp,CodeInput:Tp,GoogleInput:Pp,JcFloatInput:Rp,JcFloatWrapper:Np,JcVerifySlide:Up,JcCarrierSearch:Dp,AirCarrierSearch:Fp,SeaCarrierSearch:_p,AirLineSearch:Lp,SeaLineSearch:Mp,LineCascader:Op}=Ep;let jp=!1;const qp={install(e,t){if(!jp){jp=!0,t?.sharedConfig&&Le(t.sharedConfig),t?.tracking&&e.use(wp(t.tracking));for(const t in Ep)e.component(t,Ep[t]),console.log(`[JcUI] 自动注册组件: ${t}`)}}};export{Fp as AirCarrierSearch,Lp as AirLineSearch,kp as ApplyDataDialog,Bp as ChineseCompanySearch,Tp as CodeInput,Sp as GlobalModal,Pp as GoogleInput,Dp as JcCarrierSearch,Rp as JcFloatInput,Np as JcFloatWrapper,Vp as JcLoginDialog,Ip as JcMSearch,xp as JcSearch,Up as JcVerifySlide,Op as LineCascader,Me as MODAL_ACTION,_p as SeaCarrierSearch,Mp as SeaLineSearch,wp as createGioTrackingPlugin,bp as createGlobalModalPlugin,Oe as createRequest,qp as default,je as emitter,qe as getAppId,He as initSharedConfig};