Files
ccdi/doc/other/纪检初核系统-离线演示包/mb-proto2/5.7b24m-vendor-c6215ade32c4d6e04f4c.js
2026-02-09 14:34:27 +08:00

3 lines
281 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
try{let me=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},V=new me.Error().stack;V&&(me._sentryDebugIds=me._sentryDebugIds||{},me._sentryDebugIds[V]="13c83832-304d-473a-a2da-04e04f22504c",me._sentryDebugIdIdentifier="sentry-dbid-13c83832-304d-473a-a2da-04e04f22504c")}catch(me){}{let me=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};me.SENTRY_RELEASE={id:"22.14.4"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[571],{1076:(me,V,o)=>{"use strict";o.d(V,{Ay:()=>i,X2:()=>r});const l={user:{id:0,user_id:"",user_cid:"",email:"",is_viewer:!1,name:"",mobile:null,avatar:""},org:{name:"",cid:"",logo:null,spaces:[],plan:"",trial_end_on:null,next_billing_on:"",settings:{},permissions:[],limitation:{is_export_watermark:!1,is_org_quit_transfer:!0,is_org_recent:!0,max_mkt_count:0,max_org_log_days:0,max_pic_bytes:0,max_project_count:0,max_project_share_count:0,max_project_template_count:0,max_project_version_count:0,max_recycler_days:0,max_screen_count:0,storage:0},members:[]},space:{cid:"",created_at:"",deleted:!1,name:"",org_cid:"",permissions:[],space_type:"",updated_at:"",user_id:0,is_disable_banned_viewer:!0},folderListMap:new Map,projectListMap:new Map,lang:"zh-CN"};let r=function(I){return I.UpdateState="reducer:update:user",I.UpdateUser="reducer:update:user",I.UpdateOrg="reducer:update:org",I.UpdateSpace="reducer:update:space",I.UpdateFolderListMap="reducer:update:folderListMap",I.UpdateProjectListMap="reducer:update:projectListMap",I}({});const i=function(I,W){I===void 0&&(I=l);const{type:P,payload:_}=W;switch(P){case r.UpdateState:return{...I,..._};case r.UpdateUser:return{...I,user:{...I.user,..._}};case r.UpdateOrg:return{...I,org:{...I.org,..._}};case r.UpdateSpace:return{...I,space:{...I.space,..._}};case r.UpdateFolderListMap:return{...I,folderListMap:_};case r.UpdateProjectListMap:return{...I,projectListMap:_};default:return I}}},5649:(me,V,o)=>{"use strict";o.d(V,{s:()=>z,A:()=>D});var l=o(95549),r=o(38502),N=o(53732),i=o.n(N),I=o(69173),W=o.n(I),P=o(91752),_=o(39e3),U=o(23089),f=o(17307),x=o(83199),k=o(93257),T=o(57479),Z=o(69815),O=o(67787),m=o(69594);const p=(0,O.DU)([".no-pointer-events{pointer-events:none;user-select:none;&.col-resize{cursor:",";}&.row-resize{cursor:",";}}"],m.M.ewResizeActive,m.M.nsResizeActive),h=O.Ay.label.withConfig({displayName:"styles__StyledInputNumber",componentId:"sc-1hqayf3-0"})(['position:relative;display:flex;justify-content:space-between;align-items:center;min-width:2em;border:1px solid transparent;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;height:28px;font-size:12px;border-radius:6px;overflow:hidden;.title{display:flex;align-items:center;justify-content:center;padding:0 3px 0 5px;width:max-content;height:100%;user-select:none;color:',";&.title-cursor{&.col-resize{cursor:",";}&.row-resize{cursor:",";}}}.left-title{padding:0 13px 0 0;}.normal-right{margin-left:","px;}input{color:",";width:100%;height:100%;margin-left:8px;cursor:default;}.text-align-right{text-align:right;padding-right:2px;}.suffix{position:absolute;top:0;display:flex;align-items:center;height:100%;pointer-events:none;user-select:none;width:100%;color:",";&::before{content:attr(data-value);display:inline-block;margin-right:0.125em;width:fit-content;overflow:hidden;opacity:0;}}.action{position:absolute;top:0;right:0;width:14px;height:100%;text-align:center;visibility:hidden;svg{height:4px;fill:currentColor;fill-rule:evenodd;}button{display:block;margin:0;padding:0;width:100%;height:50%;line-height:0;color:",";.svg-icon{color:currentColor;}&.no-transition{transition:none;}&:hover,&:active{color:",";}&[data-action=up] svg{margin:5px 0 2px;}&[data-action=down] svg{margin:2px 0 5px;}}&.caret{width:26px;svg{width:26px;height:26px;margin-right:0;color:",";}button{height:100%;}&.active{visibility:visible;}}}&.is-disabled{> *{color:",";cursor:not-allowed;}}&.is-readOnly{pointer-events:none;.action{visibility:hidden;}}&:hover:not(.has-menu):not(.is-disabled){border:1px solid ",";.action{visibility:visible;color:#c8cdd0;}}&.is-active:not(.has-menu):not(.is-disabled){border:1px solid ",";outline:1px solid ",";outline-offset:-2px;.action{&:not(.caret){visibility:visible;}}}&.is-active-title{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;cursor:pointer;}&.has-menu{border:1px solid transparent;input{width:calc(100% - 26px);border:1px solid transparent;border-radius:4px 0 0 4px;margin-left:0;padding-left:5px;}&:hover:not(.is-active):not(.is-disabled){border:1px solid ",";.action.caret{visibility:visible;background:",";svg.icon{color:",";}}}&:active:not(.is-active):not(.is-disabled){border:1px solid ",";.action.caret{visibility:visible;background:",";svg.icon{color:",";}}}&.is-active{overflow:visible;input{border:1px solid ",";outline:1px solid ",";position:relative;z-index:2;}.action.caret{visibility:visible;color:#c8cdd0;position:relative;z-index:1;svg.icon{color:",";}&:hover{background:",";border-radius:0 4px 4px 0;outline:1px solid ",";}}}}"],A=>A.theme.color_text_L3,m.M.ewResize,m.M.nsResize,A=>31-A.valueLength*6,A=>A.theme.color_text_L1,A=>A.theme.color_text_L2,A=>A.theme.color_text_L3,A=>A.theme.color_text_L2,A=>A.theme.color_text_L3,A=>A.theme.color_text_disabled01,A=>A.theme.color_bg_border_02,A=>A.theme.color_proto,A=>A.theme.color_proto,A=>A.theme.color_proto,A=>A.theme.color_proto,A=>A.theme.color_bg_border_02,A=>A.theme.color_btn_secondary_hover,A=>A.theme.color_text_L1,A=>A.theme.color_bg_border_02,A=>A.theme.color_btn_secondary_active,A=>A.theme.color_text_L1,A=>A.theme.color_proto,A=>A.theme.color_proto,A=>A.theme.color_text_L1,A=>A.theme.color_btn_secondary_hover,A=>A.theme.color_bg_border_02);var E=o(72214);const b=500,v=30,a=(A,H)=>Number(Number(A).toFixed(H));function u(A,H,M){return M===void 0&&(M=0),H?A:a(A!==""&&W()(Number(A))?Number(A):"",M)}const L=function(A,H){let{shiftKey:M,metaKey:C}=A;return H===void 0&&(H=1),M?H*10:C?H*100:H},B=A=>{let{currentTarget:H}=A;return setTimeout(()=>H.select(),50)};class D extends r.PureComponent{constructor(H){super(H),(0,l.A)(this,"setElemRef",M=>this.$title=M),(0,l.A)(this,"setLabelRef",M=>this.$label=M),(0,l.A)(this,"setInputRef",M=>this.$input=M),(0,l.A)(this,"onChange",M=>{const{target:{value:C}}=M,{isEditing:d}=this.state;!d&&this.setState({isEditing:!0});const y=C.trim();this.setValue(y,M)}),(0,l.A)(this,"correctNumber",M=>{const{value:C,min:d,max:y,precision:c,suffix:w,parser:j}=this.props,$=j(M,w),ee=a(Math.min(Math.max($,d),y),c);return isNaN(ee)?C:ee}),(0,l.A)(this,"checkValidity",M=>/^\+$/.test(M)?this.canBePositive:/^-$/.test(M)?this.canBeNegative:M===""||isFinite(M)&&this.correctNumber(M)===Number(M)),(0,l.A)(this,"setValue",(M,C,d)=>{C.persist&&C.persist(),this.setState({value:M},d)}),(0,l.A)(this,"setConfirmedValue",(M,C)=>this.setValue(M,C,()=>this.onConfirm(C))),(0,l.A)(this,"getConfirmValue",M=>{const{value:C,precision:d,shouldCorrectOnConfirm:y,onlyPreview:c,fontSize:w,fontFamily:j,isWRichText:$}=this.props,ee=this.checkValidity(M);if(this.props.isDisabled||this.props.disabled)return C;const ae=this.correctNumber(M),Ce=isNaN(ae)?C:ae;let Q=M===""?C:ee?/^[+-]$/.test(M)?0:c?Math.min(Math.max(Number(M),20),400):Number(M):ae===a(M,d)?ae:y?Ce:C||Ce;return(!ee||M==="")&&$&&(Q=(0,Z.qp)(j,w)),Q}),(0,l.A)(this,"onConfirm",M=>{const{attr:C,onConfirm:d}=this.props,{value:y}=this.state,c=this.getConfirmValue(y);return this.setState({value:c,isEditing:!1},()=>d(c,C,M,y))}),(0,l.A)(this,"focusOnInput",M=>{try{const C=M.currentTarget.closest("label").querySelector("input");setTimeout(()=>{C.focus()})}catch(C){console.error(C)}}),(0,l.A)(this,"onStep",async M=>{M.persist(),M.nativeEvent.stopPropagation(),this.handleBeforeChangeValue();const{parser:C,suffix:d}=this.props,{value:y}=this.state,c=C(y,d),{action:w}=M.currentTarget.dataset,j=L(M,this.props.step)*(w==="up"?1:-1);await this.focusOnInput(M),this.setConfirmedValue(this.correctNumber(c+j),M),Object.assign(this,{longPressedTimeout:setTimeout(()=>Object.assign(this,{steppingInterval:setInterval(()=>{const{parser:$,suffix:ee}=this.props,{value:q}=this.state,ae=$(q,ee);this.setConfirmedValue(this.correctNumber(ae+j),M)},v)}),b)})}),(0,l.A)(this,"onRelease",()=>{clearTimeout(this.longPressedTimeout),clearInterval(this.steppingInterval),this.handleAfterChangeValue()}),(0,l.A)(this,"onFocus",M=>{const{attr:C,dontSelectOnFocus:d,onFocus:y=d?void 0:B}=this.props;this.state.isActive||this.setActive(),y(M,C)}),(0,l.A)(this,"onKeyDown",M=>{const{key:C,currentTarget:d}=M,{disableKeyboardEvents:y}=this.props;if(y&&(C===T._.ArrowUp||C===T._.ArrowDown)){M.preventDefault();return}const c=C===T._.ArrowUp?"up":C===T._.ArrowDown?"down":C===T._.Enter?"enter":C===T._.Tab?"tab":null,w=d instanceof Element&&d.matches("input");if(c){if(M.persist&&M.persist(),c!=="tab"&&M.preventDefault(),w&&c==="tab")return this.setInactive(),this.setState({isEditing:!1}),this.onConfirm(M);if(w&&c==="enter"){M.stopPropagation(),this.onConfirm(M),this.setInactive(),this.setState({isEditing:!1}),this.$input.blur();return}if(w){const{parser:j,suffix:$}=this.props,{value:ee}=this.state,q=j(ee,$),ae=L(M,this.props.step)*(c==="up"?1:-1);this.handleBeforeChangeValue(),this.setState({isEditing:!1}),this.setConfirmedValue(this.correctNumber(q+ae),M)}}}),(0,l.A)(this,"setActive",()=>{this.setState({isActive:!0}),MB&&MB.f&&(MB.f.isInSetting=!0);const{withToolTip:M,onChangeTooltipsHover:C}=this.props;M&&(this.setState({showTooltip:!1}),C&&C(!1))}),(0,l.A)(this,"setInactive",()=>{this.setState({isActive:!1,isEditing:!1}),MB&&MB.f&&(MB.f.isInSetting=!1)}),(0,l.A)(this,"toggleMenu",()=>this.setState({isMenuOpen:!this.state.isMenuOpen})),(0,l.A)(this,"closeMenu",()=>this.setState({isMenuOpen:!1})),(0,l.A)(this,"onSelect",M=>{M.persist();const{attr:C,onConfirm:d}=this.props,{currentTarget:y}=M,{value:c}=y.dataset;this.setState({value:c,isEditing:!1},()=>d(c,C,M)),this.setInactive(),this.closeMenu()}),(0,l.A)(this,"onClickOutside",M=>{const{target:C}=M,{onClickOutside:d}=this.props;d&&!(d!=null&&d(M))||C.closest("label")&&this.$label.contains(C)||C.closest(".SelectOption")||(this.onConfirm(M),this.setInactive(),this.setState({isEditing:!1}))}),(0,l.A)(this,"onBlur",async M=>{await this.onConfirm(M),this.setState({isEditing:!1}),this.props.onBlur(M)}),(0,l.A)(this,"handleRectResize",M=>{M.stopPropagation();const{isDisabled:C,disabled:d,cursorSize:y,cursorDirection:c,onResizeMove:w,onResizeEnd:j,attr:$}=this.props;if(C||d)return;const{left:ee,right:q,top:ae,bottom:Ce}=this.$title.getBoundingClientRect();this.lastRecordedClientX=Number((y==="col-resize"?(ee+q)/2:(ae+Ce)/2).toFixed(0)),this.lastRecordedValue=Number(this.state.value),this.setState({isTitleActive:!0}),document.querySelector("html").classList.add("no-pointer-events",y),sdkStore.combineMergeMark("input-number-"+$),this.handleBeforeChangeValue();const Q=G=>{w&&w();const J=(y==="col-resize"?G.pageX:G.pageY)-this.lastRecordedClientX,oe=this.correctNumber(this.lastRecordedValue+(c?Number(J):-Number(J)));this.setConfirmedValue(oe,G)},R=()=>{j&&j(),this.setState({isTitleActive:!1}),document.querySelector("html").classList.remove("no-pointer-events",y),this.handleAfterChangeValue(),sdkStore.combineMerge("input-number-"+$),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",R)}),(0,l.A)(this,"handleChangeCursor",()=>{const{isDisabled:M,disabled:C}=this.props;M||C||this.setState({isCursor:!this.state.isCursor})}),(0,l.A)(this,"handleAfterChangeValue",()=>{const{onAfterChangeValue:M}=this.props;M()}),(0,l.A)(this,"handleBeforeChangeValue",()=>{const{onBeforeChangeValue:M}=this.props;M()}),(0,l.A)(this,"onInputNumberMouseEnter",M=>{const{onMouseEnter:C,withToolTip:d,onChangeTooltipsHover:y}=this.props;C(M),this.setState({mouseEntered:!0});const c=()=>this.setState({showTooltip:!0});d&&(y?y(!0,c):c())}),(0,l.A)(this,"onInputNumberMouseLeave",M=>{const{onMouseLeave:C,withToolTip:d,onChangeTooltipsHover:y}=this.props;C(M),this.setState({mouseEntered:!1}),d&&(this.setState({showTooltip:!1}),y&&y(!1))}),this.state={prevProps:this.props,value:u(this.props.value,this.props.isNotVerify,this.props.precision),isActive:!1,isMenuOpen:!1,isTitleActive:!1,isCursor:!1,isEditing:!1,showTooltip:!1,mouseEntered:!1},this.lastRecordedClientX=null,this.lastRecordedValue=u(this.props.value,this.props.isNotVerify,this.props.precision),this.toolTipNode=document.getElementById("IBOT_TOOLTIP_ROOT")}static getDerivedStateFromProps(H,M){let{prevProps:C,value:d}=M;return C.value!==H.value||C.isNotVerify!==H.isNotVerify||C.precision!==H.precision?{prevProps:H,value:u(H.value,H.isNotVerify,H.precision)}:null}componentDidMount(){this.props.isSelect&&(this.$input.select(),this.setState({isActive:!0}))}componentDidUpdate(H){!H.isSelect&&this.props.isSelect&&this.$input.select()}componentWillUnmount(){if(!this.props.unMountCallback||!this.state.isActive)return;const{value:H,attr:M,unMountCallback:C}=this.props,{value:d}=this.state,y=this.getConfirmValue(d);String(H)!==String(y)&&C&&C(y,M,new Event("dummy"),d)}get canBePositive(){return this.props.max>0}get canBeNegative(){return this.props.min<0}render(){const{inputClassName:H,menuClassName:M,className:C="",placeholder:d,title:y,rightTitle:c,cursorSize:w,suffix:j,actionButton:$,formatter:ee,optionList:q,canSlidingAdjustment:ae,readOnly:Ce,toolTipContent:Q,showCaretIcon:R,normalRight:G,isLongTimeHoverForInput:J=!1,onRenderArrow:oe}=this.props,{value:te,isActive:ve,isMenuOpen:pe,isTitleActive:be,isCursor:Ie,isEditing:ke,showTooltip:Re,mouseEntered:ze}=this.state,He=te,We=this.props.isDisabled||this.props.disabled,Ve=q&&q.length>0,Y=i()(C,"WorkspaceInputNumber",{"is-disabled":We,"is-active":ve&&!We,"is-menu-open":pe,"is-active-title":be,"can-sliding-adjustment":ae,"has-menu":Ve,"is-readOnly":Ce}),K=d,ie=String(te).split(".").join("").length-1,he=J?x.A:k.A;return(0,E.jsx)(he,{content:Q,direction:"down",children:(0,E.jsxs)(h,{className:Y,ref:this.setLabelRef,onMouseDown:Ve?void 0:this.setActive,onMouseEnter:this.onInputNumberMouseEnter,onMouseLeave:this.onInputNumberMouseLeave,valueLength:ie,children:[y&&(0,E.jsx)("span",{className:i()("title",{"title-cursor":Ie},w),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor,children:y}),(0,E.jsx)("input",{className:i()(H,{"text-align-right":G&&!ze&&!ve}),type:"text",value:ke?He:ee(He,j),placeholder:K,ref:this.setInputRef,disabled:We,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.handleAfterChangeValue,onMouseDown:Ve?this.setActive:void 0,onFocus:this.onFocus,onBlur:this.onBlur}),c&&(0,E.jsx)("span",{className:i()("title","left-title",{"title-cursor":Ie},w),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor,children:c}),$&&(0,E.jsx)(S,{hasMenu:Ve,onToggleMenu:this.toggleMenu,onStep:this.onStep,onRelease:this.onRelease,showCaretIcon:R,onRenderArrow:oe}),Ve&&pe&&(0,E.jsx)(U.V0,{isOpen:pe,menuClassName:i()("SelectNumberMenu",M),$select:this.$label,optionList:q,value:He,onChange:this.onSelect,onClose:this.closeMenu}),ve&&(0,E.jsx)(_.A,{target:document,onMouseDown:(0,_.t)(this.onClickOutside,{capture:!0})})]})})}}(0,l.A)(D,"defaultProps",{unstyled:!1,value:"",placeholder:"",cursorSize:"col-resize",inputClassName:"",menuClassName:"",cursorDirection:!0,step:1,isNotVerify:!1,formatter:(A,H)=>""+A+(H||""),parser:(A,H)=>{const M=A.toString();return H&&M.endsWith(H)?Number(M.slice(0,M.length-H.length)):Number(M)},min:0,max:1/0,isDisabled:!1,disabled:!1,readOnly:!1,actionButton:!0,isSelect:!1,onConfirm:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,onAfterChangeValue:()=>null,onBeforeChangeValue:()=>null,onBlur:()=>null,shouldCorrectOnConfirm:!0,precision:0,dontSelectOnFocus:!1,canSlidingAdjustment:!0,isLineHeight:!1,disableKeyboardEvents:!1});const S=(0,r.memo)(A=>{let{hasMenu:H,onToggleMenu:M,onStep:C,onRelease:d,showCaretIcon:y,onRenderArrow:c}=A;return(0,E.jsxs)(r.Fragment,{children:[c?c(M):H?(0,E.jsx)("div",{className:i()("action caret",{active:y}),children:(0,E.jsx)(P.Ay,{className:"no-transition",type:"text",tabIndex:"-1",onClick:M,children:(0,E.jsx)(f.C,{name:"common/expand@26"})})}):(0,E.jsxs)("div",{className:"action",children:[(0,E.jsx)(P.Ay,{className:"no-transition",type:"text",tabIndex:"-1","data-action":"up",onMouseDown:C,onMouseLeave:d,onMouseUp:d,children:(0,E.jsx)(f.C,{name:"general/triangle_up"})}),(0,E.jsx)(P.Ay,{className:"no-transition",type:"text",tabIndex:"-1","data-action":"down",onMouseDown:C,onMouseLeave:d,onMouseUp:d,children:(0,E.jsx)(f.C,{name:"general/triangle_down"})})]}),(0,E.jsx)(p,{})]})}),z=A=>(0,E.jsx)(D,{...A,isLongTimeHoverForInput:!0})},7501:(me,V,o)=>{"use strict";o.d(V,{Oi:()=>U,d2:()=>_,lP:()=>k,mq:()=>x,nE:()=>f,o3:()=>T,rH:()=>Z});var l=o(38502),r=o(69368),N=o(69173),i=o.n(N),I=o(74937),W=o.n(I);const P=9;function _(m){let{$opener:p,$menuBase:h,menuBaseStyle:E={},inflexible:b=!1,shouldSetMaxHeight:v=!1,$menuContainer:a,$fontTip:u}=m;if(!p||!h)return;const L=h.querySelector("*"),D=((0,r.$)("li[role=option].is-active",L)||(0,r.$)("li[role=option]",L)||(0,r.$)("li[role=empty-msg]",L)).getBoundingClientRect(),S=L.getBoundingClientRect(),z={styleFor$menuBase:{},styleFor$menu:{},styleFor$menuContainer:{},styleFor$fontTip:{}},A=te=>Object.assign(z.styleFor$menuBase,te),H=te=>Object.assign(z.styleFor$menu,te),M=te=>Object.assign(z.styleFor$menuContainer,te),C=te=>Object.assign(z.styleFor$fontTip,te),{offsetHeight:d}=L,y=E.width||p.offsetWidth,c=E.height||p.offsetHeight,w=p.getBoundingClientRect(),{top:j,bottom:$,left:ee}=Object.assign({top:w.top,right:w.right,bottom:w.bottom,left:w.left},E);A({top:j+"px",left:ee+"px",width:y+"px",height:c+"px"});const{innerHeight:q}=window,ae=10,Ce=q-10,Q=j+c;let R=0,G=0;const J=(D.top-S.top)/.8;O(S,D)?R=-Math.min(J,j):(G=D.bottom/.8-S.bottom/.8,R=-J+G);let oe=0;return u&&(oe=u.getBoundingClientRect().height),Q+d+P+R+oe<q?(z.isDownward=!0,O(S,D)?(M({top:R+"px"}),u&&C({top:R+S.height/.8+"px",width:S.width/.8+"px"})):(M({top:R+"px"}),a.scrollTop=G,u&&C({top:R+S.height/.8+"px",width:S.width/.8+"px"})),v&&$+d>Ce&&H({maxHeight:Ce-$+"px"})):(z.isDownward=!1,v&&j-d<ae&&H({maxHeight:j-ae+"px"})),Object.assign(h.style,z.styleFor$menuBase),Object.assign(L.style,z.styleFor$menu),Object.assign(a.style,z.styleFor$menuContainer),u&&Object.assign(u.style,z.styleFor$fontTip),z}function U(m,p){return W()(m)||i()(m)||(0,l.isValidElement)(m)?m:m[p||"label"]?m[p||"label"]:void 0}function f(m){return W()(m)||i()(m)?String(m):m.value||m.label?String(m.value||m.label):void 0}function x(m){return W()(m)||i()(m)?String(m):m.ItemIcon?String(m.ItemIcon):void 0}function k(m){return W()(m)||i()(m)?String(m):m.shortcutKey?String(m.shortcutKey):void 0}function T(m,p){return!!p&&f(m)===String(p)}const Z='<svg width="10" height="10" ><path d="M5 5.255l1.87-2.043a.623.623 0 0 1 .936 0 .77.77 0 0 1 0 1.022L5.468 6.788a.623.623 0 0 1-.936 0L2.194 4.234a.77.77 0 0 1 0-1.022.623.623 0 0 1 .935 0L5 5.255z" /></svg>';function O(m,p){return p.top/.8>=m.top/.8&&p.bottom/.8<=m.bottom/.8}},9025:function(me){(function(V,o){me.exports=o()})(this,function(){"use strict";return function(V,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})},13076:function(me){(function(V,o){me.exports=o()})(this,function(){"use strict";return function(V,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})},15207:(me,V,o)=>{"use strict";o.d(V,{T:()=>I,f:()=>W});var l=o(38502),r=o(86964),N=o(68818),i=o(72214);const I=/^(15|477)$/.test(o.j)?null:(0,l.memo)(P=>(0,i.jsx)(r.T3,{...P,isHtmlZip:(0,N.FM)()})),W=(0,l.memo)(P=>(0,i.jsx)(r.cx,{...P,isHtmlZip:(0,N.FM)()}))},16335:(me,V,o)=>{"use strict";if(o.d(V,{$r:()=>Z,$z:()=>f,Aq:()=>O,Cp:()=>h,GH:()=>C,Jv:()=>v,PJ:()=>L,Uy:()=>T,V:()=>A,Wu:()=>_,X:()=>k,YC:()=>B,Yk:()=>x,ZF:()=>b,a3:()=>U,iS:()=>M,je:()=>a,q3:()=>z,rd:()=>E,rq:()=>H}),o.j!=15)var l=o(19249);var r=o(18833),N=o(47946),i=o(79287),I=o.n(i);if(!/^(15|477)$/.test(o.j))var W=o(3862);const P=300,_=async function(d){d===void 0&&(d="");const y=1;let c=[];try{const w=await(0,l.Yo)("/api/community/v1/workspace/my_star?page="+y+(d&&"&category="+d)+"&page_size="+P);w&&(c=w==null?void 0:w.market_templates.filter(j=>(j==null?void 0:j.version)!=="v1"))}catch(w){(0,r.$r)()}return c.map(w=>({...w,is_star:!0}))},U=async d=>{await(0,l.Ds)("/api/community/v1/market_template/star/"+d)},f=async d=>{await(0,l.DW)("/api/community/v1/market_template/star/"+d)},x=async function(d,y){y===void 0&&(y=!0);let c;try{d!=null&&d.length&&(c=await(0,l.DE)("/api/community/v1/market_template/"+d))}catch(w){y&&(0,r.ai)(w)}return c},k=function(d){return d===void 0&&(d=""),(0,l.rh)("/api/community/v1/market_template?is_from_workspace=true&page="+1+d+"&page_size="+P)},T=async()=>{let d;try{d=await(0,l.DE)("/flpak/ww-p2recent")}catch(y){(0,r.$r)()}return d},Z=async()=>{try{return await(0,l.DE)("/mb-proto2/mk_2512/json/hot_icons.json")}catch(d){(0,r.$r)()}},O=async()=>{try{return await(0,l.DE)("/mb-proto2/mk_2512/json/hot_color_icons.json")}catch(d){(0,r.$r)()}},m=d=>{let{category:y="combo_group",keyword:c=""}=d;return fetchGetJSON("/api/community/v1/es/basic_resource/search_"+y+"?q="+encodeURIComponent(c))},p={screen_list:"screen",combo_group:"combo",icon_group:"icon",user_combo:"user_combo",file:"proto"},h=d=>{let{projectUpperType:y="",projectUpperCid:c="",itemCid:w=""}=d;const j=y==="file"?{project_upper_type:p[y]||y,project_upper_cid:c}:{project_upper_type:p[y]||y,project_upper_cid:c,item_cid:w};return(0,l.Ds)("/api/community/v1/recent_template",j)},E=async d=>{const{sdkStore:y}=await(0,N.O3)({flpakKey:d});return y},b=async function(d){d===void 0&&(d="mobile");try{const y=ENV.IS_ON_PREMISES?"/mb-proto2/mk_2512/json/new_page_types_"+d+".json":"/api/market_template/v4/workspace/new_page_types?platform="+d;return(await(0,l.DE)(y)).types}catch(y){return console.error(y),[]}},v=async function(d){d===void 0&&(d="mobile");try{return await(0,l.DE)("/api/community/v1/workspace/recommend_page?platform="+d)}catch(y){return(0,r.$r)({onClick:c=>c({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformType:d,isReRequest:!0}})}),{}}},a=async d=>{let{platform:y,firstTypeCid:c,secondTypeCid:w=null,isPopup:j=!1}=d;const $={first_type_cid:c,second_type_cid:w,platform:y,is_popup:j};let ee=new URLSearchParams;if(ee=Object.assign(ee,$),ENV.IS_ON_PREMISES)return await u(c);for(const[q,ae]of Object.entries(ee))ae?ae==="default"?ee.delete(q):ee.set(q,ae):ee.delete(q),q==="is_popup"&&ae===!1&&ee.delete(q);try{return await(0,l.DE)("/flpak/ww-p2pagemkt?"+ee.toString())}catch(q){return(0,r.$r)({onClick:ae=>ae({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformType:y,isReRequest:!0}})}),{}}},u=async d=>{const{market_template:y,project_metas:[c]}=await x(d,!1),w=await(0,l.DE)("/flpak/ww-p2meta/"+c.cid),j={};return w.forEach($=>{j[$[0]]=$}),{marketTemplates:[{...y,project_meta_cid:c.cid}],p2mMMap:{[c.cid]:w}}},L=async()=>{try{const{color_icon_groups:d}=await(0,l.DE)("/api/community/v1/color_icon_groups");return d&&d.length>0?d.reduce((y,c)=>(y[c.source_upper_cid]=c,y),{}):{}}catch(d){return(0,r.$r)(),{}}},B=async(d,y)=>{let c=[];try{var w;const Q=await(0,l.DE)("/api/community/v1/market_template/star_list?user_cid="+MB.user.cid);if(Q&&(Q==null||(w=Q.market_templates)==null?void 0:w.length)>0&&(c=[...Q==null?void 0:Q.market_templates.filter(R=>(R==null?void 0:R.version)!=="v1"&&(d===W.t_?!(y!=null&&y.has(R.cid)):!0)&&(R==null?void 0:R.category)===d).map(R=>({...R,is_star:!0}))]),d!==W.C){var j,$,ee,q;const R=(j=MB.getRootProject())!=null&&j.is_org_project?($=MB)==null||($=$.currentOrg)==null?void 0:$.cid:"";let G=[];try{G=R?await(0,l.DE)("/api/web/v3/market_template/mt_vip/org_used_vip_templates?org_cid="+R):await(0,l.DE)("/api/web/v3/market_template/mt_vip/used_vip_templates")}catch(oe){}const J=await(0,l.DE)("/api/community/v1/community/purchased");if(G&&((ee=G)==null||(ee=ee.market_templates)==null?void 0:ee.length)>0){var ae;const oe=(ae=G)==null||(ae=ae.market_templates)==null?void 0:ae.sort((te,ve)=>I()(ve.date_month).valueOf()-I()(te.date_month).valueOf());c=[...c.map(te=>{const ve=oe.find(pe=>pe.cid===te.cid);return ve?{...te,is_purchased:!0,download_expired:I()(ve.date_month).format("YYYY-MM")!==I()().format("YYYY-MM")}:{...te}}),...oe==null?void 0:oe.map(te=>({...te,umt_created_at:te.created_at,is_purchased:!0,download_expired:I()(te.date_month).format("YYYY-MM")!==I()().format("YYYY-MM")})).filter(te=>te.category===d&&c.findIndex(ve=>ve.cid===te.cid)===-1)]}if(J&&(J==null||(q=J.market_templates)==null?void 0:q.length)>0){var Ce;c=[...c.map(oe=>(J==null?void 0:J.market_templates.find(ve=>ve.cid===oe.cid))?{...oe,is_purchased:!0}:{...oe}),...J==null||(Ce=J.market_templates)==null?void 0:Ce.map(oe=>({...oe,umt_created_at:oe.created_at,is_purchased:!0})).filter(oe=>oe.category===d&&c.findIndex(te=>te.cid===oe.cid)===-1)]}}}catch(Q){(0,r.FY)(Q)}return c.sort((Q,R)=>new Date(R==null?void 0:R.umt_created_at).getTime()-new Date(Q==null?void 0:Q.umt_created_at).getTime())},D="/api/community/v1/market_template/star/:cid",S="/api/community/v1/market_template/like/:cid",z=d=>{try{return(0,l.Ds)(S.replace(":cid",d),{})}catch(y){console.log(y)}},A=async d=>{try{return(0,l.DW)(S.replace(":cid",d))}catch(y){console.log(y)}},H=d=>{try{return(0,l.Ds)(D.replace(":cid",d),{})}catch(y){console.log(y)}},M=d=>{try{return(0,l.DW)(D.replace(":cid",d))}catch(y){console.log(y)}},C=async(d,y)=>{try{const c=ENV.IS_ON_PREMISES?"/mb-proto2/mk_2512/json/new_combo_group_types_v2_"+y+".json":"/api/market_template/v4/workspace/new_combo_group_types?version="+d+"&platform="+y,w=await(0,l.DE)(c);return w!=null&&w.types?w==null?void 0:w.types:[]}catch(c){return[]}}},16615:(me,V,o)=>{"use strict";o.d(V,{qk:()=>m,I2:()=>T,ZI:()=>Z});const l={set:function(p,h,E,b){b===void 0&&(b="/");let v="";if(v+=p+"="+encodeURIComponent(h),b&&(v+=";path="+b),E){const a=new Date;a&&(a.setTime(a.getTime()+E*1e3),v+=";expires="+a.toUTCString())}document.cookie=v},get:function(p){const h=document.cookie.split(";");let E="";for(let b=0;b<h.length;b++){const v=h[b].indexOf(p);if(v!==-1){E=h[b].substring(v+p.length+1,h[b].length);break}}return E}},r=function(p,h){if(p!=="visit")return;const E="visit_id",b=60*24*3600;return l.set(E,h,b,"/"),h},N=function(){const p=l.get("visit_id");if(p&&p!="")return p;const h=new Date,E=h.getFullYear().toString().substr(2,2),b=h.getMonth()+1,v=h.getDate(),a=h.getHours(),u=h.getMinutes(),L=h.getSeconds(),B=h.getMilliseconds();let D=Math.round(Math.random()*Math.random()*1e4).toString();const S=D.length;S===1?D=D+"000":S===2?D=D+"00":S===3&&(D=D+"0");let z="2_"+E;return z+=b<10?"0"+b:b,z+=v<10?"0"+v:v,z+=a<10?"0"+a:a,z+=u<10?"0"+u:u,z+=L<10?"0"+L:L,B<10?z+="00"+B:B<100?z+="0"+B:z+=B,z+="_"+D,r("visit",z),z};var i=function(p){return p.WWW="www",p.WWW_TEST="www-test",p.OVERSEA="oversea",p.OVERSEA_TEST="oversea-test",p}(i||{});const I={www:"https://sc.bosyun.cn","www-test":"https://sc.bosyun.cn",oversea:"https://sc.bosyun.net","oversea-test":"https://sc.bosyun.net"},W="MD_",P="modao",_=()=>{let p=i.WWW;return/^([a-z0-9]+\.)*mockitt\.com$/.test(location.host)&&(p=i.OVERSEA),p},U=()=>{const p=window.sensorsDataAnalytic201505;if(!p)return;const h=_();p.init({name:"sensors",server_url:I[h]+"/sa.gif?project=production",is_track_single_page:!1,use_client_time:!0,show_log:!1,send_type:"beacon",heatmap:{clickmap:"not_collect",scroll_notice_map:"not_collect"}}),p.identify(N(),!0),p.registerPage({product:P}),window.sensors=p},f=function(p){var h;if(window.sensors){p=""+W+p;for(var E=arguments.length,b=new Array(E>1?E-1:0),v=1;v<E;v++)b[v-1]=arguments[v];(h=window.sensors)==null||h.track(p,...b)}},x=function(){return window.sensors&&window.sensors.setOnceProfile(...arguments)},k=function(){return window.sensors&&window.sensors.setProfile(...arguments)},T=ENV.NO_TRACK?()=>{}:U,Z=ENV.NO_TRACK?()=>{}:f,O=ENV.NO_TRACK?()=>{}:x,m=ENV.IS_MO?p=>{if(!window.gtag)return console.error("gtag is not a function");window.gtag("config","UA-4839360-64",{user_id:p,transport_type:"beacon"})}:()=>{}},18833:(me,V,o)=>{"use strict";o.d(V,{$r:()=>f,AG:()=>W,FY:()=>I,K7:()=>U,ai:()=>P,m0:()=>_});var l=o(19249),r=o(87612),N=o(88856),i=o(78042);const I=async(x,k)=>{if((0,r.p)("[alertAsyncBlocked]",x,{url:x.url,status:x.status}),x.status===403||/403/.test(x.message)){var T;(T=MB)==null||(T=T.messageBucket)==null||T.send("mobileLoadProjectError",{errMsg:I18N.dPages.cant_edit_desc}),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc}).then(()=>k?k():MB.global.onBackButtonClick())}else if(x.status===401||/401/.test(x.message))U(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>k?k():W());else{var Z;const O=String(x.status||x.message||"UNKNOWN").replace(/\s/g,"").slice(0,16);(Z=MB)==null||(Z=Z.messageBucket)==null||Z.send("mobileLoadProjectError",{errMsg:window.I18N.dModule.unknown_error.replace(/%s/i,O)}),await MB.global.popupHelper.alertAsyncBlocked({desc:window.I18N.dModule.unknown_error.replace(/%s/i,O),isHTML:!0})}},W=async()=>{try{await(0,l.DE)("/api/web/v3/initial"),location.reload()}catch(x){const k=location.origin+"/signin?next="+location.pathname;location.href=k}},P=x=>{x.status===404&&x.error_type==="MT_NOT_FOUND"&&MB.notice({text:I18N.dModals.template_no_available,type:"error"})},_=async(x,k)=>{x.status===403||/403/.test(x.message)?k():(x.status===401||/401/.test(x.message))&&await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>W())},U=()=>{(0,i.A)(JSON.stringify({sharingMessage:"sharing:loginInvalid"}),"*")},f=function(x){let{onClick:k}=x===void 0?{}:x;k&&!ENV.IS_MO?MB.notice({text:window.I18N.dModule.network_api_error_1,CustomChildComponent:(0,N.DV)({onClick:k}),type:"error",duration:5e3}):MB.notice({text:window.I18N.dModule.network_api_error,type:"error"})}},18941:(me,V,o)=>{"use strict";o.d(V,{A:()=>r});var l=o(22756);function r(N,i){N.prototype=Object.create(i.prototype),N.prototype.constructor=N,(0,l.A)(N,i)}},21066:(me,V,o)=>{"use strict";o.d(V,{m:()=>$,cG:()=>Ce,Dr:()=>ee,aM:()=>q,Ay:()=>j});var l=o(25582),r=o.n(l),N=o(38502),i=o(69623),I=o(67787),W=o(53732),P=o.n(W),_=o(51582);class U{constructor(R,G){R===void 0&&(R=0),G===void 0&&(G=0),this.x=R,this.y=G}inside(R){const{left:G,right:J,top:oe,bottom:te}=R;return this.x>=G&&this.x<=J&&this.y>=oe&&this.y<=te}}const f=(0,N.createContext)(""),x=Q=>{if(!Q)return;const R=Q.getBoundingClientRect(),G=Q.classList.contains("sub-menu"),J=1/.8,oe=1/(.8*.9);if(G){const ve=document.getElementById("root-menu").getBoundingClientRect();ve.top+(R.top-ve.top)*J+R.height*oe>window.innerHeight-28&&Q.classList.add("top"),ve.left+(R.left-ve.left)*J+R.width*oe>window.innerWidth&&Q.classList.add("left");return}if(R.left+R.width*J>window.innerWidth-28&&Q.classList.add("left"),R.height>window.innerHeight){Q.style.height=window.innerHeight+"px",Q.style.overflow="auto",Q.style.overflowX="hidden",Q.style.marginTop=-R.top+"px";return}R.top+R.height<window.innerHeight||(Q.style.marginTop=window.innerHeight-(R.top+R.height)+"px")},k=function(Q,R,G,J,oe,te){let{subMenuLeftOffset:ve,subMenuTopOffset:pe}=oe;if(te===void 0&&(te=!1),!Q||!R)return;const be=R.getBoundingClientRect(),Ie=R.getBoundingClientRect(),ke=1/.9,{left:Re,top:ze}=G;be.top+be.height*ke>window.innerHeight-28?be.top-be.height*ke>0?(Q.style.bottom="-4px",Q.style.top="unset"):Q.style.marginTop=window.innerHeight-28-(be.top+be.height*ke)+"px":Q.style.top=be.top-ze-11+"px",be.left+be.width*ke>window.innerWidth?(Q.style.right=be.left+"px",Q.style.left="unset"):Q.style.left=be.right-Re-1+12*te+"px",J==="left"&&(Q.style.left=-2*be.width-12-22*te+"px"),ve&&(Q.style.left=parseInt(Q.style.left)+ve+4*te+"px"),pe&&(Q.style.top=parseInt(Q.style.top)+pe+"px"),Q.style.maxHeight=window.innerHeight-Ie.top+"px"},T=function(Q,R,G,J,oe,te,ve){let{subMenuLeftOffset:pe,subMenuTopOffset:be}=oe;if(te===void 0&&(te=!1),!Q||!R)return;const Ie=ve.getBoundingClientRect(),ke=R.getBoundingClientRect(),Re=R.getBoundingClientRect(),{left:ze,top:He}=G,{top:We}=Ie;Q.style.top=ke.top-We-11+"px",Q.style.left=ke.right-ze-1+12*te+"px",J==="left"&&(Q.style.left=-2*ke.width-12-22*te+"px"),pe&&(Q.style.left=parseInt(Q.style.left)+pe+4*te+"px"),Q.style.maxHeight=window.innerHeight-Re.top+"px"},Z=(Q,R)=>{let{x:G,y:J}=Q,oe=!1;for(let te=0,ve=R.length-1;te<R.length;ve=te++){let{x:pe,y:be}=R[te],{x:Ie,y:ke}=R[ve];be>J!=ke>J&&G<(Ie-pe)*(J-be)/(ke-be)+pe&&(oe=!oe)}return oe};var O=o(60719);const m=(0,I.AH)(["background:#333;box-shadow:0 2px 8px rgba(0,0,0,0.3);border-radius:4px;color:#fff;border:1px solid #454647;"]),p=I.Ay.div.withConfig({displayName:"styles__StyledMask",componentId:"sc-h83js-0"})(["position:fixed;top:0;left:0;right:0;width:100vw;height:100vh;z-index:199;"]),h=I.Ay.div.withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-h83js-1"})(["position:fixed;z-index:200;&.size-small > ul{min-width:120px;}ul{list-style:none;}& > ul{position:absolute;top:0;left:0;padding:8px 0;min-width:200px;margin:0;",";&.top{top:initial !important;bottom:-8px;}&.left{left:initial;right:100%;}&.top.left{}&::-webkit-scrollbar{display:block;width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.25);border-radius:4px;&:hover{background-color:rgba(255,255,255,0.30);}}}"],m),E=I.Ay.ul.withConfig({displayName:"styles__StyledSubMenu",componentId:"sc-h83js-2"})(["position:absolute;min-width:200px;max-height:500px;padding:4px 0;",";opacity:0;pointer-events:none;overflow-x:hidden;margin:0;&:lang(ja){min-width:260px;}&.is-show{opacity:1;pointer-events:auto;}&.inner-sub{overflow-x:unset;}&.is-normal{li.MenuItem{& > a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}}&.is-airy{li.MenuItem{& > a{padding-left:29px;}&.hasIcon{> a{padding-left:12px;}}}}"],m),b=I.Ay.li.withConfig({displayName:"styles__StyledMenuItem",componentId:"sc-h83js-3"})(["position:relative;a{height:28px;padding-left:16px;display:flex;align-items:center;color:#fff;padding-right:10px;& > span{margin-right:0;display:flex;justifyContent:flex-end;flex:1;alignItems:center;.text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:20px;}}& > span{white-space:nowrap;margin-right:16px;.invisible{width:20px;height:20px;display:inline-block;color:",";margin-top:-3px;}}.selected-icon{width:8px;margin-right:9px;}.right-arrow{margin-left:auto;margin-right:-4px;display:flex;align-items:center;}img{width:14px;height:14px;opacity:0.8;margin-right:7px;}.fa-caret-right,.shortcut{margin-left:auto;width:12px;text-align:center;margin-right:-2px;}.shortcut{display:flex;align-items:center;color:#999;.mac{font-size:16px;margin-right:2px;}}.shortfont{display:flex;margin-left:auto;kbd{display:inline-block;text-align:center;min-width:12px;color:rgba(255,255,255,0.7);font-family:Inter;&.key-cmd{width:13px;text-align:right;}&:first-child{margin-left:0;}&:last-child{margin-right:0;}}}}&.hasDivider{a{margin-bottom:4px;}}&:not(.disabled).active{a{background:#666;}}&.disabled{*{cursor:not-allowed;}a{color:rgba(255,255,255,0.22);.right-arrow svg > path{fill:rgba(255,255,255,0.22);}.shortfont kbd{color:rgba(255,255,255,0.22);}}}"],O.f.color_text_L2.value_dark),v=I.Ay.li.withConfig({displayName:"styles__StyledMenuItemFont",componentId:"sc-h83js-4"})(["position:relative;a{height:28px;display:flex;align-items:center;color:#fff;& > span{margin-right:0;display:flex;justifyContent:flex-end;flex:1;alignItems:center;&.text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:20px;}&.is-svg{height:14px;}}& > span{white-space:nowrap;margin-left:20px;}.selected-icon{width:16px;position:absolute;}.right-arrow{margin-right:8px;display:flex;align-items:center;}img{width:14px;height:14px;opacity:0.8;margin-right:7px;}.fa-caret-right,.shortcut{margin-left:auto;width:12px;text-align:center;margin-right:-2px;}}&:not(.disabled).active{a{background:#666;}}"]);var a=o(72214);function u(Q,R,G){return(R=L(R))in Q?Object.defineProperty(Q,R,{value:G,enumerable:!0,configurable:!0,writable:!0}):Q[R]=G,Q}function L(Q){var R=B(Q,"string");return typeof R=="symbol"?R:R+""}function B(Q,R){if(typeof Q!="object"||!Q)return Q;var G=Q[Symbol.toPrimitive];if(G!==void 0){var J=G.call(Q,R||"default");if(typeof J!="object")return J;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(Q)}const D=(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.5 5.04031L5.5 10.9597C5.5 11.3789 5.98497 11.612 6.31235 11.3501L10.012 8.39043C10.2622 8.19027 10.2622 7.80973 10.012 7.60957L6.31235 4.64988C5.98497 4.38797 5.5 4.62106 5.5 5.04031Z",fill:"white",fillOpacity:"0.9"})}),S="M1016 416L1016 -1856L328 -1856L328 416ZM512 -320L832 -320L832 -64L512 -64ZM512 -704L576 -704L576 -512L768 -512L768 -640L704 -640L704 -576L640 -576L640 -704L832 -704L832 -448L512 -448ZM512 192L728 64L512 64L512 0L832 0L832 65L617 192L832 192L832 256L512 256ZM512 -1408L704 -1408L704 -1248L832 -1248L832 -1184L512 -1184ZM512 -1536L624 -1536L624 -1632L512 -1632L512 -1696L832 -1696L832 -1632L688 -1632L688 -1536L832 -1536L832 -1472L512 -1472ZM512 -960L640 -960L640 -1056L512 -1056L512 -1120L832 -1120L832 -1056L704 -1056L704 -896L512 -896ZM512 -832L768 -832L768 -992L832 -992L832 -768L512 -768ZM768 -128L768 -256L576 -256L576 -128ZM640 -1248L640 -1344L576 -1344L576 -1248Z",z="M800 -800L800 -1240L1240 -1240L1240 -800Z",A="M860 416L172 416L548 -1856L1236 -1856ZM478 -320L436 -64L756 -64L798 -320ZM542 -704L499 -448L819 -448L862 -704L670 -704L648 -576L712 -576L723 -640L787 -640L766 -512L574 -512L606 -704ZM393 192L383 256L703 256L713 192L498 192L734 65L745 0L425 0L414 64L630 64ZM658 -1408L621 -1184L941 -1184L952 -1248L824 -1248L850 -1408ZM679 -1536L669 -1472L989 -1472L999 -1536L855 -1536L871 -1632L1015 -1632L1026 -1696L706 -1696L695 -1632L807 -1632L791 -1536ZM584 -960L573 -896L765 -896L792 -1056L920 -1056L930 -1120L610 -1120L600 -1056L728 -1056L712 -960ZM563 -832L552 -768L872 -768L909 -992L845 -992L819 -832ZM702 -128L510 -128L531 -256L723 -256ZM760 -1248L696 -1248L711 -1344L775 -1344Z",H="M1016 416L328 416L328 -1856L1016 -1856ZM512 -320L512 -64L832 -64L832 -320ZM512 -704L512 -448L832 -448L832 -704L640 -704L640 -576L704 -576L704 -640L768 -640L768 -512L576 -512L576 -704ZM512 192L512 256L832 256L832 192L617 192L832 65L832 0L512 0L512 64L728 64ZM512 -1408L512 -1184L832 -1184L832 -1248L704 -1248L704 -1408ZM512 -1536L512 -1472L832 -1472L832 -1536L688 -1536L688 -1632L832 -1632L832 -1696L512 -1696L512 -1632L624 -1632L624 -1536ZM512 -960L512 -896L704 -896L704 -1056L832 -1056L832 -1120L512 -1120L512 -1056L640 -1056L640 -960ZM512 -832L512 -768L832 -768L832 -992L768 -992L768 -832ZM768 -128L576 -128L576 -256L768 -256ZM640 -1248L576 -1248L576 -1344L640 -1344Z",M=3;let C=[],d=!1;const y=new Map,c=Q=>{C.push(Q),C.length>M&&C.shift()},w=Q=>{Q.ctrlKey===!0&&Q.preventDefault()};class j extends N.PureComponent{constructor(R){super(R),u(this,"setMenuRef",G=>this.$menu=G),u(this,"createContextMenuRef",G=>this.$mountRoot=G),u(this,"mousewheelHandle",G=>{const J=G.deltaX||G.wheelDeltaX;if(!J||!this.$elem)return;const oe=this.$elem.scrollLeft+this.$elem.offsetWidth===this.$elem.scrollWidth&&J>0,te=this.$elem.scrollLeft===0&&J<0;(oe||te)&&G.preventDefault()}),u(this,"handleClose",G=>{const{onClose:J}=this.props;J&&J(G)}),u(this,"handleCloseMouse",G=>{G.button===2&&this.handleClose(G)}),u(this,"handleClickMenu",G=>{const{alwaysOpen:J}=this.props;J||this.handleClose(G)}),u(this,"handleUpdateState",G=>this.setState({...G})),this.$elem=document.createElement("div"),this.state={activePath:[],showSubMenu:!1}}componentDidMount(){document.body.appendChild(this.$elem),!this.props.style&&x(this.$menu),this.$elem&&this.$elem.addEventListener("mousewheel",this.mousewheelHandle),this.$elem&&this.$elem.addEventListener("wheel",w)}componentWillUnmount(){this.$elem&&this.$elem.removeEventListener("mousewheel",this.mousewheelHandle,{capture:!0}),this.$elem&&this.$elem.removeEventListener("wheel",w,{capture:!0}),C=[],d=!1,this.$elem&&document.body.contains(this.$elem)&&document.body.removeChild(this.$elem)}preventDefault(R){R.preventDefault()}render(){const{position:R,children:G,className:J,style:oe={}}=this.props,{top:te,left:ve}=R,{activePath:pe,showSubMenu:be}=this.state;return(0,i.createPortal)((0,a.jsx)(p,{className:"context-menu-mask",onMouseDown:this.handleClose,onClick:this.handleClickMenu,children:(0,a.jsx)(h,{ref:this.createContextMenuRef,style:{top:te+2,left:ve+2,...oe},className:J,onContextMenu:this.preventDefault,children:(0,a.jsx)("ul",{ref:this.setMenuRef,children:(0,a.jsx)(f.Provider,{value:{mountRoot:this.$mountRoot,contextMenuPosition:R,activePath:pe,showSubMenu:be,onUpdateState:this.handleUpdateState},children:G})})})}),this.$elem)}}u(j,"propTypes",{className:r().string,position:r().object,children:r().oneOfType([r().element,r().array]),style:r().object,onClose:r().func,alwaysOpen:r().bool});class $ extends N.PureComponent{constructor(R){super(R),u(this,"setMenuRef",G=>this.$menu=G),u(this,"createContextMenuRef",G=>this.$mountRoot=G),u(this,"mousewheelHandle",G=>{const J=G.deltaX||G.wheelDeltaX;if(!J||!this.$elem)return;const oe=this.$elem.scrollLeft+this.$elem.offsetWidth===this.$elem.scrollWidth&&J>0,te=this.$elem.scrollLeft===0&&J<0;(oe||te)&&G.preventDefault()}),u(this,"handleClose",G=>{const{onClose:J}=this.props;J&&J(G)}),u(this,"handleCloseMouse",G=>{G.button===2&&this.handleClose(G)}),u(this,"handleClickMenu",G=>{const{alwaysOpen:J}=this.props;J||this.handleClose(G)}),u(this,"handleUpdateState",G=>this.setState({...G})),this.$elem=document.createElement("div"),this.state={activePath:[],showSubMenu:!1}}componentDidMount(){document.body.appendChild(this.$elem),this.$elem&&this.$elem.addEventListener("mousewheel",this.mousewheelHandle)}componentWillUnmount(){this.$elem&&this.$elem.removeEventListener("mousewheel",this.mousewheelHandle,{capture:!0}),C=[],d=!1,this.$elem&&document.body.contains(this.$elem)&&document.body.removeChild(this.$elem)}preventDefault(R){R.preventDefault()}render(){const{position:R,children:G,className:J,style:oe={}}=this.props,{top:te,left:ve}=R,{activePath:pe,showSubMenu:be}=this.state;return(0,a.jsx)(h,{ref:this.createContextMenuRef,style:{top:te+2,left:ve+2,...oe},className:J,onContextMenu:this.preventDefault,children:(0,a.jsx)("ul",{ref:this.setMenuRef,children:(0,a.jsx)(f.Provider,{value:{mountRoot:this.$mountRoot,contextMenuPosition:R,activePath:pe,showSubMenu:be,onUpdateState:this.handleUpdateState,containerRef:this.$elem,isEmbed:!0},children:G})})})}}u($,"propTypes",{className:r().string,position:r().object,children:r().oneOfType([r().element,r().array]),style:r().object,onClose:r().func,alwaysOpen:r().bool});class ee extends N.PureComponent{constructor(){super(...arguments),u(this,"createMenuItemRef",R=>this.$menuItemRef=R),u(this,"createSubMenuRef",R=>this.$subMenuRef=R),u(this,"handleActiveItem",(R,G)=>{const{children:J}=this.props;G({activePath:R,showSubMenu:!!J})}),u(this,"handleMouseEnter",(R,G,J)=>{const{onMouseEnter:oe}=this.props;oe&&oe(R),d?setTimeout(()=>{if(this.$menuItemRef&&C.length>0){const te=this.$menuItemRef.getBoundingClientRect();C.slice(-1)[0].inside(te)&&this.handleActiveItem(G,J)}},200):this.handleActiveItem(G,J)}),u(this,"handleMouseLeave",async(R,G,J,oe)=>{const{onMouseLeave:te}=this.props;if(te&&te(R),J&&this.$subMenuRef){const ve=this.$subMenuRef.getBoundingClientRect();if(ve&&C.length>0){const{left:pe,top:be,bottom:Ie}=ve,ke=new U(pe,be),Re=new U(pe,Ie),ze=[C[0],ke,Re],He=new U(R.clientX,R.clientY);if(Z(He,ze)){d=!0;return}}}if(G){oe({activePath:G.dataset.index.split(","),showSubMenu:!0}),d=!1;return}oe({activePath:[],showSubMenu:!1}),d=!1}),u(this,"handleMouseMove",R=>{const G=new U(R.clientX,R.clientY);c(G)}),u(this,"handleMouseDown",R=>R.stopPropagation()),u(this,"handleGetCanActiveSubMenu",(R,G,J)=>{let oe=!1;return G&&(R&&G.join("")===J.join("")||G.slice(0,J.length).join("")===J.join(""))&&(oe=!0),oe}),u(this,"handleGetPath",R=>{const{dataIndex:G,text:J}=this.props,oe=G!==void 0?G:J;return R?R.dataset.index.split(",").concat(oe):[oe]}),u(this,"handleClick",R=>{const{disabled:G,onClick:J,canClick:oe,children:te}=this.props;(oe||!G)&&J&&J(R),(te||G)&&R.stopPropagation()})}render(){const{icon:R,text:G,children:J,disabled:oe,hotKeyText:te,className:ve,dataType:pe,subMenuClassName:be,subMenuDirection:Ie,subMenuLeftOffset:ke,subMenuTopOffset:Re,isVisible:ze,isAiry:He=!1}=this.props;return(0,a.jsx)(f.Consumer,{children:We=>{const{contextMenuPosition:Ve,mountRoot:Y,activePath:K,showSubMenu:ie,parentRef:he,onUpdateState:Me,isEmbed:je=!1}=We,Ke=this.handleGetPath(he),st=this.handleGetCanActiveSubMenu(ie,K,Ke);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{ref:this.createMenuItemRef,className:P()("MenuItem",{disabled:oe,hasIcon:R},ve,{active:st}),"data-type":pe,"data-index":Ke,onMouseEnter:et=>this.handleMouseEnter(et,Ke,Me),onMouseLeave:et=>this.handleMouseLeave(et,he,ie,Me),onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onClick:this.handleClick,children:(0,a.jsxs)("a",{children:[R,(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"text",children:G}),ze?(0,a.jsx)(_.A,{className:"invisible",name:"eyeinvisible"}):null]}),J&&(0,a.jsx)("div",{className:"right-arrow",children:D}),te&&te.length>0&&(0,a.jsx)("div",{className:"shortfont",children:te.map((et,lt)=>(0,a.jsx)("kbd",{children:et},lt))})]})}),J&&st&&!oe&&(0,i.createPortal)((0,a.jsx)(ae,{parentRef:this.$menuItemRef,setRef:this.createSubMenuRef,contextMenuPosition:Ve,subMenuDirection:Ie,subMenuLeftOffset:ke,subMenuTopOffset:Re,className:be,mountRoot:Y,isEmbed:je,isAiry:He,children:(0,a.jsx)(f.Provider,{value:{parentRef:this.$menuItemRef,mountRoot:Y,contextMenuPosition:Ve,activePath:K,showSubMenu:ie,onUpdateState:Me},children:J})}),Y)]})}})}}u(ee,"propTypes",{icon:r().object,text:r().string.isRequired,className:r().string,disabled:r().bool,canClick:r().bool,children:r().oneOfType([r().element,r().array]),hotKeyText:r().array,onClick:r().func,onMouseEnter:r().func,onMouseLeave:r().func,dataType:r().number,dataIndex:r().oneOfType([r().number,r().string]),subMenuClassName:r().string,subMenuDirection:r().string,subMenuLeftOffset:r().number,subMenuTopOffset:r().number,isVisible:r().bool,isAiry:r().bool}),u(ee,"defaultProps",{subMenuClassName:""});class q extends N.PureComponent{constructor(R){super(R),u(this,"createMenuItemRef",pe=>this.$menuItemRef=pe),u(this,"createSubMenuRef",pe=>this.$subMenuRef=pe),u(this,"spanRef",pe=>this.$spanRef=pe),u(this,"handleActiveItem",(pe,be)=>{const{children:Ie}=this.props;be({activePath:pe,showSubMenu:!!Ie})}),u(this,"handleMouseEnter",(pe,be,Ie)=>{const{onMouseEnter:ke}=this.props;ke&&ke(pe),d?setTimeout(()=>{if(this.$menuItemRef&&C.length>0){const Re=this.$menuItemRef.getBoundingClientRect();C.slice(-1)[0].inside(Re)&&this.handleActiveItem(be,Ie)}},200):this.handleActiveItem(be,Ie)}),u(this,"handleMouseLeave",async(pe,be,Ie,ke)=>{const{onMouseLeave:Re}=this.props;if(Re&&Re(pe),Ie&&this.$subMenuRef){const ze=this.$subMenuRef.getBoundingClientRect();if(ze&&C.length>0){const{left:He,top:We,bottom:Ve}=ze,Y=new U(He,We),K=new U(He,Ve),ie=[C[0],Y,K],he=new U(pe.clientX,pe.clientY);if(Z(he,ie)){d=!0;return}}}if(be){ke({activePath:be.dataset.index.split(","),showSubMenu:!0}),d=!1;return}ke({activePath:[],showSubMenu:!1}),d=!1}),u(this,"handleMouseMove",pe=>{const be=new U(pe.clientX,pe.clientY);c(be)}),u(this,"handleMouseDown",pe=>pe.stopPropagation()),u(this,"handleGetCanActiveSubMenu",(pe,be,Ie)=>{let ke=!1;return be&&(pe&&be.join("")===Ie.join("")||be.slice(0,Ie.length).join("")===Ie.join(""))&&(ke=!0),ke}),u(this,"handleGetPath",pe=>{const{dataIndex:be,text:Ie}=this.props,ke=be!==void 0?be:Ie;return pe?pe.dataset.index.split(",").concat(ke):[ke]}),u(this,"handleClick",pe=>{const{disabled:be,onClick:Ie,canClick:ke,children:Re}=this.props;(ke||!be)&&Ie&&Ie(pe),(Re||be)&&pe.stopPropagation()});const{text:G,fontUrl:J,usePlainText:oe}=this.props,te="U="+J+"&T="+G,ve=y.get(te);oe?this.state={renderContent:R.text,contentType:"text"}:this.state={renderContent:(ve==null?void 0:ve.content)||R.text,contentType:(ve==null?void 0:ve.type)||"text"}}async componentDidMount(){const{text:R,fontUrl:G,usePlainText:J}=this.props;if(J)return;const oe="U="+G+"&T="+R;if(!y.get(oe)){if(!G){y.set(oe,{type:"text",content:R});return}try{const te=await(await fetch("/flatkiq/fontsvg/sync.svg?"+oe)).text();if(te!==""){const ve=[...new DOMParser().parseFromString(te,"text/html").querySelectorAll("path")].map(pe=>pe.getAttribute("d"));if(ve.find(pe=>pe===S||pe===z||pe===A||pe===H)){y.set(oe,{type:"text",content:R});return}ve.filter(Boolean).length!==R.split("").filter(pe=>pe!==" ").length?y.set(oe,{type:"text",content:R}):(y.set(oe,{type:"svg",content:te}),this.setState({renderContent:te,contentType:"svg"}))}else y.set(oe,{type:"text",content:R})}catch(te){console.error(te),y.set(oe,{type:"text",content:R})}}}render(){const{icon:R,children:G,disabled:J,className:oe,dataType:te,subMenuClassName:ve,subMenuDirection:pe,subMenuLeftOffset:be,subMenuTopOffset:Ie,tooltipComponent:ke=null,tooltipWrapper:Re=null}=this.props,{renderContent:ze,contentType:He}=this.state;return(0,a.jsx)(f.Consumer,{children:We=>{const{contextMenuPosition:Ve,mountRoot:Y,activePath:K,showSubMenu:ie,parentRef:he,onUpdateState:Me,isEmbed:je=!1}=We,Ke=this.handleGetPath(he),st=this.handleGetCanActiveSubMenu(ie,K,Ke),et=(0,a.jsxs)("a",{children:[R,(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:ze},className:P()("text",{"is-svg":He==="svg"})}),ke,G&&(0,a.jsx)("div",{className:"right-arrow",children:D})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{ref:this.createMenuItemRef,className:P()("MenuItem",{disabled:J,hasIcon:R},oe,{active:st}),"data-type":te,"data-index":Ke,onMouseEnter:lt=>this.handleMouseEnter(lt,Ke,Me),onMouseLeave:lt=>this.handleMouseLeave(lt,he,ie,Me),onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onClick:this.handleClick,children:Re?Re(et):et}),G&&st&&!J&&(0,i.createPortal)((0,a.jsx)(ae,{parentRef:this.$menuItemRef,setRef:this.createSubMenuRef,contextMenuPosition:Ve,subMenuDirection:pe,subMenuLeftOffset:be,subMenuTopOffset:Ie,className:ve,mountRoot:Y,isEmbed:je,isNoraml:!1,isAiry:!1,children:(0,a.jsx)(f.Provider,{value:{parentRef:this.$menuItemRef,mountRoot:Y,contextMenuPosition:Ve,activePath:K,showSubMenu:ie,onUpdateState:Me},children:G})}),Y)]})}})}}u(q,"defaultProps",{subMenuClassName:""});class ae extends N.PureComponent{constructor(R){super(R),u(this,"createRef",G=>{const{setRef:J}=this.props;J(G),this.subMenu=G}),this.state={isTransform:!1}}componentDidMount(){this.setState({isTransform:!0});const{parentRef:R,contextMenuPosition:G,subMenuDirection:J,subMenuLeftOffset:oe,subMenuTopOffset:te,isAiry:ve,isEmbed:pe,mountRoot:be}=this.props;pe?T(this.subMenu,R,G,J,{subMenuLeftOffset:oe,subMenuTopOffset:te},ve,be):k(this.subMenu,R,G,J,{subMenuLeftOffset:oe,subMenuTopOffset:te},ve)}render(){const{children:R,isAiry:G,className:J,isNoraml:oe=!0}=this.props,{isTransform:te}=this.state;return(0,a.jsx)(E,{className:P()("SubMenu",{"is-show":te},{"is-airy":G},{"is-normal":oe},J),ref:this.createRef,children:R})}}u(ae,"propTypes",{children:r().oneOfType([r().element,r().array]),className:r().string,parentRef:r().node,contextMenuPosition:r().object,setRef:r().func,subMenuDirection:r().string,subMenuLeftOffset:r().number,subMenuTopOffset:r().number,isAiry:r().bool});const Ce=I.Ay.div.withConfig({displayName:"ContextMenu__Divider",componentId:"sc-1802crt-0"})(["margin:8px 0;border-top:1px solid #454546;"])},22460:(me,V,o)=>{"use strict";o.d(V,{O:()=>N});var l=o(67787),r=o(47507);const N=l.Ay.div.withConfig({displayName:"styles__StyledButton",componentId:"sc-166yiuz-0"})(["border-radius:6px;display:inline-block;justify-content:center;align-items:center;font-family:inherit;font-size:14px;font-weight:500;line-height:18px;user-select:none;cursor:pointer;.btn-icon-text-container{display:flex;justify-content:center;align-items:center;}.btn-icon{display:flex;justify-content:center;align-items:center;.btn-icon-container{margin-right:4px;width:16px;height:16px;overflow:hidden;}}&[class*='is-disabled']{cursor:not-allowed;opacity:0.4;}&[class*='type-linear']{color:",";background:",";border:1px solid ",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}}&[class*='type-primary']{color:",";background:",";border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}}&[class*='type-secondary']{color:",";background:",";border:1px solid ",";&:hover:not([class*='is-disabled']){background:",";border:1px solid ",";}&:active:not([class*='is-disabled']){background:",";border:1px solid transparent;}}&[class*='type-link']{border:1px solid transparent;padding:0;color:",";&:hover:not([class*='is-disabled']){color:",";}&:active:not([class*='is-disabled']){color:",";}&.link-gray{color:",";&:hover{color:",";}&:active{color:",";}}}&[class*='type-danger']{background:",";color:",";border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}}&[class*='size-tiny']{padding:4px 8px;max-height:24px;font-size:12px;line-height:14px;.btn-icon-text-container{min-width:46px;}&[class*='type-link']{padding:0;}}&[class*='size-common']{padding:6px 12px;max-height:32px;.btn-icon-text-container{min-width:54px;}&[class*='type-link']{padding:0;}}&[class*='size-medium']{padding:6px 16px;max-height:32px;.btn-icon-text-container{min-width:60px;}&[class*='type-link']{padding:0;}}&[class*='size-large']{padding:8px 16px;max-height:36px;.btn-icon-text-container{min-width:76px;}&[class*='type-link']{padding:0;}.btn-icon-container{margin-right:6px;}}&[class*='corner-smooth']{border-radius:6px;}&[class*='corner-soft']{border-radius:4px;}&[class*='corner-round']{border-radius:calc(infinity * 1px);}&[class*='only-icon']{padding:0;border:none;background:transparent;.btn-icon-text-container{min-width:0;}.btn-icon-container{margin-right:0;svg > *{fill:",";}}&:hover:not([class*='is-disabled']){background:none;.btn-icon-container{svg > *{fill:",";}}}&:active:not([class*='is-disabled']){background:none;.btn-icon-container{svg > *{fill:",";}}}}"],r.q.color_text_L2,r.q.color_bg_normal,r.q.color_split_line,r.q.color_bg_btn_normal_hover,r.q.color_bg_btn_normal_active,r.q.color_text_white,r.q.color_btn_primary_normal,r.q.color_btn_primary_hover,r.q.color_btn_primary_click,r.q.color_text_L2,r.q.color_bg_secondary_btn,r.q.color_btn_secondary_border_normal,r.q.color_btn_secondary_hover,r.q.color_btn_secondary_border_hover,r.q.color_btn_secondary_click,r.q.color_btn_primary_normal,r.q.color_btn_primary_hover,r.q.color_btn_primary_click,r.q.color_text_L2,r.q.color_text_L3,r.q.color_text_L1,r.q.color_btn_danger_normal,r.q.color_text_white,r.q.color_btn_danger_hover,r.q.color_btn_danger_click,r.q.color_text_L2,r.q.color_text_L3,r.q.color_text_L1)},23089:(me,V,o)=>{"use strict";o.d(V,{it:()=>I,V0:()=>f,mq:()=>U});var l=o(38502),r=o(25431),N=o(67787);const i=(0,N.Ay)(r.Ay).withConfig({displayName:"styled__StyledWorkspaceSelectProto",componentId:"sc-32xdp1-0"})(["&.WorkspaceSelect{padding:0px;border-radius:4px;button{width:auto;display:flex;padding:0 6px;align-items:center;color:",";}.caret{flex-shrink:0;width:26px;display:flex;justify-content:center;align-items:center;padding:0;color:",";svg{width:26px;height:26px;}}&:not(.is-disabled):not(.readonly):hover{border-color:",";button{width:calc(100% - 26px);}.caret{padding:0;color:",";}}&.is-open{border-color:transparent;}}"],x=>x.theme.color_text_L1,x=>x.theme.color_text_L3,x=>x.theme.color_bg_border_02,x=>x.theme.color_text_L1),I="select-menu-width-108",W=(0,N.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.menu-animation-select{margin-left:-15px;}.WorkspaceSelectMenu{padding:8px;border-radius:8px;color:",";background:",";box-shadow:",";&.is-open{border:1px solid ",";border-radius:8px;width:176px;max-width:176px;padding:8px;background-color:",";box-shadow:",";.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:",";}}}> .divider{border-bottom:1px solid ",";margin:5px;}.SelectOption{border-radius:4px;height:28px;line-height:28px;&.is-active{color:",";}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:",";color:",";}}}.menu-animation-select .SelectGroup > .title{color:",";}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}.","{width:108px;}}"],x=>x.theme.color_text_L1,x=>x.theme.color_bg_white,x=>x.theme.shadow_m,x=>x.theme.color_bg_border_01,x=>x.theme.color_bg_white,x=>x.theme.shadow_m,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_bg_border_01,x=>x.theme.color_text_L1,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_text_L1,x=>x.theme.color_text_L3,I);var P=o(17307),_=o(72214);class U extends l.PureComponent{render(){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i,{...this.props,arrowSvg:(0,_.jsx)(P.C,{className:"triangle-icon",name:"common/expand@26"})}),(0,_.jsx)(W,{})]})}}class f extends l.PureComponent{render(){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.eB,{...this.props}),(0,_.jsx)(W,{})]})}}},25234:(me,V,o)=>{"use strict";o.d(V,{Oc:()=>I,Qi:()=>U,jf:()=>W,jn:()=>P,lV:()=>O,tA:()=>_,z9:()=>x});var l=o(38502),r=o(97974),N=o(17307),i=o(72214);const I=(0,l.memo)(m=>{let{type:p="linear",className:h,disabled:E=!1,size:b="common",corner:v="smooth",forceTheme:a,children:u,onClick:L}=m;return(0,i.jsx)(r.Yr,{type:p,className:h,disabled:E,size:b,corner:v,forceTheme:a,onClick:L,children:u})}),W=o.j!=15?(0,l.memo)(m=>{let{type:p="linear",className:h,disabled:E=!1,size:b="common",corner:v="smooth",icon:a,children:u,forceTheme:L,onClick:B}=m;return(0,i.jsx)(r.hE,{type:p,className:h,disabled:E,size:b,corner:v,icon:a,forceTheme:L,onClick:B,children:u})}):null,P=o.j!=477?(0,l.memo)(m=>{let{className:p,children:h,disabled:E=!1,onClick:b}=m;return(0,i.jsx)(r.Yr,{type:"primary",size:"common",className:p,disabled:E,onClick:b,children:h})}):null,_=m=>{let{className:p,children:h,disabled:E=!1,onClick:b}=m;return(0,i.jsx)(r.Yr,{type:"secondary",size:"common",className:p,disabled:E,onClick:b,children:h})},U=o.j!=477?(0,l.memo)(m=>{let{className:p,children:h,disabled:E=!1,onClick:b}=m;return(0,i.jsx)(r.Yr,{type:"danger",size:"common",className:p,disabled:E,onClick:b,children:h})}):null,f=null,x=/^(15|477)$/.test(o.j)?null:(0,l.memo)(m=>{let{className:p,children:h,disabled:E=!1,onClick:b}=m;return(0,i.jsx)(r.Yr,{type:"link",className:p,disabled:E,onClick:b,children:h})}),k=null,T=null,Z=null,O=o.j!=15?(0,l.memo)(m=>{let{className:p,isLoading:h=!1,children:E,disabled:b=!1,corner:v="soft",onClick:a}=m;return(0,i.jsx)(r.hE,{type:"secondary",size:"tiny",corner:v,className:p,icon:h?(0,i.jsx)(N.C,{name:"general/loading",className:"btn-loading"}):null,disabled:b,onClick:a,children:E})}):null},25431:(me,V,o)=>{"use strict";o.d(V,{YJ:()=>H,c$:()=>M,eB:()=>A,Ay:()=>z});var l=o(38502),r=o(69623),N=o(25582),i=o.n(N),I=o(27992),W=o(28322),P=o.n(W),_=o(89775),U=o.n(_),f=o(63986),x=o.n(f),k=o(37862),T=o.n(k),Z=o(68677),O=o(69368),m=o(7501),p=o(67787);const h=p.Ay.label.withConfig({displayName:"styles__StyledSelect",componentId:"sc-tgxfzg-0"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:#5b6b73;cursor:pointer;button{display:block;height:100%;color:#1F292E;text-align:start;cursor:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:8px;line-height:26px;}.caret{padding:0 11px;color:#7D8694;height:100%;display:inline-flex;align-items:center;svg{width:10px;height:10px;fill:currentColor;transition:transform 0.2s ease-out;}}&{padding-left:5px;border:1px solid transparent;border-radius:2px;}&.is-open{border-color:transparent;.caret{margin-left:auto;visibility:visible;svg{transform:rotate(180deg);}}}&:not(.is-disabled):not(.readonly):hover{border:1px solid transparent;.caret{padding:0 11px;}}&.is-disabled{cursor:not-allowed;opacity:0.6;}&.readonly{cursor:default;}"]),E=p.Ay.div.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-tgxfzg-1"})(["position:fixed;pointer-events:none;z-index:1100;.WorkspaceSelectMenu{position:absolute;padding:8px 0;display:block;max-width:20em;min-width:100%;min-height:30px;max-height:300px;overflow-x:hidden;overflow-y:auto;list-style:none;box-shadow:0 2px 8px 0 rgba(0,0,0,0.1);color:#fff;border-radius:2px;background-color:#1f292e;pointer-events:all;transition-property:transform,opacity;transform-origin:50% 0;margin:0;&::-webkit-scrollbar{display:block;width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.25);border-radius:4px;&:hover{background-color:rgba(255,255,255,0.30);}}&::-webkit-scrollbar-track{background-color:rgba(#fff,0.5);}&.is-empty{width:fit-content;}&:not(.is-open){opacity:0;transform:scale(0.8);}&.is-downward{top:100%;bottom:initial;}&.is-upward{transform-origin:50% 100%;top:initial;bottom:100%;}&.is-open{opacity:1;pointer-events:initial;border-radius:4px;background-color:#333;width:160px;padding:8px 0px;}> .divider{border-bottom:1px solid rgba(255,255,255,.1);margin:5px;}.SelectOption{display:flex;align-items:center;height:24px;line-height:24px;cursor:pointer;font-size:12px;font-weight:400;& > .Ellipsis{padding:0 16px 0 32px;min-width:160px;}&.is-disabled{cursor:not-allowed;opacity:0.5;}&.is-active{color:#fff;mix-blend-mode:normal;position:relative;}.shortcutkey{color:#999;float:right;}.svg-icon3 svg{color:#f2f4f5;width:12px;height:12px;position:relative;top:2px;}&.is-active .svg-icon2 svg{width:8px;height:6px;position:absolute;left:12px;top:9px;}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:#666;color:#fff;}&.empty-msg{padding:0 0.5em;color:#8d9ea6;cursor:not-allowed;}}&.cant-select .SelectOption{cursor:default;}.SelectGroup{.divider{height:1px;margin:4px 16px;background:#7d8694;}& > .title{font-size:12px;padding:0 8px 0 16px;width:100%;height:30px;line-height:30px;color:rgba(255,255,255,0.7);span{display:block;}}& > ul{margin:0;padding:0;}}}.font-select-menu-tip{position:absolute;margin-top:-1px;padding:8px 16px;font-size:10px;box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),4px 12px 40px 0 rgba(39,54,78,0.1);color:#fff;background-color:#1f292e;border-radius:0 0 2px 2px;pointer-events:auto;transition:opacity 0.2s ease-in;.font-link{color:#fff;margin-left:10px;text-decoration:underline;}&:not(.is-show){opacity:0;}&.is-show{opacity:1;color:rgba(255,255,255,1);}}"]);var b=o(51582),v=o(72214);function a(C,d,y){return(d=u(d))in C?Object.defineProperty(C,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):C[d]=y,C}function u(C){var d=L(C,"string");return typeof d=="symbol"?d:d+""}function L(C,d){if(typeof C!="object"||!C)return C;var y=C[Symbol.toPrimitive];if(y!==void 0){var c=y.call(C,d||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(C)}const B="IBOT_SELECT_MENU_ROOT",D=document.getElementById(B)||Object.assign(document.createElement("div"),{id:B}),S=document.body;S.contains(D)||S.appendChild(D);class z extends l.PureComponent{constructor(){super(...arguments),a(this,"state",{isOpen:!1,prevProps:this.props,value:this.props.value}),a(this,"set$select",d=>this.setState({$select:d})),a(this,"open",()=>this.setState({isOpen:!0})),a(this,"close",()=>this.setState({isOpen:!1})),a(this,"toggle",()=>{const d=!this.state.isOpen;this.setState({isOpen:d}),d?this.props.onOpen():this.props.onClose()}),a(this,"onResizeWindow",()=>this.state.isOpen&&this.close()),a(this,"onChange",d=>this.setState({value:d},()=>{this.close(),this.props.onChange(d,this.props.attr)})),a(this,"onSelect",d=>{let{currentTarget:y}=d;const{value:c}=this.props,{canSelect:w}=this;return this.onChange(w?y.dataset.value:c)})}static getDerivedStateFromProps(d,y){let{prevProps:c,value:w}=y;return x()(c,d)?null:{prevProps:d,value:d.value}}componentDidMount(){window.addEventListener("resize",this.onResizeWindow)}componentWillUnmount(){window.removeEventListener("resize",this.onResizeWindow)}get isDisabled(){const{isDisabled:d,disabled:y}=this.props;return d||y}get readOnly(){return this.props.readOnly}get canSelect(){const{isDisabled:d,readOnly:y}=this;return!d&&!y}get displayText(){const{optionList:d,placeholder:y,optionLabelProp:c}=this.props,{value:w}=this.state,$=(d.find(ee=>U()(ee)&&ee.slice(0).some(q=>(0,m.o3)(q,w)))||d).find(ee=>!U()(ee)&&(0,m.o3)(ee,w));return $?(0,m.Oi)($,c):y}render(){const{size:d,unstyled:y,className:c,onMouseEnter:w,onMouseLeave:j,arrowSvg:$}=this.props,{isOpen:ee,$select:q,value:ae}=this.state,{isDisabled:Ce,readOnly:Q,canSelect:R}=this,G=(0,O.Hn)(["WorkspaceSelect",d,y&&"unstyled",c,ee&&"is-open",Ce&&"is-disabled",Q&&"readonly"]);return(0,v.jsxs)(h,{className:G,role:"listbox",ref:this.set$select,children:[(0,v.jsx)("button",{onClick:this.toggle,disabled:Ce,children:this.displayText}),typeof $=="string"?(0,v.jsx)("span",{className:"caret",dangerouslySetInnerHTML:{__html:$}}):(0,v.jsx)("span",{className:"caret",children:$}),ee&&(0,v.jsx)(A,{isOpen:ee,...this.props,value:ae,$select:q,canSelect:R,onChange:this.onSelect,onMouseEnter:w,onMouseLeave:j,onClose:this.close})]})}}a(z,"propTypes",{size:i().oneOf(["regular","small"]),theme:i().oneOf(["core","plain"]),menuTheme:i().oneOf(["core","plain","check"]),unstyled:i().bool,className:i().string,menuClassName:i().string,placeholder:i().string,optionList:i().arrayOf(i().oneOfType([i().node,i().shape({label:i().node,shortcutKey:i().node,tooltipWrapper:i().func,ItemIcon:i().node,value:i().any,isDisabled:i().bool}),i().arrayOf(i().oneOfType([i().node,i().shape({label:i().node,ItemIcon:i().node,value:i().any,shortcutKey:i().node,tooltipWrapper:i().func,isDisabled:i().bool})]))])).isRequired,value:i().oneOfType([i().number,i().string]),isDisabled:i().bool,disabled:i().bool,readOnly:i().bool,onChange:i().func,onMouseEnter:i().func,onMouseLeave:i().func,onOpen:i().func,onClose:i().func,optionLabelProp:i().string,arrowSvg:i().oneOfType([i().string,i().node])}),a(z,"defaultProps",{size:"regular",theme:"plain",menuTheme:"plain",className:"",menuClassName:"",placeholder:"Choose one\u2026",emptyMsg:"Nothing to display\u2026",optionList:[],isDisabled:!1,arrowSvg:m.rH,onChange:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,onOpen:()=>null,onClose:()=>null});class A extends l.PureComponent{constructor(){super(...arguments),a(this,"state",{isDownward:!0}),a(this,"portal",(0,O.ep)(D,"SelectMenuPortal")),a(this,"menuBaseRef",(0,l.createRef)()),a(this,"menuContainerRef",(0,l.createRef)()),a(this,"position",d=>{const{$select:y}=this.props,{menuBaseRef:{current:c},menuContainerRef:{current:w}}=this;if(d){const $=P()(d,"target");if($&&T()($)&&$.matches(".WorkspaceSelectMenu"))return}const{isDownward:j}=(0,m.d2)({$menuBase:c,$opener:y,shouldSetMaxHeight:!1,$menuContainer:w});this.setState({isDownward:j,isTransform:!0})}),a(this,"onChange",d=>{const{onChange:y}=this.props,{isDownward:c}=this.state,w=d.currentTarget,j=w.closest(".WorkspaceSelectMenu");if(!w||!j)return this.onlose();const{top:$,bottom:ee}=w.getBoundingClientRect(),{top:q,bottom:ae}=j.getBoundingClientRect();return c&&$>=q||!c&&ee<=ae?w.classList.contains("title")?void 0:y(d):this.onClose()}),a(this,"onClose",()=>{const{onClose:d}=this.props;d()}),a(this,"onClickOutside",d=>{let{target:y}=d;const{$select:c}=this.props,w=!D.contains(y),j=y.closest("label"),$=j&&j.contains(c);w&&!$&&this.onClose()})}componentDidMount(){const{menuBaseRef:{current:d}}=this;(0,O.sA)((0,O.$)(".WorkspaceSelectMenu",d)),this.position()}componentWillUnmount(){this.portal&&this.portal.remove()}render(){return(0,r.createPortal)(this.menu,this.portal)}get menu(){const{isOpen:d,isDisabled:y,menuTheme:c,menuClassName:w,optionList:j,emptyMsg:$,value:ee,canSelect:q,onMouseEnter:ae,onMouseLeave:Ce}=this.props,{isDownward:Q,isTransform:R}=this.state,G=j.length===0,J=(0,O.Hn)(["WorkspaceSelectMenu",w,R&&"is-open",Q?"is-downward":"is-upward",y&&"is-disabled",G&&"is-empty",q?"can-select":"cant-select"]);return(0,v.jsxs)(E,{ref:this.menuBaseRef,children:[(0,v.jsx)("ul",{className:J,ref:this.menuContainerRef,children:G?(0,v.jsx)("li",{className:"SelectOption empty-msg",role:"empty-msg",children:$}):j.map((oe,te)=>U()(oe)?(0,v.jsx)(H,{menuTheme:c,optionList:oe,value:ee,onChange:this.onChange,onMouseEnter:ae,onMouseLeave:Ce},te):(0,v.jsx)(M,{menuTheme:c,isActive:(0,m.o3)(oe,ee),option:oe,isDisabled:oe.isDisabled,onChange:this.onChange,onMouseEnter:ae,onMouseLeave:Ce},te))}),d&&(0,v.jsx)(I.A,{target:document,onClick:this.onClickOutside})]})}}a(A,"propTypes",{...z.propTypes,isOpen:i().bool,canSelect:i().bool,onChange:i().func,onClose:i().func,$select:i().instanceOf(Element)}),a(A,"defaultProps",{isOpen:!1,isTransform:!1});function H(C){let{value:d,optionList:[y,...c],menuTheme:w,onChange:j,onMouseEnter:$,onMouseLeave:ee}=C;return(0,v.jsxs)("li",{className:"SelectGroup",children:[y==="HIDDELINE"?null:y==="DIVIDER"?(0,v.jsx)("div",{className:"divider"}):(0,v.jsx)(Z.A,{className:"title",onClick:j,children:y}),(0,v.jsx)("ul",{children:c.map((q,ae)=>(0,v.jsx)(M,{menuTheme:w,option:q,isActive:(0,m.o3)(q,d),isDisabled:q.isDisabled,onChange:j,onMouseEnter:$,onMouseLeave:ee},ae))})]})}H.propTypes={value:i().oneOfType([i().string,i().number]),optionList:i().array,onChange:i().func,menuTheme:i().string,onMouseEnter:i().func,onMouseLeave:i().func};function M(C){let{option:d,isActive:y,isDisabled:c,menuTheme:w,onChange:j,onMouseEnter:$,onMouseLeave:ee}=C;const q=(0,O.Hn)(["SelectOption",y&&"is-active",c&&"is-disabled"]),ae=(0,m.Oi)(d),Ce=(0,m.nE)(d),Q=(0,m.mq)(d),R=(0,m.lP)(d),{tooltipWrapper:G}=d;if(d.type==="divider")return(0,v.jsx)("li",{className:"divider"});const J=(0,v.jsxs)("li",{role:"option","data-value":Ce,className:q,onClick:c?void 0:j,onMouseEnter:$,onMouseLeave:ee,children:[y&&(0,v.jsx)("span",{className:"svg-icon2",children:(0,v.jsx)(b.A,{name:"select_right"})}),(0,v.jsxs)(Z.A,{children:[(0,v.jsxs)("span",{className:"svg-icon3",children:[(0,v.jsx)(b.A,{name:Q})," "]})," ",ae," ",(0,v.jsxs)("span",{className:"shortcutkey",children:[R," "]})]})]});return G?G(J):J}M.propTypes={isActive:i().bool,option:i().oneOfType([i().node,i().object]),isDisabled:i().bool,menuTheme:i().string,onChange:i().func,onMouseEnter:i().func,onMouseLeave:i().func}},25942:(me,V)=>{"use strict";var o;o={value:!0};var l=Object.assign||function(W){for(var P=1;P<arguments.length;P++){var _=arguments[P];for(var U in _)Object.prototype.hasOwnProperty.call(_,U)&&(W[U]=_[U])}return W},r=function(){var P=null,_={},U=function(Z){var O=_[Z.type];return O&&O(P,Z)},f=function(Z){if(typeof Z.getState!="function"||typeof Z.dispatch!="function")throw new Error("[ReduxEntry][middleware] invalid reduxMiddlewareStore");if(P!==null)throw new Error("[ReduxEntry][middleware] already set reduxMiddlewareStore");return P=Z,function(O){return function(m){return U(m)===!0||O(m)}}},x=function(Z,O){if(typeof Z!="string")throw new Error("[ReduxEntry][setEntry] non-string actionType: "+Z);if(typeof O!="function")throw new Error("[ReduxEntry][setEntry] non-function entryFunction: "+Z+", "+O);_[Z]&&console.warn("[ReduxEntry][setEntry] possible unexpected entry overwrite: "+Z),_[Z]=O},k=function(Z){return Object.keys(Z).forEach(function(O){return x(O,Z[O])})};return{middleware:f,setEntry:x,setEntryMap:k}},N=function(P){if(P===void 0)throw new Error("[ReduxEntry][createStateStore] initialState expected");return{getState:function(){return P},setState:function(U){return P=U},wrapEntry:function(U){return function(f,x){return U(P,f,x)}}}},i=function(P,_){var U=_.getState,f=_.setState;return function(x,k){var T=k.type,Z=k.payload;return T===P&&f(Z),U()}},I=function(P,_){var U=_.getState,f=_.setState;return function(x,k){var T=k.type,Z=k.payload;return T===P&&f(l({},U(),Z)),U()}};V.RZ=r,V.J$=N,V.Tf=i,o=I},29523:(me,V,o)=>{"use strict";o.d(V,{f:()=>I});const I={...{color_modao:{description:"\u54C1\u724C\u8272-\u58A8\u5200",value_light:"#FF3333",value_dark:"#FF3333"},color_proto:{description:"\u5DE5\u5177\u8272-\u539F\u578B\u5DE5\u5177",value_light:"#266FFF",value_dark:"#266FFF"},color_mindmap:{description:"\u5DE5\u5177\u8272-\u601D\u7EF4\u5BFC\u56FE",value_light:"#39CCBC",value_dark:"#39CCBC"},color_flowchart:{description:"\u5DE5\u5177\u8272-\u6D41\u7A0B\u56FE",value_light:"#FF1D47",value_dark:"#FF1D47"},color_cooperation:{description:"\u5DE5\u5177\u8272-\u8BBE\u8BA1\u534F\u4F5C",value_light:"#FF6915",value_dark:"#FF6915"},color_mockitt:{description:"\u5DE5\u5177\u8272-MOCKITT",value_light:"#4257FF",value_dark:"#4257FF"}},...{color_btn_primary_disabled:{description:"\u5E38\u89C4\u6309\u94AE disabled",value_light:"#A8C6FF",value_dark:"#234381"},color_btn_primary_normal:{description:"\u5E38\u89C4\u6309\u94AE normal",value_light:"#266FFF",value_dark:"#266BF3"},color_btn_primary_hover:{description:"\u5E38\u89C4\u6309\u94AE hover",value_light:"#4080FF",value_dark:"#3C7DFF"},color_btn_primary_clicked:{description:"\u5E38\u89C4\u6309\u94AE clicked",value_light:"#2264E5",value_dark:"#255BC7"},color_btn_danger_disabled:{description:"\u5371\u9669\u6309\u94AE disabled",value_light:"#FFB3B3",value_dark:"#682B2B"},color_btn_danger_normal:{description:"\u5371\u9669\u6309\u94AE normal",value_light:"#FF4040",value_dark:"#D33B3B"},color_btn_danger_hover:{description:"\u5371\u9669\u6309\u94AE hover",value_light:"#FF7575",value_dark:"#D74F4F"},color_btn_danger_clicked:{description:"\u5371\u9669\u6309\u94AE clicked",value_light:"#E53A3A",value_dark:"#A23434"},color_info:{description:"\u53CD\u9988-\u4FE1\u606F",value_light:"#266FFF",value_dark:"#266BF3"},color_info_bg:{description:"\u53CD\u9988\u4FE1\u606F-\u80CC\u666F\u8272",value_light:"#EFF4FF",value_dark:"#222A3A"},color_success:{description:"\u53CD\u9988-\u6210\u529F",value_light:"#39BF50",value_dark:"#61CC73"},color_success_bg:{description:"\u53CD\u9988\u6210\u529F-\u80CC\u666F\u8272",value_light:"#F0FAF2",value_dark:"#232D24"},color_warning:{description:"\u53CD\u9988-\u8B66\u544A",value_light:"#FF8C19",value_dark:"#FFA347"},color_warning_bg:{description:"\u53CD\u9988\u8B66\u544A-\u80CC\u666F\u8272",value_light:"#FFF7EE",value_dark:"#312B24"},color_error:{description:"\u53CD\u9988-\u51FA\u9519",value_light:"#FF4040",value_dark:"#D33B3B"},color_error_bg:{description:"\u53CD\u9988\u51FA\u9519-\u80CC\u666F\u8272",value_light:"#FFF1F1",value_dark:"#2E2323"},color_polyline_normal:{description:"\u6807\u5C3A\u8F85\u52A9\u7EBF-normal",value_light:"rgba(255, 64, 64, 0.5)",value_dark:"rgba(255, 64, 64, 0.5)"},color_polyline_hover:{description:"\u6807\u5C3A\u8F85\u52A9\u7EBF-hover",value_light:"#FF4040",value_dark:"#D33B3B"},color_polyline_select:{description:"\u6807\u5C3A\u8F85\u52A9\u7EBF-\u9009\u4E2D",value_light:"#266FFF",value_dark:"#266FFF"},color_bg_tab:{description:"tab \u9009\u4E2D\u7684\u5E95\u8272",value_light:"#E6EFFF",value_dark:"#223252"},color_bg_select03:{description:"\u5217\u8868\u9009\u4E2D\u5B50\u7EA7",value_light:"#F2F6FF",value_dark:"#222937"},color_bg_select02:{description:"\u5217\u8868\u9009\u4E2D\u7236\u7EA7/\u6846\u9009\u80CC\u666F\u8272",value_light:"#D8E5FF",value_dark:"#223252"},color_bg_select01:{description:"\u9875\u9762\u6807\u8BC6 hover \u8272",value_light:"#A8C6FF",value_dark:"#234381"},color_textarea:{description:"\u6587\u5B57\u533A\u57DF\u80CC\u666F\u8272",value_light:"rgba(5, 88, 255, 0.24)",value_dark:"rgba(6, 92, 255, 0.35)"},color_grid:{description:"\u5E03\u5C40\u6805\u683C\u80CC\u666F\u8272/\u753B\u677F\u9AD8\u5EA6\u62D6\u62FD\u533A\u57DF\u80CC\u666F\u8272",value_light:"rgba(11, 93, 255, 0.16)",value_dark:"rgba(11, 93, 255, 0.16)"},color_smartline:{description:"\u667A\u80FD\u6D4B\u8DDD\u53C2\u8003\u7EBF\u989C\u8272",value_light:"#F23DD1",value_dark:"#F23DD1"},color_spacing:{description:"\u7B49\u95F4\u8DDD\u5757\u80CC\u666F\u53CA\u6570\u5B57\u8272",value_light:"rgba(242, 61, 209, 0.3)",value_dark:"rgba(245, 78, 219, 0.3)"},color_comments:{description:"\u6807\u6CE8\u6A21\u5F0F\u6D4B\u8DDD\u989C\u8272/\u8BC4\u8BBA\u6C14\u6CE1\u8272/\u70ED\u533A\u533A\u57DF\u63CF\u8FB9\u8272 ",value_light:"#FF8C19",value_dark:"#FF8C19"},color_hotspot:{description:"\u6807\u6CE8\u6A21\u5F0F\u70ED\u533A\u533A\u57DF\u586B\u5145\u8272 ",value_light:"rgba(255, 140, 25, 0.15)",value_dark:"rgba(255, 140, 25, 0.15)"},color_master:{description:"\u6BCD\u7248\u8272",value_light:"#7146FE",value_dark:"#7146FE"}},...{color_bg_white:{description:"\u56FA\u5B9A\u5C42\u80CC\u666F\u8272",value_light:"#ffffff",value_dark:"#212121"},color_bg_canvas:{description:"\u753B\u5E03\u80CC\u666F\u8272",value_light:"#EFEFEF",value_dark:"#1A1A1A"},color_btn_secondary_hover:{description:"\u6B21\u8981\u6309\u94AE/icon-hover\u80CC\u666F\u8272",value_light:"#F3F3F4",value_dark:"#333333"},color_btn_secondary_active:{description:"\u6B21\u8981\u6309\u94AE/icon-\u9009\u4E2D\u80CC\u666F\u8272",value_light:"#EEEEF0",value_dark:"#3C3C3C"},color_grid_line:{description:"\u56FE\u6807\u9009\u4E2D\u80CC\u666F\u8272/\u4E8C\u7EA7\u5206\u5272\u7EBF",value_light:"#E5E5E5",value_dark:"#454647"},color_bg_line:{description:"\u63A7\u4EF6\u63CF\u8FB9/\u4E00\u7EA7\u5206\u5272\u7EBF/\u83DC\u5355/default\u6309\u94AE\u63CF\u8FB9/\u5F39\u7A97\u63CF\u8FB9",value_light:"#DBDBDB",value_dark:"#4F5052"},color_bg_border_01:{description:"\u5206\u9694\u7EBF/\u83DC\u5355/\u5F39\u7A97\u5916\u63CF\u8FB9",value_light:"rgba(18, 17, 42, 0.07)",value_dark:"rgba(255, 255, 255, 0.08)"},color_bg_border_02:{description:"\u6B21\u8981\u6309\u94AE\u63CF\u8FB9/\u8F93\u5165\u6846/\u641C\u7D22\u6846",value_light:"rgba(2, 9, 16, 0.13)",value_dark:"rgba(255, 255, 255, 0.19)"},color_bg_split_hover:{description:"\u4E00\u7EA7\u5206\u5272\u7EBF hover \u6548\u679C",value_light:"#CCCCCC",value_dark:"#CCCCCC"},color_bg_card:{description:"\u7D20\u6750\u9762\u677F\u5361\u7247/tab\u80CC\u666F\u8272",value_light:"#F7F7F9",value_dark:"#303030"},color_navigation_hover:{description:"\u5DE6\u4FA7\u5BFC\u822A\u60AC\u505C",value_light:"rgba(18, 17, 42, 0.03)",value_dark:"rgba(255, 255, 255, 0.04)"},color_navigation_active:{description:"\u5DE6\u4FA7\u5BFC\u822A\u9009\u4E2D",value_light:"rgba(18, 17, 42, 0.05)",value_dark:"rgba(255, 255, 255, 0.08)"},color_directory_hover:{description:"\u76EE\u5F55\u9009\u9879\u60AC\u505C",value_light:"#FAFAFC",value_dark:"rgba(255, 255, 255, 0.05)"},color_directory_active:{description:"\u76EE\u5F55\u9009\u9879\u9009\u4E2D",value_light:"#F3F3F5",value_dark:"rgba(255, 255, 255, 0.08)"},color_bg_menu:{description:"\u83DC\u5355\u80CC\u666F\u8272",value_light:"#ffffff",value_dark:"#303030"},color_bg_tips:{description:"\u6C14\u6CE1/\u5168\u5C40\u63D0\u793A\u80CC\u666F\u8272",value_light:"#303030",value_dark:"#303030"},color_bg_mask:{description:"\u5F39\u7A97\u8499\u5C42\u8272",value_light:"rgba(18, 17, 42, 0.4)",value_dark:"rgba(0, 0, 0, 0.5)"},color_slider_normal:{description:"\u6ED1\u6746 normal \u8272",value_light:"rgba(18, 17, 42, 0.15)",value_dark:"rgba(255, 255, 255, 0.25)"},color_slider_hover:{description:"\u6ED1\u6746 hover \u8272",value_light:"rgba(18, 17, 42, 0.3)",value_dark:"rgba(255, 255, 255, 0.35)"}},...{color_text_btn:{description:"\u6309\u94AE\u5185normal\u6001\u6587\u672C\u8272",value_light:"#FFFFFF",value_dark:"rgba(255, 255, 255, 0.91)"},color_text_L0:{description:"\u6807\u9898\u6587\u672C\u8272/\u4E00\u7EA7\u6587\u672C\u8272",value_light:"#19191A",value_dark:"rgba(255, 255, 255, 0.91)"},color_text_L1:{description:"\u6807\u9898\u6587\u672C\u8272/\u4E00\u7EA7\u6587\u672C\u8272",value_light:"#19191A",value_dark:"rgba(255, 255, 255, 0.91)"},color_text_L2:{description:"\u4E8C\u7EA7\u6587\u672C\u8272",value_light:"#555557",value_dark:"rgba(255, 255, 255, 0.64)"},color_text_L3:{description:"\u5360\u4F4D\u7B26\u6587\u672C\u8272",value_light:"#8B8C8F",value_dark:"rgba(255, 255, 255, 0.45)"},color_text_disabled01:{description:"\u9ED1\u8272\u6587\u672C\u7981\u7528\u8272",value_light:"#B7B9BD",value_dark:"rgba(255, 255, 255, 0.19)"},color_text_disabled02:{description:"\u767D\u8272\u6587\u672C\u7981\u7528\u8272",value_light:"rgba(255, 255, 255, 0.82)",value_dark:"rgba(255, 255, 255, 0.19)"},color_text_link_normal:{description:"\u94FE\u63A5/\u6587\u672C\u6309\u94AE\u8272 normal",value_light:"#2264E5",value_dark:"#88B0FF"},color_text_link_hover:{description:"\u94FE\u63A5/\u6587\u672C\u6309\u94AE\u8272 hover",value_light:"#6297FF",value_dark:"#93B7FF"},color_text_tips_normal:{description:"\u63D0\u793A\u5185\u84DD\u8272\u6587\u672C\u8272 normal",value_light:"#88B0FF",value_dark:"#88B0FF"},color_text_tips_hover:{description:"\u63D0\u793A\u5185\u84DD\u8272\u6587\u672C\u8272 hover",value_light:"#A8C6FF",value_dark:"#A8C6FF"},color_text_error:{description:"\u51FA\u9519\u6587\u672C\u8272",value_light:"#D34444",value_dark:"#FF7575"}}}},35603:(me,V,o)=>{"use strict";o.d(V,{A:()=>L,d:()=>k});var l=o(18250),r=o.n(l),N=o(63986),i=o.n(N),I=o(38502),W=o(69623),P=o(25582),_=o.n(P),U=o(27992),f=o(69368);const x=9;function k(D){let{$opener:S,$menuBase:z,menuX:A="left",menuY:H="bottom",menuBaseStyle:M={},inflexible:C=!1,shouldSetMaxHeight:d=!1}=D;if(!S||!z)return{};const y=z.querySelector("*"),c={styleFor$menuBase:{},styleFor$menu:{}},w=Ie=>Object.assign(c.styleFor$menuBase,Ie),j=Ie=>Object.assign(c.styleFor$menu,Ie),{offsetHeight:$}=y,ee=M.width||S.offsetWidth,q=M.height||S.offsetHeight,ae=S.getBoundingClientRect(),{top:Ce,bottom:Q,left:R}=Object.assign({top:ae.top,right:ae.right,bottom:ae.bottom,left:ae.left},M);w({top:Ce+"px",left:R+"px",width:ee+"px",height:q+"px"});const{innerHeight:G}=window,J=10,oe=G-10,te=H==="top"?1/3:2/3,ve=G*te,pe=Ce+q/2,be=Ce+q;return(C&&H==="bottom"||!C&&ve>=pe)&&be+$+x<G?(c.isDownward=!0,d&&Q+$>oe&&j({maxHeight:oe-Q+"px"})):(c.isDownward=!1,d&&Ce-$<J&&j({maxHeight:Ce-J+"px"})),Object.assign(z.style,c.styleFor$menuBase),Object.assign(y.style,c.styleFor$menu),c}var T=o(67787);const Z=T.Ay.label.withConfig({displayName:"styled__StyledDropDown",componentId:"sc-665wv9-0"})(["&.is-disabled{opacity:0.5;> button{cursor:not-allowed;}}"]),O=T.Ay.div.withConfig({displayName:"styled__StyledDropDownMenu",componentId:"sc-665wv9-1"})(["position:absolute;margin:0.25em 0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;min-width:7em;font-size:12px;filter:drop-shadow(0 2px 10px rgba(39,54,78,0.12)) drop-shadow(4px 12px 40px rgba(39,54,78,0.12));pointer-events:none;opacity:0;transition:0.2s ease-in-out;transition-property:transform,opacity;transform-origin:50% 0;transform:scale(0.9);&.is-open{pointer-events:initial;opacity:1;transform:scale(1);}&.x-left{left:0;}&.x-right{left:initial;right:0;}&.x-center{left:50%;transform:scale(0.9) translateX(-50%);&.is-open{transform:scale(1) translateX(-50%);}}&.is-downward{top:100%;bottom:initial;}&.is-upward{top:initial;bottom:100%;}&.arrowed{margin-top:0.75em;margin-bottom:0.75em;&.x-left.x-arrow-based{left:50%;margin-left:-14px;}&.x-right.x-arrow-based{left:initial;right:50%;margin-right:-14px;}}.arrow{position:absolute;top:0;left:calc(50% - 0.5em);width:1em;height:0.375em;font-size:14px;line-height:0;fill:currentColor;fill-rule:evenodd;color:#fff;svg{position:absolute;width:auto;height:5px;transform:translateY(-100%);}}&.dark .arrow{color:rgba(30,41,46,.9);}&.x-left .arrow{left:0.5em;right:initial;}&.x-right .arrow{left:initial;right:0.5em;}&.is-upward .arrow{transform:rotate(180deg);top:initial;bottom:0;}.content{padding:0.75em 0.5em;min-height:32px;background-color:#fff;border-radius:4px;}&.dark .content{background-color:rgba(30,41,46,.9);color:#fff;}ul.MenuList{margin:0;padding:0;list-style:none;text-align:center;color:#5b6b73;li{line-height:32px;border-radius:2px;cursor:pointer;&:not(.is-disabled):hover{background-color:#f6f7f8;}&.is-active{color:#298df8;}&.is-disabled{cursor:not-allowed;opacity:0.5;}}}"]),m=T.Ay.div.withConfig({displayName:"styled__StyledDropDownBase",componentId:"sc-665wv9-2"})(["position:fixed;z-index:1100;pointer-events:none;"]);var p=o(72214);function h(D,S,z){return(S=E(S))in D?Object.defineProperty(D,S,{value:z,enumerable:!0,configurable:!0,writable:!0}):D[S]=z,D}function E(D){var S=b(D,"string");return typeof S=="symbol"?S:S+""}function b(D,S){if(typeof D!="object"||!D)return D;var z=D[Symbol.toPrimitive];if(z!==void 0){var A=z.call(D,S||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(D)}const v="IBOT_DROPDOWN_MENU_ROOT",a=document.getElementById(v)||Object.assign(document.createElement("div"),{id:v}),u=document.body;u.contains(a)||u.appendChild(a);class L extends I.PureComponent{constructor(){super(...arguments),h(this,"state",{prevProps:this.props,isOpen:this.props.isOpen,$opener:null,currentMenuListItemIdx:this.props.currentMenuListItemIdx}),h(this,"leaveTimeoutList",[]),h(this,"createMenuRef",S=>this.$menuRef=S),h(this,"toggle",S=>this.setState({isOpen:r()(S)?S:!this.state.isOpen})),h(this,"open",()=>this.toggle(!0)),h(this,"close",()=>this.toggle(!1)),h(this,"onMouseEnter",()=>{const{shouldOpenOnHover:S}=this.props;S&&(clearTimeout(this.closeTimeout),!this.hoverTimeout&&Object.assign(this,{hoverTimeout:setTimeout(this.open,this.props.hoverDelay)}))}),h(this,"onMouseLeave",()=>{const{shouldOpenOnHover:S}=this.props;S&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null)}),h(this,"onMouseMove",S=>{var z;let{clientX:A,clientY:H}=S;const{shouldOpenOnHover:M,hoverDelay:C,hoverCloseDelay:d}=this.props,{$opener:y}=this.state;if(!M)return;clearTimeout(this.hoverTimeout),this.hoverTimeout=null;const c=document.elementFromPoint(A,H),w=!y.contains(c),j=!((z=this.$menuRef)!=null&&(z=z.menuBaseRef)!=null&&(z=z.current)!=null&&z.contains(c));j?w&&j&&this.leaveTimeoutList.push(setTimeout(this.close,d!==void 0?d:Math.max(C,300))):(this.leaveTimeoutList.map(clearTimeout),Object.assign(this,{leaveTimeoutList:[]}))}),h(this,"set$opener",S=>this.setState({$opener:S})),h(this,"onSelect",S=>{let{currentTarget:z}=S;const{menuList:A,onSelect:H,shouldCloseOnSelect:M}=this.props;if(typeof H!="function")return;const C=z.dataset.idx,d=A[C],y=typeof d=="string"?d:d&&d.value;H(C,y),this.setState({currentMenuListItemIdx:C}),M&&this.close()})}static getDerivedStateFromProps(S,z){let{prevProps:A,isOpen:H}=z;return i()(S,A)?null:r()(S.isOpen)?{prevProps:S,isOpen:S.isOpen}:{prevProps:S}}componentDidUpdate(S,z){let{isOpen:A}=z;const{onOpen:H,onClose:M,onToggle:C}=this.props,{isOpen:d}=this.state;A!==d&&(d?(H(),C(!0)):(M(),C(!1)))}render(){const{className:S,opener:z,openerType:A,openerClassName:H,shouldCloseOnClickOutside:M}=this.props,{isOpen:C,$opener:d,currentMenuListItemIdx:y}=this.state,c=this.props.isDisabled||this.props.disabled,w=(0,f.Hn)(["Dropdown",C&&"is-open",c&&"is-disabled",S]),j={onClick:this.toggle,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseEnter,disabled:c,className:H};return(0,p.jsxs)(Z,{ref:this.set$opener,className:w,children:[A!=="button"&&(0,I.isValidElement)(z)?(0,I.cloneElement)(z,j):(0,p.jsx)("button",{type:"button",...j,children:z}),(0,p.jsx)(B,{ref:this.createMenuRef,...this.props,isOpen:C,$opener:d,onSelect:this.onSelect,onClose:this.close,shouldCloseOnClickOutside:M,currentMenuListItemIdx:y}),C&&(0,p.jsx)(U.A,{target:document,onMouseMove:this.onMouseMove})]})}}h(L,"positionMenu",k),h(L,"propTypes",{isOpen:_().bool,mode:_().oneOf(["light","dark"]),opener:_().node,openerType:_().oneOf(["button","custom"]),className:_().string,portalClassName:_().string,menuBaseClassName:_().string,openerClassName:_().string,menuClassName:_().string,menuBaseStyle:_().shape({top:_().number,right:_().number,bottom:_().number,width:_().number,height:_().number}),menu:_().node,menuList:_().arrayOf(_().oneOfType([_().node,_().shape({label:_().node,value:_().any,isDisabled:_().bool})])),currentMenuListItemIdx:_().oneOfType([_().number,_().string]),shouldPreventScrollingPropagation:_().bool,shouldOpenOnHover:_().bool,shouldCloseOnClickOutside:_().bool,hoverDelay:_().oneOfType([_().number,_().string]),hoverCloseDelay:_().oneOfType([_().number,_().string]),arrowed:_().bool,inflexible:_().bool,menuX:_().oneOf(["left","center","right"]),menuY:_().oneOf(["top","bottom"]),menuBasedX:_().bool,isDisabled:_().bool,disabled:_().bool,onSelect:_().func,shouldCloseOnSelect:_().bool,onOpen:_().func.isRequired,onClose:_().func.isRequired,onToggle:_().func.isRequired}),h(L,"defaultProps",{arrowed:!1,openerType:"button",mode:"light",shouldPreventScrollingPropagation:!0,shouldCloseOnSelect:!0,shouldOpenOnHover:!1,shouldCloseOnClickOutside:!0,hoverDelay:200,menuX:"center",menuY:"bottom",inflexible:!1,menuBasedX:!1,onOpen:()=>null,onClose:()=>null,onToggle:()=>null});class B extends I.PureComponent{constructor(){super(...arguments),h(this,"state",{isDownward:this.props.position==="bottom"}),h(this,"portal",(0,f.ep)(a,(0,f.Hn)(["DropdownMenuPortal",this.props.portalClassName]))),h(this,"menuBaseRef",(0,I.createRef)()),h(this,"onResizeWindow",()=>this.props.isOpen&&this.position()),h(this,"onClickOutside",S=>{let{target:z}=S;const{$opener:A,onClose:H,shouldCloseOnClickOutside:M}=this.props;if(!M)return;const C=!a.contains(z),d=z.closest("label"),y=d&&d.contains(A),c=!!(0,f.$)(".SelectMenu.is-open");C&&!y&&!c&&H()}),h(this,"position",()=>{const{$opener:S,menuX:z,menuY:A,menuBaseStyle:H,inflexible:M}=this.props,{menuBaseRef:{current:C}}=this,{isDownward:d}=k({$menuBase:C,$opener:S,menuX:z,menuY:A,menuBaseStyle:H,inflexible:M});this.setState({isDownward:d})})}componentDidMount(){const{isOpen:S,shouldPreventScrollingPropagation:z}=this.props,{menuBaseRef:{current:A}}=this;S&&setTimeout(this.position),z&&(0,f.sA)((0,f.$)(".content",A)),window.addEventListener("resize",this.onResizeWindow)}componentDidUpdate(S){let{isOpen:z}=S;const{isOpen:A}=this.props;!z&&A&&this.position()}componentWillUnmount(){this.portal&&this.portal.remove(),window.removeEventListener("resize",this.onResizeWindow)}render(){const{portal:S,menu:z}=this;return(0,W.createPortal)(z,S)}get menu(){const{isOpen:S,mode:z,menuBaseClassName:A,menuClassName:H,menu:M,menuList:C,arrowed:d,menuX:y,menuBasedX:c,currentMenuListItemIdx:w,onSelect:j}=this.props,{isDownward:$}=this.state,ee=(0,f.Hn)(["DropdownMenu",z,S&&"is-open",$?"is-downward":"is-upward","x-"+y,d&&"arrowed "+(c?"x-menu-based":"x-arrow-based"),H]);return(0,p.jsx)(m,{ref:this.menuBaseRef,className:(0,f.Hn)(["DropdownMenuBase",A]),children:(0,p.jsxs)(O,{className:ee,children:[d&&(0,p.jsx)("span",{className:"arrow",dangerouslySetInnerHTML:{__html:f.t4.mr}}),(0,p.jsx)("div",{className:"content",children:C?(0,p.jsx)("ul",{className:"MenuList",children:C.map((q,ae)=>(0,p.jsx)("li",{role:"option","data-idx":ae,className:(0,f.Hn)([q.isDisabled&&"is-disabled",ae===Number(w)&&"is-active"]),onClick:q.isDisabled?void 0:j,children:q.label||q},ae))}):M}),S&&(0,p.jsx)(U.A,{target:document,onClick:(0,U.t)(this.onClickOutside,{capture:!0})}),S&&(0,p.jsx)(U.A,{target:document,onScroll:(0,U.t)(this.position,{capture:!0})})]})})}}h(B,"propTypes",{...L.propTypes,isOpen:_().bool,$opener:_().instanceOf(Element),onSelect:_().func,onClose:_().func})},37862:(me,V,o)=>{var l=o(70168),r=o(43293);function N(i){return l(i)&&i.nodeType===1&&!r(i)}me.exports=N},39303:(me,V,o)=>{"use strict";o.d(V,{A:()=>i});var l=o(15207),r=o(67787);const i=(0,r.Ay)(l.f).withConfig({displayName:"ThemeLoading",componentId:"sc-1f7bkn3-0"})(["svg g g:first-child g path:last-child{stroke:",";}svg g g:last-child g path:last-child{stroke:",";}"],I=>I.theme.color_btn_secondary_active,I=>I.theme.color_text_disabled01)},41440:(me,V,o)=>{var l=o(43293);function r(N){return l(N)?void 0:N}me.exports=r},43293:(me,V,o)=>{var l=o(41678),r=o(41413),N=o(70168),i="[object Object]",I=Function.prototype,W=Object.prototype,P=I.toString,_=W.hasOwnProperty,U=P.call(Object);function f(x){if(!N(x)||l(x)!=i)return!1;var k=r(x);if(k===null)return!0;var T=_.call(k,"constructor")&&k.constructor;return typeof T=="function"&&T instanceof T&&P.call(T)==U}me.exports=f},45308:(me,V,o)=>{var l=o(71602);function r(N){var i=N==null?0:N.length;return i?l(N,1):[]}me.exports=r},45525:(me,V,o)=>{var l=o(32554),r=o(86789),N=o(48605),i=o(68151),I=o(31493),W=o(41440),P=o(85378),_=o(24235),U=1,f=2,x=4,k=P(function(T,Z){var O={};if(T==null)return O;var m=!1;Z=l(Z,function(h){return h=i(h,T),m||(m=h.length>1),h}),I(T,_(T),O),m&&(O=r(O,U|f|x,W));for(var p=Z.length;p--;)N(O,Z[p]);return O});me.exports=k},47507:(me,V,o)=>{"use strict";o.d(V,{q:()=>r});const l={common_white:"#FFFFFF",common_black:"#000000",primary_blue_01:"#126ACA",primary_blue_02:"#1684FC",primary_blue_03:"#459DFD",primary_blue_04:"#8AC1FD",primary_blue_05:"#B9DAFE",primary_blue_06:"#D0E6FE",primary_blue_07:"#E8F3FF",primary_blue_08:"#F5F8FD",primary_gray_01:"#19191A",primary_gray_02:"#555557",primary_gray_03:"#7D8CA5",primary_gray_04:"#9EA9BC",primary_gray_05:"#BEC5D2",primary_gray_06:"#D2D9E4",primary_gray_07:"#E1E6EF",primary_gray_08:"#F0F2F7",primary_gray_09:"#F3F5F9",primary_red_01:"#DD4747",primary_red_02:"#F85050",primary_red_03:"#F97373",primary_red_04:"#FDC2C2",primary_red_05:"#FEE5E5"},r={color_btn_primary_normal:l.primary_blue_02,color_btn_primary_hover:l.primary_blue_03,color_btn_primary_click:l.primary_blue_01,color_btn_primary_disable:l.primary_blue_05,color_btn_secondary_click:l.primary_blue_06,color_btn_secondary_normal:l.primary_blue_08,color_btn_secondary_hover:l.primary_blue_07,color_btn_outline_click:l.primary_gray_07,color_btn_outline_normal:l.common_white,color_btn_outline_hover:l.primary_gray_08,color_bg_normal:l.common_white,color_bg_card:l.primary_blue_08,color_bg_menu_click:l.primary_blue_06,color_bg_card_hover:l.primary_gray_07,color_bg_menu_hover:l.primary_blue_07,color_bg_input_hover:l.primary_gray_08,color_bg_input_normal:l.primary_gray_09,color_bg_item_gray:l.primary_gray_08,color_bg_item_hover:l.primary_gray_09,color_bg_fill_common_blue:l.primary_blue_02,color_bg_menu_drag_border:l.primary_blue_06,color_bg_card_hover_fusion_gray:l.primary_gray_06,color_bg_card_hover_fusion_blue:l.primary_blue_05,color_bg_card_hover_fusion:l.primary_gray_06,color_bg_secondary_btn:l.primary_blue_08,color_bg_btn_normal_hover:l.primary_gray_08,color_bg_btn_normal_active:l.primary_gray_07,color_bg_icon_gray:l.primary_gray_04,color_bg_icon_hover:l.primary_gray_03,color_text_L1:l.primary_gray_01,color_text_L2:l.primary_gray_02,color_text_L3:l.primary_gray_03,color_text_L4:l.primary_gray_04,color_text_L5:l.primary_blue_02,color_text_white:l.common_white,color_text_blue:l.primary_blue_02,color_text_blue_hover:l.primary_blue_01,color_text_blue_active:l.primary_blue_03,color_text_disable_01:l.primary_gray_05,color_tab_line:l.primary_gray_06,color_split_line:l.primary_gray_07,color_border_blue_common:l.primary_blue_02,color_btn_border_normal:l.primary_blue_05,color_btn_border_disable:l.primary_blue_07,color_btn_secondary_border_normal:l.primary_blue_06,color_btn_secondary_border_hover:l.primary_blue_07,color_btn_danger_normal:l.primary_red_02,color_btn_danger_hover:l.primary_red_03,color_btn_danger_click:l.primary_red_01,color_btn_danger_disable:l.primary_red_04,color_bg_modal_item_header:l.primary_gray_09,color_bg_light_red:l.primary_red_05,color_alarm_common:l.primary_red_02}},47946:(me,V,o)=>{"use strict";o.d(V,{pX:()=>To,O3:()=>jo,tr:()=>Ao,ur:()=>Oo});var l={};if(o.r(l),o.d(l,{Decoder:()=>Pt,Encoder:()=>js,PacketType:()=>Oe,protocol:()=>Os}),o.j!=15)var r=o(76805);if(o.j!=15)var N=o(60892);const i=Object.create(null);i.open="0",i.close="1",i.ping="2",i.pong="3",i.message="4",i.upgrade="5",i.noop="6";const I=Object.create(null);Object.keys(i).forEach(s=>{I[i[s]]=s});const W={type:"error",data:"parser error"},P=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",_=typeof ArrayBuffer=="function",U=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,f=(s,e,t)=>{let{type:n,data:g}=s;return P&&g instanceof Blob?e?t(g):x(g,t):_&&(g instanceof ArrayBuffer||U(g))?e?t(g):x(new Blob([g]),t):t(i[n]+(g||""))},x=(s,e)=>{const t=new FileReader;return t.onload=function(){const n=t.result.split(",")[1];e("b"+(n||""))},t.readAsDataURL(s)};function k(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let T;function Z(s,e){if(P&&s.data instanceof Blob)return s.data.arrayBuffer().then(k).then(e);if(_&&(s.data instanceof ArrayBuffer||U(s.data)))return e(k(s.data));f(s,!1,t=>{T||(T=new TextEncoder),e(T.encode(t))})}const O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<O.length;s++)m[O.charCodeAt(s)]=s;const p=s=>{let e=new Uint8Array(s),t,n=e.length,g="";for(t=0;t<n;t+=3)g+=O[e[t]>>2],g+=O[(e[t]&3)<<4|e[t+1]>>4],g+=O[(e[t+1]&15)<<2|e[t+2]>>6],g+=O[e[t+2]&63];return n%3===2?g=g.substring(0,g.length-1)+"=":n%3===1&&(g=g.substring(0,g.length-2)+"=="),g},h=s=>{let e=s.length*.75,t=s.length,n,g=0,F,ne,re,ce;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const ge=new ArrayBuffer(e),ue=new Uint8Array(ge);for(n=0;n<t;n+=4)F=m[s.charCodeAt(n)],ne=m[s.charCodeAt(n+1)],re=m[s.charCodeAt(n+2)],ce=m[s.charCodeAt(n+3)],ue[g++]=F<<2|ne>>4,ue[g++]=(ne&15)<<4|re>>2,ue[g++]=(re&3)<<6|ce&63;return ge},E=typeof ArrayBuffer=="function",b=(s,e)=>{if(typeof s!="string")return{type:"message",data:a(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:v(s.substring(1),e)}:I[t]?s.length>1?{type:I[t],data:s.substring(1)}:{type:I[t]}:W},v=(s,e)=>{if(E){const t=h(s);return a(t,e)}else return{base64:!0,data:s}},a=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},u="",L=(s,e)=>{const t=s.length,n=new Array(t);let g=0;s.forEach((F,ne)=>{f(F,!1,re=>{n[ne]=re,++g===t&&e(n.join(u))})})},B=(s,e)=>{const t=s.split(u),n=[];for(let g=0;g<t.length;g++){const F=b(t[g],e);if(n.push(F),F.type==="error")break}return n};function D(){return new TransformStream({transform(s,e){Z(s,t=>{const n=t.length;let g;if(n<126)g=new Uint8Array(1),new DataView(g.buffer).setUint8(0,n);else if(n<65536){g=new Uint8Array(3);const F=new DataView(g.buffer);F.setUint8(0,126),F.setUint16(1,n)}else{g=new Uint8Array(9);const F=new DataView(g.buffer);F.setUint8(0,127),F.setBigUint64(1,BigInt(n))}s.data&&typeof s.data!="string"&&(g[0]|=128),e.enqueue(g),e.enqueue(t)})}})}let S;function z(s){return s.reduce((e,t)=>e+t.length,0)}function A(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let n=0;for(let g=0;g<e;g++)t[g]=s[0][n++],n===s[0].length&&(s.shift(),n=0);return s.length&&n<s[0].length&&(s[0]=s[0].slice(n)),t}function H(s,e){S||(S=new TextDecoder);const t=[];let n=0,g=-1,F=!1;return new TransformStream({transform(ne,re){for(t.push(ne);;){if(n===0){if(z(t)<1)break;const ce=A(t,1);F=(ce[0]&128)===128,g=ce[0]&127,g<126?n=3:g===126?n=1:n=2}else if(n===1){if(z(t)<2)break;const ce=A(t,2);g=new DataView(ce.buffer,ce.byteOffset,ce.length).getUint16(0),n=3}else if(n===2){if(z(t)<8)break;const ce=A(t,8),ge=new DataView(ce.buffer,ce.byteOffset,ce.length),ue=ge.getUint32(0);if(ue>Math.pow(2,21)-1){re.enqueue(W);break}g=ue*Math.pow(2,32)+ge.getUint32(4),n=3}else{if(z(t)<g)break;const ce=A(t,g);re.enqueue(b(F?ce:S.decode(ce),e)),n=0}if(g===0||g>s){re.enqueue(W);break}}}})}const M=4;function C(s){if(s)return d(s)}function d(s){for(var e in C.prototype)s[e]=C.prototype[e];return s}C.prototype.on=C.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this},C.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this},C.prototype.off=C.prototype.removeListener=C.prototype.removeAllListeners=C.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var n,g=0;g<t.length;g++)if(n=t[g],n===e||n.fn===e){t.splice(g,1);break}return t.length===0&&delete this._callbacks["$"+s],this},C.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t){t=t.slice(0);for(var n=0,g=t.length;n<g;++n)t[n].apply(this,e)}return this},C.prototype.emitReserved=C.prototype.emit,C.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]},C.prototype.hasListeners=function(s){return!!this.listeners(s).length};const y=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function c(s){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.reduce((g,F)=>(s.hasOwnProperty(F)&&(g[F]=s[F]),g),{})}const w=y.setTimeout,j=y.clearTimeout;function $(s,e){e.useNativeTimers?(s.setTimeoutFn=w.bind(y),s.clearTimeoutFn=j.bind(y)):(s.setTimeoutFn=y.setTimeout.bind(y),s.clearTimeoutFn=y.clearTimeout.bind(y))}const ee=1.33;function q(s){return typeof s=="string"?ae(s):Math.ceil((s.byteLength||s.size)*ee)}function ae(s){let e=0,t=0;for(let n=0,g=s.length;n<g;n++)e=s.charCodeAt(n),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(n++,t+=4);return t}function Ce(s){let e="";for(let t in s)s.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(s[t]));return e}function Q(s){let e={},t=s.split("&");for(let n=0,g=t.length;n<g;n++){let F=t[n].split("=");e[decodeURIComponent(F[0])]=decodeURIComponent(F[1])}return e}class R extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class G extends C{constructor(e){super(),this.writable=!1,$(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new R(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=b(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t){return t===void 0&&(t={}),e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Ce(e);return t.length?"?"+t:""}}const J="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),oe=64,te={};let ve=0,pe=0,be;function Ie(s){let e="";do e=J[s%oe]+e,s=Math.floor(s/oe);while(s>0);return e}function ke(s){let e=0;for(pe=0;pe<s.length;pe++)e=e*oe+te[s.charAt(pe)];return e}function Re(){const s=Ie(+new Date);return s!==be?(ve=0,be=s):s+"."+Ie(ve++)}for(;pe<oe;pe++)te[J[pe]]=pe;let ze=!1;try{ze=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(s){}const He=ze;function We(s){const e=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||He))return new XMLHttpRequest}catch(t){}if(!e)try{return new y[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}function Ve(){}function Y(){}const K=function(){return new We({xdomain:!1}).responseType!=null}();class ie extends G{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const n=location.protocol==="https:";let g=location.port;g||(g=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||g!==e.port}const t=e&&e.forceBase64;this.supportsBinary=K&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let n=0;this.polling&&(n++,this.once("pollComplete",function(){--n||t()})),this.writable||(n++,this.once("drain",function(){--n||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};B(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,L(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Re()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e){return e===void 0&&(e={}),Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new he(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(g,F)=>{this.onError("xhr post error",g,F)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,n)=>{this.onError("xhr poll error",t,n)}),this.pollXhr=e}}class he extends C{constructor(e,t){super(),$(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=c(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new We(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let g in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(g)&&n.setRequestHeader(g,this.opts.extraHeaders[g])}}catch(g){}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(g){}try{n.setRequestHeader("Accept","*/*")}catch(g){}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var g;n.readyState===3&&((g=this.opts.cookieJar)===null||g===void 0||g.parseCookies(n)),n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(g){this.setTimeoutFn(()=>{this.onError(g)},0);return}typeof document<"u"&&(this.index=he.requestsCount++,he.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Y,e)try{this.xhr.abort()}catch(t){}typeof document<"u"&&delete he.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(he.requestsCount=0,he.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Me);else if(typeof addEventListener=="function"){const s="onpagehide"in y?"pagehide":"unload";addEventListener(s,Me,!1)}}function Me(){for(let s in he.requests)he.requests.hasOwnProperty(s)&&he.requests[s].abort()}const je=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Ke=y.WebSocket||y.MozWebSocket,st=!0,et="arraybuffer",lt=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ys extends G{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=lt?{}:c(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=st&&!lt?t?new Ke(e,t):new Ke(e):new Ke(e,t,n)}catch(g){return this.emitReserved("error",g)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],g=t===e.length-1;f(n,this.supportsBinary,F=>{const ne={};st||(n.options&&(ne.compress=n.options.compress),this.opts.perMessageDeflate&&(typeof F=="string"?Buffer.byteLength(F):F.length)<this.opts.perMessageDeflate.threshold&&(ne.compress=!1));try{st?this.ws.send(F):this.ws.send(F,ne)}catch(re){}g&&je(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Re()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Ke}}class vs extends G{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=H(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),g=D();g.readable.pipeTo(e.writable),this.writer=g.writable.getWriter();const F=()=>{n.read().then(re=>{let{done:ce,value:ge}=re;ce||(this.onPacket(ge),F())}).catch(re=>{})};F();const ne={type:"open"};this.query.sid&&(ne.data='{"sid":"'+this.query.sid+'"}'),this.writer.write(ne).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],g=t===e.length-1;this.writer.write(n).then(()=>{g&&je(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const bs={websocket:ys,webtransport:vs,polling:ie},xs=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Cs=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ot(s){if(s.length>2e3)throw"URI too long";const e=s,t=s.indexOf("["),n=s.indexOf("]");t!=-1&&n!=-1&&(s=s.substring(0,t)+s.substring(t,n).replace(/:/g,";")+s.substring(n,s.length));let g=xs.exec(s||""),F={},ne=14;for(;ne--;)F[Cs[ne]]=g[ne]||"";return t!=-1&&n!=-1&&(F.source=e,F.host=F.host.substring(1,F.host.length-1).replace(/;/g,":"),F.authority=F.authority.replace("[","").replace("]","").replace(/;/g,":"),F.ipv6uri=!0),F.pathNames=ws(F,F.path),F.queryKey=Ms(F,F.query),F}function ws(s,e){const t=/\/{2,9}/g,n=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Ms(s,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,g,F){g&&(t[g]=F)}),t}class ut extends C{constructor(e,t){t===void 0&&(t={}),super(),this.binaryType=et,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=Ot(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Ot(t.host).host),$(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Q(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=M,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new bs[e](n)}open(){let e;if(this.opts.rememberUpgrade&&ut.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(t){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),n=!1;ut.priorWebsocketSuccess=!1;const g=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",xe=>{if(!n)if(xe.type==="pong"&&xe.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ut.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(ue(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const X=new Error("probe error");X.transport=t.name,this.emitReserved("upgradeError",X)}}))};function F(){n||(n=!0,ue(),t.close(),t=null)}const ne=xe=>{const X=new Error("probe error: "+xe);X.transport=t.name,F(),this.emitReserved("upgradeError",X)};function re(){ne("transport closed")}function ce(){ne("socket closed")}function ge(xe){t&&xe.name!==t.name&&F()}const ue=()=>{t.removeListener("open",g),t.removeListener("error",ne),t.removeListener("close",re),this.off("close",ce),this.off("upgrading",ge)};t.once("open",g),t.once("error",ne),t.once("close",re),this.once("close",ce),this.once("upgrading",ge),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",ut.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let n=0;n<this.writeBuffer.length;n++){const g=this.writeBuffer[n].data;if(g&&(t+=q(g)),n>0&&t>this.maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,g){if(typeof t=="function"&&(g=t,t=void 0),typeof n=="function"&&(g=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const F={type:e,data:t,options:n};this.emitReserved("packetCreate",F),this.writeBuffer.push(F),g&&this.once("flush",g),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){ut.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const g=e.length;for(;n<g;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}ut.protocol=M;const Bo=ut.protocol;function Es(s,e,t){e===void 0&&(e="");let n=s;t=t||typeof location<"u"&&location,s==null&&(s=t.protocol+"//"+t.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=t.protocol+s:s=t.host+s),/^(https?|wss?):\/\//.test(s)||(typeof t<"u"?s=t.protocol+"//"+s:s="https://"+s),n=Ot(s)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const F=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+F+":"+n.port+e,n.href=n.protocol+"://"+F+(t&&t.port===n.port?"":":"+n.port),n}const Ss=typeof ArrayBuffer=="function",Ns=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,Wt=Object.prototype.toString,Ts=typeof Blob=="function"||typeof Blob<"u"&&Wt.call(Blob)==="[object BlobConstructor]",_s=typeof File=="function"||typeof File<"u"&&Wt.call(File)==="[object FileConstructor]";function jt(s){return Ss&&(s instanceof ArrayBuffer||Ns(s))||Ts&&s instanceof Blob||_s&&s instanceof File}function Mt(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,n=s.length;t<n;t++)if(Mt(s[t]))return!0;return!1}if(jt(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return Mt(s.toJSON(),!0);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&Mt(s[t]))return!0;return!1}function Ls(s){const e=[],t=s.data,n=s;return n.data=At(t,e),n.attachments=e.length,{packet:n,buffers:e}}function At(s,e){if(!s)return s;if(jt(s)){const t={_placeholder:!0,num:e.length};return e.push(s),t}else if(Array.isArray(s)){const t=new Array(s.length);for(let n=0;n<s.length;n++)t[n]=At(s[n],e);return t}else if(typeof s=="object"&&!(s instanceof Date)){const t={};for(const n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=At(s[n],e));return t}return s}function Is(s,e){return s.data=Dt(s.data,e),delete s.attachments,s}function Dt(s,e){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<e.length)return e[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let t=0;t<s.length;t++)s[t]=Dt(s[t],e);else if(typeof s=="object")for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=Dt(s[t],e));return s}const ks=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Os=5;var Oe;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(Oe||(Oe={}));class js{constructor(e){this.replacer=e}encode(e){return(e.type===Oe.EVENT||e.type===Oe.ACK)&&Mt(e)?this.encodeAsBinary({type:e.type===Oe.EVENT?Oe.BINARY_EVENT:Oe.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===Oe.BINARY_EVENT||e.type===Oe.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Ls(e),n=this.encodeAsString(t.packet),g=t.buffers;return g.unshift(n),g}}function Vt(s){return Object.prototype.toString.call(s)==="[object Object]"}class Pt extends C{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===Oe.BINARY_EVENT;n||t.type===Oe.BINARY_ACK?(t.type=n?Oe.EVENT:Oe.ACK,this.reconstructor=new As(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(jt(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(Oe[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===Oe.BINARY_EVENT||n.type===Oe.BINARY_ACK){const F=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const ne=e.substring(F,t);if(ne!=Number(ne)||e.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(ne)}if(e.charAt(t+1)==="/"){const F=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););n.nsp=e.substring(F,t)}else n.nsp="/";const g=e.charAt(t+1);if(g!==""&&Number(g)==g){const F=t+1;for(;++t;){const ne=e.charAt(t);if(ne==null||Number(ne)!=ne){--t;break}if(t===e.length)break}n.id=Number(e.substring(F,t+1))}if(e.charAt(++t)){const F=this.tryParse(e.substr(t));if(Pt.isPayloadValid(n.type,F))n.data=F;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case Oe.CONNECT:return Vt(t);case Oe.DISCONNECT:return t===void 0;case Oe.CONNECT_ERROR:return typeof t=="string"||Vt(t);case Oe.EVENT:case Oe.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&ks.indexOf(t[0])===-1);case Oe.ACK:case Oe.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class As{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=Is(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function it(s,e,t){return s.on(e,t),function(){s.off(e,t)}}const Ds=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Kt extends C{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[it(e,"open",this.onopen.bind(this)),it(e,"packet",this.onpacket.bind(this)),it(e,"error",this.onerror.bind(this)),it(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}emit(e){if(Ds.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');for(var t=arguments.length,n=new Array(t>1?t-1:0),g=1;g<t;g++)n[g-1]=arguments[g];if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const F={type:Oe.EVENT,data:n};if(F.options={},F.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const ce=this.ids++,ge=n.pop();this._registerAckCallback(ce,ge),F.id=ce}const ne=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!ne||!this.connected)||(this.connected?(this.notifyOutgoingListeners(F),this.packet(F)):this.sendBuffer.push(F)),this.flags={},this}_registerAckCallback(e,t){var n=this,g;const F=(g=this.flags.timeout)!==null&&g!==void 0?g:this._opts.ackTimeout;if(F===void 0){this.acks[e]=t;return}const ne=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let ce=0;ce<this.sendBuffer.length;ce++)this.sendBuffer[ce].id===e&&this.sendBuffer.splice(ce,1);t.call(this,new Error("operation has timed out"))},F),re=function(){n.io.clearTimeoutFn(ne);for(var ce=arguments.length,ge=new Array(ce),ue=0;ue<ce;ue++)ge[ue]=arguments[ue];t.apply(n,ge)};re.withError=!0,this.acks[e]=re}emitWithAck(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),g=1;g<t;g++)n[g-1]=arguments[g];return new Promise((F,ne)=>{const re=(ce,ge)=>ce?ne(ce):F(ge);re.withError=!0,n.push(re),this.emit(e,...n)})}_addToQueue(e){var t=this;let n;typeof e[e.length-1]=="function"&&(n=e.pop());const g={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(function(F){if(g!==t._queue[0])return;if(F!==null)g.tryCount>t._opts.retries&&(t._queue.shift(),n&&n(F));else if(t._queue.shift(),n){for(var re=arguments.length,ce=new Array(re>1?re-1:0),ge=1;ge<re;ge++)ce[ge-1]=arguments[ge];n(null,...ce)}return g.pending=!1,t._drainQueue()}),this._queue.push(g),this._drainQueue()}_drainQueue(e){if(e===void 0&&(e=!1),!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Oe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){const n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Oe.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Oe.EVENT:case Oe.BINARY_EVENT:this.onevent(e);break;case Oe.ACK:case Oe.BINARY_ACK:this.onack(e);break;case Oe.DISCONNECT:this.ondisconnect();break;case Oe.CONNECT_ERROR:this.destroy();const n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(){if(!n){n=!0;for(var g=arguments.length,F=new Array(g),ne=0;ne<g;ne++)F[ne]=arguments[ne];t.packet({type:Oe.ACK,id:e,data:F})}}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Oe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function gt(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}gt.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*s);s=(Math.floor(e*10)&1)==0?s-t:s+t}return Math.min(s,this.max)|0},gt.prototype.reset=function(){this.attempts=0},gt.prototype.setMin=function(s){this.ms=s},gt.prototype.setMax=function(s){this.max=s},gt.prototype.setJitter=function(s){this.jitter=s};class Et extends C{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,$(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((n=t.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new gt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const g=t.parser||l;this.encoder=new g.Encoder,this.decoder=new g.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ut(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const g=it(t,"open",function(){n.onopen(),e&&e()}),F=re=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",re),e?e(re):this.maybeReconnectOnOpen()},ne=it(t,"error",F);if(this._timeout!==!1){const re=this._timeout,ce=this.setTimeoutFn(()=>{g(),F(new Error("timeout")),t.close()},re);this.opts.autoUnref&&ce.unref(),this.subs.push(()=>{this.clearTimeoutFn(ce)})}return this.subs.push(g),this.subs.push(ne),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(it(e,"ping",this.onping.bind(this)),it(e,"data",this.ondata.bind(this)),it(e,"error",this.onerror.bind(this)),it(e,"close",this.onclose.bind(this)),it(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){je(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Kt(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t)if(this.nsps[n].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(g=>{g?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",g)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const bt={};function Rt(s,e){typeof s=="object"&&(e=s,s=void 0),e=e||{};const t=Es(s,e.path||"/socket.io"),n=t.source,g=t.id,F=t.path,ne=bt[g]&&F in bt[g].nsps,re=e.forceNew||e["force new connection"]||e.multiplex===!1||ne;let ce;return re?ce=new Et(n,e):(bt[g]||(bt[g]=new Et(n,e)),ce=bt[g]),t.query&&!e.query&&(e.query=t.queryKey),ce.socket(t.path,e)}if(Object.assign(Rt,{Manager:Et,Socket:Kt,io:Rt,connect:Rt}),o.j!=15)var Xt=o(51326);if(o.j!=15)var Ze=o(47437);if(o.j!=15)var ct=o(87612);if(o.j!=15)var Ps=o(27814);const Ft=o.j!=15?2*1e3:null,Bt=o.j!=15?24*1e3:null,Qt=o.j!=15?48*1e3:null,St=()=>{},Rs=()=>({destroy:St,reset:St,emitAsync:Fs,emitLossy:St,getIsConnected:()=>!0,getSocketId:()=>"",getReadyPromise:()=>Promise.resolve(),getOffsetMsec:()=>0,DUMMY:!0}),Fs=async(s,e)=>({type:s,payload:e,isDummy:!0}),Bs=s=>{let{query:{uId:e,fURL:t=globalThis.location.href.slice(0,128),uTag:n=Ze.CH,vTag:g=Ps.r,rKey:F},lossyListenerMap:ne={},queueListenerMap:re={},socketUrl:ce=globalThis.location.origin,socketPath:ge=Ze.$r,usePolling:ue=!1}=s;if(!e||!F)throw new Error("SKT bad query");const xe=(0,Xt.I6)();let X,se=(0,r.wT)(),le=0,ye=null;const Se=()=>{X!==void 0&&(X.close(),X=void 0,se=(0,r.wT)(),Fe=!1,ye&&clearTimeout(ye),ye=null)},Ae=()=>{Se();const Te=new Et(ce,{path:ge,query:{uId:e,fURL:t,uTag:n,vTag:g,rKey:F},transports:ue?["polling","websocket"]:["websocket"],timeout:Qt,reconnectionDelay:Math.round((Ft+Bt)/2),reconnectionDelayMax:Qt,randomizationFactor:(Bt-Ft)/(Bt+Ft),closeOnBeforeunload:!1}).socket(Ze.I4);Te.on("connect_error",fe=>{console.log("[socket] connect_error",fe),fe.message.includes(Ze.uB)&&(Se(),xe.dispatchEvent({type:Ze.VU,payload:{error:fe}})),xe.dispatchEvent({type:Ze.Ei,payload:{error:fe}})}),Te.on("connect",async()=>{console.log("[socket] connect");{const fe=Date.now(),Ee=await(0,r.hq)(Je(Ze.Ip),10*1e3,Ze.Ip).catch(async Ne=>{throw(0,N.et)(Ae,2*1e3),console.warn(Ze.Ip,Ne),se.reject(Ne),Ne}),we=Date.now();le=Ee-(fe+we)*.5}ye=(0,N.et)(()=>{!X||!X.connected||Fe||Ae()},(1+Math.random())*30*60*1e3),console.log("[socket] ready"),xe.dispatchEvent({type:Ze.zS}),se.resolve()});{let fe=Promise.resolve();const Ee=(we,Ne)=>{const _e=fe.then(we);return fe=_e.then(St,Be=>{(0,ct.p)("SKT-QA-"+Ne,Be)}),_e};xe.clear();for(const[we,Ne]of Object.entries(ne))Te.on(we,_e=>Ne({type:we,payload:_e})),xe.addEventListener(we,_e=>{let{payload:Be}=_e;return Ne({type:we,payload:Be})});for(const[we,Ne]of Object.entries(re))Te.on(we,_e=>Ee(()=>Ne({type:we,payload:_e}),we)),xe.addEventListener(we,_e=>{let{payload:Be}=_e;return Ee(()=>Ne({type:we,payload:Be}),we)})}X=Te};let Fe=!1;const Je=async(nt,Te)=>{Fe=!0;const{error:fe,result:Ee}=await(0,r.hq)(new Promise(we=>X.emit(nt,Te,we)),42*1e3,"SKT-USR "+nt).finally(()=>{Fe=!1});if(fe!==void 0)throw Object.assign(new Error(typeof fe=="object"&&fe.message||"SKT-USR "+nt),fe);return Ee},De=(nt,Te)=>{X.volatile.emit(nt,Te)};return Ae(),{destroy:Se,reset:Ae,emitAsync:Je,emitLossy:De,getIsConnected:()=>X&&X.connected||!1,getSocketId:()=>X&&X.id||"",getReadyPromise:()=>se.promise,getOffsetMsec:()=>le}};var dt=o(41011),ot=o(29158),Ut=o(26812),$e=o(38047);if(o.j!=15)var Pe=o(69415);if(o.j!=15)var tt=o(86033);var yt=o(8984);const Nt=0,Us={cDebugMin:Nt,cCmtPack:Nt+1,cCmtThread:Nt+2,cCmtContent:Nt+3,cDebugMax:35},vt=(0,yt.W)("cmt-type",Us),Jt=vt.pack("cCmtPack"),qt=vt.pack("cCmtThread"),es=vt.pack("cCmtContent"),Uo=new Set(["cCmtPack","cCmtThread","cCmtContent"]),zo=new Set([Jt,qt,es]);if(o.j!=15)var ts=o(40093);const zs={unstyled:0,"header-one":1,"header-two":2,"header-three":3,"ordered-list-item":4,"unordered-list-item":5,atomic:6},ss=(0,yt.W)("DraftBlockType",zs),Zs={left:0,center:1,right:2,justify:3},Tt=(0,yt.W)("DraftAlignment",Zs),Gs={LINK:0,IMAGE:1},os=(0,yt.W)("DraftEntityMapType",Gs),Ys={MUTABLE:0,IMMUTABLE:1,SEGMENTED:2},ns=(0,yt.W)("DraftEntityMapMutability",Ys),$s={_blank:0,_self:1},rs=(0,yt.W)("DraftLinkTargetOption",$s),Hs=s=>{const e={};return Object.keys(s).forEach(t=>{const{type:n,mutability:g,data:F}=s[t],ne=[os.pack(n),ns.pack(g)],re=[];n==="LINK"?(ne.push(rs.pack(F.targetOption)),re.push(F.url||"")):n==="IMAGE"&&(ne.push((0,Pe.c5)(F.width),Tt.pack(F.alignment)),re.push(F.src||"",F.alt||"")),e["e/"+t]=[ne.join(tt.xi),...re]}),e},Ws=s=>{const e={};for(const t of Object.keys(s)){if(!t.startsWith("e/"))continue;const n=t.split("e/")[1],[g,...F]=s[t],[ne,re,ce,ge]=g.split(tt.xi),ue=os.parse(ne),xe=ns.parse(re);e[n]=ue==="LINK"?{type:ue,mutability:xe,data:{url:F[0],targetOption:rs.parse(ce)}}:{type:ue,mutability:xe,data:{src:F[0],alt:F[1],width:(0,Pe._3)(ce),alignment:Tt.parse(ge)}}}return e},Vs=s=>{const e={};return Object.keys(s).forEach(t=>{const{text:n,type:g,depth:F,inlineStyleRanges:ne,entityRanges:re,data:{textAlign:ce,textIndent:ge,paraSpacing:ue}}=s[t],xe=[ss.packDef(g,"unstyled"),(0,Pe.c5)(F),ce?Tt.pack(ce):"",ge!==void 0?(0,Pe.c5)(ge):"",ue!==void 0?(0,$e.ZI)(ue):""];e["b/"+t]=[xe.join(tt.xi),n,ne.map(X=>{let{offset:se,length:le,style:ye}=X;return Qs(se,le,ye)}),re.map(X=>{let{offset:se,length:le,key:ye}=X;return Ks(se,le,ye)})]}),e},Ks=(s,e,t)=>""+(0,Pe.c5)(s)+tt.xi+(0,Pe.c5)(e)+tt.xi+(0,Pe.c5)(t),Xs=s=>{const e=s.indexOf(tt.xi),t=s.indexOf(tt.xi,e+1);return[(0,Pe._3)(s.slice(0,e)),(0,Pe._3)(s.slice(e+1,t)),(0,Pe._3)(s.slice(t+1))]},Qs=(s,e,t)=>""+(0,Pe.c5)(s)+tt.xi+(0,Pe.c5)(e)+tt.xi+t,Js=s=>{const e=s.indexOf(tt.xi),t=s.indexOf(tt.xi,e+1);return[(0,Pe._3)(s.slice(0,e)),(0,Pe._3)(s.slice(e+1,t)),s.slice(t+1)]},qs=s=>{const e={};for(const t of Object.keys(s)){if(!t.startsWith("b/"))continue;const n=t.split("b/")[1],[g,F,ne,re]=s[t],[ce,ge,ue,xe,X]=g.split(tt.xi),se={};ue!==""&&(se.textAlign=Tt.parse(ue)),xe!==""&&(se.textIndent=(0,Pe._3)(xe)),X!==""&&X!==void 0&&(se.paraSpacing=(0,$e.bp)(X)),e[n]={text:F,type:ss.parse(ce),depth:(0,Pe._3)(ge),inlineStyleRanges:ne.map(le=>{const[ye,Se,Ae]=Js(le);return{offset:ye,length:Se,style:Ae}}),entityRanges:re.map(le=>{const[ye,Se,Ae]=Xs(le);return{offset:ye,length:Se,key:Ae}}),data:se}}return e},is=s=>{let{message:e}=s;const{blocks:t={},entityMap:n={}}=e;return{...Vs(t),...Hs(n)}},as=s=>({message:{blocks:qs(s),entityMap:Ws(s)}}),zt=s=>({T:vt.pack(s.type),IC:[(0,Pe.c5)(s.index),(0,Pe.vH)(s.ctime)].join(tt.xi)}),Zt=s=>{const[e,t]=s.IC.split(tt.xi);return{type:vt.parse(s.T),index:(0,Pe._3)(e),ctime:(0,Pe.TT)(t)}},eo=s=>({...zt(s),R:s.refKey}),to=s=>({...Zt(s),refKey:s.R}),so=s=>({...zt(s),...is(s),xy:(0,$e.x3)(s.x,s.y),wh:(0,$e.x3)(s.w,s.h),z:(0,$e.ZI)(s.z),userInfo:s.userInfo,userId:(0,$e.ZI)(s.userId),mtime:(0,Pe.vH)(s.mtime),isCompleted:(0,ts.rK)(s.isCompleted),canvasVec2:s.canvasVec2?{x:(0,$e.ZI)(s.canvasVec2.x),y:(0,$e.ZI)(s.canvasVec2.y)}:s.canvasVec2,canvasCid:s.canvasCid,threadType:s.threadType}),oo=s=>{const[e,t]=(0,$e.fm)(s.xy),[n,g]=(0,$e.fm)(s.wh),F=s.canvasVec2?(0,$e.bp)(s.canvasVec2.x):void 0,ne=s.canvasVec2?(0,$e.bp)(s.canvasVec2.y):void 0,re=(0,$e.bp)(s.z);return{...Zt(s),...as(s),x:e,y:t,w:n,h:g,z:re,mtime:(0,Pe.TT)(s.mtime),userInfo:s.userInfo,userId:(0,$e.bp)(s.userId),isCompleted:(0,ts.Vf)(s.isCompleted),canvasCid:s.canvasCid,threadType:s.threadType,canvasVec2:F&&ne?{x:F,y:ne}:void 0}},no=s=>({...zt(s),...is(s),mtime:(0,Pe.vH)(s.mtime),userInfo:s.userInfo}),ro=s=>({...Zt(s),...as(s),mtime:(0,Pe.TT)(s.mtime),userInfo:s.userInfo}),io=s=>{try{switch(s.T){case void 0:return s;case Jt:return to(s);case qt:return oo(s);case es:return ro(s);default:throw new Error("invalid attr: "+s.T+" -> "+vt.parse(s.T))}}catch(e){throw(0,ct.p)("toP2CHA badDat",e,s),e}},ls=s=>{try{switch(s.type){case void 0:return s;case"cCmtPack":return eo(s);case"cCmtThread":return so(s);case"cCmtContent":return no(s);default:throw new Error("invalid attr: "+s.type)}}catch(e){throw(0,ct.p)("toP2CCA badDat",e,s),e}};if(o.j!=15)var ao=o(43972);const cs=(s,e)=>{const t=re=>{const ce=s(re);return ce===void 0?[]:ce.sub.map(ge=>s(ge))},n=(0,ao.MX)(re=>re.sub.map(ce=>s(ce))),g=(re,ce)=>{const ge=s(re);ge!==void 0&&(ce(ge)||ge.sub.length!==0&&n(ge,ce))};return{getHotItem:s,getSubHotItemList:t,walkHotItemSubtree:g,isTrashed:re=>(0,ot.DM)(re,e.getFlatTree()),__devHotTree:function(re){re===void 0&&(re=ot.gT);const ce=new Map,ge=ue=>{let xe=ce.get(ue);return xe===void 0&&ce.set(ue,xe={}),xe};return g(re,ue=>{ge(ue.sup)[ue.key]=ue.hotAttr,ue.sub.length!==0&&(ge(ue.sup)[ue.key+" SUB"]=ge(ue.key))}),ge(s(re).sup)}}};if(o.j!=15)var us=o(97529);if(o.j!=15)var Gt=o(78235);var lo=o(62124),rt=o(25037);if(o.j!=15)var co=o(89989);const uo=(s,e,t)=>{const n=X=>{if(X===void 0||X.length===0)return;const se=new Set;for(const ye of X)se.add(ye.key),ye.type==="I"&&se.add(ye.keySup);const le=(0,ot.CF)([...se].filter(ot.xe),t.getFlatTree());s({type:co.a,payload:le})},g=X=>{const se=[],le=X(se);return n(t.applyDiff(se)),le},F=X=>g(se=>{const le=[],ye=X(le);for(const Se of le)Se.type==="update"?ge(Se.hotItem,se):Se.type==="delete"&&ue(Se.key,se);return ye}),ne=function(){const X=[],se=[];let le,ye=!1;for(var Se=arguments.length,Ae=new Array(Se),Fe=0;Fe<Se;Fe++)Ae[Fe]=arguments[Fe];for(const Je of Ae){le=Je(X);const De=t.applyDiff(X);De!==void 0&&(se.push(...De),ye?t.combineLastUndo():ye=!0)}return n(se),le},re=function(){for(var X=arguments.length,se=new Array(X),le=0;le<X;le++)se[le]=arguments[le];const ye=se.map(Se=>Ae=>{const Fe=[],Je=Se(Fe);for(const De of Fe)De.type==="update"?ge(De.hotItem,Ae):De.type==="delete"&&ue(De.key,Ae);return Je});return ne(...ye)},ce=(X,se)=>{for(const le of Object.keys(X)){const ye=X[le],Se=se[le];ye!==Se&&(0,us.sw)(ye)&&(0,us.sw)(Se)&&JSON.stringify(ye)===JSON.stringify(Se)&&(X[le]=Se)}},ge=(X,se)=>{const le=(0,ot.PV)(X.key,t.getFlatTree());if(le===void 0)se.push({type:rt.UF,key:X.key,keySup:X.sup}),se.push({type:rt.qC,key:X.key,attrDiff:ls(X.hotAttr)});else{le.sup!==X.sup&&se.push({type:rt.UF,key:X.key,keySup:X.sup});const ye=ls(X.hotAttr);ce(ye,le.attr);const Se=(0,lo.m)(ye,le.attr);Se!==void 0&&se.push({type:rt.qC,key:X.key,attrDiff:Se})}},ue=(X,se)=>{t.getFlatItem(X)&&se.push({type:rt.UF,key:X,keySup:ot.Ri})},xe=(X,se,le)=>{t.getFlatItem(X)&&t.getFlatItem(se)&&le.push({type:rt.UF,key:X,keySup:se})};return{_edit:g,_editAction:F,_editBatch:ne,_editActionBatch:re,onRemotePatchList:X=>{const se=[];for(const le of X){const ye=t.applyDiffRemote(le.diffList,le.clock);ye!==void 0&&se.push(...ye)}n(se)},updateHotItem:X=>g(se=>{ge(X,se)}),updateHotItemBatch:X=>g(se=>{for(const le of X)ge(le,se)}),deleteHotItem:X=>g(se=>{ue(X,se)}),deleteHotItemBatch:X=>g(se=>{for(const le of X)ue(le,se)}),moveHotItem:(X,se)=>g(le=>{xe(X,se,le)}),moveHotItemBatch:X=>g(se=>{for(const[le,ye]of X)xe(le,ye,se)}),editHotItemBatch:X=>g(se=>{for(const le of X)le.type==="update"?ge(le.hotItem,se):le.type==="delete"&&ue(le.key,se)}),updateHotAttrMerge:(X,se)=>g(le=>{const ye=e(X);if(ye===void 0)throw new Error("no item: "+X);ge((0,Gt.MK)(ye,"hotAttr",{...ye.hotAttr,...se}),le)}),updateHotAttrKV:(X,se,le)=>g(ye=>{const Se=e(X);if(Se===void 0)throw new Error("no item: "+X);ge((0,Gt.MK)(Se,"hotAttr",(0,Gt.MK)(Se.hotAttr,se,le)),ye)}),canUndo:t.canUndo,canRedo:t.canRedo,combineMergeMark:t.combineMergeMark,combineMerge:t.combineMerge,undo:()=>{n(t.undo())},redo:()=>{n(t.redo())}}};var xt=o(96737);const po=s=>{const e=(0,Xt.wz)(),t=e.subscribe,n=e.unsubscribe,g=ds(s),F=cs(g,s),ne=()=>ho(s.getFlatTree),re=uo(e.send,g,s),{_edit:ce,_editAction:ge,_editBatch:ue,_editActionBatch:xe,...X}=re;return{subscribe:t,unsubscribe:n,...F,createRoCmtStore:ne,...X}},ds=s=>e=>{const t=s.getFlatTree().get(e);if(t===void 0)return;const n=s.getOCI(t);return n.hotItem===void 0&&(n.hotItem={key:t.key,sup:t.sup,sub:t.sub,hotAttr:io(t.attr)}),n.hotItem},ho=s=>{const e=(0,xt.b$)(s(),(0,dt.aF)({})),t=()=>e.getFlatTree()!==s(),n=()=>e.sync(s()),g=ds(e),F=cs(g,e);return{hasUpdate:t,syncUpdate:n,...F}};var fo=o(83557),Yt=o(8445);if(o.j!=15)var mo=o(80730);if(o.j!=15)var go=o(32182);var pt=o(51933),_t=o(62732),Ct=o(55338);const yo=s=>{const[e,t,n]=s,g=async()=>(0,_t.BT)(Ct.r,e.tre),F=async function(ue){ue===void 0&&(ue=-1);const xe=[];for(const{pbx:X,t10s:se}of t){if(se<ue)continue;const le=(0,go.CE)(await Ct.r.gunzipU8AAsync(new Uint8Array(X)));for(const ye of(0,pt.Pb)(le))xe.push(ye)}for(const{pch:X,t10s:se}of n)se<ue||xe.push(X);return xe},ne=async function(ue){ue===void 0&&(ue=-1);const xe=[];for(const X of await F(ue))xe.push((0,rt.iz)(X));return xe},re=async function(ue){ue===void 0&&(ue=-1);const xe=[];for(const X of await F(ue)){const{clock:se,diffList:le}=(0,rt.iz)(X);xe.push([(0,dt._r)(se).slice(5),le,X])}return xe};return{getParsedTre:g,getPchList:F,getPatchList:ne,getReadablePatchList:re,filterReadablePatchList:async function(ue,xe){return xe===void 0&&(xe=-1),(await re(xe)).filter(X=>{let[,,se]=X;return se.includes(ue)})},getMergedReadablePatchList:async function(ue,xe){ue===void 0&&(ue=-1),xe===void 0&&(xe=16);const X=[];let se={timePrefix:"",countDI:0,countDA:0,userIdSet:new Set};const le=ye=>{se.timePrefix!==ye&&(se.timePrefix!==""&&X.push(se.timePrefix.slice(5)+"..Z I*"+(se.countDI||"-")+" A*"+(se.countDA||"-")+" ["+[...se.userIdSet].join(",")+"]"),se={timePrefix:ye,countDI:0,countDA:0,userIdSet:new Set})};for(const{clock:[ye,Se],diffList:Ae}of await ne(ue)){const Fe=new Date(ye).toISOString().slice(0,xe);le(Fe),se.userIdSet.add(Se);for(const{type:Je}of Ae)Je===rt.UF?se.countDI++:se.countDA++}return le(""),X},flpak:s}},ps=s=>Math.floor(s/10/1e3),vo=s=>{const[e]=(0,rt.cx)(s);return ps(e)},bo=s=>{let[e,t,n]=s;return n.length!==0?n[n.length-1].t10s:t.length!==0?t[t.length-1].t10s:e.t10s};if(o.j!=15)var $t=o(8113);if(o.j!=15)var xo=o(11311);if(o.j!=15)var Co=o(36272);const Lt=(s,e,t)=>{let n=!1,g=0,F=0;const ne=new Map;let re=[],ce,ge,ue,xe;const X=fe=>{let[Ee,,we]=fe;if(Ee!==s)return!1;const Ne=(0,pt.vZ)(we);for(const _e of Ne)re.push([_e,vo(_e),!1]);return ue!==void 0&&ue(Ne.map(_e=>(0,rt.iz)(_e))),!0},se=async(fe,Ee,we)=>{if(ge!==void 0)throw new Error("no re-init flatStore");ce=fe,xe=Ee;let Ne,_e,Be;if(we)try{Be=new Worker(new URL(o.p+o.u(552),o.b))}catch(Ue){console.error("[NotSupportWorker]",Ue)}if(Be){const Ue=location.hash.includes("INSP-INIT-FLPAK");Ne=(0,Co.of)();const{token:Ge,passwd:Ye,onFetchError:at,onTransferItems:de,...Le}=we,{remote:Qe,destory:qe}=(0,xo.B)(Be,{...Le,onTransferItems:(kt,gs,Po)=>{kt.forEach((Ro,Fo)=>{Ne.set(Fo,Ro)}),gs&&(de==null||de(gs,Po))}}),ht=await Qe("initFlpakData",{token:Ge,passwd:Ye,flpakKey:s,inspectFlpak:Ue,skipVertify:location.hash.includes("BYPASS-FLPAK")||t!==!0}),{FetchError:ft,VertifyError:mt,flatTreeSize:wt,fixedDiffMap:Do}=ht;if(ft){const kt=Object.assign(new Error(ft.message),{status:ft.status});throw await at(kt),kt}if(mt)throw new Error(mt.message);if(wt!==Ne.getMap().size)throw new Error("flatTree lost items, expected: "+wt+", got: "+Ne.getMap().size);Ue||qe(),_e=(0,xt.OR)(Do)}else{_e=(0,xt.OR)();const Ue=await xe(s);{const Ye="INSP-INIT-FLPAK";location.hash.includes(Ye)&&Object.assign(globalThis,{[Ye+"/"+s]:{...yo(Ue),__flpakKey:s,__name:e}})}g=bo(Ue),Ne=await(0,_t.TN)(Ct.r,Ue,(Ye,at)=>(0,pt.qG)(Ye,at,_e.mutateTFAAFNB));let Ge=ot.xL;{const Ye="BYPASS-FLPAK";location.hash.includes(Ye)&&(Ge=at=>console.warn("["+Ye+"|vFT]",at))}t===!0&&Ge(Ne)}for(const[Ue,Ge,Ye]of re)!Ye&&g>=Ge||(0,pt.qG)(Ne,Ue,_e.mutateTFAAFNB);ge=(0,xt.b$)(Ne,fe,(Ue,Ge,Ye)=>{if(n&&console.log("flat|onPatch",{diffList:Ue,clock:Ge,isLocal:Ye}),re.push([(0,rt.AO)({diffList:Ue,clock:Ge}),ps(Ge[0]),Ye]),Ye)return;const[at,de,Le,Qe]=Ge;F=Math.max(F,at);const qe=(0,dt.au)(de,Le);if(ce.selfCCK===qe)throw new Error("unexpected selfCck: "+qe);const ht=ne.get(qe)||-1;ht>Qe&&console.warn("bad editId for cck: "+qe+", last: "+ht+", new: "+Qe),ne.set(qe,Qe)},(Ue,Ge)=>{console.warn("flat|requestResync",{error:Ue,message:Ge})}),ue=Ue=>{for(const Ge of Ue)ge.applyDiffRemote(Ge.diffList,Ge.clock)};const Xe=_e.getFixDiffList(Ne);Xe.length&&(ge.applyDiff(Xe),ge.resetUndo())},le=fe=>{ue=fe},ye=()=>ce,Se=()=>ge,Ae=async function(fe){if(fe===void 0&&(fe=""),t===!0)try{if(!ge||!g||!De())return;const Ee=ge.getFlatTree(),[we,Ne]=await(0,_t.Vz)(Ct.r,Ee);await(0,$t.hp)("//FSS/"+e+"/"+s,new Blob([Ne],{type:"application/octet-stream"}),{message:fe,treRawSize:we,treSize:Ne.byteLength})}catch(Ee){console.warn("saveSOS",fe,Ee)}},Fe=async()=>{if(t===!0)try{const fe=await(0,$t.Ey)("//FSS/"+e+"/"+s);if(fe.length){console.warn("[loadSOS] found "+fe.length+" record");const{data:Ee,extra:we}=fe[0];console.warn("[loadSOS] load record from "+new Date(we.time).toISOString());const Ne=await(0,mo.WL)(Ee),_e=await(0,_t.BT)(Ct.r,Ne);return console.warn("[loadSOS] record tree: "+_e.slowSize()),{tree:_e,...we}}}catch(fe){console.warn("loadSOS",fe)}},Je=async()=>{if(t===!0)try{return await(0,$t.EP)("//FSS/"+e+"/"+s)}catch(fe){console.warn("freeSOS",fe)}},De=()=>{if(t!==!0)return!1;for(const[,,fe]of re)if(fe)return!0;return!1};return{flpakKey:s,name:e,__setIsDev:fe=>{n=fe},onRemotePayloadSave:X,bind:se,useExtORPL:le,getClockStore:ye,getFlatStore:Se,saveSOS:Ae,loadSOS:Fe,freeSOS:Je,hasPatch:De,preSettlePatch:()=>{if(t!==!0)return[];const fe=[];for(const[Ee,,we]of re)we&&fe.push(Ee);return fe},postSettlePatch:fe=>{t===!0&&(re=re.filter(Ee=>{let[we,Ne,_e]=Ee;return!_e||!fe.includes(we)}))}}},wo=(s,e,t)=>{let n,g;return{flpakKey:s,name:"[DUMMY]"+e,__setIsDev:F=>{},onRemotePayloadSave:F=>{let[ne,,re]=F;return!1},bind:async(F,ne)=>{if(g!==void 0)throw new Error("no re-init flatStore");n=F,g=(0,xt.b$)((0,ot.Id)(),F)},useExtORPL:F=>{},getClockStore:()=>n,getFlatStore:()=>g,saveSOS:async F=>{},loadSOS:async()=>{},freeSOS:async()=>0,hasPatch:()=>!1,preSettlePatch:()=>[],postSettlePatch:F=>{}}};if(o.j!=15)var Mo=o(45246);const hs=o.j!=15?$e.x3:null,Eo=o.j!=15?$e.fm:null,So=s=>{const e=new Map;let t=!1,n=!1,g,F,ne=()=>"";const re=()=>{e.clear(),ue()};let ce=0;const ge=Te=>{const fe={socketId:Te,index:ce++,lastCurAt:0,cur:void 0,lastStatAt:0,stat:void 0};return e.set(Te,fe),t=!0,fe},ue=(0,r.Ds)(async()=>{if(await(0,N.Y_)(2*1e3),g===void 0)return;const Te=[];for(const{socketId:Ne,lastStatAt:_e}of e.values())_e!==0&&Te.push(Ne);for(const[Ne,_e,Be]of await g([s,Te])){const Xe=e.get(Ne)||ge(Ne);Xe.lastStatAt=Date.now(),Xe.stat=[_e,Be]}const[fe,Ee,we]=se;fe&&F&&F([s,fe,hs(Ee,we)])},Te=>{console.warn("_tPS",Te)}).trigger,xe=Te=>{let[fe,Ee,we]=Te;const[Ne,_e]=Eo(we),Be=[Ne,_e,Ee],Xe=e.get(fe)||ge(fe);Xe.lastCurAt=Date.now(),Xe.cur=Be,Xe.lastStatAt===0?ue():n=!0},X=Te=>{let[fe,Ee]=Te;const we=e.has(Ee);fe===0&&we&&(e.delete(Ee),t=!0)};let se=["",NaN,NaN],le=0;const ye=function(Te){Te===void 0&&(Te=se[0]);const fe=ne();if(fe==="")return!1;for(const{socketId:Ee,cur:we}of e.values())if(we&&we[2]===Te&&Ee!==fe)return!0;return!1},Se=function(Te,fe,Ee){fe===void 0&&(fe=$e.Ni),Ee===void 0&&(Ee=$e.Ni),!(se[0]===Te&&se[1]===fe&&se[2]===Ee)&&(se[0]!==Te&&(le=1),!(!le&&(e.size<2||!ye(Te)))&&(se=[Te,fe,Ee],le&&le--,F&&F([s,Te,hs(fe,Ee)])))},Ae=async(Te,fe,Ee)=>{if(g!==void 0)throw new Error("no re-init fetchCurStat");g=Te,F=fe,ne=Ee},Fe=()=>{const Te=ne(),fe=[];if(Te==="")return fe;for(const{socketId:Ee,stat:we}of e.values()){if(we===void 0)continue;const[Ne,_e]=we;Te===Ee?fe.unshift([Ee,Ne,_e]):fe.push([Ee,Ne,_e])}return fe},Je=Te=>{const fe=ne(),Ee=[];if(fe==="")return Ee;for(const{socketId:we,index:Ne,cur:_e,stat:Be}of e.values()){if(fe===we||_e===void 0||Be===void 0)continue;const[Xe,Ue,Ge]=_e;if(Ge!==Te||Xe===$e.Ni)continue;const[Ye,at]=Be;Ee.push([Ne,Xe,Ue,Ye,at])}return Ee},De=()=>t?(t=!1,!0):!1,nt=()=>n?(n=!1,!0):!1;return{flpakKey:s,__curStatMap:e,onSocketConnect:re,onRemoteCur:xe,onRemoteSocket:X,hasOtherUser:ye,tryPackCur:Se,bind:Ae,getRoomStat:Fe,getSocketStat:Fe,getCurStat:Je,pollRoomChg:De,pollCurChg:nt,pollChange:nt}},No=s=>{const e=()=>{},t=ue=>{let[xe,X,se]=ue},n=ue=>{let[xe,X]=ue},g=ue=>!1,F=(ue,xe,X)=>{},ne=async(ue,xe,X)=>{},re=()=>[],ce=ue=>[],ge=()=>!1;return{flpakKey:s,onSocketConnect:e,onRemoteCur:t,onRemoteSocket:n,hasOtherUser:g,tryPackCur:F,bind:ne,getRoomStat:re,getSocketStat:re,getCurStat:ce,pollRoomChg:ge,pollCurChg:ge,pollChange:ge}},fs=()=>{};let ms=!1;const To=s=>{ms=s},_o="dat",Lo="cmt",Io="mkt:dat",ko="sclib:dat",Oo=async s=>{let{flpakKey:e,userId:t,uTag:n,token:g,passwd:F,isDummyCmt:ne=!1,isAllowDat:re=!1,isAllowCmt:ce=!1,isAllowCur:ge=!1,afterStoreCreate:ue=fs,__fetchFlpakAsync:xe=Yt.TP,onTransferError:X=fs,workerOptions:se}=s;const le=Lt(e,_o,re),ye=(ne?wo:Lt)((0,Mo.J6)(e),Lo,ce),Se=(ge?So:No)(e);await ue({fssDat:le});const Ae=async(de,Le)=>{await le.saveSOS("OTE|"+de+"|"+Le),await X(de,Le)},Fe=async de=>{const Le=Ht(de);It(de)!=="Fch"&&(0,ct.p)("fFS "+It(de),de),await Ae(Le,de)},Je=(0,Ze.LZ)({flpakKey:e,needDat:!!re,needCmt:!!ce,needCur:!!ge}),De=!t||!Je?Rs():Bs({query:{uId:String(t),uTag:n,rKey:Je},usePolling:ms,lossyListenerMap:{[Ze.NX]:de=>{const{payload:Le}=de;Se.onRemoteCur(Le)}},queueListenerMap:{[Ze.VU]:de=>{const{error:Le}=de;console.log("flat-ws drop-client",Le),Ae("4XX",Le)},[Ze.Ei]:de=>{const{error:Le}=de;console.log("flat-ws error",Le),Ae("5XX",Le)},[Ze.zS]:()=>{console.log("flat-ws (re)connected"),Se.onSocketConnect()},[Ze.sP]:de=>{const{payload:Le}=de;le.onRemotePayloadSave(Le)||ye.onRemotePayloadSave(Le)||console.warn("drop save payload:",Le)},[Ze.$7]:de=>{const{payload:Le}=de;console.log("flat-ws room cursor:",Le),Se.onRemoteSocket(Le)}}});await De.getReadyPromise();const nt=async(de,Le,Qe)=>{try{return await xe(de,{token:g,passwd:F,skipTTre:String(Le||""),skipTPbxList:(Qe||[]).join("")})}catch(qe){throw Fe(qe),qe}},Te=se&&{...se,token:g,passwd:F,onFetchError:Fe};await Promise.all([le.bind((0,dt.aF)({userId:t,mtimeOffset:De.getOffsetMsec()}),nt,Te).catch(de=>{throw(0,ct.p)("bindDat",de),de}),ye.bind((0,dt.aF)({userId:t,mtimeOffset:De.getOffsetMsec()}),nt).catch(de=>{throw(0,ct.p)("bindCmt",de),de}),Se.bind(async de=>{try{if(De.getIsConnected())return await De.emitAsync(Ze.Am,de)}catch(Le){await(0,N.Y_)(42*1e3)}return[]},de=>De.getIsConnected()&&De.emitLossy(Ze.pL,de),De.getSocketId).catch(de=>{throw(0,ct.p)("bindCur",de),de})]);const fe=new Error("[tracked-error]"),Ee=async de=>{if(!de.hasPatch())return;const Le=de.preSettlePatch(),Qe=(0,pt.ok)((0,pt.oG)(Le));for(let qe=0,ht=Qe.length;qe<ht;qe++){const ft=Qe[qe];try{await De.emitAsync(Ze.s5,[de.flpakKey,ft.length,(0,pt.iM)(ft)])}catch(mt){const wt=Ht(mt);throw wt==="5XX"&&(0,ct.p)("saveFss "+It(mt),mt,de.name,de.flpakKey,qe+1+"/"+ht,ft),await Ae(wt,mt),fe}}de.postSettlePatch(Le)},we=(0,r.Ds)(async()=>(0,r.g7)(async()=>{await Ee(le),await Ee(ye),await le.freeSOS()},5*60*1e3,"lFFss.lA"),de=>{if(de===fe)return;const Le=Ht(de);(0,ct.p)("lFFss "+It(de),de),Promise.resolve(Ae(Le,de)).catch(Qe=>{(0,ct.p)("lFFss "+Le+" Err",Qe)})}),Ne=(0,r.Ds)(async()=>{we.trigger(),await we.getRunningPromise();for(let de=0;de++<16;)!Se.hasOtherUser()&&await(0,N.Y_)(1e3)});setInterval(Ne.trigger,2*1e3),ge&&setInterval(()=>Se.onSocketConnect(),20*60*1e3);const _e=le.getFlatStore(),Be=(0,Ut.uq)(le.getFlatStore());le.useExtORPL(Be.onRemotePatchList);const Xe=po(ye.getFlatStore());ye.useExtORPL(Xe.onRemotePatchList);const Ue=()=>le.hasPatch()||ye.hasPatch(),Ge=(0,r.B1)(async()=>(0,r.JN)(async()=>{let de=0;for(;Ue();)await(0,N.Y_)(Math.min(de,5)*1e3),we.trigger(),await we.getRunningPromise(),de++})),Ye=()=>globalThis.MB.getSelectionItems()[0].key,at=(0,r.J9)(Se.tryPackCur,125);return{fssDat:le,fssCmt:ye,cssCur:Se,flatSocket:De,flatStore:_e,sdkStore:Be,cmtStore:Xe,sendCur:at,hasSave:Ue,saveAsync:Ge,theTree:function(de){return de===void 0&&(de=ot.gT),console.log((0,ot.Wr)(_e.getFlatTree(),de))},hotTree:function(de){return de===void 0&&(de=ot.gT),console.log(Be.__devHotTree(de))},slctTree:function(de){return de===void 0&&(de=Ye()),console.log(Be.__devHotTree(de))},upTree:function(de,Le){return de===void 0&&(de=Ye()),Le===void 0&&(Le=ot.gT),console.log(Be.findUpHotItemList(de,Le))},newFFT:async function(de,Le,Qe){return Qe===void 0&&(Qe=Le.name+"-\u4FEE\u590D\u6570\u636E"),(0,fo.Nc)(de,Le.team_cid,{...Le,name:Qe})},cmtTree:function(de){return de===void 0&&(de=ot.gT),console.log(Xe.__devHotTree(de))}}},Ht=s=>{const e=s&&s.status;return e>=400&&e<500?"4XX":String(s).toLowerCase().includes("timeout")?"Tot":"5XX"},It=s=>{const e=s&&s.status,t=[];e>=400&&t.push(String(e));const n=String(s).toLowerCase();return n.includes("timeout")&&t.push("Tot"),n.includes("fetch")&&t.push("Fch"),t.join("")||"Err"},jo=async s=>{let{flpakKey:e}=s;const t=Lt(e,Io,!1),n=async(F,ne,re)=>(0,Yt.TP)(F,{skipTTre:String(ne||""),skipTPbxList:(re||[]).join("")});return await t.bind((0,dt.aF)({}),n),{sdkStore:(0,Ut.uq)(t.getFlatStore())}},Ao=async s=>{let{flpakKey:e}=s;const t=Lt(e,ko,!1),n=async(F,ne,re)=>(0,Yt.O0)(F,{skipTTre:String(ne||""),skipTPbxList:(re||[]).join("")});return await t.bind((0,dt.aF)({}),n),{sdkStore:(0,Ut.uq)(t.getFlatStore())}}},49612:(me,V,o)=>{"use strict";o.d(V,{$I:()=>W,Rj:()=>U,SR:()=>r,Tq:()=>I,UP:()=>_});var l=o(27660);let r=function(f){return f.AIAssistant="AIAssistant",f.Page="Page",f.Flow="flow",f.Mind="mind",f.Table="table",f.Chart="chart",f.AutoFill="autofill",f.Semantic="semantic",f.Component="Component",f.PageV9="PageV9",f.Chat="Chat",f}({}),N=function(f){return f.page="page",f.component="component",f.other="other",f.semantic="semantic ",f}({}),i=function(f){return f.hot="hot",f.other="other",f.semantic="semantic ",f}({});const I="GENERATE_AI_COMPONENT",W=(0,l.R)(()=>[{label:I18N.ChatGPT.ai_prototype,title:I18N.ChatGPT.ai_prototype_title,type:r.PageV9,points:400,recommends:[I18N.ChatGPT.ai_prototype_label_1,I18N.ChatGPT.ai_prototype_label_2,I18N.ChatGPT.ai_prototype_label_3],aiType:"\u751F\u6210\u539F\u578B\u9875\u9762",source:"",menu:N.page,hotMenu:i.hot,icon:"chatGPT/ai-component-page",desc:I18N.ChatGPT.ai_prototype_desc,className:"ai-page",componentTitle:I18N.ChatGPT.ai_prototype_component_title},{label:I,title:I18N.ChatGPT.ai_component_title,type:r.Component,points:200,aiType:"\u751F\u6210AI\u7EC4\u4EF6",source:"",menu:N.component,hotMenu:i.hot,icon:"chatGPT/ai-component-component",desc:I18N.ChatGPT.ai_component_desc,className:"ai-component",componentTitle:I18N.ChatGPT.ai_component_component_title},{label:I18N.ArtBoard.flow,title:I18N.ChatGPT.ai_flow_title,type:r.Flow,points:200,recommends:[I18N.ChatGPT.ai_flow_label_1,I18N.ChatGPT.ai_flow_label_2,I18N.ChatGPT.ai_flow_label_3],aiType:"\u751F\u6210\u6D41\u7A0B\u56FE",source:"",menu:N.component,hotMenu:i.other,icon:"chatGPT/ai-component-flow",desc:I18N.ChatGPT.ai_flow_desc,className:"ai-flow",componentTitle:I18N.ChatGPT.ai_flow_component_title},{label:I18N.ArtBoard.mind,title:I18N.ChatGPT.ai_mind_title,type:r.Mind,points:200,recommends:[I18N.ChatGPT.ai_mind_label_1,I18N.ChatGPT.ai_mind_label_2,I18N.ChatGPT.ai_mind_label_3],aiType:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",source:"",menu:N.component,hotMenu:i.other,icon:"chatGPT/ai-component-mind",desc:I18N.ChatGPT.ai_mind_desc,className:"ai-mind",componentTitle:I18N.ChatGPT.ai_mind_component_title},{label:I18N.w.table,title:I18N.ChatGPT.ai_table_title,type:r.Table,points:200,recommends:[I18N.ChatGPT.ai_table_label_1,I18N.ChatGPT.ai_table_label_2,I18N.ChatGPT.ai_table_label_3],aiType:"\u751F\u6210\u8868\u683C",source:"",menu:N.component,hotMenu:i.other,icon:"chatGPT/ai-component-table",desc:I18N.ChatGPT.ai_table_desc,className:"ai-table",componentTitle:I18N.ChatGPT.ai_table_component_title},{label:I18N.w.wChart,title:I18N.ChatGPT.ai_Chart_title,type:r.Chart,points:200,recommends:[I18N.ChatGPT.ai_wChart_label_1,I18N.ChatGPT.ai_wChart_label_2,I18N.ChatGPT.ai_wChart_label_3],aiType:"\u751F\u6210\u56FE\u8868",source:"",menu:N.component,hotMenu:i.other,icon:"chatGPT/ai-component-chart",desc:I18N.ChatGPT.ai_Chart_desc,className:"ai-chart",componentTitle:I18N.ChatGPT.ai_Chart_component_title},{label:I18N.ChatGPT.magic_fill,title:I18N.ChatGPT.ai_magicFill_title,type:r.AutoFill,points:200,recommends:[I18N.ChatGPT.ai_smart_fill_label_2,I18N.ChatGPT.ai_smart_fill_label_1,I18N.ChatGPT.ai_smart_fill_label_3],aiType:"\u667A\u80FD\u586B\u5145",source:"",menu:N.other,hotMenu:i.other,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"},{label:"\u8BED\u4E49\u5316",title:"AI \u8BED\u4E49\u5316",type:r.Semantic,points:200,recommends:["\u5E2E\u6211\u751F\u6210\u4E00\u4E2A\u7535\u5546\u7C7BAPP\uFF0C\u5E76\u4E14\u8F93\u5165\u4E00\u4EFDprd\u6587\u6863","`\u6211\u7231\u52A0\u73ED`\u3002\u8BF7\u5E2E\u6211\u628A\u4E0A\u9762\u8FD9\u6BB5\u8BDD\u8C03\u6574\u7684\u66F4\u52A0\u4E30\u5BCC\u751F\u52A8\u4E00\u70B9","\u5E2E\u6211\u751F\u6210\u4E00\u4EFD2022\u5E74\u56FD\u5BB6\u7ECF\u6D4E\u66F2\u7EBF\u56FE\u30012022\u5E74\u5404\u7701\u7ECF\u6D4E\u6536\u5165\u8868\u683C"],aiType:"MD\u8BED\u4E49\u5316",source:"AI\u8BED\u4E49\u5316\u9762\u677F",menu:N.semantic,hotMenu:i.semantic,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"}]),P=(0,l.R)(()=>[{title:I18N.ChatGPT.ai_prototype,items:W().filter(x=>x.menu===N.page)},{title:I18N.ChatGPT.ai_advanced_components,items:W().filter(x=>x.menu===N.component)},{title:I18N.ChatGPT.ai_magic_fill,items:W().filter(x=>x.menu===N.other)}]),_=(0,l.R)(()=>[{title:I18N.ChatGPT.ai_hot_menu,items:W().filter(x=>x.hotMenu===i.hot)},{title:I18N.ChatGPT.ai_other_menu,items:W().filter(x=>x.hotMenu===i.other)}]),U=(0,l.R)(()=>W().reduce((f,x)=>(f[x.type]=x,f),{}))},51090:(me,V,o)=>{"use strict";o.d(V,{Aw:()=>i,L9:()=>r,ZJ:()=>U,eP:()=>P,n9:()=>W,nw:()=>_});var l=o(67787);const r=(0,l.AH)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),N=(0,l.AH)(['position:relative;pointer-events:none;&::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;cursor:not-allowed;pointer-events:auto;}']),i=(0,l.AH)(["position:relative;height:32px;padding-left:14px;padding-right:4px;display:flex;align-items:center;border:1px solid transparent;color:",";font-size:12px;cursor:pointer;.expander{width:12px;margin-left:-12px;color:",";}.editable-span,.editable-name{margin-right:14px;line-height:24px;border-radius:2px;&.is-editing{border-bottom-color:transparent;}}.actions{display:none;height:100%;padding-left:6px;.Dropdown > button{display:flex;padding:8px 10px 8px 0;}.action{margin-right:6px;font-size:12px;color:",";&:hover{color:",";}}&.is-active{display:flex;align-items:center;color:",";}}&:hover{.actions{display:flex;align-items:center;}}&:hover,&.hover{color:",";background:",";}&.active,&.is-active{color:",";background:",";}"],f=>f.theme.color_text_L2,f=>f.theme.color_text_disabled01,f=>f.theme.color_text_L2,f=>f.theme.color_text_L2,f=>f.theme.color_text_L1,f=>f.theme.color_text_L1,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_text_L1,f=>f.theme.color_btn_secondary_active),I=l.Ay.div.withConfig({displayName:"variables__StyledCustomTooltipInner",componentId:"sc-1k65wxr-0"})(["display:flex;align-items:center;height:22px;margin:-3px -7px;.tipsLeft{padding:0 8px;}.tipsRight{width:22px;line-height:22px;background-color:",";border-radius:0 2px 2px 0;color:#f2f4f5;}"],f=>f.theme.color_primary_brand01),W=(0,l.AH)(["width:24px;height:24px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.fore{fill:",";}&:hover{color:",";.fore{fill:",";}}.svg-icon{width:24px;height:24px;}"],f=>f.theme.color_text_L2,f=>f.theme.color_text_L3,f=>f.theme.color_proto,f=>f.theme.color_proto),P=(0,l.AH)(["ul{.active,.select,.hover,li:hover,.rn-list-item:hover{& + li > .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}+ ul > li:first-child > .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}}.rn-list-item:has(+ ul > li.active:first-child,+ ul > li.select:first-child,+ ul > li.hover:first-child,+ ul > li:first-child:hover){border-bottom-left-radius:0;border-bottom-right-radius:0;}li{&:has(+ li.active,+ li.select,+ li.hover,+ li:hover){&.active,&.select,&.hover,&:hover{> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}}}.rn-list-item{border-radius:6px;&.context-menu-select{border-radius:6px;}}}li.active,li.select,li.dummy-select,li:hover{&:has(> ul > li.dummy-select){> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}}&:has(+ li.active,+ li.select,+li:hover){> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}ul{li.dummy-select{&:last-child{> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}}}}}ul{li.dummy-select{> .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}&:has(+ li.dummy-select){> .rn-list-item{border-radius:0;}ul{li.dummy-select{&:last-child{> .rn-list-item{border-radius:0;}}}}}&:last-child,&:first-child{&:has(> ul){> .rn-list-item{border-radius:0;}}}}}}li.active,li.select,li.dummy-select,li:hover{& + li{&.active,&.select,&.dummy-select,&:hover{> .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}}}}li{> .rn-list-item:hover{&:has(+ ul > li.active:first-child,+ ul > li.select:first-child,+ ul > li.hover:first-child,+ ul > li:first-child:hover){border-bottom-left-radius:0;border-bottom-right-radius:0;}& + ul > li.active:first-child,& + ul > li.select:first-child,& + ul > li.hover:first-child,& + ul > li:first-child:hover{> .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}}}}li:has(+ li:hover,+ li.select,+ li.active){ul > li:last-child{&.active,&.select,&:hover{> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}}}}li:has(ul > li:last-child.active,ul > li:last-child.select,ul > li:last-child:hover){& + li:hover,& + li.select,& + li.active{> .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}}}}"]),_=(0,l.AH)(["ul{li{.rn-list-item{border-radius:6px;&.context-menu-select{border-radius:6px;}}}li.select,li.dummy-select,li:hover{&:has(> ul > li.dummy-select){> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}}&:has(+ li.select,+li:hover){> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}ul{li.dummy-select{&:last-child{> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}}}}}ul{li.dummy-select{> .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}&:has(+ li.dummy-select){> .rn-list-item{border-radius:0;}ul{li.dummy-select{&:last-child{> .rn-list-item{border-radius:0;}}}}}&:last-child,&:first-child{&:has(> ul){> .rn-list-item{border-radius:0;}}}}}}li.select,li.dummy-select,li:hover{& + li{&.select,&.dummy-select,&:hover{> .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}}}}li{> .rn-list-item:hover{&:has(+ ul > li.select:first-child,+ ul > li.hover:first-child,+ ul > li:first-child:hover){border-bottom-left-radius:0;border-bottom-right-radius:0;}& + ul > li.select:first-child,& + ul > li.hover:first-child,& + ul > li:first-child:hover{> .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}}}}li:has(+ li:hover,+ li.select){ul > li:last-child{&.select,&:hover{> .rn-list-item{border-bottom-left-radius:0;border-bottom-right-radius:0;}}}}li:has(ul > li:last-child.select,ul > li:last-child:hover){& + li:hover,& + li.select{> .rn-list-item{border-top-left-radius:0;border-top-right-radius:0;}}}}"]),U=(0,l.AH)(["ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{height:28px;border-radius:4px;background:",";color:",";svg:not(.pure-svg-icon) path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}"],f=>f.theme.color_bg_border_01,f=>f.theme.color_text_L1,f=>f.theme.color_bg_white,f=>f.theme.shadow_m,f=>f.theme.color_bg_white,f=>f.theme.color_text_L1,f=>f.theme.color_text_L1,f=>f.theme.color_text_L3,f=>f.theme.color_text_L3,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_text_disabled01,f=>f.theme.color_text_disabled01,f=>f.theme.color_text_disabled01)},54190:(me,V,o)=>{"use strict";o.d(V,{A1:()=>D,A9:()=>L,CH:()=>Ie,Cp:()=>l.Cp,E8:()=>b,F7:()=>te,G8:()=>pe,Gx:()=>T,Ip:()=>ze,Jm:()=>z,Kc:()=>_,OJ:()=>h,PK:()=>Ve,Qs:()=>R,Qy:()=>j,SD:()=>Q,Tf:()=>x,V7:()=>u,Wr:()=>a,XG:()=>J,Xw:()=>C,Yu:()=>f,bX:()=>m,cn:()=>U,dC:()=>We,hY:()=>M,kZ:()=>c,l9:()=>E,ob:()=>y,qi:()=>Z,r3:()=>A,s_:()=>k,sw:()=>Re,ty:()=>q,up:()=>ke,vS:()=>ee,vs:()=>ve,wR:()=>S,wZ:()=>He,yV:()=>Ce,yk:()=>be,yr:()=>p});var l=o(16335),r=o(19249),N=o(49903),i=o(18833);if(!/^(15|477)$/.test(o.j))var I=o(98033);if(!/^(15|477)$/.test(o.j))var W=o(37253);const P=(Y,K)=>{const ie=new Error("[NO SENTRY] "+Y);return Object.assign(ie,K),ie},_=(Y,K)=>(0,r.DE)("/api/upper/web_v1/design/readonly_initial?access_token="+Y+"&password="+K),U=async(Y,K)=>{const ie=K==="inspect"?"read_only":K,he="/api/flat/web_v1/preview/initial?access_token="+Y+"&view_mode="+ie,Me=await fetch(he,{credentials:"same-origin"}),je=await Me.json();if(Me.status!==200)throw P("[fetchGetHead] failed with "+Me.status+": "+he,{status:Me.status,error_type:je==null?void 0:je.error_type});return je},f=(Y,K)=>(0,r.SN)("/api/upper/web_v1/basics/"+Y,{...K}),x=async()=>{let Y=[];try{const K=await(0,r.DE)("/api/library/v4/recent_keywords");K!=null&&K.keywords&&(Y=K==null?void 0:K.keywords)}catch(K){(0,i.$r)()}return Y},k=()=>(0,r.sM)("/api/library/v4/recent_keywords"),T=Y=>(0,r.Ds)("/api/library/v4/recent_keywords",{keyword:Y}),Z=async()=>{if((0,I.Z)())return O();{var Y;let K;try{K=await(0,r.DE)("/api/library/v3/project_upper/user_combo_groups")}catch(ie){return await(0,i.FY)(ie),{}}return{userComboGroupList:(Y=K)==null?void 0:Y.user_combo_groups}}},O=async()=>{var Y;let K;try{K=await(0,r.DE)("/api/library/v3/project_upper/org_combo_groups?org_cid="+MB.user.solo_org.cid)}catch(ie){return await(0,i.FY)(ie),{}}return{userComboGroupList:(Y=K)==null?void 0:Y.org_combo_groups}},m=async Y=>{var K;let{orgCid:ie}=Y,he;try{he=await(0,r.DE)("/api/library/v3/project_upper/org_combo_groups?org_cid="+ie)}catch(Me){return await(0,i.FY)(Me),{}}return{orgComboGroupList:(K=he)==null?void 0:K.org_combo_groups}},p=async Y=>{const K=await(0,l.Yk)(Y.cid);if(!K)return null;const{icon_group:ie,market_template:he}=K,{source:Me,title:je}=ie||{},Ke=await(0,r.DE)(Me),st=N.I1[je]||je||"svg",{iconGroupData:et}=(0,N.u2)(Ke,st);return{iconGroupData:et,marketTemplate:he}},h=async()=>{const Y=MB.user.solo_org.cid;try{const{asset_groups:K=[],assets:ie}=await(0,r.Yo)("/api/library/v6/asset_groups?org_cid="+Y);return{userAssetGroupList:K,userAssets:ie}}catch(K){return(0,i.$r)(),{userAssetGroupList:[],userAssets:[]}}},E=async function(Y){Y===void 0&&(Y="");const K=Y||MB.currentOrg.cid;try{const{asset_groups:ie,assets:he}=await(0,r.Yo)("/api/library/v6/asset_groups?org_cid="+K);return{orgAssetGroupList:ie,orgAssets:he}}catch(ie){return(0,i.$r)(),{orgAssetGroupList:[],orgAssets:[]}}},b=async Y=>{if((0,I.Z)())return v(Y);try{const{asset:K,user_asset:ie}=await(0,r.B7)("/api/library/v3/asset_data/me/search_by_url",{image_url:Y});return{asset:K,user_asset:ie}}catch(K){await(0,i.FY)(K)}},v=async Y=>{const K=MB.user.solo_org.cid;try{const{asset:ie,flat_asset:he}=await(0,r.B7)("/api/library/v6/assets/search_by_url",{image_url:Y,org_cid:K});return{asset:ie,user_asset:he}}catch(ie){await(0,i.FY)(ie)}},a=async(Y,K)=>{try{const{asset:ie,flat_asset:he}=await(0,r.B7)("/api/library/v6/assets/search_by_url",{image_url:Y,org_cid:K});return{asset:ie,org_asset:he}}catch(ie){await(0,i.FY)(ie)}},u=async Y=>{if((0,I.Z)())return B(Y);try{const{user_asset_group:K}=await(0,r.uP)("/api/library/v4/users/asset_groups/"+Y.cid,{...Y});return{user_asset_group:K}}catch(K){await(0,i.FY)(K)}},L=async(Y,K)=>{const{name:ie,parentCid:he=null,position:Me}=K,{asset_group:je}=await(0,r.zi)("/api/library/v6/asset_groups",{org_cid:Y,name:ie,parent_cid:he,position:Me});return{asset_group:je}},B=async Y=>{const{cid:K,name:ie,parent_cid:he,position:Me}=Y;try{const{asset_group:je}=await(0,r.uP)("/api/library/v6/asset_groups/"+K,{name:ie,parent_cid:he,position:Me});return{user_asset_group:je}}catch(je){await(0,i.FY)(je)}},D=async Y=>{const{cid:K,name:ie,parent_cid:he,position:Me}=Y;try{const{asset_group:je}=await(0,r.uP)("/api/library/v6/asset_groups/"+K,{name:ie,parent_cid:he,position:Me});return{org_asset_group:je}}catch(je){await(0,i.FY)(je)}},S=async Y=>{if((0,I.Z)())return H(Y);try{return await(0,r.uP)("/api/library/v3/asset_data/me/assets/"+Y.asset_cid,{...Y})}catch(K){await(0,i.FY)(K)}},z=async Y=>(await(0,r.SN)("/api/library/v6/asset_groups/",{asset_groups:Y})).asset_groups,A=async(Y,K)=>{const{name:ie,groupCid:he}=K;return await(0,r.SN)("/api/library/v6/assets",{cids:Y,name:ie,group_cid:he})},H=async Y=>{try{return await(0,r.uP)("/api/library/v6/assets",{...Y})}catch(K){await(0,i.FY)(K)}},M=async Y=>{let{cids:K,...ie}=Y;try{return await(0,r.uP)("/api/library/v6/assets",{cids:K,...ie})}catch(he){await(0,i.FY)(he)}},C=async Y=>{let{assetCid:K,name:ie,groupCid:he}=Y;if((0,I.Z)())return d({assetCid:K,name:ie,groupCid:he});try{await(0,r.B7)("/api/library/v3/asset_data/me/assets",{cid,name:ie,group_cid:he})}catch(Me){await(0,i.FY)(Me)}},d=async Y=>{let{assetCid:K,name:ie,groupCid:he}=Y;try{await(0,r.B7)("/api/library/v6/assets",{asset_cid:[K],name:ie,group_cid:he})}catch(Me){await(0,i.FY)(Me)}},y=async Y=>{let{assetCid:K,name:ie,groupCid:he}=Y;try{const Me=await(0,r.B7)("/api/library/v6/assets",{asset_cid:[K],name:ie,group_cid:he});return Me==null?void 0:Me.cid}catch(Me){await(0,i.FY)(Me)}},c=async Y=>{let{org_cid:K,name:ie,group_cid:he}=Y;if((0,I.Z)())return w({org_cid:K,name:ie,group_cid:he});try{return(0,r.B7)("/api/library/v3/asset_data/org/asset_group_from_user",{user_asset_group_cid,org_cid:K,org_asset_group_cid})}catch(Me){await(0,i.FY)(Me)}},w=async Y=>{let{org_cid:K,name:ie,group_cid:he}=Y;try{return(0,r.B7)("/api/library/v6/asset_groups",{org_cid:K,name:ie,parent_cid:null,group_cid:he,position:-99})}catch(Me){await(0,i.FY)(Me)}},j=async Y=>{(0,I.Z)()?await $(Y):await(0,r.sM)("/api/library/v3/asset_data/me/assets/"+Y.cid)},$=async Y=>{await(0,W.uz)("/api/library/v6/assets",{cids:[Y.cid]})},ee=async Y=>{await(0,W.uz)("/api/library/v6/assets",{cids:[Y.cid]})},q=async Y=>{(0,I.Z)()?await ae(Y):await(0,r.sM)("/api/library/v3/asset_data/me/asset_groups/"+Y)},ae=async Y=>{await(0,r.sM)("/api/library/v6/asset_groups/"+Y)},Ce=async Y=>{await(0,r.sM)("/api/library/v6/asset_groups/"+Y)},Q=Y=>(0,r.iv)("/preferences/update",{...Y}),R=async(Y,K)=>{if((0,I.Z)())return G(Y,K);try{return await(0,r.uP)("/api/library/v4/users/asset_groups/"+Y,{...K})}catch(ie){await(0,i.FY)(ie)}},G=async(Y,K)=>{const ie=MB.user.solo_org.cid;try{return await(0,r.uP)("/api/library/v6/asset_groups/"+Y,{...K,org_cid:ie})}catch(he){await(0,i.FY)(he)}},J=Y=>async(K,ie)=>{try{const he={...ie,org_cid:Y};return await(0,r.uP)("/api/library/v6/asset_groups/"+K,{...he})}catch(he){await(0,i.FY)(he)}},oe=async(Y,K)=>{let ie=null;try{const he=await fetchGetJSONWithHeader("/api/community/v1/workspace?category="+Y+"&plabel="+K);he!=null&&he.market_templates&&(ie=he==null?void 0:he.market_templates)}catch(he){retryErrorNotice()}return ie},te=async(Y,K)=>{let ie=null,he=null;try{const Me=await(0,r.DE)("/flpak/ww-p2wsearch?"+Y);if(Me!=null&&Me.data){const je=Me.data,{user_flat_assets:Ke,user_flat_asset_groups:st,org_flat_assets:et,org_flat_asset_groups:lt}=je.asset||{};return ie={...je,asset:{user_assets:Ke,user_asset_groups:st,org_assets:et,org_asset_groups:lt}},he=Me.p2mMMap,{data:ie,p2mMMap:he}}}catch(Me){(0,i.$r)({onClick:je=>je({type:"entry:search-panel:search:from:keyword",payload:{from:K}})})}},ve=async Y=>{let K=null;try{const ie=await(0,r.DE)("/flpak/ww-p2meta/"+Y);ie!=null&&ie.length&&(K=ie)}catch(ie){(0,i.$r)()}return K},pe=async Y=>{let{currentComboPanel:K,projectMetaCid:ie}=Y;try{await(0,r.zi)("/flpak/ww-migrate-"+K+"-combo-group/"+ie+"?mode=normal")}catch(he){await(0,i.FY)(he)}},be=async Y=>{let{projectBasicCid:K}=Y;try{const{userId:ie,flatKey:he}=await(0,r.DE)("/api/flat/web_v1/proj2-edit-info?prj2Cid="+K);return{userId:ie,flatKey:he}}catch(ie){await(0,i.FY)(ie)}},Ie=async Y=>{let{projectBasicCid:K,accessToken:ie,password:he}=Y;try{const{userId:Me,flatKey:je}=await(0,r.DE)("/api/flat/web_v1/proj2-preview-info?prj2Cid="+K+"&access_token="+ie+"&password="+he);return{userId:Me,flatKey:je}}catch(Me){await(0,i.FY)(Me)}},ke=Y=>(0,r.DE)("/api/dsh2/web_v1/org_entry/"+Y),Re=async Y=>{const{project:K}=await(0,r.DE)("/api/dashboard/v5/projects/"+Y);return K},ze=async(Y,K)=>{await(0,r.SN)("/api/dashboard/v5/projects/"+Y+"/cover",{project:K})},He=async Y=>(0,r.DE)("/api/upper/web_v1/basics/statstics/"+Y),We=async()=>{try{const{result:Y}=await(0,r.DE)("/api/community/v1/community/scene_tag_labels?label_type=combo_group");return Y}catch(Y){console.log(Y)}},Ve=async Y=>{try{const{stickers:K}=await(0,r.zi)("/api/community/v1/sticker_search_es",{q:Y,page:1,page_size:200});return K}catch(K){return console.log(K),[]}}},55244:(me,V,o)=>{"use strict";o.d(V,{JQ:()=>Z,kZ:()=>p,tg:()=>h,zW:()=>O});var l=o(79287),r=o.n(l),N=o(89022),i=o.n(N),I=o(13076),W=o.n(I),P=o(9025),_=o.n(P);if(o.j!=15)var U=o(47163);function f(b){return b<10?"0"+b:b}function x(b,v,a){const u=new Date(b),L=u.getFullYear(),B=f(u.getMonth()+1),D=f(u.getDate()),S=f(u.getHours()),z=f(u.getMinutes());return v==="time"?S+":"+z:v==="datetime"?""+B+a+D+" "+S+":"+z:""+L+a+B+a+D+" "+S+":"+z}const k=o.j!=15?["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Spt","Oct","Nov","Dec"]:null;function T(b,v){const a=new Date(b),u=a.getFullYear(),L=k[a.getMonth()],B=f(a.getDate()),D=f(a.getHours()),S=f(a.getMinutes());return v==="time"?D+":"+S:v==="datetime"?L+" "+B+" "+D+":"+S:L+" "+B+", "+u+" "+D+":"+S}function Z(b,v,a){if(v===void 0&&(v="datetime"),a===void 0&&(a="."),!b)return"";let u=b;typeof b!="number"&&(u=parseInt(b,10)),u.length===10&&(u=u*1e3);let L="";const B=(0,U.w)();return B==="zh-CN"?L=x(u,v,a):(B==="en-US"||B==="en")&&(L=T(u,v,a)),L}function O(b,v){v===void 0&&(v=m());const a=v-b;let u="";if(a<=3*1e3)u=I18N.Common.just_now||"\u521A\u521A";else if(a>3*1e3&&a<60*1e3)u=Math.floor(a/1e3)+I18N.Common.num_seconds_ago||"\u79D2\u524D";else if(a>=60*1e3&&a<60*60*1e3)u=Math.floor(a/(60*1e3))+I18N.Common.num_minutes_ago||"\u5206\u949F\u524D";else{u=Z(b,"full");const L=new Date(new Date().setHours(0,0,0,0)).getTime(),B=new Date(new Date().getFullYear(),0,1).getTime();b>B&&(u=Z(b,"datetime")),b>L&&(u=Z(b,"time"))}return u}function m(){return new Date().getTime()}const p=b=>{r().locale(b==="zh-CN"?"zh-cn":b),r().extend(i()),r().extend(W()),r().extend(_())},h=()=>r()().isBefore("2024-10-06"),E=b=>new Promise(v=>setTimeout(v,b))},55769:()=>{"use strict";const me={},V={},o={},l={}},56193:(me,V,o)=>{"use strict";o.d(V,{A:()=>u});var l=o(25582),r=o.n(l),N=o(38502),i=o(67787),I=o(60719);const W=i.Ay.div.withConfig({displayName:"styled__StyledCrashedPage",componentId:"sc-8goufi-0"})(["position:fixed;top:50%;left:50%;transform:translateX(-50%) translateY(-55%);text-align:center;color:#666;.logo{margin:0 auto 40px;height:320px;.logo-clickable{cursor:pointer;}.svg-icon{width:600px;fill:none;}}.mobile &{.logo{width:100%;transform:scale(0.8);}.content{.title{font-size:20px;line-height:24px;}.proposal{width:290px;font-size:14px;line-height:20px;}}}p{margin:0;}.content{margin:40px auto;.title{font-weight:600;font-size:24px;line-height:24px;color:#1f292e;}.proposal{width:max-content;margin:12px auto 40px;font-style:normal;font-weight:normal;font-size:16px;line-height:20px;color:#415058;.count-detail{color:#1684fc;}}.text-left{text-align:left;margin-bottom:-12px;}.text-list{margin:0;padding-left:24px;}}.btn-list{display:grid;grid-auto-flow:column;gap:20px;justify-content:center;.btn{width:200px;height:48px;display:inline-block;border-radius:6px;font-size:16px;font-weight:500;line-height:46px;cursor:pointer;transition:all 0.2s ease-out;}.primary{color:",";background:",";border:1px solid transparent;&:hover{background:",";border:1px solid transparent;}&:active{background:",";border:1px solid transparent;}}.regular{color:",";background:",";border:1px solid ",";&:hover{background:",";border:1px solid ",";}&:active{background:",";border:1px solid ",";}}}"],I.f.color_text_btn.value_light,I.f.color_btn_primary_normal.value_light,I.f.color_btn_primary_hover.value_light,I.f.color_btn_primary_clicked.value_light,I.f.color_text_L1.value_light,I.f.color_bg_white.value_light,I.f.color_bg_border_02.value_light,I.f.color_btn_secondary_hover.value_light,I.f.color_bg_border_02.value_light,I.f.color_btn_secondary_active.value_light,I.f.color_bg_border_02.value_light);var P=o(72214);const _="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' fill='none'%3E%3Cpath fill='url(%23a)' d='M200 158.5c-54.4-5.2-59.3 54.2-55 84.5h308c22.8-46-17.7-69.2-44-73.5 49.3-15.5 19.5-88-28.5-116C258.2-17.8 268 165 200 158.5Z' opacity='.6'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-width='2' d='M145 243h66a2 2 0 0 0 2-2V122.6a2 2 0 0 1 1.6-2L333 94l-101.6 32.6a2 2 0 0 0-1.4 1.9v139a2 2 0 0 0 2.5 2l54-13'/%3E%3Cpath fill='%231F292E' d='M213 121.5v122l17 26V127l100.5-32.5-117.5 27Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M455 243h-38'/%3E%3Ccircle cx='251' cy='198' r='4' fill='%231F292E'/%3E%3Cpath fill='%23FF6161' fill-rule='evenodd' d='M250.4 182.2Zm2.3-3.2a24.2 24.2 0 0 1 2.7-1c.9-.3 3 .2 4.4 1.1.6.6-.5.2-2 .4l-1.9.4a22.7 22.7 0 0 0-5 2.4 5.2 5.2 0 0 1-.7.3 1.8 1.8 0 0 1-.3.1 1.2 1.2 0 0 1-.3 0 1 1 0 0 1-.6-.2 1 1 0 0 1-.4-.8 1 1 0 0 1 0-.4l.3-.4.5-.5 1-1a2.2 2.2 0 0 0 .2-.3.7.7 0 0 0 0-.1.9.9 0 0 0-.1-.1c-.4-.2-1-.4-2.3-.6a3.2 3.2 0 0 1-.3 0 1.6 1.6 0 0 1-.5-.2 1 1 0 0 1-.5-.9c0-.4.2-.7.3-.8l.6-.4.6-.3.5-.2a13 13 0 0 0 2.7-1.2l.9-.7v-.4c-.1-.2-.4-.6-1.3-1-.8-.6-2-1.1-3.7-1.7a2.6 2.6 0 0 1-.8-.5 1 1 0 0 1-.5-.9c-.1-.5.2-1 .4-1.1.3-.2.6-.4.9-.4 1.6-.4 4-1 5.9-2.8 1.7-1.5 3-4.2 1.8-9.2a2.3 2.3 0 0 1 0-1.2l.2-.4a1 1 0 0 1 1.6-.2c.2.1.3.3.3.4l.5 1c.8 2 3.5 4.9 6.7 6.7 1.2.7 1.2.8 0 .4-2.2-.6-5.6-2-7.3-4.6 1.3 4.3-.8 7-2.4 8.6a13.1 13.1 0 0 1-5.3 2.8c1.2.4 2 .9 2.8 1.3a5 5 0 0 1 2 2c.4.8.3 1.6-.1 2.2-.4.6-1 1-1.6 1.4l-1.7.9.6.2c.7.4 1.2 1 1.2 1.9Zm-2 0Z' clip-rule='evenodd'/%3E%3Cpath fill='%23fff' d='M292 163.5c61.2 5.2 103.5 55.5 117 80l-115 14-4-12.5 2-8-3-11 3-10 3.5-4v-13l7.5-7c-25-2-35-4-36.5-14.5.5-3.6 3.1-15.9 25.5-14Z'/%3E%3Cpath fill='%231F292E' fill-rule='evenodd' d='M363 191.1a219 219 0 0 1 46.8 51.6 1 1 0 1 1-1.6 1 217 217 0 0 0-46.5-51c-21.7-17-48.6-29.9-78.3-27.4-10.1.8-15 6.3-15.4 11.4-.4 5 3.6 10.6 12.8 11.8l5.2.6c5.4.7 11.2 1.4 16.5 2.4a70 70 0 0 1 12.1 3.2c3.5 1.3 6.5 3 8.5 5.4a1 1 0 0 1-1.6 1.3c-1.6-2-4.2-3.5-7.6-4.8a66.7 66.7 0 0 0-11.3-3c-3.5 2.3-7 6.7-7 12.9-.1 6.3 3.7 14.7 16 24.7 4.7 3.7 9.5 5 13.4 4.5a1 1 0 0 1 1.3-.3 11.1 11.1 0 0 0 1.2-.3c2-.7 3.6-2 4.6-3.7.8-1.4 1-3.2.7-5.3-4.2.6-7.4.3-9.7-.7-2-.8-3.2-2-4-3.6a8.5 8.5 0 0 1-.6-5.2c.3-1.5.8-3 1.6-4.5a26.7 26.7 0 0 1-2.2-2.8 7 7 0 0 1-1.2-2c-.4-.8-.6-1.5-.6-2.2a1 1 0 1 1 2 0c0 .3.1.7.4 1.3.2.6.6 1.2 1 1.8a24.1 24.1 0 0 0 1.7 2.1 29.4 29.4 0 0 1 19.1-11.4 1 1 0 0 1 .4 2c-5.7.8-10.5 3.2-14 6.3a22.1 22.1 0 0 0-4.3 5 1 1 0 0 1-.4.6 13 13 0 0 0-1.5 4.1c-.3 1.6-.1 3 .4 4 .5 1.1 1.5 2 3 2.7 3 1.3 8.2 1.3 16.3-1.3 3.7-1.5 6.9-2.2 9.3-2.1 2.5 0 4.5.8 5.6 2.1a5 5 0 0 1 .7 5.1 12 12 0 0 1-4.3 5.3c-8 6-7.5 11.8-6.6 13.5a1 1 0 1 1-1.8 1c-1.4-3-1.4-9.6 7.2-16 2-1.5 3.1-3.1 3.6-4.4.5-1.4.3-2.4-.3-3.2-.7-.7-2-1.4-4.1-1.4-2.1 0-5 .5-8.6 2l-6.1 1.6c.4 2.5 0 4.7-1 6.6a10.2 10.2 0 0 1-5.6 4.6 12.3 12.3 0 0 1-1.1.3c.6 2.9.4 6-.7 8.6a9.4 9.4 0 0 1-6.1 5.4c5 4.5 6.4 10 5.1 14.4a8.7 8.7 0 0 1-3 4.6c3.2 2.3 9 5 15.8 5a1 1 0 0 1 1 0 28 28 0 0 0 12.1-3.5 1 1 0 1 1 1 1.8 30 30 0 0 1-11.8 3.6 51.8 51.8 0 0 1 3.2 8c1.2 3.9 2 8.2 1.3 12a1 1 0 1 1-2-.4c.6-3.3 0-7.3-1.2-11-1-3.4-2.4-6.5-3.5-8.5-8 0-14.4-3.3-17.8-6-2 .8-4.6.8-7.2-.3-13.4-5.2-19.9-12-22.4-18.3-2.4-6-1.2-11.6.7-15.1a21.2 21.2 0 0 1-2.8-15.1c.8-4.5 3-8.3 5.6-10.2A17.5 17.5 0 0 1 300 193l-14.1-1.9a765.9 765.9 0 0 1-5.2-.7c-10-1.2-15-7.4-14.6-13.9.5-6.4 6.5-12.3 17.2-13.2 30.4-2.5 57.8 10.7 79.7 27.8Zm-68 23.2c2.3 5.5 7 11.7 15.3 18.4 5 4 10.3 5.5 14.7 5 .5 2.5.4 5.2-.5 7.4a7.7 7.7 0 0 1-6.7 4.6c-3 .3-7.1-.5-12.5-3a28.2 28.2 0 0 1-11.7-9.7 19.2 19.2 0 0 1-3-14.2 15 15 0 0 1 4.4-8.5Zm-2.2 25.2c-1.4 3-2.1 7.6-.1 12.5 2.2 5.7 8.2 12 21.2 17.2 2.3.9 4.3.8 5.8.2a1 1 0 0 1 .7-.3 6.5 6.5 0 0 0 3-4c1-3.7-.3-9.1-5.8-13.4-3.5.3-7.8-.7-13.2-3.3-5.2-2.5-9-5.6-11.6-9Zm75.4 17.1a1 1 0 0 1-.5 1.4 7.7 7.7 0 0 0-3.8 4.5 1 1 0 1 1-2-.5 9.7 9.7 0 0 1 5-5.8 1 1 0 0 1 1.3.4Z' clip-rule='evenodd'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='426' x2='259' y1='125' y2='289' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EDF8FF'/%3E%3Cstop offset='1' stop-color='%23FAEFFF'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E",U="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAwIiBoZWlnaHQ9IjMyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjUwLjUgMjk1LjVsLTctMzYgNi41LS41IDguNS0yIDktNSAzNCAyLjUgOCAzOC41LTU5IDIuNXoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl83ODc4XzE1MjE3KSIvPjxwYXRoIG9wYWNpdHk9Ii42IiBkPSJNNDM2LjE1MiAxNTguNWM1NC40LTUuMiA1OS4zMzQgNTQuMTY2IDU1IDg0LjVoLTMwOGMtMjIuOC00NiAxNy42NjctNjkuMTY3IDQ0LTczLjUtNDkuMzMzLTE1LjUtMTkuNS04OCAyOC41LTExNiAxMjIuMjU0LTcxLjMxNSAxMTIuNSAxMTEuNSAxODAuNSAxMDV6IiBmaWxsPSJ1cmwoI3BhaW50MV9saW5lYXJfNzg3OF8xNTIxNykiLz48cmVjdCB4PSIyNjcuNjQ4IiB5PSIxNDQiIHdpZHRoPSIzOCIgaGVpZ2h0PSI5OCIgcng9IjMiIHN0cm9rZT0iIzFGMjkyRSIgc3Ryb2tlLXdpZHRoPSIyIi8+PHJlY3QgeD0iMjI5LjY0OCIgeT0iMTE0IiB3aWR0aD0iMzgiIGhlaWdodD0iMTI4IiByeD0iMyIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cmVjdCB4PSIzNzkuNjQ4IiB5PSIxMjgiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxMTQiIHJ4PSIzIiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIvPjxyZWN0IHg9IjQwMC42NDgiIHk9IjE0NCIgd2lkdGg9IjI5IiBoZWlnaHQ9Ijk4IiByeD0iMyIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cmVjdCB4PSIzMDUuNjQ4IiB5PSIxMjgiIHdpZHRoPSIxOSIgaGVpZ2h0PSIxMTQiIHJ4PSIzIiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIvPjxyZWN0IHg9IjMyNS42NDgiIHk9IjEzMC4yMzIiIHdpZHRoPSIyMi4yODkiIGhlaWdodD0iMTE2IiByeD0iNCIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1LjcyMyAzMjUuNjQ4IDEzMC4yMzIpIiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtZGFzaGFycmF5PSIxIDgiLz48cGF0aCBkPSJNMTc3LjY0OCAyNDJoMzEwIiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIvPjxwYXRoIGZpbGw9IiMxRjI5MkUiIGQ9Ik0zODAuNjQ4IDIwMGgxOXYxN2gtMTl6Ii8+PHBhdGggZmlsbD0iIzE2ODRGQyIgZD0iTTQwMS42NDggMTY4aDI5djE5aC0yOXoiLz48cGF0aCBmaWxsPSIjMUYyOTJFIiBkPSJNMzgwLjY0OCAyMjFoMTl2NGgtMTl6TTI2OC42NDggMTU5aDM2djEzaC0zNnoiLz48cGF0aCBkPSJNMjk1LjE0OCAxODNjOC0uOCAxNCA4LjMzMyAxNiAxM2wtNTAgMjEtMjQuNS0xNCAyLTQuNSA0LjUtOCA5LTMuNSA5IC41IDYuNS00LjUgNi0xLjUgNiAxLjUgNCA0Yy41LTEgMy41LTMuMiAxMS41LTR6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTI0Mi4xNDggMjA0bDY4LTctMi41IDU3LTU4LTItNy41LTQ4eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0zMTAuMTQ4IDE5N2wuOTk5LjA0NC4wNTEtMS4xNTctMS4xNTIuMTE4LjEwMi45OTV6bS02OCA3bC0uMTAyLS45OTUtMS4wNDguMTA4LjE2MiAxLjA0MS45ODgtLjE1NHptNy41IDQ4bC0uOTg4LjE1NC4xMjguODE3LjgyNi4wMjguMDM0LS45OTl6bTU4IDJsLS4wMzQuOTk5YTEgMSAwIDAgMCAxLjAzMy0uOTU1bC0uOTk5LS4wNDR6bTIuMzk4LTU3Ljk5NWwtNjggNyAuMjA1IDEuOTkgNjgtNy0uMjA1LTEuOTl6bS02OC44ODYgOC4xNDlsNy41IDQ4IDEuOTc2LS4zMDgtNy41LTQ4LTEuOTc2LjMwOHptOC40NTQgNDguODQ1bDU4IDIgLjA2OS0xLjk5OC01OC0yLS4wNjkgMS45OTh6bTU5LjAzMyAxLjA0NWwyLjUtNTctMS45OTgtLjA4OC0yLjUgNTcgMS45OTguMDg4eiIgZmlsbD0iIzFGMjkyRSIvPjxwYXRoIGQ9Ik0yOTQuMTQ4IDE4Mi41YzgtLjggMTQgOC4zMzMgMTYgMTNsLTI5LjUgMTAuNS02LjUtM3YtOC41bDguNS04Yy41LTEgMy41LTMuMiAxMS41LTR6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTMxMC42NDggMTk2Yy0yLTctMTEuMjEyLTE5LjY4Ni0yOC41LTguNS0xNyAxMS03LjUgMjUuNSA5LjUgMTRtLTgtMTQuOTIzYy0zLjgzMy0zLjY2Ny0xMi4wNi0xMC43MjItMjQgMi45MjMtNyA4IDAgMTcuNSAxNCA5TTI2MS4xNDggMTg3LjVjLTYtMi4xNjctMTkuNi0xLjUtMjQgMTQuNSIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBkPSJNMTg4LjE0OCAyMDZsNTktNC41IDEuNSA1Ny41LTYzLjUtMy41IDMtNDkuNXoiIGZpbGw9IiNmZmYiIHN0cm9rZT0iIzFGMjkyRSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTIwMy42NDkgMTk3LjAzMWM1LjYtLjggMTAuMzMzIDQuNjY2IDEyIDcuNUwyMDguNSAyMDcuNWwtNiA1LjUtNC41IDctMSAxMCAzLjUgMTUgMS41IDktNCAxMi0yLjUgNy41LS41IDE3LjUtNzIgNC41IDIuNS0zMC41LTExLjUtMTYuNS01LjUtMTUuNXYtMTRsNy0xNCA4LTcgNSAxIDQuNSA5LjUgNi41LTguNDY5IDEwLTguMDMxIDcuNS41IDQuNSAzLTQuNSA0LjUzMWMxNS41LTEzLjAzMSAyMi4wNTctMy41MzEgMTkuNSAwIDguNC0xMS42IDE2LjgxNS00LjMzNCAyMC42NDkgMC0uMTY3LS42NjcuOS0yLjIgNi41LTN6IiBmaWxsPSJ1cmwoI3BhaW50Ml9saW5lYXJfNzg3OF8xNTIxNykiLz48cGF0aCBkPSJNMTg3LjE0OCAyMTEuNWMzLjE4Ni02LjYxNiA2LjU3Ny0xMC40OTIgOS44OTQtMTIuNW0wIDBjNy41MTItNC41NDggMTQuNjM4LjQ5MSAxOC4xMDYgNS02LjAzNSAyLjE2Ny0xOC4xMDYgOS44LTE4LjEwNiAyMyAwIDE2LjUgMTEuMTA2IDI0LjUtMS44OTQgNDZ2MThtMS44OTQtOTJjLTUuMjk4LTUuODMzLTE4LjE5NC0xMS41LTI3LjM5NCAxMi41bTgtMTQuNWMtNC42NjYtNS4zMzMtMTYuNS05LjUtMjYuNSAxNi41IiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIvPjxwYXRoIGQ9Ik0xNjEuNjQ3IDE5NmMtNC44MzMtNi4xNjctMTYuMDEyLTEwLjI0NC0zMS41IDE4LTUuMjEgOS41LTYgMjYtMSAzMyIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBkPSJNMTMyLjY0OCAyMTBjLTEuMTY3LTYuODM0LTUuNi0xOC4xLTE0LTguNS0xMC41IDEyLTIwIDMxLjUgNi41IDYzbC0yIDMxTTMwMS4xNDggMjU0bDcuNSAzOU0yNDMuNjQ4IDI1OGw2LjUgMzcuNSIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIzMDguNjQ4IiBjeT0iMjI1IiByPSIyOSIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIyNDguNjQ4IiBjeT0iMjMwIiByPSIyOSIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIzMDguNjQ4IiBjeT0iMjI1IiByPSIyMiIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIyNDguNjQ4IiBjeT0iMjMwIiByPSIyMiIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTM0OS42NjcgMTAxLjM5NWwuMDAxLjAwMS0uMDAxLS4wMDF6bTEuNTc0IDMuNTQ1YTI0LjEyNCAyNC4xMjQgMCAwIDEtLjUwMSAyLjgzMWMtLjIyLjkwNS0xLjY1IDIuNTA2LTMuMjI0IDMuMjYxLS43NTkuMjMzLjA5NS0uNDg4LjY3My0xLjgzNi4yMDMtLjQ1OC40MTYtMS4xMDcuNjA3LTEuODk3LjM4Mi0xLjU3Ni42NTItMy42MDUuNjExLTUuNThhNS4yNCA1LjI0IDAgMCAxIC4wMjUtLjcxNWMuMDEyLS4wOTUuMDMyLS4yMjMuMDc1LS4zNTNhMS4yIDEuMiAwIDAgMSAuMTMzLS4yNzUgMS4wMyAxLjAzIDAgMCAxIDEuMzYxLS4zNDdjLjE4OS4xMDMuMzAxLjI0LjM1My4zMS4xMDYuMTQ0LjE2NS4yOTQuMTk1LjM3OC4wNjkuMTkxLjEyNS40MzMuMTczLjY5Ni4wODguNDg1LjE4OS45NDcuMzI2IDEuMzIxLjA2OC4xODUuMTM1LjMyMi4xOTYuNDE4YS43ODUuNzg1IDAgMCAwIC4wNjkuMDkxLjg1Mi44NTIgMCAwIDAgLjE5MS0uMDljLjMzNi0uMTk3Ljg2My0uNjcxIDEuNjA3LTEuNjUzLjA3OS0uMTA1LjE2MS0uMjA2LjI0Ny0uMjk1YTEuNTcgMS41NyAwIDAgMSAuMzY4LS4yOTFjLjE1NS0uMDg1LjU2LS4yNTQgMS4wMTEtLjAyOC40MS4yMDUuNTMxLjU4MS41NjUuNzA2LjA3NC4yNy4wNS41NjUuMDM3LjcyMi0uMDE5LjIwMy0uMDUyLjQzOS0uMDkuNjgxbC0uMDgxLjUwNWMtLjE1MS45MjEtLjMyNiAxLjk5NS0uMzEgMi45MjIuMDEuNTU0LjA4OS45MjYuMTk3IDEuMTM3LjA3NC4xNDQuMTMuMTc4LjI2NS4xOS4yMzEuMDIuNzItLjA1NiAxLjU4Ny0uNTE4Ljg0NS0uNDUxIDEuOTQ3LTEuMjEzIDMuMzY3LTIuMzk5LjIyLS4xODQuNDctLjM0OS43NDEtLjQ1MS4yNTQtLjA5NC42NjYtLjE4MiAxLjA5LjAxLjQ3Ny4yMTYuNjc4LjY0OS43MzIuOTk5LjA1MS4zMjctLjAwNi42NTItLjA4OC45MzEtLjQ3NCAxLjYwNi0xLjE5NiA0LjA2My0uNjcxIDYuNDcxLjQ5NiAyLjI3OSAyLjE2OCA0LjczIDcuMDE3IDYuMjEzLjQwNS4xMjQuODE0LjM4OSAxLjA2Ni42OTYuMDY4LjA4NC4xNTcuMjA5LjIyMS4zNzFhMS4wOTMgMS4wOTMgMCAwIDEtLjYyNiAxLjQzNWMtLjIwNi4wOC0uNC4wODgtLjUyOC4wODRhMTIuMjc1IDEyLjI3NSAwIDAgMS0xLjEyMS0uMTE1Yy0yLjA2LS4yNjgtNS45Ni41OTYtOS4xMzcgMi4zOTYtMS4xOTUuNjc3LTEuMzUuNjE3LS4zNTMtLjMyNiAxLjYyOS0xLjU0MSA0LjUwOS0zLjc0NyA3LjY4LTMuODY0LTQuMzQ1LTEuMDItNS42ODMtNC4yMTUtNi4xNzMtNi40NjQtLjQ3My0yLjE3LS4xMjQtNC4zMTguMjc3LTUuOTIyLS45NzIuNzQ4LTEuODE3IDEuMzA3LTIuNTU0IDEuNy0uOTkyLjUyOS0xLjg5OC44MTYtMi43MDIuNzQ1LS45MDEtLjA3OS0xLjUyMS0uNTktMS44Ny0xLjI3MS0uMzE1LS42MTYtLjQwNS0xLjM1MS0uNDE3LTIuMDEzLS4wMS0uNjE0LjA0OC0xLjI3OC4xMjctMS45MDFhNC4zMDUgNC4zMDUgMCAwIDEtLjQ3LjMyM2MtLjcyMy40MjQtMS41MzEuNTMyLTIuMjQ2LjA3OWwtLjAyOC0uMDE4em0xLjAyOS0xLjY5MXMuMDA5LS4wMDMuMDIyIDBjLS4wMTYuMDAzLS4wMjIgMC0uMDIyIDB6IiBmaWxsPSIjRkY2MTYxIi8+PHBhdGggZD0iTTI1MC42NDggMjIzLjVsLTcgOS41TTMxMS42NDggMjE4bC03IDkuNU0yNTIuNjQ4IDIzMGwtNyA5LjVNMzEzLjY0OCAyMjQuNWwtNyA5LjUiIHN0cm9rZT0iIzFGMjkyRSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNzg3OF8xNTIxNyIgeDE9IjI3My41IiB5MT0iMjU0LjUiIHgyPSIyNjYuMDk3IiB5Mj0iMjkxLjMwNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9Ii43MzEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyXzc4NzhfMTUyMTciIHgxPSIyMTAuMTUyIiB5MT0iMTI1IiB4Mj0iMzc3LjE1MiIgeTI9IjI4OSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNFREY4RkYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGQUVGRkYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQyX2xpbmVhcl83ODc4XzE1MjE3IiB4MT0iMTg4IiB5MT0iMjU2IiB4Mj0iMTg2LjkyNiIgeTI9IjI5Mi41MjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIuNjc2IiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii44Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",f="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' fill='none'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='url(%23b)' d='M200 158.5c-54.4-5.2-59.3 54.2-55 84.5h308c22.8-46-17.7-69.2-44-73.5 49.3-15.5 19.5-88-28.5-116C258.2-17.8 268 165 200 158.5Z' opacity='.6'/%3E%3Cpath stroke='%231F292E' stroke-width='2' d='M145 242h310'/%3E%3Cpath fill='%23fff' d='M195.3 213c-7.5-17.5-7.5-20-7.5-20l38.8-39.8c15.9 23.6 45.6 71.5 37.6 74.6a46 46 0 0 0-17.5 13.4h-63.1s19.2-10.5 11.7-28.1Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='10' d='M378 221.6c-29.5-66-56.2-32.1-109.5-78.5-52.2-34.8-99.8-36-117.2-16-38.6 44.2 90.6 76.6 34.4 112.9'/%3E%3Cpath fill='%23fff' d='M306 149.4c-12.4 6.4-15.5 16.6-15.5 21 0 16.7 14 13.4 21 9.6l14.1 15.5a67.3 67.3 0 0 1-37.1 22.6 97.9 97.9 0 0 0-42.2 23l-26-23 12.2-35.2-26-9.2c15.5-15 27.6-23.9 40.2-54.9 2.9-11.3 10.7-33 20-32.6 9.4.3 5.3 20.5 2.1 30.5 10.5-4.1 13.4 4.7 15.5 3.8 7-3 13.9 2.5 15.8 5.9 5-3 14.8-4.3 18.8 0 10.4 11 11.2 29.8 3.8 35.2 0 0-13.7-5.8-14.6-6.7-.4-.4-1.1-.4-2.1-5.5Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M306 149c1.5 3.3 4.5 10.5 8.6 13 5.3 3.4 17.6-1.5 12.1-22.5-5.5-21-22.7-23.4-49.4 4.5'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M300.4 125.4c-2.7-2.3-6.8-7.8-16-5m-23.2 17.2c10.2-10.7 17.7-15.5 23.3-17.2m0 0c-2.3-3.2-7.7-6.4-15.7-3.9m-20 15.3c7.8-9 14.5-13.5 20-15.3m0 0c2.8-7 8.3-26-2.3-30.4-15.1-6.3-13.2 35.3-36 62.4a561.6 561.6 0 0 1-43.1 45'/%3E%3Cpath fill='%23fff' d='m330.3 165.8-5.9.5-5.8 6-7.5 7.4-11.5 6.9-11.5 6.9 28.7 11.6 11-11.5 6.8-13.5-.2-10.7-4-3.6Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M310.8 146.3c-7.5 3.2-24.2 14.2-19 29 3.8 10.8 16.5 10.6 26.5-3.1 10-13.8 20.8-3.9 15.5 10.2-12 31.4-47 34.1-60 40.4-9.7 4.7-16.6 8.7-27.8 18.7'/%3E%3Ccircle cx='383.5' cy='234.5' r='17.5' fill='%23fff' stroke='%231F292E' stroke-width='2'/%3E%3Ccircle cx='381.5' cy='229.5' r='18.5' fill='%231684FC'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linejoin='round' stroke-width='2' d='M329.7 261.3a1 1 0 0 1 .7-.3h139a1 1 0 0 1 .7 1.7l-17.8 16a1 1 0 0 1-.7.3h-139a1 1 0 0 1-.7-1.7l17.8-16Z'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linejoin='round' stroke-width='2' d='M313.7 285.5a1 1 0 0 0 .9.5h139.7a1 1 0 0 0 .8-1.5l-2.8-5a1 1 0 0 0-.9-.5H311.7a1 1 0 0 0-.8 1.5l2.8 5ZM472 269.1a1 1 0 0 1-.3.7L457 285a1 1 0 0 1-1.6-.2l-2.9-5.1a1 1 0 0 1 .2-1.2l17.7-16a1 1 0 0 1 1.7.7v5.9Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='square' stroke-linejoin='round' stroke-width='4' d='M466 277.5c16.3 6.3 39.2 21.6 0 32-39.2 10.4-45 32.7-43 42.5'/%3E%3Crect width='2' height='6' x='342' y='266.9' fill='%231F292E' rx='1' transform='rotate(-27 342 267)'/%3E%3Crect width='2' height='6' x='392' y='266.9' fill='%231F292E' rx='1' transform='rotate(-27 392 267)'/%3E%3Crect width='2' height='6' x='429.9' y='267.1' fill='%231F292E' rx='1' transform='rotate(-31 429.9 267)'/%3E%3Crect width='2' height='6' x='351.9' y='266.1' fill='%231F292E' rx='1' transform='rotate(31 352 266.1)'/%3E%3Crect width='2' height='6' x='402.2' y='266.2' fill='%231F292E' rx='1' transform='rotate(36 402.2 266.2)'/%3E%3Crect width='2' height='6' x='440.6' y='266.3' fill='%231F292E' rx='1' transform='rotate(43 440.6 266.3)'/%3E%3Crect width='4' height='10' x='374' y='225' fill='%231F292E' rx='2'/%3E%3Crect width='4' height='10' x='385' y='225' fill='%231F292E' rx='2'/%3E%3Cpath fill='%23FF6161' fill-rule='evenodd' d='M406 190.4Zm1.6 3.5a24 24 0 0 1-.5 2.9c-.2.9-1.7 2.5-3.2 3.2-.8.3 0-.5.6-1.8.2-.5.5-1.1.6-1.9a22.7 22.7 0 0 0 .7-5.6 5 5 0 0 1 0-1l.2-.3c0-.1.2-.3.5-.4.3-.2.6 0 .9 0l.3.3.2.4.2.7a8.4 8.4 0 0 0 .5 1.8 1 1 0 0 0 .3 0 9 9 0 0 0 1.6-1.7 3.3 3.3 0 0 1 .2-.3l.4-.3a1 1 0 0 1 1 0c.4.2.5.6.6.7v.7l-.1.7v.5c-.2 1-.4 2-.4 3l.2 1c0 .2.1.2.3.2.2 0 .7 0 1.6-.5.8-.4 2-1.2 3.3-2.4l.8-.4c.2-.1.6-.2 1 0 .5.2.7.6.8 1l-.1 1c-.5 1.5-1.2 4-.7 6.4.5 2.3 2.2 4.7 7 6.2.5.1.9.4 1.1.7l.2.4c0 .1.2.4 0 .8a1 1 0 0 1-.6.6h-.5a12.7 12.7 0 0 1-1.1 0c-2.1-.3-6 .6-9.2 2.4-1.2.6-1.3.6-.3-.4 1.6-1.5 4.5-3.7 7.6-3.8a7.9 7.9 0 0 1-6.1-6.5c-.5-2.2-.1-4.3.3-5.9l-2.6 1.7a5 5 0 0 1-2.7.7c-.9 0-1.5-.5-1.9-1.2-.3-.6-.4-1.4-.4-2l.1-2a4 4 0 0 1-.4.4c-.8.4-1.6.5-2.3 0Zm1-1.7Z' clip-rule='evenodd'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='b' x1='426' x2='259' y1='125' y2='289' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EDF8FF'/%3E%3Cstop offset='1' stop-color='%23FAEFFF'/%3E%3C/linearGradient%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h600v320H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E",x="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' fill='none'%3E%3Cpath fill='url(%23a)' d='M332.3 78.2a71 71 0 0 0-110-27.1c-35.6 37.9-27 57.2-37.5 90.3-13 41.3-45.8 28-45.8 101 0 57.5 111.8 79 162.3 27.2 31-31.7 72.1-13.8 118-27.2 66.1-19 52.2-130-19.4-130-53.9 0-61.5-17-67.6-34.2Z' opacity='.6'/%3E%3Cpath stroke='%231F292E' stroke-width='2' d='M80 242h440'/%3E%3Cpath fill='%231F292E' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M156.8 260.3V134h140.5l18.5 120.7-159 5.6Z'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m139 134.4 17.8-.4v126.3L124 241l15-106.5Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m150.7 134.9-2.6 115m-3.8-115.5-4.8 65.1m-3 20.7-3 25.9m23.3-96.6 142.2-.8'/%3E%3Ccircle cx='165' cy='141.3' r='2.2' fill='%23FF6161'/%3E%3Ccircle cx='172.7' cy='141.3' r='2.2' fill='%23FFD361'/%3E%3Ccircle cx='180.5' cy='141.3' r='2.2' fill='%237BECB6'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m301.8 244.2-107 25.4a2 2 0 0 1-1.7-.3c-38.9-29-36-119.8-36-119.8l142.4-.8s7 37.9 23.5 49.4c1 .7.5 3.8-.6 3.9l-5 .4a1 1 0 0 0-.8 1.5l3.2 5.9a1 1 0 0 1-1.2 1.4l-11.7-4a1 1 0 0 0-1.3 1.4l1.8 3.6a1 1 0 0 1-1 1.4l-19-1.3c-1 0-1.5 1.2-.7 1.8l10.7 7.8a1 1 0 0 1 0 1.7l-3.4 2a1 1 0 0 0-.3 1.5l3.8 4.7a1 1 0 0 1-.6 1.7l-7.2 1.2a1 1 0 0 0-.2 2l12.5 5.6a1 1 0 0 1-.2 1.9Z'/%3E%3Cpath fill='%23F33' d='m226.1 198.2-1-13.2a.3.3 0 0 1 .2-.3l7-.5a.3.3 0 0 1 .3.2l1 13.2a.3.3 0 0 1-.2.3l-7 .6a.3.3 0 0 1-.3-.3Zm12.3-1-1-13.2a.3.3 0 0 1 .2-.3l7-.5a.3.3 0 0 1 .3.2l1 13.2a.3.3 0 0 1-.2.3l-7 .5a.3.3 0 0 1-.3-.2Zm19.7-15.2a.3.3 0 0 1 .3.3l.9 10.4v3a22.2 22.2 0 0 1-11.2 18.1.3.3 0 0 1-.4-.1l-3.4-6.1a.3.3 0 0 1 .2-.4c4.7-2.8 7.7-8 7.2-13.9l-.8-10.4a.3.3 0 0 1 .2-.3l7-.6Z'/%3E%3Cpath fill='%23fff' d='m378.8 208.7-6.5-1.8c-6.5-3.2-19.5-8.3-19.5-3.5 0 6.1.9 24 12.6 40a121.7 121.7 0 0 1 16.9 35.1l79-28.2v-33.8s17.7-46 17.7-53.5-14-5-20.5 4.5-7 13-7 13c-5.5-9-11.5-8.2-15-6.6-3.8-5.2-13.1-8.2-17.3-9-4.2-9.8-12.2-11-15.6-10.5l-15.7 3-4.3 30.9 17.4-7.9c1.7 5.4 3.9 18-1.3 25.2-5.2 7.3-11.2 8.3-13.5 7.8l-7.4-4.7Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M400.7 181.2c-3.5 1.6-10.7 5.1-15.7 4.3-6.3-1-12.7-13.1 5.9-25.9s33.7-2.9 35.7 37.2'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M421 166.5c3.7 0 10.7-1.5 16 6.8m6.5 29.4c-.7-15.3-3.3-24.2-6.5-29.4m0 0c4-1 10.3.2 14.9 7.6m5.3 25.7c0-12.5-2.2-20.6-5.3-25.7m0 0c2.6-7.4 11.2-26 22.4-22.2 16.2 5.3-13.7 36.6-14.1 73.3a571 571 0 0 0 4.4 73.8'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m383.9 206-51.3-27.4c-.9-.5-.6-1.9.5-2l18.9-.6a1 1 0 0 0 .7-1.6l-6.9-9.9a1 1 0 0 1 1-1.5l8.3 2a1 1 0 0 0 1.2-1.1l-1.4-7.6a1 1 0 0 1 1.6-1l10.6 8.4a1 1 0 0 0 1.6-1l-5.1-18c-.3-1.1 1.1-1.8 1.8-1l8 11a1 1 0 0 0 1.8-.4l3.8-12a1 1 0 0 1 1.7-.4l5 4.9a1 1 0 0 0 1.4-.1l9.4-11.2c.6-.8 2-.2 1.7.8l-12.9 69a1 1 0 0 1-1.4.8Z'/%3E%3Cpath fill='%23fff' d='m370.1 177.8 4.4 4.4.4 8.7.9 10.8L380 215l4.4 13.2-30.4-10.4-.9-16.5 4-15.2 7.3-8.3h5.6Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M398.7 175.8c3.7 7.6 9.4 27.5-4.9 35.6-10.3 6-20-2.9-18.6-20.5 1.5-17.6-13.6-17-19-2.4-12 32.7 13.7 58.6 19.5 72.3 5.9 13.7 8.8 23 10.8 51.3'/%3E%3Cpath fill='%23FF6161' fill-rule='evenodd' d='M410 106.7Zm.9 3.8a24.1 24.1 0 0 1-1 2.7c-.3.8-2 2.2-3.7 2.7-.8 0 .2-.5 1-1.7l.9-1.8a22.7 22.7 0 0 0 1.5-5.4 5.4 5.4 0 0 1 .3-1l.2-.3.6-.3c.3 0 .6 0 .8.2.2.1.3.3.3.4l.1.4v.7a8.3 8.3 0 0 0 .3 1.8 1 1 0 0 0 .2 0c.4-.1 1-.5 2-1.3l.2-.3.4-.2a1 1 0 0 1 1 .2c.4.2.4.6.5.7l-.1.8a10.7 10.7 0 0 1-.4 1.1c-.3.9-.7 2-.8 2.8v1.2l.2.2 1.7-.2c.9-.3 2.1-.9 3.7-1.8.3-.2.5-.3.8-.3.3 0 .7-.1 1 .2.5.3.6.7.6 1 0 .4 0 .7-.2 1-.7 1.5-1.9 3.8-1.8 6.2.1 2.4 1.4 5 5.9 7.3.4.2.7.6 1 1v.3a1 1 0 0 1-.8 1.3 1.4 1.4 0 0 1-.5 0l-1.1-.3c-2-.6-6-.4-9.4.8-1.3.5-1.4.4-.3-.4 1.9-1.2 5-2.9 8.2-2.5a7.9 7.9 0 0 1-5-7.4c0-2.2.6-4.3 1.3-5.8-1 .6-2 1-2.8 1.3a5 5 0 0 1-2.8.2 2 2 0 0 1-1.6-1.5c-.2-.7-.2-1.4 0-2 0-.7.2-1.3.4-2a4.3 4.3 0 0 1-.5.3c-.8.3-1.6.3-2.3-.3Zm1.3-1.5Z' clip-rule='evenodd'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='427.5' x2='219.7' y1='147.8' y2='310.6' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EDF8FF'/%3E%3Cstop offset='1' stop-color='%23FAEFFF'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E",k="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' fill='none'%3E%3Cpath fill='url(%23a)' d='M332.3 78.2a71 71 0 0 0-110-27.1c-35.6 37.9-27 57.2-37.5 90.3-13 41.3-45.8 28-45.8 101 0 57.5 111.8 79 162.3 27.2 31-31.7 72.1-13.8 118-27.2 66.1-19 52.2-130-19.4-130-53.9 0-61.5-17-67.6-34.2Z' opacity='.6'/%3E%3Cpath stroke='%231F292E' stroke-width='2' d='M80 242h440'/%3E%3Cpath fill='%231F292E' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M156.8 260.3V134h140.5l18.5 120.7-159 5.6Z'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m139 134.4 17.8-.4v126.3L124 241l15-106.5Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m150.7 134.9-2.6 115m-3.8-115.5-4.8 65.1m-3 20.7-3 25.9m23.3-96.6 142.2-.8'/%3E%3Cpath fill='%23FF6161' d='M165 143.5a2.2 2.2 0 1 0 0-4.3 2.2 2.2 0 0 0 0 4.3Z'/%3E%3Cpath fill='%23FFD361' d='M172.7 143.5a2.2 2.2 0 1 0 0-4.3 2.2 2.2 0 0 0 0 4.3Z'/%3E%3Cpath fill='%237BECB6' d='M180.5 143.5a2.2 2.2 0 1 0 0-4.3 2.2 2.2 0 0 0 0 4.3Z'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m301.6 241.5-107 25.4a2 2 0 0 1-1.6-.3c-39-29-36-119.7-36-119.7l142.3-.9s7 37.9 23.6 49.5c1 .6.5 3.7-.7 3.8l-5 .5a1 1 0 0 0-.9 1l.1.4 3.2 6a1 1 0 0 1-1.2 1.3l-11.7-4a1 1 0 0 0-1.2 1.4l1.7 3.7a1 1 0 0 1-1 1.4l-19-1.4a1 1 0 0 0-.6 1.8l10.7 7.9a1 1 0 0 1-.1 1.6l-3.4 2.1a1 1 0 0 0-.4.7 1 1 0 0 0 .2.8l3.8 4.7a1 1 0 0 1-.6 1.6l-7.2 1.3a1 1 0 0 0-.3 1.9l12.5 5.6a1 1 0 0 1-.2 2Z'/%3E%3Cpath fill='%23fff' d='m378.8 208.7-6.5-1.8c-6.5-3.2-19.5-8.3-19.5-3.5 0 6.1.9 24 12.6 40a121.7 121.7 0 0 1 16.9 35.1l79-28.2v-33.8s17.7-46 17.7-53.5-14-5-20.5 4.5-7 13-7 13c-5.5-9-11.5-8.2-15-6.6-3.8-5.2-13.1-8.2-17.3-9-4.2-9.8-12.2-11-15.6-10.5l-15.7 3-4.3 30.9 17.4-7.9c1.7 5.4 3.9 18-1.3 25.2-5.2 7.3-11.2 8.3-13.5 7.8l-7.4-4.7Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M400.7 181.2c-3.5 1.6-10.7 5.1-15.7 4.3-6.3-1-12.7-13.1 5.9-25.9 18.5-12.7 33.7-2.9 35.7 37.2'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M421 166.5c3.7 0 10.7-1.5 16 6.8m0 0c3.2 5.2 5.8 14 6.5 29.4m-6.5-29.4c4-1 10.3.2 14.9 7.6m0 0a49.3 49.3 0 0 1 5.3 25.7m-5.3-25.7c2.6-7.4 11.2-26 22.4-22.2 16.2 5.3-13.7 36.6-14.1 73.3a571 571 0 0 0 4.4 73.8'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m383.9 206-51.3-27.4c-.9-.5-.6-1.9.5-2l18.9-.6a1 1 0 0 0 1-1.1c0-.2-.2-.4-.3-.5l-6.9-9.9a1 1 0 0 1 1-1.5l8.3 2a1 1 0 0 0 1.2-1.1l-1.4-7.6a1 1 0 0 1 1.6-1l10.6 8.4a1 1 0 0 0 1.6-1l-5.1-18c-.3-1.1 1.1-1.8 1.8-1l8 11a1 1 0 0 0 1.8-.4l3.8-12a1 1 0 0 1 1.7-.4l5 4.9a1 1 0 0 0 1.1.1l.3-.2 9.4-11.2c.6-.8 2-.2 1.7.8l-12.9 69a1 1 0 0 1-.5.8 1 1 0 0 1-1 0Z'/%3E%3Cpath fill='%23fff' d='m370.1 177.8 4.4 4.4.4 8.7.9 10.8L380 215l4.4 13.2-30.4-10.4-.9-16.5 4-15.2 7.3-8.3h5.6Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M398.7 175.8c3.7 7.6 9.4 27.5-4.9 35.6-10.3 6-20-2.9-18.6-20.5 1.5-17.6-13.6-17-19-2.4-12 32.7 13.7 58.6 19.5 72.3 5.9 13.7 8.8 23 10.8 51.3'/%3E%3Cpath fill='%23FF6161' fill-rule='evenodd' d='m410.9 110.5-1 2.7c-.3.8-2 2.2-3.7 2.7-.8 0 .2-.5 1-1.7l.9-1.8a22.7 22.7 0 0 0 1.7-6.1l.1-.3.2-.3.6-.3c.3 0 .6 0 .8.2.2.1.3.3.3.4l.1.4v.7a8.3 8.3 0 0 0 .3 1.8h.2c.4-.1 1-.5 2-1.3l.2-.3.4-.2a1 1 0 0 1 1 .2c.4.2.4.6.5.7l-.1.8a10.7 10.7 0 0 1-.4 1.1c-.3.9-.7 2-.8 2.8v1.2l.2.2 1.7-.2c.9-.3 2.1-.9 3.7-1.8.3-.2.5-.3.8-.3.3 0 .7-.1 1 .2.5.3.6.7.6 1 0 .4 0 .7-.2 1-.7 1.5-1.9 3.8-1.8 6.2.1 2.4 1.4 5 5.9 7.3.4.2.7.6 1 1v.3a1 1 0 0 1-.8 1.3h-.5l-1.1-.3c-2-.6-6-.4-9.4.8-1.3.5-1.4.4-.3-.4 1.9-1.2 5-2.9 8.2-2.5a7.9 7.9 0 0 1-5-7.4c0-2.2.6-4.3 1.3-5.8-1 .6-2 1-2.8 1.3a5 5 0 0 1-2.8.2 2 2 0 0 1-1.6-1.5c-.2-.7-.2-1.4 0-2 0-.7.2-1.3.4-2l-.5.3c-.8.3-1.6.3-2.3-.3Zm1.3-1.5Z' clip-rule='evenodd'/%3E%3Cmask id='b' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='m228.2 205.7-1.5-22.6-6.6.1 1.5 22.7 6.6-.2Zm-.8-23.4-8.1.2 1.6 24.2 8-.2-1.5-24.2Z' clip-rule='evenodd'/%3E%3C/mask%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='m228.2 205.7-1.5-22.6-6.6.1 1.5 22.7 6.6-.2Zm-.8-23.4-8.1.2 1.6 24.2 8-.2-1.5-24.2Z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M226.7 183h1.1v-1h-1.2v1.2Zm1.5 22.7v1.2h1.2v-1.2h-1.2Zm-8-22.5-.1-1.1h-1.2v1.2h1.2Zm1.4 22.7h-1.1v1.2h1.2v-1.2Zm5.8-23.6h1.2l-.1-1.2h-1.2v1.2Zm-8.1.2v-1.2H218l.1 1.2h1.2Zm1.6 24.2h-1.2l.1 1.2h1.2v-1.2Zm8-.2.2 1.2h1.1v-1.3H229Zm-3.4-23.4 1.5 22.7 2.3-.1-1.5-22.7-2.3.1Zm-5.3 1.3 6.5-.2-.1-2.3-6.5.2.1 2.3Zm2.6 21.5-1.5-22.7H219l1.5 22.7h2.3Zm5.3-1.3-6.5.1.1 2.4 6.5-.2-.1-2.3Zm-1.9-22.3 1.6 24.2h2.4l-1.6-24.3-2.4.1Zm-6.8 1.4 8-.3v-2.3l-8.2.2.2 2.4Zm2.7 23-1.6-24.2H218l1.6 24.2h2.4Zm6.8-1.4-8 .2v2.4l8.2-.2-.2-2.4Z' mask='url(%23b)'/%3E%3Cpath fill='%232E03A0' d='M225.2 210.6a4.2 4.2 0 0 1-4.3-4c-.1-2.1 1.5-4 3.8-4a4.3 4.3 0 0 1 4.3 3.9 4 4 0 0 1-3.8 4.1Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M221.7 206.7a3.4 3.4 0 0 0 3.5 3.1c1.8 0 3.1-1.5 3-3.3a3.4 3.4 0 0 0-3.5-3.2 3.1 3.1 0 0 0-3 3.4Zm-.8 0c.2 2.2 2 4 4.3 4a4 4 0 0 0 3.8-4.2c-.2-2.3-2-4-4.3-4-2.3.1-4 2-3.8 4.2Z' clip-rule='evenodd'/%3E%3Cpath fill='%23fff' d='m226.7 180.2 13.5 20.7-6.7 4.2-13.6-20.6 6.8-4.3Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='m239.1 200.6-12.6-19.3-5.5 3.4 12.7 19.3 5.4-3.4Zm-12.4-20.4-6.8 4.3 13.6 20.6 6.7-4.2-13.5-20.7Z' clip-rule='evenodd'/%3E%3Cpath fill='%23fff' d='M223.6 186.4a4.2 4.2 0 0 1-4.3-4c-.1-2.1 1.5-4 3.8-4a4.2 4.2 0 0 1 4.3 3.9 4 4 0 0 1-3.8 4.1Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M220 182.5a3.4 3.4 0 0 0 3.6 3.2c1.8 0 3.1-1.6 3-3.4a3.4 3.4 0 0 0-3.5-3.2 3.1 3.1 0 0 0-3 3.4Zm-.7 0c.2 2.2 2 4 4.3 4a4 4 0 0 0 3.8-4.2c-.2-2.3-2-4-4.3-4-2.3.1-4 2-3.8 4.2Z' clip-rule='evenodd'/%3E%3Cpath fill='%2313C1FF' d='m243.5 181.9 1.6 24.2 8.1-.3-1.6-24.2-8 .3Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='m245.8 205.3-1.5-22.7 6.6-.2 1.5 22.7-6.6.2Zm-2.3-23.4 8.1-.3 1.6 24.2-8 .3-1.7-24.2Z' clip-rule='evenodd'/%3E%3Cpath fill='%2306CF13' d='M249.4 210c2.3 0 4-2 3.8-4.2-.1-2.2-2-4-4.3-3.9-2.2 0-4 2-3.8 4.2.2 2.2 2 4 4.3 3.9Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M252.4 205.9a3.1 3.1 0 0 1-3 3.3 3.4 3.4 0 0 1-3.5-3.2 3.1 3.1 0 0 1 3-3.3c1.8 0 3.4 1.4 3.5 3.2Zm.8 0c.1 2.2-1.5 4-3.8 4a4.2 4.2 0 0 1-4.3-3.8 4 4 0 0 1 3.8-4.2c2.2 0 4.2 1.7 4.3 4Z' clip-rule='evenodd'/%3E%3Cpath fill='%23FA52D6' d='M244 179.8 233.2 201l7.3 3.8 10.7-21.3-7.2-3.8Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='m234.3 200.8 10-20 5.9 3.1-10 20-6-3.1Zm9.7-21 7.2 3.8-10.7 21.3-7.3-3.8 10.8-21.3Z' clip-rule='evenodd'/%3E%3Cpath fill='red' d='M235 206.5c2 1.1 4.5.4 5.5-1.6s.1-4.4-1.9-5.5a4 4 0 0 0-5.4 1.7 4 4 0 0 0 1.9 5.4Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M239.8 204.5a3.2 3.2 0 0 1-4.4 1.4 3.3 3.3 0 0 1-1.5-4.5 3.2 3.2 0 0 1 4.4-1.3c1.6.9 2.3 2.9 1.5 4.4Zm.7.4a4 4 0 0 1-5.4 1.6c-2-1-2.9-3.5-1.9-5.4a4 4 0 0 1 5.4-1.7c2 1.1 2.9 3.6 1.9 5.5Z' clip-rule='evenodd'/%3E%3Cpath fill='%23FFC400' d='M247.8 185.8c2.3 0 4-2 3.8-4.2-.2-2.2-2-4-4.3-3.9-2.2 0-4 2-3.8 4.2.2 2.2 2 4 4.3 3.9Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M250.8 181.7a3.1 3.1 0 0 1-3 3.3 3.4 3.4 0 0 1-3.5-3.2 3.1 3.1 0 0 1 3-3.3c1.9 0 3.4 1.3 3.5 3.2Zm.8 0c.1 2.2-1.5 4-3.8 4a4.2 4.2 0 0 1-4.3-3.8 4 4 0 0 1 3.8-4.2c2.2 0 4.1 1.7 4.3 4Z' clip-rule='evenodd'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='427.5' x2='219.7' y1='147.8' y2='310.6' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EDF8FF'/%3E%3Cstop offset='1' stop-color='%23FAEFFF'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E";function T(L){const{className:B,source:D,rotate:S,width:z,height:A,onClick:H}=L,M={msTransform:"rotate("+S+"deg)",transform:"rotate("+S+"deg)",width:z,height:A};return(0,P.jsx)("img",{className:B,src:D,style:M,onClick:H})}T.propTypes={className:r().string,source:r().string.isRequired,width:r().number,height:r().number,rotate:r().number,onClick:r().func};const Z=T,O=403,m=404,p=[500,501,502,503,504,505],h="link_expired";var E=o(63938);function b(L,B,D){return(B=v(B))in L?Object.defineProperty(L,B,{value:D,enumerable:!0,configurable:!0,writable:!0}):L[B]=D,L}function v(L){var B=a(L,"string");return typeof B=="symbol"?B:B+""}function a(L,B){if(typeof L!="object"||!L)return L;var D=L[Symbol.toPrimitive];if(D!==void 0){var S=D.call(L,B||"default");if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(L)}class u extends N.PureComponent{constructor(){super(...arguments),b(this,"typeText",{title_403:{"zh-CN":"\u5BF9\u4E0D\u8D77\uFF0C\u4F60\u6CA1\u6709\u8BBF\u95EE\u6743\u9650",en:"Permission denied",jp:""},des_403_0:{"zh-CN":(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("p",{className:"proposal",children:["\u5F53\u524D\u8D26\u53F7\u662F ",(0,P.jsx)("span",{className:"count-detail",children:this.props.account}),"\uFF0C\u6CA1\u6709\u8BBF\u95EE\u8BE5\u6587\u6863\u7684\u6743\u9650"]})}),en:(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("p",{className:"proposal",children:["Current account ",(0,P.jsx)("span",{className:"count-detail",children:this.props.account}),", permission denied."]})}),jp:""},des_403_1:{"zh-CN":(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("p",{className:"proposal",children:["\u5F53\u524D\u8D26\u53F7\u662F ",(0,P.jsx)("span",{className:"count-detail",children:this.props.account}),"\uFF0C\u6CA1\u6709\u8BBF\u95EE\u8BE5\u6587\u6863\u7684\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u5206\u4EAB\u8005\u4FEE\u6539\u8BBF\u95EE\u6743\u9650"]})}),en:(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("p",{className:"proposal",children:["Current account ",(0,P.jsx)("span",{className:"count-detail",children:this.props.account}),", permission denied. Please contact administrator."]})}),jp:""},des_403_2:{"zh-CN":"\u60A8\u8FD8\u6CA1\u6709\u767B\u5F55\uFF0C\u8BF7\u767B\u5F55\u540E\u5C1D\u8BD5\u8BBF\u95EE",en:"You are not logged in. Please log in and try again.",jp:""},des_403_3:{"zh-CN":"\u5F53\u524D\u8D26\u53F7\u662F "+this.props.account+"\uFF0C\u6587\u4EF6\u6570\u8D85\u9650\uFF0C\u5347\u7EA7\u540E\u5373\u53EF\u7F16\u8F91",en:"Current account "+this.props.account+", permission denied.",jp:""},des_403_4:{"zh-CN":"\u5F53\u524D\u8D26\u53F7\u662F "+this.props.account+"\uFF0C\u4F01\u4E1A\u7248\u8FC7\u671F\uFF0C\u5347\u7EA7\u540E\u5373\u53EF\u7F16\u8F91",en:"Current account "+this.props.account+", permission denied. Please contact administrator. ",jp:""},title_404:{"zh-CN":"\u5F88\u62B1\u6B49\uFF0C\u627E\u4E0D\u5230\u6587\u4EF6",en:"Sorry, there is no visible page.",jp:""},des_404:{"zh-CN":"\u6587\u4EF6\u53EF\u80FD\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u8054\u7CFB\u5206\u4EAB\u8005\u83B7\u53D6\u65B0\u7684\u5206\u4EAB\u94FE\u63A5",en:"The page may have been deleted. Please contact the sharer to inquire about the link status.",jp:""},title_link_expired:{"zh-CN":"\u5F88\u62B1\u6B49\uFF0C\u94FE\u63A5\u5931\u6548",en:"Sorry, the link is invalid",jp:""},des_link_expired:{"zh-CN":"\u94FE\u63A5\u53EF\u80FD\u5DF2\u88AB\u5220\u9664\u6216\u8005\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u8054\u7CFB\u5206\u4EAB\u8005\u83B7\u53D6\u6700\u65B0\u5206\u4EAB\u94FE\u63A5",en:"The link may have been deleted or set incorrectly. Please contact the sharer to obtain the latest link.",jp:""},title_5xx:{"zh-CN":"\u5F88\u62B1\u6B49\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u58A8\u5200\u670D\u52A1\u5668",en:"Sorry, unable to connect to Mockitt server",jp:""},des_5xx:{"zh-CN":(0,P.jsxs)("div",{className:"proposal text-left",children:[(0,P.jsx)("p",{children:"\u8BF7\u5C1D\u8BD5\u4EE5\u4E0B\u65B9\u6CD5\uFF1A"}),(0,P.jsxs)("ul",{className:"text-list",children:[(0,P.jsx)("li",{children:"\u5982\u679C\u60A8\u5F00\u4E86\u7F51\u7EDC\u4EE3\u7406\uFF08VPN\uFF09\uFF0C\u5EFA\u8BAE\u60A8\u5B8C\u5168\u5173\u95ED\u540E\u518D\u5237\u65B0\u58A8\u5200"}),(0,P.jsx)("li",{children:"\u5982\u679C\u4E0D\u662F\u4E0A\u8FF0\u539F\u56E0\u5BFC\u81F4\u7684\uFF0C\u8BF7\u60A8\u8FDE\u63A5\u624B\u673A\u70ED\u70B9\u6216\u5207\u6362\u53E6\u4E00\u4E2A\u7F51\u7EDC"})]}),(0,P.jsx)("p",{children:"\u82E5\u4F9D\u65E7\u65E0\u6CD5\u6B63\u5E38\u8FDB\u5165\u58A8\u5200\uFF0C\u8BF7\u8054\u7CFB\u5BA2\u670D"})]}),en:(0,P.jsxs)("div",{className:"proposal text-left",children:[(0,P.jsx)("p",{children:"Please try the following methods:"}),(0,P.jsxs)("ul",{className:"text-list",children:[(0,P.jsx)("li",{children:"If your VPN is on, please turn it off then refresh Mockitt."}),(0,P.jsx)("li",{children:"If not, please switch to another network."})]}),(0,P.jsx)("p",{children:"If the problem stays, please contact support."})]}),jp:""},title_0:{"zh-CN":"\u5F88\u62B1\u6B49\uFF0C\u9875\u9762\u5D29\u6E83\u4E86",en:"Sorry, this page is corrupted",jp:""},des_0:{"zh-CN":"\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u5173\u95ED\u518D\u91CD\u65B0\u6253\u5F00\u58A8\u5200\uFF0C\u82E5\u65E0\u6CD5\u89E3\u51B3\u8BF7\u8054\u7CFB\u5BA2\u670D",en:"Please refresh this page or close this page and start Mockitt again. If the problem stays, please contact support.",jp:""},previewFile:{"zh-CN":"\u9884\u89C8\u6587\u4EF6",en:"Preview File",jp:""},goHome:{"zh-CN":"\u8FD4\u56DE\u58A8\u5200\u9996\u9875",en:"Back to Homepage",jp:""},reloadPage:{"zh-CN":"\u5237\u65B0\u9875\u9762",en:"Refresh this page",jp:""},contactUs:{"zh-CN":"\u8054\u7CFB\u5BA2\u670D",en:"Support",jp:""}}),b(this,"clickGoHome",()=>{let B="",{locale:D,homeUrl:S}=this.props;D==="zh-CN"?B=S:D==="jp"?B="https://mockitt.wondershare.jp":B="https://mockitt.wondershare.com",window.top!==window.self?window.top.location.replace(B):location.replace(B)}),b(this,"clickReloadPage",()=>{window.location.reload()}),b(this,"clickContactUs",()=>{let B="",{locale:D}=this.props;if(D==="zh-CN"){document.getElementById("mdOnlineSupport")&&document.getElementById("mdOnlineSupport").click();return}else D==="jp"?B="https://support.wondershare.jp":B="https://support.wondershare.com/product/mockitt.html";window.open(B)}),b(this,"getErrorConfig",()=>{const{errorType:B,primaryBtnText:D,primaryBtnClick:S,secondaryBtnText:z,secondaryBtnClick:A,locale:H}=this.props,{typeText:M,clickGoHome:C,clickContactUs:d,clickReloadPage:y}=this;let c,w,j="",$=null,ee;const q={text:M.goHome[H],click:C},ae={text:M.reloadPage[H],click:y},Ce={text:M.contactUs[H],click:d};switch(!0){case B===O:c=q.text,w=q.click,ee=_;break;case B===m:c=q.text,w=q.click,ee=U;break;case B===h:c=q.text,w=q.click,ee=U;break;case p.includes(B):c=ae.text,w=ae.click,j=Ce.text,$=Ce.click,ee=f;break;default:c=ae.text,w=ae.click,j=Ce.text,$=Ce.click,ee=H==="en"?k:x;break}return D&&(c=D),S&&(w=S),z&&(j=z),A&&($=A),{svgBg:ee,primaryText:c,primaryClick:w,secondaryText:j,secondaryClick:$}}),b(this,"getErrorInfo",()=>{const{errorType:B,identity:D,locale:S,customTitle:z,customDes:A,account:H}=this.props,{typeText:M}=this;let C,d;if(z)C=z;else{const y=p.includes(B)?"title_5XX":"title_"+B;C=M[y]?M[y][S]:M.title_0[S]}if(A)d=A;else{let y="des_"+B;B===O?y=H?"des_"+B+"_"+D:"des_"+B+"_2":p.includes(B)?y="des_5xx":B===h&&(y="des_link_expired"),d=M[y]?M[y][S]:M.des_link_expired[S]}return{title:C,desc:d}}),b(this,"handleClickLogo",()=>{let{isLogoClickable:B,logoUrl:D}=this.props;B&&(window.top!==window.self?window.top.location.href=D:window.location.href=D)})}render(){const{locale:B,isShowPrimaryBtn:D,isShowSecondaryBtn:S,isLogoClickable:z,previewFileBtnClick:A}=this.props,{typeText:H}=this,{svgBg:M,primaryText:C,primaryClick:d,secondaryText:y,secondaryClick:c}=this.getErrorConfig(),{title:w,desc:j}=this.getErrorInfo();return(0,P.jsxs)(W,{children:[(0,P.jsx)("div",{className:"logo",children:(0,P.jsx)("span",{className:z?"logo-clickable":"",onClick:this.handleClickLogo,children:(0,P.jsx)(Z,{source:M})})}),(0,P.jsxs)("div",{className:"content",children:[(0,P.jsx)("p",{className:"title",children:w}),typeof j=="string"?(0,P.jsx)("p",{className:"proposal",children:j}):j]}),(0,P.jsxs)("div",{className:"btn-list",children:[S&&c&&y&&(0,P.jsx)("a",{className:"btn regular",onClick:c,children:y}),A&&(0,P.jsx)("a",{className:"btn regular",onClick:A,children:H.previewFile[B]}),D&&d&&C&&(0,P.jsx)("a",{className:"btn primary",onClick:d,children:C}),y===H.contactUs[B]&&(0,P.jsx)(E.A,{})]})]})}}b(u,"propTypes",{locale:r().oneOf(["zh-CN","en","jp"]),identity:r().oneOf([0,1]),customTitle:r().string,customDes:r().string,isShowPrimaryBtn:r().bool,primaryBtnText:r().string,primaryBtnClick:r().func,isShowSecondaryBtn:r().bool,secondaryBtnText:r().string,secondaryBtnClick:r().func,errorType:r().oneOf([0,403,404,500,501,502,503,504,505,h]).isRequired,account:r().string,isLogoClickable:r().bool,logoUrl:r().string,homeUrl:r().string}),b(u,"defaultProps",{locale:"zh-CN",isShowPrimaryBtn:!0,isShowSecondaryBtn:!0,identity:0,errorType:0,isLogoClickable:!0,logoUrl:"/",homeUrl:"/workspace/home"})},58315:(me,V,o)=>{"use strict";o.d(V,{A:()=>Z});var l=o(94586),r=o(8509),N=o(18941);function i(O,m){return O.classList?!!m&&O.classList.contains(m):(" "+(O.className.baseVal||O.className)+" ").indexOf(" "+m+" ")!==-1}function I(O,m){O.classList?O.classList.add(m):i(O,m)||(typeof O.className=="string"?O.className=O.className+" "+m:O.setAttribute("class",(O.className&&O.className.baseVal||"")+" "+m))}function W(O,m){return O.replace(new RegExp("(^|\\s)"+m+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function P(O,m){O.classList?O.classList.remove(m):typeof O.className=="string"?O.className=W(O.className,m):O.setAttribute("class",W(O.className&&O.className.baseVal||"",m))}var _=o(38502),U=o(96582),f=o(99129),x=function(m,p){return m&&p&&p.split(" ").forEach(function(h){return I(m,h)})},k=function(m,p){return m&&p&&p.split(" ").forEach(function(h){return P(m,h)})},T=function(O){(0,N.A)(m,O);function m(){for(var h,E=arguments.length,b=new Array(E),v=0;v<E;v++)b[v]=arguments[v];return h=O.call.apply(O,[this].concat(b))||this,h.appliedClasses={appear:{},enter:{},exit:{}},h.onEnter=function(a,u){var L=h.resolveArguments(a,u),B=L[0],D=L[1];h.removeClasses(B,"exit"),h.addClass(B,D?"appear":"enter","base"),h.props.onEnter&&h.props.onEnter(a,u)},h.onEntering=function(a,u){var L=h.resolveArguments(a,u),B=L[0],D=L[1],S=D?"appear":"enter";h.addClass(B,S,"active"),h.props.onEntering&&h.props.onEntering(a,u)},h.onEntered=function(a,u){var L=h.resolveArguments(a,u),B=L[0],D=L[1],S=D?"appear":"enter";h.removeClasses(B,S),h.addClass(B,S,"done"),h.props.onEntered&&h.props.onEntered(a,u)},h.onExit=function(a){var u=h.resolveArguments(a),L=u[0];h.removeClasses(L,"appear"),h.removeClasses(L,"enter"),h.addClass(L,"exit","base"),h.props.onExit&&h.props.onExit(a)},h.onExiting=function(a){var u=h.resolveArguments(a),L=u[0];h.addClass(L,"exit","active"),h.props.onExiting&&h.props.onExiting(a)},h.onExited=function(a){var u=h.resolveArguments(a),L=u[0];h.removeClasses(L,"exit"),h.addClass(L,"exit","done"),h.props.onExited&&h.props.onExited(a)},h.resolveArguments=function(a,u){return h.props.nodeRef?[h.props.nodeRef.current,a]:[a,u]},h.getClassNames=function(a){var u=h.props.classNames,L=typeof u=="string",B=L&&u?u+"-":"",D=L?""+B+a:u[a],S=L?D+"-active":u[a+"Active"],z=L?D+"-done":u[a+"Done"];return{baseClassName:D,activeClassName:S,doneClassName:z}},h}var p=m.prototype;return p.addClass=function(E,b,v){var a=this.getClassNames(b)[v+"ClassName"],u=this.getClassNames("enter"),L=u.doneClassName;b==="appear"&&v==="done"&&L&&(a+=" "+L),v==="active"&&E&&(0,f.F)(E),a&&(this.appliedClasses[b][v]=a,x(E,a))},p.removeClasses=function(E,b){var v=this.appliedClasses[b],a=v.base,u=v.active,L=v.done;this.appliedClasses[b]={},a&&k(E,a),u&&k(E,u),L&&k(E,L)},p.render=function(){var E=this.props,b=E.classNames,v=(0,r.A)(E,["classNames"]);return _.createElement(U.Ay,(0,l.A)({},v,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},m}(_.Component);T.defaultProps={classNames:""},T.propTypes={};const Z=T},60719:(me,V,o)=>{"use strict";o.d(V,{f:()=>l.f});var l=o(29523);const i={...{border_modal:{description:"\u5F39\u7A97 border",value_light:"none",value_dark:"1px solid #4F5052"}},...{shadow_xs:{description:"\u5149\u6807\u9634\u5F71",value_light:"0px 1px 2px 0px rgba(0, 18, 38, 0.40)",value_dark:"0px 1px 2px 0px rgba(0, 18, 38, 0.40)"},shadow_s:{description:"\u6ED1\u5757\u6309\u94AE\u9634\u5F71",value_light:"0px 3px 6px 0px rgba(0, 18, 38, 0.10)",value_dark:"0px 3px 6px 0px rgba(0, 18, 38, 0.10)"},shadow_m:{description:"\u83DC\u5355/\u60AC\u6D6E\u7F16\u8F91\u680F\u200D\u6295\u5F71",value_light:"0px 4px 10px 0px rgba(0, 18, 38, 0.10)",value_dark:"0px 4px 10px 0px rgba(0, 18, 38, 0.10)"},shadow_l:{description:"\u5F39\u7A97/\u60AC\u6D6E\u9762\u677F/\u5168\u5C40\u63D0\u793A\u6295\u5F71",value_light:"2px 8px 20px 0px rgba(0, 0, 0, 0.10)",value_dark:"2px 8px 20px 0px rgba(0, 0, 0, 0.10)"},shadow_left:{description:"\u5DE6\u4FA7\u9762\u677F\u5206\u9694\u7EBF",value_light:"-1px 0px 0px 0px #E8EAEC inset",value_dark:"-1px 0px 0px 0px #E8EAEC inset"},shadow_right:{description:"\u53F3\u4FA7\u9762\u677F\u5206\u9694\u7EBF",value_light:"1px 0px 0px 0px #E8EAEC inset",value_dark:"1px 0px 0px 0px #E8EAEC inset"},shadow_bottom:{description:"\u5E95\u90E8\u5206\u9694\u7EBF\uFF08\u9876\u680F\u3001\u6807\u5C3A\u3001\u5F39\u7A97\u6807\u9898\u680F\u7B49\uFF09",value_light:"0px -1px 0px 0px #E8EAEC inset",value_dark:"0px -1px 0px 0px #E8EAEC inset"}}}},61068:(me,V,o)=>{"use strict";o.d(V,{p:()=>x,A:()=>Z});var l=o(95549),r=o(38502),N=o(25582),i=o.n(N),I=o(63986),W=o.n(I),P=o(17307),_=o(53732),U=o.n(_),f=o(67787);const x="checkbox-has-box",k=f.Ay.label.withConfig({displayName:"styles__StyledCheck",componentId:"sc-gd8gcf-0"})(["position:relative;display:flex;align-items:center;cursor:pointer;color:",";> input[type=radio],> input[type=checkbox]{position:absolute;opacity:0;width:12px;height:12px;}.Check-state{position:relative;width:12px;height:12px;font-size:12px;display:flex;align-items:center;border:1px solid ",";border-radius:2px;transition:all 0.2s ease-in-out;background-color:",";flex-shrink:0;.icon{position:absolute;top:-1px;left:-1px;}}.Check-label{margin-left:0.33333em;color:",";}&.is-checked .Check-state{background-color:",";border:1px solid ",";color:#fff;.icon{transform:scale(0.833);color:#fff;}}&:not(.is-checked) .Check-state .icon{speak:none;opacity:0;}&.readonly,&.is-disabled{cursor:default;.Check-state{background:",";border:1px solid ",";.icon{color:",";}}}&.is-disabled{cursor:not-allowed;}&.","{input,.Check-state{margin:6px;transition:none;}.Check-label{margin-left:4px;}}&.margin-left-n6{margin-left:-6px;}"],O=>O.theme.color_text_L2,O=>O.theme.color_text_disabled01,O=>O.theme.color_bg_white,O=>O.theme.color_text_L2,O=>O.theme.color_proto,O=>O.theme.color_proto,O=>O.theme.color_btn_secondary_active,O=>O.theme.color_btn_secondary_active,O=>O.theme.color_text_disabled01,x);var T=o(72214);class Z extends r.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"state",{prevProps:this.props,isChecked:this.props.isChecked}),(0,l.A)(this,"onToggle",m=>{const{name:p,value:h,label:E,onChange:b,onToggle:v,isDisabled:a,readOnly:u,attr:L}=this.props,{isChecked:B}=this.state,D=!a&&!u,S=D?B==="mixed"?!0:!B:B;this.setState({isChecked:S}),v(S,p,h||E,m),b(S,L,m)})}static getDerivedStateFromProps(m,p){let{prevProps:h}=p;return W()(h,m)?null:{prevProps:m,isChecked:m.isChecked}}render(){const{className:m,label:p,name:h,isDisabled:E,readOnly:b}=this.props,{isChecked:v}=this.state,a=U()(m,{"is-checked":!!v,"is-disabled":E,readonly:b});return(0,T.jsxs)(k,{className:a,children:[(0,T.jsx)("input",{type:"checkbox",defaultChecked:!!v,disabled:E,name:h,onChange:this.onToggle}),(0,T.jsx)("span",{className:"Check-state",children:(0,T.jsx)(P.C,{name:v==="mixed"?"new_replace/box_check_mixed":"new_replace/box_check"})}),p&&(0,T.jsx)("span",{className:"Check-label",children:p})]})}}(0,l.A)(Z,"propTypes",{isChecked:i().bool||"mixed",isDisabled:i().bool,readOnly:i().bool,onChange:i().func.isRequired,onToggle:i().func.isRequired,label:i().any,name:i().string,attr:i().string,value:i().any,className:i().string}),(0,l.A)(Z,"defaultProps",{isChecked:!1,label:"",className:"",onChange:()=>null,onToggle:()=>null})},63239:(me,V,o)=>{"use strict";o.d(V,{fY:()=>U,g6:()=>N,l2:()=>i,rU:()=>I,tb:()=>P,w7:()=>f,zK:()=>W});var l=o(20089),r=o(74222),N=function(x){return x.SINGLE_CANVAS="singleCanvas",x.CURRENT_PAGE="currentPage",x.ALL_PAGE="allPage",x}(N||{}),i=function(x){return x.uninitialized="uninitialized",x.pending="pending",x.succeeded="succeeded",x.failed="failed",x}(i||{}),I=function(x){return x.GENERIC="GENERIC",x}(I||{});const W={GENERIC:"\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"},P=function(x,k){x===void 0&&(x=r.$k),k===void 0&&(k=sdkStore);const T={},Z={};return{screenTreeData:_(x,T,Z,k),screenTreeMap:T,screenDataMap:Z}},_=function(x,k,T,Z){var O;x===void 0&&(x=r.$k),k===void 0&&(k={}),T===void 0&&(T={}),Z===void 0&&(Z=sdkStore);const m=Z.getHotItem(x),{sub:p,hotAttr:h,key:E,sup:b}=m,v=p.map(a=>{const u=Z.getHotItem(a),{hotAttr:L,key:B}=u;if(L.bunch===l.x.RbPage)return T[B]=u,_(B,k,T,Z)}).filter(a=>a).sort((a,u)=>a.data.zIndex-u.data.zIndex);return((O=m.hotAttr)==null?void 0:O.bunch)===l.x.RbPage&&(T[E]=m),v!=null&&v.length&&(k[E]=v),{cid:x,data:{cid:E,...h,sup:b,sub:p},children:v}},U=function(x,k){return k===void 0&&(k=sdkStore),x?k.getSubHotItemList(x).filter(T=>T&&T.hotAttr.type===l.x.Canvas).sort((T,Z)=>T.hotAttr.order-Z.hotAttr.order):[]},f=async(x,k)=>{const T=[],Z=[...x.map(m=>({node:m,path:m.cid}))];for(;Z.length>0;){var O;const{node:m,path:p}=Z.pop();if((O=m.hotAttr)!=null&&O.asFolder)T.push({key:p,pageName:m.data.name});else{const h=await k(m.cid);T.push({key:p,pageName:m.data.name,zip:h})}if(m.children&&m.children.length>0)for(let h=m.children.length-1;h>=0;h--){const E=m.children[h];Z.push({node:E,path:p+"/"+E.cid})}}return T}},63938:(me,V,o)=>{"use strict";o.d(V,{A:()=>I});var l=o(38502),r=o(25582),N=o.n(r),i=o(72214);I.propTypes={className:N().string,children:N().oneOfType([N().array,N().string]),isWonderShare:N().bool,id:N().string,onClick:N().func,disabled:N().bool,canClick:N().bool};function I(W){let{className:P,children:_,isWonderShare:U=!1,id:f="mdOnlineSupport",onClick:x,disabled:k,canClick:T}=W;const Z="qd30090468111af7daaf09a6395b687fc3becd624cf3",O=U?"https://support.wondershare.com/":"";(0,l.useEffect)(()=>{if(!k)return!U&&m(),()=>{const h=document.getElementById(Z);h&&h.remove()}},[]);const m=()=>{o.g?(o.g.wpaShowItemId=window.wpaShowItemId="123",o.g.qidian_ex1=window.qidian_ex1="12"):(window.wpaShowItemId="123",window.qidian_ex1="12");let h=document.createElement("script");h.id=Z,h.src="https://wp.qiye.qq.com/qidian/3009046811/1af7daaf09a6395b687fc3becd624cf3",h.charset="utf-8",h.async=!0,h.defer=!0,document.body.appendChild(h)},p=h=>{if(k){T&&x&&x();return}if(x&&x(),U){window.open(O);return}if(f!=="mdOnlineSupport"){h.preventDefault();const E=document.getElementById("mdOnlineSupport");E&&E.click()}};return(0,i.jsx)("div",{style:{cursor:"pointer"},id:f,className:P,onClick:p,children:_})}},65609:(me,V,o)=>{"use strict";o.d(V,{A:()=>P});var l=o(95549),r=o(38502),N=o(53732),i=o.n(N),I=o(22460),W=o(72214);class P extends r.PureComponent{constructor(){super(...arguments),(0,l.A)(this,"getClassName",()=>{const{className:U,type:f,size:x,corner:k,disabled:T}=this.props;return i()(U,"button-root",{["type-"+f]:f,["size-"+x]:x,["corner-"+k]:k,"is-disabled":T})}),(0,l.A)(this,"onButtonClick",U=>{if(this.props.disabled){U.preventDefault();return}const{onClick:f}=this.props;f&&f(U)}),(0,l.A)(this,"onButtonMouseDown",U=>{if(this.props.disabled){U.preventDefault();return}const{onMouseDown:f}=this.props;f&&f(U)}),(0,l.A)(this,"getChildrenNode",()=>(0,W.jsx)("span",{className:"btn-text",children:this.props.children}))}render(){const U=this.getClassName(),f=this.getChildrenNode();return(0,W.jsx)(I.O,{className:U,onClick:this.onButtonClick,onMouseDown:this.onButtonMouseDown,children:(0,W.jsx)("div",{className:"btn-icon-text-container",children:f})})}}(0,l.A)(P,"defaultProps",{type:"linear",disabled:!1,size:"common",corner:"smooth"})},67914:(me,V,o)=>{"use strict";o.d(V,{Gq:()=>r,Z0:()=>N});const l=()=>typeof window<"u"&&!!window.ReactNativeWebView,r=()=>{const i=(globalThis==null?void 0:globalThis.userAgent)||"";return l()&&i.includes("isExpoApp")},N=i=>{if(l()){var I;(I=window.ReactNativeWebView)==null||I.postMessage(JSON.stringify(i))}}},68677:(me,V,o)=>{"use strict";o.d(V,{A:()=>k});var l=o(38502),r=o(25582),N=o.n(r),i=o(46219),I=o(69368),W=o(67787);const P=W.Ay.span.withConfig({displayName:"styled__StyledEllipsis",componentId:"sc-z4nkzm-0"})(["null"]);var _=o(72214);function U(T,Z,O){return(Z=f(Z))in T?Object.defineProperty(T,Z,{value:O,enumerable:!0,configurable:!0,writable:!0}):T[Z]=O,T}function f(T){var Z=x(T,"string");return typeof Z=="symbol"?Z:Z+""}function x(T,Z){if(typeof T!="object"||!T)return T;var O=T[Symbol.toPrimitive];if(O!==void 0){var m=O.call(T,Z||"default");if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Z==="string"?String:Number)(T)}class k extends l.PureComponent{constructor(){var Z;super(...arguments),Z=this,U(this,"state",{isTruncated:!1,isDetected:!1}),U(this,"set$ellipsis",O=>Object.assign(this,{$ellipsis:O.current})),U(this,"detectTruncation",function(O){return O===void 0&&(O=Z.$ellipsis),O.offsetWidth<O.scrollWidth})}componentDidMount(){return this.setState({isDetected:!0,isTruncated:this.detectTruncation()})}componentDidUpdate(Z){let{children:O}=Z;const{children:m}=this.props,{isDetected:p}=this.state;if(O!==m)return this.setState({isDetected:!1});if(!p)return this.setState({isDetected:!0,isTruncated:this.detectTruncation()})}render(){const{className:Z,to:O,type:m,max:p,display:h,lang:E,theme:b,noTooltip:v,withTooltip:a,withQuote:u,withPeriod:L,withComma:B,withQuestionMark:D,children:S,...z}=this.props,{isTruncated:A,isDetected:H}=this.state,M={children:S},C=H&&(A?"is-truncated":"isnt-truncated"),d={type:O?"link":"inline",theme:b,className:(0,I.Hn)(["Ellipsis",C,Z,(u||L||B||D)&&"Punctuation",u&&"with-quote",L&&"with-period",B&&"with-comma",D&&"with-question-mark"]),href:O,"data-type":m,"data-max":p,style:{display:h,maxWidth:isFinite(p)?p+"em":p},content:(a||A)&&!v&&(0,_.jsx)("div",{lang:E,className:"EllipsisTip",...M}),children:S,setRef:this.set$ellipsis,...z},y=(0,_.jsx)(i.A,{...d});return u||L||B||D?(0,_.jsx)(P,{className:(0,I.Hn)(["Punctuation",u&&"with-quote",L&&"with-period",B&&"with-comma",D&&"with-question-mark",C]),children:y}):y}}U(k,"propTypes",{className:N().string,theme:N().oneOf(["core","plain"]),type:N().oneOf(["user","id","email","org","team","app","widget"]),max:N().oneOfType([N().string,N().number]),display:N().oneOf(["inline-block","block"]),lang:N().string,to:N().string,children:N().node,noTooltip:N().bool,withTooltip:N().bool,withQuote:N().bool,withComma:N().bool,withPeriod:N().bool,withQuestionMark:N().bool}),U(k,"defaultProps",{lang:"en",theme:"core"})},70812:(me,V,o)=>{"use strict";o.d(V,{Kr:()=>x,U4:()=>U,jE:()=>f});var l=o(16615),r=o(49612),N=o(40486),i=o(78257),I=o(14861);const W={[r.SR.PageV9]:"\u751F\u6210\u539F\u578B\u9875\u9762",[r.SR.Component]:"\u751F\u6210\u7EC4\u4EF6",[r.SR.Flow]:"\u751F\u6210\u6D41\u7A0B\u56FE",[r.SR.Mind]:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",[r.SR.Table]:"\u751F\u6210\u8868\u683C",[r.SR.Chart]:"\u751F\u6210\u56FE\u8868",[r.SR.Semantic]:"AI\u6307\u4EE4",[r.SR.Chat]:"AI\u5BF9\u8BDD",[r.SR.AutoFill]:"\u667A\u80FD\u586B\u5145",[r.SR.AIHTML]:"\u751F\u6210\u539F\u578B\u9875\u9762v2_\u539F\u578B\u5185"},P={[i.lS.Directory]:"\u76EE\u5F55\u9762\u677F",[i.lS.Builtin]:"\u7EC4\u4EF6\u9762\u677F",[i.lS.Icon]:"\u56FE\u6807\u9762\u677F",[i.lS.Page]:"\u9875\u9762\u9762\u677F",[i.lS.Asset]:"\u56FE\u7247\u9762\u677F",[i.lS.Template]:"\u6BCD\u7248\u9762\u677F",[i.lS.AI]:"AI\u9762\u677F"},_={color:"\u989C\u8272\u6837\u5F0F",appear:"\u5916\u89C2\u6837\u5F0F",text:"\u6587\u672C\u6837\u5F0F"};let U;(function(k){const T=k.AIOpenSourceTrack=c=>{const w=W[c];w&&(0,l.ZI)("proto_ai_entrance",{ai_func_name:w})},Z=k.AIUseTrack=(c,w)=>{const j=W[c];!j||!w||(0,l.ZI)("proto_ai_use",{ai_func:j,ai_input:w})},O=k.addShapeToCanvasTrackSourceMap={quickCreate:"\u5FEB\u6377\u952E",topToolbar:"\u9876\u90E8\u64CD\u4F5C\u680F"},m=k.addShapeToCanvasTrack=(c,w)=>{c&&w&&(0,l.ZI)("proto_shape_add",{name:c,source:w})},p=k.addDrawIOToCanvasTrack=c=>{c&&(0,l.ZI)("proto_draw_add",{type:c})},h=k.addAnimationTrack=c=>{c&&I18N.dConst.ani[c]&&(0,l.ZI)("proto_animation_add",{type:I18N.dConst.ani[c]})},E=k.updateInteractionTrack=c=>{var w;const{type:j,interactionTrigger:$,interactionType:ee,value:q=""}=c;if(!$||!ee)return;const ae=(0,N.Oz)($);if(!ae)return;const Q=(w=(0,N.gu)().find(R=>R.value===ee))==null?void 0:w.label;Q&&(0,l.ZI)("proto_interaction_set",{type:j,trigger:ae,action:Q,value:q})},b=k.searchResultTrack=(c,w,j)=>{const $=P[w];!c||!$||(0,l.ZI)("proto_search_result",{keyword:c,source:$,count:j})},v=k.watermarkExposureTrack=c=>{if(!c)return;const w=!!MB.currentOrg;(0,l.ZI)("proto_watermark_show",{watermark_type:c,workspace_type:w?"org":"solo"})},a=k.protoEditorLoadSuccessTrack=c=>{c&&(0,l.ZI)("proto_load_success",{uid:c})},u=k.protoEditorShareTrack=(c,w)=>{c&&(0,l.ZI)("proto_share",{uid:c,source:w})},L=k.protoEditorPresentTrack=(c,w,j)=>{c&&(0,l.ZI)("proto_present",j?{uid:c,source:w,type:(0,I.d0)({model:j})}:{uid:c,source:w})},B=k.protoDownloadTrack=(c,w,j)=>{!c||!w||!j||(0,l.ZI)("proto_download",{uid:c,type:w,source:j})},D=k.protoStyleTrack=(c,w,j)=>{!c||!w||!j||(0,l.ZI)("proto_style_set",{uid:c,type:w,source:_[j]})},S=k.protoMasterClickTrack=c=>{c&&(0,l.ZI)("proto_master_click",{uid:c})},z=k.protoMasterPublishTrack=(c,w)=>{!c||!w||(0,l.ZI)("proto_master_publish",{uid:c,type:w})},A=k.protoMasterUseTrack=(c,w,j)=>{!c||!w||!j||(0,l.ZI)("proto_master_use",{uid:c,source:w,type:j})},H=k.protoScrollbarSetTrack=(c,w)=>{!c||!w||(0,l.ZI)("proto_scrollbar_set",{uid:c,type:w})},M=k.protoPageAddTrack=(c,w,j,$,ee,q)=>{c&&(0,l.ZI)("proto_page_add",{uid:c,source:w,template_type:j,template_paytype:$,template_name:ee,template_cid:q})},C=k.protoTemplatePopupClick=(c,w)=>{var j;c&&(0,l.ZI)("proto_template_popup_click",{uid:c,source:w,workspace_type:(j=MB.getRootProject())!=null&&j.is_org_project?"org":"solo"})},d=k.protoComponentAddTrack=c=>{let{source:w,component_type:j,component_paytype:$,component_name:ee,component_cid:q}=c;q&&(0,l.ZI)("proto_component_add",{source:w,component_type:j,component_paytype:$,component_name:ee,component_cid:q})},y=k.protoDeviceCreate=function(c,w,j){j===void 0&&(j=!1),(0,l.ZI)("proto_device_create",{source:c,type:(0,I.d0)({model:w,isPageSize:j})})}})(U||(U={}));const f=k=>{let{source:T,type:Z,status:O}=k;console.log("\u{1F7E6}[blue]->source, type, status: ",T,Z,O),(0,l.ZI)("proto_html2proto",{source:T,type:Z,status:O})},x=k=>{let{type:T,isSuccess:Z,isDesignVipUser:O,isProtoVipUser:m}=k;(0,l.ZI)("proto_turn_to_px",{type:T,is_success:Z,"is_design-VIP_user":O,is_VIP_user:m})}},71272:(me,V,o)=>{"use strict";o.d(V,{wy:()=>l,xG:()=>N});const l=400,r=800,N=300},72274:(me,V,o)=>{"use strict";o.d(V,{HY:()=>p,Tw:()=>v,Yl:()=>T,Zz:()=>b,y$:()=>k});var l=o(76241);function r(a){return"Minified Redux error #"+a+"; visit https://redux.js.org/Errors?code="+a+" for the full message or use the non-minified dev environment for full errors. "}var N=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},I={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function W(a){if(typeof a!="object"||a===null)return!1;for(var u=a;Object.getPrototypeOf(u)!==null;)u=Object.getPrototypeOf(u);return Object.getPrototypeOf(a)===u}function P(a){if(a===void 0)return"undefined";if(a===null)return"null";var u=typeof a;switch(u){case"boolean":case"string":case"number":case"symbol":case"function":return u}if(Array.isArray(a))return"array";if(f(a))return"date";if(U(a))return"error";var L=_(a);switch(L){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return L}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}function _(a){return typeof a.constructor=="function"?a.constructor.name:null}function U(a){return a instanceof Error||typeof a.message=="string"&&a.constructor&&typeof a.constructor.stackTraceLimit=="number"}function f(a){return a instanceof Date?!0:typeof a.toDateString=="function"&&typeof a.getDate=="function"&&typeof a.setDate=="function"}function x(a){var u=typeof a;return u}function k(a,u,L){var B;if(typeof u=="function"&&typeof L=="function"||typeof L=="function"&&typeof arguments[3]=="function")throw new Error(r(0));if(typeof u=="function"&&typeof L>"u"&&(L=u,u=void 0),typeof L<"u"){if(typeof L!="function")throw new Error(r(1));return L(k)(a,u)}if(typeof a!="function")throw new Error(r(2));var D=a,S=u,z=[],A=z,H=!1;function M(){A===z&&(A=z.slice())}function C(){if(H)throw new Error(r(3));return S}function d(j){if(typeof j!="function")throw new Error(r(4));if(H)throw new Error(r(5));var $=!0;return M(),A.push(j),function(){if($){if(H)throw new Error(r(6));$=!1,M();var q=A.indexOf(j);A.splice(q,1),z=null}}}function y(j){if(!W(j))throw new Error(r(7));if(typeof j.type>"u")throw new Error(r(8));if(H)throw new Error(r(9));try{H=!0,S=D(S,j)}finally{H=!1}for(var $=z=A,ee=0;ee<$.length;ee++){var q=$[ee];q()}return j}function c(j){if(typeof j!="function")throw new Error(r(10));D=j,y({type:I.REPLACE})}function w(){var j,$=d;return j={subscribe:function(q){if(typeof q!="object"||q===null)throw new Error(r(11));function ae(){q.next&&q.next(C())}ae();var Ce=$(ae);return{unsubscribe:Ce}}},j[N]=function(){return this},j}return y({type:I.INIT}),B={dispatch:y,subscribe:d,getState:C,replaceReducer:c},B[N]=w,B}var T=o.j!=15?k:null;function Z(a){typeof console<"u"&&typeof console.error=="function"&&console.error(a);try{throw new Error(a)}catch(u){}}function O(a,u,L,B){var D=Object.keys(u),S=L&&L.type===I.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(D.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!W(a))return"The "+S+' has unexpected type of "'+x(a)+'". Expected argument to be an object with the following '+('keys: "'+D.join('", "')+'"');var z=Object.keys(a).filter(function(A){return!u.hasOwnProperty(A)&&!B[A]});if(z.forEach(function(A){B[A]=!0}),!(L&&L.type===I.REPLACE)&&z.length>0)return"Unexpected "+(z.length>1?"keys":"key")+" "+('"'+z.join('", "')+'" found in '+S+". ")+"Expected to find one of the known reducer keys instead: "+('"'+D.join('", "')+'". Unexpected keys will be ignored.')}function m(a){Object.keys(a).forEach(function(u){var L=a[u],B=L(void 0,{type:I.INIT});if(typeof B>"u")throw new Error(r(12));if(typeof L(void 0,{type:I.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(r(13))})}function p(a){for(var u=Object.keys(a),L={},B=0;B<u.length;B++){var D=u[B];typeof a[D]=="function"&&(L[D]=a[D])}var S=Object.keys(L),z,A;try{m(L)}catch(H){A=H}return function(M,C){if(M===void 0&&(M={}),A)throw A;if(0)var d;for(var y=!1,c={},w=0;w<S.length;w++){var j=S[w],$=L[j],ee=M[j],q=$(ee,C);if(typeof q>"u"){var ae=C&&C.type;throw new Error(r(14))}c[j]=q,y=y||q!==ee}return y=y||S.length!==Object.keys(M).length,y?c:M}}function h(a,u){return function(){return u(a.apply(this,arguments))}}function E(a,u){if(typeof a=="function")return h(a,u);if(typeof a!="object"||a===null)throw new Error(r(16));var L={};for(var B in a){var D=a[B];typeof D=="function"&&(L[B]=h(D,u))}return L}function b(){for(var a=arguments.length,u=new Array(a),L=0;L<a;L++)u[L]=arguments[L];return u.length===0?function(B){return B}:u.length===1?u[0]:u.reduce(function(B,D){return function(){return B(D.apply(void 0,arguments))}})}function v(){for(var a=arguments.length,u=new Array(a),L=0;L<a;L++)u[L]=arguments[L];return function(B){return function(){var D=B.apply(void 0,arguments),S=function(){throw new Error(r(15))},z={getState:D.getState,dispatch:function(){return S.apply(void 0,arguments)}},A=u.map(function(H){return H(z)});return S=b.apply(void 0,A)(D.dispatch),(0,l.A)((0,l.A)({},D),{},{dispatch:S})}}}},78042:(me,V,o)=>{"use strict";o.d(V,{A:()=>r});function l(N,i){var I,W,P;i===void 0&&(i="*");const _=window.parent!==window.top?(I=(W=window.parent)!=null?W:window.top)!=null?I:window:(P=window.top)!=null?P:window;if(N===void 0)return _;_&&_.postMessage&&_.postMessage(N,i)}const r=l},79186:(me,V,o)=>{"use strict";o.d(V,{eB:()=>M,Ay:()=>H});var l=o(38502),r=o(69623),N=o(25582),i=o.n(N),I=o(27992),W=o(28322),P=o.n(W),_=o(89775),U=o.n(_),f=o(63986),x=o.n(f),k=o(37862),T=o.n(k),Z=o(51582),O=o(68677),m=o(69368),p=o(35603),h=o(67787);const E=h.Ay.label.withConfig({displayName:"styles__StyledSelectLabel",componentId:"sc-grbgid-0"})(["display:inline-flex;justify-content:space-between;align-items:center;max-width:100%;min-width:3em;height:34px;color:#5b6b73;cursor:pointer;transition:all 0.2s ease-out;button{flex:1;width:calc(100% - 2em);height:100%;text-align:start;cursor:inherit;}.caret{margin:0 0.75em 0 1em;line-height:0;color:#8d9ea7;svg{display:block;width:6px;height:4px;fill:currentColor;fill-rule:evenodd;transform:rotate(180deg);transition:all 0.3s ease-out;}}&:not(.unstyled){padding-left:.5em;background-color:#f6f7f8;border:1px solid #f2f2f3;border-radius:2px;}&.small{height:22px;font-size:12px;.caret{margin-right:0.5em;}}&:not(.is-disabled):not(.readonly):not(.unstyled):hover,&:not(.unstyled).is-open{border-color:#298df8;}&.is-open{&:not(.unstyled){background-color:#fff;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}.caret svg{transform:rotate(0deg);}}&.is-disabled{cursor:not-allowed;opacity:0.6;}&.readonly{cursor:default}&.CoreSelect:not(.unstyled){background-color:#fff;border:1px solid #c8cdd1;}"]),b=h.Ay.div.withConfig({displayName:"styles__StyledSelectMenuBase",componentId:"sc-grbgid-1"})(["position:fixed;pointer-events:none;z-index:1100;"]),v=h.Ay.ul.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-grbgid-2"})(["position:absolute;margin:2px 0;padding:0;display:block;max-width:20em;min-width:100%;min-height:30px;max-height:300px;overflow-x:hidden;overflow-y:auto;pointer-events:none;font-size:12px;list-style:none;background-color:#fff;border-radius:3px;box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),4px 12px 40px 0 rgba(39,54,78,0.1);color:#5b6b73;transition:0.2s ease-out;transition-property:transform,opacity;transform-origin:50% 0;&::-webkit-scrollbar{display:block;width:4px;height:4px;}&::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:2px;}&::-webkit-scrollbar-track{background-color:rgba(255,255,255,0.5);}&.is-empty{width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;}&:not(.is-open){opacity:0;transform:scale(0.8);}&.x-center{left:50%;transform:translateX(-50%);&:not(.is-open){transform:scale(0.8) translateX(-50%);}}&.x-right{right:0;}&.is-downward{top:100%;bottom:initial;}&.is-upward{transform-origin:50% 100%;top:initial;bottom:100%;}&.is-open{opacity:1;pointer-events:initial;}&.cant-select .SelectOption{cursor:default;}.SelectGroup{> .title{padding:0 0.75em;width:100%;height:30px;line-height:30px;font-weight:bold;}> ul{margin:0;padding:0;}}.SelectOption{display:flex;align-items:center;height:30px;line-height:30px;cursor:pointer;> .Ellipsis{padding:0 0.75em;}> .svg-icon{margin-left:auto;margin-right:0.75em;&.check path{fill:#5b6b73;}}&.is-disabled{cursor:not-allowed;opacity:0.5;}&.is-active{color:#298df8;}&:not(.empty-msg):not(.is-disabled):hover,&.is-active{background-color:#f6f7f8;}&.empty-msg{padding:0 0.5em;color:#8d9ea7;cursor:not-allowed;}}&.CheckSelectMenu{&:not(.is-empty){padding:6px 0;}.SelectOption{height:32px;.Ellipsis{padding:0 16px;}.Ellipsis + .icon{margin-right:10px;}&:hover,&.is-active:hover{color:#298df8;}&.is-active{background:none;color:inherit;}}}&.CoreSelectMenu{margin:4px 0;&:not(.is-empty){padding:8px;min-height:48px;max-height:336px;}.SelectGroup > .title,.SelectOption{height:32px;line-height:32px;border-radius:2px;}}"]);var a=o(72214);function u(y,c,w){return(c=L(c))in y?Object.defineProperty(y,c,{value:w,enumerable:!0,configurable:!0,writable:!0}):y[c]=w,y}function L(y){var c=B(y,"string");return typeof c=="symbol"?c:c+""}function B(y,c){if(typeof y!="object"||!y)return y;var w=y[Symbol.toPrimitive];if(w!==void 0){var j=w.call(y,c||"default");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(y)}const D="IBOT_SELECT_MENU_ROOT",S={"zh-CN":{select_placeholder:"\u9009\u62E9\u4E00\u4E2A...",select_empty_msg:"\u6682\u65E0\u5185\u5BB9..."},en:{select_placeholder:"Choose one\u2026",select_empty_msg:"Nothing to display\u2026"}},z=document.getElementById(D)||Object.assign(document.createElement("div"),{id:D}),A=document.body;A.contains(z)||A.appendChild(z);class H extends l.PureComponent{constructor(){super(...arguments),u(this,"state",{isOpen:!1,prevProps:this.props,value:this.props.value}),u(this,"set$select",c=>this.setState({$select:c})),u(this,"open",()=>this.setState({isOpen:!0})),u(this,"close",()=>this.setState({isOpen:!1})),u(this,"toggle",()=>this.setState({isOpen:!this.state.isOpen})),u(this,"onResizeWindow",()=>this.state.isOpen&&this.close()),u(this,"onChange",async c=>{const{onChange:w,beforeOnChange:j}=this.props,$=()=>{this.close(),w(c)};if(!j){this.setState({value:c},$);return}if(await j(c)){this.setState({value:c},$);return}$()}),u(this,"onSelect",async c=>{let{currentTarget:w}=c;const{value:j}=this.props,{canSelect:$}=this;await this.onChange($?w.dataset.value:j)})}static getDerivedStateFromProps(c,w){let{prevProps:j,value:$}=w;return x()(j,c)?null:{prevProps:c,value:c.value}}componentDidMount(){window.addEventListener("resize",this.onResizeWindow)}componentWillUnmount(){window.removeEventListener("resize",this.onResizeWindow)}get isDisabled(){const{isDisabled:c,disabled:w}=this.props;return c||w}get readOnly(){return this.props.readOnly}get canSelect(){const{isDisabled:c,readOnly:w}=this;return!c&&!w}get displayText(){const{optionList:c,placeholder:w,optionLabelProp:j}=this.props,{value:$}=this.state,q=(c.find(ae=>U()(ae)&&ae.slice(0).some(Ce=>(0,m.o3)(Ce,$)))||c).find(ae=>!U()(ae)&&(0,m.o3)(ae,$));return q?(0,m.Oi)(q,j):w||S[this.props.lang].select_placeholder}render(){const{size:c,theme:w,unstyled:j,className:$,menuX:ee}=this.props,{isOpen:q,$select:ae,value:Ce}=this.state,{isDisabled:Q,readOnly:R,canSelect:G}=this,J=(0,m.Hn)([w==="core"?"CoreSelect":"Select",c,j&&"unstyled",$,q&&"is-open",Q&&"is-disabled",R&&"readonly"]);return(0,a.jsxs)(E,{className:J,role:"listbox",ref:this.set$select,children:[(0,a.jsx)("button",{type:"button",onClick:this.toggle,disabled:Q,children:(0,a.jsx)(O.A,{children:this.displayText})}),typeof this.props.arrowSvg=="string"?(0,a.jsx)("span",{className:"caret",dangerouslySetInnerHTML:{__html:this.props.arrowSvg}}):(0,a.jsx)("span",{className:"caret",children:this.props.arrowSvg}),(0,a.jsx)(M,{isOpen:q,...this.props,value:Ce,$select:ae,canSelect:G,onChange:this.onSelect,onClose:this.close,menuX:ee})]})}}u(H,"propTypes",{size:i().oneOf(["regular","small"]),theme:i().oneOf(["core","plain"]),menuTheme:i().oneOf(["core","plain","check"]),unstyled:i().bool,className:i().string,menuClassName:i().string,lang:i().string,placeholder:i().string,optionList:i().arrayOf(i().oneOfType([i().node,i().shape({label:i().node,value:i().any,isDisabled:i().bool}),i().arrayOf(i().oneOfType([i().node,i().shape({label:i().node,value:i().any,isDisabled:i().bool})]))])).isRequired,value:i().oneOfType([i().number,i().string]),isDisabled:i().bool,disabled:i().bool,readOnly:i().bool,onChange:i().func,menuX:i().oneOf(["left","center","right"]),optionLabelProp:i().string,arrowSvg:i().oneOfType([i().string,i().node])}),u(H,"defaultProps",{size:"regular",theme:"plain",menuTheme:"plain",className:"",menuClassName:"",lang:"zh-CN",optionList:[],isDisabled:!1,onChange:()=>null,menuX:"left",arrowSvg:m.t4.rH});class M extends l.PureComponent{constructor(){super(...arguments),u(this,"state",{isDownward:!0}),u(this,"portal",(0,m.ep)(z,"SelectMenuPortal")),u(this,"menuBaseRef",(0,l.createRef)()),u(this,"position",c=>{const{$select:w,menuX:j}=this.props,{menuBaseRef:{current:$}}=this;if(c){const q=P()(c,"target");if(q&&T()(q)&&q.matches(".SelectMenu"))return}const{isDownward:ee}=(0,p.d)({$menuBase:$,$opener:w,menuX:j,shouldSetMaxHeight:!0});this.setState({isDownward:ee})}),u(this,"onChange",c=>{const{onChange:w}=this.props,{isDownward:j}=this.state,$=c.currentTarget,ee=$.closest(".SelectMenu, .CoreSelectMenu, .CheckSelectMenu");if(!$||!ee)return this.onlose();const{top:q,bottom:ae}=$.getBoundingClientRect(),{top:Ce,bottom:Q}=ee.getBoundingClientRect();return j&&q>=Ce||!j&&ae<=Q?$.classList.contains("title")?void 0:w(c):this.onClose()}),u(this,"onClose",()=>{const{onClose:c}=this.props;c()}),u(this,"scrollIntoActive",()=>{const{menuBaseRef:{current:c}}=this,w=(0,m.$)("li[role=option].is-active",c);w&&w.scrollIntoView({block:"start"})}),u(this,"onClickOutside",c=>{let{target:w}=c;const{$select:j}=this.props,$=!z.contains(w),ee=w.closest("label"),q=ee&&ee.contains(j);$&&!q&&this.onClose()})}componentDidMount(){const{menuBaseRef:{current:c}}=this;(0,m.sA)((0,m.$)(".SelectMenu",c))}componentDidUpdate(c){let{isOpen:w}=c;const{isOpen:j}=this.props;!w&&j&&(this.position(),this.scrollIntoActive())}componentWillUnmount(){this.portal&&this.portal.remove()}render(){return(0,r.createPortal)(this.menu,this.portal)}get menu(){const{isOpen:c,isDisabled:w,menuTheme:j,menuClassName:$,menuX:ee,optionList:q,lang:ae,emptyMsg:Ce,value:Q,canSelect:R}=this.props,{isDownward:G}=this.state,J=q.length===0,oe=(0,m.Hn)([j==="core"?"CoreSelectMenu":j==="check"?"CheckSelectMenu":"SelectMenu",$,"x-"+ee,c&&"is-open",G?"is-downward":"is-upward",w&&"is-disabled",J&&"is-empty",R?"can-select":"cant-select"]);return(0,a.jsx)(b,{ref:this.menuBaseRef,className:"SelectMenuBase",children:(0,a.jsxs)(v,{className:oe,onTransitionEnd:this.onTransitionEnd,children:[J?(0,a.jsx)("li",{className:"SelectOption empty-msg",children:Ce||S[ae].select_empty_msg}):q.map((te,ve)=>U()(te)?(0,a.jsx)(C,{menuTheme:j,optionList:te,value:Q,onChange:this.onChange},ve):(0,a.jsx)(d,{menuTheme:j,isActive:(0,m.o3)(te,Q),option:te,isDisabled:te.isDisabled,onChange:this.onChange},ve)),c&&(0,a.jsx)(I.A,{target:document,onClick:(0,I.t)(this.onClickOutside,{capture:!0})}),c&&(0,a.jsx)(I.A,{target:document,onScroll:(0,I.t)(this.position,{capture:!0})})]})})}}u(M,"propTypes",{...H.propTypes,isOpen:i().bool,canSelect:i().bool,onChange:i().func,onClose:i().func,$select:i().instanceOf(Element)}),u(M,"defaultProps",{isOpen:!1});function C(y){let{value:c,optionList:[w,...j],menuTheme:$,onChange:ee}=y;return(0,a.jsxs)("li",{className:"SelectGroup",children:[(0,a.jsx)(O.A,{className:"title",onClick:ee,children:w}),(0,a.jsx)("ul",{children:j.map((q,ae)=>(0,a.jsx)(d,{menuTheme:$,option:q,isActive:(0,m.o3)(q,c),isDisabled:q.isDisabled,onChange:ee},ae))})]})}C.propTypes={optionList:i().array,onChange:i().func,menuTheme:i().string,value:i().string};function d(y){let{option:c,isActive:w,isDisabled:j,menuTheme:$,onChange:ee}=y;const q=(0,m.Hn)(["SelectOption",w&&"is-active",j&&"is-disabled"]),ae=(0,m.Oi)(c),Ce=(0,m.nE)(c);return(0,a.jsxs)("li",{role:"option","data-value":Ce,className:q,onClick:j?void 0:ee,children:[(0,a.jsx)(O.A,{children:ae}),$==="check"&&w&&(0,a.jsx)(Z.A,{name:"check"})]})}d.propTypes={option:i().oneOfType([i().node,i().object]),isActive:i().bool,isDisabled:i().bool,menuTheme:i().string,onChange:i().func}},83414:(me,V,o)=>{"use strict";o.d(V,{gE:()=>r,nM:()=>l,nQ:()=>N});const l="local_sharing_copy_url_v8_1",r=50,N={public:"share_anyone_view",restricted:"org_members_only"}},83557:(me,V,o)=>{"use strict";o.d(V,{GT:()=>I,Nc:()=>N,lq:()=>i});var l=o(62732),r=o(55338);const N=async(W,P,_,U)=>{const[f,x]=await(0,l.Vz)(r.r,W),k=Object.assign({upperType:"project-basic",type:"proto2",treLen:String(x.byteLength),treRawLen:String(f)},P&&{teamCid:P},U&&{spaceCid:U}),T="/flpak/w-paknewft?"+new URLSearchParams(k),Z=await fetch(T,{method:"POST",body:x,headers:{"mb-client-opt":encodeURIComponent(JSON.stringify(_))}});if(!Z.ok)throw Object.assign(new Error("failed to create new flpak: "+T),{message:await Z.text(),status:Z.status});return Z.json()},i=async(W,P,_)=>{const[U,f]=await(0,l.Vz)(r.r,W),x="/flpak/w-pakfcgmkt?"+new URLSearchParams({upperType:"combo-group",upperAction:"create-reviewable-project",type:"proto2",teamCid:P,treLen:String(f.byteLength),treRawLen:String(U)}),k=await fetch(x,{method:"POST",body:f,headers:{"mb-client-opt":encodeURIComponent(JSON.stringify(_))}});if(!k.ok)throw Object.assign(new Error("failed to create new fcgmkt: "+x),{message:await k.text(),status:k.status});return k.json()},I=async(W,P,_)=>{const[U,f]=await(0,l.Vz)(r.r,W),x="/flpak/w-paksclibft?"+new URLSearchParams({upperType:"project-basic",type:"proto2",teamCid:P,upperCid:_,treLen:String(f.byteLength),treRawLen:String(U)}),k=await fetch(x,{method:"POST",body:f,headers:{"mb-client-opt":encodeURIComponent(JSON.stringify({}))}});if(!k.ok)throw Object.assign(new Error("failed to create new sclib: "+x),{message:await k.text(),status:k.status});return k.json()}},85378:(me,V,o)=>{var l=o(45308),r=o(62783),N=o(59483);function i(I){return N(r(I,void 0,l),I+"")}me.exports=i},88856:(me,V,o)=>{"use strict";o.d(V,{eY:()=>L,At:()=>a,pU:()=>u,DV:()=>B,Ay:()=>v});var l=o(95549),r=o(38502);if(!/^(15|477)$/.test(o.j))var N=o(37342);var i=o(18381),I=o(67787);const W=(0,I.DU)(["div.notice-tips-container{z-index:9999;.notice-tips{min-height:38px;p{color:",";}:not(.pure-svg-icon).svg-icon{fill:",";}&.success{.tip-svg{path:nth-child(1){fill:",";}}}&.warning{.tip-svg{path:nth-child(1){fill:",";}}}&.error{.tip-svg{circle{fill:",";}}.button-a{cursor:pointer;}.button-p{margin-left:0;}}&.super{background-color:",";p{margin:0 16px 0 4px;}.times-icon{path{fill:",";}}}}}"],D=>D.theme.color_text_btn,D=>D.theme.color_text_btn,D=>D.theme.color_success,D=>D.theme.color_warning,D=>D.theme.color_error,D=>D.theme.color_error,D=>D.theme.color_text_btn),P=(0,I.DU)(["div.notice-tips-container{max-width:90%;.notice-tips{background-color:#ffffff !important;p{white-space:nowrap;color:#403F3D;font-size:13px;font-weight:500;}}}"]);var _=o(58315),U=o(51582),f=o(29523);const x=I.Ay.div.withConfig({displayName:"styles__StyledNoticeTips",componentId:"sc-1ehf3rt-0"})([".notice-tips{width:100%;height:100%;min-height:38px;padding:8px 16px;display:flex;align-items:center;font-size:14px;color:",";box-shadow:0 2px 8px 0 rgba(0,0,0,0.05),0 4px 12px 0 rgba(0,0,0,0.15);border-radius:6px;p{margin:0 0 0 4px;}&.info{background-color:",";p{margin:0 4px;}a{margin-left:12px;color:#80BCFF;&:hover{color:#A6D2FF;}}}&.success{background:",";box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);border-radius:6px;}&.warning{background-color:",";}&.error{background-color:",";}&.super{background-color:",";}&.loading{background-color:",";.tip-svg{animation:design-ani-spinning 1s infinite linear;fill:rgb(69,70,71);}}@keyframes design-ani-spinning{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}.times-icon{width:20px;display:flex;flex-shrink:0;opacity:1;cursor:pointer;transition:opacity 0.15s ease-out;margin-left:16px;align-self:center;&:hover{opacity:1;}}.tip-svg{width:20px;height:20px;}}a{text-decoration:underline;color:",";&:hover{color:",";}}.fade{&-enter{transform:translateY(-50%);opacity:0;}&-enter-active{opacity:1;transform:translateY(0);transition:all 0.15s ease-out;}&-exit{opacity:1;}&-exit-active{opacity:0;transition:opacity 0.25s ease-in-out;}&-exit-done{opacity:0;}}"],f.f.color_bg_white.value_light,f.f.color_btn_secondary_active.value_dark,f.f.color_btn_secondary_active.value_dark,f.f.color_btn_secondary_active.value_dark,f.f.color_btn_secondary_active.value_dark,f.f.color_error.value_light,f.f.color_btn_secondary_active.value_dark,f.f.color_text_link_normal.value_dark,f.f.color_text_link_hover.value_dark);var k=o(72214);const T={success:"design/toast/success",error:"design/toast/error",warning:"design/toast/warning",super:"design/toast/offline",loading:"design/toast/loading"};class Z extends r.PureComponent{render(){const{isShow:S,type:z,text:A,showClose:H,isReactDom:M,CustomChildComponent:C,svgName:d,onDisappear:y}=this.props;return(0,k.jsx)(x,{children:(0,k.jsx)(_.A,{in:S,timeout:2500,classNames:"fade",unmountOnExit:!0,children:(0,k.jsxs)("div",{className:"notice-tips "+z,children:[d&&(0,k.jsx)(U.C,{name:d,className:"tip-svg",isColorPure:!0}),!d&&z&&T[z]&&(0,k.jsx)(U.C,{name:T[z],className:"tip-svg",isColorPure:!0}),(0,k.jsxs)(r.Fragment,{children:[M?A:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("p",{dangerouslySetInnerHTML:{__html:A}}),(typeof C=="function"||typeof C=="object")&&(0,k.jsx)(C,{})]}),H&&(0,k.jsx)(U.C,{className:"times-icon",name:"general/times",onClick:y})]})]})})})}}(0,l.A)(Z,"defaultProps",{isShow:!1,type:"info",showClose:!1,isReactDom:!1,svgName:""});const O=I.Ay.div.withConfig({displayName:"styles__StyledNoticeTipsContainer",componentId:"sc-1ewb7bf-0"})(["position:fixed;left:50%;top:56px;max-width:480px;transform:translateX(-50%);z-index:1052;"]);var m=o(69623);class p extends r.PureComponent{constructor(S){super(S),(0,l.A)(this,"timerId",null),(0,l.A)(this,"handleDisappear",()=>{typeof this.props.closeCallback=="function"&&this.props.closeCallback()}),this.el=document.createElement("div")}componentDidMount(){document.body.appendChild(this.el),this.props.isShow&&this.updateTimer()}componentDidUpdate(S,z,A){const{isShow:H,id:M}=this.props,{isShow:C,id:d}=S;(M!==d&&H||H&&H!==C)&&this.updateTimer()}updateTimer(){this.timerId&&clearTimeout(this.timerId);const{duration:S}=this.props;this.timerId=S&&setTimeout(this.handleDisappear,S)}componentWillUnmount(){this.el&&document.body.contains(this.el)&&document.body.removeChild(this.el),this.timerId&&clearTimeout(this.timerId)}render(){const{isShow:S,type:z,text:A,showClose:H,isReactDom:M,CustomChildComponent:C,svgName:d,className:y}=this.props;return(0,m.createPortal)(S&&(0,k.jsx)(O,{className:y,children:(0,k.jsx)(Z,{isShow:S,type:z,showClose:H,onDisappear:this.handleDisappear,isReactDom:M,text:A,CustomChildComponent:C,svgName:d})}),this.el)}}(0,l.A)(p,"defaultProps",{text:"",isShow:!1,type:"info",showClose:!1,isReactDom:!1,CustomChildComponent:void 0,svgName:"",id:"",duration:2e3,closeCallback:()=>null});const h=p;var E=o(25306);const b={isShow:!1,text:"",type:"info",showClose:!1,isReactDom:!1,CustomChildComponent:void 0,svgName:"",duration:2e3,id:""};class v extends r.PureComponent{constructor(S){super(S),(0,l.A)(this,"closeCallback",null),(0,l.A)(this,"handleDisappear",()=>{this.setState({isShow:!1}),typeof this.closeCallback=="function"&&this.closeCallback(),this.priority=0}),this.state=b,this.priority=0}componentDidMount(){MB.notice&&(this.prevNotice=MB.notice),MB.notice=S=>{let{text:z,type:A="info",CustomChildComponent:H=void 0,duration:M=2e3,showClose:C=!1,isReactDom:d=!1,closeCallback:y=null,priority:c=0,svgName:w="",id:j=Math.random().toString(36).slice(2),isShow:$=!0}=S;this.priority>c||(clearTimeout(this.timer),this.setState({isShow:$,text:z,type:A,showClose:C,id:j,isReactDom:d,CustomChildComponent:H,svgName:w,duration:M}),this.closeCallback=y,this.priority=c)}}componentWillUnmount(){this.setState({isShow:!1}),this.prevNotice&&(MB.notice=this.prevNotice)}render(){const{isShow:S,type:z,duration:A,text:H,showClose:M,id:C,isReactDom:d,CustomChildComponent:y,svgName:c}=this.state;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(h,{className:"notice-tips-container",isShow:S,type:z,text:H,id:C,duration:A,showClose:M,isReactDom:d,CustomChildComponent:y,svgName:c,closeCallback:this.handleDisappear}),(0,k.jsx)(W,{}),(0,E.Gq)()&&(0,k.jsx)(P,{})]})}}const a=D=>(0,r.memo)(()=>{const S=()=>(0,N.JW)("/hc/articles/393","_blank","noreferrer");return(0,k.jsx)("a",{style:{cursor:"pointer"},onClick:S,children:D})}),u=/^(15|477)$/.test(o.j)?null:(0,r.memo)(()=>{const D=(0,i.wA)(),S=()=>D({type:"toolbar:sharingManager:open"});return(0,k.jsx)("a",{onClick:S,children:I18N.ScreenPanel.share_panel})}),L=D=>(0,r.memo)(()=>{const S=()=>(0,N.JW)(I18N.link.link_article_business_font_state,"_blank","noreferrer");return(0,k.jsx)("a",{className:"button-a",onClick:S,children:D})}),B=D=>{let{onClick:S}=D;return(0,r.memo)(()=>{const z=(0,i.wA)(),A=()=>{S&&S(z)};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("a",{className:"button-a",onClick:A,children:I18N.dModule.network_api_error_2}),(0,k.jsx)("p",{className:"button-p",children:I18N.dModule.network_api_error_3})]})})}},89022:function(me){(function(V,o){me.exports=o()})(this,function(){"use strict";return function(V,o,l){o.prototype.isBetween=function(r,N,i,I){var W=l(r),P=l(N),_=(I=I||"()")[0]==="(",U=I[1]===")";return(_?this.isAfter(W,i):!this.isBefore(W,i))&&(U?this.isBefore(P,i):!this.isAfter(P,i))||(_?this.isBefore(W,i):!this.isAfter(W,i))&&(U?this.isAfter(P,i):!this.isBefore(P,i))}}})},89208:(me,V,o)=>{"use strict";o.d(V,{n:()=>x,A:()=>k});var l=o(38502),r=o(53732),N=o.n(r),i=o(17307),I=o(83199),W=o(71272),P=o(67787);const _=P.Ay.ol.withConfig({displayName:"styles__StyledNewSlideNav",componentId:"sc-17e9w47-0"})(["display:flex;height:48px;.nav-label{position:relative;height:100%;padding:0 3px;display:flex;align-items:center;justify-content:center;white-space:nowrap;}.nav-item{position:relative;display:flex;flex:none;justify-content:center;align-items:center;color:",";padding:0 3px;cursor:pointer;.nav-underline{position:absolute;display:none;bottom:0;width:70%;border-bottom:2px solid ",";}&:lang(ja){font-size:10px;}&.active{color:",";&:not(:first-child:nth-last-child(1)){.nav-underline{display:inline;}}&.background_active{background-color:transparent;}&.line_active::after{content:'';position:absolute;bottom:0;width:30px;height:2px;background:",";}}&.disabled{color:",";cursor:not-allowed;}&:not(:first-child){}.tabNewIcon{position:absolute;width:30px;top:0;right:3px;path:first-child{fill:#1684fc;}path:last-child{fill:#fff;}}}.nav-item-small:lang(en){font-size:10px;}min-height:48px;padding:0 6px;.nav-item{font-size:13px;&.active{font-weight:bold;}}"],T=>T.theme.color_text_L3,T=>T.theme.color_text_L1,T=>T.theme.color_text_L1,T=>T.theme.color_text_L1,T=>T.theme.color_text_disabled01);var U=o(72214);const f=(0,l.memo)(T=>{let{activeIndex:Z=0,className:O,children:m,onTabChange:p}=T;return(0,U.jsx)(_,{className:N()(O),children:l.Children.map(m,(h,E)=>{const b={index:E,active:E===Z,onClick:p};return l.cloneElement(h,b)})})}),x=(0,l.memo)(T=>{let{className:Z,index:O,active:m,onClick:p,label:h,tooltip:E,isNew:b,disabled:v,tempDisabled:a,canMouseEnterChange:u=!1,children:L}=T;const B=(0,l.useRef)(null),D=()=>{if(v)return a&&MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"}),null;p(O)},S=()=>{u&&(B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{D==null||D()},W.wy))},z=()=>{u&&B.current&&(clearTimeout(B.current),B.current=null)},A=(0,U.jsxs)("li",{className:N()("nav-item",{active:m},{disabled:v},Z),onClick:D,onMouseEnter:S,onMouseLeave:z,children:[h&&(0,U.jsxs)("span",{className:"nav-label",title:h,children:[h,E&&E]}),b&&(0,U.jsx)(i.C,{name:"design/tab/new",className:"tabNewIcon"}),L]});return v?(0,U.jsx)(I.A,{content:"\u6682\u4E0D\u5F00\u653E",direction:"down",children:A}):A}),k=f},91752:(me,V,o)=>{"use strict";o.d(V,{Ay:()=>O});var l=o(38502),r=o(25582),N=o.n(r),i=o(45525),I=o.n(i),W=o(51582),P=o(69368),_=o(67787);const U=_.Ay.button.withConfig({displayName:"styled__StyledButton",componentId:"sc-1p06iev-0"})(["&.RegularButton,&.PrimaryButton,&.PrimaryCoreButton,&.RegularCoreButton,&.SecondaryCoreButton,&.TertiaryCoreButton{padding:0 0.5em;height:2.125rem;font-size:0.875rem;border:1px solid;border-radius:2px;cursor:pointer;transition:all 0.2s ease-out;&:not(button){display:inline-flex;justify-content:center;align-items:center;}&:disabled{cursor:not-allowed;opacity:0.6;}.icon{margin-right:0.125em;}&.small{height:2em;font-size:0.75rem;}.svg-icon.loading{margin-right:0.5em;vertical-align:-.15em;animation:ibot-ani-spinning 1.5s infinite ease-out;}}&.PrimaryCoreButton,&.RegularCoreButton,&.SecondaryCoreButton,&.TertiaryCoreButton{padding:0 1em;height:2.375rem;&.small{height:2em;}&:disabled{background-color:#f6f7f8;border-color:#dedee4;color:#c8cdd1;opacity:1;}}&.PrimaryCoreButton{background-color:#eb5648;&,&:link,&:visited{border-color:transparent;color:#fff;}&:enabled:hover,a&:hover{background-color:#ef776c;color:#fff;}&:enabled:active,a&:active{background-color:#bc4439;color:#e4b4b0;}}&.RegularCoreButton,&.SecondaryCoreButton{background-color:#fff;&,&:link,&:visited{color:#eb5648;}&:enabled:hover,a&:hover{border-color:#ffa39e;color:#ef776c;}&:enabled:active,a&:active{border-color:#e84030;color:#bc4439;}}&.TertiaryCoreButton{background-color:#fff;border-color:#c8cdd1;&,&:link,&:visited{color:#415058;}&:enabled:hover,a&:hover{background-color:#8d9ea7;border-color:#7d8694;color:#fff;}&:enabled:active,a&:active{background-color:#5b6b73;border-color:#415058;}}&.RegularButton{&,&:link,&:visited{color:#8d9ea7;}&:enabled:hover,a&:hover{color:#5b6b73;}&:disabled{opacity:0.6;}}&.PrimaryButton{background-color:#8d9ea7;border-color:transparent;&,&:link,&:visited{color:#fff;}&:enabled:hover,a&:hover{background-color:#5b6b73;color:#fff;}&:enabled:active,a&:active{color:rgba(255,255,255,0.6);}}&.TextButton,&.TextCoreButton{transition:all 0.1s ease-out;&,&:link,&:visited{color:#298df8;}&:disabled{cursor:not-allowed;opacity:0.6;}&:enabled:hover,a&:hover{color:#0d7ef7;text-decoration:underline;}.svg-icon.loading{margin-right:0.25em;vertical-align:-.15em;animation:ibot-ani-spinning 1.5s infinite ease-out;}.icon{margin-right:0.125em;}&.small{height:2em;font-size:0.75rem;}}&.TextCoreButton{&,&:link,&:visited{color:#eb5648;}&:enabled:hover,a&:hover{color:#ef776c;text-decoration:none;}&:enabled:active,a&:active{color:#bc4439;}}"]);var f=o(72214);function x(E,b,v){return(b=k(b))in E?Object.defineProperty(E,b,{value:v,enumerable:!0,configurable:!0,writable:!0}):E[b]=v,E}function k(E){var b=T(E,"string");return typeof b=="symbol"?b:b+""}function T(E,b){if(typeof E!="object"||!E)return E;var v=E[Symbol.toPrimitive];if(v!==void 0){var a=v.call(E,b||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(E)}const Z={primary:"Primary",regular:"Regular",secondary:"Regular",tertiary:"Tertiary",text:"Text"};class O extends l.PureComponent{get className(){const{type:b,theme:v,size:a,className:u}=this.props,{isDisabled:L,isLoading:B}=this;return(0,P.Hn)(["Button",""+Z[b]+(v==="core"?"CoreButton":"Button"),a!=="regular"&&a,B&&"is-loading",L&&"is-disabled",u])}get isDisabled(){const{isDisabled:b,disabled:v}=this.props;return b||v}get isLoading(){const{isLoading:b,loading:v}=this.props;return b||v}render(){const{className:b,isLoading:v,isDisabled:a}=this,{iconType:u,icon:L,children:B,...D}=this.props;return(0,f.jsx)(U,{className:b,disabled:a,onClick:S=>a&&S.preventDefault(),type:"button",...I()(D,["className","type","theme","isDisabled","disabled","isLoading","loading"]),children:(0,f.jsxs)(f.Fragment,{children:[v&&(0,f.jsx)(W.A,{name:"loading"}),L&&u==="svg"&&(0,f.jsx)(W.A,{name:L}),B]})})}}x(O,"propTypes",{type:N().oneOf(["primary","regular","secondary","tertiary","text"]),size:N().oneOf(["regular","small"]),theme:N().oneOf(["core","plain"]),iconType:N().oneOf(["svg","dora","mb","icon","fa","md"]),icon:N().string,className:N().string,isDisabled:N().bool,disabled:N().bool,isLoading:N().bool,loading:N().bool,children:N().any,html:N().string}),x(O,"defaultProps",{type:"regular",size:"regular",theme:"plain",icon:"",className:"",isDisabled:!1});function m(E){return _jsx(O,{...E,theme:"core"})}function p(E){return _jsx(m,{...E,type:"primary"})}function h(E){return _jsx(m,{...E,type:"tertiary"})}},92114:(me,V,o)=>{"use strict";o.d(V,{A:()=>O});var l=o(38502),r=o(67787),N=o(25582),i=o.n(N),I=o(63986),W=o.n(I),P=o(69368);const _=r.Ay.label.withConfig({displayName:"styled__StyledSwitch",componentId:"sc-16h4tgy-0"})(["position:relative;display:inline-block;margin:0 10px;width:28px;height:10px;vertical-align:text-bottom;background:rgba(22,132,252,0.4);border-radius:100px;cursor:pointer;transform:matrix(-1,0,0,1,0,0);transition:all 0.2s ease-in;transition-delay:0.15s;&.readonly{cursor:default;}> button{position:absolute;top:-20%;left:0;display:flex;justify-content:center;align-items:center;width:14px;height:14px;font-size:14px;border-radius:50%;background:#1684FC;box-shadow:0px 1px 1px rgba(0,0,0,0.15),0px 0px 2px rgba(0,0,0,0.12);transform:matrix(-1,0,0,1,0,0);cursor:inherit;transition:all 0.2s cubic-bezier(0.55,0.06,0.68,0.19);}&.small{width:28px;height:10px;vertical-align:baseline;> button{width:14px;height:14px;border-width:1px;}}&.is-checked{background:#dbdbdb;> button{transform:translate(14px,0%);cursor:inherit;background-color:#fff;box-shadow:0px 1px 1px rgba(0,0,0,0.15),0px 0px 2px rgba(0,0,0,0.12);}&.small > button{transform:translate(14px,0);background-color:#999;}&.small{background-color:#59515c;}}&.is-disabled{background-color:#dedee4;cursor:not-allowed;&.is-checked{background-color:rgba(22,132,252,0.4);}button{background-color:#f6f7f8;}}&.Switch-IOS{background:#1684fc;transform:matrix(1,0,0,1,0,0);transition:all 0.2s ease-in;> button{top:1px;left:1px;background:#fff;transform:matrix(1,0,0,1,0,0);}&.small{width:24px;height:12px;border-radius:6px;> button{width:10px;height:10px;border-width:0;}}&.is-checked{&.small > button{transform:translate(12px,0);background-color:#fff;}&.small{background-color:#ccc;}}}&.Switch-IOS-NoTransform{background:#1684fc;transition:all 0.2s ease-in;> button{top:1px;left:1px;background:#fff;transform:matrix(1,0,0,1,0,0);}&.small{width:24px;height:12px;border-radius:6px;> button{width:10px;height:10px;border-width:0;}}&.is-checked{&.small > button{transform:translate(12px,0);background-color:#fff;}&.small{background-color:#ccc;}}}"]);var U=o(72214);function f(m,p,h){return(p=x(p))in m?Object.defineProperty(m,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[p]=h,m}function x(m){var p=k(m,"string");return typeof p=="symbol"?p:p+""}function k(m,p){if(typeof m!="object"||!m)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var E=h.call(m,p||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(m)}class T extends l.PureComponent{constructor(){super(...arguments),f(this,"state",{prevProps:this.props,isChecked:this.props.isChecked}),f(this,"toggle",p=>{let{target:h}=p;const{onChange:E}=this.props,{isChecked:b}=this.state,{isDisabled:v,canToggle:a}=this,u=a?!b:b;return h.blur(),this.setState({isChecked:u}),!v&&E(u)})}static getDerivedStateFromProps(p,h){let{prevProps:E}=h;return W()(E,p)?null:{prevProps:p,isChecked:p.isChecked}}get isDisabled(){const{isDisabled:p,disabled:h}=this.props;return p||h}get readOnly(){return this.props.readOnly}get canToggle(){const{isDisabled:p,readOnly:h}=this;return!p&&!h}render(){const{size:p,readOnly:h,className:E,children:b,isIOS:v,isIOSReverse:a}=this.props,{isChecked:u}=this.state,{isDisabled:L}=this;return(0,U.jsxs)(_,{className:(0,P.Hn)(["Switch",v&&"Switch-IOS",a&&"Switch-IOS-NoTransform",p,u?"is-checked":"isnt-checked",L&&"is-disabled",h&&"readonly",E]),children:[(0,U.jsx)("button",{type:"button",disabled:L,onClick:this.toggle}),b]})}}f(T,"propTypes",{className:i().string,size:i().oneOf(["regular","small"]),isChecked:i().bool,isDisabled:i().bool,disabled:i().bool,readOnly:i().bool,isIOS:i().bool,isIOSReverse:i().bool,onChange:i().func,children:i().any}),f(T,"defaultProps",{className:"",size:"regular",isChecked:!1,isDisabled:!1,disabled:!1,readOnly:!1,isIOS:!1,isIOSReverse:!1,onChange:()=>null});const Z=(0,r.Ay)(T).withConfig({displayName:"styles__StyledSwitch",componentId:"sc-1wltq4q-0"})(["&.Switch-IOS{background:",";transform:matrix(1,0,0,-1,0,0);margin:0;button{border:unset;background:",";}&.regular{width:30px;height:14px;button{height:12px;width:12px;}}&.is-checked{&.small,&.regular{background:",";button{background:",";}}&.regular button{transform:translate(15px,0);}}}"],m=>m.theme.color_text_disabled01,m=>m.theme.color_text_btn,m=>m.theme.color_proto,m=>m.theme.color_text_btn);class O extends l.PureComponent{render(){return(0,U.jsx)(Z,{...this.props})}}},96582:(me,V,o)=>{"use strict";o.d(V,{Ay:()=>O});var l=o(8509),r=o(18941),N=o(38502),i=o(69623);const I={disabled:!1},W=N.createContext(null);var P=o(99129),_="unmounted",U="exited",f="entering",x="entered",k="exiting",T=function(m){(0,r.A)(p,m);function p(E,b){var v;v=m.call(this,E,b)||this;var a=b,u=a&&!a.isMounting?E.enter:E.appear,L;return v.appearStatus=null,E.in?u?(L=U,v.appearStatus=f):L=x:E.unmountOnExit||E.mountOnEnter?L=_:L=U,v.state={status:L},v.nextCallback=null,v}p.getDerivedStateFromProps=function(b,v){var a=b.in;return a&&v.status===_?{status:U}:null};var h=p.prototype;return h.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},h.componentDidUpdate=function(b){var v=null;if(b!==this.props){var a=this.state.status;this.props.in?a!==f&&a!==x&&(v=f):(a===f||a===x)&&(v=k)}this.updateStatus(!1,v)},h.componentWillUnmount=function(){this.cancelNextCallback()},h.getTimeouts=function(){var b=this.props.timeout,v,a,u;return v=a=u=b,b!=null&&typeof b!="number"&&(v=b.exit,a=b.enter,u=b.appear!==void 0?b.appear:a),{exit:v,enter:a,appear:u}},h.updateStatus=function(b,v){if(b===void 0&&(b=!1),v!==null)if(this.cancelNextCallback(),v===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this);a&&(0,P.F)(a)}this.performEnter(b)}else this.performExit();else this.props.unmountOnExit&&this.state.status===U&&this.setState({status:_})},h.performEnter=function(b){var v=this,a=this.props.enter,u=this.context?this.context.isMounting:b,L=this.props.nodeRef?[u]:[i.findDOMNode(this),u],B=L[0],D=L[1],S=this.getTimeouts(),z=u?S.appear:S.enter;if(!b&&!a||I.disabled){this.safeSetState({status:x},function(){v.props.onEntered(B)});return}this.props.onEnter(B,D),this.safeSetState({status:f},function(){v.props.onEntering(B,D),v.onTransitionEnd(z,function(){v.safeSetState({status:x},function(){v.props.onEntered(B,D)})})})},h.performExit=function(){var b=this,v=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:i.findDOMNode(this);if(!v||I.disabled){this.safeSetState({status:U},function(){b.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:k},function(){b.props.onExiting(u),b.onTransitionEnd(a.exit,function(){b.safeSetState({status:U},function(){b.props.onExited(u)})})})},h.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},h.safeSetState=function(b,v){v=this.setNextCallback(v),this.setState(b,v)},h.setNextCallback=function(b){var v=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,v.nextCallback=null,b(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},h.onTransitionEnd=function(b,v){this.setNextCallback(v);var a=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this),u=b==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var L=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],B=L[0],D=L[1];this.props.addEndListener(B,D)}b!=null&&setTimeout(this.nextCallback,b)},h.render=function(){var b=this.state.status;if(b===_)return null;var v=this.props,a=v.children,u=v.in,L=v.mountOnEnter,B=v.unmountOnExit,D=v.appear,S=v.enter,z=v.exit,A=v.timeout,H=v.addEndListener,M=v.onEnter,C=v.onEntering,d=v.onEntered,y=v.onExit,c=v.onExiting,w=v.onExited,j=v.nodeRef,$=(0,l.A)(v,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(W.Provider,{value:null},typeof a=="function"?a(b,$):N.cloneElement(N.Children.only(a),$))},p}(N.Component);T.contextType=W,T.propTypes={};function Z(){}T.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Z,onEntering:Z,onEntered:Z,onExit:Z,onExiting:Z,onExited:Z},T.UNMOUNTED=_,T.EXITED=U,T.ENTERING=f,T.ENTERED=x,T.EXITING=k;const O=T},97974:(me,V,o)=>{"use strict";o.d(V,{in:()=>Z,Yr:()=>O,hE:()=>m});var l=o(67787),r=o(65609),N=o(95549),i=o(38502),I=o(53732),W=o.n(I),P=o(72214);function _(p){let{className:h,renderIconList:E}=p;return(0,P.jsx)("span",{className:W()("btn-icon",h),children:E.map((b,v)=>(0,P.jsx)("span",{className:"btn-icon-container",children:(0,P.jsx)(P.Fragment,{children:b})},v))})}const U=_;var f=o(22460);class x extends i.PureComponent{constructor(h){super(h),(0,N.A)(this,"getClassName",()=>{const{className:E,type:b,size:v,corner:a,disabled:u,icon:L,children:B}=this.props;return W()(E,"button-root",{["type-"+b]:b,["size-"+v]:v,["corner-"+a]:a,"is-disabled":u,"has-icon":L&&B,"only-icon":L&&B===void 0})}),(0,N.A)(this,"onButtonClick",E=>{if(this.props.disabled){E.preventDefault();return}const{onClick:b}=this.props;b&&b(E)}),(0,N.A)(this,"getIconNode",()=>(0,P.jsx)(U,{renderIconList:this.state.iconList,className:this.props.className})),(0,N.A)(this,"getChildrenNode",()=>(0,P.jsx)("span",{className:"btn-text",children:this.props.children})),this.state={iconList:this.props.icon?[this.props.icon]:[]}}componentDidUpdate(h){let{icon:E}=h;const{icon:b}=this.props;E!==b&&this.setState({iconList:b?[this.props.icon]:[]})}render(){const h=this.getClassName(),E=this.getIconNode(),b=this.getChildrenNode();return(0,P.jsx)(f.O,{className:h,onClick:this.onButtonClick,children:(0,P.jsxs)("div",{className:W()("btn-icon-text-container"),children:[E,b]})})}}(0,N.A)(x,"defaultProps",{type:"linear",disabled:!1,size:"common",corner:"smooth"});var k=o(86964);const T=(p,h)=>{const E=p.forceTheme;return E?k.fm[h]["value_"+E]:p.theme[h]},Z=(0,l.AH)(["line-height:18px;&[class*='type-primary']{color:",";background:",";border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";border:1px solid transparent;}&:active:not([class*='is-disabled']){background:",";border:1px solid transparent;}&[class*='is-disabled']{color:",";background:",";border:1px solid transparent;}}&[class*='type-secondary']{color:",";background:",";border:1px solid ",";&:hover:not([class*='is-disabled']){background:",";border:1px solid ",";}&:active:not([class*='is-disabled']){background:",";border:1px solid ",";}&[class*='is-disabled']{color:",";background:",";border:1px solid ",";}}&[class*='type-danger']{color:",";background:",";border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";border:1px solid transparent;}&:active:not([class*='is-disabled']){background:",";border:1px solid transparent;}&[class*='is-disabled']{color:",";background:",";border:1px solid transparent;}}&[class*='type-text']{color:",";background:transparent;border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";border:1px solid transparent;}&:active:not([class*='is-disabled']){background:",";border:1px solid transparent;}&[class*='is-disabled']{color:",";background:transparent;border:1px solid transparent;}}&[class*='size-tiny']{max-height:28px;font-size:12px;line-height:14px;padding:6px 8px;.btn-icon-text-container{min-width:46px;}}&[class*='size-common']{max-height:32px;font-size:13px;padding:6px 10px;.btn-icon-text-container{min-width:58px;}}&[class*='size-medium']{max-height:32px;font-size:13px;padding:6px 12px;.btn-icon-text-container{min-width:70px;}}&[class*='is-disabled']{opacity:1;}"],p=>T(p,"color_text_btn"),p=>T(p,"color_btn_primary_normal"),p=>T(p,"color_btn_primary_hover"),p=>T(p,"color_btn_primary_clicked"),p=>T(p,"color_text_disabled02"),p=>T(p,"color_btn_primary_disabled"),p=>T(p,"color_text_L1"),p=>T(p,"color_bg_white"),p=>T(p,"color_bg_border_02"),p=>T(p,"color_btn_secondary_hover"),p=>T(p,"color_bg_border_02"),p=>T(p,"color_btn_secondary_active"),p=>T(p,"color_bg_border_02"),p=>T(p,"color_text_disabled01"),p=>T(p,"color_bg_white"),p=>T(p,"color_bg_border_02"),p=>T(p,"color_text_btn"),p=>T(p,"color_btn_danger_normal"),p=>T(p,"color_btn_danger_hover"),p=>T(p,"color_btn_danger_clicked"),p=>T(p,"color_text_disabled02"),p=>T(p,"color_btn_danger_disabled"),p=>T(p,"color_text_L1"),p=>T(p,"color_btn_secondary_hover"),p=>T(p,"color_btn_secondary_active"),p=>T(p,"color_text_disabled01")),O=(0,l.Ay)(r.A).withConfig({displayName:"styles__StyledProtoButton",componentId:"sc-1pmgkeq-0"})(["",";"],Z),m=(0,l.Ay)(x).withConfig({displayName:"styles__StyledProtoIconButton",componentId:"sc-1pmgkeq-1"})(["",";"],Z)},99129:(me,V,o)=>{"use strict";o.d(V,{F:()=>l});var l=function(N){return N.scrollTop}}}]);
//# sourceMappingURL=5.7b24m-vendor-c6215ade32c4d6e04f4c.js.map